Closed sHow8e closed 10 months ago
因为插件内部处理机制,导致token固化的缘故。
当前插件无法彻底把css变量前缀改得很彻底。
虽然 有 @arco-cssvars-prefix: if(@arco-vars-prefix = ~'', -, ~'--@{arco-vars-prefix}') 这种语句。
@arco-cssvars-prefix: if(@arco-vars-prefix = ~'', -, ~'--@{arco-vars-prefix}')
但是token在处理前值已经固化了。如果要想实现css变量的变更。使用时要配置如下才能生效
modifyVars: { prefix: 've-o', 'arco-vars-prefix': 've-o', 'arco-cssvars-prefix': '--ve-o', // 此处要显性添加 },
feature
master
Types of changes
Background and context
因为插件内部处理机制,导致token固化的缘故。
当前插件无法彻底把css变量前缀改得很彻底。
Solution
虽然 有
@arco-cssvars-prefix: if(@arco-vars-prefix = ~'', -, ~'--@{arco-vars-prefix}')
这种语句。但是token在处理前值已经固化了。如果要想实现css变量的变更。使用时要配置如下才能生效
modifyVars: { prefix: 've-o', 'arco-vars-prefix': 've-o', 'arco-cssvars-prefix': '--ve-o', // 此处要显性添加 },
How is the change tested?
Changelog
Checklist:
feature
branch and others should be submitted tomaster
branch)Other information