Browse Source

解决less问题

pull/1/head
zongjl 2 years ago
parent
commit
8bb8984f87
1 changed files with 5 additions and 17 deletions
  1. +5
    -17
      vue.config.js

+ 5
- 17
vue.config.js View File

@@ -21,23 +21,11 @@ module.exports = {
lessOptions: {
javascriptEnabled: true,
// plugins: [new DynamicAntdLess()]
plugins: [
new DynamicAntdLess({
variables: {
'@info-color-deprecated-bg': 'var(--primary-1)',
'@info-color-deprecated-border': 'var(--primary-3)',
'@success-color-hover': 'var(--green-5)',
'@success-color-active': 'var(--green-7)',
'@success-color-outline': 'var(--green-2)',
'@success-color-deprecated-bg': 'var(--green-1)',
'@success-color-deprecated-border': 'var(--green-3)'
},
replaces: {
'box-shadow: 0 0 0 2px fade(@disabled-color, 10%)':
'box-shadow: 0 0 0 2px var(--primary-fade-20)'
}
})
]
plugins: [new DynamicAntdLess({
replaces: {
'darken(@shadow-color, 5%)': '@shadow-color'
}
})]
}
}
}

Loading…
Cancel
Save