breaking change: shorter css var names
This commit is contained in:
@@ -142,7 +142,7 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
- Circle: add start-position prop [#9305](https://github.com/youzan/vant/issues/9305)
|
||||
- Slider: add reverse prop [#9308](https://github.com/youzan/vant/issues/9308)
|
||||
- NumberKeyboard: add van-number-keyboard-key-background-color css var [#9303](https://github.com/youzan/vant/issues/9303)
|
||||
- NumberKeyboard: add van-number-keyboard-key-background css var [#9303](https://github.com/youzan/vant/issues/9303)
|
||||
- PasswordInput: add password-input-text-color css var [#9304](https://github.com/youzan/vant/issues/9304)
|
||||
|
||||
**Bug Fixes**
|
||||
@@ -401,7 +401,7 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
**Feature**
|
||||
|
||||
- ActionBar: add @action-bar-icon-background-color less var [#8474](https://github.com/youzan/vant/issues/8474)
|
||||
- ActionBar: add @action-bar-icon-background less var [#8474](https://github.com/youzan/vant/issues/8474)
|
||||
- Popover: bump @popperjs/core@2.9.2 [0d1323](https://github.com/youzan/vant/commit/0d132337d5d263957a7993d60e47a18efec7313e)
|
||||
- perf: reduce bundle size [ba3e6d](https://github.com/youzan/vant/commit/ba3e6d56a0bc7ae3acc25b1380f054da3b9b020f)
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
- Circle: 新增 start-position 属性 [#9305](https://github.com/youzan/vant/issues/9305)
|
||||
- Slider: 新增 reverse 属性 [#9308](https://github.com/youzan/vant/issues/9308)
|
||||
- NumberKeyboard: 新增 van-number-keyboard-key-background-color CSS 变量 [#9303](https://github.com/youzan/vant/issues/9303)
|
||||
- NumberKeyboard: 新增 van-number-keyboard-key-background CSS 变量 [#9303](https://github.com/youzan/vant/issues/9303)
|
||||
- PasswordInput: add password-input-text-color CSS 变量 [#9304](https://github.com/youzan/vant/issues/9304)
|
||||
|
||||
**Bug Fixes**
|
||||
@@ -402,7 +402,7 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
**Feature**
|
||||
|
||||
- ActionBar: 新增 @action-bar-icon-background-color 样式变量 [#8474](https://github.com/youzan/vant/issues/8474)
|
||||
- ActionBar: 新增 @action-bar-icon-background 样式变量 [#8474](https://github.com/youzan/vant/issues/8474)
|
||||
- Popover: 升级依赖的 @popperjs/core 到 2.9.2 版本 [0d1323](https://github.com/youzan/vant/commit/0d132337d5d263957a7993d60e47a18efec7313e)
|
||||
- perf: 优化包体积 [ba3e6d](https://github.com/youzan/vant/commit/ba3e6d56a0bc7ae3acc25b1380f054da3b9b020f)
|
||||
|
||||
@@ -965,7 +965,7 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
- Button: 新增 icon-position 属性 [#7174](https://github.com/youzan/vant/issues/7174)
|
||||
- slider: 新增 range 属性,支持范围选择 [#7175](https://github.com/youzan/vant/issues/7175)
|
||||
- TabbarItem: 新增 @tabbar-item-active-background-color 变量 [#7162](https://github.com/youzan/vant/issues/7162)
|
||||
- TabbarItem: 新增 @tabbar-item-active-background 变量 [#7162](https://github.com/youzan/vant/issues/7162)
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
|
||||
@@ -10,6 +10,25 @@
|
||||
|
||||
不再支持基于 Less 变量进行主题定制,请使用 [ConfigProvider 全局配置](#/zh-CN/config-provider) 组件进行主题配置。
|
||||
|
||||
### CSS 变量名称简化
|
||||
|
||||
为了便于使用 CSS 变量,我们对部分 CSS 变量的名称进行了简化,使用更短的单词代替:
|
||||
|
||||
```
|
||||
text-link -> link
|
||||
box-shadow -> shadow
|
||||
font-family -> font
|
||||
border-radius -> radius
|
||||
background-color -> background
|
||||
font-weight-bold -> font-bold
|
||||
border-width-base -> border-width
|
||||
price-integer-font -> price-font
|
||||
animation-duration -> duration
|
||||
transition-duration -> duration
|
||||
animation-timing-function-enter -> ease-out
|
||||
animation-timing-function-leave -> ease-in
|
||||
```
|
||||
|
||||
### API 调整
|
||||
|
||||
#### Picker
|
||||
|
||||
Reference in New Issue
Block a user