diff --git a/docs/site/mobile.js b/docs/site/mobile.js index b2dc843a9..eb566099c 100644 --- a/docs/site/mobile.js +++ b/docs/site/mobile.js @@ -21,7 +21,7 @@ let demoUid = 0; // helper for demo locales Vue.mixin({ computed: { - $t() { + t() { const { name } = this.$options; const { lang = 'zh-CN' } = (this.$route && this.$route.meta) || {}; const prefix = name ? camelize(name) + '.' : ''; diff --git a/src/action-sheet/demo/index.vue b/src/action-sheet/demo/index.vue index c48ec118f..01979c46b 100644 --- a/src/action-sheet/demo/index.vue +++ b/src/action-sheet/demo/index.vue @@ -1,25 +1,25 @@ - - - + + + - + - - + + @@ -47,11 +47,11 @@ v-model="show.description" :actions="simpleActions" close-on-click-action - :description="$t('description')" + :description="t('description')" /> - - {{ $t('content') }} + + {{ t('content') }} @@ -98,17 +98,17 @@ export default { computed: { simpleActions() { return [ - { name: this.$t('option') }, - { name: this.$t('option') }, - { name: this.$t('option'), subname: this.$t('subname') }, + { name: this.t('option') }, + { name: this.t('option') }, + { name: this.t('option'), subname: this.t('subname') }, ]; }, statusActions() { return [ - { name: this.$t('option'), color: GREEN }, + { name: this.t('option'), color: GREEN }, { loading: true }, - { name: this.$t('disabledOption'), disabled: true }, + { name: this.t('disabledOption'), disabled: true }, ]; }, }, diff --git a/src/address-edit/demo/index.vue b/src/address-edit/demo/index.vue index 108bca294..a9eed0f0a 100644 --- a/src/address-edit/demo/index.vue +++ b/src/address-edit/demo/index.vue @@ -1,6 +1,6 @@ - + - + @@ -85,11 +85,11 @@ export default { methods: { onAdd() { - this.$toast(this.$t('add')); + this.$toast(this.t('add')); }, onEdit(item, index) { - this.$toast(`${this.$t('edit')}:${index}`); + this.$toast(`${this.t('edit')}:${index}`); }, }, }; diff --git a/src/area/demo/index.vue b/src/area/demo/index.vue index 5bad071ba..3a8c24d39 100644 --- a/src/area/demo/index.vue +++ b/src/area/demo/index.vue @@ -1,26 +1,26 @@ - - + + - - + + - + - + diff --git a/src/button/demo/index.vue b/src/button/demo/index.vue index 93ad5dd2b..9e5ef10a5 100644 --- a/src/button/demo/index.vue +++ b/src/button/demo/index.vue @@ -1,78 +1,78 @@ - + - {{ $t('default') }} - {{ $t('primary') }} - {{ $t('info') }} + {{ t('default') }} + {{ t('primary') }} + {{ t('info') }} - {{ $t('danger') }} - {{ $t('warning') }} + {{ t('danger') }} + {{ t('warning') }} - - - + + + - - - + + + - - - + + + - + - + - - - + + + - + - + - - {{ $t('large') }} - {{ $t('normal') }} - {{ $t('small') }} - {{ $t('mini') }} + + {{ t('large') }} + {{ t('normal') }} + {{ t('small') }} + {{ t('mini') }} - - {{ $t('blockElement') }} + + {{ t('blockElement') }} - + - + - - - + + + diff --git a/src/calendar/demo/index.vue b/src/calendar/demo/index.vue index adbf52224..42a834a41 100644 --- a/src/calendar/demo/index.vue +++ b/src/calendar/demo/index.vue @@ -1,91 +1,91 @@ - + - + - + - + - + - + - + @@ -44,10 +44,10 @@ - {{ $t('button') }} + {{ t('button') }} - {{ $t('button') }} + {{ t('button') }} diff --git a/src/cell/demo/index.vue b/src/cell/demo/index.vue index fb7b23c31..f7b47398a 100644 --- a/src/cell/demo/index.vue +++ b/src/cell/demo/index.vue @@ -1,80 +1,76 @@ - + - - + + - - + + - - + + - - + + - - - + + + - - - + + + - - - + + + - - + + - - + + - {{ $t('cell') }} - {{ $t('tag') }} + {{ t('cell') }} + {{ t('tag') }} - + - + diff --git a/src/checkbox/demo/index.vue b/src/checkbox/demo/index.vue index 4bc3db09b..aee4d571b 100644 --- a/src/checkbox/demo/index.vue +++ b/src/checkbox/demo/index.vue @@ -1,98 +1,98 @@ - - {{ $t('checkbox') }} + + {{ t('checkbox') }} - + - {{ $t('checkbox') }} + {{ t('checkbox') }} - {{ $t('checkbox') }} + {{ t('checkbox') }} - + - {{ $t('customColor') }} + {{ t('customColor') }} - + - {{ $t('customColor') }} + {{ t('customColor') }} - + - {{ $t('customIconSize') }} + {{ t('customIconSize') }} - + - {{ $t('customIcon') }} + {{ t('customIcon') }} - + - {{ $t('checkbox') }} + {{ t('checkbox') }} - + - {{ $t('checkbox') }} a - {{ $t('checkbox') }} b + {{ t('checkbox') }} a + {{ t('checkbox') }} b - + - {{ $t('checkbox') }} a - {{ $t('checkbox') }} b + {{ t('checkbox') }} a + {{ t('checkbox') }} b - + - {{ $t('checkbox') }} a - {{ $t('checkbox') }} b - {{ $t('checkbox') }} c + {{ t('checkbox') }} a + {{ t('checkbox') }} b + {{ t('checkbox') }} c - + - {{ $t('checkbox') }} a - {{ $t('checkbox') }} b - {{ $t('checkbox') }} c + {{ t('checkbox') }} a + {{ t('checkbox') }} b + {{ t('checkbox') }} c - {{ $t('checkAll') }} + {{ t('checkAll') }} - {{ $t('inverse') }} + {{ t('inverse') }} - + diff --git a/src/circle/demo/index.vue b/src/circle/demo/index.vue index d41a507a7..445c26605 100644 --- a/src/circle/demo/index.vue +++ b/src/circle/demo/index.vue @@ -1,6 +1,6 @@ - + - + @@ -52,15 +52,15 @@ :speed="100" size="120px" :clockwise="false" - :text="$t('customSize')" + :text="t('customSize')" style="margin-top: 15px;" /> - + - + span: 8 span: 8 @@ -21,7 +21,7 @@ - + span: 8 span: 8 @@ -29,7 +29,7 @@ - + span: 6 span: 6 diff --git a/src/collapse/demo/index.vue b/src/collapse/demo/index.vue index 752010323..fa3a4aa06 100644 --- a/src/collapse/demo/index.vue +++ b/src/collapse/demo/index.vue @@ -1,47 +1,47 @@ - + - - {{ $t('text') }} + + {{ t('text') }} - - {{ $t('text') }} + + {{ t('text') }} - - {{ $t('text') }} + + {{ t('text') }} - + - - {{ $t('text') }} + + {{ t('text') }} - - {{ $t('text') }} + + {{ t('text') }} - - {{ $t('text') }} + + {{ t('text') }} - + - {{ $t('title') + 1 }} + {{ t('title') + 1 }} - {{ $t('text') }} + {{ t('text') }} - {{ $t('text') }} + {{ t('text') }} diff --git a/src/contact-card/demo/index.vue b/src/contact-card/demo/index.vue index c53ba8dbc..33cfa1b7e 100644 --- a/src/contact-card/demo/index.vue +++ b/src/contact-card/demo/index.vue @@ -1,6 +1,6 @@ - + - + - + - - + + - + - + {{ currentTime.hours }} @@ -22,27 +22,23 @@ - + - + - + diff --git a/src/coupon-list/demo/index.vue b/src/coupon-list/demo/index.vue index 0414e5ebd..7758b4021 100644 --- a/src/coupon-list/demo/index.vue +++ b/src/coupon-list/demo/index.vue @@ -1,6 +1,6 @@ - + - + - + - + - + - + - + - {{ $t('alert1') }} + {{ t('alert1') }} - {{ $t('alert2') }} + {{ t('alert2') }} - + - {{ $t('confirm') }} + {{ t('confirm') }} - + - {{ $t('asyncClose') }} + {{ t('asyncClose') }} - + - {{ $t('componentCall') }} + {{ t('componentCall') }} @@ -68,21 +68,21 @@ export default { methods: { onClickAlert() { this.$dialog.alert({ - title: this.$t('title'), - message: this.$t('content'), + title: this.t('title'), + message: this.t('content'), }); }, onClickAlert2() { this.$dialog.alert({ - message: this.$t('content'), + message: this.t('content'), }); }, onClickConfirm() { this.$dialog.confirm({ - title: this.$t('title'), - message: this.$t('content'), + title: this.t('title'), + message: this.t('content'), }); }, @@ -96,8 +96,8 @@ export default { } this.$dialog.confirm({ - title: this.$t('title'), - message: this.$t('content'), + title: this.t('title'), + message: this.t('content'), beforeClose, }); }, diff --git a/src/divider/demo/index.vue b/src/divider/demo/index.vue index 98f20e124..c1ab46bc8 100644 --- a/src/divider/demo/index.vue +++ b/src/divider/demo/index.vue @@ -1,36 +1,36 @@ - + - + - {{ $t('text') }} + {{ t('text') }} - + - {{ $t('text') }} + {{ t('text') }} - {{ $t('text') }} + {{ t('text') }} - + - {{ $t('text') }} + {{ t('text') }} - + - {{ $t('text') }} + {{ t('text') }} diff --git a/src/dropdown-menu/demo/index.vue b/src/dropdown-menu/demo/index.vue index dc1f192cd..18e8ef119 100644 --- a/src/dropdown-menu/demo/index.vue +++ b/src/dropdown-menu/demo/index.vue @@ -1,40 +1,40 @@ - + - + - - - + + + - {{ $t('confirm') }} + {{ t('confirm') }} - + - + - + @@ -97,11 +97,11 @@ export default { computed: { option1() { - return this.$t('option1'); + return this.t('option1'); }, option2() { - return this.$t('option2'); + return this.t('option2'); }, }, diff --git a/src/field/demo/Autosize.vue b/src/field/demo/Autosize.vue index 96d391799..4c0f63513 100644 --- a/src/field/demo/Autosize.vue +++ b/src/field/demo/Autosize.vue @@ -1,12 +1,12 @@ - + diff --git a/src/field/demo/BasicUsage.vue b/src/field/demo/BasicUsage.vue index 5e436f949..842564c89 100644 --- a/src/field/demo/BasicUsage.vue +++ b/src/field/demo/BasicUsage.vue @@ -1,7 +1,7 @@ - + - + diff --git a/src/field/demo/CustomType.vue b/src/field/demo/CustomType.vue index a23faabc2..1c251a865 100644 --- a/src/field/demo/CustomType.vue +++ b/src/field/demo/CustomType.vue @@ -1,33 +1,33 @@ - + diff --git a/src/field/demo/Disabled.vue b/src/field/demo/Disabled.vue index 9910c63de..3674b5ace 100644 --- a/src/field/demo/Disabled.vue +++ b/src/field/demo/Disabled.vue @@ -1,7 +1,7 @@ - - - + + + diff --git a/src/field/demo/ErrorInfo.vue b/src/field/demo/ErrorInfo.vue index d50d3f71e..ff3703872 100644 --- a/src/field/demo/ErrorInfo.vue +++ b/src/field/demo/ErrorInfo.vue @@ -1,18 +1,18 @@ - + diff --git a/src/field/demo/FormatValue.vue b/src/field/demo/FormatValue.vue index 901fd1f92..b750607b4 100644 --- a/src/field/demo/FormatValue.vue +++ b/src/field/demo/FormatValue.vue @@ -1,10 +1,10 @@ - + diff --git a/src/field/demo/InputAlign.vue b/src/field/demo/InputAlign.vue index 28d48353e..9a8bd547d 100644 --- a/src/field/demo/InputAlign.vue +++ b/src/field/demo/InputAlign.vue @@ -1,9 +1,9 @@ - + diff --git a/src/field/demo/InsertButton.vue b/src/field/demo/InsertButton.vue index ffef2b00c..1d1ba881a 100644 --- a/src/field/demo/InsertButton.vue +++ b/src/field/demo/InsertButton.vue @@ -1,15 +1,15 @@ - + - {{ $t('sendSMS') }} + {{ t('sendSMS') }} diff --git a/src/field/demo/ShowIcon.vue b/src/field/demo/ShowIcon.vue index e3529ab0c..03aafbf17 100644 --- a/src/field/demo/ShowIcon.vue +++ b/src/field/demo/ShowIcon.vue @@ -1,18 +1,18 @@ - + diff --git a/src/field/demo/ShowWordLimit.vue b/src/field/demo/ShowWordLimit.vue index c51189ecf..44728e01e 100644 --- a/src/field/demo/ShowWordLimit.vue +++ b/src/field/demo/ShowWordLimit.vue @@ -1,5 +1,5 @@ - + diff --git a/src/form/demo/BasicUsage.vue b/src/form/demo/BasicUsage.vue index ede60f5be..a951291d4 100644 --- a/src/form/demo/BasicUsage.vue +++ b/src/form/demo/BasicUsage.vue @@ -1,24 +1,24 @@ - + - {{ $t('submit') }} + {{ t('submit') }} diff --git a/src/form/demo/FieldType.vue b/src/form/demo/FieldType.vue index 06957faed..4cb694a87 100644 --- a/src/form/demo/FieldType.vue +++ b/src/form/demo/FieldType.vue @@ -1,59 +1,59 @@ - + - + - + - + - {{ $t('checkbox') }} 1 + {{ t('checkbox') }} 1 - {{ $t('checkbox') }} 2 + {{ t('checkbox') }} 2 - + - {{ $t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 1 + {{ t('radio') }} 2 - + - + - + - + @@ -66,7 +66,7 @@ - {{ $t('submit') }} + {{ t('submit') }} diff --git a/src/form/demo/FieldTypeArea.vue b/src/form/demo/FieldTypeArea.vue index 99243ef56..82bf4b5b5 100644 --- a/src/form/demo/FieldTypeArea.vue +++ b/src/form/demo/FieldTypeArea.vue @@ -6,13 +6,13 @@ name="area" :value="value" :border="false" - :label="$t('picker')" - :placeholder="$t('placeholder')" + :label="t('picker')" + :placeholder="t('placeholder')" @click="showArea = true" /> diff --git a/src/form/demo/FieldTypeCalendar.vue b/src/form/demo/FieldTypeCalendar.vue index c971e008f..e73e82504 100644 --- a/src/form/demo/FieldTypeCalendar.vue +++ b/src/form/demo/FieldTypeCalendar.vue @@ -5,8 +5,8 @@ clickable name="calendar" :value="value" - :label="$t('calendar')" - :placeholder="$t('placeholder')" + :label="t('calendar')" + :placeholder="t('placeholder')" @click="showCalendar = true" /> diff --git a/src/form/demo/FieldTypeDatetimePicker.vue b/src/form/demo/FieldTypeDatetimePicker.vue index dfc8facef..3c844df0d 100644 --- a/src/form/demo/FieldTypeDatetimePicker.vue +++ b/src/form/demo/FieldTypeDatetimePicker.vue @@ -6,8 +6,8 @@ name="datetimePicker" :value="value" :border="false" - :label="$t('label')" - :placeholder="$t('placeholder')" + :label="t('label')" + :placeholder="t('placeholder')" @click="showPicker = true" /> diff --git a/src/form/demo/FieldTypePicker.vue b/src/form/demo/FieldTypePicker.vue index 921607160..38a57fcc7 100644 --- a/src/form/demo/FieldTypePicker.vue +++ b/src/form/demo/FieldTypePicker.vue @@ -6,14 +6,14 @@ name="picker" :value="value" :border="false" - :label="$t('picker')" - :placeholder="$t('placeholder')" + :label="t('picker')" + :placeholder="t('placeholder')" @click="showPicker = true" /> diff --git a/src/form/demo/ValidateRules.vue b/src/form/demo/ValidateRules.vue index 275a2158c..a042f7ad3 100644 --- a/src/form/demo/ValidateRules.vue +++ b/src/form/demo/ValidateRules.vue @@ -1,30 +1,30 @@ - + - {{ $t('submit') }} + {{ t('submit') }} @@ -72,7 +72,7 @@ export default { asyncValidator(val) { return new Promise(resolve => { - this.$toast.loading(this.$t('validating')); + this.$toast.loading(this.t('validating')); setTimeout(() => { this.$toast.clear(); diff --git a/src/goods-action/demo/index.vue b/src/goods-action/demo/index.vue index a957bdd34..181ee75d3 100644 --- a/src/goods-action/demo/index.vue +++ b/src/goods-action/demo/index.vue @@ -1,71 +1,71 @@ - + - + - - - - - + + + + + - + - + - - + + - + - - + + @@ -104,10 +104,10 @@ export default { }, methods: { onClickIcon() { - this.$toast(this.$t('clickIcon')); + this.$toast(this.t('clickIcon')); }, onClickButton() { - this.$toast(this.$t('clickButton')); + this.$toast(this.t('clickButton')); }, }, }; diff --git a/src/grid/demo/index.vue b/src/grid/demo/index.vue index 576df01fb..241f0e69b 100644 --- a/src/grid/demo/index.vue +++ b/src/grid/demo/index.vue @@ -1,28 +1,28 @@ - + - + - + - + - + - + - + - + - - + + diff --git a/src/icon/demo/index.vue b/src/icon/demo/index.vue index e25cffc59..9b37e53c1 100644 --- a/src/icon/demo/index.vue +++ b/src/icon/demo/index.vue @@ -1,8 +1,8 @@ - - + + @@ -11,7 +11,7 @@ - + @@ -23,7 +23,7 @@ - + @@ -32,7 +32,7 @@ - + @@ -42,7 +42,7 @@ - + - + - + - + - {{ $t('button1') }} + {{ t('button1') }} - + - {{ $t('button2') }} + {{ t('button2') }} - + - {{ $t('button4') }} + {{ t('button4') }} - + - {{ $t('button3') }} + {{ t('button3') }} - + - {{ $t('componentCall') }} + {{ t('componentCall') }} - {{ $t('index', index) }} + {{ t('index', index) }} diff --git a/src/image/demo/index.vue b/src/image/demo/index.vue index 54af0dcc1..c3abac32f 100644 --- a/src/image/demo/index.vue +++ b/src/image/demo/index.vue @@ -1,12 +1,12 @@ - + - + @@ -15,7 +15,7 @@ - + @@ -24,11 +24,11 @@ - + - {{ $t('defaultTip') }} + {{ t('defaultTip') }} @@ -37,23 +37,23 @@ - {{ $t('customTip') }} + {{ t('customTip') }} - + - {{ $t('defaultTip') }} + {{ t('defaultTip') }} - {{ $t('loadFail') }} + {{ t('loadFail') }} - {{ $t('customTip') }} + {{ t('customTip') }} diff --git a/src/index-bar/demo/index.vue b/src/index-bar/demo/index.vue index 67c08ee4f..0981e9fd4 100644 --- a/src/index-bar/demo/index.vue +++ b/src/index-bar/demo/index.vue @@ -1,26 +1,26 @@ - + - - - + + + - + - {{ $t('title') + index }} + {{ t('title') + index }} - - - + + + diff --git a/src/lazyload/demo/index.vue b/src/lazyload/demo/index.vue index 32da08bbd..1bc3b4f9e 100644 --- a/src/lazyload/demo/index.vue +++ b/src/lazyload/demo/index.vue @@ -1,14 +1,14 @@ - + - + - + diff --git a/src/list/demo/index.vue b/src/list/demo/index.vue index 0a25c2005..0d956b81f 100644 --- a/src/list/demo/index.vue +++ b/src/list/demo/index.vue @@ -1,35 +1,35 @@ - + - + - + diff --git a/src/loading/demo/index.vue b/src/loading/demo/index.vue index 1362e5f7f..16cb624ab 100644 --- a/src/loading/demo/index.vue +++ b/src/loading/demo/index.vue @@ -1,29 +1,29 @@ - + - + - + - + - {{ $t('loading') }} + {{ t('loading') }} - + - {{ $t('loading') }} + {{ t('loading') }} diff --git a/src/nav-bar/demo/index.vue b/src/nav-bar/demo/index.vue index e0cc34982..9b6b85c4f 100644 --- a/src/nav-bar/demo/index.vue +++ b/src/nav-bar/demo/index.vue @@ -1,18 +1,18 @@ - + - - + + @@ -25,10 +25,10 @@ export default { methods: { onClickLeft() { - this.$toast(this.$t('back')); + this.$toast(this.t('back')); }, onClickRight() { - this.$toast(this.$t('button')); + this.$toast(this.t('button')); }, }, }; diff --git a/src/notice-bar/demo/index.vue b/src/notice-bar/demo/index.vue index 4b0954ee5..483bc8474 100644 --- a/src/notice-bar/demo/index.vue +++ b/src/notice-bar/demo/index.vue @@ -1,25 +1,25 @@ - - + + - - + + - - + + - - - + + + - + - - + + - + - + @@ -74,12 +74,12 @@ export default { methods: { showNotify() { - this.$notify(this.$t('content')); + this.$notify(this.t('content')); }, showCustomColor() { this.$notify({ - message: this.$t('customColor'), + message: this.t('customColor'), color: '#ad0000', background: '#ffe1e1', }); @@ -87,14 +87,14 @@ export default { showCustomDuration() { this.$notify({ - message: this.$t('customDuration'), + message: this.t('customDuration'), duration: 1000, }); }, showType(type) { this.$notify({ - message: this.$t('content'), + message: this.t('content'), type, }); }, diff --git a/src/number-keyboard/demo/index.vue b/src/number-keyboard/demo/index.vue index 767370653..782c03201 100644 --- a/src/number-keyboard/demo/index.vue +++ b/src/number-keyboard/demo/index.vue @@ -1,13 +1,13 @@ - + - {{ $t('button1') }} + {{ t('button1') }} - + - {{ $t('button2') }} + {{ t('button2') }} - + @@ -48,14 +48,14 @@ /> - + - {{ $t('button3') }} + {{ t('button3') }} - + - {{ $t('button4') }} + {{ t('button4') }} - + @@ -11,10 +11,10 @@ - + diff --git a/src/pagination/demo/index.vue b/src/pagination/demo/index.vue index b7daa9362..ddeecf243 100644 --- a/src/pagination/demo/index.vue +++ b/src/pagination/demo/index.vue @@ -1,34 +1,34 @@ - + - + - + diff --git a/src/panel/demo/index.vue b/src/panel/demo/index.vue index baa075342..afbb25f35 100644 --- a/src/panel/demo/index.vue +++ b/src/panel/demo/index.vue @@ -1,18 +1,18 @@ - - - {{ $t('content') }} + + + {{ t('content') }} - - - {{ $t('content') }} + + + {{ t('content') }} - {{ $t('button') }} + {{ t('button') }} - {{ $t('button') }} + {{ t('button') }} diff --git a/src/password-input/demo/index.vue b/src/password-input/demo/index.vue index 1455b9c45..d321ade5e 100644 --- a/src/password-input/demo/index.vue +++ b/src/password-input/demo/index.vue @@ -1,9 +1,9 @@ - + @@ -16,7 +16,7 @@ /> - + - + - + - - + + - + - + - + - + - - + + - + - + - + @@ -139,7 +139,7 @@ export default { computed: { columns() { - const column = this.$t('column3'); + const column = this.t('column3'); return [ { values: Object.keys(column), @@ -156,19 +156,19 @@ export default { methods: { onChange1(picker, value, index) { - this.$toast(this.$t('toastContent', value, index)); + this.$toast(this.t('toastContent', value, index)); }, onChange2(picker, values) { - picker.setColumnValues(1, this.$t('column3')[values[0]]); + picker.setColumnValues(1, this.t('column3')[values[0]]); }, onConfirm(value, index) { - this.$toast(this.$t('toastContent', value, index)); + this.$toast(this.t('toastContent', value, index)); }, onCancel() { - this.$toast(this.$t('cancel')); + this.$toast(this.t('cancel')); }, onClickField() { diff --git a/src/popup/demo/index.vue b/src/popup/demo/index.vue index e62bf887c..ffda89d84 100644 --- a/src/popup/demo/index.vue +++ b/src/popup/demo/index.vue @@ -1,21 +1,17 @@ - - + + - {{ $t('content') }} + {{ t('content') }} - - - - - + + + + + - + + - @@ -74,9 +66,9 @@ /> - + @@ -88,9 +80,9 @@ /> - + diff --git a/src/progress/demo/index.vue b/src/progress/demo/index.vue index 7041b551f..f07c9d46f 100644 --- a/src/progress/demo/index.vue +++ b/src/progress/demo/index.vue @@ -1,27 +1,27 @@ - + - + - + - + - + diff --git a/src/pull-refresh/demo/index.vue b/src/pull-refresh/demo/index.vue index c7f2a6da7..e4d7fc031 100644 --- a/src/pull-refresh/demo/index.vue +++ b/src/pull-refresh/demo/index.vue @@ -1,23 +1,23 @@ - + {{ tips }} - + {{ tips }} - + { if (showToast) { - this.$toast(this.$t('success')); + this.$toast(this.t('success')); } this.isLoading = false; diff --git a/src/radio/demo/index.vue b/src/radio/demo/index.vue index 25fda91f9..0a6762822 100644 --- a/src/radio/demo/index.vue +++ b/src/radio/demo/index.vue @@ -1,69 +1,69 @@ - + - {{ $t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 1 + {{ t('radio') }} 2 - + - {{ $t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 1 + {{ t('radio') }} 2 - + - {{ $t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 1 + {{ t('radio') }} 2 - + - {{ $t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 1 + {{ t('radio') }} 2 - + - {{ $t('radio') }} 1 + {{ t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 2 - + - {{ $t('radio') }} 1 + {{ t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 2 - + - {{ $t('radio') }} 1 + {{ t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 2 @@ -71,20 +71,20 @@ - + - {{ $t('radio') }} 1 - {{ $t('radio') }} 2 + {{ t('radio') }} 1 + {{ t('radio') }} 2 - + - + - + diff --git a/src/rate/demo/index.vue b/src/rate/demo/index.vue index 083af7c67..532f22899 100644 --- a/src/rate/demo/index.vue +++ b/src/rate/demo/index.vue @@ -1,14 +1,14 @@ - + - + - + - + - + - + - + - + @@ -86,7 +86,7 @@ export default { methods: { onChange(value) { this.value7 = value; - this.$toast(this.$t('toastContent', value)); + this.$toast(this.t('toastContent', value)); }, }, }; diff --git a/src/search/demo/index.vue b/src/search/demo/index.vue index 75bb4709f..d47c77cb5 100644 --- a/src/search/demo/index.vue +++ b/src/search/demo/index.vue @@ -1,14 +1,14 @@ - - + + - + - + - - + + - + - + - {{ $t('search') }} + {{ t('search') }} @@ -93,7 +93,7 @@ export default { }, onCancel() { - this.$toast(this.$t('cancel')); + this.$toast(this.t('cancel')); }, }, }; diff --git a/src/sidebar/demo/index.vue b/src/sidebar/demo/index.vue index 6090101ba..5ab0d55f8 100644 --- a/src/sidebar/demo/index.vue +++ b/src/sidebar/demo/index.vue @@ -2,38 +2,38 @@ - {{ $t('basicUsage') }} + {{ t('basicUsage') }} - - - + + + - {{ $t('showBadge') }} + {{ t('showBadge') }} - - - + + + - {{ $t('disabled') }} + {{ t('disabled') }} - - - + + + - {{ $t('changeEvent') }} + {{ t('changeEvent') }} - - - + + + @@ -71,7 +71,7 @@ export default { onChange(index) { this.$notify({ type: 'primary', - message: `${this.$t('selectTip')} ${this.$t('title')}${index + 1}`, + message: `${this.t('selectTip')} ${this.t('title')}${index + 1}`, }); }, }, diff --git a/src/skeleton/demo/index.vue b/src/skeleton/demo/index.vue index d4f6f10a1..9dc9591d7 100644 --- a/src/skeleton/demo/index.vue +++ b/src/skeleton/demo/index.vue @@ -1,21 +1,21 @@ - + - + - + - {{ $t('title') }} - {{ $t('desc') }} + {{ t('title') }} + {{ t('desc') }} diff --git a/src/sku/demo/index.vue b/src/sku/demo/index.vue index 64d3dda29..77c09d950 100644 --- a/src/sku/demo/index.vue +++ b/src/sku/demo/index.vue @@ -1,7 +1,7 @@ - + - {{ $t('basicUsage') }} + {{ t('basicUsage') }} - + - {{ $t('title2') }} + {{ t('title2') }} - + - {{ $t('hideSoldoutSku') }} + {{ t('hideSoldoutSku') }} - + - {{ $t('actionsTop') }} + {{ t('actionsTop') }} @@ -122,7 +122,7 @@ type="warning" @click="onPointClicked" > - {{ $t('button1') }} + {{ t('button1') }} - {{ $t('button2') }} + {{ t('button2') }} - {{ $t('advancedUsage') }} + {{ t('advancedUsage') }} diff --git a/src/slider/demo/index.vue b/src/slider/demo/index.vue index a54deba0a..f2278d264 100644 --- a/src/slider/demo/index.vue +++ b/src/slider/demo/index.vue @@ -1,22 +1,22 @@ - + - + - + - + - + - + {{ value6 }} @@ -33,7 +33,7 @@ - + @@ -80,7 +80,7 @@ export default { methods: { onChange(value) { - this.$toast(this.$t('text') + value); + this.$toast(this.t('text') + value); }, }, }; diff --git a/src/stepper/demo/index.vue b/src/stepper/demo/index.vue index e3bd4b894..e4e0758be 100644 --- a/src/stepper/demo/index.vue +++ b/src/stepper/demo/index.vue @@ -1,38 +1,38 @@ - + - + - + - + - + - + - + - + - + diff --git a/src/steps/demo/index.vue b/src/steps/demo/index.vue index 343342921..29ad78eac 100644 --- a/src/steps/demo/index.vue +++ b/src/steps/demo/index.vue @@ -1,42 +1,42 @@ - + - {{ $t('step1') }} - {{ $t('step2') }} - {{ $t('step3') }} - {{ $t('step4') }} + {{ t('step1') }} + {{ t('step2') }} + {{ t('step3') }} + {{ t('step4') }} - {{ $t('nextStep') }} + {{ t('nextStep') }} - + - {{ $t('step1') }} - {{ $t('step2') }} - {{ $t('step3') }} - {{ $t('step4') }} + {{ t('step1') }} + {{ t('step2') }} + {{ t('step3') }} + {{ t('step4') }} - + - {{ $t('status1') }} + {{ t('status1') }} 2016-07-12 12:40 - {{ $t('status2') }} + {{ t('status2') }} 2016-07-11 10:00 - {{ $t('status3') }} + {{ t('status3') }} 2016-07-10 09:30 diff --git a/src/sticky/demo/index.vue b/src/sticky/demo/index.vue index 60faebd6d..e7f1234a6 100644 --- a/src/sticky/demo/index.vue +++ b/src/sticky/demo/index.vue @@ -1,26 +1,26 @@ - + - {{ $t('basicUsage') }} + {{ t('basicUsage') }} - + - {{ $t('offsetTop') }} + {{ t('offsetTop') }} - + - {{ $t('setContainer') }} + {{ t('setContainer') }} diff --git a/src/style/demo/index.vue b/src/style/demo/index.vue index a0c69e5b7..3145bfd3d 100644 --- a/src/style/demo/index.vue +++ b/src/style/demo/index.vue @@ -1,15 +1,15 @@ - - {{ $t('text1') }} - {{ $t('text2') }} + + {{ t('text1') }} + {{ t('text2') }} - + - + diff --git a/src/submit-bar/demo/index.vue b/src/submit-bar/demo/index.vue index 99fae3d1d..82e9a70d8 100644 --- a/src/submit-bar/demo/index.vue +++ b/src/submit-bar/demo/index.vue @@ -1,44 +1,44 @@ - + - + - + - + - {{ $t('check') }} + {{ t('check') }} - {{ $t('tip2') }} + {{ t('tip2') }} - {{ $t('tip3') }} + {{ t('tip3') }} @@ -77,10 +77,10 @@ export default { methods: { onClickButton() { - this.$toast(this.$t('clickButton')); + this.$toast(this.t('clickButton')); }, onClickLink() { - this.$toast(this.$t('clickLink')); + this.$toast(this.t('clickLink')); }, }, }; diff --git a/src/swipe-cell/demo/index.vue b/src/swipe-cell/demo/index.vue index 88da1a0e7..d7ce0629f 100644 --- a/src/swipe-cell/demo/index.vue +++ b/src/swipe-cell/demo/index.vue @@ -1,30 +1,26 @@ - + - + - + - - + + - + @@ -32,24 +28,20 @@ square type="danger" class="delete-button" - :text="$t('delete')" + :text="t('delete')" /> - + - + - + - + @@ -99,7 +91,7 @@ export default { case 'right': this.$dialog .confirm({ - message: this.$t('confirm'), + message: this.t('confirm'), }) .then(() => { instance.close(); diff --git a/src/swipe/demo/index.vue b/src/swipe/demo/index.vue index 4d181d7bb..5833b0de6 100644 --- a/src/swipe/demo/index.vue +++ b/src/swipe/demo/index.vue @@ -1,6 +1,6 @@ - + 1 2 @@ -9,7 +9,7 @@ - + @@ -17,7 +17,7 @@ - + 1 2 @@ -26,7 +26,7 @@ - + - + 1 2 @@ -50,7 +50,7 @@ - + 1 2 @@ -100,7 +100,7 @@ export default { methods: { onChange1(index) { - this.$toast(this.$t('message') + index); + this.$toast(this.t('message') + index); }, onChange2(index) { diff --git a/src/switch-cell/demo/index.vue b/src/switch-cell/demo/index.vue index 5f8f8491e..f79632745 100644 --- a/src/switch-cell/demo/index.vue +++ b/src/switch-cell/demo/index.vue @@ -1,20 +1,20 @@ - + - + - + - + - + - + diff --git a/src/switch/demo/index.vue b/src/switch/demo/index.vue index db3266582..686676ab9 100644 --- a/src/switch/demo/index.vue +++ b/src/switch/demo/index.vue @@ -1,22 +1,22 @@ - + - + - + - + - + - + - - + + @@ -74,8 +74,8 @@ export default { onInput(checked) { this.$dialog .confirm({ - title: this.$t('title'), - message: this.$t('message'), + title: this.t('title'), + message: this.t('message'), }) .then(() => { this.checked4 = checked; diff --git a/src/tab/demo/index.vue b/src/tab/demo/index.vue index f5747ea64..6a72eea9e 100644 --- a/src/tab/demo/index.vue +++ b/src/tab/demo/index.vue @@ -1,103 +1,95 @@ - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} - + - - {{ $t('content') }} 1 - - - {{ $t('content') }} 2 - - - {{ $t('content') }} 3 - + {{ t('content') }} 1 + {{ t('content') }} 2 + {{ t('content') }} 3 - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} - + - {{ $t('content') }} {{ index }} + {{ t('content') }} {{ index }} - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} - + - - {{ $t('tab') }} - - {{ $t('content') }} {{ index }} + {{ t('tab') }} + {{ t('content') }} {{ index }} - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} - + - - {{ $t('content') }} {{ index }} + + {{ t('content') }} {{ index }} @@ -148,7 +140,7 @@ export default { methods: { onClickDisabled(index, title) { - this.$toast(title + this.$t('disabled')); + this.$toast(title + this.t('disabled')); }, onClick(index, title) { diff --git a/src/tabbar/demo/index.vue b/src/tabbar/demo/index.vue index 081e8c80a..40717a09d 100644 --- a/src/tabbar/demo/index.vue +++ b/src/tabbar/demo/index.vue @@ -1,76 +1,76 @@ - + - {{ $t('tab') }} - {{ $t('tab') }} - {{ $t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} + {{ t('tab') }} + {{ t('tab') }} + {{ t('tab') }} - + - {{ $t('tab') }} + {{ t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} - + - {{ $t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} + {{ t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} - + - {{ $t('custom') }} + {{ t('custom') }} - {{ $t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} + {{ t('tab') }} - + - {{ $t('tab') }} - {{ $t('tab') }} - {{ $t('tab') }} - {{ $t('tab') }} + {{ t('tab') }} + {{ t('tab') }} + {{ t('tab') }} + {{ t('tab') }} - + - {{ $t('tab') + 1 }} - {{ $t('tab') + 2 }} - {{ $t('tab') + 3 }} - {{ $t('tab') + 4 }} + {{ t('tab') + 1 }} + {{ t('tab') + 2 }} + {{ t('tab') + 3 }} + {{ t('tab') + 4 }} @@ -116,7 +116,7 @@ export default { onChange(index) { this.$notify({ type: 'primary', - message: `${this.$t('selectTip')} ${this.$t('tab')}${index + 1}`, + message: `${this.t('selectTip')} ${this.t('tab')}${index + 1}`, }); }, }, diff --git a/src/tag/demo/index.vue b/src/tag/demo/index.vue index f3d93c975..6669b2ad7 100644 --- a/src/tag/demo/index.vue +++ b/src/tag/demo/index.vue @@ -1,52 +1,52 @@ - - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} + + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} - - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} + + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} - - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} + + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} - - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} + + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} - - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} + + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} - - {{ $t('tag') }} - {{ $t('tag') }} - {{ $t('tag') }} + + {{ t('tag') }} + {{ t('tag') }} + {{ t('tag') }} - + - {{ $t('tag') }} + {{ t('tag') }} - {{ $t('tag') }} + {{ t('tag') }} diff --git a/src/toast/demo/index.vue b/src/toast/demo/index.vue index 871b833cb..291bdaffe 100644 --- a/src/toast/demo/index.vue +++ b/src/toast/demo/index.vue @@ -1,53 +1,53 @@ - + - + - - - + + + - + - + @@ -98,29 +98,29 @@ export default { showLoadingToast(loadingType) { this.$toast.loading({ forbidClick: true, - message: this.$t('loading'), + message: this.t('loading'), loadingType, }); }, showSuccessToast() { - this.$toast.success(this.$t('text2')); + this.$toast.success(this.t('text2')); }, showFailToast() { - this.$toast.fail(this.$t('text3')); + this.$toast.fail(this.t('text3')); }, showIconToast() { this.$toast({ - message: this.$t('customIcon'), + message: this.t('customIcon'), icon: 'like-o', }); }, showImageToast() { this.$toast({ - message: this.$t('customImage'), + message: this.t('customImage'), icon: 'https://img.yzcdn.cn/vant/logo.png', }); }, @@ -129,14 +129,14 @@ export default { const toast = this.$toast.loading({ duration: 0, forbidClick: true, - message: this.$t('text4', 3), + message: this.t('text4', 3), }); let second = 3; const timer = setInterval(() => { second--; if (second) { - toast.message = this.$t('text4', second); + toast.message = this.t('text4', second); } else { clearInterval(timer); this.$toast.clear(); diff --git a/src/tree-select/demo/index.vue b/src/tree-select/demo/index.vue index 97ff8257b..029f86bd5 100644 --- a/src/tree-select/demo/index.vue +++ b/src/tree-select/demo/index.vue @@ -1,6 +1,6 @@ - + - + - + - + - + - + - + - + - + - + - {{ this.$t('upload') }} + {{ this.t('upload') }} - + @@ -80,12 +80,12 @@ export default { { url: 'https://img.yzcdn.cn/vant/leaf.jpg', status: 'uploading', - message: this.$t('uploading'), + message: this.t('uploading'), }, { url: 'https://img.yzcdn.cn/vant/tree.jpg', status: 'failed', - message: this.$t('failed'), + message: this.t('failed'), } ); }, @@ -93,7 +93,7 @@ export default { methods: { beforeRead(file) { if (file.type !== 'image/jpeg') { - this.$toast(this.$t('invalidType')); + this.$toast(this.t('invalidType')); return false; } @@ -106,11 +106,11 @@ export default { afterReadFailed(item) { item.status = 'uploading'; - item.message = this.$t('uploading'); + item.message = this.t('uploading'); setTimeout(() => { item.status = 'failed'; - item.message = this.$t('failed'); + item.message = this.t('failed'); }, 1000); }, },
{{ tips }}
{{ $t('desc') }}
{{ t('desc') }}
2016-07-12 12:40
2016-07-11 10:00
2016-07-10 09:30