DatePicker & TimePicker add transfer-class-name prop
This commit is contained in:
parent
a0e78c8b34
commit
d7625e4770
1 changed files with 10 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
||||||
<Drop
|
<Drop
|
||||||
@click.native="handleTransferClick"
|
@click.native="handleTransferClick"
|
||||||
v-show="opened"
|
v-show="opened"
|
||||||
:class="{ [prefixCls + '-transfer']: transfer }"
|
:class="dropdownCls"
|
||||||
:placement="placement"
|
:placement="placement"
|
||||||
ref="drop"
|
ref="drop"
|
||||||
:data-transfer="transfer"
|
:data-transfer="transfer"
|
||||||
|
@ -220,6 +220,9 @@
|
||||||
default () {
|
default () {
|
||||||
return !this.$IVIEW ? true : this.$IVIEW.capture;
|
return !this.$IVIEW ? true : this.$IVIEW.capture;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
transferClassName: {
|
||||||
|
type: String
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
|
@ -357,6 +360,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
|
},
|
||||||
|
dropdownCls () {
|
||||||
|
return {
|
||||||
|
[prefixCls + '-transfer']: this.transfer,
|
||||||
|
[this.transferClassName]: this.transferClassName
|
||||||
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue