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); } },