path iview style variable
path-iview-variableiView-ui(view-design) 的样式使用 css var 编译,并配合 @iel/varx 和 color 进行适配动态换肤。
shell
// 基于 @iel/varx、color
npm i -S @iel/varx color @iel/patch-iview-variable
// or
yarn add @iel/varx color @iel/patch-iview-variable
`
使用
`js
import { createVarx } from '@iel/varx'
import patchIViewVariable from '@iel/patch-iview-variable'
const varx = createVarx({ plugins: [patchIViewVariable()] })
`
`less
@import '~@iel/patch-iview-variable/styles/index.less';
``