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 @@ @@ -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 @@