|
|
|
@ -61,6 +61,7 @@ const GlobalVarContainer = () => {
|
|
|
|
const [visible, setVisible] = useState(false);
|
|
|
|
const [visible, setVisible] = useState(false);
|
|
|
|
const [publishModalVisible, setPublishModalVisible] = useState(false);
|
|
|
|
const [publishModalVisible, setPublishModalVisible] = useState(false);
|
|
|
|
const [selectedPublishComponent, setSelectedPublishComponent] = useState(null);
|
|
|
|
const [selectedPublishComponent, setSelectedPublishComponent] = useState(null);
|
|
|
|
|
|
|
|
const [selectedPublishComponentType, setSelectedPublishComponentType] = useState<'publish' | 'upload'>('publish');
|
|
|
|
const [mode, setMode] = useState<'create' | 'edit' | 'copy'>('create'); // 添加模式状态
|
|
|
|
const [mode, setMode] = useState<'create' | 'edit' | 'copy'>('create'); // 添加模式状态
|
|
|
|
const [searchValue, setSearchValue] = useState(''); // 添加搜索状态
|
|
|
|
const [searchValue, setSearchValue] = useState(''); // 添加搜索状态
|
|
|
|
const [componentStatus, setComponentStatus] = useState(''); // 添加组件状态筛选
|
|
|
|
const [componentStatus, setComponentStatus] = useState(''); // 添加组件状态筛选
|
|
|
|
@ -220,8 +221,9 @@ const GlobalVarContainer = () => {
|
|
|
|
index={index}
|
|
|
|
index={index}
|
|
|
|
permission={selectedItem === '协同组件' ? record.permission : undefined}
|
|
|
|
permission={selectedItem === '协同组件' ? record.permission : undefined}
|
|
|
|
isCollaborator={selectedItem === '协同组件'}
|
|
|
|
isCollaborator={selectedItem === '协同组件'}
|
|
|
|
onHandlePublishComponent={(row) => {
|
|
|
|
onHandlePublishComponent={(row, type) => {
|
|
|
|
setSelectedPublishComponent(row);
|
|
|
|
setSelectedPublishComponent(row);
|
|
|
|
|
|
|
|
setSelectedPublishComponentType(type);
|
|
|
|
setPublishModalVisible(true);
|
|
|
|
setPublishModalVisible(true);
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
onGoToReview={(row) => {
|
|
|
|
onGoToReview={(row) => {
|
|
|
|
@ -872,6 +874,7 @@ const GlobalVarContainer = () => {
|
|
|
|
<PublishComponentModal
|
|
|
|
<PublishComponentModal
|
|
|
|
visible={publishModalVisible}
|
|
|
|
visible={publishModalVisible}
|
|
|
|
componentInfo={selectedPublishComponent}
|
|
|
|
componentInfo={selectedPublishComponent}
|
|
|
|
|
|
|
|
type={selectedPublishComponentType}
|
|
|
|
onCancel={() => {
|
|
|
|
onCancel={() => {
|
|
|
|
setPublishModalVisible(false);
|
|
|
|
setPublishModalVisible(false);
|
|
|
|
setSelectedPublishComponent(null);
|
|
|
|
setSelectedPublishComponent(null);
|
|
|
|
|