From d8420f6b046ffb29b24a5241c0ca758119438495 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 7 Sep 2023 02:44:07 +0000 Subject: [PATCH] feat: modify API --- helper/attributes.json | 1409 ++--- helper/tags.json | 337 +- helper/web-types.json | 4544 +++-------------- src/action-sheet/action-sheet.en-US.md | 18 - src/action-sheet/action-sheet.md | 19 +- src/avatar/avatar.en-US.md | 27 - src/avatar/avatar.md | 27 - src/avatar/props.ts | 4 +- src/avatar/type.ts | 11 +- src/badge/badge.en-US.md | 19 - src/badge/badge.md | 19 - src/button/button.en-US.md | 108 +- src/button/button.md | 108 +- src/button/props.ts | 6 +- src/button/type.ts | 7 +- src/calendar/calendar.en-US.md | 19 +- src/calendar/calendar.md | 20 +- src/calendar/props.ts | 22 +- src/calendar/type.ts | 59 +- src/checkbox-group/checkbox-group.en-US.md | 20 + src/checkbox-group/checkbox-group.md | 20 + src/checkbox/checkbox.en-US.md | 23 - src/checkbox/checkbox.md | 25 +- src/common.ts | 6 +- src/dialog/dialog.en-US.md | 33 +- src/dialog/dialog.md | 35 +- src/dialog/props.ts | 5 - src/dialog/type.ts | 9 +- src/drawer/drawer.en-US.md | 27 +- src/drawer/drawer.md | 27 +- src/dropdown-menu/dropdown-menu.en-US.md | 16 +- src/dropdown-menu/dropdown-menu.md | 16 +- src/empty/empty.en-US.md | 12 - src/empty/empty.md | 12 - src/footer/footer.en-US.md | 21 - src/footer/footer.md | 21 - src/form/form.en-US.md | 4 +- src/form/form.md | 16 +- src/image-viewer/image-viewer.en-US.md | 13 - src/image-viewer/image-viewer.md | 13 - src/link/link.en-US.md | 24 +- src/link/link.md | 24 +- src/loading/loading.en-US.md | 14 +- src/loading/loading.md | 10 +- src/message/message.en-US.md | 25 +- src/message/message.md | 25 +- src/navbar/navbar.en-US.md | 29 +- src/navbar/navbar.md | 33 +- src/navbar/props.ts | 22 +- src/navbar/type.ts | 15 +- src/notice-bar/notice-bar.en-US.md | 22 +- src/notice-bar/notice-bar.md | 22 +- src/popover/popover.en-US.md | 7 - src/popover/popover.md | 7 - src/popup/popup.en-US.md | 10 - src/popup/popup.md | 12 +- .../pull-down-refresh.en-US.md | 7 - src/pull-down-refresh/pull-down-refresh.md | 8 +- src/rate/rate.en-US.md | 22 +- src/rate/rate.md | 22 +- src/result/result.en-US.md | 18 - src/result/result.md | 18 - src/search/search.en-US.md | 21 +- src/search/search.md | 21 +- src/select/props.ts | 23 + src/select/select.en-US.md | 11 + src/select/select.md | 11 + src/select/type.ts | 24 + src/side-bar/side-bar.en-US.md | 19 +- src/side-bar/side-bar.md | 19 +- src/skeleton/skeleton.en-US.md | 18 +- src/skeleton/skeleton.md | 19 +- src/slider/slider.en-US.md | 18 - src/slider/slider.md | 22 +- src/stepper/stepper.en-US.md | 14 +- src/stepper/stepper.md | 14 +- src/steps/steps.en-US.md | 47 +- src/steps/steps.md | 76 +- src/swipe-cell/swipe-cell.en-US.md | 6 - src/swipe-cell/swipe-cell.md | 7 +- src/tab-bar/tab-bar.en-US.md | 17 - src/tab-bar/tab-bar.md | 17 - src/table/table.en-US.md | 16 +- src/table/table.md | 22 +- src/tabs/tabs.en-US.md | 25 +- src/tabs/tabs.md | 25 +- src/textarea/textarea.en-US.md | 19 +- src/textarea/textarea.md | 19 +- src/time-line/props.ts | 49 + src/time-line/time-line-item-props.ts | 0 src/time-line/time-line.en-US.md | 1 + src/time-line/time-line.md | 1 + src/time-line/type.ts | 63 + src/toast/toast.en-US.md | 15 +- src/toast/toast.md | 12 - src/upload/upload.en-US.md | 15 +- src/upload/upload.md | 19 +- 97 files changed, 1685 insertions(+), 6593 deletions(-) create mode 100644 src/checkbox-group/checkbox-group.en-US.md create mode 100644 src/checkbox-group/checkbox-group.md create mode 100644 src/select/props.ts create mode 100644 src/select/select.en-US.md create mode 100644 src/select/select.md create mode 100644 src/select/type.ts create mode 100644 src/time-line/props.ts create mode 100644 src/time-line/time-line-item-props.ts create mode 100644 src/time-line/time-line.en-US.md create mode 100644 src/time-line/time-line.md create mode 100644 src/time-line/type.ts diff --git a/helper/attributes.json b/helper/attributes.json index b3d8bd7f8..792c5751e 100644 --- a/helper/attributes.json +++ b/helper/attributes.json @@ -1,12 +1,4 @@ { - "t-action-sheet/align": { - "type": "String", - "options": [ - "center", - "left" - ], - "description": "水平对齐方式\n\ndefault: center\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" - }, "t-action-sheet/cancel-text": { "type": "String", "description": "设置取消按钮的文本\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" @@ -15,10 +7,6 @@ "type": "Number", "description": "设置每页展示菜单的数量,仅当 type=grid 时有效\n\ndefault: 8\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" }, - "t-action-sheet/description": { - "type": "String", - "description": "动作面板描述文字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" - }, "t-action-sheet/items": { "type": "Array", "description": "菜单项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" @@ -85,7 +73,7 @@ }, "t-avatar/size": { "type": "String", - "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等。优先级高于 AvatarGroup.size 。Avatar 单独存在时,默认值为 medium。如果父组件存在 AvatarGroup,默认值便由 AvatarGroup.size 决定\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等,默认为 large\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" }, "t-avatar/error": { "type": "event", @@ -169,8 +157,7 @@ "type": "String", "options": [ "circle", - "square", - "bubble", + "round", "ribbon" ], "description": "形状\n\ndefault: circle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" @@ -182,8 +169,8 @@ "t-badge/size": { "type": "String", "options": [ - "medium", - "large" + "small", + "medium" ], "description": "尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" }, @@ -203,6 +190,10 @@ "type": "Boolean", "description": "make background-color to be transparent\n\n是否为幽灵按钮(镂空按钮)\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, + "t-button/href": { + "type": "String", + "description": "跳转地址。href 存在时,按钮标签默认使用 `` 渲染;如果指定了 `tag` 则使用指定的标签渲染\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + }, "t-button/icon": { "type": "TNode", "description": "use it to set left icon in button\n\n按钮内部图标,可完全自定义\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" @@ -211,10 +202,6 @@ "type": "Boolean", "description": "set button to be loading state\n\n是否显示为加载状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, - "t-button/loading-props": { - "type": "Object", - "description": "透传加载组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" - }, "t-button/shape": { "type": "String", "options": [ @@ -228,36 +215,30 @@ "t-button/size": { "type": "String", "options": [ - "extra-small", "small", "medium", "large" ], - "description": "a button has four size\n\n组件尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + "description": "a button has three size\n\n组件尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, - "t-button/suffix": { - "type": "TNode", - "description": "右侧内容,可用于定义右侧图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + "t-button/tag": { + "type": "String", + "options": [ + "button", + "a", + "div" + ], + "description": "HTML Tag Element\n\n渲染按钮的 HTML 标签,默认使用标签 `