From b51ad48be27f9c37dd79699dfab90420757d618a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Fri, 27 Sep 2019 11:20:32 +0800 Subject: [PATCH] fix: test case --- .../test/__snapshots__/demo.spec.js.snap | 32 ------------------- packages/checkbox/test/index.spec.js | 2 +- packages/mixins/checkbox.js | 2 +- 3 files changed, 2 insertions(+), 34 deletions(-) diff --git a/packages/checkbox/test/__snapshots__/demo.spec.js.snap b/packages/checkbox/test/__snapshots__/demo.spec.js.snap index f4681d69f..c82273a24 100644 --- a/packages/checkbox/test/__snapshots__/demo.spec.js.snap +++ b/packages/checkbox/test/__snapshots__/demo.spec.js.snap @@ -114,37 +114,5 @@ exports[`renders demo correctly 1`] = ` -
-
-
-
全选 -
-
-
-
-
- 复选框 a - -
-
-
-
- 复选框 b - -
-
-
-
- 复选框 c - -
-
-
-
- 复选框 其他 - -
-
-
`; diff --git a/packages/checkbox/test/index.spec.js b/packages/checkbox/test/index.spec.js index 5df5e2ac7..940ddfea7 100644 --- a/packages/checkbox/test/index.spec.js +++ b/packages/checkbox/test/index.spec.js @@ -81,7 +81,7 @@ test('checkbox group unbind', async () => { template: ` - + `, components: { diff --git a/packages/mixins/checkbox.js b/packages/mixins/checkbox.js index 109a3612e..bdbacb83a 100644 --- a/packages/mixins/checkbox.js +++ b/packages/mixins/checkbox.js @@ -25,7 +25,7 @@ export const CheckboxMixin = (parent, bem) => ({ }, created() { - if (this.bindParent) { + if (this.bindGroup) { this.findParent(parent); } },