From c66774de01febdf6898b7bb9a56b968658fd59e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=20Cai?= Date: Wed, 11 Dec 2024 16:10:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BF=BD=E7=95=A5=20`helper/**`=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 2 + .prettierignore | 1 + helper/attributes.json | 619 ++++++++++++++++++++++++++++++++++------- helper/tags.json | 367 ++++++++++++++++++++---- package.json | 2 +- 5 files changed, 838 insertions(+), 153 deletions(-) create mode 100644 .prettierignore diff --git a/.eslintignore b/.eslintignore index 9cfb3d4fe..6c4407c76 100644 --- a/.eslintignore +++ b/.eslintignore @@ -16,3 +16,5 @@ yarn-error.log vitest.config.js test + +helper/** diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..d505b2afc --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +helper/** \ No newline at end of file diff --git a/helper/attributes.json b/helper/attributes.json index 165b9a8d6..59d334fa3 100644 --- a/helper/attributes.json +++ b/helper/attributes.json @@ -1,7 +1,10 @@ { "t-action-sheet/align": { "type": "String", - "options": ["center", "left"], + "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": { @@ -26,7 +29,10 @@ }, "t-action-sheet/theme": { "type": "String", - "options": ["list", "grid"], + "options": [ + "list", + "grid" + ], "description": "展示类型,列表和表格形式展示\n\ndefault: list\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" }, "t-action-sheet/visible": { @@ -71,7 +77,10 @@ }, "t-avatar/shape": { "type": "String", - "options": ["circle", "round"], + "options": [ + "circle", + "round" + ], "description": "shape\n\n形状\n\ndefault: circle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" }, "t-avatar/size": { @@ -84,7 +93,10 @@ }, "t-avatar-group/cascading": { "type": "String", - "options": ["left-up", "right-up"], + "options": [ + "left-up", + "right-up" + ], "description": "multiple images cascading\n\n图片之间的层叠关系,可选值:左侧图片在上和右侧图片在上\n\ndefault: 'right-up'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props)" }, "t-avatar-group/collapse-avatar": { @@ -117,7 +129,12 @@ }, "t-back-top/theme": { "type": "String", - "options": ["round", "half-round", "round-dark", "half-round-dark"], + "options": [ + "round", + "half-round", + "round-dark", + "half-round-dark" + ], "description": "预设的样式类型\n\ndefault: round\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props)" }, "t-back-top/to-top": { @@ -150,7 +167,12 @@ }, "t-badge/shape": { "type": "String", - "options": ["circle", "square", "bubble", "ribbon"], + "options": [ + "circle", + "square", + "bubble", + "ribbon" + ], "description": "形状\n\ndefault: circle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" }, "t-badge/show-zero": { @@ -159,7 +181,10 @@ }, "t-badge/size": { "type": "String", - "options": ["medium", "large"], + "options": [ + "medium", + "large" + ], "description": "尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" }, "t-button/block": { @@ -192,12 +217,22 @@ }, "t-button/shape": { "type": "String", - "options": ["rectangle", "square", "round", "circle"], + "options": [ + "rectangle", + "square", + "round", + "circle" + ], "description": "button shape\n\n按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形\n\ndefault: rectangle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, "t-button/size": { "type": "String", - "options": ["extra-small", "small", "medium", "large"], + "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)" }, "t-button/suffix": { @@ -206,17 +241,30 @@ }, "t-button/theme": { "type": "String", - "options": ["default", "primary", "danger", "light"], + "options": [ + "default", + "primary", + "danger", + "light" + ], "description": "button theme\n\n组件风格,依次为品牌色、危险色\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, "t-button/type": { "type": "String", - "options": ["submit", "reset", "button"], + "options": [ + "submit", + "reset", + "button" + ], "description": "type of button element in html\n\n按钮类型\n\ndefault: button\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, "t-button/variant": { "type": "String", - "options": ["base", "outline", "text"], + "options": [ + "base", + "outline", + "text" + ], "description": "button variant\n\n按钮形式,基础、线框、文字\n\ndefault: base\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, "t-button/click": { @@ -253,7 +301,11 @@ }, "t-calendar/type": { "type": "String", - "options": ["single", "multiple", "range"], + "options": [ + "single", + "multiple", + "range" + ], "description": "日历的选择类型,single = 单选;multiple = 多选; range = 区间选择\n\ndefault: 'single'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" }, "t-calendar/use-popup": { @@ -302,7 +354,10 @@ }, "t-cascader/theme": { "type": "String", - "options": ["step", "tab"], + "options": [ + "step", + "tab" + ], "description": "展示风格\n\ndefault: step\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" }, "t-cascader/title": { @@ -331,7 +386,11 @@ }, "t-cell/align": { "type": "String", - "options": ["top", "middle", "bottom"], + "options": [ + "top", + "middle", + "bottom" + ], "description": "内容的对齐方式,默认居中对齐\n\ndefault: middle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" }, "t-cell/arrow": { @@ -384,7 +443,10 @@ }, "t-cell-group/theme": { "type": "String", - "options": ["default", "card"], + "options": [ + "default", + "card" + ], "description": "单元格组风格\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props)" }, "t-cell-group/title": { @@ -417,17 +479,30 @@ }, "t-check-tag/shape": { "type": "String", - "options": ["square", "round", "mark"], + "options": [ + "square", + "round", + "mark" + ], "description": "标签类型,有三种:方形、圆角方形、标记型\n\ndefault: square\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" }, "t-check-tag/size": { "type": "String", - "options": ["small", "medium", "large"], + "options": [ + "small", + "medium", + "large" + ], "description": "标签尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" }, "t-check-tag/variant": { "type": "String", - "options": ["dark", "light", "outline", "light-outline"], + "options": [ + "dark", + "light", + "outline", + "light-outline" + ], "description": "标签风格变体\n\ndefault: dark\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" }, "t-check-tag/change": { @@ -496,7 +571,10 @@ }, "t-checkbox/placement": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "多选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" }, "t-checkbox/readonly": { @@ -565,7 +643,10 @@ }, "t-collapse/theme": { "type": "String", - "options": ["default", "card"], + "options": [ + "default", + "card" + ], "description": "折叠面板风格\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props)" }, "t-collapse/value": { @@ -606,7 +687,10 @@ }, "t-collapse-panel/placement": { "type": "String", - "options": ["bottom", "top"], + "options": [ + "bottom", + "top" + ], "description": "选项卡内容的位置\n\ndefault: bottom\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" }, "t-collapse-panel/value": { @@ -663,7 +747,11 @@ }, "t-count-down/size": { "type": "String", - "options": ["small", "medium", "large"], + "options": [ + "small", + "medium", + "large" + ], "description": "倒计时尺寸\n\ndefault: 'small'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" }, "t-count-down/split-with-unit": { @@ -672,7 +760,11 @@ }, "t-count-down/theme": { "type": "String", - "options": ["default", "round", "square"], + "options": [ + "default", + "round", + "square" + ], "description": "倒计时风格\n\ndefault: 'default'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" }, "t-count-down/time": { @@ -689,7 +781,12 @@ }, "t-date-range-picker/presets-placement": { "type": "String", - "options": ["left", "top", "right", "bottom"], + "options": [ + "left", + "top", + "right", + "bottom" + ], "description": "预设面板展示区域(包含确定按钮)\n\ndefault: bottom\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-range-picker?tab=api#daterangepicker-props)" }, "t-date-range-picker/time-picker-props": { @@ -774,7 +871,10 @@ }, "t-dialog/button-layout": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "多按钮排列方式\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" }, "t-dialog/cancel-btn": { @@ -843,7 +943,11 @@ }, "t-divider/align": { "type": "String", - "options": ["left", "right", "center"], + "options": [ + "left", + "right", + "center" + ], "description": "文本位置(仅在水平分割线有效)\n\ndefault: center\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props)" }, "t-divider/content": { @@ -860,7 +964,10 @@ }, "t-divider/layout": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "分隔线类型有两种:水平和垂直\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props)" }, "t-drawer/attach": { @@ -885,7 +992,10 @@ }, "t-drawer/placement": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "抽屉方向\n\ndefault: right\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" }, "t-drawer/show-overlay": { @@ -1042,7 +1152,11 @@ }, "t-form/label-align": { "type": "String", - "options": ["left", "right", "top"], + "options": [ + "left", + "right", + "top" + ], "description": "表单字段标签对齐方式:左对齐、右对齐、顶部对齐\n\ndefault: right\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" }, "t-form/label-width": { @@ -1051,7 +1165,10 @@ }, "t-form/layout": { "type": "String", - "options": ["vertical", "inline"], + "options": [ + "vertical", + "inline" + ], "description": "表单布局,有两种方式:纵向布局 和 行内布局\n\ndefault: vertical\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" }, "t-form/prevent-submit-default": { @@ -1064,7 +1181,10 @@ }, "t-form/reset-type": { "type": "String", - "options": ["empty", "initial"], + "options": [ + "empty", + "initial" + ], "description": "重置表单的方式,值为 empty 表示重置表单为空,值为 initial 表示重置表单数据为初始值\n\ndefault: empty\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" }, "t-form/rules": { @@ -1073,7 +1193,11 @@ }, "t-form/scroll-to-first-error": { "type": "String", - "options": ["''", "smooth", "auto"], + "options": [ + "''", + "smooth", + "auto" + ], "description": "表单校验不通过时,是否自动滚动到第一个校验不通过的字段,平滑滚动或是瞬间直达。值为空则表示不滚动\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" }, "t-form/show-error-message": { @@ -1114,7 +1238,11 @@ }, "t-form-item/label-align": { "type": "String", - "options": ["left", "right", "top"], + "options": [ + "left", + "right", + "top" + ], "description": "表单字段标签对齐方式:左对齐、右对齐、顶部对齐。默认使用 Form 的对齐方式,优先级高于 Form.labelAlign\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" }, "t-form-item/label-width": { @@ -1155,7 +1283,10 @@ }, "t-grid/align": { "type": "String", - "options": ["left", "center"], + "options": [ + "left", + "center" + ], "description": "内容对齐方式\n\ndefault: center\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props)" }, "t-grid/border": { @@ -1172,7 +1303,10 @@ }, "t-grid/theme": { "type": "String", - "options": ["default", "card"], + "options": [ + "default", + "card" + ], "description": "宫格的风格\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props)" }, "t-grid-item/badge": { @@ -1189,7 +1323,10 @@ }, "t-grid-item/layout": { "type": "String", - "options": ["vertical", "horizontal"], + "options": [ + "vertical", + "horizontal" + ], "description": "内容布局方式\n\ndefault: vertical\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props)" }, "t-grid-item/text": { @@ -1262,7 +1399,13 @@ }, "t-image/fit": { "type": "String", - "options": ["contain", "cover", "fill", "none", "scale-down"], + "options": [ + "contain", + "cover", + "fill", + "none", + "scale-down" + ], "description": "图片填充模式\n\ndefault: fill\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" }, "t-image/lazy": { @@ -1293,7 +1436,11 @@ }, "t-image/shape": { "type": "String", - "options": ["circle", "round", "square"], + "options": [ + "circle", + "round", + "square" + ], "description": "图片圆角类型\n\ndefault: square\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" }, "t-image/src": { @@ -1378,7 +1525,11 @@ }, "t-input/align": { "type": "String", - "options": ["left", "center", "right"], + "options": [ + "left", + "center", + "right" + ], "description": "文本内容位置,居左/居中/居右\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/allow-input-over-max": { @@ -1439,12 +1590,20 @@ }, "t-input/size": { "type": "String", - "options": ["small", "medium"], + "options": [ + "small", + "medium" + ], "description": "已废弃。输入框尺寸\n\ndefault: small\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/status": { "type": "String", - "options": ["default", "success", "warning", "error"], + "options": [ + "default", + "success", + "warning", + "error" + ], "description": "输入框状态。默认情况会由组件内部根据实际情况呈现,如果文本过长引起的状态变化\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/suffix": { @@ -1461,7 +1620,16 @@ }, "t-input/type": { "type": "String", - "options": ["text", "number", "url", "tel", "password", "search", "submit", "hidden"], + "options": [ + "text", + "number", + "url", + "tel", + "password", + "search", + "submit", + "hidden" + ], "description": "输入框类型\n\ndefault: text\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/value": { @@ -1522,7 +1690,11 @@ }, "t-link/size": { "type": "String", - "options": ["small", "medium", "large"], + "options": [ + "small", + "medium", + "large" + ], "description": "尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" }, "t-link/suffix-icon": { @@ -1535,7 +1707,13 @@ }, "t-link/theme": { "type": "String", - "options": ["default", "primary", "danger", "warning", "success"], + "options": [ + "default", + "primary", + "danger", + "warning", + "success" + ], "description": "组件风格,依次为默认色、品牌色、危险色、警告色、成功色\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" }, "t-link/underline": { @@ -1592,7 +1770,10 @@ }, "t-loading/layout": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "对齐方式\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" }, "t-loading/loading": { @@ -1621,12 +1802,19 @@ }, "t-loading/theme": { "type": "String", - "options": ["circular", "spinner", "dots"], + "options": [ + "circular", + "spinner", + "dots" + ], "description": "加载组件类型\n\ndefault: circular\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" }, "t-message/align": { "type": "String", - "options": ["left", "center"], + "options": [ + "left", + "center" + ], "description": "文本对齐方式\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" }, "t-message/close-btn": { @@ -1659,7 +1847,12 @@ }, "t-message/theme": { "type": "String", - "options": ["info", "success", "warning", "error"], + "options": [ + "info", + "success", + "warning", + "error" + ], "description": "消息组件风格\n\ndefault: info\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" }, "t-message/visible": { @@ -1752,7 +1945,10 @@ }, "t-notice-bar/direction": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "滚动方向\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" }, "t-notice-bar/extra": { @@ -1777,7 +1973,12 @@ }, "t-notice-bar/theme": { "type": "String", - "options": ["info", "success", "warning", "error"], + "options": [ + "info", + "success", + "warning", + "error" + ], "description": "内置主题\n\ndefault: info\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" }, "t-notice-bar/visible": { @@ -1940,7 +2141,14 @@ }, "t-popover/theme": { "type": "String", - "options": ["dark", "light", "brand", "success", "warning", "error"], + "options": [ + "dark", + "light", + "brand", + "success", + "warning", + "error" + ], "description": "弹出气泡主题。\n\ndefault: dark\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" }, "t-popover/trigger-element": { @@ -1973,7 +2181,13 @@ }, "t-popup/placement": { "type": "String", - "options": ["top", "left", "right", "bottom", "center"], + "options": [ + "top", + "left", + "right", + "bottom", + "center" + ], "description": "浮层出现位置\n\ndefault: top\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" }, "t-popup/prevent-scroll-through": { @@ -2030,7 +2244,12 @@ }, "t-progress/status": { "type": "String", - "options": ["success", "error", "warning", "active"], + "options": [ + "success", + "error", + "warning", + "active" + ], "description": "进度条状态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props)" }, "t-progress/stroke-width": { @@ -2039,7 +2258,11 @@ }, "t-progress/theme": { "type": "String", - "options": ["line", "plump", "circle"], + "options": [ + "line", + "plump", + "circle" + ], "description": "进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间\n\ndefault: line\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props)" }, "t-progress/track-color": { @@ -2084,12 +2307,18 @@ }, "t-radio/align": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "已废弃。复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio-button/align": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "已废弃。复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio/allow-uncheck": { @@ -2198,12 +2427,18 @@ }, "t-radio/placement": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio-button/placement": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio/value": { @@ -2248,7 +2483,10 @@ }, "t-radio-group/placement": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" }, "t-radio-group/value": { @@ -2301,7 +2539,12 @@ }, "t-range-input/status": { "type": "String", - "options": ["default", "success", "warning", "error"], + "options": [ + "default", + "success", + "warning", + "error" + ], "description": "输入框状态\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" }, "t-range-input/suffix": { @@ -2346,7 +2589,12 @@ }, "t-range-input-popup/status": { "type": "String", - "options": ["default", "success", "warning", "error"], + "options": [ + "default", + "success", + "warning", + "error" + ], "description": "输入框状态\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input-popup?tab=api#rangeinputpopup-props)" }, "t-range-input-popup/tips": { @@ -2399,7 +2647,10 @@ }, "t-rate/variant": { "type": "String", - "options": ["outline", "filled"], + "options": [ + "outline", + "filled" + ], "description": "已废弃。形状类型,有描边类型和填充类型两种\n\ndefault: outline\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" }, "t-rate/change": { @@ -2420,7 +2671,12 @@ }, "t-result/theme": { "type": "String", - "options": ["default", "success", "warning", "error"], + "options": [ + "default", + "success", + "warning", + "error" + ], "description": "内置主题。\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props)" }, "t-result/title": { @@ -2469,7 +2725,10 @@ }, "t-search/shape": { "type": "String", - "options": ["square", "round"], + "options": [ + "square", + "round" + ], "description": "搜索框形状\n\ndefault: 'square'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" }, "t-search/value": { @@ -2526,7 +2785,11 @@ }, "t-skeleton/animation": { "type": "String", - "options": ["gradient", "flashed", "none"], + "options": [ + "gradient", + "flashed", + "none" + ], "description": "动画效果,有「渐变加载动画」和「闪烁加载动画」两种。值为 'none' 则表示没有动画\n\ndefault: none\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props)" }, "t-skeleton/delay": { @@ -2539,7 +2802,12 @@ }, "t-skeleton/theme": { "type": "String", - "options": ["avatar", "image", "text", "paragraph"], + "options": [ + "avatar", + "image", + "text", + "paragraph" + ], "description": "骨架图风格,有基础、头像组合等两大类\n\ndefault: text\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props)" }, "t-slider/disabled": { @@ -2576,7 +2844,10 @@ }, "t-slider/theme": { "type": "String", - "options": ["default", "capsule"], + "options": [ + "default", + "capsule" + ], "description": "滑块风格\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" }, "t-slider/value": { @@ -2597,7 +2868,12 @@ }, "t-space/align": { "type": "String", - "options": ["start", "end", "center", "baseline"], + "options": [ + "start", + "end", + "center", + "baseline" + ], "description": "alignment\n\n对齐方式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props)" }, "t-space/break-line": { @@ -2606,7 +2882,10 @@ }, "t-space/direction": { "type": "String", - "options": ["vertical", "horizontal"], + "options": [ + "vertical", + "horizontal" + ], "description": "Spacing direction\n\n间距方向\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props)" }, "t-space/separator": { @@ -2627,7 +2906,12 @@ }, "t-step-item/status": { "type": "String", - "options": ["default", "process", "finish", "error"], + "options": [ + "default", + "process", + "finish", + "error" + ], "description": "当前步骤的状态:默认状态(未开始)、进行中状态、完成状态、错误状态\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props)" }, "t-step-item/title": { @@ -2656,7 +2940,11 @@ }, "t-stepper/size": { "type": "String", - "options": ["small", "medium", "large"], + "options": [ + "small", + "medium", + "large" + ], "description": "组件尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" }, "t-stepper/step": { @@ -2665,7 +2953,11 @@ }, "t-stepper/theme": { "type": "String", - "options": ["normal", "filled", "outline"], + "options": [ + "normal", + "filled", + "outline" + ], "description": "stylish\n\n组件风格\n\ndefault: normal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" }, "t-stepper/value": { @@ -2690,7 +2982,10 @@ }, "t-steps/layout": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "步骤条方向,有两种:横向和纵向\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" }, "t-steps/options": { @@ -2703,17 +2998,27 @@ }, "t-steps/separator": { "type": "String", - "options": ["line", "dashed", "arrow"], + "options": [ + "line", + "dashed", + "arrow" + ], "description": "步骤条分割符\n\ndefault: line\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" }, "t-steps/sequence": { "type": "String", - "options": ["positive", "reverse"], + "options": [ + "positive", + "reverse" + ], "description": "步骤条顺序\n\ndefault: positive\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" }, "t-steps/theme": { "type": "String", - "options": ["default", "dot"], + "options": [ + "default", + "dot" + ], "description": "步骤条风格\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" }, "t-steps/change": { @@ -2742,12 +3047,18 @@ }, "t-sticky-tool/shape": { "type": "String", - "options": ["square", "round"], + "options": [ + "square", + "round" + ], "description": "stickytool shape\n\n侧边栏菜单形状,有 2 种:方形、圆形\n\ndefault: square\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky-tool?tab=api#stickytool-props)" }, "t-sticky-tool/type": { "type": "String", - "options": ["normal", "compact"], + "options": [ + "normal", + "compact" + ], "description": "stickytool type\n\n侧边栏菜单类型,有 2 种:常规型和紧凑型\n\ndefault: normal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky-tool?tab=api#stickytool-props)" }, "t-swipe-cell/content": { @@ -2764,7 +3075,10 @@ }, "t-swipe-cell/expanded": { "type": "String", - "options": ["left", "right"], + "options": [ + "left", + "right" + ], "description": "操作项是否呈现为打开态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" }, "t-swipe-cell/left": { @@ -2789,7 +3103,9 @@ }, "t-swiper/animation": { "type": "String", - "options": ["slide"], + "options": [ + "slide" + ], "description": "轮播切换动画效果类型\n\ndefault: slide\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" }, "t-swiper/autoplay": { @@ -2802,7 +3118,10 @@ }, "t-swiper/direction": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "轮播滑动方向,包括横向滑动和纵向滑动两个方向\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" }, "t-swiper/duration": { @@ -2835,7 +3154,10 @@ }, "t-swiper/type": { "type": "String", - "options": ["default", "card"], + "options": [ + "default", + "card" + ], "description": "样式类型:默认样式、卡片样式\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" }, "t-swiper/change": { @@ -2852,7 +3174,10 @@ }, "t-swiper-nav/direction": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "轮播滑动方向,包括横向滑动和纵向滑动两个方向\n\ndefault: horizontal\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" }, "t-swiper-nav/min-show-num": { @@ -2861,7 +3186,10 @@ }, "t-swiper-nav/placement": { "type": "String", - "options": ["inside", "outside"], + "options": [ + "inside", + "outside" + ], "description": "导航器位置,位于主体的内侧或是外侧\n\ndefault: inside\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" }, "t-swiper-nav/show-controls": { @@ -2902,7 +3230,11 @@ }, "t-switch/size": { "type": "String", - "options": ["small", "medium", "large"], + "options": [ + "small", + "medium", + "large" + ], "description": "开关尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" }, "t-switch/value": { @@ -2927,7 +3259,10 @@ }, "t-tab-bar/shape": { "type": "String", - "options": ["normal", "round"], + "options": [ + "normal", + "round" + ], "description": "标签栏的形状\n\ndefault: 'normal'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" }, "t-tab-bar/split": { @@ -2936,7 +3271,10 @@ }, "t-tab-bar/theme": { "type": "String", - "options": ["normal", "tag"], + "options": [ + "normal", + "tag" + ], "description": "选项风格\n\ndefault: 'normal'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" }, "t-tab-bar/value": { @@ -3001,7 +3339,10 @@ }, "t-tabs/size": { "type": "String", - "options": ["medium", "large"], + "options": [ + "medium", + "large" + ], "description": "组件尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" }, "t-tabs/space-evenly": { @@ -3022,7 +3363,11 @@ }, "t-tabs/theme": { "type": "String", - "options": ["line", "tag", "card"], + "options": [ + "line", + "tag", + "card" + ], "description": "标签的样式\n\ndefault: line\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" }, "t-tabs/value": { @@ -3067,22 +3412,42 @@ }, "t-tag/shape": { "type": "String", - "options": ["square", "round", "mark"], + "options": [ + "square", + "round", + "mark" + ], "description": "标签类型,有三种:方形、圆角方形、标记型\n\ndefault: square\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" }, "t-tag/size": { "type": "String", - "options": ["small", "medium", "large", "extra-large"], + "options": [ + "small", + "medium", + "large", + "extra-large" + ], "description": "标签尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" }, "t-tag/theme": { "type": "String", - "options": ["default", "primary", "warning", "danger", "success"], + "options": [ + "default", + "primary", + "warning", + "danger", + "success" + ], "description": "组件风格,用于描述组件不同的应用场景\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" }, "t-tag/variant": { "type": "String", - "options": ["dark", "light", "outline", "light-outline"], + "options": [ + "dark", + "light", + "outline", + "light-outline" + ], "description": "标签风格变体\n\ndefault: dark\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" }, "t-tag/click": { @@ -3159,17 +3524,29 @@ }, "t-timeline/label-align": { "type": "String", - "options": ["left", "right", "alternate", "top", "bottom"], + "options": [ + "left", + "right", + "alternate", + "top", + "bottom" + ], "description": "label info placement\n\n标签信息放在时间轴的位置,`mode='alternate'` 时生效。纵向时间轴信息位置:左侧、右侧或两侧,默认信息在时间轴右侧。横向时间轴信息位置:上方、下方、两侧\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props)" }, "t-timeline/layout": { "type": "String", - "options": ["horizontal", "vertical"], + "options": [ + "horizontal", + "vertical" + ], "description": "time line layout\n\n时间轴方向:水平方向、垂直方向\n\ndefault: vertical\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props)" }, "t-timeline/mode": { "type": "String", - "options": ["alternate", "same"], + "options": [ + "alternate", + "same" + ], "description": "The position relationship between the label and the content text, 'alternate' is displayed on both sides of the axis, and 'same' is displayed on the same side\n\n标签与内容文本的位置关系,`alternate` 为展示在轴两侧,`same` 为展示在同一侧\n\ndefault: alternate\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props)" }, "t-timeline/reverse": { @@ -3178,7 +3555,10 @@ }, "t-timeline/theme": { "type": "String", - "options": ["default", "dot"], + "options": [ + "default", + "dot" + ], "description": "步骤条风格\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props)" }, "t-timeline-item/content": { @@ -3199,12 +3579,20 @@ }, "t-timeline-item/label-align": { "type": "String", - "options": ["left", "right", "top", "bottom"], + "options": [ + "left", + "right", + "top", + "bottom" + ], "description": "标签信息相对于时间轴的位置,在 `mode='alternate'` 时生效,优先级高于 `Timeline.labelAlign`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props)" }, "t-toast/direction": { "type": "String", - "options": ["row", "column"], + "options": [ + "row", + "column" + ], "description": "图标排列方式\n\ndefault: row\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" }, "t-toast/duration": { @@ -3225,7 +3613,11 @@ }, "t-toast/placement": { "type": "String", - "options": [" top", "middle", "bottom"], + "options": [ + " top", + "middle", + "bottom" + ], "description": "弹窗展示位置\n\ndefault: middle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" }, "t-toast/prevent-scroll-through": { @@ -3238,7 +3630,11 @@ }, "t-toast/theme": { "type": "String", - "options": ["loading", "success", "error"], + "options": [ + "loading", + "success", + "error" + ], "description": "提示类型\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" }, "t-toast/close": { @@ -3287,7 +3683,11 @@ }, "t-tree-select/size": { "type": "String", - "options": ["small", "medium", "large"], + "options": [ + "small", + "medium", + "large" + ], "description": "尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" }, "t-tree-select/tag-props": { @@ -3364,7 +3764,18 @@ }, "t-upload/method": { "type": "String", - "options": ["POST", "GET", "PUT", "OPTION", "PATCH", "post", "get", "put", "option", "patch"], + "options": [ + "POST", + "GET", + "PUT", + "OPTION", + "PATCH", + "post", + "get", + "put", + "option", + "patch" + ], "description": "HTTP request method\n\nHTTP 请求类型\n\ndefault: POST\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" }, "t-upload/multiple": { diff --git a/helper/tags.json b/helper/tags.json index 2ed073650..2f3be96a8 100644 --- a/helper/tags.json +++ b/helper/tags.json @@ -32,15 +32,37 @@ "description": "Avatar\n\n头像\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar)" }, "t-avatar-group": { - "attributes": ["cascading", "collapse-avatar", "max", "size"], + "attributes": [ + "cascading", + "collapse-avatar", + "max", + "size" + ], "description": "AvatarGroup\n\n头像组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group)" }, "t-back-top": { - "attributes": ["fixed", "icon", "target", "text", "theme", "to-top"], + "attributes": [ + "fixed", + "icon", + "target", + "text", + "theme", + "to-top" + ], "description": "BackTop\n\n回到顶部\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top)" }, "t-badge": { - "attributes": ["color", "content", "count", "dot", "max-count", "offset", "shape", "show-zero", "size"], + "attributes": [ + "color", + "content", + "count", + "dot", + "max-count", + "offset", + "shape", + "show-zero", + "size" + ], "description": "Badge\n\n徽标数\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge)" }, "t-button": { @@ -116,7 +138,11 @@ "description": "Cell\n\n单元格\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell)" }, "t-cell-group": { - "attributes": ["bordered", "theme", "title"], + "attributes": [ + "bordered", + "theme", + "title" + ], "description": "CellGroup\n\n单元格组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell-group)" }, "t-check-tag": { @@ -159,15 +185,34 @@ "description": "Checkbox\n\n多选框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox)" }, "t-checkbox-group": { - "attributes": ["borderless", "disabled", "max", "name", "options", "value", "change"], + "attributes": [ + "borderless", + "disabled", + "max", + "name", + "options", + "value", + "change" + ], "description": "CheckboxGroup\n\n多选框组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group)" }, "t-col": { - "attributes": ["offset", "span"], + "attributes": [ + "offset", + "span" + ], "description": "Col\n\n栅格-纵向\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/col)" }, "t-collapse": { - "attributes": ["default-expand-all", "disabled", "expand-icon", "expand-mutex", "theme", "value", "change"], + "attributes": [ + "default-expand-all", + "disabled", + "expand-icon", + "expand-mutex", + "theme", + "value", + "change" + ], "description": "Collapse\n\n折叠\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse)" }, "t-collapse-panel": { @@ -185,11 +230,21 @@ "description": "CollapsePanel\n\n折叠面板\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel)" }, "t-color-picker": { - "attributes": ["clearable"], + "attributes": [ + "clearable" + ], "description": "ColorPicker\n\n颜色选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker)" }, "t-comment": { - "attributes": ["actions", "author", "avatar", "content", "datetime", "quote", "reply"], + "attributes": [ + "actions", + "author", + "avatar", + "content", + "datetime", + "quote", + "reply" + ], "description": "Comment\n\n评论\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment)" }, "t-count-down": { @@ -208,7 +263,10 @@ "description": "CountDown\n\n倒计时\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down)" }, "t-date-range-picker": { - "attributes": ["presets-placement", "time-picker-props"], + "attributes": [ + "presets-placement", + "time-picker-props" + ], "description": "DateRangePicker\n\n日期范围选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-range-picker)" }, "t-date-time-picker": { @@ -258,7 +316,13 @@ "description": "Dialog\n\n对话框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog)" }, "t-divider": { - "attributes": ["align", "content", "dashed", "default", "layout"], + "attributes": [ + "align", + "content", + "dashed", + "default", + "layout" + ], "description": "Divider\n\n分割线\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/divider)" }, "t-drawer": { @@ -296,19 +360,38 @@ "description": "DropdownItem\n\n下拉菜单选项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item)" }, "t-dropdown-menu": { - "attributes": ["close-on-click-overlay", "duration", "show-overlay", "z-index"], + "attributes": [ + "close-on-click-overlay", + "duration", + "show-overlay", + "z-index" + ], "description": "DropdownMenu\n\n下拉菜单\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-menu)" }, "t-empty": { - "attributes": ["action", "description", "image"], + "attributes": [ + "action", + "description", + "image" + ], "description": "Empty\n\n空状态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty)" }, "t-fab": { - "attributes": ["button-props", "icon", "style", "text", "click"], + "attributes": [ + "button-props", + "icon", + "style", + "text", + "click" + ], "description": "Fab\n\n悬浮按钮\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/fab)" }, "t-footer": { - "attributes": ["links", "logo", "text"], + "attributes": [ + "links", + "logo", + "text" + ], "description": "Footer\n\n布局-底部内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/footer)" }, "t-form": { @@ -354,19 +437,46 @@ "description": "FormItem\n\n表单元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item)" }, "t-grid": { - "attributes": ["align", "border", "column", "gutter", "theme"], + "attributes": [ + "align", + "border", + "column", + "gutter", + "theme" + ], "description": "Grid\n\n栅格\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid)" }, "t-grid-item": { - "attributes": ["badge", "description", "image", "layout", "text"], + "attributes": [ + "badge", + "description", + "image", + "layout", + "text" + ], "description": "GridItem\n\n宫格子项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item)" }, "t-icon-svg": { - "attributes": ["load-default-icons", "name", "size", "style", "url", "click"], + "attributes": [ + "load-default-icons", + "name", + "size", + "style", + "url", + "click" + ], "description": "IconSVG\n\n图标(IconSVG)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/icon-svg)" }, "t-iconfont": { - "attributes": ["load-default-icons", "name", "size", "style", "tag", "url", "click"], + "attributes": [ + "load-default-icons", + "name", + "size", + "style", + "tag", + "url", + "click" + ], "description": "Iconfont\n\n图标(Iconfont)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont)" }, "t-image": { @@ -403,11 +513,20 @@ "description": "ImageViewer\n\n图片预览\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer)" }, "t-indexes": { - "attributes": ["index-list", "list", "sticky", "sticky-offset", "change", "select"], + "attributes": [ + "index-list", + "list", + "sticky", + "sticky-offset", + "change", + "select" + ], "description": "Indexes\n\n索引\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes)" }, "t-indexes-anchor": { - "attributes": ["index"], + "attributes": [ + "index" + ], "description": "IndexesAnchor\n\n索引锚点\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes-anchor)" }, "t-input": { @@ -443,7 +562,10 @@ "description": "Input\n\n输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input)" }, "t-input-adornment": { - "attributes": ["append", "prepend"], + "attributes": [ + "append", + "prepend" + ], "description": "InputAdornment\n\n输入装饰器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input-adornment)" }, "t-link": { @@ -464,7 +586,13 @@ "description": "Link\n\n链接\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link)" }, "t-list": { - "attributes": ["async-loading", "footer", "header", "load-more", "scroll"], + "attributes": [ + "async-loading", + "footer", + "header", + "load-more", + "scroll" + ], "description": "List\n\n列表\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list)" }, "t-loading": { @@ -543,11 +671,23 @@ "description": "NoticeBar\n\n公告栏\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar)" }, "t-overlay": { - "attributes": ["duration", "prevent-scroll-through", "transparent", "visible", "z-index", "click"], + "attributes": [ + "duration", + "prevent-scroll-through", + "transparent", + "visible", + "z-index", + "click" + ], "description": "Overlay\n\n遮罩层\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay)" }, "t-pagination": { - "attributes": ["show-first-and-last-page-btn", "show-page-number", "show-page-size", "show-previous-and-next-btn"], + "attributes": [ + "show-first-and-last-page-btn", + "show-page-number", + "show-page-size", + "show-previous-and-next-btn" + ], "description": "Pagination\n\n分页\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pagination)" }, "t-picker": { @@ -569,11 +709,18 @@ "description": "Picker\n\n选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker)" }, "t-picker-item": { - "attributes": ["format", "options"], + "attributes": [ + "format", + "options" + ], "description": "PickerItem\n\n选择器选项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker-item)" }, "t-popconfirm": { - "attributes": ["default", "destroy-on-close", "trigger-element"], + "attributes": [ + "default", + "destroy-on-close", + "trigger-element" + ], "description": "Popconfirm\n\n气泡确认框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popconfirm)" }, "t-popover": { @@ -611,7 +758,15 @@ "description": "Popup\n\n气泡框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup)" }, "t-progress": { - "attributes": ["color", "label", "percentage", "status", "stroke-width", "theme", "track-color"], + "attributes": [ + "color", + "label", + "percentage", + "status", + "stroke-width", + "theme", + "track-color" + ], "description": "Progress\n\n进度条\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress)" }, "t-pull-down-refresh": { @@ -713,7 +868,10 @@ "description": "RangeInput\n\n范围输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input)" }, "t-range-input-popup": { - "attributes": ["status", "tips"], + "attributes": [ + "status", + "tips" + ], "description": "RangeInputPopup\n\n范围输入框触发器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input-popup)" }, "t-rate": { @@ -735,11 +893,19 @@ "description": "Rate\n\n评分\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate)" }, "t-result": { - "attributes": ["description", "icon", "image", "theme", "title"], + "attributes": [ + "description", + "icon", + "image", + "theme", + "title" + ], "description": "Result\n\n结果\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/result)" }, "t-row": { - "attributes": ["gutter"], + "attributes": [ + "gutter" + ], "description": "Row\n\n栅格-横向\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/row)" }, "t-search": { @@ -766,15 +932,28 @@ "description": "Search\n\n搜索\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search)" }, "t-segmented-control": { - "attributes": ["items", "value", "change"], + "attributes": [ + "items", + "value", + "change" + ], "description": "SegmentedControl\n\n分段器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/segmented-control)" }, "t-select": { - "attributes": ["select-input-props", "tag-input-props", "tag-props"], + "attributes": [ + "select-input-props", + "tag-input-props", + "tag-props" + ], "description": "Select\n\n选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/select)" }, "t-skeleton": { - "attributes": ["animation", "delay", "loading", "theme"], + "attributes": [ + "animation", + "delay", + "loading", + "theme" + ], "description": "Skeleton\n\n骨架屏\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton)" }, "t-slider": { @@ -796,11 +975,22 @@ "description": "Slider\n\n滑块\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider)" }, "t-space": { - "attributes": ["align", "break-line", "direction", "separator", "size"], + "attributes": [ + "align", + "break-line", + "direction", + "separator", + "size" + ], "description": "Space\n\n间距\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/space)" }, "t-step-item": { - "attributes": ["content", "icon", "status", "title"], + "attributes": [ + "content", + "icon", + "status", + "title" + ], "description": "StepItem\n\n步骤\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/step-item)" }, "t-stepper": { @@ -821,19 +1011,47 @@ "description": "Stepper\n\n步进器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper)" }, "t-steps": { - "attributes": ["current", "layout", "options", "readonly", "separator", "sequence", "theme", "change"], + "attributes": [ + "current", + "layout", + "options", + "readonly", + "separator", + "sequence", + "theme", + "change" + ], "description": "Steps\n\n步骤条\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps)" }, "t-sticky": { - "attributes": ["container", "disabled", "offset-top", "z-index", "scroll"], + "attributes": [ + "container", + "disabled", + "offset-top", + "z-index", + "scroll" + ], "description": "Sticky\n\n吸顶容器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky)" }, "t-sticky-tool": { - "attributes": ["shape", "type"], + "attributes": [ + "shape", + "type" + ], "description": "StickyTool\n\n侧边固钉\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky-tool)" }, "t-swipe-cell": { - "attributes": ["content", "default", "disabled", "expanded", "left", "opened", "right", "change", "click"], + "attributes": [ + "content", + "default", + "disabled", + "expanded", + "left", + "opened", + "right", + "change", + "click" + ], "description": "SwipeCell\n\n滑动操作\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell)" }, "t-swiper": { @@ -856,23 +1074,62 @@ "description": "Swiper\n\n轮播\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper)" }, "t-swiper-nav": { - "attributes": ["current", "direction", "min-show-num", "placement", "show-controls", "total", "type"], + "attributes": [ + "current", + "direction", + "min-show-num", + "placement", + "show-controls", + "total", + "type" + ], "description": "SwiperNav\n\n轮播导航\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav)" }, "t-switch": { - "attributes": ["colors", "custom-value", "disabled", "icon", "label", "loading", "size", "value", "change"], + "attributes": [ + "colors", + "custom-value", + "disabled", + "icon", + "label", + "loading", + "size", + "value", + "change" + ], "description": "Switch\n\n开关\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch)" }, "t-tab-bar": { - "attributes": ["bordered", "fixed", "safe-area-inset-bottom", "shape", "split", "theme", "value", "change"], + "attributes": [ + "bordered", + "fixed", + "safe-area-inset-bottom", + "shape", + "split", + "theme", + "value", + "change" + ], "description": "TabBar\n\n标签栏\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar)" }, "t-tab-bar-item": { - "attributes": ["badge-props", "icon", "sub-tab-bar", "value"], + "attributes": [ + "badge-props", + "icon", + "sub-tab-bar", + "value" + ], "description": "TabBarItem\n\n标签栏选项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar-item)" }, "t-tab-panel": { - "attributes": ["badge-props", "destroy-on-hide", "disabled", "label", "panel", "value"], + "attributes": [ + "badge-props", + "destroy-on-hide", + "disabled", + "label", + "panel", + "value" + ], "description": "TabPanel\n\n选项卡面板\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel)" }, "t-tabs": { @@ -931,15 +1188,29 @@ "description": "Textarea\n\n文本输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea)" }, "t-time-range-picker": { - "attributes": ["focus"], + "attributes": [ + "focus" + ], "description": "TimeRangePicker\n\n时间范围选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/time-range-picker)" }, "t-timeline": { - "attributes": ["label-align", "layout", "mode", "reverse", "theme"], + "attributes": [ + "label-align", + "layout", + "mode", + "reverse", + "theme" + ], "description": "Timeline\n\n时间轴\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline)" }, "t-timeline-item": { - "attributes": ["content", "dot", "dot-color", "label", "label-align"], + "attributes": [ + "content", + "dot", + "dot-color", + "label", + "label-align" + ], "description": "TimelineItem\n\n时间轴\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline-item)" }, "t-toast": { diff --git a/package.json b/package.json index 01fbc92c6..85dca43ec 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "lint:tsc": "vue-tsc --emitDeclarationOnly", "lint:fix": "npm run lint:fix-prettier && npm run lint:fix-eslint", "lint:fix-eslint": "eslint --ext .vue,.ts,.tsx ./ --max-warnings 0 --ignore-path .gitignore --ignore-path .eslintignore --fix", - "lint:fix-prettier": "prettier ./ --ignore-path .gitignore --ignore-path .eslintignore --write './*.{vue,ts,tsx}' --ignore-unknown", + "lint:fix-prettier": "prettier ./ --ignore-path .gitignore --ignore-path .eslintignore --ignore-path .prettierignore --write './*.{vue,ts,tsx}' --ignore-unknown", "lint:vue": "vue-tsc --noEmit -p tsconfig.build.json", "generate:coverage-badge": "npm run test:unit-coverage && node scripts/test/generate-coverage.js", "update:css": "node scripts/generate-css-vars.js",