Commit b4c55b7b43683fecfd9cbaf1bfd4f7c73580f52e

Authored by loveumiko
1 parent a50efc3d

fix: 修改看板组件,新增过后编辑不能拖拽问题

@@ -169,8 +169,6 @@ @@ -169,8 +169,6 @@
169 } 169 }
170 ); 170 );
171 171
172 - const { containerEl } = useSort(emit, getFormValues);  
173 -  
174 const handleSettingOk = (data: DataSourceType) => { 172 const handleSettingOk = (data: DataSourceType) => {
175 const { uuid } = data; 173 const { uuid } = data;
176 const _dataSource = cloneDeep(getFormValues()); 174 const _dataSource = cloneDeep(getFormValues());
@@ -182,6 +180,8 @@ @@ -182,6 +180,8 @@
182 emit('update:dataSource', _dataSource); 180 emit('update:dataSource', _dataSource);
183 }; 181 };
184 182
  183 + const { containerEl } = useSort(emit, getFormValues);
  184 +
185 defineExpose({ 185 defineExpose({
186 getFormValues, 186 getFormValues,
187 validate, 187 validate,
@@ -267,6 +267,7 @@ @@ -267,6 +267,7 @@
267 <BasicModal 267 <BasicModal
268 title="自定义组件" 268 title="自定义组件"
269 width="70%" 269 width="70%"
  270 + :destroy-on-close="true"
270 @register="registerModal" 271 @register="registerModal"
271 @ok="handleSubmit" 272 @ok="handleSubmit"
272 :ok-button-props="{ loading }" 273 :ok-button-props="{ loading }"