@ebiz/designer-components 0.0.18-beta.12 → 0.0.18-beta.14

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.18-beta.12",
3
+ "version": "0.0.18-beta.14",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -29,7 +29,7 @@ const props = defineProps({
29
29
  },
30
30
  isNormal: {//是否为普通按钮
31
31
  type: Boolean,
32
- default: false
32
+ default: true
33
33
  },
34
34
  disabled: {
35
35
  type: Boolean,
@@ -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 !== isVisible.value) {
152
+ isVisible.value = newValue;
153
+ }
154
+ });
155
+
149
156
  // 定义事件
150
157
  const emit = defineEmits([
151
158
  'cancel',