diff --git a/docs/en-US/guide/i18n.md b/docs/en-US/guide/i18n.md index 22ef4f4a5159f..33a330859bcf2 100644 --- a/docs/en-US/guide/i18n.md +++ b/docs/en-US/guide/i18n.md @@ -14,7 +14,7 @@ Element Plus provides global configurations ```typescript import ElementPlus from 'element-plus' -import zhCn from 'element-plus/dist/locale/zh-cn.mjs' +import zhCn from 'element-plus/es/locale/lang/zh-cn' app.use(ElementPlus, { locale: zhCn, @@ -37,7 +37,7 @@ for globally configuring locale and other settings. import { defineComponent } from 'vue' import { ElConfigProvider } from 'element-plus' - import zhCn from 'element-plus/dist/locale/zh-cn.mjs' + import zhCn from 'element-plus/es/locale/lang/zh-cn' export default defineComponent({ components: { diff --git a/packages/components/button/src/button.vue b/packages/components/button/src/button.vue index 8d0abf5004740..c8dd277d6b5b5 100644 --- a/packages/components/button/src/button.vue +++ b/packages/components/button/src/button.vue @@ -3,19 +3,7 @@ :is="tag" ref="_ref" v-bind="_props" - :class="[ - ns.b(), - ns.m(_type), - ns.m(_size), - ns.is('disabled', _disabled), - ns.is('loading', loading), - ns.is('plain', plain), - ns.is('round', round), - ns.is('circle', circle), - ns.is('text', text), - ns.is('link', link), - ns.is('has-bg', bg), - ]" + :class="buttonKls" :style="buttonStyle" @click="handleClick" > @@ -39,6 +27,7 @@