Skip to content

Commit 4a4350d

Browse files
committed
feat: update veui and type -> status
1 parent 2539003 commit 4a4350d

28 files changed

+226
-203
lines changed

one/docs/components/alert-box.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## 示例
44

5-
### 类型
5+
### 状态
66

7-
`AlertBox` 有三种类型,分别是 `info``success``error`,可以通过 [`type`](#props-type) 属性指定不同的类型
7+
`AlertBox` 有三种状态,分别是 `info``success``error`,可以通过 [`status`](#props-status) 属性指定不同的状态
88

9-
[[ demo src="/demo/alert-box/type.vue" ]]
9+
[[ demo src="/demo/alert-box/status.vue" ]]
1010

1111
### 标题
1212

@@ -21,7 +21,8 @@
2121
| 名称 | 类型 | 默认值 | 描述 |
2222
| -- | -- | -- | -- |
2323
| ``open`` | `boolean` | `false` | [^open] |
24-
| ``type`` | `string` | `'success'` | [^type] |
24+
| ``status`` | `string` | `'success'` | [^status] |
25+
| ``type`` | `string` | `'success'` | 已废弃。请使用 [`status`](#props-status) 属性代替。 |
2526
| ``title`` | `string` | - | 标题。 |
2627
| ``loading`` | `boolean` | `false` | 是否处于加载状态。处于加载状态时确定按钮也将进入加载状态,无法点击。 |
2728
| ``disabled`` | `boolean` | `false` | 是否处于禁用状态。处于禁用状态时确定按钮也将进入禁用状态,无法点击。 |
@@ -38,15 +39,15 @@
3839
是否显示警告弹框。
3940
^^^
4041

41-
^^^type
42-
警告框类型
42+
^^^status
43+
警告框状态
4344

4445
+++枚举值
4546
|| 描述 |
4647
| -- | -- |
47-
| `info` | 信息提示样式|
48-
| `success` | 成功样式|
49-
| `error` | 错误样式|
48+
| `info` | 信息提示状态|
49+
| `success` | 成功状态|
50+
| `error` | 错误状态|
5051
+++
5152
^^^
5253

one/docs/components/alert.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## 示例
44

5-
### 类型
5+
### 状态
66

7-
`Alert` 有四种类型,分别是 `success``info``warning``error`,可以通过 [`type`](#props-type) 属性指定不同的类型
7+
`Alert` 有四种状态,分别是 `success``info``warning``error`,可以通过 [`status`](#props-status) 属性指定不同的状态
88

9-
[[ demo src="/demo/alert/type.vue" ]]
9+
[[ demo src="/demo/alert/status.vue" ]]
1010

1111
### 多消息切换
1212

@@ -32,23 +32,24 @@
3232

3333
| 名称 | 类型 | 默认值 | 描述 |
3434
| -- | -- | -- | -- |
35-
| ``type`` | `string` | `'success'` | [^type] |
35+
| ``status`` | `string` | `'success'` | [^status] |
36+
| ``type`` | `string` | `'success'` | 已废弃。请使用 [`status`](#props-status) 属性代替。 |
3637
| ``title`` | `string` | - | 消息标题。 |
3738
| ``message`` | `string | Array<string>` | - | 消息内容,当类型为数组时会显示多条数据并支持切换上一条/下一条。 |
3839
| ``closable`` | `boolean` | `false` | 是否允许关闭。 |
3940
| ``open`` | `boolean` | `true` | [^open] |
4041
| ``index`` | `number` | `0` | [^index] |
4142

42-
^^^type
43-
警告框类型
43+
^^^status
44+
警告框的上下文状态
4445

4546
+++枚举值
4647
|| 描述 |
4748
| -- | -- |
48-
| `info` | 信息提示样式|
49-
| `success` | 成功样式|
50-
| `warning` | 警告样式|
51-
| `error` | 错误样式|
49+
| `info` | 信息提示状态|
50+
| `success` | 成功状态|
51+
| `warning` | 警告状态|
52+
| `error` | 错误状态|
5253
+++
5354
^^^
5455

one/docs/components/badge.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,23 @@
3232

3333
| 名称 | 类型 | 默认值 | 描述 |
3434
| -- | -- | -- | -- |
35-
| ``type`` | `string` | `'error'` | [^type] |
35+
| ``status`` | `string` | `'error'` | [^status] |
36+
| ``type`` | `string` | `'error'` | 已废弃。请使用 [`status`](#props-status) 属性代替。 |
3637
| ``value`` | `string | number` | - | 徽标内容值。为 `number` 类型值时,会受 [`max`](#props-max) 属性限制。为 `string` 类型时,`max` 会被忽略。 |
3738
| ``max`` | `number` | `badge.max` | 徽标数值的最大值,当 `value` 超过此值时,徽标内容会显示为 `{max}+`。当 `value``string` 时会被忽略。 |
3839
| ``hidden`` | `boolean` | `false` | 是否处于隐藏状态。 |
3940

40-
^^^type
41-
徽标状态类型。自带样式的可选值如下。使用其它值时需要自行定义 `.veui-badge-{type}` 的样式。
41+
^^^status
42+
徽标状态。自带状态的可选值如下。使用其它值时需要自行定义 `.veui-badge-{status}` 的样式。
4243

4344
+++枚举值
4445
|| 描述 |
4546
| -- | -- |
46-
| `info` | 信息提示样式|
47-
| `success` | 成功样式|
48-
| `warning` | 警告样式|
49-
| `error` | 错误样式|
50-
| `aux` | 辅助样式|
47+
| `info` | 信息提示状态|
48+
| `success` | 成功状态|
49+
| `warning` | 警告状态|
50+
| `error` | 错误状态|
51+
| `aux` | 辅助状态|
5152
+++
5253
^^^
5354

one/docs/components/tag.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
| 名称 | 类型 | 默认值 | 描述 |
3434
| -- | -- | -- | -- |
3535
| ``ui`` | `string` | - | [^ui] |
36-
| ``type`` | `string` | `'default'` | [^type] |
36+
| ``status`` | `string` | `'default'` | [^status] |
37+
| ``type`` | `string` | `'default'` | 已废弃。请使用 [`status`](#props-status) 属性代替。 |
3738
| ``color`` | `string` | - | 预设的彩色标签颜色名。目前支持的有 `'turquoise' | 'violet' | 'green'`。 |
3839
| ``selectable`` | `boolean` | `false` | 是否允许选择。 |
3940
| ``selected`` | `boolean` | `false` | [^selected] |
@@ -54,8 +55,8 @@
5455
+++
5556
^^^
5657

57-
^^^type
58-
标签类型
58+
^^^status
59+
标签状态
5960

6061
+++枚举值
6162
|| 描述 |

one/docs/components/toast.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## 示例
44

5-
### 类型
5+
### 状态
66

7-
`Toast` 有四种类型,分别是 `info``success``warning``error`,可以通过 [`type`](#props-type) 属性指定不同的类型
7+
`Toast` 有四种状态,分别是 `info``success``warning``error`,可以通过 [`status`](#props-status) 属性指定不同的状态
88

99
[[ demo src="/demo/toast/default.vue" ]]
1010

@@ -21,7 +21,8 @@
2121
| 名称 | 类型 | 默认值 | 描述 |
2222
| -- | -- | -- | -- |
2323
| ``open`` | `boolean` | `false` | [^open] |
24-
| ``type`` | `string` | `'success'` | [^type] |
24+
| ``status`` | `string` | `'success'` | [^status] |
25+
| ``type`` | `string` | `'success'` | 已废弃。请使用 [`status`](#props-status) 属性代替。 |
2526
| ``title`` | `string` | - | 消息标题。 |
2627
| ``message`` | `string` | - | 消息内容。 |
2728
| ``duration`` | `number` | `toast.duration` | 消息展示时间毫秒数,超过此事件则消息提示自动关闭。 |
@@ -35,7 +36,7 @@
3536
是否显示消息提示。
3637
^^^
3738

38-
^^^type
39+
^^^status
3940
警告框类型。
4041

4142
+++枚举值

one/docs/demo/alert-box/type.vue renamed to one/docs/demo/alert-box/status.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</veui-button>
1212

1313
<veui-alert-box
14-
type="success"
14+
status="success"
1515
:open.sync="successOpen"
1616
>
1717
<template #title>
@@ -21,7 +21,7 @@
2121
</veui-alert-box>
2222

2323
<veui-alert-box
24-
type="error"
24+
status="error"
2525
:open.sync="errorOpen"
2626
>
2727
<template #title>
@@ -31,7 +31,7 @@
3131
</veui-alert-box>
3232

3333
<veui-alert-box
34-
type="info"
34+
status="info"
3535
:open.sync="infoOpen"
3636
>
3737
<template #title>

one/docs/demo/alert/type.vue renamed to one/docs/demo/alert/status.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22
<article>
3-
<veui-alert type="success">
3+
<veui-alert status="success">
44
Your profile has been updated.
55
</veui-alert>
6-
<veui-alert type="info">
6+
<veui-alert status="info">
77
Press any key to continue...
88
</veui-alert>
9-
<veui-alert type="warning">
9+
<veui-alert status="warning">
1010
<code>slot-scope</code> is deprecated. Use <code>v-slot</code> instead.
1111
</veui-alert>
1212
<veui-alert
13-
type="error"
13+
status="error"
1414
message="Uncaught SyntaxError: Unexpected token +"
1515
/>
1616
</article>

one/docs/demo/badge/corner-dot.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<template>
22
<article>
33
<section>
4-
<veui-badge type="success">
4+
<veui-badge status="success">
55
Running
66
</veui-badge>
7-
<veui-badge type="info">
7+
<veui-badge status="info">
88
New
99
</veui-badge>
1010
<veui-badge>
1111
Rejected
1212
</veui-badge>
13-
<veui-badge type="warning">
13+
<veui-badge status="warning">
1414
Auditing
1515
</veui-badge>
16-
<veui-badge type="aux">
16+
<veui-badge status="aux">
1717
Expired
1818
</veui-badge>
1919
</section>

one/docs/demo/badge/dot.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
<section>
44
<veui-badge
55
value="Running"
6-
type="success"
6+
status="success"
77
/>
88
<veui-badge
99
value="New"
10-
type="info"
10+
status="info"
1111
/>
1212
<veui-badge value="Rejected"/>
1313
<veui-badge
1414
value="Auditing"
15-
type="warning"
15+
status="warning"
1616
/>
1717
<veui-badge
1818
value="Expired"
19-
type="aux"
19+
status="aux"
2020
/>
2121
</section>
2222
</article>

one/docs/demo/badge/text.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<article>
33
<veui-badge
44
value="New"
5-
type="success"
5+
status="success"
66
>
77
<veui-button>View</veui-button>
88
</veui-badge>
99
<veui-badge
1010
value="New"
11-
type="info"
11+
status="info"
1212
>
1313
<veui-button>View</veui-button>
1414
</veui-badge>
@@ -17,13 +17,13 @@
1717
</veui-badge>
1818
<veui-badge
1919
value="New"
20-
type="warning"
20+
status="warning"
2121
>
2222
<veui-button>View</veui-button>
2323
</veui-badge>
2424
<veui-badge
2525
value="New"
26-
type="aux"
26+
status="aux"
2727
>
2828
<veui-button>View</veui-button>
2929
</veui-badge>
@@ -50,9 +50,9 @@ export default {
5050
</style>
5151

5252
<docs>
53-
可以使用 [`type`](#props-type) 属性,指定徽标在不同功能状态下的样式
53+
可以使用 [`status`](#props-status) 属性,指定徽标的不同状态
5454
</docs>
5555

5656
<docs locale="en-US">
57-
Use the [`type`](#props-type) prop to apply different contextual styles.
57+
Use the [`status`](#props-status) prop to apply different contextual status.
5858
</docs>

0 commit comments

Comments
 (0)