File tree Expand file tree Collapse file tree 5 files changed +20
-7
lines changed
packages/veui/src/components Expand file tree Collapse file tree 5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
### ⚠️ 非兼容性变更
4
4
5
- * [ ^] ` Uploader ` 组件在 ` maxCount ` 的值是 ` 1 ` 的情况下,` value ` 的默认类型从字符串改成对象,可以通过设置 prop ` compat ` 为 ` true ` 将 ` value ` 的类型设置为字符串兼容旧版本。
5
+ * [ ^] ` Uploader ` 组件在 ` maxCount ` 的值是 ` 1 ` 的情况下,` value ` 的默认类型从字符串改成对象,可以通过设置 prop ` compat ` 为 ` true ` 将 ` value ` 的类型设置为字符串兼容旧版本。` compat ` 模式未来不会移除,但不建议使用。
6
6
7
7
> #### 迁移指南
8
8
>
35
35
> 使用 `Textarea` 组件进行替代:
36
36
>
37
37
> ```html
38
- > <veui-textarea v-model =" value" />
38
+ > <veui-textarea v-model =" value" ... />
39
39
> ```
40
40
41
- * [^] 将 `OptionGroup` 的 `position` 属性的 `popout` 值重命名为了 `popup`(与 `aria-haspopup` 保持一致)。将在下个版本移除对 `popout` 的支持。
42
- * [^] 将 `Progress` 组件的 `precision` prop 重命名为和 `NumberInput` 一致的 `decimal-place`。`precision` 将在正式版移除 。
41
+ * [^] 将 `OptionGroup` 的 `position` 属性的 `popout` 值重命名为了 `popup`(与 `aria-haspopup` 保持一致)。将在 `1.0.0` 移除对 `popout` 的支持。
42
+ * [^] 将 `Progress` 组件的 `precision` prop 重命名为和 `NumberInput` 一致的 `decimal-place`。`precision` 将在 `1.0.0` 移除 。
43
43
44
44
### 💡 主要变更
45
45
303
303
> }
304
304
> ```
305
305
306
+ * [^] 将 `Pager` 组件重命名为 `Pagination`。暂时保留兼容,`Pager` 将在 `1.0.0` 移除。
307
+
306
308
### 🐞 问题修复
307
309
308
310
* [^] 修正了 `Carousel` 组件 slot 的位置。
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ import warn from '../utils/warn'
7
7
export default {
8
8
...Pagination ,
9
9
created ( ) {
10
- warn ( '[veui-pager] `Pager` is deprecated and will be removed in the next version . Use `Pagination` component instead.' )
10
+ warn ( '[veui-pager] `Pager` is deprecated and will be removed in `1.0.0` . Use `Pagination` component instead.' )
11
11
}
12
12
}
Original file line number Diff line number Diff line change 31
31
<script >
32
32
import ui from ' ../mixins/ui'
33
33
import Icon from ' ./Icon'
34
+ import warn from ' ../utils/warn'
34
35
35
36
const RADIUS_DEFAULT = 60
36
37
const STROKE_DEFAULT = 2
@@ -57,7 +58,12 @@ export default {
57
58
*/
58
59
precision: {
59
60
type: Number ,
60
- default: 0
61
+ default: 0 ,
62
+ validator (val ) {
63
+ if (val !== 0 ) {
64
+ warn (' [veui-progress] `precision` is deprecated and will be removed in `1.0.0`. Use `decimal-place` instead.' )
65
+ }
66
+ }
61
67
},
62
68
decimalPlace: {
63
69
type: Number
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import outside from '../../directives/outside'
12
12
import ' ../../common/uiTypes'
13
13
import { walk } from ' ../../utils/data'
14
14
import { isType } from ' ../../utils/helper'
15
+ import warn from ' ../../utils/warn'
15
16
import { pull } from ' lodash'
16
17
17
18
export default {
@@ -33,6 +34,9 @@ export default {
33
34
type: String ,
34
35
default: ' inline' ,
35
36
validator (val ) {
37
+ if (val === ' popout' ) {
38
+ warn (' [veui-option-group] `popout` is a deprecated value for `position` and will be removed in `v1.0.0`. Use `popup` component instead.' )
39
+ }
36
40
return [' inline' , ' popout' , ' popup' ].indexOf (val) !== - 1
37
41
}
38
42
}
Original file line number Diff line number Diff line change @@ -255,8 +255,9 @@ export default {
255
255
type: Boolean ,
256
256
default: true ,
257
257
validator (val ) {
258
+ // TODO: remove support in 1.0.0
258
259
if (val === false ) {
259
- warn (' [veui-uploader] `auto-upload` is deprecated and will be removed in the next version . Use `autoupload` instead.' )
260
+ warn (' [veui-uploader] `auto-upload` is deprecated and will be removed in `1.0.0` . Use `autoupload` instead.' )
260
261
}
261
262
return true
262
263
}
You can’t perform that action at this time.
0 commit comments