From 9441d295475f1e9a1dc7ffbaaeb3f364d7ba79e1 Mon Sep 17 00:00:00 2001 From: yewenwen Date: Tue, 25 Jun 2019 17:43:27 +0800 Subject: [PATCH 01/21] update checkboxGroup --- src/packages/checkboxgroup/checkboxgroup.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/packages/checkboxgroup/checkboxgroup.vue b/src/packages/checkboxgroup/checkboxgroup.vue index 9dfd0105d5..6a2abffc1a 100644 --- a/src/packages/checkboxgroup/checkboxgroup.vue +++ b/src/packages/checkboxgroup/checkboxgroup.vue @@ -78,6 +78,7 @@ export default { data() { return { ignoreChange: false, + initData:[], checkboxValues: [], initialValue: JSON.parse(JSON.stringify(this.value)) }; @@ -85,6 +86,13 @@ export default { components: { [nutcheckbox.name]: nutcheckbox }, + watch: { + checkBoxData(val){ + if(val){ + this.initData = val || []; + } + } + }, methods: { isObject(obj) { return obj !== null && typeof obj === 'object'; From 63945fd0d4f57850c7813495fc0f16446b9f6572 Mon Sep 17 00:00:00 2001 From: yewenwen Date: Tue, 25 Jun 2019 17:51:14 +0800 Subject: [PATCH 02/21] update checkboxgroup --- src/packages/checkboxgroup/checkboxgroup.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/checkboxgroup/checkboxgroup.vue b/src/packages/checkboxgroup/checkboxgroup.vue index 6a2abffc1a..769b4eaad3 100644 --- a/src/packages/checkboxgroup/checkboxgroup.vue +++ b/src/packages/checkboxgroup/checkboxgroup.vue @@ -1,6 +1,6 @@