diff --git a/src/button/button.md b/src/button/button.md index e6300ca340..84885f54ac 100644 --- a/src/button/button.md +++ b/src/button/button.md @@ -17,7 +17,7 @@ icon | Slot / Function | - | 按钮内部图标,可完全自定义。TS 类型 loading | Boolean | false | 是否显示为加载状态 | N shape | String | rectangle | 按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形。可选项:rectangle/square/round/circle | N loadingProps | Object | - | 透传加载组件全部属性。TS 类型:`Partial`,[Loading API Documents](./loading?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/button/type.ts) | N -size | String | medium | 组件尺寸。可选项:extra-small/small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N +size | String | medium | 组件尺寸。可选项:small/medium/large。TS 类型:`SizeEnum`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N suffix | Slot / Function | - | 右侧内容,可用于定义右侧图标。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N tag | String | - | 渲染按钮的 HTML 标签,默认使用标签 ` ); diff --git a/test/unit/snap/__snapshots__/csr.test.js.snap b/test/unit/snap/__snapshots__/csr.test.js.snap index 4f7c76f1c2..a88f24751f 100644 --- a/test/unit/snap/__snapshots__/csr.test.js.snap +++ b/test/unit/snap/__snapshots__/csr.test.js.snap @@ -44708,7 +44708,7 @@ exports[`csr snapshot test > csr test ./src/config-provider/_example/others.vue class="t-transfer__operations" > @@ -172196,7 +172184,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/base.vue 1`] = ` class="t-transfer__operations" > @@ -172877,7 +172853,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/checked.vue 1`] = class="t-transfer__operations" > @@ -174339,7 +174303,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/custom-render.vue class="t-transfer__operations" > @@ -174771,7 +174723,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/disabled.vue 1`] = class="t-transfer__operations" > @@ -175223,7 +175163,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/empty.vue 1`] = ` class="t-transfer__operations" > @@ -175412,7 +175340,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/empty.vue 1`] = ` class="t-transfer__operations" > @@ -175945,7 +175861,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/pagination.vue 1`] class="t-transfer__operations" > @@ -176654,7 +176558,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/search.vue 1`] = ` class="t-transfer__operations" > @@ -177363,7 +177255,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/target-draggable.v class="t-transfer__operations" > @@ -177796,7 +177676,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/target-value.vue 1 class="t-transfer__operations" > @@ -178710,7 +178578,7 @@ exports[`csr snapshot test > csr test ./src/transfer/_example/tree.vue 1`] = ` class="t-transfer__operations" > diff --git a/test/unit/snap/__snapshots__/ssr.test.js.snap b/test/unit/snap/__snapshots__/ssr.test.js.snap index 6a389e4db5..6e719a7aa6 100644 --- a/test/unit/snap/__snapshots__/ssr.test.js.snap +++ b/test/unit/snap/__snapshots__/ssr.test.js.snap @@ -299,7 +299,7 @@ exports[`ssr snapshot test > ssr test ./src/config-provider/_example/global.vue exports[`ssr snapshot test > ssr test ./src/config-provider/_example/input.vue 1`] = `"
"`; -exports[`ssr snapshot test > ssr test ./src/config-provider/_example/others.vue 1`] = `"


0 / 20
0 / 0
Empty Data





















Feature Tag
Feature Tag
Feature Tag
Feature Tag


Tree Empty Data


Department A
Department B



First Step
You need to click the blue button
Second Step
Fill your base information into the form
Error Step
Something Wrong! Custom Error Icon!
4
Last Step
You haven't finish this step.


loading
"`; +exports[`ssr snapshot test > ssr test ./src/config-provider/_example/others.vue 1`] = `"


0 / 20
0 / 0
Empty Data





















Feature Tag
Feature Tag
Feature Tag
Feature Tag


Tree Empty Data


Department A
Department B



First Step
You need to click the blue button
Second Step
Fill your base information into the form
Error Step
Something Wrong! Custom Error Icon!
4
Last Step
You haven't finish this step.


loading
"`; exports[`ssr snapshot test > ssr test ./src/config-provider/_example/pagination.vue 1`] = `"
Total 36 items
10 / page
  • 1
  • 2
  • 3
  • 4
jump to
/ 4
"`; @@ -1334,27 +1334,27 @@ exports[`ssr snapshot test > ssr test ./src/tooltip/_example/trigger.vue 1`] = ` exports[`ssr snapshot test > ssr test ./src/tooltip/_example/with-popup-or-popconfirm.vue 1`] = `"
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/base.vue 1`] = `"
1 / 20 项
0 / 0 项
暂无数据
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/base.vue 1`] = `"
1 / 20 项
0 / 0 项
暂无数据
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/checked.vue 1`] = `"
5 / 20 项
0 / 0 项
暂无数据
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/checked.vue 1`] = `"
5 / 20 项
0 / 0 项
暂无数据
"`; exports[`ssr snapshot test > ssr test ./src/transfer/_example/custom.vue 1`] = `"
0 / 20 项
来源
选中并加入
0 / 0 项
目标
暂无数据
选中并移除
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/custom-render.vue 1`] = `"
0 / 20 项
0 / 0 项
暂无数据
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/custom-render.vue 1`] = `"
0 / 20 项
0 / 0 项
暂无数据
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/disabled.vue 1`] = `"
0 / 10 项
0 / 10 项
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/disabled.vue 1`] = `"
0 / 10 项
0 / 10 项
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/empty.vue 1`] = `"

默认暂无数据

0 / 0 项
暂无数据
0 / 0 项
暂无数据

自定义空状态

0 / 0 项
No Data
0 / 0 项
No Data
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/empty.vue 1`] = `"

默认暂无数据

0 / 0 项
暂无数据
0 / 0 项
暂无数据

自定义空状态

0 / 0 项
No Data
0 / 0 项
No Data
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/pagination.vue 1`] = `"
0 / 20 项
跳至
/ 2 页
0 / 0 项
暂无数据
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/pagination.vue 1`] = `"
0 / 20 项
跳至
/ 2 页
0 / 0 项
暂无数据
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/search.vue 1`] = `"
0 / 20 项
0 / 0 项
暂无数据
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/search.vue 1`] = `"
0 / 20 项
0 / 0 项
暂无数据
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/target-draggable.vue 1`] = `"
0 / 20 项
0 / 0 项
暂无数据
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/target-draggable.vue 1`] = `"
0 / 20 项
0 / 0 项
暂无数据
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/target-value.vue 1`] = `"
0 / 10 项
0 / 10 项
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/target-value.vue 1`] = `"
0 / 10 项
0 / 10 项
"`; -exports[`ssr snapshot test > ssr test ./src/transfer/_example/tree.vue 1`] = `"
0 / 6 项
0 / 0 项
暂无数据
"`; +exports[`ssr snapshot test > ssr test ./src/transfer/_example/tree.vue 1`] = `"
0 / 6 项
0 / 0 项
暂无数据
"`; exports[`ssr snapshot test > ssr test ./src/tree/_example/activable.vue 1`] = `"
节点可高亮:
节点可多选高亮:
整个节点可点击:
1
1.1
1.2
2
2.1
2.2
"`;