fix: test case

This commit is contained in:
陈嘉涵 2019-09-27 11:20:32 +08:00
parent 294ffd4f55
commit b51ad48be2
3 changed files with 2 additions and 34 deletions

View File

@ -114,37 +114,5 @@ exports[`renders demo correctly 1`] = `
</div>
</div>
</div>
<div>
<div class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">全选</span>
</div>
<div class="van-checkbox-group">
<div class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
复选框 a
</span>
</div>
<div class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
复选框 b
</span>
</div>
<div class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
复选框 c
</span>
</div>
<div class="van-checkbox">
<div class="van-checkbox__icon van-checkbox__icon--round van-checkbox__icon--checked"><i class="van-icon van-icon-success">
<!----></i></div><span class="van-checkbox__label">
复选框 其他
</span>
</div>
</div>
</div>
</div>
`;

View File

@ -81,7 +81,7 @@ test('checkbox group unbind', async () => {
template: `
<checkbox-group v-model="result" :max="2">
<checkbox v-for="item in list" :key="item" :name="item" />
<checkbox :bind-parent='false' v-model="value" />
<checkbox :bind-group='false' v-model="value" />
</checkbox-group>
`,
components: {

View File

@ -25,7 +25,7 @@ export const CheckboxMixin = (parent, bem) => ({
},
created() {
if (this.bindParent) {
if (this.bindGroup) {
this.findParent(parent);
}
},