From 7cdb1bd751092f134b98156be0b98c16902d5e27 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 6 Sep 2023 07:50:09 +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 | 39 - src/image-viewer/image-viewer.md | 39 - src/link/link.en-US.md | 24 +- src/link/link.md | 24 +- src/message/message.en-US.md | 25 +- src/message/message.md | 25 +- src/navbar/navbar.en-US.md | 30 +- src/navbar/navbar.md | 36 +- 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 +- 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/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/tab-bar/tab-bar.en-US.md | 17 - src/tab-bar/tab-bar.md | 17 - 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 - 83 files changed, 1635 insertions(+), 6414 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 标签,默认使用标签 `