-
Notifications
You must be signed in to change notification settings - Fork 834
Open
Description
不支持element-plus的自定义命名空间,
App.vue
<template> <el-config-provider namespace="ep"> <ConfigGlobal :size="currentSize"> <RouterView :class="greyMode ? ${prefixCls}-grey-mode : ''" /> </ConfigGlobal> </el-config-provider> </template>
main.ts
app.use(ElementPlus, { namespace: 'ep' })
vite.config.ts
scss: { additionalData:@use "@/styles/element/index.scss" as *;, },
styles/element/index.scss
// we can add this to custom namespace, default is 'el' @forward 'element-plus/theme-chalk/src/mixins/config.scss' with ( $namespace: 'ep' // 这里'ep'可替换为你想要的任意前缀 );

Metadata
Metadata
Assignees
Labels
No labels