[improvement] directive naming-style in jsx (#2677)

This commit is contained in:
neverland
2019-02-02 17:35:32 +08:00
committed by GitHub
parent e3f4cac05d
commit 583f89f09d
16 changed files with 35 additions and 35 deletions
+4 -4
View File
@@ -103,7 +103,7 @@ export default sfc({
onClickExchangeButton() {
this.$emit('exchange', this.currentCode);
// auto clear currentCode when not use v-model
// auto clear currentCode when not use vModel
if (!this.code) {
this.currentCode = '';
}
@@ -129,7 +129,7 @@ export default sfc({
render(h) {
const ExchangeBar = this.showExchangeBar && (
<Field
v-model={this.currentCode}
vModel={this.currentCode}
clearable
border={false}
class={bem('field')}
@@ -190,12 +190,12 @@ export default sfc({
return (
<div class={bem()}>
{ExchangeBar}
<Tabs v-model={this.tab} class={bem('tab')} line-width={120}>
<Tabs vModel={this.tab} class={bem('tab')} line-width={120}>
{CouponTab}
{DisabledCouponTab}
</Tabs>
<Button
v-show={this.showCloseButton}
vShow={this.showCloseButton}
size="large"
class={bem('close')}
text={this.closeButtonText || t('close')}