@ebiz/designer-components 0.0.18-beta.12 → 0.0.18-beta.13
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
@@ -146,6 +146,13 @@ const props = defineProps({
|
|
146
146
|
// 显示状态
|
147
147
|
const isVisible = ref(props.visible);
|
148
148
|
|
149
|
+
// 监听visible属性变化
|
150
|
+
watch(() => props.visible, (newValue) => {
|
151
|
+
if (newValue !== undefined) {
|
152
|
+
isVisible.value = newValue;
|
153
|
+
}
|
154
|
+
});
|
155
|
+
|
149
156
|
// 定义事件
|
150
157
|
const emit = defineEmits([
|
151
158
|
'cancel',
|