fixed #812
This commit is contained in:
parent
e7ad415432
commit
0460a1e811
11 changed files with 211 additions and 53 deletions
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<span :class="wrapClasses" @click="toggle">
|
||||
<input type="hidden" :name="name" :value="currentValue">
|
||||
<span :class="innerClasses">
|
||||
<slot name="open" v-if="currentValue === trueValue"></slot>
|
||||
<slot name="close" v-if="currentValue === falseValue"></slot>
|
||||
|
@ -36,6 +37,9 @@
|
|||
validator (value) {
|
||||
return oneOf(value, ['large', 'small', 'default']);
|
||||
}
|
||||
},
|
||||
name: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue