From 7d1b37f952ed1147e216a2f12383daa7dad6cea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Fri, 28 Jul 2023 09:42:49 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helper/attributes.json | 3897 ++++++++++++++ helper/tags.json | 1310 +++++ helper/web-types.json | 10675 +++++++++++++++++++++++++++++++++++++++ package.json | 7 +- 4 files changed, 15888 insertions(+), 1 deletion(-) create mode 100644 helper/attributes.json create mode 100644 helper/tags.json create mode 100644 helper/web-types.json diff --git a/helper/attributes.json b/helper/attributes.json new file mode 100644 index 000000000..b3d8bd7f8 --- /dev/null +++ b/helper/attributes.json @@ -0,0 +1,3897 @@ +{ + "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)" + }, + "t-action-sheet/count": { + "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)" + }, + "t-action-sheet/show-cancel": { + "type": "Boolean", + "description": "是否显示取消按钮\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" + }, + "t-action-sheet/theme": { + "type": "String", + "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": { + "type": "Boolean", + "description": "显示与隐藏\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props)" + }, + "t-action-sheet/cancel": { + "type": "event", + "description": "点击取消按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events)" + }, + "t-action-sheet/close": { + "type": "event", + "description": "关闭时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events)" + }, + "t-action-sheet/selected": { + "type": "event", + "description": "选择菜单项时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events)" + }, + "t-avatar/alt": { + "type": "String", + "description": "show it when url is not valid\n\n头像替换文本,仅当图片加载失败时有效\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + }, + "t-avatar/badge-props": { + "type": "Object", + "description": "头像右上角提示信息,继承 Badge 组件的全部特性。如:小红点,或者数字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + }, + "t-avatar/hide-on-load-failed": { + "type": "Boolean", + "description": "hide image when loading image failed\n\n加载失败时隐藏图片\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + }, + "t-avatar/icon": { + "type": "TNode", + "description": "use icon to fill\n\n图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + }, + "t-avatar/image": { + "type": "String", + "description": "images url\n\n图片地址\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + }, + "t-avatar/image-props": { + "type": "Object", + "description": "透传至 Image 组件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + }, + "t-avatar/shape": { + "type": "String", + "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": { + "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)" + }, + "t-avatar/error": { + "type": "event", + "description": "trigger on image load failed\n\n图片加载失败时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-events)" + }, + "t-avatar-group/cascading": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props)" + }, + "t-avatar-group/max": { + "type": "Number", + "description": "能够同时显示的最多头像数量\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props)" + }, + "t-avatar-group/size": { + "type": "String", + "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等。优先级低于 Avatar.size\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props)" + }, + "t-back-top/fixed": { + "type": "Boolean", + "description": "是否绝对定位固定到屏幕右下方\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props)" + }, + "t-back-top/icon": { + "type": "TNode", + "description": "图标\n\ndefault: 'backtop'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props)" + }, + "t-back-top/target": { + "type": "Function", + "description": "定位滚动到指定对象\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props)" + }, + "t-back-top/text": { + "type": "String", + "description": "文案\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props)" + }, + "t-back-top/theme": { + "type": "String", + "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": { + "type": "event", + "description": "点击触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-events)" + }, + "t-badge/color": { + "type": "String", + "description": "颜色\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" + }, + "t-badge/content": { + "type": "String|TNode", + "description": "徽标内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" + }, + "t-badge/count": { + "type": "String|Number|TNode", + "description": "徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" + }, + "t-badge/dot": { + "type": "Boolean", + "description": "是否为红点\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" + }, + "t-badge/max-count": { + "type": "Number", + "description": "封顶的数字值\n\ndefault: 99\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" + }, + "t-badge/offset": { + "type": "Array", + "description": "设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" + }, + "t-badge/shape": { + "type": "String", + "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": { + "type": "Boolean", + "description": "当数值为 0 时,是否展示徽标\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" + }, + "t-badge/size": { + "type": "String", + "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": { + "type": "Boolean", + "description": "make button to be a block-level element\n\n是否为块级元素\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + }, + "t-button/content": { + "type": "String|TNode", + "description": "button's children elements\n\n按钮内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + }, + "t-button/disabled": { + "type": "Boolean", + "description": "disable the button, make it can not be clicked\n\n禁用状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + }, + "t-button/ghost": { + "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/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)" + }, + "t-button/loading": { + "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": [ + "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" + ], + "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": { + "type": "TNode", + "description": "右侧内容,可用于定义右侧图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + }, + "t-button/theme": { + "type": "String", + "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" + ], + "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" + ], + "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": { + "type": "event", + "description": "trigger on click\n\n点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-events)" + }, + "t-calendar/auto-close": { + "type": "Boolean", + "description": "自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭,不需要手动设置 visible\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/confirm-btn": { + "type": "String|Object|TNode", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/first-day-of-week": { + "type": "Number", + "description": "第一天从星期几开始,默认 0 = 周日\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/format": { + "type": "Function", + "description": "用于格式化日期的函数\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/max-date": { + "type": "Number|Date", + "description": "最大可选的日期,不传则默认半年后\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/min-date": { + "type": "Number|Date", + "description": "最小可选的日期,不传则默认今天\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/title": { + "type": "String|TNode", + "description": "标题,不传默认为“请选择日期”\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/type": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否使用弹出层包裹日历\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/value": { + "type": "Number|Array|Date", + "description": "当前选择的日期,不传则默认今天,当 type = multiple 或 range 时传入数组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/visible": { + "type": "Boolean", + "description": "是否显示日历;`usePopup` 为 true 时有效\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/change": { + "type": "event", + "description": "不显示 confirm-btn 时,完成选择时触发(暂不支持 type = multiple)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events)" + }, + "t-calendar/close": { + "type": "event", + "description": "关闭按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events)" + }, + "t-calendar/confirm": { + "type": "event", + "description": "点击确认按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events)" + }, + "t-calendar/select": { + "type": "event", + "description": "点击日期时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events)" + }, + "t-cascader/close-btn": { + "type": "Boolean|TNode", + "description": "关闭按钮\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, + "t-cascader/keys": { + "type": "Object", + "description": "用来定义 value / label 在 `options` 中对应的字段别名\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, + "t-cascader/options": { + "type": "Array", + "description": "可选项数据源\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, + "t-cascader/sub-titles": { + "type": "Array", + "description": "每级展示的次标题\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, + "t-cascader/theme": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, + "t-cascader/value": { + "type": "String|Number", + "description": "选项值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, + "t-cascader/visible": { + "type": "Boolean", + "description": "是否展示\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, + "t-cascader/change": { + "type": "event", + "description": "值发生变更时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-events)" + }, + "t-cascader/close": { + "type": "event", + "description": "关闭时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-events)" + }, + "t-cascader/pick": { + "type": "event", + "description": "选择后触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-events)" + }, + "t-cell/align": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否显示右侧箭头\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/bordered": { + "type": "Boolean", + "description": "是否显示下边框\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/description": { + "type": "String|TNode", + "description": "下方内容描述\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/hover": { + "type": "Boolean", + "description": "是否开启点击反馈\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/image": { + "type": "String|TNode", + "description": "主图\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/left-icon": { + "type": "TNode", + "description": "左侧图标,出现在单元格标题的左侧\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/note": { + "type": "String|TNode", + "description": "和标题同行的说明文字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/required": { + "type": "Boolean", + "description": "是否显示表单必填星号\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/right-icon": { + "type": "TNode", + "description": "最右侧图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/title": { + "type": "String|TNode", + "description": "标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props)" + }, + "t-cell/click": { + "type": "event", + "description": "右侧内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-events)" + }, + "t-cell-group/bordered": { + "type": "Boolean", + "description": "是否显示组边框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props)" + }, + "t-cell-group/theme": { + "type": "String", + "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": { + "type": "String", + "description": "单元格组标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props)" + }, + "t-check-tag/checked": { + "type": "Boolean", + "description": "标签选中的状态,默认风格(theme=default)才有选中态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" + }, + "t-check-tag/closable": { + "type": "Boolean", + "description": "标签是否可关闭\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" + }, + "t-check-tag/content": { + "type": "String|Number|Array|TNode", + "description": "组件子元素;传入数组时:[选中内容,非选中内容]\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" + }, + "t-check-tag/default": { + "type": "String|TNode", + "description": "组件子元素,默认插槽\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" + }, + "t-check-tag/disabled": { + "type": "Boolean", + "description": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" + }, + "t-check-tag/icon": { + "type": "TNode", + "description": "标签中的图标,可自定义图标呈现\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" + }, + "t-check-tag/shape": { + "type": "String", + "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" + ], + "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" + ], + "description": "标签风格变体\n\ndefault: dark\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props)" + }, + "t-check-tag/change": { + "type": "event", + "description": "状态切换时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-events)" + }, + "t-check-tag/click": { + "type": "event", + "description": "点击标签时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-events)" + }, + "t-checkbox/block": { + "type": "Boolean", + "description": "是否为块级元素\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/borderless": { + "type": "Boolean", + "description": "是否开启无边框模式\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/check-all": { + "type": "Boolean", + "description": "用于标识是否为「全选选项」。单独使用无效,需在 CheckboxGroup 中使用\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/checked": { + "type": "Boolean", + "description": "是否选中\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/content": { + "type": "String|TNode", + "description": "多选框内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/content-disabled": { + "type": "Boolean", + "description": "是否禁用组件内容(content)触发选中\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/default": { + "type": "String|TNode", + "description": "多选框内容,同 label\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/disabled": { + "type": "Boolean", + "description": "是否禁用组件。如果父组件存在 CheckboxGroup,默认值由 CheckboxGroup.disabled 控制。优先级:Checkbox.disabled > CheckboxGroup.disabled > Form.disabled\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/icon": { + "type": "String|Boolean|Array", + "description": "自定义选中图标和非选中图标。使用 Array 时表示:[选中态图标,非选中态图标]。使用 String 时,值为 circle 表示填充圆形图标、值为 line 表示描边型图标、值为 rectangle 表示填充矩形图标。\n\ndefault: 'circle'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/indeterminate": { + "type": "Boolean", + "description": "是否为半选\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/label": { + "type": "String|TNode", + "description": "主文案\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/max-content-row": { + "type": "Number", + "description": "内容最大行数限制\n\ndefault: 5\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/max-label-row": { + "type": "Number", + "description": "主文案最大行数限制\n\ndefault: 3\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/name": { + "type": "String", + "description": "HTML 元素原生属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/placement": { + "type": "String", + "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": { + "type": "Boolean", + "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/value": { + "type": "String|Number|Boolean", + "description": "value of checkbox\n\n多选框的值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + }, + "t-checkbox/change": { + "type": "event", + "description": "值变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-events)" + }, + "t-checkbox-group/borderless": { + "type": "Boolean", + "description": "是否开启无边框模式\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" + }, + "t-checkbox-group/disabled": { + "type": "Boolean", + "description": "是否禁用组件,默认为 false。优先级:CheckboxGroup.disabled < Checkbox.disabled\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" + }, + "t-checkbox-group/max": { + "type": "Number", + "description": "支持最多选中的数量\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" + }, + "t-checkbox-group/name": { + "type": "String", + "description": "统一设置内部复选框 HTML 属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" + }, + "t-checkbox-group/options": { + "type": "Array", + "description": "以配置形式设置子元素。示例1:`['北京', '上海']` ,示例2: `[{ label: '全选', checkAll: true }, { label: '上海', value: 'shanghai' }]`。checkAll 值为 true 表示当前选项为「全选选项」\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" + }, + "t-checkbox-group/value": { + "type": "Array", + "description": "选中值\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" + }, + "t-checkbox-group/change": { + "type": "event", + "description": "值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中,`context.option` 表示当前变化的数据项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-events)" + }, + "t-col/offset": { + "type": "String|Number", + "description": "列的偏移量(默认单位px)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/col?tab=api#col-props)" + }, + "t-col/span": { + "type": "String|Number", + "description": "列的宽度(默认单位px)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/col?tab=api#col-props)" + }, + "t-collapse/default-expand-all": { + "type": "Boolean", + "description": "默认是否展开全部\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props)" + }, + "t-collapse/disabled": { + "type": "Boolean", + "description": "是否禁用面板展开/收起操作\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props)" + }, + "t-collapse/expand-icon": { + "type": "Boolean|TNode", + "description": "展开图标。值为 undefined 或 false 则不显示展开图标;值为 true 显示默认图标;值类型为函数,则表示完全自定义展开图标\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props)" + }, + "t-collapse/expand-mutex": { + "type": "Boolean", + "description": "每个面板互斥展开,每次只展开一个面板\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props)" + }, + "t-collapse/theme": { + "type": "String", + "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": { + "type": "Array", + "description": "展开的面板集合\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props)" + }, + "t-collapse/change": { + "type": "event", + "description": "切换面板时触发,返回变化的值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-events)" + }, + "t-collapse-panel/content": { + "type": "String|TNode", + "description": "折叠面板内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-collapse-panel/default": { + "type": "String|TNode", + "description": "折叠面板内容,同 content\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-collapse-panel/destroy-on-collapse": { + "type": "Boolean", + "description": "当前面板处理折叠状态时,是否销毁面板内容\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-collapse-panel/disabled": { + "type": "Boolean", + "description": "禁止当前面板展开,优先级大于 Collapse 的同名属性\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-collapse-panel/expand-icon": { + "type": "Boolean|TNode", + "description": "当前折叠面板展开图标,优先级大于 Collapse 的同名属性\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-collapse-panel/header": { + "type": "String|TNode", + "description": "面板头内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-collapse-panel/header-right-content": { + "type": "String|TNode", + "description": "面板头的右侧区域,一般用于呈现面板操作\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-collapse-panel/placement": { + "type": "String", + "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": { + "type": "String|Number", + "description": "当前面板唯一标识,如果值为空则取当前面下标兜底作为唯一标识\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" + }, + "t-color-picker/clearable": { + "type": "Boolean", + "description": "是否可清空\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props)" + }, + "t-comment/actions": { + "type": "Array", + "description": "操作\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + }, + "t-comment/author": { + "type": "String|TNode", + "description": "作者\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + }, + "t-comment/avatar": { + "type": "String|Object|TNode", + "description": "头像\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + }, + "t-comment/content": { + "type": "String|TNode", + "description": "内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + }, + "t-comment/datetime": { + "type": "String|TNode", + "description": "时间\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + }, + "t-comment/quote": { + "type": "String|TNode", + "description": "引用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + }, + "t-comment/reply": { + "type": "String|TNode", + "description": "回复\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + }, + "t-count-down/auto-start": { + "type": "Boolean", + "description": "是否自动开始倒计时\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + }, + "t-count-down/content": { + "type": "String|TNode", + "description": "最终倒计时的展示内容,值为'default'时使用默认的格式,否则使用自定义样式插槽\n\ndefault: 'default'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + }, + "t-count-down/format": { + "type": "String", + "description": "时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒\n\ndefault: HH:mm:ss\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + }, + "t-count-down/millisecond": { + "type": "Boolean", + "description": "是否开启毫秒级渲染\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + }, + "t-count-down/size": { + "type": "String", + "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": { + "type": "Boolean", + "description": "使用时间单位分割\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + }, + "t-count-down/theme": { + "type": "String", + "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": { + "type": "Number", + "description": "倒计时时长,单位毫秒\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + }, + "t-count-down/change": { + "type": "event", + "description": "时间变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-events)" + }, + "t-count-down/finish": { + "type": "event", + "description": "倒计时结束时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-events)" + }, + "t-date-range-picker/presets-placement": { + "type": "String", + "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": { + "type": "Object", + "description": "透传 TimePicker 组件属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-range-picker?tab=api#daterangepicker-props)" + }, + "t-date-time-picker/cancel-btn": { + "type": "String", + "description": "取消按钮文字\n\ndefault: 取消\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/confirm-btn": { + "type": "String", + "description": "确定按钮文字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/end": { + "type": "String|Number", + "description": "选择器的最大可选时间,默认为当前时间+10年\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/footer": { + "type": "Boolean|TNode", + "description": "底部内容\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/format": { + "type": "String", + "description": "用于格式化 pick、change、confirm 事件返回的值,[详细文档](https://day.js.org/docs/en/display/format)\n\ndefault: 'YYYY-MM-DD HH:mm:ss'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/header": { + "type": "Boolean|TNode", + "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/mode": { + "type": "String|Array", + "description": "year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒\n\ndefault: 'date'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/render-label": { + "type": "Function", + "description": "自定义label\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/show-week": { + "type": "Boolean", + "description": "【开发中】是否在日期旁边显示周几(如周一,周二,周日等)\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/start": { + "type": "String|Number", + "description": "选择器的最小可选时间,默认为当前时间-10年\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/steps": { + "type": "Object", + "description": "时间间隔步数,示例:`{ minute: 5 }`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/title": { + "type": "String", + "description": "title of picker\n\n标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/value": { + "type": "String|Number", + "description": "选中值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/cancel": { + "type": "event", + "description": "取消按钮点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events)" + }, + "t-date-time-picker/change": { + "type": "event", + "description": "value改变时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events)" + }, + "t-date-time-picker/close": { + "type": "event", + "description": "关闭时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events)" + }, + "t-date-time-picker/confirm": { + "type": "event", + "description": "确认按钮点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events)" + }, + "t-date-time-picker/pick": { + "type": "event", + "description": "选中值发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events)" + }, + "t-dialog/actions": { + "type": "Array|TNode", + "description": "操作栏\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/button-layout": { + "type": "String", + "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": { + "type": "String|Object|TNode", + "description": "取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/close-on-overlay-click": { + "type": "Boolean", + "description": "点击蒙层时是否触发关闭事件\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/confirm-btn": { + "type": "String|Object|TNode", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/content": { + "type": "String|TNode", + "description": "内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/destroy-on-close": { + "type": "Boolean", + "description": "是否在关闭弹框的时候销毁子元素\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/overlay-props": { + "type": "Object", + "description": "透传至 Overlay 组件\n\ndefault: {}\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/prevent-scroll-through": { + "type": "Boolean", + "description": "防止滚动穿透\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/show-overlay": { + "type": "Boolean", + "description": "是否显示遮罩层\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/title": { + "type": "String|TNode", + "description": "标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/visible": { + "type": "Boolean", + "description": "控制对话框是否显示\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/width": { + "type": "String|Number", + "description": "对话框宽度,示例:320, '500px', '80%'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/z-index": { + "type": "Number", + "description": "对话框层级,Web 侧样式默认为 2500,移动端和小程序样式默认为 1500\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" + }, + "t-dialog/cancel": { + "type": "event", + "description": "如果“取消”按钮存在,则点击“取消”按钮时触发,同时触发关闭事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events)" + }, + "t-dialog/close": { + "type": "event", + "description": "关闭事件,点击 取消按钮 或 点击蒙层 时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events)" + }, + "t-dialog/confirm": { + "type": "event", + "description": "如果“确认”按钮存在,则点击“确认”按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events)" + }, + "t-dialog/overlay-click": { + "type": "event", + "description": "如果蒙层存在,点击蒙层时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events)" + }, + "t-divider/align": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "子元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props)" + }, + "t-divider/dashed": { + "type": "Boolean", + "description": "是否虚线(仅在水平分割线有效)\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props)" + }, + "t-divider/default": { + "type": "String|TNode", + "description": "子元素,同 content\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props)" + }, + "t-divider/layout": { + "type": "String", + "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": { + "type": "String|Function", + "description": "抽屉挂载的节点,默认挂在组件本身的位置。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/close-on-overlay-click": { + "type": "Boolean", + "description": "点击蒙层时是否触发抽屉关闭事件\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/destroy-on-close": { + "type": "Boolean", + "description": "抽屉关闭时是否销毁节点\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/footer": { + "type": "TNode", + "description": "抽屉的底部\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/items": { + "type": "Array", + "description": "抽屉里的列表项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/placement": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否显示遮罩层\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/title": { + "type": "String|TNode", + "description": "抽屉的标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/visible": { + "type": "Boolean", + "description": "组件是否可见\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/z-index": { + "type": "Number", + "description": "抽屉层级,样式默认为 1500\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" + }, + "t-drawer/close": { + "type": "event", + "description": "关闭时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events)" + }, + "t-drawer/item-click": { + "type": "event", + "description": "点击抽屉里的列表项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events)" + }, + "t-drawer/overlay-click": { + "type": "event", + "description": "如果蒙层存在,点击蒙层时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events)" + }, + "t-dropdown-item/disabled": { + "type": "Boolean", + "description": "是否禁用\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/keys": { + "type": "Object", + "description": "用来定义 value / label 在 `options` 中对应的字段别名\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/label": { + "type": "String", + "description": "标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/multiple": { + "type": "Boolean", + "description": "是否多选\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/options": { + "type": "Array", + "description": "选项数据\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/options-columns": { + "type": "String|Number", + "description": "选项分栏(1-3)\n\ndefault: 1\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/options-layout": { + "type": "String", + "description": "选项排列;不再支持 tree 布局,可与 treeSelect 配合使用\n\ndefault: columns\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/value": { + "type": "String|Number", + "description": "选中值\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/change": { + "type": "event", + "description": "值改变时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-events)" + }, + "t-dropdown-item/confirm": { + "type": "event", + "description": "点击确认时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-events)" + }, + "t-dropdown-item/reset": { + "type": "event", + "description": "点击重置时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-events)" + }, + "t-dropdown-menu/close-on-click-overlay": { + "type": "Boolean", + "description": "是否在点击遮罩层后关闭菜单\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props)" + }, + "t-dropdown-menu/duration": { + "type": "String|Number", + "description": "动画时长\n\ndefault: 200\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props)" + }, + "t-dropdown-menu/show-overlay": { + "type": "Boolean", + "description": "是否显示遮罩层\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props)" + }, + "t-dropdown-menu/z-index": { + "type": "Number", + "description": "菜单栏 z-index 层级\n\ndefault: 11600\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props)" + }, + "t-empty/action": { + "type": "TNode", + "description": "操作按钮\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props)" + }, + "t-empty/description": { + "type": "String|TNode", + "description": "描述文字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props)" + }, + "t-empty/image": { + "type": "String|TNode", + "description": "图片地址\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props)" + }, + "t-fab/button-props": { + "type": "Object", + "description": "透传至 Button 组件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props)" + }, + "t-fab/icon": { + "type": "TNode", + "description": "图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props)" + }, + "t-fab/style": { + "type": "String", + "description": "悬浮按钮的样式,常用于调整位置\n\ndefault: right: 16px; bottom: 32px;\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props)" + }, + "t-fab/text": { + "type": "String", + "description": "文本内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props)" + }, + "t-fab/click": { + "type": "event", + "description": "悬浮按钮点击事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-events)" + }, + "t-footer/links": { + "type": "Array", + "description": "链接列表。name 表示链接名称, url 表示跳转链接,target 表示跳转方式,如:当前页面打开、新页面打开等,同 HTML 属性 target 含义相同\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/footer?tab=api#footer-props)" + }, + "t-footer/logo": { + "type": "Object", + "description": "图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接跳转地址,`logo.target` 表示跳转方式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/footer?tab=api#footer-props)" + }, + "t-footer/text": { + "type": "String", + "description": "版权信息\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/footer?tab=api#footer-props)" + }, + "t-form/colon": { + "type": "Boolean", + "description": "是否在表单标签字段右侧显示冒号\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/data": { + "type": "Object", + "description": "表单数据\n\ndefault: {}\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/disabled": { + "type": "Boolean", + "description": "是否禁用整个表单\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/error-message": { + "type": "Object", + "description": "表单错误信息配置,示例:`{ idcard: '请输入正确的身份证号码', max: '字符长度不能超过 ${max}' }`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/form-controlled-components": { + "type": "Array", + "description": "允许表单统一控制禁用状态的自定义组件名称列表。默认会有组件库的全部输入类组件:TInput、TInputNumber、TCascader、TSelect、TOption、TSwitch、TCheckbox、TCheckboxGroup、TRadio、TRadioGroup、TTreeSelect、TDatePicker、TTimePicker、TUpload、TTransfer、TSlider。对于自定义组件,组件内部需要包含可以控制表单禁用状态的变量 `formDisabled`。示例:`['CustomUpload', 'CustomInput']`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/label-align": { + "type": "String", + "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": { + "type": "String|Number", + "description": "可以整体设置label标签宽度,默认为100px\n\ndefault: '100px'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/layout": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否阻止表单提交默认事件(表单提交默认事件会刷新页面),设置为 `true` 可以避免刷新\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/required-mark": { + "type": "Boolean", + "description": "是否显示必填符号(*),默认显示\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/reset-type": { + "type": "String", + "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": { + "type": "Object", + "description": "表单字段校验规则\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/scroll-to-first-error": { + "type": "String", + "options": [ + "''", + "smooth", + "auto" + ], + "description": "表单校验不通过时,是否自动滚动到第一个校验不通过的字段,平滑滚动或是瞬间直达。值为空则表示不滚动\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/show-error-message": { + "type": "Boolean", + "description": "校验不通过时,是否显示错误提示信息,统一控制全部表单项。如果希望控制单个表单项,请给 FormItem 设置该属性\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/status-icon": { + "type": "Boolean|TNode", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/submit-with-warning-message": { + "type": "Boolean", + "description": "【讨论中】当校验结果只有告警信息时,是否触发 `submit` 提交事件\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" + }, + "t-form/reset": { + "type": "event", + "description": "表单重置时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-events)" + }, + "t-form/submit": { + "type": "event", + "description": "表单提交时触发。其中 `context.validateResult` 表示校验结果,`context.firstError` 表示校验不通过的第一个规则提醒。`context.validateResult` 值为 `true` 表示校验通过;如果校验不通过,`context.validateResult` 值为校验结果列表。
【注意】⚠️ 默认情况,输入框按下 Enter 键会自动触发提交事件,如果希望禁用这个默认行为,可以给输入框添加 enter 事件,并在事件中设置 `e.preventDefault()`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-events)" + }, + "t-form/validate": { + "type": "event", + "description": "校验结束后触发,result 值为 true 表示校验通过;如果校验不通过,result 值为校验结果列表\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-events)" + }, + "t-form-item/for": { + "type": "String", + "description": "label 原生属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/help": { + "type": "String|TNode", + "description": "表单项说明内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/label": { + "type": "String|TNode", + "description": "字段标签名称\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/label-align": { + "type": "String", + "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": { + "type": "String|Number", + "description": "可以整体设置标签宽度,优先级高于 Form.labelWidth\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/name": { + "type": "String|Number", + "description": "表单字段名称\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/required-mark": { + "type": "Boolean", + "description": "是否显示必填符号(*),优先级高于 Form.requiredMark\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/rules": { + "type": "Array", + "description": "表单字段校验规则\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/show-error-message": { + "type": "Boolean", + "description": "校验不通过时,是否显示错误提示信息,优先级高于 `Form.showErrorMessage`\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/status": { + "type": "String", + "description": "校验状态,可在需要完全自主控制校验状态时使用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/status-icon": { + "type": "Boolean|TNode", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标。优先级高级 Form 的 statusIcon\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/success-border": { + "type": "Boolean", + "description": "是否显示校验成功的边框,默认不显示\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-form-item/tips": { + "type": "String|TNode", + "description": "自定义提示内容,样式跟随 `status` 变动,可在需要完全自主控制校验规则时使用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, + "t-grid/align": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否显示边框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props)" + }, + "t-grid/column": { + "type": "Number", + "description": "每一行的列数量;为 0 时等于固定大小\n\ndefault: 4\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props)" + }, + "t-grid/gutter": { + "type": "Number", + "description": "间隔大小\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props)" + }, + "t-grid/theme": { + "type": "String", + "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": { + "type": "Object", + "description": "透传至 Badge 属性\n\ndefault: null\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props)" + }, + "t-grid-item/description": { + "type": "String|TNode", + "description": "文本以外的更多描述,辅助信息。可以通过 Props 传入文本,也可以自定义标题节点\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props)" + }, + "t-grid-item/image": { + "type": "String|Object|TNode", + "description": "图片,可以是图片地址,也可以自定义图片节点,如果传入对象则透传至 image 组件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props)" + }, + "t-grid-item/layout": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "文本,可以通过 Props 传入文本,也可以自定义标题节点\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props)" + }, + "t-icon-svg/load-default-icons": { + "type": "Boolean", + "description": "是否加载组件库内置图标\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props)" + }, + "t-icon-svg/name": { + "type": "String", + "description": "图标名称\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props)" + }, + "t-icon-svg/size": { + "type": "String", + "description": "图标尺寸,支持 'small', 'medium', 'large','35px', '3em' 等\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props)" + }, + "t-icon-svg/style": { + "type": "String", + "description": "可用于设置图标颜色,如:style=\\\"color: red\\\"\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props)" + }, + "t-icon-svg/url": { + "type": "String|Array", + "description": "图标地址,地址内容参考[组件内部默认加载图标](https://tdesign.gtimg.com/icon/web/index.js)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props)" + }, + "t-icon-svg/click": { + "type": "event", + "description": "点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-events)" + }, + "t-iconfont/load-default-icons": { + "type": "Boolean", + "description": "是否加载组件库内置图标\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props)" + }, + "t-iconfont/name": { + "type": "String", + "description": "图标名称\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props)" + }, + "t-iconfont/size": { + "type": "String", + "description": "图标尺寸,支持 'small', 'medium', 'large','35px', '3em' 等\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props)" + }, + "t-iconfont/style": { + "type": "String", + "description": "可用于设置图标颜色,如:style=\\\"color: red\\\"\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props)" + }, + "t-iconfont/tag": { + "type": "String", + "description": "图标 DOM 元素,可选值:i/span/div/...\n\ndefault: i\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props)" + }, + "t-iconfont/url": { + "type": "String|Array", + "description": "图标地址,地址内容参考[组件内部默认加载图标](https://tdesign.gtimg.com/icon/web/index.css)。也可以在 index.html 中引入图标地址\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props)" + }, + "t-iconfont/click": { + "type": "event", + "description": "点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-events)" + }, + "t-image/alt": { + "type": "String", + "description": "图片描述\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/error": { + "type": "event", + "description": "trigger on image load failed\n\n图片加载失败时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-events)" + }, + "t-image/fallback": { + "type": "String", + "description": "display `fallback` image on `src` loading failed. you can also use `error` to define more complex error content\n\n图片加载失败时,显示当前链接设置的图片地址。如果要使用组件图标或完全自定义加载失败时显示的内容,请更为使用 `error`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/fit": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否开启图片懒加载\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/loading": { + "type": "String|TNode", + "description": "自定义加载中状态的图片内容,如:“加载中”\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/position": { + "type": "String", + "description": "等同于原生的 object-position 属性,可选值为 top right bottom left 或 string,可以自定义任何单位,px 或者 百分比\n\ndefault: center\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/referrerpolicy": { + "type": "String", + "options": [ + "no-referrer", + "no-referrer-when-downgrade", + "origin", + "origin-when-cross-origin", + "same-origin", + "strict-origin", + "strict-origin-when-cross-origin", + "unsafe-url" + ], + "description": "attribute of ``, [MDN Definition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy)\n\n`` 标签的原生属性,[MDN 定义](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy)\n\ndefault: strict-origin-when-cross-origin\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/shape": { + "type": "String", + "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": { + "type": "String|Object", + "description": "src attribute of ``. image File can also be loaded\n\n用于显示图片的链接或原始图片文件对象\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/srcset": { + "type": "Object", + "description": "for `.avif` and `.webp` image url, load `srcset` before `src`\n\n图片链接集合,用于支持特殊格式的图片,如 `.avif` 和 `.webp`。会优先加载 `srcset` 中的图片格式,浏览器不支持的情况下,加载 `src` 设置的图片地址\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" + }, + "t-image/load": { + "type": "event", + "description": "trigger on image loaded\n\n图片加载完成时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-events)" + }, + "t-image-viewer/close-btn": { + "type": "Boolean|TNode", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以完全自定义关闭按钮\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props)" + }, + "t-image-viewer/delete-btn": { + "type": "Boolean|TNode", + "description": "是否显示删除操作,前提需要开启页码\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props)" + }, + "t-image-viewer/images": { + "type": "Array", + "description": "图片数组\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props)" + }, + "t-image-viewer/index": { + "type": "Number", + "description": "当前预览图片所在的下标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props)" + }, + "t-image-viewer/max-zoom": { + "type": "Number", + "description": "【开发中】最大放大比例\n\ndefault: 3\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props)" + }, + "t-image-viewer/show-index": { + "type": "Boolean", + "description": "是否显示页码\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props)" + }, + "t-image-viewer/visible": { + "type": "Boolean", + "description": "隐藏/显示预览\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props)" + }, + "t-image-viewer/close": { + "type": "event", + "description": "关闭时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-events)" + }, + "t-image-viewer/delete": { + "type": "event", + "description": "点击删除操作按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-events)" + }, + "t-image-viewer/index-change": { + "type": "event", + "description": "预览图片切换时触发,`context.prev` 切换到上一张图片,`context.next` 切换到下一张图片\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-events)" + }, + "t-indexes/index-list": { + "type": "Array", + "description": "索引字符列表。不传默认 `A-Z`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props)" + }, + "t-indexes/list": { + "type": "Array", + "description": "索引列表的列表数据。每个元素包含三个子元素,index(string):索引值,例如1,2,3,...或A,B,C等;title(string): 索引标题,可不填将默认设为索引值;children(Array<{title: string}>): 子元素列表,title为子元素的展示文案。\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props)" + }, + "t-indexes/sticky": { + "type": "Boolean", + "description": "索引是否吸顶,默认为true\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props)" + }, + "t-indexes/sticky-offset": { + "type": "Number", + "description": "锚点吸顶时与顶部的距离\t\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props)" + }, + "t-indexes/change": { + "type": "event", + "description": "索引发生变更时触发事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-events)" + }, + "t-indexes/select": { + "type": "event", + "description": "点击侧边栏时触发事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-events)" + }, + "t-indexes-anchor/index": { + "type": "String|Number", + "description": "索引字符\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes-anchor?tab=api#indexesanchor-props)" + }, + "t-input/align": { + "type": "String", + "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": { + "type": "Boolean", + "description": "超出 `maxlength` 或 `maxcharacter` 之后是否允许继续输入\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/autocomplete": { + "type": "String", + "description": "是否开启自动填充功能,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/autofocus": { + "type": "Boolean", + "description": "自动聚焦\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/clearable": { + "type": "Boolean", + "description": "是否可清空\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/disabled": { + "type": "Boolean", + "description": "是否禁用输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/error-message": { + "type": "String", + "description": "错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/format": { + "type": "Function", + "description": "指定输入框展示值的格式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/label": { + "type": "String|TNode", + "description": "左侧文本\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/maxcharacter": { + "type": "Number", + "description": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/maxlength": { + "type": "Number", + "description": "用户最多可以输入的文本长度,一个中文等于一个计数长度。值为空,则表示不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/name": { + "type": "String", + "description": "名称\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/placeholder": { + "type": "String", + "description": "占位符\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/prefix-icon": { + "type": "TNode", + "description": "组件前置图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/size": { + "type": "String", + "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" + ], + "description": "输入框状态。默认情况会由组件内部根据实际情况呈现,如果文本过长引起的状态变化\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/suffix": { + "type": "String|TNode", + "description": "后置图标前的后置内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/suffix-icon": { + "type": "TNode", + "description": "组件后置图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/tips": { + "type": "String|TNode", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/type": { + "type": "String", + "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": { + "type": "String", + "description": "输入框的值\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/blur": { + "type": "event", + "description": "失去焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events)" + }, + "t-input/change": { + "type": "event", + "description": "输入框值发生变化时触发。`trigger=initial` 表示传入的数据不符合预期,组件自动处理后触发 change 告知父组件。如:初始值长度超过 `maxlength` 限制\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events)" + }, + "t-input/clear": { + "type": "event", + "description": "清空按钮点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events)" + }, + "t-input/focus": { + "type": "event", + "description": "获得焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events)" + }, + "t-input/validate": { + "type": "event", + "description": "trigger on text length being over max length or max character\n\n字数超出限制时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events)" + }, + "t-input-adornment/append": { + "type": "String|TNode", + "description": "The suffix decoration\n\n后缀装饰\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input-adornment?tab=api#inputadornment-props)" + }, + "t-input-adornment/prepend": { + "type": "String|TNode", + "description": "The prefix decoration\n\n前缀装饰\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input-adornment?tab=api#inputadornment-props)" + }, + "t-link/content": { + "type": "String|TNode", + "description": "链接内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/default": { + "type": "String|TNode", + "description": "链接内容,同 content\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/disabled": { + "type": "Boolean", + "description": "make link to be disabled\n\n禁用链接\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/hover": { + "type": "Boolean", + "description": "是否开启点击反馈\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/href": { + "type": "String", + "description": "跳转链接\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/prefix-icon": { + "type": "TNode", + "description": "前置图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/size": { + "type": "String", + "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": { + "type": "TNode", + "description": "后置图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/target": { + "type": "String", + "description": "target is an attribute of ``\n\n跳转方式,如:当前页面打开、新页面打开等,同 HTML 属性 target 含义相同\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/theme": { + "type": "String", + "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": { + "type": "Boolean", + "description": "普通状态是否显示链接下划线\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" + }, + "t-link/click": { + "type": "event", + "description": "click event, it won't trigger when it's disabled\n\n点击事件,禁用状态不会触发点击事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-events)" + }, + "t-list/async-loading": { + "type": "String|TNode", + "description": "自定义加载中。值为空不显示加载中,值为 'loading' 显示加载中状态,值为 'load-more' 显示加载更多状态。值类型为函数,则表示自定义加载状态呈现内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props)" + }, + "t-list/footer": { + "type": "String|TNode", + "description": "底部\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props)" + }, + "t-list/header": { + "type": "String|TNode", + "description": "头部\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props)" + }, + "t-list/load-more": { + "type": "event", + "description": "点击加载更多时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-events)" + }, + "t-list/scroll": { + "type": "event", + "description": "列表滚动时触发,scrollTop 表示顶部滚动距离\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-events)" + }, + "t-loading/content": { + "type": "String|TNode", + "description": "子元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/default": { + "type": "String|TNode", + "description": "子元素,同 content\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/delay": { + "type": "Number", + "description": "延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/duration": { + "type": "Number", + "description": "加载动画执行完成一次的时间,单位:毫秒\n\ndefault: 800\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/indicator": { + "type": "Boolean|TNode", + "description": "加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/inherit-color": { + "type": "Boolean", + "description": "是否继承父元素颜色\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/layout": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否处于加载状态\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/pause": { + "type": "Boolean", + "description": "是否暂停动画\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/progress": { + "type": "Number", + "description": "加载进度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/reverse": { + "type": "Boolean", + "description": "加载动画是否反向\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/size": { + "type": "String", + "description": "尺寸,示例:20px\n\ndefault: '20px'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/text": { + "type": "String|TNode", + "description": "加载提示文案\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" + }, + "t-loading/theme": { + "type": "String", + "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" + ], + "description": "文本对齐方式\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/close-btn": { + "type": "String|Boolean|TNode", + "description": "关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。也可以完全自定义按钮\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/content": { + "type": "String|TNode", + "description": "用于自定义消息弹出内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/duration": { + "type": "Number", + "description": "消息内置计时器,计时到达时会触发 duration-end 事件。单位:毫秒。值为 0 则表示没有计时器。\n\ndefault: 3000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/icon": { + "type": "Boolean|TNode", + "description": "用于自定义消息前面的图标,优先级大于 theme 设定的图标。值为 false 则不显示图标,值为 true 显示 theme 设定图标\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/link": { + "type": "String|Object|TNode", + "description": "链接名称。值为字符串表示链接名称,值为 Object 类型,表示透传至 Link\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/marquee": { + "type": "Boolean|Object", + "description": "跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/offset": { + "type": "Array", + "description": "相对于 placement 的偏移量,示例:[-10, 20] 或 ['10rpx', '8rpx']\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/theme": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否显示,隐藏时默认销毁组件\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/z-index": { + "type": "Number", + "description": "元素层级,样式默认为 5000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" + }, + "t-message/change": { + "type": "event", + "description": "可见性变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-message/close": { + "type": "event", + "description": "close message event\n\n关闭消息时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-message/close-btn-click": { + "type": "event", + "description": "当关闭按钮存在时,用户点击关闭按钮触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-message/closed": { + "type": "event", + "description": "关闭消息并且动画结束后触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-message/duration-end": { + "type": "event", + "description": "计时结束后触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-message/link-click": { + "type": "event", + "description": "当link链接存在时,点击链接文本时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-message/open": { + "type": "event", + "description": "展示Message时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-message/opened": { + "type": "event", + "description": "展示Message时并且动画结束后触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events)" + }, + "t-navbar/animation": { + "type": "Boolean", + "description": "是否添加动画效果\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/background": { + "type": "String", + "description": "background\n\n已废弃。背景\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/fixed": { + "type": "Boolean", + "description": "是否固定在顶部\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/left": { + "type": "String|TNode", + "description": "左侧区域。值为 `string` 表示文本,为其他表示自定义内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/left-arrow": { + "type": "Boolean", + "description": "是否显示左侧箭头\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/right": { + "type": "String|TNode", + "description": "右侧区域。值为 `string` 表示文本,为其他表示自定义内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/title": { + "type": "String|TNode", + "description": "page title\n\n页面标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/title-max-length": { + "type": "Number", + "description": "标题文字最大长度,超出的范围使用 `...` 表示\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/visible": { + "type": "Boolean", + "description": "是否显示\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" + }, + "t-navbar/left-click": { + "type": "event", + "description": "点击左侧区域时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events)" + }, + "t-navbar/right-click": { + "type": "event", + "description": "点击右侧区域时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events)" + }, + "t-notice-bar/content": { + "type": "String|Array|TNode", + "description": "文本内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" + }, + "t-notice-bar/direction": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "已废弃。右侧额外信息\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" + }, + "t-notice-bar/marquee": { + "type": "Boolean|Object", + "description": "跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" + }, + "t-notice-bar/operation": { + "type": "String|TNode", + "description": "右侧额外信息\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" + }, + "t-notice-bar/prefix-icon": { + "type": "TNode", + "description": "前缀图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" + }, + "t-notice-bar/suffix-icon": { + "type": "TNode", + "description": "后缀图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" + }, + "t-notice-bar/theme": { + "type": "String", + "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": { + "type": "Boolean", + "description": "显示/隐藏\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" + }, + "t-notice-bar/change": { + "type": "event", + "description": "展示或关闭公告栏时触发。参数为true时,代表展示公告栏。参数为false时,代表关闭公告栏\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-events)" + }, + "t-notice-bar/click": { + "type": "event", + "description": "点击事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-events)" + }, + "t-overlay/duration": { + "type": "Number", + "description": "背景色过渡时间,单位毫秒\n\ndefault: 300\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" + }, + "t-overlay/prevent-scroll-through": { + "type": "Boolean", + "description": "防止滚动穿透,即不允许点击和滚动\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" + }, + "t-overlay/transparent": { + "type": "Boolean", + "description": "遮罩层是否透明\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" + }, + "t-overlay/visible": { + "type": "Boolean", + "description": "是否展示\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" + }, + "t-overlay/z-index": { + "type": "Number", + "description": "遮罩的层级\n\ndefault: 1000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" + }, + "t-overlay/click": { + "type": "event", + "description": "遮罩层的点击事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-events)" + }, + "t-pagination/show-first-and-last-page-btn": { + "type": "Boolean", + "description": "是否显示跳转首页尾页页码控制器\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props)" + }, + "t-pagination/show-page-number": { + "type": "Boolean", + "description": "是否显示页码控制器\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props)" + }, + "t-pagination/show-page-size": { + "type": "Boolean", + "description": "是否显示分页数量控制器\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props)" + }, + "t-pagination/show-previous-and-next-btn": { + "type": "Boolean", + "description": "是否显示跳转前后页页码控制器\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props)" + }, + "t-picker/cancel-btn": { + "type": "String|Boolean|Object", + "description": "取消按钮文字\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/columns": { + "type": "Array|Function", + "description": "配置每一列的选项\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/confirm-btn": { + "type": "String|Boolean|Object", + "description": "确定按钮文字\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/header": { + "type": "Boolean|TNode", + "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/keys": { + "type": "Object", + "description": "用来定义 value / label 在 `options` 中对应的字段别名\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/render-label": { + "type": "Function", + "description": "自定义label\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/title": { + "type": "String", + "description": "标题\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/value": { + "type": "Array", + "description": "选中值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/visible": { + "type": "Boolean", + "description": "是否显示\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" + }, + "t-picker/cancel": { + "type": "event", + "description": "点击取消按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events)" + }, + "t-picker/change": { + "type": "event", + "description": "选中变化时候触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events)" + }, + "t-picker/confirm": { + "type": "event", + "description": "点击确认按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events)" + }, + "t-picker/pick": { + "type": "event", + "description": "任何一列选中都会触发,不同的列参数不同。`context.column` 表示第几列变化,`context.index` 表示变化那一列的选中项下标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events)" + }, + "t-picker-item/format": { + "type": "Function", + "description": "格式化标签\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker-item?tab=api#pickeritem-props)" + }, + "t-picker-item/options": { + "type": "Array", + "description": "数据源\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker-item?tab=api#pickeritem-props)" + }, + "t-popconfirm/default": { + "type": "String|TNode", + "description": "触发元素,同 triggerElement\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props)" + }, + "t-popconfirm/destroy-on-close": { + "type": "Boolean", + "description": "是否在关闭浮层时销毁浮层\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props)" + }, + "t-popconfirm/trigger-element": { + "type": "String|TNode", + "description": "触发元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props)" + }, + "t-popover/close-on-click-outside": { + "type": "Boolean", + "description": "是否在点击外部元素后关闭菜单 \n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + }, + "t-popover/content": { + "type": "String|TNode", + "description": "确认框内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + }, + "t-popover/default": { + "type": "String|TNode", + "description": "触发元素,同 triggerElement\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + }, + "t-popover/placement": { + "type": "String", + "options": [ + "top", + "left", + "right", + "bottom", + "top-left", + "top-right", + "bottom-left", + "bottom-right", + "left-top", + "left-bottom", + "right-top", + "right-bottom" + ], + "description": "浮层出现位置\n\ndefault: top\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + }, + "t-popover/show-arrow": { + "type": "Boolean", + "description": "是否显示浮层箭头\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + }, + "t-popover/theme": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "触发元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + }, + "t-popover/visible": { + "type": "Boolean", + "description": "是否显示气泡确认框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + }, + "t-popover/visible-change": { + "type": "event", + "description": "确认框显示或隐藏时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-events)" + }, + "t-popup/attach": { + "type": "String|Function", + "description": "制定挂载节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body\n\ndefault: 'body'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/close-btn": { + "type": "Boolean|TNode", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以自定义关闭按钮\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/close-on-overlay-click": { + "type": "Boolean", + "description": "点击遮罩层是否关闭\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/overlay-props": { + "type": "Object", + "description": "遮罩层的属性,透传至 overlay\n\ndefault: {}\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/placement": { + "type": "String", + "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": { + "type": "Boolean", + "description": "防止滚动穿透\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/show-overlay": { + "type": "Boolean", + "description": "是否显示遮罩层\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/transition-name": { + "type": "String", + "description": "弹出层内容区的动画名,等价于transition组件的name属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/visible": { + "type": "Boolean", + "description": "是否显示浮层\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/z-index": { + "type": "Number", + "description": "组件层级,Web 侧样式默认为 5500,移动端和小程序样式默认为 1500\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" + }, + "t-popup/close": { + "type": "event", + "description": "组件准备关闭时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events)" + }, + "t-popup/closed": { + "type": "event", + "description": "组件关闭且动画结束后执行\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events)" + }, + "t-popup/open": { + "type": "event", + "description": "组件准备展示时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events)" + }, + "t-popup/opened": { + "type": "event", + "description": "组件展示且动画结束后执行\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events)" + }, + "t-popup/visible-change": { + "type": "event", + "description": "当浮层隐藏或显示时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events)" + }, + "t-progress/color": { + "type": "String|Object|Array", + "description": "进度条颜色。示例:'#ED7B2F' 或 'orange' 或 `['#f00', '#0ff', '#f0f']` 或 `{ '0%': '#f00', '100%': '#0ff' }` 或 `{ from: '#000', to: '#000' }` 等\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props)" + }, + "t-progress/label": { + "type": "String|Boolean|TNode", + "description": "进度百分比,可自定义\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props)" + }, + "t-progress/percentage": { + "type": "Number", + "description": "进度条百分比\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props)" + }, + "t-progress/status": { + "type": "String", + "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": { + "type": "String|Number", + "description": "进度条线宽。宽度数值不能超过 size 的一半,否则不能输出环形进度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props)" + }, + "t-progress/theme": { + "type": "String", + "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": { + "type": "String", + "description": "进度条未完成部分颜色\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props)" + }, + "t-pull-down-refresh/loading-bar-height": { + "type": "String|Number", + "description": "加载中下拉高度,如果值为数字则单位是:'px'\n\ndefault: 50\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" + }, + "t-pull-down-refresh/loading-props": { + "type": "Object", + "description": "加载loading样式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" + }, + "t-pull-down-refresh/loading-texts": { + "type": "Array", + "description": "提示语,组件内部默认值为 ['下拉刷新', '松手刷新', '正在刷新', '刷新完成']\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" + }, + "t-pull-down-refresh/max-bar-height": { + "type": "String|Number", + "description": "最大下拉高度,如果值为数字则单位是:'px'\n\ndefault: 80\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" + }, + "t-pull-down-refresh/refresh-timeout": { + "type": "Number", + "description": "刷新超时时间\n\ndefault: 3000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" + }, + "t-pull-down-refresh/value": { + "type": "Boolean", + "description": "组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props)" + }, + "t-pull-down-refresh/change": { + "type": "event", + "description": "下拉或收起时触发,用户手势往下滑动触发下拉状态,手势松开触发收起状态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events)" + }, + "t-pull-down-refresh/refresh": { + "type": "event", + "description": "结束下拉时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events)" + }, + "t-pull-down-refresh/timeout": { + "type": "event", + "description": "刷新超时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events)" + }, + "t-radio/align": { + "type": "String", + "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" + ], + "description": "已废弃。复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/allow-uncheck": { + "type": "Boolean", + "description": "是否允许取消选中\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/allow-uncheck": { + "type": "Boolean", + "description": "是否允许取消选中\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/block": { + "type": "Boolean", + "description": "是否为块级元素\t\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/block": { + "type": "Boolean", + "description": "是否为块级元素\t\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/borderless": { + "type": "Boolean", + "description": "是否开启无边框模式\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/borderless": { + "type": "Boolean", + "description": "是否开启无边框模式\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/checked": { + "type": "Boolean", + "description": "是否选中\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/checked": { + "type": "Boolean", + "description": "是否选中\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/content": { + "type": "String|TNode", + "description": "单选内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/content": { + "type": "String|TNode", + "description": "单选内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/content-disabled": { + "type": "Boolean", + "description": "是否禁用组件内容(content)触发选中\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/content-disabled": { + "type": "Boolean", + "description": "是否禁用组件内容(content)触发选中\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/default": { + "type": "String|TNode", + "description": "单选按钮内容,同 label\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/default": { + "type": "String|TNode", + "description": "单选按钮内容,同 label\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/disabled": { + "type": "Boolean", + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。Radio.disabled 优先级高于 RadioGroup.disabled\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/disabled": { + "type": "Boolean", + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。Radio.disabled 优先级高于 RadioGroup.disabled\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/icon": { + "type": "String|Array", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标\n\ndefault: 'circle'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/icon": { + "type": "String|Array", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标\n\ndefault: 'circle'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/label": { + "type": "String|TNode", + "description": "主文案\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/label": { + "type": "String|TNode", + "description": "主文案\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/max-content-row": { + "type": "Number", + "description": "内容最大行数限制\n\ndefault: 5\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/max-content-row": { + "type": "Number", + "description": "内容最大行数限制\n\ndefault: 5\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/max-label-row": { + "type": "Number", + "description": "主文案最大行数限制\n\ndefault: 3\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/max-label-row": { + "type": "Number", + "description": "主文案最大行数限制\n\ndefault: 3\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/name": { + "type": "String", + "description": "HTML 元素原生属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/name": { + "type": "String", + "description": "HTML 元素原生属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/placement": { + "type": "String", + "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" + ], + "description": "复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/value": { + "type": "String|Number|Boolean", + "description": "单选按钮的值\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/value": { + "type": "String|Number|Boolean", + "description": "单选按钮的值\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/change": { + "type": "event", + "description": "选中状态变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-events)" + }, + "t-radio-button/change": { + "type": "event", + "description": "选中状态变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-events)" + }, + "t-radio-group/allow-uncheck": { + "type": "Boolean", + "description": "是否允许取消选中\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/borderless": { + "type": "Boolean", + "description": "是否开启无边框模式;优先级低于 Radio\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/disabled": { + "type": "Boolean", + "description": "是否禁用全部子单选框。默认为 false。RadioGroup.disabled 优先级低于 Radio.disabled\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/keys": { + "type": "Object", + "description": "用来定义 value / label 在 `options` 中对应的字段别名\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/name": { + "type": "String", + "description": "HTML 元素原生属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/options": { + "type": "Array", + "description": "单选组件按钮形式。RadioOption 数据类型为 string 或 number 时,表示 label 和 value 值相同\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/placement": { + "type": "String", + "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": { + "type": "String|Number|Boolean", + "description": "选中的值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/change": { + "type": "event", + "description": "选中值发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-events)" + }, + "t-range-input/active-index": { + "type": "Number", + "description": "输入框高亮状态序号\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/clearable": { + "type": "Boolean", + "description": "是否可清空\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/disabled": { + "type": "Boolean", + "description": "是否禁用范围输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/format": { + "type": "Array|Function", + "description": "指定输入框展示值的格式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/input-props": { + "type": "Object|Array", + "description": "透传 Input 输入框组件全部属性,数组第一项表示第一个输入框属性,第二项表示第二个输入框属性。示例:`[{ label: 'A', name: 'A-name' }, { label: 'B', name: 'B-name' }]`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/label": { + "type": "String|TNode", + "description": "左侧内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/placeholder": { + "type": "String|Array", + "description": "占位符,示例:'请输入' 或者 ['开始日期', '结束日期']\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/prefix-icon": { + "type": "TNode", + "description": "组件前置图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/separator": { + "type": "String|TNode", + "description": "范围分隔符\n\ndefault: '-'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/status": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "后置图标前的后置内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/suffix-icon": { + "type": "TNode", + "description": "组件后置图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/tips": { + "type": "String|TNode", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/value": { + "type": "Array", + "description": "范围输入框的值\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + }, + "t-range-input/blur": { + "type": "event", + "description": "范围输入框失去焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events)" + }, + "t-range-input/change": { + "type": "event", + "description": "范围输入框值发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events)" + }, + "t-range-input/clear": { + "type": "event", + "description": "清空按钮点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events)" + }, + "t-range-input/click": { + "type": "event", + "description": "范围输入框点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events)" + }, + "t-range-input/enter": { + "type": "event", + "description": "回车键按下时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events)" + }, + "t-range-input/focus": { + "type": "event", + "description": "范围输入框获得焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events)" + }, + "t-range-input-popup/status": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input-popup?tab=api#rangeinputpopup-props)" + }, + "t-rate/allow-half": { + "type": "Boolean", + "description": "是否允许半选\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/clearable": { + "type": "Boolean", + "description": "是否允许取消选择\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/color": { + "type": "String|Array", + "description": "评分图标的颜色,样式中默认为 #ED7B2F。一个值表示设置选中高亮的五角星颜色,示例:[选中颜色]。数组则表示分别设置 选中高亮的五角星颜色 和 未选中暗灰的五角星颜色,[选中颜色,未选中颜色]。示例:['#ED7B2F', '#E3E6EB']。\n\ndefault: '#ED7B2F'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/count": { + "type": "Number", + "description": "评分的数量\n\ndefault: 5\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/disabled": { + "type": "Boolean", + "description": "是否禁用评分\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/gap": { + "type": "Number", + "description": "评分图标的间距\n\ndefault: 4\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/icon": { + "type": "Array|TNode", + "description": "自定义评分图标,[选中图标,未选中图标]\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/show-text": { + "type": "Boolean", + "description": "是否显示对应的辅助文字\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/size": { + "type": "String", + "description": "评分图标的大小\n\ndefault: 24px\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/texts": { + "type": "Array", + "description": "评分等级对应的辅助文字。组件内置默认值为:['极差', '失望', '一般', '满意', '惊喜']。自定义值示例:['1分', '2分', '3分', '4分', '5分']\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/value": { + "type": "Number", + "description": "选择评分的值\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + }, + "t-rate/variant": { + "type": "String", + "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": { + "type": "event", + "description": "评分数改变时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-events)" + }, + "t-result/description": { + "type": "String|TNode", + "description": "描述文字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props)" + }, + "t-result/icon": { + "type": "TNode", + "description": "图标名称\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props)" + }, + "t-result/image": { + "type": "String|TNode", + "description": "图片地址\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props)" + }, + "t-result/theme": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "标题\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props)" + }, + "t-row/gutter": { + "type": "String|Number", + "description": "列之间的间距(默认单位px)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/row?tab=api#row-props)" + }, + "t-search/action": { + "type": "String|TNode", + "description": "自定义右侧操作按钮文字,如:“取消”\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/autocomplete-options": { + "type": "Array", + "description": "autocomplete words list\n\n【讨论中】联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/center": { + "type": "Boolean", + "description": "是否居中\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/clearable": { + "type": "Boolean", + "description": "是否可清空\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/disabled": { + "type": "Boolean", + "description": "禁用状态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/focus": { + "type": "event", + "description": "获得焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events)" + }, + "t-search/left-icon": { + "type": "String|TNode", + "description": "左侧图标\n\ndefault: 'search'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/placeholder": { + "type": "String", + "description": "占位符\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/shape": { + "type": "String", + "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": { + "type": "String", + "description": "值,搜索关键词\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + }, + "t-search/action-click": { + "type": "event", + "description": "点击搜索框右侧操作内容时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events)" + }, + "t-search/blur": { + "type": "event", + "description": "失去焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events)" + }, + "t-search/change": { + "type": "event", + "description": "搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events)" + }, + "t-search/clear": { + "type": "event", + "description": "点击清除时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events)" + }, + "t-search/search": { + "type": "event", + "description": "【讨论中】搜索触发,包含:手机键盘提交健、联想关键词点击、清空按钮点击等\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events)" + }, + "t-search/submit": { + "type": "event", + "description": "提交时触发,如:手机键盘提交按钮点击\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events)" + }, + "t-segmented-control/items": { + "type": "Array", + "description": "分段器选项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/segmented-control?tab=api#segmentedcontrol-props)" + }, + "t-segmented-control/value": { + "type": "String|Number|Array", + "description": "选中值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/segmented-control?tab=api#segmentedcontrol-props)" + }, + "t-segmented-control/change": { + "type": "event", + "description": "选中值变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/segmented-control?tab=api#segmentedcontrol-events)" + }, + "t-select/select-input-props": { + "type": "Object", + "description": "透传 SelectInput 筛选器输入框组件的全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props)" + }, + "t-select/tag-input-props": { + "type": "Object", + "description": "透传 TagInput 标签输入框组件的全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props)" + }, + "t-select/tag-props": { + "type": "Object", + "description": "透传 Tag 标签组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props)" + }, + "t-skeleton/animation": { + "type": "String", + "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": { + "type": "Number", + "description": "延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props)" + }, + "t-skeleton/loading": { + "type": "Boolean", + "description": "是否为加载状态,如果是则显示骨架图,如果不是则显示加载完成的内容\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props)" + }, + "t-skeleton/theme": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否禁用组件\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/label": { + "type": "String|Boolean|TNode", + "description": "滑块当前值文本。
值为 true 显示默认文案;值为 false 不显示滑块当前值文本;
值为 `${value}%` 则表示组件会根据占位符渲染文案;
值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/marks": { + "type": "Object|Array", + "description": "刻度标记,示例:[0, 10, 40, 200] 或者 `{ 10: (val) => val + '%', 50: (h) => }`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/max": { + "type": "Number", + "description": "滑块范围最大值\n\ndefault: 100\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/min": { + "type": "Number", + "description": "滑块范围最小值\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/range": { + "type": "Boolean", + "description": "双游标滑块\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/show-extreme-value": { + "type": "Boolean", + "description": "是否边界值\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/step": { + "type": "Number", + "description": "步长\n\ndefault: 1\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/theme": { + "type": "String", + "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": { + "type": "Number|Array", + "description": "滑块值\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + }, + "t-slider/change": { + "type": "event", + "description": "滑块值变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-events)" + }, + "t-slider/dragend": { + "type": "event", + "description": "结束拖动时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-events)" + }, + "t-slider/dragstart": { + "type": "event", + "description": "开始拖动时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-events)" + }, + "t-space/align": { + "type": "String", + "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": { + "type": "Boolean", + "description": "Whether to wrap, valid only in horizontal\n\n是否自动换行,仅在 horizontal 时有效\t\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props)" + }, + "t-space/direction": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "separator\n\n分隔符\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props)" + }, + "t-space/size": { + "type": "String|Number|Array", + "description": "Spacing\n\n间距大小\n\ndefault: 'medium'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props)" + }, + "t-step-item/content": { + "type": "String|TNode", + "description": "步骤描述\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props)" + }, + "t-step-item/icon": { + "type": "Boolean|TNode", + "description": "图标,默认显示内置图标,也可以自定义图标,值为 false 则不显示图标。优先级大于 `status` 定义的图标\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props)" + }, + "t-step-item/status": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "标题\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props)" + }, + "t-stepper/disable-input": { + "type": "Boolean", + "description": "禁用输入框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" + }, + "t-stepper/disabled": { + "type": "Boolean", + "description": "禁用全部操作\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" + }, + "t-stepper/input-width": { + "type": "Number", + "description": "输入框宽度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" + }, + "t-stepper/max": { + "type": "Number", + "description": "最大值\n\ndefault: 100\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" + }, + "t-stepper/min": { + "type": "Number", + "description": "最小值\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" + }, + "t-stepper/size": { + "type": "String", + "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": { + "type": "Number", + "description": "步长\n\ndefault: 1\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" + }, + "t-stepper/theme": { + "type": "String", + "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": { + "type": "String|Number", + "description": "值\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props)" + }, + "t-stepper/blur": { + "type": "event", + "description": "输入框失去焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events)" + }, + "t-stepper/change": { + "type": "event", + "description": "数值发生变更时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events)" + }, + "t-stepper/overlimit": { + "type": "event", + "description": "数值超出限制时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events)" + }, + "t-steps/current": { + "type": "String|Number", + "description": "当前步骤,即整个步骤条进度。默认根据步骤下标判断步骤的完成状态,当前步骤为进行中,当前步骤之前的步骤为已完成,当前步骤之后的步骤为未开始。如果每个步骤没有设置 value,current 值为步骤长度则表示所有步骤已完成。如果每个步骤设置了自定义 value,则 current = 'FINISH' 表示所有状态完成\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" + }, + "t-steps/layout": { + "type": "String", + "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": { + "type": "Array", + "description": "步骤条数据列表(作用和 StepItem 效果一样)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" + }, + "t-steps/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" + }, + "t-steps/separator": { + "type": "String", + "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" + ], + "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" + ], + "description": "步骤条风格\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" + }, + "t-steps/change": { + "type": "event", + "description": "当前步骤发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-events)" + }, + "t-sticky/container": { + "type": "String|Function", + "description": "指定滚动的容器。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body\n\ndefault: body\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props)" + }, + "t-sticky/disabled": { + "type": "Boolean", + "description": "是否禁用组件\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props)" + }, + "t-sticky/offset-top": { + "type": "String|Number", + "description": "吸顶时与顶部的距离,单位`px`\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props)" + }, + "t-sticky/z-index": { + "type": "Number", + "description": "吸顶时的 z-index\n\ndefault: 99\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props)" + }, + "t-sticky/scroll": { + "type": "event", + "description": "滚动时触发,scrollTop: 距离顶部位置,isFixed: 是否吸顶\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-events)" + }, + "t-sticky-tool/shape": { + "type": "String", + "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" + ], + "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": { + "type": "String|TNode", + "description": "操作项以外的内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" + }, + "t-swipe-cell/default": { + "type": "String|TNode", + "description": "子内容,同 content\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" + }, + "t-swipe-cell/disabled": { + "type": "Boolean", + "description": "是否禁用滑动\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" + }, + "t-swipe-cell/expanded": { + "type": "String", + "options": [ + "left", + "right" + ], + "description": "操作项是否呈现为打开态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" + }, + "t-swipe-cell/left": { + "type": "Array|TNode", + "description": "左侧滑动操作项。所有行为同 `right`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" + }, + "t-swipe-cell/opened": { + "type": "Boolean|Array", + "description": "操作项是否呈现为打开态,值为数组时表示分别控制左右滑动的展开和收起状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" + }, + "t-swipe-cell/right": { + "type": "Array|TNode", + "description": "右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', style: 'background-color: red', onClick: () => {} }]`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props)" + }, + "t-swipe-cell/change": { + "type": "event", + "description": "菜单展开或者收回后将菜单的状态传递给父组件,值为数组时表示分别控制左右滑动的展开和收起状态。\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-events)" + }, + "t-swipe-cell/click": { + "type": "event", + "description": "操作项点击时触发(插槽写法组件不触发,业务侧自定义内容和事件)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-events)" + }, + "t-swiper/animation": { + "type": "String", + "options": [ + "slide" + ], + "description": "轮播切换动画效果类型\n\ndefault: slide\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/autoplay": { + "type": "Boolean", + "description": "是否自动播放\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/current": { + "type": "Number", + "description": "当前轮播在哪一项(下标)\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/direction": { + "type": "String", + "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": { + "type": "Number", + "description": "滑动动画时长\n\ndefault: 300\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/height": { + "type": "Number", + "description": "当使用垂直方向滚动时的高度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/interval": { + "type": "Number", + "description": "轮播间隔时间\n\ndefault: 5000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/loop": { + "type": "Boolean", + "description": "是否循环播放\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/navigation": { + "type": "Object|TNode", + "description": "导航器全部配置\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/next-margin": { + "type": "String|Number", + "description": "后边距,可用于露出后一项的一小部分。默认单位 `px`\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/previous-margin": { + "type": "String|Number", + "description": "前边距,可用于露出前一项的一小部分。默认单位 `px`\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" + }, + "t-swiper/type": { + "type": "String", + "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": { + "type": "event", + "description": "轮播切换时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-events)" + }, + "t-swiper/click": { + "type": "event", + "description": "点击轮播项时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-events)" + }, + "t-swiper-nav/current": { + "type": "Number", + "description": "当前轮播在哪一项(下标)\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" + }, + "t-swiper-nav/direction": { + "type": "String", + "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": { + "type": "Number", + "description": "小于这个数字不会显示导航器\n\ndefault: 2\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" + }, + "t-swiper-nav/placement": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否显示两侧的控制按钮\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" + }, + "t-swiper-nav/total": { + "type": "Number", + "description": "总共的项数\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" + }, + "t-swiper-nav/type": { + "type": "String", + "description": "导航器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等\n\ndefault: dots\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" + }, + "t-switch/colors": { + "type": "Array", + "description": "已废弃。自定义颜色,[打开时的颜色,关闭时的颜色]。组件默认颜色为 ['#0052d9', 'rgba(0, 0, 0, .26']。示例:[blue, gray]\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" + }, + "t-switch/custom-value": { + "type": "Array", + "description": "用于自定义开关的值,[打开时的值,关闭时的值]。默认为 [true, false]。示例:[1, 0]、['open', 'close']\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" + }, + "t-switch/disabled": { + "type": "Boolean", + "description": "是否禁用组件,默认为 false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" + }, + "t-switch/icon": { + "type": "Array", + "description": "开关的图标;[打开时的图标,关闭时的图标]\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" + }, + "t-switch/label": { + "type": "Array", + "description": "开关的标签;[打开时的标签,关闭时的标签]\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" + }, + "t-switch/loading": { + "type": "Boolean", + "description": "是否处于加载中状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" + }, + "t-switch/size": { + "type": "String", + "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": { + "type": "String|Number|Boolean", + "description": "开关值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" + }, + "t-switch/change": { + "type": "event", + "description": "数据发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-events)" + }, + "t-tab-bar/bordered": { + "type": "Boolean", + "description": "是否显示外边框\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" + }, + "t-tab-bar/fixed": { + "type": "Boolean", + "description": "是否固定在底部\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" + }, + "t-tab-bar/safe-area-inset-bottom": { + "type": "Boolean", + "description": "是否为 iPhoneX 留出底部安全距离\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" + }, + "t-tab-bar/shape": { + "type": "String", + "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": { + "type": "Boolean", + "description": "是否需要分割线\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" + }, + "t-tab-bar/theme": { + "type": "String", + "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": { + "type": "String|Number|Array", + "description": "当前选中标签的索引\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" + }, + "t-tab-bar/change": { + "type": "event", + "description": "选中标签切换时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-events)" + }, + "t-tab-bar-item/badge-props": { + "type": "Object", + "description": "图标右上角提示信息\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props)" + }, + "t-tab-bar-item/icon": { + "type": "TNode", + "description": "图标名称\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props)" + }, + "t-tab-bar-item/sub-tab-bar": { + "type": "Array", + "description": "二级菜单\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props)" + }, + "t-tab-bar-item/value": { + "type": "String|Number", + "description": "标识符\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props)" + }, + "t-tab-panel/badge-props": { + "type": "Object", + "description": "透传至 Badge 组件\n\ndefault: null\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" + }, + "t-tab-panel/destroy-on-hide": { + "type": "Boolean", + "description": "选项卡内容隐藏时是否销毁\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" + }, + "t-tab-panel/disabled": { + "type": "Boolean", + "description": "是否禁用当前选项卡\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" + }, + "t-tab-panel/label": { + "type": "String|TNode", + "description": "选项卡名称,可自定义选项卡导航内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" + }, + "t-tab-panel/panel": { + "type": "String|TNode", + "description": "用于自定义选项卡面板内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" + }, + "t-tab-panel/value": { + "type": "String|Number", + "description": "选项卡的值,唯一标识\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" + }, + "t-tabs/animation": { + "type": "Object", + "description": "动画效果设置。其中 duration 表示动画时长。(单位:秒)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/list": { + "type": "Array", + "description": "选项卡列表\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/show-bottom-line": { + "type": "Boolean", + "description": "是否展示底部激活线条\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/size": { + "type": "String", + "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": { + "type": "Boolean", + "description": "选项卡头部空间是否均分\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/sticky": { + "type": "Boolean", + "description": "是否开启粘性布局\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/sticky-props": { + "type": "Object", + "description": "透传至 Sticky 组件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/swipeable": { + "type": "Boolean", + "description": "是否可以滑动切换\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/theme": { + "type": "String", + "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": { + "type": "String|Number", + "description": "激活的选项卡值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/change": { + "type": "event", + "description": "激活的选项卡发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-events)" + }, + "t-tabs/click": { + "type": "event", + "description": "点击选项卡时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-events)" + }, + "t-tabs/scroll": { + "type": "event", + "description": "页面滚动时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-events)" + }, + "t-tag/closable": { + "type": "Boolean", + "description": "标签是否可关闭\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" + }, + "t-tag/content": { + "type": "String|TNode", + "description": "组件子元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" + }, + "t-tag/default": { + "type": "String|TNode", + "description": "组件子元素,同 `content`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" + }, + "t-tag/disabled": { + "type": "Boolean", + "description": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" + }, + "t-tag/icon": { + "type": "TNode", + "description": "标签中的图标,可自定义图标呈现\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" + }, + "t-tag/max-width": { + "type": "String|Number", + "description": "标签最大宽度,宽度超出后会出现省略号。示例:'50px' / 80\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" + }, + "t-tag/shape": { + "type": "String", + "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" + ], + "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" + ], + "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" + ], + "description": "标签风格变体\n\ndefault: dark\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props)" + }, + "t-tag/click": { + "type": "event", + "description": "点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-events)" + }, + "t-tag/close": { + "type": "event", + "description": "如果关闭按钮存在,点击关闭按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-events)" + }, + "t-textarea/allow-input-over-max": { + "type": "Boolean", + "description": "超出maxlength或maxcharacter之后是否还允许输入\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/autofocus": { + "type": "Boolean", + "description": "自动聚焦,拉起键盘\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/autosize": { + "type": "Boolean", + "description": "是否自动增高,值为 autosize 时,style.height 不生效\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/bordered": { + "type": "Boolean", + "description": "是否显示外边框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/disabled": { + "type": "Boolean", + "description": "是否禁用文本框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/indicator": { + "type": "Boolean", + "description": "显示文本计数器,如 0/140。当 maxlength < 0 && maxcharacter < 0 成立时, indicator无效\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/label": { + "type": "String|TNode", + "description": "左侧文本\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/maxcharacter": { + "type": "Number", + "description": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/maxlength": { + "type": "Number", + "description": "用户最多可以输入的字符个数\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/name": { + "type": "String", + "description": "名称,HTML 元素原生属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/placeholder": { + "type": "String", + "description": "占位符\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/value": { + "type": "String|Number", + "description": "文本框值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + }, + "t-textarea/blur": { + "type": "event", + "description": "失去焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-events)" + }, + "t-textarea/change": { + "type": "event", + "description": "输入内容变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-events)" + }, + "t-textarea/focus": { + "type": "event", + "description": "获得焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-events)" + }, + "t-time-range-picker/focus": { + "type": "event", + "description": "范围输入框获得焦点时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/time-range-picker?tab=api#timerangepicker-events)" + }, + "t-timeline/label-align": { + "type": "String", + "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" + ], + "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" + ], + "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": { + "type": "Boolean", + "description": "时间轴是否表现为倒序\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props)" + }, + "t-timeline/theme": { + "type": "String", + "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": { + "type": "String|TNode", + "description": "描述内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props)" + }, + "t-timeline-item/dot": { + "type": "TNode", + "description": "用于自定义时间轴节点元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props)" + }, + "t-timeline-item/dot-color": { + "type": "String", + "description": "时间轴颜色,内置 `primary/warning/error/default` 四种色值,可传入 16 进制颜色码或 RGB 颜色值.\n\ndefault: primary\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props)" + }, + "t-timeline-item/label": { + "type": "String|TNode", + "description": "标签文本内容,可完全自定义\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props)" + }, + "t-timeline-item/label-align": { + "type": "String", + "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" + ], + "description": "图标排列方式\n\ndefault: row\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/duration": { + "type": "Number", + "description": "弹窗显示毫秒数\n\ndefault: 2000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/icon": { + "type": "String|TNode", + "description": "自定义图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/message": { + "type": "String|TNode", + "description": "弹窗显示文字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/overlay-props": { + "type": "Object", + "description": "遮罩层属性,透传至 Overlay\n\ndefault: {}\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/placement": { + "type": "String", + "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": { + "type": "Boolean", + "description": "防止滚动穿透,即不允许点击和滚动\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/show-overlay": { + "type": "Boolean", + "description": "是否显示遮罩层\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/theme": { + "type": "String", + "options": [ + "loading", + "success", + "error" + ], + "description": "提示类型\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" + }, + "t-toast/close": { + "type": "event", + "description": "轻提示隐藏的时候触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-events)" + }, + "t-toast/destroy": { + "type": "event", + "description": "轻提示销毁的时候触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-events)" + }, + "t-tree-select/clearable": { + "type": "Boolean", + "description": "是否允许清空\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/custom-style": { + "type": "String", + "description": "自定义组件样式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/filterable": { + "type": "Boolean", + "description": "是否可搜索\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/height": { + "type": "String|Number", + "description": "高度,默认单位为 px\n\ndefault: 336\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/keys": { + "type": "Object", + "description": "用来定义 `value / label / children` 在 `data` 数据中对应的字段别名,示例:`{ value: 'key', label 'name', children: 'list' }`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/multiple": { + "type": "Boolean", + "description": "是否多选\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/options": { + "type": "Array", + "description": "选项\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/placeholder": { + "type": "String", + "description": "占位符\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/select-input-props": { + "type": "Object", + "description": "【开发中】透传 SelectInput 筛选器输入框组件的全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/size": { + "type": "String", + "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": { + "type": "Object", + "description": "透传 Tag 标签组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/value": { + "type": "String|Number|Object|Array", + "description": "选中值,泛型 `TreeValueType` 继承自 `TreeSelectValue`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props)" + }, + "t-tree-select/change": { + "type": "event", + "description": "节点选中状态变化时触发,`context.node` 表示当前变化的选项,`context. trigger` 表示触发变化的来源。泛型 `TreeValueType` 继承自 `TreeSelectValue` \n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-events)" + }, + "t-upload/accept": { + "type": "String", + "description": "File types that can be accepted. [W3C](https://www.w3schools.com/tags/att_input_accept.asp),[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/file)\n\n接受上传的文件类型,[查看 W3C示例](https://www.w3schools.com/tags/att_input_accept.asp),[查看 MDN 示例](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/file)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/action": { + "type": "String", + "description": "Uploading URL\n\n上传接口。设接口响应数据为字段 `response`,那么 `response.error` 存在时会判断此次上传失败,并显示错误文本信息;`response.url` 会作为文件上传成功后的地址,并使用该地址显示图片或文件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/allow-upload-duplicate-file": { + "type": "Boolean", + "description": "allow to upload duplicate name files\n\n是否允许重复上传相同文件名的文件\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/auto-upload": { + "type": "Boolean", + "description": "post upload request automatically after files being selected\n\n是否在选择文件后自动发起请求上传文件\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/before-upload": { + "type": "Function", + "description": "stop one of files to upload\n\n如果是自动上传模式 `autoUpload=true`,表示单个文件上传之前的钩子函数,若函数返回值为 `false` 则表示不上传当前文件。
如果是非自动上传模式 `autoUpload=false`,函数返回值为 `false` 时表示从上传文件中剔除当前文件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/data": { + "type": "Object", + "description": "extra request data of uploading. `formatRequest` can redefine all request data\n\n上传请求所需的额外字段,默认字段有 `file`,表示文件信息。可以添加额外的文件名字段,如:`{file_name: \"custom-file-name.txt\"}`。`autoUpload=true` 时有效。也可以使用 `formatRequest` 完全自定义上传请求的字段\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/disabled": { + "type": "Boolean", + "description": "make upload to be disabled\n\n是否禁用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/file-list-display": { + "type": "TNode", + "description": "used to render file list UI\n\n用于完全自定义文件列表界面内容(UI),单文件和多文件均有效\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/files": { + "type": "Array", + "description": "已上传文件列表,同 `value`。TS 类型:`UploadFile`\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/format": { + "type": "Function", + "description": "to redefine `UploadFile` data structure\n\n转换文件 `UploadFile` 的数据结构,可新增或修改 `UploadFile` 的属性,注意不能删除 `UploadFile` 属性。`action` 存在时有效\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/format-request": { + "type": "Function", + "description": "redefine request data\n\n用于新增或修改文件上传请求参数。`action` 存在时有效。一个请求上传一个文件时,默认请求字段有 `file`;
一个请求上传多个文件时,默认字段有 `file[0]/file[1]/file[2]/.../length`,其中 `length` 表示本次上传的文件数量。
⚠️非常注意,此处的 `file[0]/file[1]` 仅仅是一个字段名,并非表示 `file` 是一个数组,接口获取字段时注意区分。
可以使用 `name` 定义 `file` 字段的别名,也可以使用 `formatRequest` 自定义任意字段\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/format-response": { + "type": "Function", + "description": "redefine response data structure\n\n用于格式化文件上传后的接口响应数据,`response` 便是接口响应的原始数据。`action` 存在时有效。
此函数的返回值 `error` 或 `response.error` 会作为错误文本提醒,如果存在会判定为本次上传失败。
此函数的返回值 `url` 或 `response.url` 会作为上传成功后的链接\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/headers": { + "type": "Object", + "description": "HTTP Request Header\n\n设置上传的请求头部,`action` 存在时有效\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/image-props": { + "type": "Object", + "description": "透传 Image 组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/max": { + "type": "Number", + "description": "max count of files limit\n\n用于控制文件上传数量,值为 0 则不限制\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/method": { + "type": "String", + "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": { + "type": "Boolean", + "description": "multiple files uploading\n\n支持多文件上传\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/request-method": { + "type": "Function", + "description": "custom upload request method\n\n自定义上传方法。返回值 `status` 表示上传成功或失败;`error` 或 `response.error` 表示上传失败的原因;
`response` 表示请求上传成功后的返回数据,`response.url` 表示上传成功后的图片/文件地址,`response.files` 表示一个请求上传多个文件/图片后的返回值。
示例一:`{ status: 'fail', error: '上传失败', response }`。
示例二:`{ status: 'success', response: { url: 'https://tdesign.gtimg.com/site/avatar.jpg' } }`。
示例三:`{ status: 'success', files: [{ url: 'https://xxx.png', name: 'xxx.png' }]}`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/size-limit": { + "type": "Number|Object", + "description": "files size limit\n\n图片文件大小限制,默认单位 KB。可选单位有:`'B' | 'KB' | 'MB' | 'GB'`。示例一:`1000`。示例二:`{ size: 2, unit: 'MB', message: '图片大小不超过 {sizeLimit} MB' }`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/use-mock-progress": { + "type": "Boolean", + "description": "use mock progress, instead of real progress\n\n是否在请求时间超过 300ms 后显示模拟进度。上传进度有模拟进度和真实进度两种。一般大小的文件上传,真实的上传进度只有 0 和 100,不利于交互呈现,因此组件内置模拟上传进度。真实上传进度一般用于大文件上传。\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/with-credentials": { + "type": "Boolean", + "description": "uploading request with cookie\n\n上传请求时是否携带 cookie\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" + }, + "t-upload/change": { + "type": "event", + "description": "trigger on uploaded files change\n\n已上传文件列表发生变化时触发,`trigger` 表示触发本次的来源\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-upload/fail": { + "type": "event", + "description": "`response.error` used for error tips, `formatResponse` can format `response`\n\n上传失败后触发。`response` 指接口响应结果,`response.error` 会作为错误文本提醒。如果希望判定为上传失败,但接口响应数据不包含 `error` 字段,可以使用 `formatResponse` 格式化 `response` 数据结构。如果是多文件多请求上传场景,请到事件 `onOneFileFail` 中查看 `response`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-upload/preview": { + "type": "event", + "description": "trigger on preview elements click\n\n点击图片预览时触发,文件没有预览\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-upload/progress": { + "type": "event", + "description": "uploading request progress event\n\n上传进度变化时触发,真实进度和模拟进度都会触发。
⚠️ 原始上传请求,小文件的上传进度只有 0 和 100,故而不会触发 `progress` 事件;只有大文件才有真实的中间进度。如果你希望很小的文件也显示上传进度,保证 `useMockProgress=true` 的情况下,设置 `mockProgressDuration` 为更小的值。
参数 `options.type=real` 表示真实上传进度,`options.type=mock` 表示模拟上传进度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-upload/remove": { + "type": "event", + "description": "trigger on file removed\n\n移除文件时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-upload/select-change": { + "type": "event", + "description": "trigger after file choose and before upload\n\n选择文件或图片之后,上传之前,触发该事件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-upload/success": { + "type": "event", + "description": "trigger on all files uploaded successfully\n\n上传成功后触发。
`context.currentFiles` 表示当次请求上传的文件(无论成功或失败),`context.fileList` 表示上传成功后的文件,`context.response` 表示上传请求的返回数据。
`context.results` 表示单次选择全部文件上传成功后的响应结果,可以在这个字段存在时提醒用户上传成功或失败。
\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-upload/validate": { + "type": "event", + "description": "trigger on length over limit, or trigger on file size over limit\n\n文件上传校验结束事件,文件数量超出、文件大小超出限制、文件同名、`beforeAllFilesUpload` 返回值为假、`beforeUpload` 返回值为假等场景会触发。
注意:如果设置允许上传同名文件,即 `allowUploadDuplicateFile=true`,则不会因为文件重名触发该事件。
结合 `status` 和 `tips` 可以在组件中呈现不同类型的错误(或告警)提示\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" + }, + "t-watermark/alpha": { + "type": "Number", + "description": "水印整体透明度,取值范围 [0-1]\n\ndefault: 1\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/content": { + "type": "String|TNode", + "description": "水印所覆盖的内容节点\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/default": { + "type": "String|TNode", + "description": "水印所覆盖的内容节点,同 `content`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/height": { + "type": "Number", + "description": "水印高度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/is-repeat": { + "type": "Boolean", + "description": "水印是否重复出现\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/line-space": { + "type": "Number", + "description": "行间距,只作用在多行(`content` 配置为数组)情况下\n\ndefault: 16\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/movable": { + "type": "Boolean", + "description": "水印是否可移动\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/move-interval": { + "type": "Number", + "description": "水印发生运动位移的间隙,单位:毫秒\n\ndefault: 3000\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/offset": { + "type": "Array", + "description": "水印在画布上绘制的水平和垂直偏移量,正常情况下水印绘制在中间位置,即 `offset = [gapX / 2, gapY / 2]`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/removable": { + "type": "Boolean", + "description": "水印是否可被删除,默认会开启水印节点防删\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/rotate": { + "type": "Number", + "description": "水印旋转的角度,单位 °\n\ndefault: -22\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/watermark-content": { + "type": "Object|Array", + "description": "水印内容,需要显示多行情况下可配置为数组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/width": { + "type": "Number", + "description": "水印宽度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/x": { + "type": "Number", + "description": "水印之间的水平间距\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/y": { + "type": "Number", + "description": "水印之间的垂直间距\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + }, + "t-watermark/z-index": { + "type": "Number", + "description": "水印元素的 `z-index`,默认值写在 CSS 中\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props)" + } +} \ No newline at end of file diff --git a/helper/tags.json b/helper/tags.json new file mode 100644 index 000000000..ac2e22842 --- /dev/null +++ b/helper/tags.json @@ -0,0 +1,1310 @@ +{ + "t-action-sheet": { + "attributes": [ + "align", + "cancel-text", + "count", + "description", + "items", + "show-cancel", + "theme", + "visible", + "cancel", + "close", + "close", + "selected", + "selected" + ], + "description": "ActionSheet\n\n动作面板\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet)" + }, + "t-avatar": { + "attributes": [ + "alt", + "badge-props", + "hide-on-load-failed", + "icon", + "image", + "image-props", + "shape", + "size", + "error" + ], + "description": "Avatar\n\n头像\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar)" + }, + "t-avatar-group": { + "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" + ], + "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" + ], + "description": "Badge\n\n徽标数\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge)" + }, + "t-button": { + "attributes": [ + "block", + "content", + "disabled", + "ghost", + "icon", + "loading", + "loading-props", + "shape", + "size", + "suffix", + "theme", + "type", + "variant", + "click" + ], + "description": "Button\n\n按钮\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button)" + }, + "t-calendar": { + "attributes": [ + "auto-close", + "confirm-btn", + "first-day-of-week", + "format", + "max-date", + "min-date", + "title", + "type", + "use-popup", + "value", + "visible", + "change", + "close", + "confirm", + "select" + ], + "description": "Calendar\n\n日历\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar)" + }, + "t-cascader": { + "attributes": [ + "close-btn", + "keys", + "options", + "sub-titles", + "theme", + "title", + "value", + "visible", + "change", + "close", + "pick" + ], + "description": "Cascader\n\n级联选择\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader)" + }, + "t-cell": { + "attributes": [ + "align", + "arrow", + "bordered", + "description", + "hover", + "image", + "left-icon", + "note", + "required", + "right-icon", + "title", + "click" + ], + "description": "Cell\n\n单元格\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell)" + }, + "t-cell-group": { + "attributes": [ + "bordered", + "theme", + "title" + ], + "description": "CellGroup\n\n单元格组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell-group)" + }, + "t-check-tag": { + "attributes": [ + "checked", + "closable", + "content", + "default", + "disabled", + "icon", + "shape", + "size", + "variant", + "change", + "click" + ], + "description": "CheckTag\n\n可选标签\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag)" + }, + "t-checkbox": { + "attributes": [ + "block", + "borderless", + "check-all", + "checked", + "content", + "content-disabled", + "default", + "disabled", + "icon", + "indeterminate", + "label", + "max-content-row", + "max-label-row", + "name", + "placement", + "readonly", + "value", + "change" + ], + "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" + ], + "description": "CheckboxGroup\n\n多选框组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group)" + }, + "t-col": { + "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" + ], + "description": "Collapse\n\n折叠\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse)" + }, + "t-collapse-panel": { + "attributes": [ + "content", + "default", + "destroy-on-collapse", + "disabled", + "expand-icon", + "header", + "header-right-content", + "placement", + "value" + ], + "description": "CollapsePanel\n\n折叠面板\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel)" + }, + "t-color-picker": { + "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" + ], + "description": "Comment\n\n评论\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment)" + }, + "t-count-down": { + "attributes": [ + "auto-start", + "content", + "format", + "millisecond", + "size", + "split-with-unit", + "theme", + "time", + "change", + "finish" + ], + "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" + ], + "description": "DateRangePicker\n\n日期范围选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-range-picker)" + }, + "t-date-time-picker": { + "attributes": [ + "cancel-btn", + "confirm-btn", + "end", + "footer", + "format", + "header", + "mode", + "render-label", + "show-week", + "start", + "steps", + "title", + "value", + "cancel", + "change", + "close", + "confirm", + "pick" + ], + "description": "DateTimePicker\n\n日期时间选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker)" + }, + "t-dialog": { + "attributes": [ + "actions", + "button-layout", + "cancel-btn", + "close-on-overlay-click", + "confirm-btn", + "content", + "destroy-on-close", + "overlay-props", + "prevent-scroll-through", + "show-overlay", + "title", + "visible", + "width", + "z-index", + "cancel", + "close", + "confirm", + "overlay-click" + ], + "description": "Dialog\n\n对话框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog)" + }, + "t-divider": { + "attributes": [ + "align", + "content", + "dashed", + "default", + "layout" + ], + "description": "Divider\n\n分割线\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/divider)" + }, + "t-drawer": { + "attributes": [ + "attach", + "close-on-overlay-click", + "destroy-on-close", + "footer", + "items", + "placement", + "show-overlay", + "title", + "visible", + "z-index", + "close", + "item-click", + "overlay-click" + ], + "description": "Drawer\n\n模态抽屉\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer)" + }, + "t-dropdown-item": { + "attributes": [ + "disabled", + "keys", + "label", + "multiple", + "options", + "options-columns", + "options-layout", + "value", + "change", + "confirm", + "reset" + ], + "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" + ], + "description": "DropdownMenu\n\n下拉菜单\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-menu)" + }, + "t-empty": { + "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" + ], + "description": "Fab\n\n悬浮按钮\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/fab)" + }, + "t-footer": { + "attributes": [ + "links", + "logo", + "text" + ], + "description": "Footer\n\n布局-底部内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/footer)" + }, + "t-form": { + "attributes": [ + "colon", + "data", + "disabled", + "error-message", + "form-controlled-components", + "label-align", + "label-width", + "layout", + "prevent-submit-default", + "required-mark", + "reset-type", + "rules", + "scroll-to-first-error", + "show-error-message", + "status-icon", + "submit-with-warning-message", + "reset", + "submit", + "validate" + ], + "description": "Form\n\n表单\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form)" + }, + "t-form-item": { + "attributes": [ + "for", + "help", + "label", + "label-align", + "label-width", + "name", + "required-mark", + "rules", + "show-error-message", + "status", + "status-icon", + "success-border", + "tips" + ], + "description": "FormItem\n\n表单元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item)" + }, + "t-grid": { + "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" + ], + "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" + ], + "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" + ], + "description": "Iconfont\n\n图标(Iconfont)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/iconfont)" + }, + "t-image": { + "attributes": [ + "alt", + "error", + "fallback", + "fit", + "lazy", + "loading", + "position", + "referrerpolicy", + "shape", + "src", + "srcset", + "error", + "load" + ], + "description": "Image\n\n图片\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image)" + }, + "t-image-viewer": { + "attributes": [ + "close-btn", + "delete-btn", + "images", + "index", + "max-zoom", + "show-index", + "visible", + "close", + "delete", + "index-change" + ], + "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" + ], + "description": "Indexes\n\n索引\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes)" + }, + "t-indexes-anchor": { + "attributes": [ + "index" + ], + "description": "IndexesAnchor\n\n索引锚点\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/indexes-anchor)" + }, + "t-input": { + "attributes": [ + "align", + "allow-input-over-max", + "autocomplete", + "autofocus", + "clearable", + "disabled", + "error-message", + "format", + "label", + "maxcharacter", + "maxlength", + "name", + "placeholder", + "prefix-icon", + "readonly", + "size", + "status", + "suffix", + "suffix-icon", + "tips", + "type", + "value", + "blur", + "change", + "clear", + "focus", + "validate" + ], + "description": "Input\n\n输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input)" + }, + "t-input-adornment": { + "attributes": [ + "append", + "prepend" + ], + "description": "InputAdornment\n\n输入装饰器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input-adornment)" + }, + "t-link": { + "attributes": [ + "content", + "default", + "disabled", + "hover", + "href", + "prefix-icon", + "size", + "suffix-icon", + "target", + "theme", + "underline", + "click" + ], + "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" + ], + "description": "List\n\n列表\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list)" + }, + "t-loading": { + "attributes": [ + "content", + "default", + "delay", + "duration", + "indicator", + "inherit-color", + "layout", + "loading", + "pause", + "progress", + "reverse", + "size", + "text", + "theme" + ], + "description": "Loading\n\n加载中\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading)" + }, + "t-message": { + "attributes": [ + "align", + "close-btn", + "content", + "duration", + "icon", + "link", + "marquee", + "offset", + "theme", + "visible", + "z-index", + "change", + "close", + "close-btn-click", + "closed", + "duration-end", + "link-click", + "open", + "opened" + ], + "description": "Message\n\n全局提醒\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message)" + }, + "t-navbar": { + "attributes": [ + "animation", + "background", + "fixed", + "left", + "left-arrow", + "right", + "title", + "title-max-length", + "visible", + "left-click", + "right-click" + ], + "description": "Navbar\n\n导航条\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar)" + }, + "t-notice-bar": { + "attributes": [ + "content", + "direction", + "extra", + "marquee", + "operation", + "prefix-icon", + "suffix-icon", + "theme", + "visible", + "change", + "click" + ], + "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" + ], + "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" + ], + "description": "Pagination\n\n分页\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pagination)" + }, + "t-picker": { + "attributes": [ + "cancel-btn", + "columns", + "confirm-btn", + "header", + "keys", + "render-label", + "title", + "value", + "visible", + "cancel", + "change", + "confirm", + "pick" + ], + "description": "Picker\n\n选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker)" + }, + "t-picker-item": { + "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" + ], + "description": "Popconfirm\n\n气泡确认框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popconfirm)" + }, + "t-popover": { + "attributes": [ + "close-on-click-outside", + "content", + "default", + "placement", + "show-arrow", + "theme", + "trigger-element", + "visible", + "visible-change" + ], + "description": "Popover\n\n气泡弹出框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover)" + }, + "t-popup": { + "attributes": [ + "attach", + "close-btn", + "close-on-overlay-click", + "overlay-props", + "placement", + "prevent-scroll-through", + "show-overlay", + "transition-name", + "visible", + "z-index", + "close", + "closed", + "open", + "opened", + "visible-change" + ], + "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" + ], + "description": "Progress\n\n进度条\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/progress)" + }, + "t-pull-down-refresh": { + "attributes": [ + "loading-bar-height", + "loading-props", + "loading-texts", + "max-bar-height", + "refresh-timeout", + "value", + "change", + "refresh", + "timeout" + ], + "description": "PullDownRefresh\n\n下拉刷新\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh)" + }, + "t-radio": { + "attributes": [ + "align", + "allow-uncheck", + "block", + "borderless", + "checked", + "content", + "content-disabled", + "default", + "disabled", + "icon", + "label", + "max-content-row", + "max-label-row", + "name", + "placement", + "value", + "change" + ], + "description": "Radio\n\n单选框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio)" + }, + "t-radio-button": { + "attributes": [ + "align", + "allow-uncheck", + "block", + "borderless", + "checked", + "content", + "content-disabled", + "default", + "disabled", + "icon", + "label", + "max-content-row", + "max-label-row", + "name", + "placement", + "value", + "change" + ], + "description": "Radio\n\n单选框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio)" + }, + "t-radio-group": { + "attributes": [ + "allow-uncheck", + "borderless", + "disabled", + "keys", + "name", + "options", + "placement", + "value", + "change" + ], + "description": "RadioGroup\n\n单选框组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group)" + }, + "t-range-input": { + "attributes": [ + "active-index", + "clearable", + "disabled", + "format", + "input-props", + "label", + "placeholder", + "prefix-icon", + "readonly", + "separator", + "status", + "suffix", + "suffix-icon", + "tips", + "value", + "blur", + "change", + "clear", + "click", + "enter", + "focus" + ], + "description": "RangeInput\n\n范围输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input)" + }, + "t-range-input-popup": { + "attributes": [ + "status", + "tips" + ], + "description": "RangeInputPopup\n\n范围输入框触发器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input-popup)" + }, + "t-rate": { + "attributes": [ + "allow-half", + "clearable", + "color", + "count", + "disabled", + "gap", + "icon", + "show-text", + "size", + "texts", + "value", + "variant", + "change" + ], + "description": "Rate\n\n评分\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate)" + }, + "t-result": { + "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" + ], + "description": "Row\n\n栅格-横向\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/row)" + }, + "t-search": { + "attributes": [ + "action", + "autocomplete-options", + "center", + "clearable", + "disabled", + "focus", + "left-icon", + "placeholder", + "readonly", + "shape", + "value", + "action-click", + "blur", + "change", + "clear", + "focus", + "search", + "submit" + ], + "description": "Search\n\n搜索\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search)" + }, + "t-segmented-control": { + "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" + ], + "description": "Select\n\n选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/select)" + }, + "t-skeleton": { + "attributes": [ + "animation", + "delay", + "loading", + "theme" + ], + "description": "Skeleton\n\n骨架屏\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton)" + }, + "t-slider": { + "attributes": [ + "disabled", + "label", + "marks", + "max", + "min", + "range", + "show-extreme-value", + "step", + "theme", + "value", + "change", + "dragend", + "dragstart" + ], + "description": "Slider\n\n滑块\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider)" + }, + "t-space": { + "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" + ], + "description": "StepItem\n\n步骤\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/step-item)" + }, + "t-stepper": { + "attributes": [ + "disable-input", + "disabled", + "input-width", + "max", + "min", + "size", + "step", + "theme", + "value", + "blur", + "change", + "overlimit" + ], + "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" + ], + "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" + ], + "description": "Sticky\n\n吸顶容器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky)" + }, + "t-sticky-tool": { + "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" + ], + "description": "SwipeCell\n\n滑动操作\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell)" + }, + "t-swiper": { + "attributes": [ + "animation", + "autoplay", + "current", + "direction", + "duration", + "height", + "interval", + "loop", + "navigation", + "next-margin", + "previous-margin", + "type", + "change", + "click" + ], + "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" + ], + "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" + ], + "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" + ], + "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" + ], + "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" + ], + "description": "TabPanel\n\n选项卡面板\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel)" + }, + "t-tabs": { + "attributes": [ + "animation", + "list", + "show-bottom-line", + "size", + "space-evenly", + "sticky", + "sticky-props", + "swipeable", + "theme", + "value", + "change", + "click", + "scroll" + ], + "description": "Tabs\n\n选项卡\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs)" + }, + "t-tag": { + "attributes": [ + "closable", + "content", + "default", + "disabled", + "icon", + "max-width", + "shape", + "size", + "theme", + "variant", + "click", + "close" + ], + "description": "Tag\n\n标签\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tag)" + }, + "t-textarea": { + "attributes": [ + "allow-input-over-max", + "autofocus", + "autosize", + "bordered", + "disabled", + "indicator", + "label", + "maxcharacter", + "maxlength", + "name", + "placeholder", + "value", + "blur", + "change", + "focus" + ], + "description": "Textarea\n\n文本输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea)" + }, + "t-time-range-picker": { + "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" + ], + "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" + ], + "description": "TimelineItem\n\n时间轴\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/timeline-item)" + }, + "t-toast": { + "attributes": [ + "direction", + "duration", + "icon", + "message", + "overlay-props", + "placement", + "prevent-scroll-through", + "show-overlay", + "theme", + "close", + "destroy" + ], + "description": "Toast\n\n轻提示\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast)" + }, + "t-tooltip": { + "attributes": [], + "description": "Tooltip\n\n文字提示\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tooltip)" + }, + "t-tree-select": { + "attributes": [ + "clearable", + "custom-style", + "filterable", + "height", + "keys", + "multiple", + "multiple", + "options", + "placeholder", + "select-input-props", + "size", + "tag-props", + "value", + "change" + ], + "description": "TreeSelect\n\n树选择\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select)" + }, + "t-upload": { + "attributes": [ + "accept", + "action", + "allow-upload-duplicate-file", + "auto-upload", + "before-upload", + "data", + "disabled", + "file-list-display", + "files", + "format", + "format-request", + "format-response", + "headers", + "image-props", + "max", + "method", + "multiple", + "request-method", + "size-limit", + "use-mock-progress", + "with-credentials", + "change", + "fail", + "preview", + "progress", + "remove", + "select-change", + "success", + "validate" + ], + "description": "Upload\n\n上传\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload)" + }, + "t-watermark": { + "attributes": [ + "alpha", + "content", + "default", + "height", + "is-repeat", + "line-space", + "movable", + "move-interval", + "offset", + "removable", + "rotate", + "watermark-content", + "width", + "x", + "y", + "z-index" + ], + "description": "Watermark\n\n水印\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/watermark)" + } +} \ No newline at end of file diff --git a/helper/web-types.json b/helper/web-types.json new file mode 100644 index 000000000..1018c0e5d --- /dev/null +++ b/helper/web-types.json @@ -0,0 +1,10675 @@ +{ + "$schema": "http://json.schemastore.org/web-types", + "framework": "vue", + "name": "tdesign-mobile-vue", + "js-types-syntax": "typescript", + "description-markup": "markdown", + "contributions": { + "html": { + "vue-components": [ + { + "name": "t-action-sheet", + "source": { + "symbol": "ActionSheet" + }, + "description": "ActionSheet\n\n动作面板", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet", + "props": [ + { + "name": "align", + "description": "水平对齐方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "String" + ], + "default": "center", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "center" + }, + { + "name": "left" + } + ] + }, + { + "name": "cancel-text", + "description": "设置取消按钮的文本", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "String" + ] + }, + { + "name": "count", + "description": "设置每页展示菜单的数量,仅当 type=grid 时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "Number" + ], + "default": "8" + }, + { + "name": "description", + "description": "动作面板描述文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "String" + ] + }, + { + "name": "items", + "description": "菜单项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "Array" + ] + }, + { + "name": "show-cancel", + "description": "是否显示取消按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "theme", + "description": "展示类型,列表和表格形式展示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "String" + ], + "default": "list", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "list" + }, + { + "name": "grid" + } + ] + }, + { + "name": "visible", + "description": "显示与隐藏", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "cancel", + "description": "点击取消按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events" + }, + { + "name": "close", + "description": "关闭时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events" + }, + { + "name": "close", + "description": "关闭时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events" + }, + { + "name": "selected", + "description": "选择菜单项时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events" + }, + { + "name": "selected", + "description": "选择菜单项时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/action-sheet?tab=api#actionsheet-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-avatar", + "source": { + "symbol": "Avatar" + }, + "description": "Avatar\n\n头像", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar", + "props": [ + { + "name": "alt", + "description": "show it when url is not valid\n\n头像替换文本,仅当图片加载失败时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "String" + ] + }, + { + "name": "badge-props", + "description": "头像右上角提示信息,继承 Badge 组件的全部特性。如:小红点,或者数字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "Object" + ] + }, + { + "name": "hide-on-load-failed", + "description": "hide image when loading image failed\n\n加载失败时隐藏图片", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "icon", + "description": "use icon to fill\n\n图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "TNode" + ] + }, + { + "name": "image", + "description": "images url\n\n图片地址", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "String" + ] + }, + { + "name": "image-props", + "description": "透传至 Image 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "Object" + ] + }, + { + "name": "shape", + "description": "shape\n\n形状", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "String" + ], + "default": "circle", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "circle" + }, + { + "name": "round" + } + ] + }, + { + "name": "size", + "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等。优先级高于 AvatarGroup.size 。Avatar 单独存在时,默认值为 medium。如果父组件存在 AvatarGroup,默认值便由 AvatarGroup.size 决定", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", + "type": [ + "String" + ], + "default": "medium" + } + ], + "js": { + "events": [ + { + "name": "error", + "description": "trigger on image load failed\n\n图片加载失败时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-events" + } + ] + }, + "slots": [ + { + "name": "icon", + "description": "use icon to fill\n\n图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props" + } + ] + }, + { + "name": "t-avatar-group", + "source": { + "symbol": "AvatarGroup" + }, + "description": "AvatarGroup\n\n头像组", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group", + "props": [ + { + "name": "cascading", + "description": "multiple images cascading\n\n图片之间的层叠关系,可选值:左侧图片在上和右侧图片在上", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props", + "type": [ + "String" + ], + "default": "'right-up'", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left-up" + }, + { + "name": "right-up" + } + ] + }, + { + "name": "collapse-avatar", + "description": "头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "max", + "description": "能够同时显示的最多头像数量", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props", + "type": [ + "Number" + ] + }, + { + "name": "size", + "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等。优先级低于 Avatar.size", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props", + "type": [ + "String" + ], + "default": "medium" + } + ], + "slots": [ + { + "name": "collapseAvatar", + "description": "头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props" + }, + { + "name": "collapse-avatar", + "description": "头像数量超出时,会出现一个头像折叠元素。该元素内容可自定义。默认为 `+N`。示例:`+5`,`...`, `更多`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props" + } + ] + }, + { + "name": "t-back-top", + "source": { + "symbol": "BackTop" + }, + "description": "BackTop\n\n回到顶部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top", + "props": [ + { + "name": "fixed", + "description": "是否绝对定位固定到屏幕右下方", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "icon", + "description": "图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", + "type": [ + "TNode" + ], + "default": "'backtop'" + }, + { + "name": "target", + "description": "定位滚动到指定对象", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", + "type": [ + "Function" + ] + }, + { + "name": "text", + "description": "文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", + "type": [ + "String" + ], + "default": "''" + }, + { + "name": "theme", + "description": "预设的样式类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", + "type": [ + "String" + ], + "default": "round", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "round" + }, + { + "name": "half-round" + }, + { + "name": "round-dark" + }, + { + "name": "half-round-dark" + } + ] + } + ], + "js": { + "events": [ + { + "name": "to-top", + "description": "点击触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-events" + } + ] + }, + "slots": [ + { + "name": "icon", + "description": "图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props" + } + ] + }, + { + "name": "t-badge", + "source": { + "symbol": "Badge" + }, + "description": "Badge\n\n徽标数", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge", + "props": [ + { + "name": "color", + "description": "颜色", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "String" + ] + }, + { + "name": "content", + "description": "徽标内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "count", + "description": "徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "String", + "Number", + "TNode" + ], + "default": "0" + }, + { + "name": "dot", + "description": "是否为红点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "max-count", + "description": "封顶的数字值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "Number" + ], + "default": "99" + }, + { + "name": "offset", + "description": "设置状态点的位置偏移,示例:[-10, 20] 或 ['10em', '8rem']", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "Array" + ] + }, + { + "name": "shape", + "description": "形状", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "String" + ], + "default": "circle", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "circle" + }, + { + "name": "square" + }, + { + "name": "bubble" + }, + { + "name": "ribbon" + } + ] + }, + { + "name": "show-zero", + "description": "当数值为 0 时,是否展示徽标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "size", + "description": "尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "medium" + }, + { + "name": "large" + } + ] + } + ], + "slots": [ + { + "name": "content", + "description": "徽标内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props" + }, + { + "name": "count", + "description": "徽标右上角内容。可以是数字,也可以是文字。如:'new'/3/99+", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props" + } + ] + }, + { + "name": "t-button", + "source": { + "symbol": "Button" + }, + "description": "Button\n\n按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button", + "props": [ + { + "name": "block", + "description": "make button to be a block-level element\n\n是否为块级元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "content", + "description": "button's children elements\n\n按钮内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "disable the button, make it can not be clicked\n\n禁用状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "ghost", + "description": "make background-color to be transparent\n\n是否为幽灵按钮(镂空按钮)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "icon", + "description": "use it to set left icon in button\n\n按钮内部图标,可完全自定义", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "TNode" + ] + }, + { + "name": "loading", + "description": "set button to be loading state\n\n是否显示为加载状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "loading-props", + "description": "透传加载组件全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "Object" + ] + }, + { + "name": "shape", + "description": "button shape\n\n按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "String" + ], + "default": "rectangle", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "rectangle" + }, + { + "name": "square" + }, + { + "name": "round" + }, + { + "name": "circle" + } + ] + }, + { + "name": "size", + "description": "a button has four size\n\n组件尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "extra-small" + }, + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "suffix", + "description": "右侧内容,可用于定义右侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "TNode" + ] + }, + { + "name": "theme", + "description": "button theme\n\n组件风格,依次为品牌色、危险色", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "primary" + }, + { + "name": "danger" + }, + { + "name": "light" + } + ] + }, + { + "name": "type", + "description": "type of button element in html\n\n按钮类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "String" + ], + "default": "button", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "submit" + }, + { + "name": "reset" + }, + { + "name": "button" + } + ] + }, + { + "name": "variant", + "description": "button variant\n\n按钮形式,基础、线框、文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "String" + ], + "default": "base", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "base" + }, + { + "name": "outline" + }, + { + "name": "text" + } + ] + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "trigger on click\n\n点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "button's children elements\n\n按钮内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props" + }, + { + "name": "icon", + "description": "use it to set left icon in button\n\n按钮内部图标,可完全自定义", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props" + }, + { + "name": "suffix", + "description": "右侧内容,可用于定义右侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props" + } + ] + }, + { + "name": "t-calendar", + "source": { + "symbol": "Calendar" + }, + "description": "Calendar\n\n日历", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar", + "props": [ + { + "name": "auto-close", + "description": "自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭,不需要手动设置 visible", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "confirm-btn", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "String", + "Object", + "TNode" + ], + "default": "''" + }, + { + "name": "first-day-of-week", + "description": "第一天从星期几开始,默认 0 = 周日", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "format", + "description": "用于格式化日期的函数", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Function" + ] + }, + { + "name": "max-date", + "description": "最大可选的日期,不传则默认半年后", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Number", + "Date" + ] + }, + { + "name": "min-date", + "description": "最小可选的日期,不传则默认今天", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Number", + "Date" + ] + }, + { + "name": "title", + "description": "标题,不传默认为“请选择日期”", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "type", + "description": "日历的选择类型,single = 单选;multiple = 多选; range = 区间选择", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "String" + ], + "default": "'single'", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "single" + }, + { + "name": "multiple" + }, + { + "name": "range" + } + ] + }, + { + "name": "use-popup", + "description": "是否使用弹出层包裹日历", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "value", + "description": "当前选择的日期,不传则默认今天,当 type = multiple 或 range 时传入数组", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Number", + "Array", + "Date" + ] + }, + { + "name": "visible", + "description": "是否显示日历;`usePopup` 为 true 时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "不显示 confirm-btn 时,完成选择时触发(暂不支持 type = multiple)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events" + }, + { + "name": "close", + "description": "关闭按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events" + }, + { + "name": "confirm", + "description": "点击确认按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events" + }, + { + "name": "select", + "description": "点击日期时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events" + } + ] + }, + "slots": [ + { + "name": "confirmBtn", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。类型和参数:string | ButtonProps | TNode | null【import { ButtonProps } from '@Button'】", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props" + }, + { + "name": "confirm-btn", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。类型和参数:string | ButtonProps | TNode | null【import { ButtonProps } from '@Button'】", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props" + }, + { + "name": "title", + "description": "标题,不传默认为“请选择日期”", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props" + } + ] + }, + { + "name": "t-cascader", + "source": { + "symbol": "Cascader" + }, + "description": "Cascader\n\n级联选择", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader", + "props": [ + { + "name": "close-btn", + "description": "关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "keys", + "description": "用来定义 value / label 在 `options` 中对应的字段别名", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "Object" + ] + }, + { + "name": "options", + "description": "可选项数据源", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "sub-titles", + "description": "每级展示的次标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "theme", + "description": "展示风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "String" + ], + "default": "step", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "step" + }, + { + "name": "tab" + } + ] + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "value", + "description": "选项值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "visible", + "description": "是否展示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "值发生变更时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-events" + }, + { + "name": "close", + "description": "关闭时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-events" + }, + { + "name": "pick", + "description": "选择后触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-events" + } + ] + }, + "slots": [ + { + "name": "closeBtn", + "description": "关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props" + }, + { + "name": "close-btn", + "description": "关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props" + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props" + } + ] + }, + { + "name": "t-cell", + "source": { + "symbol": "Cell" + }, + "description": "Cell\n\n单元格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell", + "props": [ + { + "name": "align", + "description": "内容的对齐方式,默认居中对齐", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "String" + ], + "default": "middle", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "top" + }, + { + "name": "middle" + }, + { + "name": "bottom" + } + ] + }, + { + "name": "arrow", + "description": "是否显示右侧箭头", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "bordered", + "description": "是否显示下边框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "description", + "description": "下方内容描述", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "hover", + "description": "是否开启点击反馈", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "Boolean" + ] + }, + { + "name": "image", + "description": "主图", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "left-icon", + "description": "左侧图标,出现在单元格标题的左侧", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "TNode" + ] + }, + { + "name": "note", + "description": "和标题同行的说明文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "required", + "description": "是否显示表单必填星号", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "right-icon", + "description": "最右侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "TNode" + ] + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props", + "type": [ + "String", + "TNode" + ] + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "右侧内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-events" + } + ] + }, + "slots": [ + { + "name": "description", + "description": "下方内容描述", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + }, + { + "name": "image", + "description": "主图", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + }, + { + "name": "leftIcon", + "description": "左侧图标,出现在单元格标题的左侧", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + }, + { + "name": "left-icon", + "description": "左侧图标,出现在单元格标题的左侧", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + }, + { + "name": "note", + "description": "和标题同行的说明文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + }, + { + "name": "rightIcon", + "description": "最右侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + }, + { + "name": "right-icon", + "description": "最右侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell?tab=api#cell-props" + } + ] + }, + { + "name": "t-cell-group", + "source": { + "symbol": "CellGroup" + }, + "description": "CellGroup\n\n单元格组", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell-group", + "props": [ + { + "name": "bordered", + "description": "是否显示组边框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props", + "type": [ + "Boolean" + ] + }, + { + "name": "theme", + "description": "单元格组风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "card" + } + ] + }, + { + "name": "title", + "description": "单元格组标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props", + "type": [ + "String" + ] + } + ], + "slots": [] + }, + { + "name": "t-check-tag", + "source": { + "symbol": "CheckTag" + }, + "description": "CheckTag\n\n可选标签", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag", + "props": [ + { + "name": "checked", + "description": "标签选中的状态,默认风格(theme=default)才有选中态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "Boolean" + ] + }, + { + "name": "closable", + "description": "标签是否可关闭", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "content", + "description": "组件子元素;传入数组时:[选中内容,非选中内容]", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "String", + "Number", + "Array", + "TNode" + ] + }, + { + "name": "default", + "description": "组件子元素,默认插槽", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "icon", + "description": "标签中的图标,可自定义图标呈现", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "TNode" + ] + }, + { + "name": "shape", + "description": "标签类型,有三种:方形、圆角方形、标记型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "String" + ], + "default": "square", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "square" + }, + { + "name": "round" + }, + { + "name": "mark" + } + ] + }, + { + "name": "size", + "description": "标签尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "variant", + "description": "标签风格变体", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props", + "type": [ + "String" + ], + "default": "dark", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "dark" + }, + { + "name": "light" + }, + { + "name": "outline" + }, + { + "name": "light-outline" + } + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "状态切换时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-events" + }, + { + "name": "click", + "description": "点击标签时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "组件子元素;传入数组时:[选中内容,非选中内容]类型和参数:string | number | string[] | TNode", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props" + }, + { + "name": "default", + "description": "组件子元素,默认插槽", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props" + }, + { + "name": "icon", + "description": "标签中的图标,可自定义图标呈现", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-props" + } + ] + }, + { + "name": "t-checkbox", + "source": { + "symbol": "Checkbox" + }, + "description": "Checkbox\n\n多选框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox", + "props": [ + { + "name": "block", + "description": "是否为块级元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "borderless", + "description": "是否开启无边框模式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "check-all", + "description": "用于标识是否为「全选选项」。单独使用无效,需在 CheckboxGroup 中使用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "checked", + "description": "是否选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "content", + "description": "多选框内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "content-disabled", + "description": "是否禁用组件内容(content)触发选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ] + }, + { + "name": "default", + "description": "多选框内容,同 label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "是否禁用组件。如果父组件存在 CheckboxGroup,默认值由 CheckboxGroup.disabled 控制。优先级:Checkbox.disabled > CheckboxGroup.disabled > Form.disabled", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "icon", + "description": "自定义选中图标和非选中图标。使用 Array 时表示:[选中态图标,非选中态图标]。使用 String 时,值为 circle 表示填充圆形图标、值为 line 表示描边型图标、值为 rectangle 表示填充矩形图标。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "String", + "Boolean", + "Array" + ], + "default": "'circle'" + }, + { + "name": "indeterminate", + "description": "是否为半选", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "label", + "description": "主文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "max-content-row", + "description": "内容最大行数限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Number" + ], + "default": "5" + }, + { + "name": "max-label-row", + "description": "主文案最大行数限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Number" + ], + "default": "3" + }, + { + "name": "name", + "description": "HTML 元素原生属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "String" + ] + }, + { + "name": "placement", + "description": "多选框和内容相对位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "value", + "description": "value of checkbox\n\n多选框的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", + "type": [ + "String", + "Number", + "Boolean" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "值变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "多选框内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props" + }, + { + "name": "default", + "description": "多选框内容,同 label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props" + }, + { + "name": "label", + "description": "主文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props" + } + ] + }, + { + "name": "t-checkbox-group", + "source": { + "symbol": "CheckboxGroup" + }, + "description": "CheckboxGroup\n\n多选框组", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group", + "props": [ + { + "name": "borderless", + "description": "是否开启无边框模式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "是否禁用组件,默认为 false。优先级:CheckboxGroup.disabled < Checkbox.disabled", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", + "type": [ + "Boolean" + ] + }, + { + "name": "max", + "description": "支持最多选中的数量", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", + "type": [ + "Number" + ], + "default": "undefined" + }, + { + "name": "name", + "description": "统一设置内部复选框 HTML 属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", + "type": [ + "String" + ] + }, + { + "name": "options", + "description": "以配置形式设置子元素。示例1:`['北京', '上海']` ,示例2: `[{ label: '全选', checkAll: true }, { label: '上海', value: 'shanghai' }]`。checkAll 值为 true 表示当前选项为「全选选项」", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", + "type": [ + "Array" + ] + }, + { + "name": "value", + "description": "选中值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", + "type": [ + "Array" + ], + "default": "[]" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中,`context.option` 表示当前变化的数据项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-col", + "source": { + "symbol": "Col" + }, + "description": "Col\n\n栅格-纵向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/col", + "props": [ + { + "name": "offset", + "description": "列的偏移量(默认单位px)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/col?tab=api#col-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "span", + "description": "列的宽度(默认单位px)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/col?tab=api#col-props", + "type": [ + "String", + "Number" + ] + } + ], + "slots": [] + }, + { + "name": "t-collapse", + "source": { + "symbol": "Collapse" + }, + "description": "Collapse\n\n折叠", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse", + "props": [ + { + "name": "default-expand-all", + "description": "默认是否展开全部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "是否禁用面板展开/收起操作", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props", + "type": [ + "Boolean" + ] + }, + { + "name": "expand-icon", + "description": "展开图标。值为 undefined 或 false 则不显示展开图标;值为 true 显示默认图标;值类型为函数,则表示完全自定义展开图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "expand-mutex", + "description": "每个面板互斥展开,每次只展开一个面板", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "theme", + "description": "折叠面板风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "card" + } + ] + }, + { + "name": "value", + "description": "展开的面板集合", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props", + "type": [ + "Array" + ], + "default": "[]" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "切换面板时触发,返回变化的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-events" + } + ] + }, + "slots": [ + { + "name": "expandIcon", + "description": "展开图标。值为 undefined 或 false 则不显示展开图标;值为 true 显示默认图标;值类型为函数,则表示完全自定义展开图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props" + }, + { + "name": "expand-icon", + "description": "展开图标。值为 undefined 或 false 则不显示展开图标;值为 true 显示默认图标;值类型为函数,则表示完全自定义展开图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse?tab=api#collapse-props" + } + ] + }, + { + "name": "t-collapse-panel", + "source": { + "symbol": "CollapsePanel" + }, + "description": "CollapsePanel\n\n折叠面板", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel", + "props": [ + { + "name": "content", + "description": "折叠面板内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "default", + "description": "折叠面板内容,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "destroy-on-collapse", + "description": "当前面板处理折叠状态时,是否销毁面板内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "禁止当前面板展开,优先级大于 Collapse 的同名属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "expand-icon", + "description": "当前折叠面板展开图标,优先级大于 Collapse 的同名属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "undefined" + }, + { + "name": "header", + "description": "面板头内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "header-right-content", + "description": "面板头的右侧区域,一般用于呈现面板操作", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "placement", + "description": "选项卡内容的位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "String" + ], + "default": "bottom", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "bottom" + }, + { + "name": "top" + } + ] + }, + { + "name": "value", + "description": "当前面板唯一标识,如果值为空则取当前面下标兜底作为唯一标识", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "String", + "Number" + ] + } + ], + "slots": [ + { + "name": "content", + "description": "折叠面板内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, + { + "name": "default", + "description": "折叠面板内容,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, + { + "name": "expandIcon", + "description": "当前折叠面板展开图标,优先级大于 Collapse 的同名属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, + { + "name": "expand-icon", + "description": "当前折叠面板展开图标,优先级大于 Collapse 的同名属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, + { + "name": "header", + "description": "面板头内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, + { + "name": "headerRightContent", + "description": "面板头的右侧区域,一般用于呈现面板操作", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, + { + "name": "header-right-content", + "description": "面板头的右侧区域,一般用于呈现面板操作", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + } + ] + }, + { + "name": "t-color-picker", + "source": { + "symbol": "ColorPicker" + }, + "description": "ColorPicker\n\n颜色选择器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker", + "props": [ + { + "name": "clearable", + "description": "是否可清空", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "slots": [] + }, + { + "name": "t-comment", + "source": { + "symbol": "Comment" + }, + "description": "Comment\n\n评论", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment", + "props": [ + { + "name": "actions", + "description": "操作", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "type": [ + "Array" + ] + }, + { + "name": "author", + "description": "作者", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "avatar", + "description": "头像", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "type": [ + "String", + "Object", + "TNode" + ] + }, + { + "name": "content", + "description": "内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "datetime", + "description": "时间", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "quote", + "description": "引用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "reply", + "description": "回复", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "type": [ + "String", + "TNode" + ] + } + ], + "slots": [ + { + "name": "author", + "description": "作者", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props" + }, + { + "name": "avatar", + "description": "头像类型和参数:string | AvatarProps | TNode【import { AvatarProps } from '@Avatar'】", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props" + }, + { + "name": "content", + "description": "内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props" + }, + { + "name": "datetime", + "description": "时间", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props" + }, + { + "name": "quote", + "description": "引用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props" + }, + { + "name": "reply", + "description": "回复", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props" + } + ] + }, + { + "name": "t-count-down", + "source": { + "symbol": "CountDown" + }, + "description": "CountDown\n\n倒计时", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down", + "props": [ + { + "name": "auto-start", + "description": "是否自动开始倒计时", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "content", + "description": "最终倒计时的展示内容,值为'default'时使用默认的格式,否则使用自定义样式插槽", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "String", + "TNode" + ], + "default": "'default'" + }, + { + "name": "format", + "description": "时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "String" + ], + "default": "HH:mm:ss" + }, + { + "name": "millisecond", + "description": "是否开启毫秒级渲染", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "size", + "description": "倒计时尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "String" + ], + "default": "'small'", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "split-with-unit", + "description": "使用时间单位分割", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "theme", + "description": "倒计时风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "String" + ], + "default": "'default'", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "round" + }, + { + "name": "square" + } + ] + }, + { + "name": "time", + "description": "倒计时时长,单位毫秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", + "type": [ + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "时间变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-events" + }, + { + "name": "finish", + "description": "倒计时结束时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "最终倒计时的展示内容,值为'default'时使用默认的格式,否则使用自定义样式插槽", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props" + } + ] + }, + { + "name": "t-date-range-picker", + "source": { + "symbol": "DateRangePicker" + }, + "description": "DateRangePicker\n\n日期范围选择器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-range-picker", + "props": [ + { + "name": "presets-placement", + "description": "预设面板展示区域(包含确定按钮)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-range-picker?tab=api#daterangepicker-props", + "type": [ + "String" + ], + "default": "bottom", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "top" + }, + { + "name": "right" + }, + { + "name": "bottom" + } + ] + }, + { + "name": "time-picker-props", + "description": "透传 TimePicker 组件属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-range-picker?tab=api#daterangepicker-props", + "type": [ + "Object" + ] + } + ], + "slots": [] + }, + { + "name": "t-date-time-picker", + "source": { + "symbol": "DateTimePicker" + }, + "description": "DateTimePicker\n\n日期时间选择器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker", + "props": [ + { + "name": "cancel-btn", + "description": "取消按钮文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String" + ], + "default": "取消" + }, + { + "name": "confirm-btn", + "description": "确定按钮文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String" + ] + }, + { + "name": "end", + "description": "选择器的最大可选时间,默认为当前时间+10年", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "footer", + "description": "底部内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "format", + "description": "用于格式化 pick、change、confirm 事件返回的值,[详细文档](https://day.js.org/docs/en/display/format)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String" + ], + "default": "'YYYY-MM-DD HH:mm:ss'" + }, + { + "name": "header", + "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "mode", + "description": "year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String", + "Array" + ], + "default": "'date'" + }, + { + "name": "render-label", + "description": "自定义label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "Function" + ] + }, + { + "name": "show-week", + "description": "【开发中】是否在日期旁边显示周几(如周一,周二,周日等)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "start", + "description": "选择器的最小可选时间,默认为当前时间-10年", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "steps", + "description": "时间间隔步数,示例:`{ minute: 5 }`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "Object" + ] + }, + { + "name": "title", + "description": "title of picker\n\n标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String" + ] + }, + { + "name": "value", + "description": "选中值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "String", + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "cancel", + "description": "取消按钮点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events" + }, + { + "name": "change", + "description": "value改变时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events" + }, + { + "name": "close", + "description": "关闭时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events" + }, + { + "name": "confirm", + "description": "确认按钮点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events" + }, + { + "name": "pick", + "description": "选中值发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-events" + } + ] + }, + "slots": [ + { + "name": "footer", + "description": "底部内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props" + }, + { + "name": "header", + "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props" + } + ] + }, + { + "name": "t-dialog", + "source": { + "symbol": "Dialog" + }, + "description": "Dialog\n\n对话框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog", + "props": [ + { + "name": "actions", + "description": "操作栏", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Array", + "TNode" + ] + }, + { + "name": "button-layout", + "description": "多按钮排列方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + }, + { + "name": "cancel-btn", + "description": "取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "String", + "Object", + "TNode" + ] + }, + { + "name": "close-on-overlay-click", + "description": "点击蒙层时是否触发关闭事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "confirm-btn", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "String", + "Object", + "TNode" + ] + }, + { + "name": "content", + "description": "内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "destroy-on-close", + "description": "是否在关闭弹框的时候销毁子元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "overlay-props", + "description": "透传至 Overlay 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Object" + ], + "default": "{}" + }, + { + "name": "prevent-scroll-through", + "description": "防止滚动穿透", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "show-overlay", + "description": "是否显示遮罩层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "visible", + "description": "控制对话框是否显示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Boolean" + ] + }, + { + "name": "width", + "description": "对话框宽度,示例:320, '500px', '80%'", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "z-index", + "description": "对话框层级,Web 侧样式默认为 2500,移动端和小程序样式默认为 1500", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "cancel", + "description": "如果“取消”按钮存在,则点击“取消”按钮时触发,同时触发关闭事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events" + }, + { + "name": "close", + "description": "关闭事件,点击 取消按钮 或 点击蒙层 时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events" + }, + { + "name": "confirm", + "description": "如果“确认”按钮存在,则点击“确认”按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events" + }, + { + "name": "overlay-click", + "description": "如果蒙层存在,点击蒙层时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events" + } + ] + }, + "slots": [ + { + "name": "actions", + "description": "操作栏类型和参数:Array【import { ButtonProps } from '@Button'】", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props" + }, + { + "name": "cancelBtn", + "description": "取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件类型和参数:string | ButtonProps | TNode | null【import { ButtonProps } from '@Button'】", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props" + }, + { + "name": "cancel-btn", + "description": "取消按钮,可自定义。值为 null 则不显示取消按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制取消事件类型和参数:string | ButtonProps | TNode | null【import { ButtonProps } from '@Button'】", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props" + }, + { + "name": "confirmBtn", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件类型和参数:string | ButtonProps | TNode | null", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props" + }, + { + "name": "confirm-btn", + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。使用 TNode 自定义按钮时,需自行控制确认事件类型和参数:string | ButtonProps | TNode | null", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props" + }, + { + "name": "content", + "description": "内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props" + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props" + } + ] + }, + { + "name": "t-divider", + "source": { + "symbol": "Divider" + }, + "description": "Divider\n\n分割线", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider", + "props": [ + { + "name": "align", + "description": "文本位置(仅在水平分割线有效)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props", + "type": [ + "String" + ], + "default": "center", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + }, + { + "name": "center" + } + ] + }, + { + "name": "content", + "description": "子元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "dashed", + "description": "是否虚线(仅在水平分割线有效)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "default", + "description": "子元素,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "layout", + "description": "分隔线类型有两种:水平和垂直", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + } + ], + "slots": [ + { + "name": "content", + "description": "子元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props" + }, + { + "name": "default", + "description": "子元素,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/divider?tab=api#divider-props" + } + ] + }, + { + "name": "t-drawer", + "source": { + "symbol": "Drawer" + }, + "description": "Drawer\n\n模态抽屉", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer", + "props": [ + { + "name": "attach", + "description": "抽屉挂载的节点,默认挂在组件本身的位置。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "String", + "Function" + ] + }, + { + "name": "close-on-overlay-click", + "description": "点击蒙层时是否触发抽屉关闭事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "destroy-on-close", + "description": "抽屉关闭时是否销毁节点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "footer", + "description": "抽屉的底部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "TNode" + ] + }, + { + "name": "items", + "description": "抽屉里的列表项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "Array" + ] + }, + { + "name": "placement", + "description": "抽屉方向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "String" + ], + "default": "right", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "show-overlay", + "description": "是否显示遮罩层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "title", + "description": "抽屉的标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "visible", + "description": "组件是否可见", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "z-index", + "description": "抽屉层级,样式默认为 1500", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props", + "type": [ + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "close", + "description": "关闭时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events" + }, + { + "name": "item-click", + "description": "点击抽屉里的列表项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events" + }, + { + "name": "overlay-click", + "description": "如果蒙层存在,点击蒙层时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events" + } + ] + }, + "slots": [ + { + "name": "footer", + "description": "抽屉的底部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props" + }, + { + "name": "title", + "description": "抽屉的标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props" + } + ] + }, + { + "name": "t-dropdown-item", + "source": { + "symbol": "DropdownItem" + }, + "description": "DropdownItem\n\n下拉菜单选项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item", + "props": [ + { + "name": "disabled", + "description": "是否禁用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "keys", + "description": "用来定义 value / label 在 `options` 中对应的字段别名", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "Object" + ] + }, + { + "name": "label", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "String" + ] + }, + { + "name": "multiple", + "description": "是否多选", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "options", + "description": "选项数据", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "options-columns", + "description": "选项分栏(1-3)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "String", + "Number" + ], + "default": "1" + }, + { + "name": "options-layout", + "description": "选项排列;不再支持 tree 布局,可与 treeSelect 配合使用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "String" + ], + "default": "columns" + }, + { + "name": "value", + "description": "选中值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "String", + "Number" + ], + "default": "undefined" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "值改变时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-events" + }, + { + "name": "confirm", + "description": "点击确认时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-events" + }, + { + "name": "reset", + "description": "点击重置时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-dropdown-menu", + "source": { + "symbol": "DropdownMenu" + }, + "description": "DropdownMenu\n\n下拉菜单", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-menu", + "props": [ + { + "name": "close-on-click-overlay", + "description": "是否在点击遮罩层后关闭菜单", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "duration", + "description": "动画时长", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props", + "type": [ + "String", + "Number" + ], + "default": "200" + }, + { + "name": "show-overlay", + "description": "是否显示遮罩层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "z-index", + "description": "菜单栏 z-index 层级", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props", + "type": [ + "Number" + ], + "default": "11600" + } + ], + "slots": [] + }, + { + "name": "t-empty", + "source": { + "symbol": "Empty" + }, + "description": "Empty\n\n空状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty", + "props": [ + { + "name": "action", + "description": "操作按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props", + "type": [ + "TNode" + ] + }, + { + "name": "description", + "description": "描述文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "image", + "description": "图片地址", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props", + "type": [ + "String", + "TNode" + ] + } + ], + "slots": [ + { + "name": "action", + "description": "操作按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props" + }, + { + "name": "description", + "description": "描述文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props" + }, + { + "name": "image", + "description": "图片地址", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props" + } + ] + }, + { + "name": "t-fab", + "source": { + "symbol": "Fab" + }, + "description": "Fab\n\n悬浮按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/fab", + "props": [ + { + "name": "button-props", + "description": "透传至 Button 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props", + "type": [ + "Object" + ] + }, + { + "name": "icon", + "description": "图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props", + "type": [ + "TNode" + ] + }, + { + "name": "style", + "description": "悬浮按钮的样式,常用于调整位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props", + "type": [ + "String" + ], + "default": "right: 16px; bottom: 32px;" + }, + { + "name": "text", + "description": "文本内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props", + "type": [ + "String" + ] + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "悬浮按钮点击事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-events" + } + ] + }, + "slots": [ + { + "name": "icon", + "description": "图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/fab?tab=api#fab-props" + } + ] + }, + { + "name": "t-footer", + "source": { + "symbol": "Footer" + }, + "description": "Footer\n\n布局-底部内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/footer", + "props": [ + { + "name": "links", + "description": "链接列表。name 表示链接名称, url 表示跳转链接,target 表示跳转方式,如:当前页面打开、新页面打开等,同 HTML 属性 target 含义相同", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/footer?tab=api#footer-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "logo", + "description": "图标配置。`logo.icon` 表示图标链接地址,`logo.title` 表示标题文本,`logo.url` 表示链接跳转地址,`logo.target` 表示跳转方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/footer?tab=api#footer-props", + "type": [ + "Object" + ] + }, + { + "name": "text", + "description": "版权信息", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/footer?tab=api#footer-props", + "type": [ + "String" + ], + "default": "''" + } + ], + "slots": [] + }, + { + "name": "t-form", + "source": { + "symbol": "Form" + }, + "description": "Form\n\n表单", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form", + "props": [ + { + "name": "colon", + "description": "是否在表单标签字段右侧显示冒号", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "data", + "description": "表单数据", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Object" + ], + "default": "{}" + }, + { + "name": "disabled", + "description": "是否禁用整个表单", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "error-message", + "description": "表单错误信息配置,示例:`{ idcard: '请输入正确的身份证号码', max: '字符长度不能超过 ${max}' }`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Object" + ] + }, + { + "name": "form-controlled-components", + "description": "允许表单统一控制禁用状态的自定义组件名称列表。默认会有组件库的全部输入类组件:TInput、TInputNumber、TCascader、TSelect、TOption、TSwitch、TCheckbox、TCheckboxGroup、TRadio、TRadioGroup、TTreeSelect、TDatePicker、TTimePicker、TUpload、TTransfer、TSlider。对于自定义组件,组件内部需要包含可以控制表单禁用状态的变量 `formDisabled`。示例:`['CustomUpload', 'CustomInput']`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Array" + ] + }, + { + "name": "label-align", + "description": "表单字段标签对齐方式:左对齐、右对齐、顶部对齐", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "String" + ], + "default": "right", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + }, + { + "name": "top" + } + ] + }, + { + "name": "label-width", + "description": "可以整体设置label标签宽度,默认为100px", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "String", + "Number" + ], + "default": "'100px'" + }, + { + "name": "layout", + "description": "表单布局,有两种方式:纵向布局 和 行内布局", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "String" + ], + "default": "vertical", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "vertical" + }, + { + "name": "inline" + } + ] + }, + { + "name": "prevent-submit-default", + "description": "是否阻止表单提交默认事件(表单提交默认事件会刷新页面),设置为 `true` 可以避免刷新", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "required-mark", + "description": "是否显示必填符号(*),默认显示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "reset-type", + "description": "重置表单的方式,值为 empty 表示重置表单为空,值为 initial 表示重置表单数据为初始值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "String" + ], + "default": "empty", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "empty" + }, + { + "name": "initial" + } + ] + }, + { + "name": "rules", + "description": "表单字段校验规则", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Object" + ] + }, + { + "name": "scroll-to-first-error", + "description": "表单校验不通过时,是否自动滚动到第一个校验不通过的字段,平滑滚动或是瞬间直达。值为空则表示不滚动", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "''" + }, + { + "name": "smooth" + }, + { + "name": "auto" + } + ] + }, + { + "name": "show-error-message", + "description": "校验不通过时,是否显示错误提示信息,统一控制全部表单项。如果希望控制单个表单项,请给 FormItem 设置该属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "status-icon", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "undefined" + }, + { + "name": "submit-with-warning-message", + "description": "【讨论中】当校验结果只有告警信息时,是否触发 `submit` 提交事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "reset", + "description": "表单重置时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-events" + }, + { + "name": "submit", + "description": "表单提交时触发。其中 `context.validateResult` 表示校验结果,`context.firstError` 表示校验不通过的第一个规则提醒。`context.validateResult` 值为 `true` 表示校验通过;如果校验不通过,`context.validateResult` 值为校验结果列表。
【注意】⚠️ 默认情况,输入框按下 Enter 键会自动触发提交事件,如果希望禁用这个默认行为,可以给输入框添加 enter 事件,并在事件中设置 `e.preventDefault()`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-events" + }, + { + "name": "validate", + "description": "校验结束后触发,result 值为 true 表示校验通过;如果校验不通过,result 值为校验结果列表", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-events" + } + ] + }, + "slots": [ + { + "name": "statusIcon", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标类型和参数:boolean | TNode", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props" + }, + { + "name": "status-icon", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标类型和参数:boolean | TNode", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props" + } + ] + }, + { + "name": "t-form-item", + "source": { + "symbol": "FormItem" + }, + "description": "FormItem\n\n表单元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item", + "props": [ + { + "name": "for", + "description": "label 原生属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String" + ] + }, + { + "name": "help", + "description": "表单项说明内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "label", + "description": "字段标签名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String", + "TNode" + ], + "default": "''" + }, + { + "name": "label-align", + "description": "表单字段标签对齐方式:左对齐、右对齐、顶部对齐。默认使用 Form 的对齐方式,优先级高于 Form.labelAlign", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + }, + { + "name": "top" + } + ] + }, + { + "name": "label-width", + "description": "可以整体设置标签宽度,优先级高于 Form.labelWidth", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "name", + "description": "表单字段名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "required-mark", + "description": "是否显示必填符号(*),优先级高于 Form.requiredMark", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "rules", + "description": "表单字段校验规则", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "Array" + ] + }, + { + "name": "show-error-message", + "description": "校验不通过时,是否显示错误提示信息,优先级高于 `Form.showErrorMessage`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "status", + "description": "校验状态,可在需要完全自主控制校验状态时使用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String" + ] + }, + { + "name": "status-icon", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标。优先级高级 Form 的 statusIcon", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "undefined" + }, + { + "name": "success-border", + "description": "是否显示校验成功的边框,默认不显示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "tips", + "description": "自定义提示内容,样式跟随 `status` 变动,可在需要完全自主控制校验规则时使用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String", + "TNode" + ] + } + ], + "slots": [ + { + "name": "help", + "description": "表单项说明内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props" + }, + { + "name": "label", + "description": "字段标签名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props" + }, + { + "name": "statusIcon", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标。优先级高级 Form 的 statusIcon", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props" + }, + { + "name": "status-icon", + "description": "校验状态图标,值为 `true` 显示默认图标,默认图标有 成功、失败、警告 等,不同的状态图标不同。`statusIcon` 值为 `false`,不显示图标。`statusIcon` 值类型为渲染函数,则可以自定义右侧状态图标。优先级高级 Form 的 statusIcon", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props" + }, + { + "name": "tips", + "description": "自定义提示内容,样式跟随 `status` 变动,可在需要完全自主控制校验规则时使用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props" + } + ] + }, + { + "name": "t-grid", + "source": { + "symbol": "Grid" + }, + "description": "Grid\n\n栅格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid", + "props": [ + { + "name": "align", + "description": "内容对齐方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props", + "type": [ + "String" + ], + "default": "center", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "center" + } + ] + }, + { + "name": "border", + "description": "是否显示边框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "column", + "description": "每一行的列数量;为 0 时等于固定大小", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props", + "type": [ + "Number" + ], + "default": "4" + }, + { + "name": "gutter", + "description": "间隔大小", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props", + "type": [ + "Number" + ] + }, + { + "name": "theme", + "description": "宫格的风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid?tab=api#grid-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "card" + } + ] + } + ], + "slots": [] + }, + { + "name": "t-grid-item", + "source": { + "symbol": "GridItem" + }, + "description": "GridItem\n\n宫格子项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item", + "props": [ + { + "name": "badge", + "description": "透传至 Badge 属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props", + "type": [ + "Object" + ], + "default": "null" + }, + { + "name": "description", + "description": "文本以外的更多描述,辅助信息。可以通过 Props 传入文本,也可以自定义标题节点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "image", + "description": "图片,可以是图片地址,也可以自定义图片节点,如果传入对象则透传至 image 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props", + "type": [ + "String", + "Object", + "TNode" + ] + }, + { + "name": "layout", + "description": "内容布局方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props", + "type": [ + "String" + ], + "default": "vertical", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "vertical" + }, + { + "name": "horizontal" + } + ] + }, + { + "name": "text", + "description": "文本,可以通过 Props 传入文本,也可以自定义标题节点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props", + "type": [ + "String", + "TNode" + ] + } + ], + "slots": [ + { + "name": "description", + "description": "文本以外的更多描述,辅助信息。可以通过 Props 传入文本,也可以自定义标题节点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props" + }, + { + "name": "image", + "description": "图片,可以是图片地址,也可以自定义图片节点,如果传入对象则透传至 image 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props" + }, + { + "name": "text", + "description": "文本,可以通过 Props 传入文本,也可以自定义标题节点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props" + } + ] + }, + { + "name": "t-icon-svg", + "source": { + "symbol": "IconSVG" + }, + "description": "IconSVG\n\n图标(IconSVG)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/icon-svg", + "props": [ + { + "name": "load-default-icons", + "description": "是否加载组件库内置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "name", + "description": "图标名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props", + "type": [ + "String" + ] + }, + { + "name": "size", + "description": "图标尺寸,支持 'small', 'medium', 'large','35px', '3em' 等", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props", + "type": [ + "String" + ], + "default": "undefined" + }, + { + "name": "style", + "description": "可用于设置图标颜色,如:style=\\\"color: red\\\"", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props", + "type": [ + "String" + ] + }, + { + "name": "url", + "description": "图标地址,地址内容参考[组件内部默认加载图标](https://tdesign.gtimg.com/icon/web/index.js)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-props", + "type": [ + "String", + "Array" + ] + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/icon-svg?tab=api#iconsvg-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-iconfont", + "source": { + "symbol": "Iconfont" + }, + "description": "Iconfont\n\n图标(Iconfont)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont", + "props": [ + { + "name": "load-default-icons", + "description": "是否加载组件库内置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "name", + "description": "图标名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props", + "type": [ + "String" + ] + }, + { + "name": "size", + "description": "图标尺寸,支持 'small', 'medium', 'large','35px', '3em' 等", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props", + "type": [ + "String" + ], + "default": "undefined" + }, + { + "name": "style", + "description": "可用于设置图标颜色,如:style=\\\"color: red\\\"", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props", + "type": [ + "String" + ] + }, + { + "name": "tag", + "description": "图标 DOM 元素,可选值:i/span/div/...", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props", + "type": [ + "String" + ], + "default": "i" + }, + { + "name": "url", + "description": "图标地址,地址内容参考[组件内部默认加载图标](https://tdesign.gtimg.com/icon/web/index.css)。也可以在 index.html 中引入图标地址", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-props", + "type": [ + "String", + "Array" + ] + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/iconfont?tab=api#iconfont-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-image", + "source": { + "symbol": "Image" + }, + "description": "Image\n\n图片", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image", + "props": [ + { + "name": "alt", + "description": "图片描述", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String" + ] + }, + { + "name": "error", + "description": "自定义图片加载失败状态下的显示内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "fallback", + "description": "display `fallback` image on `src` loading failed. you can also use `error` to define more complex error content\n\n图片加载失败时,显示当前链接设置的图片地址。如果要使用组件图标或完全自定义加载失败时显示的内容,请更为使用 `error`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String" + ] + }, + { + "name": "fit", + "description": "图片填充模式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String" + ], + "default": "fill", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "contain" + }, + { + "name": "cover" + }, + { + "name": "fill" + }, + { + "name": "none" + }, + { + "name": "scale-down" + } + ] + }, + { + "name": "lazy", + "description": "是否开启图片懒加载", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "loading", + "description": "自定义加载中状态的图片内容,如:“加载中”", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "position", + "description": "等同于原生的 object-position 属性,可选值为 top right bottom left 或 string,可以自定义任何单位,px 或者 百分比", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String" + ], + "default": "center" + }, + { + "name": "referrerpolicy", + "description": "attribute of ``, [MDN Definition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy)\n\n`` 标签的原生属性,[MDN 定义](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String" + ], + "default": "strict-origin-when-cross-origin", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "no-referrer" + }, + { + "name": "no-referrer-when-downgrade" + }, + { + "name": "origin" + }, + { + "name": "origin-when-cross-origin" + }, + { + "name": "same-origin" + }, + { + "name": "strict-origin" + }, + { + "name": "strict-origin-when-cross-origin" + }, + { + "name": "unsafe-url" + } + ] + }, + { + "name": "shape", + "description": "图片圆角类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String" + ], + "default": "square", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "circle" + }, + { + "name": "round" + }, + { + "name": "square" + } + ] + }, + { + "name": "src", + "description": "src attribute of ``. image File can also be loaded\n\n用于显示图片的链接或原始图片文件对象", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "String", + "Object" + ] + }, + { + "name": "srcset", + "description": "for `.avif` and `.webp` image url, load `srcset` before `src`\n\n图片链接集合,用于支持特殊格式的图片,如 `.avif` 和 `.webp`。会优先加载 `srcset` 中的图片格式,浏览器不支持的情况下,加载 `src` 设置的图片地址", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", + "type": [ + "Object" + ] + } + ], + "js": { + "events": [ + { + "name": "error", + "description": "trigger on image load failed\n\n图片加载失败时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-events" + }, + { + "name": "load", + "description": "trigger on image loaded\n\n图片加载完成时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-events" + } + ] + }, + "slots": [ + { + "name": "error", + "description": "自定义图片加载失败状态下的显示内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props" + }, + { + "name": "loading", + "description": "自定义加载中状态的图片内容,如:“加载中”", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props" + } + ] + }, + { + "name": "t-image-viewer", + "source": { + "symbol": "ImageViewer" + }, + "description": "ImageViewer\n\n图片预览", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer", + "props": [ + { + "name": "close-btn", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以完全自定义关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "delete-btn", + "description": "是否显示删除操作,前提需要开启页码", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "false" + }, + { + "name": "images", + "description": "图片数组", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "index", + "description": "当前预览图片所在的下标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", + "type": [ + "Number" + ] + }, + { + "name": "max-zoom", + "description": "【开发中】最大放大比例", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", + "type": [ + "Number" + ], + "default": "3" + }, + { + "name": "show-index", + "description": "是否显示页码", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "visible", + "description": "隐藏/显示预览", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "close", + "description": "关闭时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-events" + }, + { + "name": "delete", + "description": "点击删除操作按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-events" + }, + { + "name": "index-change", + "description": "预览图片切换时触发,`context.prev` 切换到上一张图片,`context.next` 切换到下一张图片", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-events" + } + ] + }, + "slots": [ + { + "name": "closeBtn", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以完全自定义关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props" + }, + { + "name": "close-btn", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以完全自定义关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props" + }, + { + "name": "deleteBtn", + "description": "是否显示删除操作,前提需要开启页码", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props" + }, + { + "name": "delete-btn", + "description": "是否显示删除操作,前提需要开启页码", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props" + } + ] + }, + { + "name": "t-indexes", + "source": { + "symbol": "Indexes" + }, + "description": "Indexes\n\n索引", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes", + "props": [ + { + "name": "index-list", + "description": "索引字符列表。不传默认 `A-Z`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props", + "type": [ + "Array" + ] + }, + { + "name": "list", + "description": "索引列表的列表数据。每个元素包含三个子元素,index(string):索引值,例如1,2,3,...或A,B,C等;title(string): 索引标题,可不填将默认设为索引值;children(Array<{title: string}>): 子元素列表,title为子元素的展示文案。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "sticky", + "description": "索引是否吸顶,默认为true", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "sticky-offset", + "description": "锚点吸顶时与顶部的距离\t", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-props", + "type": [ + "Number" + ], + "default": "0" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "索引发生变更时触发事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-events" + }, + { + "name": "select", + "description": "点击侧边栏时触发事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes?tab=api#indexes-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-indexes-anchor", + "source": { + "symbol": "IndexesAnchor" + }, + "description": "IndexesAnchor\n\n索引锚点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes-anchor", + "props": [ + { + "name": "index", + "description": "索引字符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/indexes-anchor?tab=api#indexesanchor-props", + "type": [ + "String", + "Number" + ] + } + ], + "slots": [] + }, + { + "name": "t-input", + "source": { + "symbol": "Input" + }, + "description": "Input\n\n输入框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input", + "props": [ + { + "name": "align", + "description": "文本内容位置,居左/居中/居右", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "center" + }, + { + "name": "right" + } + ] + }, + { + "name": "allow-input-over-max", + "description": "超出 `maxlength` 或 `maxcharacter` 之后是否允许继续输入", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "autocomplete", + "description": "是否开启自动填充功能,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "undefined" + }, + { + "name": "autofocus", + "description": "自动聚焦", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "clearable", + "description": "是否可清空", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "是否禁用输入框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Boolean" + ] + }, + { + "name": "error-message", + "description": "错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ] + }, + { + "name": "format", + "description": "指定输入框展示值的格式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Function" + ] + }, + { + "name": "label", + "description": "左侧文本", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "maxcharacter", + "description": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Number" + ] + }, + { + "name": "maxlength", + "description": "用户最多可以输入的文本长度,一个中文等于一个计数长度。值为空,则表示不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Number" + ] + }, + { + "name": "name", + "description": "名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ] + }, + { + "name": "placeholder", + "description": "占位符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "undefined" + }, + { + "name": "prefix-icon", + "description": "组件前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "TNode" + ] + }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "size", + "description": "已废弃。输入框尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "small", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + } + ] + }, + { + "name": "status", + "description": "输入框状态。默认情况会由组件内部根据实际情况呈现,如果文本过长引起的状态变化", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "undefined", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "success" + }, + { + "name": "warning" + }, + { + "name": "error" + } + ] + }, + { + "name": "suffix", + "description": "后置图标前的后置内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "suffix-icon", + "description": "组件后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "TNode" + ] + }, + { + "name": "tips", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "type", + "description": "输入框类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "text", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "text" + }, + { + "name": "number" + }, + { + "name": "url" + }, + { + "name": "tel" + }, + { + "name": "password" + }, + { + "name": "search" + }, + { + "name": "submit" + }, + { + "name": "hidden" + } + ] + }, + { + "name": "value", + "description": "输入框的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "''" + } + ], + "js": { + "events": [ + { + "name": "blur", + "description": "失去焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events" + }, + { + "name": "change", + "description": "输入框值发生变化时触发。`trigger=initial` 表示传入的数据不符合预期,组件自动处理后触发 change 告知父组件。如:初始值长度超过 `maxlength` 限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events" + }, + { + "name": "clear", + "description": "清空按钮点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events" + }, + { + "name": "focus", + "description": "获得焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events" + }, + { + "name": "validate", + "description": "trigger on text length being over max length or max character\n\n字数超出限制时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events" + } + ] + }, + "slots": [ + { + "name": "label", + "description": "左侧文本", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" + }, + { + "name": "prefixIcon", + "description": "组件前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" + }, + { + "name": "prefix-icon", + "description": "组件前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" + }, + { + "name": "suffix", + "description": "后置图标前的后置内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" + }, + { + "name": "suffixIcon", + "description": "组件后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" + }, + { + "name": "suffix-icon", + "description": "组件后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" + }, + { + "name": "tips", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" + } + ] + }, + { + "name": "t-input-adornment", + "source": { + "symbol": "InputAdornment" + }, + "description": "InputAdornment\n\n输入装饰器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input-adornment", + "props": [ + { + "name": "append", + "description": "The suffix decoration\n\n后缀装饰", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input-adornment?tab=api#inputadornment-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "prepend", + "description": "The prefix decoration\n\n前缀装饰", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input-adornment?tab=api#inputadornment-props", + "type": [ + "String", + "TNode" + ] + } + ], + "slots": [ + { + "name": "append", + "description": "The suffix decoration\n\n后缀装饰", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input-adornment?tab=api#inputadornment-props" + }, + { + "name": "prepend", + "description": "The prefix decoration\n\n前缀装饰", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input-adornment?tab=api#inputadornment-props" + } + ] + }, + { + "name": "t-link", + "source": { + "symbol": "Link" + }, + "description": "Link\n\n链接", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link", + "props": [ + { + "name": "content", + "description": "链接内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "default", + "description": "链接内容,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "make link to be disabled\n\n禁用链接", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "Boolean" + ] + }, + { + "name": "hover", + "description": "是否开启点击反馈", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "Boolean" + ] + }, + { + "name": "href", + "description": "跳转链接", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "String" + ] + }, + { + "name": "prefix-icon", + "description": "前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "TNode" + ] + }, + { + "name": "size", + "description": "尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "suffix-icon", + "description": "后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "TNode" + ] + }, + { + "name": "target", + "description": "target is an attribute of `
`\n\n跳转方式,如:当前页面打开、新页面打开等,同 HTML 属性 target 含义相同", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "String" + ] + }, + { + "name": "theme", + "description": "组件风格,依次为默认色、品牌色、危险色、警告色、成功色", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "primary" + }, + { + "name": "danger" + }, + { + "name": "warning" + }, + { + "name": "success" + } + ] + }, + { + "name": "underline", + "description": "普通状态是否显示链接下划线", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", + "type": [ + "Boolean" + ] + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "click event, it won't trigger when it's disabled\n\n点击事件,禁用状态不会触发点击事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "链接内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props" + }, + { + "name": "default", + "description": "链接内容,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props" + }, + { + "name": "prefixIcon", + "description": "前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props" + }, + { + "name": "prefix-icon", + "description": "前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props" + }, + { + "name": "suffixIcon", + "description": "后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props" + }, + { + "name": "suffix-icon", + "description": "后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props" + } + ] + }, + { + "name": "t-list", + "source": { + "symbol": "List" + }, + "description": "List\n\n列表", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list", + "props": [ + { + "name": "async-loading", + "description": "自定义加载中。值为空不显示加载中,值为 'loading' 显示加载中状态,值为 'load-more' 显示加载更多状态。值类型为函数,则表示自定义加载状态呈现内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "footer", + "description": "底部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "header", + "description": "头部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props", + "type": [ + "String", + "TNode" + ] + } + ], + "js": { + "events": [ + { + "name": "load-more", + "description": "点击加载更多时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-events" + }, + { + "name": "scroll", + "description": "列表滚动时触发,scrollTop 表示顶部滚动距离", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-events" + } + ] + }, + "slots": [ + { + "name": "asyncLoading", + "description": "自定义加载中。值为空不显示加载中,值为 'loading' 显示加载中状态,值为 'load-more' 显示加载更多状态。值类型为函数,则表示自定义加载状态呈现内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props" + }, + { + "name": "async-loading", + "description": "自定义加载中。值为空不显示加载中,值为 'loading' 显示加载中状态,值为 'load-more' 显示加载更多状态。值类型为函数,则表示自定义加载状态呈现内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props" + }, + { + "name": "footer", + "description": "底部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props" + }, + { + "name": "header", + "description": "头部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-props" + } + ] + }, + { + "name": "t-loading", + "source": { + "symbol": "Loading" + }, + "description": "Loading\n\n加载中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading", + "props": [ + { + "name": "content", + "description": "子元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "default", + "description": "子元素,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "delay", + "description": "延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "duration", + "description": "加载动画执行完成一次的时间,单位:毫秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Number" + ], + "default": "800" + }, + { + "name": "indicator", + "description": "加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "inherit-color", + "description": "是否继承父元素颜色", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "layout", + "description": "对齐方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + }, + { + "name": "loading", + "description": "是否处于加载状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "pause", + "description": "是否暂停动画", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "progress", + "description": "加载进度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Number" + ] + }, + { + "name": "reverse", + "description": "加载动画是否反向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Boolean" + ] + }, + { + "name": "size", + "description": "尺寸,示例:20px", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "String" + ], + "default": "'20px'" + }, + { + "name": "text", + "description": "加载提示文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "theme", + "description": "加载组件类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "String" + ], + "default": "circular", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "circular" + }, + { + "name": "spinner" + }, + { + "name": "dots" + } + ] + } + ], + "slots": [ + { + "name": "content", + "description": "子元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props" + }, + { + "name": "default", + "description": "子元素,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props" + }, + { + "name": "indicator", + "description": "加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props" + }, + { + "name": "text", + "description": "加载提示文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props" + } + ] + }, + { + "name": "t-message", + "source": { + "symbol": "Message" + }, + "description": "Message\n\n全局提醒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message", + "props": [ + { + "name": "align", + "description": "文本对齐方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "center" + } + ] + }, + { + "name": "close-btn", + "description": "关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。也可以完全自定义按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "String", + "Boolean", + "TNode" + ], + "default": "undefined" + }, + { + "name": "content", + "description": "用于自定义消息弹出内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "duration", + "description": "消息内置计时器,计时到达时会触发 duration-end 事件。单位:毫秒。值为 0 则表示没有计时器。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "Number" + ], + "default": "3000" + }, + { + "name": "icon", + "description": "用于自定义消息前面的图标,优先级大于 theme 设定的图标。值为 false 则不显示图标,值为 true 显示 theme 设定图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "link", + "description": "链接名称。值为字符串表示链接名称,值为 Object 类型,表示透传至 Link", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "String", + "Object", + "TNode" + ] + }, + { + "name": "marquee", + "description": "跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "Boolean", + "Object" + ], + "default": "false" + }, + { + "name": "offset", + "description": "相对于 placement 的偏移量,示例:[-10, 20] 或 ['10rpx', '8rpx']", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "Array" + ] + }, + { + "name": "theme", + "description": "消息组件风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "String" + ], + "default": "info", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "info" + }, + { + "name": "success" + }, + { + "name": "warning" + }, + { + "name": "error" + } + ] + }, + { + "name": "visible", + "description": "是否显示,隐藏时默认销毁组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "z-index", + "description": "元素层级,样式默认为 5000", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", + "type": [ + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "可见性变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + }, + { + "name": "close", + "description": "close message event\n\n关闭消息时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + }, + { + "name": "close-btn-click", + "description": "当关闭按钮存在时,用户点击关闭按钮触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + }, + { + "name": "closed", + "description": "关闭消息并且动画结束后触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + }, + { + "name": "duration-end", + "description": "计时结束后触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + }, + { + "name": "link-click", + "description": "当link链接存在时,点击链接文本时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + }, + { + "name": "open", + "description": "展示Message时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + }, + { + "name": "opened", + "description": "展示Message时并且动画结束后触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" + } + ] + }, + "slots": [ + { + "name": "closeBtn", + "description": "关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。也可以完全自定义按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props" + }, + { + "name": "close-btn", + "description": "关闭按钮,可以自定义。值为 true 显示默认关闭按钮,值为 false 不显示关闭按钮。值类型为 string 则直接显示值,如:“关闭”。也可以完全自定义按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props" + }, + { + "name": "content", + "description": "用于自定义消息弹出内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props" + }, + { + "name": "icon", + "description": "用于自定义消息前面的图标,优先级大于 theme 设定的图标。值为 false 则不显示图标,值为 true 显示 theme 设定图标类型和参数:boolean | TNode", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props" + }, + { + "name": "link", + "description": "链接名称。值为字符串表示链接名称,值为 Object 类型,表示透传至 Link", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props" + } + ] + }, + { + "name": "t-navbar", + "source": { + "symbol": "Navbar" + }, + "description": "Navbar\n\n导航条", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar", + "props": [ + { + "name": "animation", + "description": "是否添加动画效果", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "background", + "description": "background\n\n已废弃。背景", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "String" + ] + }, + { + "name": "fixed", + "description": "是否固定在顶部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "left", + "description": "左侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "left-arrow", + "description": "是否显示左侧箭头", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "right", + "description": "右侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "title", + "description": "page title\n\n页面标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "title-max-length", + "description": "标题文字最大长度,超出的范围使用 `...` 表示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "Number" + ] + }, + { + "name": "visible", + "description": "是否显示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", + "type": [ + "Boolean" + ], + "default": "true" + } + ], + "js": { + "events": [ + { + "name": "left-click", + "description": "点击左侧区域时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events" + }, + { + "name": "right-click", + "description": "点击右侧区域时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events" + } + ] + }, + "slots": [ + { + "name": "left", + "description": "左侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props" + }, + { + "name": "right", + "description": "右侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props" + }, + { + "name": "title", + "description": "page title\n\n页面标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props" + } + ] + }, + { + "name": "t-notice-bar", + "source": { + "symbol": "NoticeBar" + }, + "description": "NoticeBar\n\n公告栏", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar", + "props": [ + { + "name": "content", + "description": "文本内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "String", + "Array", + "TNode" + ] + }, + { + "name": "direction", + "description": "滚动方向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + }, + { + "name": "extra", + "description": "已废弃。右侧额外信息", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "marquee", + "description": "跑马灯效果。speed 指速度控制;loop 指循环播放次数,值为 -1 表示循环播放,值为 0 表示不循环播放;delay 表示延迟多久开始播放", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "Boolean", + "Object" + ], + "default": "false" + }, + { + "name": "operation", + "description": "右侧额外信息", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "prefix-icon", + "description": "前缀图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "TNode" + ] + }, + { + "name": "suffix-icon", + "description": "后缀图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "TNode" + ] + }, + { + "name": "theme", + "description": "内置主题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "String" + ], + "default": "info", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "info" + }, + { + "name": "success" + }, + { + "name": "warning" + }, + { + "name": "error" + } + ] + }, + { + "name": "visible", + "description": "显示/隐藏", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "展示或关闭公告栏时触发。参数为true时,代表展示公告栏。参数为false时,代表关闭公告栏", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-events" + }, + { + "name": "click", + "description": "点击事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "文本内容类型和参数:string | string[] | TNode", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" + }, + { + "name": "extra", + "description": "已废弃。右侧额外信息", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" + }, + { + "name": "operation", + "description": "右侧额外信息", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" + }, + { + "name": "prefixIcon", + "description": "前缀图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" + }, + { + "name": "prefix-icon", + "description": "前缀图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" + }, + { + "name": "suffixIcon", + "description": "后缀图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" + }, + { + "name": "suffix-icon", + "description": "后缀图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" + } + ] + }, + { + "name": "t-overlay", + "source": { + "symbol": "Overlay" + }, + "description": "Overlay\n\n遮罩层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay", + "props": [ + { + "name": "duration", + "description": "背景色过渡时间,单位毫秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props", + "type": [ + "Number" + ], + "default": "300" + }, + { + "name": "prevent-scroll-through", + "description": "防止滚动穿透,即不允许点击和滚动", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "transparent", + "description": "遮罩层是否透明", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "visible", + "description": "是否展示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "z-index", + "description": "遮罩的层级", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props", + "type": [ + "Number" + ], + "default": "1000" + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "遮罩层的点击事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-pagination", + "source": { + "symbol": "Pagination" + }, + "description": "Pagination\n\n分页", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pagination", + "props": [ + { + "name": "show-first-and-last-page-btn", + "description": "是否显示跳转首页尾页页码控制器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "show-page-number", + "description": "是否显示页码控制器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "show-page-size", + "description": "是否显示分页数量控制器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "show-previous-and-next-btn", + "description": "是否显示跳转前后页页码控制器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pagination?tab=api#pagination-props", + "type": [ + "Boolean" + ], + "default": "true" + } + ], + "slots": [] + }, + { + "name": "t-picker", + "source": { + "symbol": "Picker" + }, + "description": "Picker\n\n选择器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker", + "props": [ + { + "name": "cancel-btn", + "description": "取消按钮文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "String", + "Boolean", + "Object" + ], + "default": "true" + }, + { + "name": "columns", + "description": "配置每一列的选项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "Array", + "Function" + ], + "default": "[]" + }, + { + "name": "confirm-btn", + "description": "确定按钮文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "String", + "Boolean", + "Object" + ], + "default": "true" + }, + { + "name": "header", + "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "keys", + "description": "用来定义 value / label 在 `options` 中对应的字段别名", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "Object" + ] + }, + { + "name": "render-label", + "description": "自定义label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "Function" + ] + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "String" + ], + "default": "''" + }, + { + "name": "value", + "description": "选中值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "Array" + ] + }, + { + "name": "visible", + "description": "是否显示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "cancel", + "description": "点击取消按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events" + }, + { + "name": "change", + "description": "选中变化时候触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events" + }, + { + "name": "confirm", + "description": "点击确认按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events" + }, + { + "name": "pick", + "description": "任何一列选中都会触发,不同的列参数不同。`context.column` 表示第几列变化,`context.index` 表示变化那一列的选中项下标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-events" + } + ] + }, + "slots": [ + { + "name": "header", + "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props" + } + ] + }, + { + "name": "t-picker-item", + "source": { + "symbol": "PickerItem" + }, + "description": "PickerItem\n\n选择器选项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker-item", + "props": [ + { + "name": "format", + "description": "格式化标签", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker-item?tab=api#pickeritem-props", + "type": [ + "Function" + ] + }, + { + "name": "options", + "description": "数据源", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker-item?tab=api#pickeritem-props", + "type": [ + "Array" + ], + "default": "[]" + } + ], + "slots": [] + }, + { + "name": "t-popconfirm", + "source": { + "symbol": "Popconfirm" + }, + "description": "Popconfirm\n\n气泡确认框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popconfirm", + "props": [ + { + "name": "default", + "description": "触发元素,同 triggerElement", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "destroy-on-close", + "description": "是否在关闭浮层时销毁浮层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "trigger-element", + "description": "触发元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props", + "type": [ + "String", + "TNode" + ] + } + ], + "slots": [ + { + "name": "default", + "description": "触发元素,同 triggerElement", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props" + }, + { + "name": "triggerElement", + "description": "触发元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props" + }, + { + "name": "trigger-element", + "description": "触发元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popconfirm?tab=api#popconfirm-props" + } + ] + }, + { + "name": "t-popover", + "source": { + "symbol": "Popover" + }, + "description": "Popover\n\n气泡弹出框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover", + "props": [ + { + "name": "close-on-click-outside", + "description": "是否在点击外部元素后关闭菜单 ", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "content", + "description": "确认框内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "default", + "description": "触发元素,同 triggerElement", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "placement", + "description": "浮层出现位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "String" + ], + "default": "top", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "top" + }, + { + "name": "left" + }, + { + "name": "right" + }, + { + "name": "bottom" + }, + { + "name": "top-left" + }, + { + "name": "top-right" + }, + { + "name": "bottom-left" + }, + { + "name": "bottom-right" + }, + { + "name": "left-top" + }, + { + "name": "left-bottom" + }, + { + "name": "right-top" + }, + { + "name": "right-bottom" + } + ] + }, + { + "name": "show-arrow", + "description": "是否显示浮层箭头", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "theme", + "description": "弹出气泡主题。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "String" + ], + "default": "dark", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "dark" + }, + { + "name": "light" + }, + { + "name": "brand" + }, + { + "name": "success" + }, + { + "name": "warning" + }, + { + "name": "error" + } + ] + }, + { + "name": "trigger-element", + "description": "触发元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "visible", + "description": "是否显示气泡确认框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", + "type": [ + "Boolean" + ] + } + ], + "js": { + "events": [ + { + "name": "visible-change", + "description": "确认框显示或隐藏时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "确认框内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props" + }, + { + "name": "default", + "description": "触发元素,同 triggerElement", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props" + }, + { + "name": "triggerElement", + "description": "触发元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props" + }, + { + "name": "trigger-element", + "description": "触发元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props" + } + ] + }, + { + "name": "t-popup", + "source": { + "symbol": "Popup" + }, + "description": "Popup\n\n气泡框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup", + "props": [ + { + "name": "attach", + "description": "制定挂载节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "String", + "Function" + ], + "default": "'body'" + }, + { + "name": "close-btn", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以自定义关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Boolean", + "TNode" + ] + }, + { + "name": "close-on-overlay-click", + "description": "点击遮罩层是否关闭", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "overlay-props", + "description": "遮罩层的属性,透传至 overlay", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Object" + ], + "default": "{}" + }, + { + "name": "placement", + "description": "浮层出现位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "String" + ], + "default": "top", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "top" + }, + { + "name": "left" + }, + { + "name": "right" + }, + { + "name": "bottom" + }, + { + "name": "center" + } + ] + }, + { + "name": "prevent-scroll-through", + "description": "防止滚动穿透", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "show-overlay", + "description": "是否显示遮罩层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "transition-name", + "description": "弹出层内容区的动画名,等价于transition组件的name属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "String" + ] + }, + { + "name": "visible", + "description": "是否显示浮层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Boolean" + ] + }, + { + "name": "z-index", + "description": "组件层级,Web 侧样式默认为 5500,移动端和小程序样式默认为 1500", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "close", + "description": "组件准备关闭时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events" + }, + { + "name": "closed", + "description": "组件关闭且动画结束后执行", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events" + }, + { + "name": "open", + "description": "组件准备展示时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events" + }, + { + "name": "opened", + "description": "组件展示且动画结束后执行", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events" + }, + { + "name": "visible-change", + "description": "当浮层隐藏或显示时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-events" + } + ] + }, + "slots": [ + { + "name": "closeBtn", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以自定义关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props" + }, + { + "name": "close-btn", + "description": "是否展示关闭按钮,值为 `true` 显示默认关闭按钮;值为 `false` 则不显示关闭按钮;也可以自定义关闭按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props" + } + ] + }, + { + "name": "t-progress", + "source": { + "symbol": "Progress" + }, + "description": "Progress\n\n进度条", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress", + "props": [ + { + "name": "color", + "description": "进度条颜色。示例:'#ED7B2F' 或 'orange' 或 `['#f00', '#0ff', '#f0f']` 或 `{ '0%': '#f00', '100%': '#0ff' }` 或 `{ from: '#000', to: '#000' }` 等", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props", + "type": [ + "String", + "Object", + "Array" + ], + "default": "''" + }, + { + "name": "label", + "description": "进度百分比,可自定义", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props", + "type": [ + "String", + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "percentage", + "description": "进度条百分比", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "status", + "description": "进度条状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "success" + }, + { + "name": "error" + }, + { + "name": "warning" + }, + { + "name": "active" + } + ] + }, + { + "name": "stroke-width", + "description": "进度条线宽。宽度数值不能超过 size 的一半,否则不能输出环形进度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "theme", + "description": "进度条风格。值为 line,标签(label)显示在进度条右侧;值为 plump,标签(label)显示在进度条里面;值为 circle,标签(label)显示在进度条正中间", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props", + "type": [ + "String" + ], + "default": "line", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "line" + }, + { + "name": "plump" + }, + { + "name": "circle" + } + ] + }, + { + "name": "track-color", + "description": "进度条未完成部分颜色", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props", + "type": [ + "String" + ], + "default": "''" + } + ], + "slots": [ + { + "name": "label", + "description": "进度百分比,可自定义", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/progress?tab=api#progress-props" + } + ] + }, + { + "name": "t-pull-down-refresh", + "source": { + "symbol": "PullDownRefresh" + }, + "description": "PullDownRefresh\n\n下拉刷新", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh", + "props": [ + { + "name": "loading-bar-height", + "description": "加载中下拉高度,如果值为数字则单位是:'px'", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props", + "type": [ + "String", + "Number" + ], + "default": "50" + }, + { + "name": "loading-props", + "description": "加载loading样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props", + "type": [ + "Object" + ] + }, + { + "name": "loading-texts", + "description": "提示语,组件内部默认值为 ['下拉刷新', '松手刷新', '正在刷新', '刷新完成']", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "max-bar-height", + "description": "最大下拉高度,如果值为数字则单位是:'px'", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props", + "type": [ + "String", + "Number" + ], + "default": "80" + }, + { + "name": "refresh-timeout", + "description": "刷新超时时间", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props", + "type": [ + "Number" + ], + "default": "3000" + }, + { + "name": "value", + "description": "组件状态,值为 `true` 表示下拉状态,值为 `false` 表示收起状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "下拉或收起时触发,用户手势往下滑动触发下拉状态,手势松开触发收起状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events" + }, + { + "name": "refresh", + "description": "结束下拉时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events" + }, + { + "name": "timeout", + "description": "刷新超时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-radio", + "source": { + "symbol": "Radio" + }, + "description": "Radio\n\n单选框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio", + "props": [ + { + "name": "align", + "description": "已废弃。复选框和内容相对位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "allow-uncheck", + "description": "是否允许取消选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "block", + "description": "是否为块级元素\t", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "borderless", + "description": "是否开启无边框模式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "checked", + "description": "是否选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "content", + "description": "单选内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "content-disabled", + "description": "是否禁用组件内容(content)触发选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ] + }, + { + "name": "default", + "description": "单选按钮内容,同 label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。Radio.disabled 优先级高于 RadioGroup.disabled", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "icon", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "Array" + ], + "default": "'circle'" + }, + { + "name": "label", + "description": "主文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "max-content-row", + "description": "内容最大行数限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Number" + ], + "default": "5" + }, + { + "name": "max-label-row", + "description": "主文案最大行数限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Number" + ], + "default": "3" + }, + { + "name": "name", + "description": "HTML 元素原生属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String" + ] + }, + { + "name": "placement", + "description": "复选框和内容相对位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "value", + "description": "单选按钮的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "Number", + "Boolean" + ], + "default": "undefined" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "选中状态变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "单选内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props" + }, + { + "name": "default", + "description": "单选按钮内容,同 label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props" + }, + { + "name": "label", + "description": "主文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props" + } + ] + }, + { + "name": "t-radio-button", + "source": { + "symbol": "Radio" + }, + "description": "Radio\n\n单选框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio", + "props": [ + { + "name": "align", + "description": "已废弃。复选框和内容相对位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "allow-uncheck", + "description": "是否允许取消选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "block", + "description": "是否为块级元素\t", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "borderless", + "description": "是否开启无边框模式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "checked", + "description": "是否选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "content", + "description": "单选内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "content-disabled", + "description": "是否禁用组件内容(content)触发选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ] + }, + { + "name": "default", + "description": "单选按钮内容,同 label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。Radio.disabled 优先级高于 RadioGroup.disabled", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "name": "icon", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "Array" + ], + "default": "'circle'" + }, + { + "name": "label", + "description": "主文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "max-content-row", + "description": "内容最大行数限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Number" + ], + "default": "5" + }, + { + "name": "max-label-row", + "description": "主文案最大行数限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Number" + ], + "default": "3" + }, + { + "name": "name", + "description": "HTML 元素原生属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String" + ] + }, + { + "name": "placement", + "description": "复选框和内容相对位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "value", + "description": "单选按钮的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "String", + "Number", + "Boolean" + ], + "default": "undefined" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "选中状态变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "单选内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props" + }, + { + "name": "default", + "description": "单选按钮内容,同 label", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props" + }, + { + "name": "label", + "description": "主文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props" + } + ] + }, + { + "name": "t-radio-group", + "source": { + "symbol": "RadioGroup" + }, + "description": "RadioGroup\n\n单选框组", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group", + "props": [ + { + "name": "allow-uncheck", + "description": "是否允许取消选中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "borderless", + "description": "是否开启无边框模式;优先级低于 Radio", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "是否禁用全部子单选框。默认为 false。RadioGroup.disabled 优先级低于 Radio.disabled", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "Boolean" + ] + }, + { + "name": "keys", + "description": "用来定义 value / label 在 `options` 中对应的字段别名", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "Object" + ] + }, + { + "name": "name", + "description": "HTML 元素原生属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "String" + ] + }, + { + "name": "options", + "description": "单选组件按钮形式。RadioOption 数据类型为 string 或 number 时,表示 label 和 value 值相同", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "Array" + ] + }, + { + "name": "placement", + "description": "复选框和内容相对位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "value", + "description": "选中的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "String", + "Number", + "Boolean" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "选中值发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-range-input", + "source": { + "symbol": "RangeInput" + }, + "description": "RangeInput\n\n范围输入框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input", + "props": [ + { + "name": "active-index", + "description": "输入框高亮状态序号", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "Number" + ] + }, + { + "name": "clearable", + "description": "是否可清空", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "是否禁用范围输入框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "Boolean" + ] + }, + { + "name": "format", + "description": "指定输入框展示值的格式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "Array", + "Function" + ] + }, + { + "name": "input-props", + "description": "透传 Input 输入框组件全部属性,数组第一项表示第一个输入框属性,第二项表示第二个输入框属性。示例:`[{ label: 'A', name: 'A-name' }, { label: 'B', name: 'B-name' }]`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "Object", + "Array" + ] + }, + { + "name": "label", + "description": "左侧内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "placeholder", + "description": "占位符,示例:'请输入' 或者 ['开始日期', '结束日期']", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "String", + "Array" + ] + }, + { + "name": "prefix-icon", + "description": "组件前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "TNode" + ] + }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "separator", + "description": "范围分隔符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "String", + "TNode" + ], + "default": "'-'" + }, + { + "name": "status", + "description": "输入框状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "success" + }, + { + "name": "warning" + }, + { + "name": "error" + } + ] + }, + { + "name": "suffix", + "description": "后置图标前的后置内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "suffix-icon", + "description": "组件后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "TNode" + ] + }, + { + "name": "tips", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "value", + "description": "范围输入框的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", + "type": [ + "Array" + ], + "default": "[]" + } + ], + "js": { + "events": [ + { + "name": "blur", + "description": "范围输入框失去焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events" + }, + { + "name": "change", + "description": "范围输入框值发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events" + }, + { + "name": "clear", + "description": "清空按钮点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events" + }, + { + "name": "click", + "description": "范围输入框点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events" + }, + { + "name": "enter", + "description": "回车键按下时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events" + }, + { + "name": "focus", + "description": "范围输入框获得焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-events" + } + ] + }, + "slots": [ + { + "name": "label", + "description": "左侧内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + }, + { + "name": "prefixIcon", + "description": "组件前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + }, + { + "name": "prefix-icon", + "description": "组件前置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + }, + { + "name": "separator", + "description": "范围分隔符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + }, + { + "name": "suffix", + "description": "后置图标前的后置内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + }, + { + "name": "suffixIcon", + "description": "组件后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + }, + { + "name": "suffix-icon", + "description": "组件后置图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + }, + { + "name": "tips", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props" + } + ] + }, + { + "name": "t-range-input-popup", + "source": { + "symbol": "RangeInputPopup" + }, + "description": "RangeInputPopup\n\n范围输入框触发器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input-popup", + "props": [ + { + "name": "status", + "description": "输入框状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input-popup?tab=api#rangeinputpopup-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "success" + }, + { + "name": "warning" + }, + { + "name": "error" + } + ] + }, + { + "name": "tips", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input-popup?tab=api#rangeinputpopup-props", + "type": [ + "String", + "TNode" + ] + } + ], + "slots": [ + { + "name": "tips", + "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input-popup?tab=api#rangeinputpopup-props" + } + ] + }, + { + "name": "t-rate", + "source": { + "symbol": "Rate" + }, + "description": "Rate\n\n评分", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate", + "props": [ + { + "name": "allow-half", + "description": "是否允许半选", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "clearable", + "description": "是否允许取消选择", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "color", + "description": "评分图标的颜色,样式中默认为 #ED7B2F。一个值表示设置选中高亮的五角星颜色,示例:[选中颜色]。数组则表示分别设置 选中高亮的五角星颜色 和 未选中暗灰的五角星颜色,[选中颜色,未选中颜色]。示例:['#ED7B2F', '#E3E6EB']。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "String", + "Array" + ], + "default": "'#ED7B2F'" + }, + { + "name": "count", + "description": "评分的数量", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Number" + ], + "default": "5" + }, + { + "name": "disabled", + "description": "是否禁用评分", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Boolean" + ] + }, + { + "name": "gap", + "description": "评分图标的间距", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Number" + ], + "default": "4" + }, + { + "name": "icon", + "description": "自定义评分图标,[选中图标,未选中图标]", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Array", + "TNode" + ] + }, + { + "name": "show-text", + "description": "是否显示对应的辅助文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "size", + "description": "评分图标的大小", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "String" + ], + "default": "24px" + }, + { + "name": "texts", + "description": "评分等级对应的辅助文字。组件内置默认值为:['极差', '失望', '一般', '满意', '惊喜']。自定义值示例:['1分', '2分', '3分', '4分', '5分']", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "value", + "description": "选择评分的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "variant", + "description": "已废弃。形状类型,有描边类型和填充类型两种", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "String" + ], + "default": "outline", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "outline" + }, + { + "name": "filled" + } + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "评分数改变时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-events" + } + ] + }, + "slots": [ + { + "name": "icon", + "description": "自定义评分图标,[选中图标,未选中图标]类型和参数:string | string[]", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props" + } + ] + }, + { + "name": "t-result", + "source": { + "symbol": "Result" + }, + "description": "Result\n\n结果", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result", + "props": [ + { + "name": "description", + "description": "描述文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "icon", + "description": "图标名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props", + "type": [ + "TNode" + ] + }, + { + "name": "image", + "description": "图片地址", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "theme", + "description": "内置主题。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "success" + }, + { + "name": "warning" + }, + { + "name": "error" + } + ] + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props", + "type": [ + "String", + "TNode" + ], + "default": "''" + } + ], + "slots": [ + { + "name": "description", + "description": "描述文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props" + }, + { + "name": "icon", + "description": "图标名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props" + }, + { + "name": "image", + "description": "图片地址", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props" + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props" + } + ] + }, + { + "name": "t-row", + "source": { + "symbol": "Row" + }, + "description": "Row\n\n栅格-横向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/row", + "props": [ + { + "name": "gutter", + "description": "列之间的间距(默认单位px)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/row?tab=api#row-props", + "type": [ + "String", + "Number" + ] + } + ], + "slots": [] + }, + { + "name": "t-search", + "source": { + "symbol": "Search" + }, + "description": "Search\n\n搜索", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search", + "props": [ + { + "name": "action", + "description": "自定义右侧操作按钮文字,如:“取消”", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "String", + "TNode" + ], + "default": "''" + }, + { + "name": "autocomplete-options", + "description": "autocomplete words list\n\n【讨论中】联想词列表,如果不存在或长度为 0 则不显示联想框。可以使用函数 `label` 自定义联想词为任意内容;也可使用插槽 `option` 定义联想词内容,插槽参数为 `{ option: AutocompleteOption; index: number }`。如果 `group` 值为 `true` 则表示当前项为分组标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "Array" + ] + }, + { + "name": "center", + "description": "是否居中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "clearable", + "description": "是否可清空", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "disabled", + "description": "禁用状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "Boolean" + ] + }, + { + "name": "focus", + "description": "是否聚焦", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "left-icon", + "description": "左侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "String", + "TNode" + ], + "default": "'search'" + }, + { + "name": "placeholder", + "description": "占位符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "String" + ], + "default": "''" + }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "shape", + "description": "搜索框形状", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "String" + ], + "default": "'square'", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "square" + }, + { + "name": "round" + } + ] + }, + { + "name": "value", + "description": "值,搜索关键词", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props", + "type": [ + "String" + ] + } + ], + "js": { + "events": [ + { + "name": "action-click", + "description": "点击搜索框右侧操作内容时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events" + }, + { + "name": "blur", + "description": "失去焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events" + }, + { + "name": "change", + "description": "搜索关键词发生变化时触发,可能场景有:搜索框内容发生变化、点击联想词", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events" + }, + { + "name": "clear", + "description": "点击清除时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events" + }, + { + "name": "focus", + "description": "获得焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events" + }, + { + "name": "search", + "description": "【讨论中】搜索触发,包含:手机键盘提交健、联想关键词点击、清空按钮点击等", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events" + }, + { + "name": "submit", + "description": "提交时触发,如:手机键盘提交按钮点击", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-events" + } + ] + }, + "slots": [ + { + "name": "action", + "description": "自定义右侧操作按钮文字,如:“取消”", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props" + }, + { + "name": "leftIcon", + "description": "左侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props" + }, + { + "name": "left-icon", + "description": "左侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props" + } + ] + }, + { + "name": "t-segmented-control", + "source": { + "symbol": "SegmentedControl" + }, + "description": "SegmentedControl\n\n分段器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/segmented-control", + "props": [ + { + "name": "items", + "description": "分段器选项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/segmented-control?tab=api#segmentedcontrol-props", + "type": [ + "Array" + ] + }, + { + "name": "value", + "description": "选中值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/segmented-control?tab=api#segmentedcontrol-props", + "type": [ + "String", + "Number", + "Array" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "选中值变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/segmented-control?tab=api#segmentedcontrol-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-select", + "source": { + "symbol": "Select" + }, + "description": "Select\n\n选择器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select", + "props": [ + { + "name": "select-input-props", + "description": "透传 SelectInput 筛选器输入框组件的全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props", + "type": [ + "Object" + ] + }, + { + "name": "tag-input-props", + "description": "透传 TagInput 标签输入框组件的全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props", + "type": [ + "Object" + ] + }, + { + "name": "tag-props", + "description": "透传 Tag 标签组件全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props", + "type": [ + "Object" + ] + } + ], + "slots": [] + }, + { + "name": "t-skeleton", + "source": { + "symbol": "Skeleton" + }, + "description": "Skeleton\n\n骨架屏", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/skeleton", + "props": [ + { + "name": "animation", + "description": "动画效果,有「渐变加载动画」和「闪烁加载动画」两种。值为 'none' 则表示没有动画", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props", + "type": [ + "String" + ], + "default": "none", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "gradient" + }, + { + "name": "flashed" + }, + { + "name": "none" + } + ] + }, + { + "name": "delay", + "description": "延迟显示加载效果的时间,用于防止请求速度过快引起的加载闪烁,单位:毫秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "loading", + "description": "是否为加载状态,如果是则显示骨架图,如果不是则显示加载完成的内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "theme", + "description": "骨架图风格,有基础、头像组合等两大类", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props", + "type": [ + "String" + ], + "default": "text", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "avatar" + }, + { + "name": "image" + }, + { + "name": "text" + }, + { + "name": "paragraph" + } + ] + } + ], + "slots": [] + }, + { + "name": "t-slider", + "source": { + "symbol": "Slider" + }, + "description": "Slider\n\n滑块", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider", + "props": [ + { + "name": "disabled", + "description": "是否禁用组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "label", + "description": "滑块当前值文本。
值为 true 显示默认文案;值为 false 不显示滑块当前值文本;
值为 `${value}%` 则表示组件会根据占位符渲染文案;
值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "String", + "Boolean", + "TNode" + ], + "default": "false" + }, + { + "name": "marks", + "description": "刻度标记,示例:[0, 10, 40, 200] 或者 `{ 10: (val) => val + '%', 50: (h) => }`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Object", + "Array" + ] + }, + { + "name": "max", + "description": "滑块范围最大值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Number" + ], + "default": "100" + }, + { + "name": "min", + "description": "滑块范围最小值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "range", + "description": "双游标滑块", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "show-extreme-value", + "description": "是否边界值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "step", + "description": "步长", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Number" + ], + "default": "1" + }, + { + "name": "theme", + "description": "滑块风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "capsule" + } + ] + }, + { + "name": "value", + "description": "滑块值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props", + "type": [ + "Number", + "Array" + ], + "default": "0" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "滑块值变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-events" + }, + { + "name": "dragend", + "description": "结束拖动时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-events" + }, + { + "name": "dragstart", + "description": "开始拖动时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-events" + } + ] + }, + "slots": [ + { + "name": "label", + "description": "滑块当前值文本。
值为 true 显示默认文案;值为 false 不显示滑块当前值文本;
值为 `${value}%` 则表示组件会根据占位符渲染文案;
值类型为函数时,参数 `value` 标识滑块值,参数 `position=start` 表示范围滑块的起始值,参数 `position=end` 表示范围滑块的终点值类型和参数:string | boolean | TNode<{ value: SliderValue; position?: 'start' | 'end' }>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props" + } + ] + }, + { + "name": "t-space", + "source": { + "symbol": "Space" + }, + "description": "Space\n\n间距", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/space", + "props": [ + { + "name": "align", + "description": "alignment\n\n对齐方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "start" + }, + { + "name": "end" + }, + { + "name": "center" + }, + { + "name": "baseline" + } + ] + }, + { + "name": "break-line", + "description": "Whether to wrap, valid only in horizontal\n\n是否自动换行,仅在 horizontal 时有效\t", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "direction", + "description": "Spacing direction\n\n间距方向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "vertical" + }, + { + "name": "horizontal" + } + ] + }, + { + "name": "separator", + "description": "separator\n\n分隔符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "size", + "description": "Spacing\n\n间距大小", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props", + "type": [ + "String", + "Number", + "Array" + ], + "default": "'medium'" + } + ], + "slots": [ + { + "name": "separator", + "description": "separator\n\n分隔符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/space?tab=api#space-props" + } + ] + }, + { + "name": "t-step-item", + "source": { + "symbol": "StepItem" + }, + "description": "StepItem\n\n步骤", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item", + "props": [ + { + "name": "content", + "description": "步骤描述", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props", + "type": [ + "String", + "TNode" + ], + "default": "''" + }, + { + "name": "icon", + "description": "图标,默认显示内置图标,也可以自定义图标,值为 false 则不显示图标。优先级大于 `status` 定义的图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "true" + }, + { + "name": "status", + "description": "当前步骤的状态:默认状态(未开始)、进行中状态、完成状态、错误状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "process" + }, + { + "name": "finish" + }, + { + "name": "error" + } + ] + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props", + "type": [ + "String", + "TNode" + ], + "default": "''" + } + ], + "slots": [ + { + "name": "content", + "description": "步骤描述", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props" + }, + { + "name": "icon", + "description": "图标,默认显示内置图标,也可以自定义图标,值为 false 则不显示图标。优先级大于 `status` 定义的图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props" + }, + { + "name": "title", + "description": "标题", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props" + } + ] + }, + { + "name": "t-stepper", + "source": { + "symbol": "Stepper" + }, + "description": "Stepper\n\n步进器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper", + "props": [ + { + "name": "disable-input", + "description": "禁用输入框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "禁用全部操作", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "input-width", + "description": "输入框宽度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "Number" + ] + }, + { + "name": "max", + "description": "最大值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "Number" + ], + "default": "100" + }, + { + "name": "min", + "description": "最小值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "size", + "description": "组件尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "step", + "description": "步长", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "Number" + ], + "default": "1" + }, + { + "name": "theme", + "description": "stylish\n\n组件风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "String" + ], + "default": "normal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "normal" + }, + { + "name": "filled" + }, + { + "name": "outline" + } + ] + }, + { + "name": "value", + "description": "值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "String", + "Number" + ], + "default": "0" + } + ], + "js": { + "events": [ + { + "name": "blur", + "description": "输入框失去焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events" + }, + { + "name": "change", + "description": "数值发生变更时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events" + }, + { + "name": "overlimit", + "description": "数值超出限制时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-steps", + "source": { + "symbol": "Steps" + }, + "description": "Steps\n\n步骤条", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps", + "props": [ + { + "name": "current", + "description": "当前步骤,即整个步骤条进度。默认根据步骤下标判断步骤的完成状态,当前步骤为进行中,当前步骤之前的步骤为已完成,当前步骤之后的步骤为未开始。如果每个步骤没有设置 value,current 值为步骤长度则表示所有步骤已完成。如果每个步骤设置了自定义 value,则 current = 'FINISH' 表示所有状态完成", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "layout", + "description": "步骤条方向,有两种:横向和纵向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + }, + { + "name": "options", + "description": "步骤条数据列表(作用和 StepItem 效果一样)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", + "type": [ + "Array" + ] + }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "separator", + "description": "步骤条分割符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", + "type": [ + "String" + ], + "default": "line", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "line" + }, + { + "name": "dashed" + }, + { + "name": "arrow" + } + ] + }, + { + "name": "sequence", + "description": "步骤条顺序", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", + "type": [ + "String" + ], + "default": "positive", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "positive" + }, + { + "name": "reverse" + } + ] + }, + { + "name": "theme", + "description": "步骤条风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "dot" + } + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "当前步骤发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-sticky", + "source": { + "symbol": "Sticky" + }, + "description": "Sticky\n\n吸顶容器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky", + "props": [ + { + "name": "container", + "description": "指定滚动的容器。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props", + "type": [ + "String", + "Function" + ], + "default": "body" + }, + { + "name": "disabled", + "description": "是否禁用组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "offset-top", + "description": "吸顶时与顶部的距离,单位`px`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props", + "type": [ + "String", + "Number" + ], + "default": "0" + }, + { + "name": "z-index", + "description": "吸顶时的 z-index", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props", + "type": [ + "Number" + ], + "default": "99" + } + ], + "js": { + "events": [ + { + "name": "scroll", + "description": "滚动时触发,scrollTop: 距离顶部位置,isFixed: 是否吸顶", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-sticky-tool", + "source": { + "symbol": "StickyTool" + }, + "description": "StickyTool\n\n侧边固钉", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky-tool", + "props": [ + { + "name": "shape", + "description": "stickytool shape\n\n侧边栏菜单形状,有 2 种:方形、圆形", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky-tool?tab=api#stickytool-props", + "type": [ + "String" + ], + "default": "square", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "square" + }, + { + "name": "round" + } + ] + }, + { + "name": "type", + "description": "stickytool type\n\n侧边栏菜单类型,有 2 种:常规型和紧凑型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky-tool?tab=api#stickytool-props", + "type": [ + "String" + ], + "default": "normal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "normal" + }, + { + "name": "compact" + } + ] + } + ], + "slots": [] + }, + { + "name": "t-swipe-cell", + "source": { + "symbol": "SwipeCell" + }, + "description": "SwipeCell\n\n滑动操作", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell", + "props": [ + { + "name": "content", + "description": "操作项以外的内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "default", + "description": "子内容,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "是否禁用滑动", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", + "type": [ + "Boolean" + ] + }, + { + "name": "expanded", + "description": "操作项是否呈现为打开态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, + { + "name": "left", + "description": "左侧滑动操作项。所有行为同 `right`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", + "type": [ + "Array", + "TNode" + ] + }, + { + "name": "opened", + "description": "操作项是否呈现为打开态,值为数组时表示分别控制左右滑动的展开和收起状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", + "type": [ + "Boolean", + "Array" + ], + "default": "false" + }, + { + "name": "right", + "description": "右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', style: 'background-color: red', onClick: () => {} }]`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", + "type": [ + "Array", + "TNode" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "菜单展开或者收回后将菜单的状态传递给父组件,值为数组时表示分别控制左右滑动的展开和收起状态。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-events" + }, + { + "name": "click", + "description": "操作项点击时触发(插槽写法组件不触发,业务侧自定义内容和事件)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "操作项以外的内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props" + }, + { + "name": "default", + "description": "子内容,同 content", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props" + }, + { + "name": "left", + "description": "左侧滑动操作项。所有行为同 `right`类型和参数:Array", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props" + }, + { + "name": "right", + "description": "右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', style: 'background-color: red', onClick: () => {} }]`类型和参数:Array【interface SwipeActionItem {text: string; className?: string; style?: string; onClick?: () => void; [key: string]: any }】", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props" + } + ] + }, + { + "name": "t-swiper", + "source": { + "symbol": "Swiper" + }, + "description": "Swiper\n\n轮播", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper", + "props": [ + { + "name": "animation", + "description": "轮播切换动画效果类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "String" + ], + "default": "slide", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "slide" + } + ] + }, + { + "name": "autoplay", + "description": "是否自动播放", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "current", + "description": "当前轮播在哪一项(下标)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "direction", + "description": "轮播滑动方向,包括横向滑动和纵向滑动两个方向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + }, + { + "name": "duration", + "description": "滑动动画时长", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "Number" + ], + "default": "300" + }, + { + "name": "height", + "description": "当使用垂直方向滚动时的高度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "Number" + ] + }, + { + "name": "interval", + "description": "轮播间隔时间", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "Number" + ], + "default": "5000" + }, + { + "name": "loop", + "description": "是否循环播放", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "navigation", + "description": "导航器全部配置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "Object", + "TNode" + ] + }, + { + "name": "next-margin", + "description": "后边距,可用于露出后一项的一小部分。默认单位 `px`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "String", + "Number" + ], + "default": "0" + }, + { + "name": "previous-margin", + "description": "前边距,可用于露出前一项的一小部分。默认单位 `px`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "String", + "Number" + ], + "default": "0" + }, + { + "name": "type", + "description": "样式类型:默认样式、卡片样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "card" + } + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "轮播切换时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-events" + }, + { + "name": "click", + "description": "点击轮播项时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-events" + } + ] + }, + "slots": [ + { + "name": "navigation", + "description": "导航器全部配置类型和参数:SwiperNavigation | TNode", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props" + } + ] + }, + { + "name": "t-swiper-nav", + "source": { + "symbol": "SwiperNav" + }, + "description": "SwiperNav\n\n轮播导航", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav", + "props": [ + { + "name": "current", + "description": "当前轮播在哪一项(下标)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "direction", + "description": "轮播滑动方向,包括横向滑动和纵向滑动两个方向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + }, + { + "name": "min-show-num", + "description": "小于这个数字不会显示导航器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "Number" + ], + "default": "2" + }, + { + "name": "placement", + "description": "导航器位置,位于主体的内侧或是外侧", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "String" + ], + "default": "inside", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "inside" + }, + { + "name": "outside" + } + ] + }, + { + "name": "show-controls", + "description": "是否显示两侧的控制按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "total", + "description": "总共的项数", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "type", + "description": "导航器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "String" + ], + "default": "dots" + } + ], + "slots": [] + }, + { + "name": "t-switch", + "source": { + "symbol": "Switch" + }, + "description": "Switch\n\n开关", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch", + "props": [ + { + "name": "colors", + "description": "已废弃。自定义颜色,[打开时的颜色,关闭时的颜色]。组件默认颜色为 ['#0052d9', 'rgba(0, 0, 0, .26']。示例:[blue, gray]", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "Array" + ] + }, + { + "name": "custom-value", + "description": "用于自定义开关的值,[打开时的值,关闭时的值]。默认为 [true, false]。示例:[1, 0]、['open', 'close']", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "Array" + ] + }, + { + "name": "disabled", + "description": "是否禁用组件,默认为 false", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "Boolean" + ] + }, + { + "name": "icon", + "description": "开关的图标;[打开时的图标,关闭时的图标]", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "label", + "description": "开关的标签;[打开时的标签,关闭时的标签]", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "loading", + "description": "是否处于加载中状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "size", + "description": "开关尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "value", + "description": "开关值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", + "type": [ + "String", + "Number", + "Boolean" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "数据发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-tab-bar", + "source": { + "symbol": "TabBar" + }, + "description": "TabBar\n\n标签栏", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar", + "props": [ + { + "name": "bordered", + "description": "是否显示外边框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "fixed", + "description": "是否固定在底部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "safe-area-inset-bottom", + "description": "是否为 iPhoneX 留出底部安全距离", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "shape", + "description": "标签栏的形状", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props", + "type": [ + "String" + ], + "default": "'normal'", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "normal" + }, + { + "name": "round" + } + ] + }, + { + "name": "split", + "description": "是否需要分割线", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "theme", + "description": "选项风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props", + "type": [ + "String" + ], + "default": "'normal'", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "normal" + }, + { + "name": "tag" + } + ] + }, + { + "name": "value", + "description": "当前选中标签的索引", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props", + "type": [ + "String", + "Number", + "Array" + ], + "default": "undefined" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "选中标签切换时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-tab-bar-item", + "source": { + "symbol": "TabBarItem" + }, + "description": "TabBarItem\n\n标签栏选项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar-item", + "props": [ + { + "name": "badge-props", + "description": "图标右上角提示信息", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props", + "type": [ + "Object" + ] + }, + { + "name": "icon", + "description": "图标名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props", + "type": [ + "TNode" + ] + }, + { + "name": "sub-tab-bar", + "description": "二级菜单", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props", + "type": [ + "Array" + ] + }, + { + "name": "value", + "description": "标识符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props", + "type": [ + "String", + "Number" + ] + } + ], + "slots": [ + { + "name": "icon", + "description": "图标名称", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-bar-item?tab=api#tabbaritem-props" + } + ] + }, + { + "name": "t-tab-panel", + "source": { + "symbol": "TabPanel" + }, + "description": "TabPanel\n\n选项卡面板", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel", + "props": [ + { + "name": "badge-props", + "description": "透传至 Badge 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", + "type": [ + "Object" + ], + "default": "null" + }, + { + "name": "destroy-on-hide", + "description": "选项卡内容隐藏时是否销毁", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "disabled", + "description": "是否禁用当前选项卡", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "label", + "description": "选项卡名称,可自定义选项卡导航内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "panel", + "description": "用于自定义选项卡面板内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "value", + "description": "选项卡的值,唯一标识", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", + "type": [ + "String", + "Number" + ] + } + ], + "slots": [ + { + "name": "label", + "description": "选项卡名称,可自定义选项卡导航内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props" + }, + { + "name": "panel", + "description": "用于自定义选项卡面板内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props" + } + ] + }, + { + "name": "t-tabs", + "source": { + "symbol": "Tabs" + }, + "description": "Tabs\n\n选项卡", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs", + "props": [ + { + "name": "animation", + "description": "动画效果设置。其中 duration 表示动画时长。(单位:秒)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "Object" + ] + }, + { + "name": "list", + "description": "选项卡列表", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "Array" + ] + }, + { + "name": "show-bottom-line", + "description": "是否展示底部激活线条", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "size", + "description": "组件尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "space-evenly", + "description": "选项卡头部空间是否均分", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "sticky", + "description": "是否开启粘性布局", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "sticky-props", + "description": "透传至 Sticky 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "Object" + ] + }, + { + "name": "swipeable", + "description": "是否可以滑动切换", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "theme", + "description": "标签的样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "String" + ], + "default": "line", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "line" + }, + { + "name": "tag" + }, + { + "name": "card" + } + ] + }, + { + "name": "value", + "description": "激活的选项卡值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "String", + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "激活的选项卡发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-events" + }, + { + "name": "click", + "description": "点击选项卡时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-events" + }, + { + "name": "scroll", + "description": "页面滚动时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-tag", + "source": { + "symbol": "Tag" + }, + "description": "Tag\n\n标签", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag", + "props": [ + { + "name": "closable", + "description": "标签是否可关闭", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "content", + "description": "组件子元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "default", + "description": "组件子元素,同 `content`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "disabled", + "description": "标签禁用态,失效标签不能触发事件。默认风格(theme=default)才有禁用态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "icon", + "description": "标签中的图标,可自定义图标呈现", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "TNode" + ], + "default": "undefined" + }, + { + "name": "max-width", + "description": "标签最大宽度,宽度超出后会出现省略号。示例:'50px' / 80", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "shape", + "description": "标签类型,有三种:方形、圆角方形、标记型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "String" + ], + "default": "square", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "square" + }, + { + "name": "round" + }, + { + "name": "mark" + } + ] + }, + { + "name": "size", + "description": "标签尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + }, + { + "name": "extra-large" + } + ] + }, + { + "name": "theme", + "description": "组件风格,用于描述组件不同的应用场景", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "primary" + }, + { + "name": "warning" + }, + { + "name": "danger" + }, + { + "name": "success" + } + ] + }, + { + "name": "variant", + "description": "标签风格变体", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props", + "type": [ + "String" + ], + "default": "dark", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "dark" + }, + { + "name": "light" + }, + { + "name": "outline" + }, + { + "name": "light-outline" + } + ] + } + ], + "js": { + "events": [ + { + "name": "click", + "description": "点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-events" + }, + { + "name": "close", + "description": "如果关闭按钮存在,点击关闭按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-events" + } + ] + }, + "slots": [ + { + "name": "content", + "description": "组件子元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props" + }, + { + "name": "default", + "description": "组件子元素,同 `content`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props" + }, + { + "name": "icon", + "description": "标签中的图标,可自定义图标呈现", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tag?tab=api#tag-props" + } + ] + }, + { + "name": "t-textarea", + "source": { + "symbol": "Textarea" + }, + "description": "Textarea\n\n文本输入框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea", + "props": [ + { + "name": "allow-input-over-max", + "description": "超出maxlength或maxcharacter之后是否还允许输入", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "autofocus", + "description": "自动聚焦,拉起键盘", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "autosize", + "description": "是否自动增高,值为 autosize 时,style.height 不生效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "bordered", + "description": "是否显示外边框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "disabled", + "description": "是否禁用文本框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "indicator", + "description": "显示文本计数器,如 0/140。当 maxlength < 0 && maxcharacter < 0 成立时, indicator无效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "label", + "description": "左侧文本", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "maxcharacter", + "description": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Number" + ] + }, + { + "name": "maxlength", + "description": "用户最多可以输入的字符个数", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Number" + ] + }, + { + "name": "name", + "description": "名称,HTML 元素原生属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "String" + ] + }, + { + "name": "placeholder", + "description": "占位符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "String" + ], + "default": "undefined" + }, + { + "name": "value", + "description": "文本框值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "String", + "Number" + ] + } + ], + "js": { + "events": [ + { + "name": "blur", + "description": "失去焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-events" + }, + { + "name": "change", + "description": "输入内容变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-events" + }, + { + "name": "focus", + "description": "获得焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-events" + } + ] + }, + "slots": [ + { + "name": "label", + "description": "左侧文本", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props" + } + ] + }, + { + "name": "t-time-range-picker", + "source": { + "symbol": "TimeRangePicker" + }, + "description": "TimeRangePicker\n\n时间范围选择器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/time-range-picker", + "props": [], + "js": { + "events": [ + { + "name": "focus", + "description": "范围输入框获得焦点时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/time-range-picker?tab=api#timerangepicker-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-timeline", + "source": { + "symbol": "Timeline" + }, + "description": "Timeline\n\n时间轴", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline", + "props": [ + { + "name": "label-align", + "description": "label info placement\n\n标签信息放在时间轴的位置,`mode='alternate'` 时生效。纵向时间轴信息位置:左侧、右侧或两侧,默认信息在时间轴右侧。横向时间轴信息位置:上方、下方、两侧", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + }, + { + "name": "alternate" + }, + { + "name": "top" + }, + { + "name": "bottom" + } + ] + }, + { + "name": "layout", + "description": "time line layout\n\n时间轴方向:水平方向、垂直方向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props", + "type": [ + "String" + ], + "default": "vertical", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } + ] + }, + { + "name": "mode", + "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` 为展示在同一侧", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props", + "type": [ + "String" + ], + "default": "alternate", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "alternate" + }, + { + "name": "same" + } + ] + }, + { + "name": "reverse", + "description": "时间轴是否表现为倒序", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "theme", + "description": "步骤条风格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline?tab=api#timeline-props", + "type": [ + "String" + ], + "default": "default", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "default" + }, + { + "name": "dot" + } + ] + } + ], + "slots": [] + }, + { + "name": "t-timeline-item", + "source": { + "symbol": "TimelineItem" + }, + "description": "TimelineItem\n\n时间轴", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item", + "props": [ + { + "name": "content", + "description": "描述内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "dot", + "description": "用于自定义时间轴节点元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props", + "type": [ + "TNode" + ] + }, + { + "name": "dot-color", + "description": "时间轴颜色,内置 `primary/warning/error/default` 四种色值,可传入 16 进制颜色码或 RGB 颜色值.", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props", + "type": [ + "String" + ], + "default": "primary" + }, + { + "name": "label", + "description": "标签文本内容,可完全自定义", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "label-align", + "description": "标签信息相对于时间轴的位置,在 `mode='alternate'` 时生效,优先级高于 `Timeline.labelAlign`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + }, + { + "name": "top" + }, + { + "name": "bottom" + } + ] + } + ], + "slots": [ + { + "name": "content", + "description": "描述内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props" + }, + { + "name": "dot", + "description": "用于自定义时间轴节点元素", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props" + }, + { + "name": "label", + "description": "标签文本内容,可完全自定义", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/timeline-item?tab=api#timelineitem-props" + } + ] + }, + { + "name": "t-toast", + "source": { + "symbol": "Toast" + }, + "description": "Toast\n\n轻提示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast", + "props": [ + { + "name": "direction", + "description": "图标排列方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "String" + ], + "default": "row", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "row" + }, + { + "name": "column" + } + ] + }, + { + "name": "duration", + "description": "弹窗显示毫秒数", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "Number" + ], + "default": "2000" + }, + { + "name": "icon", + "description": "自定义图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "message", + "description": "弹窗显示文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "overlay-props", + "description": "遮罩层属性,透传至 Overlay", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "Object" + ], + "default": "{}" + }, + { + "name": "placement", + "description": "弹窗展示位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "String" + ], + "default": "middle", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": " top" + }, + { + "name": "middle" + }, + { + "name": "bottom" + } + ] + }, + { + "name": "prevent-scroll-through", + "description": "防止滚动穿透,即不允许点击和滚动", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "show-overlay", + "description": "是否显示遮罩层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "theme", + "description": "提示类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "loading" + }, + { + "name": "success" + }, + { + "name": "error" + } + ] + } + ], + "js": { + "events": [ + { + "name": "close", + "description": "轻提示隐藏的时候触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-events" + }, + { + "name": "destroy", + "description": "轻提示销毁的时候触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-events" + } + ] + }, + "slots": [ + { + "name": "icon", + "description": "自定义图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props" + }, + { + "name": "message", + "description": "弹窗显示文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props" + } + ] + }, + { + "name": "t-tooltip", + "source": { + "symbol": "Tooltip" + }, + "description": "Tooltip\n\n文字提示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tooltip", + "props": [], + "slots": [] + }, + { + "name": "t-tree-select", + "source": { + "symbol": "TreeSelect" + }, + "description": "TreeSelect\n\n树选择", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select", + "props": [ + { + "name": "clearable", + "description": "是否允许清空", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "custom-style", + "description": "自定义组件样式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "String" + ] + }, + { + "name": "filterable", + "description": "是否可搜索", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "height", + "description": "高度,默认单位为 px", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "String", + "Number" + ], + "default": "336" + }, + { + "name": "keys", + "description": "用来定义 `value / label / children` 在 `data` 数据中对应的字段别名,示例:`{ value: 'key', label 'name', children: 'list' }`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Object" + ] + }, + { + "name": "multiple", + "description": "是否允许多选", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "multiple", + "description": "是否多选", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "options", + "description": "选项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "placeholder", + "description": "占位符", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "String" + ], + "default": "undefined" + }, + { + "name": "select-input-props", + "description": "【开发中】透传 SelectInput 筛选器输入框组件的全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Object" + ] + }, + { + "name": "size", + "description": "尺寸", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "String" + ], + "default": "medium", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "small" + }, + { + "name": "medium" + }, + { + "name": "large" + } + ] + }, + { + "name": "tag-props", + "description": "透传 Tag 标签组件全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "Object" + ] + }, + { + "name": "value", + "description": "选中值,泛型 `TreeValueType` 继承自 `TreeSelectValue`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", + "type": [ + "String", + "Number", + "Object", + "Array" + ] + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "节点选中状态变化时触发,`context.node` 表示当前变化的选项,`context. trigger` 表示触发变化的来源。泛型 `TreeValueType` 继承自 `TreeSelectValue` ", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-events" + } + ] + }, + "slots": [] + }, + { + "name": "t-upload", + "source": { + "symbol": "Upload" + }, + "description": "Upload\n\n上传", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload", + "props": [ + { + "name": "accept", + "description": "File types that can be accepted. [W3C](https://www.w3schools.com/tags/att_input_accept.asp),[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/file)\n\n接受上传的文件类型,[查看 W3C示例](https://www.w3schools.com/tags/att_input_accept.asp),[查看 MDN 示例](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/file)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "String" + ] + }, + { + "name": "action", + "description": "Uploading URL\n\n上传接口。设接口响应数据为字段 `response`,那么 `response.error` 存在时会判断此次上传失败,并显示错误文本信息;`response.url` 会作为文件上传成功后的地址,并使用该地址显示图片或文件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "String" + ] + }, + { + "name": "allow-upload-duplicate-file", + "description": "allow to upload duplicate name files\n\n是否允许重复上传相同文件名的文件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "auto-upload", + "description": "post upload request automatically after files being selected\n\n是否在选择文件后自动发起请求上传文件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "before-upload", + "description": "stop one of files to upload\n\n如果是自动上传模式 `autoUpload=true`,表示单个文件上传之前的钩子函数,若函数返回值为 `false` 则表示不上传当前文件。
如果是非自动上传模式 `autoUpload=false`,函数返回值为 `false` 时表示从上传文件中剔除当前文件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Function" + ] + }, + { + "name": "data", + "description": "extra request data of uploading. `formatRequest` can redefine all request data\n\n上传请求所需的额外字段,默认字段有 `file`,表示文件信息。可以添加额外的文件名字段,如:`{file_name: \"custom-file-name.txt\"}`。`autoUpload=true` 时有效。也可以使用 `formatRequest` 完全自定义上传请求的字段", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Object" + ] + }, + { + "name": "disabled", + "description": "make upload to be disabled\n\n是否禁用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Boolean" + ] + }, + { + "name": "file-list-display", + "description": "used to render file list UI\n\n用于完全自定义文件列表界面内容(UI),单文件和多文件均有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "TNode" + ] + }, + { + "name": "files", + "description": "已上传文件列表,同 `value`。TS 类型:`UploadFile`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Array" + ], + "default": "[]" + }, + { + "name": "format", + "description": "to redefine `UploadFile` data structure\n\n转换文件 `UploadFile` 的数据结构,可新增或修改 `UploadFile` 的属性,注意不能删除 `UploadFile` 属性。`action` 存在时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Function" + ] + }, + { + "name": "format-request", + "description": "redefine request data\n\n用于新增或修改文件上传请求参数。`action` 存在时有效。一个请求上传一个文件时,默认请求字段有 `file`;
一个请求上传多个文件时,默认字段有 `file[0]/file[1]/file[2]/.../length`,其中 `length` 表示本次上传的文件数量。
⚠️非常注意,此处的 `file[0]/file[1]` 仅仅是一个字段名,并非表示 `file` 是一个数组,接口获取字段时注意区分。
可以使用 `name` 定义 `file` 字段的别名,也可以使用 `formatRequest` 自定义任意字段", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Function" + ] + }, + { + "name": "format-response", + "description": "redefine response data structure\n\n用于格式化文件上传后的接口响应数据,`response` 便是接口响应的原始数据。`action` 存在时有效。
此函数的返回值 `error` 或 `response.error` 会作为错误文本提醒,如果存在会判定为本次上传失败。
此函数的返回值 `url` 或 `response.url` 会作为上传成功后的链接", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Function" + ] + }, + { + "name": "headers", + "description": "HTTP Request Header\n\n设置上传的请求头部,`action` 存在时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Object" + ] + }, + { + "name": "image-props", + "description": "透传 Image 组件全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Object" + ] + }, + { + "name": "max", + "description": "max count of files limit\n\n用于控制文件上传数量,值为 0 则不限制", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Number" + ], + "default": "0" + }, + { + "name": "method", + "description": "HTTP request method\n\nHTTP 请求类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "String" + ], + "default": "POST", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "POST" + }, + { + "name": "GET" + }, + { + "name": "PUT" + }, + { + "name": "OPTION" + }, + { + "name": "PATCH" + }, + { + "name": "post" + }, + { + "name": "get" + }, + { + "name": "put" + }, + { + "name": "option" + }, + { + "name": "patch" + } + ] + }, + { + "name": "multiple", + "description": "multiple files uploading\n\n支持多文件上传", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "request-method", + "description": "custom upload request method\n\n自定义上传方法。返回值 `status` 表示上传成功或失败;`error` 或 `response.error` 表示上传失败的原因;
`response` 表示请求上传成功后的返回数据,`response.url` 表示上传成功后的图片/文件地址,`response.files` 表示一个请求上传多个文件/图片后的返回值。
示例一:`{ status: 'fail', error: '上传失败', response }`。
示例二:`{ status: 'success', response: { url: 'https://tdesign.gtimg.com/site/avatar.jpg' } }`。
示例三:`{ status: 'success', files: [{ url: 'https://xxx.png', name: 'xxx.png' }]}`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Function" + ] + }, + { + "name": "size-limit", + "description": "files size limit\n\n图片文件大小限制,默认单位 KB。可选单位有:`'B' | 'KB' | 'MB' | 'GB'`。示例一:`1000`。示例二:`{ size: 2, unit: 'MB', message: '图片大小不超过 {sizeLimit} MB' }`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Number", + "Object" + ] + }, + { + "name": "use-mock-progress", + "description": "use mock progress, instead of real progress\n\n是否在请求时间超过 300ms 后显示模拟进度。上传进度有模拟进度和真实进度两种。一般大小的文件上传,真实的上传进度只有 0 和 100,不利于交互呈现,因此组件内置模拟上传进度。真实上传进度一般用于大文件上传。", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "with-credentials", + "description": "uploading request with cookie\n\n上传请求时是否携带 cookie", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Boolean" + ], + "default": "false" + } + ], + "js": { + "events": [ + { + "name": "change", + "description": "trigger on uploaded files change\n\n已上传文件列表发生变化时触发,`trigger` 表示触发本次的来源", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + }, + { + "name": "fail", + "description": "`response.error` used for error tips, `formatResponse` can format `response`\n\n上传失败后触发。`response` 指接口响应结果,`response.error` 会作为错误文本提醒。如果希望判定为上传失败,但接口响应数据不包含 `error` 字段,可以使用 `formatResponse` 格式化 `response` 数据结构。如果是多文件多请求上传场景,请到事件 `onOneFileFail` 中查看 `response`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + }, + { + "name": "preview", + "description": "trigger on preview elements click\n\n点击图片预览时触发,文件没有预览", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + }, + { + "name": "progress", + "description": "uploading request progress event\n\n上传进度变化时触发,真实进度和模拟进度都会触发。
⚠️ 原始上传请求,小文件的上传进度只有 0 和 100,故而不会触发 `progress` 事件;只有大文件才有真实的中间进度。如果你希望很小的文件也显示上传进度,保证 `useMockProgress=true` 的情况下,设置 `mockProgressDuration` 为更小的值。
参数 `options.type=real` 表示真实上传进度,`options.type=mock` 表示模拟上传进度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + }, + { + "name": "remove", + "description": "trigger on file removed\n\n移除文件时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + }, + { + "name": "select-change", + "description": "trigger after file choose and before upload\n\n选择文件或图片之后,上传之前,触发该事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + }, + { + "name": "success", + "description": "trigger on all files uploaded successfully\n\n上传成功后触发。
`context.currentFiles` 表示当次请求上传的文件(无论成功或失败),`context.fileList` 表示上传成功后的文件,`context.response` 表示上传请求的返回数据。
`context.results` 表示单次选择全部文件上传成功后的响应结果,可以在这个字段存在时提醒用户上传成功或失败。
", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + }, + { + "name": "validate", + "description": "trigger on length over limit, or trigger on file size over limit\n\n文件上传校验结束事件,文件数量超出、文件大小超出限制、文件同名、`beforeAllFilesUpload` 返回值为假、`beforeUpload` 返回值为假等场景会触发。
注意:如果设置允许上传同名文件,即 `allowUploadDuplicateFile=true`,则不会因为文件重名触发该事件。
结合 `status` 和 `tips` 可以在组件中呈现不同类型的错误(或告警)提示", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" + } + ] + }, + "slots": [ + { + "name": "fileListDisplay", + "description": "used to render file list UI\n\n用于完全自定义文件列表界面内容(UI),单文件和多文件均有效类型和参数:TNode<{ files: UploadFile[]; dragEvents?: UploadDisplayDragEvents }>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props" + }, + { + "name": "file-list-display", + "description": "used to render file list UI\n\n用于完全自定义文件列表界面内容(UI),单文件和多文件均有效类型和参数:TNode<{ files: UploadFile[]; dragEvents?: UploadDisplayDragEvents }>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props" + } + ] + }, + { + "name": "t-watermark", + "source": { + "symbol": "Watermark" + }, + "description": "Watermark\n\n水印", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark", + "props": [ + { + "name": "alpha", + "description": "水印整体透明度,取值范围 [0-1]", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ], + "default": "1" + }, + { + "name": "content", + "description": "水印所覆盖的内容节点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "default", + "description": "水印所覆盖的内容节点,同 `content`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "height", + "description": "水印高度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ] + }, + { + "name": "is-repeat", + "description": "水印是否重复出现", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "line-space", + "description": "行间距,只作用在多行(`content` 配置为数组)情况下", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ], + "default": "16" + }, + { + "name": "movable", + "description": "水印是否可移动", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "move-interval", + "description": "水印发生运动位移的间隙,单位:毫秒", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ], + "default": "3000" + }, + { + "name": "offset", + "description": "水印在画布上绘制的水平和垂直偏移量,正常情况下水印绘制在中间位置,即 `offset = [gapX / 2, gapY / 2]`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Array" + ] + }, + { + "name": "removable", + "description": "水印是否可被删除,默认会开启水印节点防删", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "rotate", + "description": "水印旋转的角度,单位 °", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ], + "default": "-22" + }, + { + "name": "watermark-content", + "description": "水印内容,需要显示多行情况下可配置为数组", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Object", + "Array" + ] + }, + { + "name": "width", + "description": "水印宽度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ] + }, + { + "name": "x", + "description": "水印之间的水平间距", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ] + }, + { + "name": "y", + "description": "水印之间的垂直间距", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ] + }, + { + "name": "z-index", + "description": "水印元素的 `z-index`,默认值写在 CSS 中", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props", + "type": [ + "Number" + ] + } + ], + "slots": [ + { + "name": "content", + "description": "水印所覆盖的内容节点", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props" + }, + { + "name": "default", + "description": "水印所覆盖的内容节点,同 `content`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/watermark?tab=api#watermark-props" + } + ] + } + ] + } + } +} \ No newline at end of file diff --git a/package.json b/package.json index d7ec8a2ca..d763003d8 100644 --- a/package.json +++ b/package.json @@ -188,5 +188,10 @@ "eslint --fix", "prettier --write" ] - } + }, + "vetur": { + "tags": "helper/tags.json", + "attributes": "helper/attributes.json" + }, + "web-types": "helper/web-types.json" } From f76a48410bdba5a3c1d829eb480014cbf9f877d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Fri, 28 Jul 2023 11:57:49 +0800 Subject: [PATCH 2/6] chore: snap update --- .../__test__/__snapshots__/demo.test.jsx.snap | 12 ++++++++++++ src/form/__test__/__snapshots__/demo.test.jsx.snap | 3 +++ 2 files changed, 15 insertions(+) diff --git a/src/cascader/__test__/__snapshots__/demo.test.jsx.snap b/src/cascader/__test__/__snapshots__/demo.test.jsx.snap index 53abab2ae..8154a502a 100644 --- a/src/cascader/__test__/__snapshots__/demo.test.jsx.snap +++ b/src/cascader/__test__/__snapshots__/demo.test.jsx.snap @@ -82,6 +82,7 @@ exports[`Cascader > Cascader baseVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -312,6 +313,7 @@ exports[`Cascader > Cascader keysVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -542,6 +544,7 @@ exports[`Cascader > Cascader lazyVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -769,6 +772,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -1012,6 +1016,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -1229,6 +1234,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -1472,6 +1478,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -1715,6 +1722,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -1962,6 +1970,7 @@ exports[`Cascader > Cascader mobileVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -2161,6 +2170,7 @@ exports[`Cascader > Cascader themeTabVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -2361,6 +2371,7 @@ exports[`Cascader > Cascader withTitleVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -2595,6 +2606,7 @@ exports[`Cascader > Cascader withValueVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > diff --git a/src/form/__test__/__snapshots__/demo.test.jsx.snap b/src/form/__test__/__snapshots__/demo.test.jsx.snap index d95ab6410..e8fd89c22 100644 --- a/src/form/__test__/__snapshots__/demo.test.jsx.snap +++ b/src/form/__test__/__snapshots__/demo.test.jsx.snap @@ -859,6 +859,7 @@ exports[`Form > Form horizontalVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -2610,6 +2611,7 @@ exports[`Form > Form mobileVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > @@ -4221,6 +4223,7 @@ exports[`Form > Form verticalVue demo works fine 1`] = ` class="t-icon t-icon-close" fill="none" height="1em" + style="font-size: 24px;" viewBox="0 0 16 16" width="1em" > From 55db18a2fd34d183d24205b12e14149fc12369b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Wed, 2 Aug 2023 14:25:38 +0800 Subject: [PATCH 3/6] chore: update _common --- src/_common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_common b/src/_common index e2b983897..2ba400d27 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit e2b9838972ea0905dba858f3f504e743565dc2c5 +Subproject commit 2ba400d27e2b532dc9caf2d00d901b7cc5357211 From caa211f71fd2f838c42dcec2b8f521f6a967b2f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Wed, 2 Aug 2023 14:26:08 +0800 Subject: [PATCH 4/6] chore: snap update --- .../__test__/__snapshots__/demo.test.jsx.snap | 152 +++++++++--------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap b/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap index f91f8d94f..0f6d0381d 100644 --- a/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap +++ b/src/action-sheet/__test__/__snapshots__/demo.test.jsx.snap @@ -4,7 +4,7 @@ exports[`ActionSheet > ActionSheet alignVue demo works fine 1`] = `
- +
ActionSheet alignVue demo works fine 1`] = ` - + 居中列表型 - + @@ -37,16 +37,16 @@ exports[`ActionSheet > ActionSheet alignVue demo works fine 1`] = ` - + 左对齐列表型 - +
- +
`; @@ -54,7 +54,7 @@ exports[`ActionSheet > ActionSheet gridMultipleVue demo works fine 1`] = `
- +
ActionSheet gridMultipleVue demo works fine 1`] = ` - + 宫格型-多页 - +
- +
`; @@ -86,7 +86,7 @@ exports[`ActionSheet > ActionSheet gridVue demo works fine 1`] = `
- +
ActionSheet gridVue demo works fine 1`] = ` - + 常规宫格型 - + @@ -119,9 +119,9 @@ exports[`ActionSheet > ActionSheet gridVue demo works fine 1`] = ` - + 带描述宫格型 - + @@ -136,9 +136,9 @@ exports[`ActionSheet > ActionSheet gridVue demo works fine 1`] = ` - + 带徽标宫格型 - + @@ -146,7 +146,7 @@ exports[`ActionSheet > ActionSheet gridVue demo works fine 1`] = ` - +
`; @@ -154,7 +154,7 @@ exports[`ActionSheet > ActionSheet listVue demo works fine 1`] = `
- +
ActionSheet listVue demo works fine 1`] = ` - + 常规列表型 - + @@ -187,9 +187,9 @@ exports[`ActionSheet > ActionSheet listVue demo works fine 1`] = ` - + 函数调用 - + @@ -204,9 +204,9 @@ exports[`ActionSheet > ActionSheet listVue demo works fine 1`] = ` - + 带描述列表型 - + @@ -221,9 +221,9 @@ exports[`ActionSheet > ActionSheet listVue demo works fine 1`] = ` - + 带图标列表型 - + @@ -238,9 +238,9 @@ exports[`ActionSheet > ActionSheet listVue demo works fine 1`] = ` - + 带微标列表型 - + @@ -249,7 +249,7 @@ exports[`ActionSheet > ActionSheet listVue demo works fine 1`] = ` - +
`; @@ -288,8 +288,8 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = `
- - + +
ActionSheet mobileVue demo works fine 1`] = ` - + 常规列表型 - + @@ -322,9 +322,9 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - + 函数调用 - + @@ -339,9 +339,9 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - + 带描述列表型 - + @@ -356,9 +356,9 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - + 带图标列表型 - + @@ -373,9 +373,9 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - + 带微标列表型 - + @@ -384,8 +384,8 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - - + +
ActionSheet mobileVue demo works fine 1`] = `
- - + +
ActionSheet mobileVue demo works fine 1`] = ` - + 常规宫格型 - + @@ -438,9 +438,9 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - + 带描述宫格型 - + @@ -455,9 +455,9 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - + 带徽标宫格型 - + @@ -465,8 +465,8 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - - + +
ActionSheet mobileVue demo works fine 1`] = ` - + 宫格型-多页 - +
- - + +
ActionSheet mobileVue demo works fine 1`] = `
- - + +
ActionSheet mobileVue demo works fine 1`] = ` - + 列表型选项状态 - +
- - + +
ActionSheet mobileVue demo works fine 1`] = `
- - + +
ActionSheet mobileVue demo works fine 1`] = ` - + 居中列表型 - + @@ -597,17 +597,17 @@ exports[`ActionSheet > ActionSheet mobileVue demo works fine 1`] = ` - + 左对齐列表型 - +
- - + +
@@ -617,7 +617,7 @@ exports[`ActionSheet > ActionSheet statusVue demo works fine 1`] = `
- +
ActionSheet statusVue demo works fine 1`] = ` - + 列表型选项状态 - +
- +
`; From a3ca15f99ec67f1b3faf2cffa2135c4a45b0d92e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Wed, 2 Aug 2023 14:27:06 +0800 Subject: [PATCH 5/6] chore: update _common --- src/_common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_common b/src/_common index 2ba400d27..05f588ae6 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 2ba400d27e2b532dc9caf2d00d901b7cc5357211 +Subproject commit 05f588ae6c1d71255320a7d7f6ff61b7cd14318c From 804eb68ebbd555e4cd26239e430cfdafd6ce02ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Thu, 3 Aug 2023 10:47:37 +0800 Subject: [PATCH 6/6] chore: update _common --- src/_common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_common b/src/_common index 05f588ae6..9460f2d7c 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 05f588ae6c1d71255320a7d7f6ff61b7cd14318c +Subproject commit 9460f2d7c439755e08445609f91109e2d7e0b444