pull/165/head
tangjinzhou 2018-01-23 19:00:20 +08:00
parent 34dec6c6aa
commit 7cb596df9c
4 changed files with 10 additions and 9 deletions

View File

@ -1,7 +1,7 @@
<template>
<div>
<div :style="{ borderBottom: '1px solid #E9E9E9' }">
a-checkbox
<a-checkbox
:indeterminate="indeterminate"
@change="onCheckAllChange"
:checked="checkAll"
@ -10,7 +10,7 @@
</a-checkbox>
</div>
<br />
a-checkboxGroup :options="plainOptions" v-model="checkedList" @change="onChange" />
<a-checkbox-group :options="plainOptions" v-model="checkedList" @change="onChange" />
</div>
</template>
<script>

View File

@ -1,7 +1,7 @@
<template>
<div>
<p :style="{ marginBottom: '20px' }">
a-checkbox
<a-checkbox
:checked="checked"
:disabled="disabled"
@change="onChange"

View File

@ -1,12 +1,12 @@
<template>
<div>
a-checkboxGroup :options="plainOptions" v-model="value" @change="onChange" />
<a-checkbox-group :options="plainOptions" v-model="value" @change="onChange" />
<br />
a-checkboxGroup :options="plainOptions" :defaultValue="['Apple']" @change="onChange" />
<a-checkbox-group :options="plainOptions" :defaultValue="['Apple']" @change="onChange" />
<br />
a-checkboxGroup :options="options" :value="['Pear']" @change="onChange" />
<a-checkbox-group :options="options" :value="['Pear']" @change="onChange" />
<br />
a-checkboxGroup :options="optionsWithDisabled" disabled :defaultValue="['Apple']" @change="onChange" />
<a-checkbox-group :options="optionsWithDisabled" disabled :defaultValue="['Apple']" @change="onChange" />
</div>
</template>
<script>
@ -39,7 +39,6 @@ export default {
},
components: {
Checkbox,
CheckboxGroup: Checkbox.Group,
},
}
</script>

View File

@ -2,7 +2,9 @@ import Button from './button'
const ButtonGroup = Button.Group
export { Button, ButtonGroup }
export { default as Checkbox } from './checkbox'
import Checkbox from './checkbox'
const CheckboxGroup = Checkbox.Group
export { Checkbox, CheckboxGroup }
export { default as Icon } from './icon'