签入版本
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type { App } from 'vue';
|
||||
import ElementPlus from 'element-plus';
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
||||
|
||||
//全局按需加载示例 | 也可以使用官方推荐自动按需导入 在 build\vite\plugin\index.ts 中使用
|
||||
// import { ElButton, ElForm, ElFormItem, ElInput } from 'element-plus';
|
||||
|
||||
// const components = [ElButton, ElForm, ElFormItem, ElInput];
|
||||
|
||||
// export function registerApp(app: any) {
|
||||
// for (const component of components) {
|
||||
// app.component(component.name, component);
|
||||
// }
|
||||
// }
|
||||
|
||||
export function setupElement(app: App<Element>) {
|
||||
app.use(ElementPlus, {
|
||||
locale: zhCn,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user