@maxelms/create-plugin-cli 1.1.28 → 1.1.29
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
|
@@ -30,6 +30,12 @@ export default {
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
methods: {
|
|
33
|
+
updateMasterProps(newProps) {
|
|
34
|
+
// 更新本地数据,这会触发响应式更新
|
|
35
|
+
this.localMasterProps = { ...newProps };
|
|
36
|
+
// 同时触发事件通知父组件
|
|
37
|
+
this.$emit('update:masterProps', newProps);
|
|
38
|
+
},
|
|
33
39
|
change(e) {
|
|
34
40
|
this.onChange && this.onChange({
|
|
35
41
|
text: null,
|
|
@@ -38,12 +44,6 @@ export default {
|
|
|
38
44
|
}
|
|
39
45
|
},
|
|
40
46
|
computed: {
|
|
41
|
-
updateMasterProps(newProps) {
|
|
42
|
-
// 更新本地数据,这会触发响应式更新
|
|
43
|
-
this.localMasterProps = { ...newProps };
|
|
44
|
-
// 同时触发事件通知父组件
|
|
45
|
-
this.$emit('update:masterProps', newProps);
|
|
46
|
-
},
|
|
47
47
|
/** value、onChange 是属性组件作为表单受控组件的必要属性 */
|
|
48
48
|
value () {
|
|
49
49
|
return this.masterProps?.value?.value || "欢迎使用 Maxelms 属性组件"
|
|
@@ -28,15 +28,14 @@ export default {
|
|
|
28
28
|
components: {
|
|
29
29
|
},
|
|
30
30
|
methods: {
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
31
|
updateMasterProps(newProps) {
|
|
35
32
|
// 更新本地数据,这会触发响应式更新
|
|
36
33
|
this.localMasterProps = { ...newProps };
|
|
37
34
|
// 同时触发事件通知父组件
|
|
38
35
|
this.$emit('update:masterProps', newProps);
|
|
39
|
-
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
40
39
|
/** 是否禁用 */
|
|
41
40
|
disabled () {
|
|
42
41
|
return this.masterProps?.configurations?.propName3
|
|
@@ -18,15 +18,14 @@ export default {
|
|
|
18
18
|
components: {
|
|
19
19
|
},
|
|
20
20
|
methods: {
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
computed: {
|
|
24
21
|
updateMasterProps(newProps) {
|
|
25
22
|
// 更新本地数据,这会触发响应式更新
|
|
26
23
|
this.localMasterProps = { ...newProps };
|
|
27
24
|
// 同时触发事件通知父组件
|
|
28
25
|
this.$emit('update:masterProps', newProps);
|
|
29
|
-
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
computed: {
|
|
30
29
|
/** 是否禁用 */
|
|
31
30
|
disabled () {
|
|
32
31
|
return this.$root?.masterProps?.configurations?.propName3
|