@ebiz/designer-components 0.0.52 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -200,7 +200,7 @@ const props = defineProps({
200
200
  },
201
201
  visible:{
202
202
  type: Boolean,
203
- default: false
203
+ default: null
204
204
  },
205
205
  // 是否包含部门
206
206
  includeDepartment: {
@@ -226,14 +226,18 @@ const props = defineProps({
226
226
 
227
227
  // 定义组件事件
228
228
  const emit = defineEmits(['update:modelValue', 'change']);
229
-
229
+ const tempVisible = ref(false);
230
230
  // 内部状态变量
231
231
  const dialogVisible = computed({
232
232
  set(val){
233
+ if(props.visible==null){
234
+ tempVisible.value = val;
235
+ return
236
+ }
233
237
  emit('update:visible', val)
234
238
  },
235
239
  get(){
236
- return props.visible
240
+ return props.visible ?? tempVisible.value
237
241
  }
238
242
  });
239
243
 
@@ -667,7 +671,9 @@ const showDialog = () => {
667
671
  }
668
672
 
669
673
  // 初始化数据
670
- // initSelector();
674
+ if(props.visible == null){
675
+ initSelector();
676
+ }
671
677
  dialogVisible.value = true;
672
678
  };
673
679