diff --git a/.prettierignore b/.prettierignore index d505b2afc..0afb186f0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ -helper/** \ No newline at end of file +helper/** +global.d.ts \ No newline at end of file diff --git a/global.d.ts b/global.d.ts new file mode 100644 index 000000000..89345d52c --- /dev/null +++ b/global.d.ts @@ -0,0 +1,98 @@ +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * https://github.com/TDesignOteam/tdesign-api + * eslint-disable + * */ +declare module 'vue' { + export interface GlobalComponents { + TActionSheet: typeof import('tdesign-mobile-vue')['ActionSheet']; + TAvatar: typeof import('tdesign-mobile-vue')['Avatar']; + TAvatarGroup: typeof import('tdesign-mobile-vue')['AvatarGroup']; + TBackTop: typeof import('tdesign-mobile-vue')['BackTop']; + TBadge: typeof import('tdesign-mobile-vue')['Badge']; + TBaseTable: typeof import('tdesign-mobile-vue')['BaseTable']; + TButton: typeof import('tdesign-mobile-vue')['Button']; + TCalendar: typeof import('tdesign-mobile-vue')['Calendar']; + TCascader: typeof import('tdesign-mobile-vue')['Cascader']; + TCell: typeof import('tdesign-mobile-vue')['Cell']; + TCellGroup: typeof import('tdesign-mobile-vue')['CellGroup']; + TCheckTag: typeof import('tdesign-mobile-vue')['CheckTag']; + TCheckbox: typeof import('tdesign-mobile-vue')['Checkbox']; + TCheckboxGroup: typeof import('tdesign-mobile-vue')['CheckboxGroup']; + TCol: typeof import('tdesign-mobile-vue')['Col']; + TCollapse: typeof import('tdesign-mobile-vue')['Collapse']; + TCollapsePanel: typeof import('tdesign-mobile-vue')['CollapsePanel']; + TColorPicker: typeof import('tdesign-mobile-vue')['ColorPicker']; + TCountDown: typeof import('tdesign-mobile-vue')['CountDown']; + TDateTimePicker: typeof import('tdesign-mobile-vue')['DateTimePicker']; + TDialog: typeof import('tdesign-mobile-vue')['Dialog']; + TDivider: typeof import('tdesign-mobile-vue')['Divider']; + TDrawer: typeof import('tdesign-mobile-vue')['Drawer']; + TDropdownItem: typeof import('tdesign-mobile-vue')['DropdownItem']; + TDropdownMenu: typeof import('tdesign-mobile-vue')['DropdownMenu']; + TEmpty: typeof import('tdesign-mobile-vue')['Empty']; + TFab: typeof import('tdesign-mobile-vue')['Fab']; + TFooter: typeof import('tdesign-mobile-vue')['Footer']; + TForm: typeof import('tdesign-mobile-vue')['Form']; + TFormItem: typeof import('tdesign-mobile-vue')['FormItem']; + TGrid: typeof import('tdesign-mobile-vue')['Grid']; + TGridItem: typeof import('tdesign-mobile-vue')['GridItem']; + TGuide: typeof import('tdesign-mobile-vue')['Guide']; + TIconSVG: typeof import('tdesign-mobile-vue')['IconSVG']; + TIconfont: typeof import('tdesign-mobile-vue')['Iconfont']; + TImage: typeof import('tdesign-mobile-vue')['Image']; + TImageViewer: typeof import('tdesign-mobile-vue')['ImageViewer']; + TIndexes: typeof import('tdesign-mobile-vue')['Indexes']; + TIndexesAnchor: typeof import('tdesign-mobile-vue')['IndexesAnchor']; + TInput: typeof import('tdesign-mobile-vue')['Input']; + TInputAdornment: typeof import('tdesign-mobile-vue')['InputAdornment']; + TLink: typeof import('tdesign-mobile-vue')['Link']; + TList: typeof import('tdesign-mobile-vue')['List']; + TLoading: typeof import('tdesign-mobile-vue')['Loading']; + TMessage: typeof import('tdesign-mobile-vue')['Message']; + TNavbar: typeof import('tdesign-mobile-vue')['Navbar']; + TNoticeBar: typeof import('tdesign-mobile-vue')['NoticeBar']; + TOverlay: typeof import('tdesign-mobile-vue')['Overlay']; + TPicker: typeof import('tdesign-mobile-vue')['Picker']; + TPickerItem: typeof import('tdesign-mobile-vue')['PickerItem']; + TPopconfirm: typeof import('tdesign-mobile-vue')['Popconfirm']; + TPopover: typeof import('tdesign-mobile-vue')['Popover']; + TPopup: typeof import('tdesign-mobile-vue')['Popup']; + TProgress: typeof import('tdesign-mobile-vue')['Progress']; + TPullDownRefresh: typeof import('tdesign-mobile-vue')['PullDownRefresh']; + TRadio: typeof import('tdesign-mobile-vue')['Radio']; + TRadioGroup: typeof import('tdesign-mobile-vue')['RadioGroup']; + TRangeInput: typeof import('tdesign-mobile-vue')['RangeInput']; + TRangeInputPopup: typeof import('tdesign-mobile-vue')['RangeInputPopup']; + TRate: typeof import('tdesign-mobile-vue')['Rate']; + TResult: typeof import('tdesign-mobile-vue')['Result']; + TRow: typeof import('tdesign-mobile-vue')['Row']; + TSearch: typeof import('tdesign-mobile-vue')['Search']; + TSelect: typeof import('tdesign-mobile-vue')['Select']; + TSideBar: typeof import('tdesign-mobile-vue')['SideBar']; + TSideBarItem: typeof import('tdesign-mobile-vue')['SideBarItem']; + TSkeleton: typeof import('tdesign-mobile-vue')['Skeleton']; + TSlider: typeof import('tdesign-mobile-vue')['Slider']; + TSpace: typeof import('tdesign-mobile-vue')['Space']; + TStatistic: typeof import('tdesign-mobile-vue')['Statistic']; + TStepItem: typeof import('tdesign-mobile-vue')['StepItem']; + TStepper: typeof import('tdesign-mobile-vue')['Stepper']; + TSteps: typeof import('tdesign-mobile-vue')['Steps']; + TSticky: typeof import('tdesign-mobile-vue')['Sticky']; + TSwipeCell: typeof import('tdesign-mobile-vue')['SwipeCell']; + TSwiper: typeof import('tdesign-mobile-vue')['Swiper']; + TSwiperNav: typeof import('tdesign-mobile-vue')['SwiperNav']; + TSwitch: typeof import('tdesign-mobile-vue')['Switch']; + TTabBar: typeof import('tdesign-mobile-vue')['TabBar']; + TTabBarItem: typeof import('tdesign-mobile-vue')['TabBarItem']; + TTabPanel: typeof import('tdesign-mobile-vue')['TabPanel']; + TTabs: typeof import('tdesign-mobile-vue')['Tabs']; + TTag: typeof import('tdesign-mobile-vue')['Tag']; + TTextarea: typeof import('tdesign-mobile-vue')['Textarea']; + TToast: typeof import('tdesign-mobile-vue')['Toast']; + TTreeSelect: typeof import('tdesign-mobile-vue')['TreeSelect']; + TUpload: typeof import('tdesign-mobile-vue')['Upload']; + } +} + +export {}; diff --git a/helper/attributes.json b/helper/attributes.json index 59d334fa3..789eee296 100644 --- a/helper/attributes.json +++ b/helper/attributes.json @@ -81,11 +81,11 @@ "circle", "round" ], - "description": "shape\n\n形状\n\ndefault: circle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" + "description": "shape\n\n形状。优先级高于 AvatarGroup.shape 。Avatar 单独存在时,默认值为 circle。如果父组件 AvatarGroup 存在,默认值便由 AvatarGroup.shape 决定\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)" + "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等。优先级高于 AvatarGroup.size 。Avatar 单独存在时,默认值为 medium。如果父组件 AvatarGroup 存在,默认值便由 AvatarGroup.size 决定\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props)" }, "t-avatar/error": { "type": "event", @@ -107,17 +107,33 @@ "type": "Number", "description": "能够同时显示的最多头像数量\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props)" }, + "t-avatar-group/shape": { + "type": "String", + "options": [ + "circle", + "round" + ], + "description": "shape\n\n形状。优先级低于 Avatar.shape\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)" + "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等。优先级低于 Avatar.size\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props)" + }, + "t-avatar-group/collapsed-item-click": { + "type": "event", + "description": "点击头像折叠元素触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-events)" + }, + "t-back-top/container": { + "type": "Function", + "description": "滚动的容器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-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)" + "type": "Boolean|TNode", + "description": "图标\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props)" }, "t-back-top/target": { "type": "Function", @@ -137,6 +153,10 @@ ], "description": "预设的样式类型\n\ndefault: round\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props)" }, + "t-back-top/visibility-height": { + "type": "Number", + "description": "滚动高度达到此参数值才出现\n\ndefault: 200\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)" @@ -187,6 +207,176 @@ ], "description": "尺寸\n\ndefault: medium\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge?tab=api#badge-props)" }, + "t-base-table/bordered": { + "type": "Boolean", + "description": "show table bordered\n\n是否显示表格边框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/bordered": { + "type": "Boolean", + "description": "show table bordered\n\n是否显示表格边框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/cell-empty-content": { + "type": "String|TNode", + "description": "单元格数据为空时呈现的内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/cell-empty-content": { + "type": "String|TNode", + "description": "单元格数据为空时呈现的内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/columns": { + "type": "Array", + "description": "table column configs\n\n列配置,泛型 T 指表格数据类型\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/columns": { + "type": "Array", + "description": "table column configs\n\n列配置,泛型 T 指表格数据类型\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/data": { + "type": "Array", + "description": "table data\n\n数据源,泛型 T 指表格数据类型\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/data": { + "type": "Array", + "description": "table data\n\n数据源,泛型 T 指表格数据类型\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/empty": { + "type": "String|TNode", + "description": "empty text or empty element\n\n空表格呈现样式,支持全局配置 `GlobalConfigProvider`\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/empty": { + "type": "String|TNode", + "description": "empty text or empty element\n\n空表格呈现样式,支持全局配置 `GlobalConfigProvider`\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/fixed-rows": { + "type": "Array", + "description": "【开发中】固定行(冻结行),示例:[M, N],表示冻结表头 M 行和表尾 N 行。M 和 N 值为 0 时,表示不冻结行\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/fixed-rows": { + "type": "Array", + "description": "【开发中】固定行(冻结行),示例:[M, N],表示冻结表头 M 行和表尾 N 行。M 和 N 值为 0 时,表示不冻结行\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/height": { + "type": "String|Number", + "description": "table height\n\n表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/height": { + "type": "String|Number", + "description": "table height\n\n表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/loading": { + "type": "Boolean|TNode", + "description": "loading state table\n\n加载中状态。值为 `true` 会显示默认加载中样式,可以通过 Function 和 插槽 自定义加载状态呈现内容和样式。值为 `false` 则会取消加载状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/loading": { + "type": "Boolean|TNode", + "description": "loading state table\n\n加载中状态。值为 `true` 会显示默认加载中样式,可以通过 Function 和 插槽 自定义加载状态呈现内容和样式。值为 `false` 则会取消加载状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/loading-props": { + "type": "Object", + "description": "透传加载组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/loading-props": { + "type": "Object", + "description": "透传加载组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/max-height": { + "type": "String|Number", + "description": "table max height\n\n表格最大高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/max-height": { + "type": "String|Number", + "description": "table max height\n\n表格最大高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/row-key": { + "type": "String", + "description": "unique key for each row data\n\n唯一标识一行数据的字段名,来源于 `data` 中的字段。如果是字段嵌套多层,可以设置形如 `item.a.id` 的方法\n\ndefault: 'id'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/row-key": { + "type": "String", + "description": "unique key for each row data\n\n唯一标识一行数据的字段名,来源于 `data` 中的字段。如果是字段嵌套多层,可以设置形如 `item.a.id` 的方法\n\ndefault: 'id'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/show-header": { + "type": "Boolean", + "description": "show table header\n\n是否显示表头\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/show-header": { + "type": "Boolean", + "description": "show table header\n\n是否显示表头\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/stripe": { + "type": "Boolean", + "description": "show stripe style\n\n是否显示斑马纹\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/stripe": { + "type": "Boolean", + "description": "show stripe style\n\n是否显示斑马纹\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/table-content-width": { + "type": "String", + "description": "表格内容的总宽度,注意不是表格可见宽度。主要应用于 `table-layout: auto` 模式下的固定列显示。`tableContentWidth` 内容宽度的值必须大于表格可见宽度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/table-content-width": { + "type": "String", + "description": "表格内容的总宽度,注意不是表格可见宽度。主要应用于 `table-layout: auto` 模式下的固定列显示。`tableContentWidth` 内容宽度的值必须大于表格可见宽度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/table-layout": { + "type": "String", + "options": [ + "auto", + "fixed" + ], + "description": "table-layout css properties, [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout). set value to be `fixed` on `resizable=true` please\n\n表格布局方式\n\ndefault: fixed\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/table-layout": { + "type": "String", + "options": [ + "auto", + "fixed" + ], + "description": "table-layout css properties, [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout). set value to be `fixed` on `resizable=true` please\n\n表格布局方式\n\ndefault: fixed\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/vertical-align": { + "type": "String", + "options": [ + "top", + "middle", + "bottom" + ], + "description": "vertical align\n\n行内容上下方向对齐\n\ndefault: middle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-table/vertical-align": { + "type": "String", + "options": [ + "top", + "middle", + "bottom" + ], + "description": "vertical align\n\n行内容上下方向对齐\n\ndefault: middle\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props)" + }, + "t-base-table/cell-click": { + "type": "event", + "description": "trigger on cell clicked\n\n单元格点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events)" + }, + "t-table/cell-click": { + "type": "event", + "description": "trigger on cell clicked\n\n单元格点击时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events)" + }, + "t-base-table/row-click": { + "type": "event", + "description": "trigger on row click\n\n行点击时触发,泛型 T 指表格数据类型\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events)" + }, + "t-table/row-click": { + "type": "event", + "description": "trigger on row click\n\n行点击时触发,泛型 T 指表格数据类型\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events)" + }, + "t-base-table/scroll": { + "type": "event", + "description": "trigger on table content scroll\n\n表格内容滚动时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events)" + }, + "t-table/scroll": { + "type": "event", + "description": "trigger on table content scroll\n\n表格内容滚动时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events)" + }, "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)" @@ -197,7 +387,7 @@ }, "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)" + "description": "disable the button, make it can not be clicked\n\n禁用状态。优先级:Button.disabled > Form.disabled\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, "t-button/ghost": { "type": "Boolean", @@ -213,7 +403,7 @@ }, "t-button/loading-props": { "type": "Object", - "description": "透传加载组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + "description": "透传 Loading 组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" }, "t-button/shape": { "type": "String", @@ -263,21 +453,22 @@ "options": [ "base", "outline", + "dashed", "text" ], - "description": "button variant\n\n按钮形式,基础、线框、文字\n\ndefault: base\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props)" + "description": "variant of button\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)" + "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" + }, + "t-calendar/default-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/first-day-of-week": { "type": "Number", @@ -295,6 +486,15 @@ "type": "Number|Date", "description": "最小可选的日期,不传则默认今天\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" }, + "t-calendar/switch-mode": { + "type": "String", + "options": [ + "none", + "month", + "year-month" + ], + "description": "【开发中】切换模式。 `none` 表示水平方向平铺展示所有月份; `month` 表示支持按月切换, `year-month` 表示既按年切换,也支持按月切换\n\ndefault: none\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)" @@ -318,7 +518,7 @@ }, "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)" + "description": "是否显示日历;`usePopup` 为 true 时有效。支持语法糖 `v-model:visible`\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props)" }, "t-calendar/change": { "type": "event", @@ -336,6 +536,10 @@ "type": "event", "description": "点击日期时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-events)" }, + "t-cascader/check-strictly": { + "type": "Boolean", + "description": "父子节点选中状态不再关联,可各自选中或取消\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" + }, "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)" @@ -348,6 +552,10 @@ "type": "Array", "description": "可选项数据源\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props)" }, + "t-cascader/placeholder": { + "type": "String|TNode", + "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)" @@ -439,7 +647,7 @@ }, "t-cell-group/bordered": { "type": "Boolean", - "description": "是否显示组边框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props)" + "description": "是否显示组边框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props)" }, "t-cell-group/theme": { "type": "String", @@ -513,14 +721,14 @@ "type": "event", "description": "点击标签时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-events)" }, + "t-check-tag/close": { + "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)" @@ -547,7 +755,7 @@ }, "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)" + "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", @@ -579,7 +787,7 @@ }, "t-checkbox/readonly": { "type": "Boolean", - "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props)" }, "t-checkbox/value": { "type": "String|Number|Boolean", @@ -589,13 +797,13 @@ "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)" + "description": "是否禁用组件。优先级:Form.disabled < CheckboxGroup.disabled < Checkbox.disabled\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" + }, + "t-checkbox-group/keys": { + "type": "Object", + "description": "用来定义 value / label 在 `options` 中对应的字段别名\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props)" }, "t-checkbox-group/max": { "type": "Number", @@ -609,6 +817,10 @@ "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/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: undefined\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)" @@ -681,6 +893,10 @@ "type": "String|TNode", "description": "面板头内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" }, + "t-collapse-panel/header-left-icon": { + "type": "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)" @@ -697,37 +913,37 @@ "type": "String|Number", "description": "当前面板唯一标识,如果值为空则取当前面下标兜底作为唯一标识\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props)" }, + "t-color-picker/auto-close": { + "type": "Boolean", + "description": "自动关闭。在点击遮罩层时自动关闭,不需要手动设置 visible\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-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-color-picker/footer": { + "type": "TNode", + "description": "底部插槽,仅在 `usePopup` 为 `true` 时有效\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-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-color-picker/header": { + "type": "TNode", + "description": "顶部插槽,仅在 `usePopup` 为 `true` 时有效\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props)" }, - "t-comment/content": { - "type": "String|TNode", - "description": "内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + "t-color-picker/popup-props": { + "type": "Object", + "description": "popupProps透传\n\ndefault: {}\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props)" }, - "t-comment/datetime": { - "type": "String|TNode", - "description": "时间\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + "t-color-picker/use-popup": { + "type": "Boolean", + "description": "是否使用弹出层包裹颜色选择器\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props)" }, - "t-comment/quote": { - "type": "String|TNode", - "description": "引用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + "t-color-picker/visible": { + "type": "Boolean", + "description": "是否显示颜色选择器。`usePopup` 为 true 时有效\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props)" }, - "t-comment/reply": { - "type": "String|TNode", - "description": "回复\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props)" + "t-color-picker/close": { + "type": "event", + "description": "关闭按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-events)" }, "t-count-down/auto-start": { "type": "Boolean", @@ -752,7 +968,7 @@ "medium", "large" ], - "description": "倒计时尺寸\n\ndefault: 'small'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + "description": "倒计时尺寸\n\ndefault: 'medium'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" }, "t-count-down/split-with-unit": { "type": "Boolean", @@ -769,7 +985,7 @@ }, "t-count-down/time": { "type": "Number", - "description": "倒计时时长,单位毫秒\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" + "description": "倒计时时长,单位毫秒\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props)" }, "t-count-down/change": { "type": "event", @@ -779,19 +995,9 @@ "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/auto-close": { + "type": "Boolean", + "description": "自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" }, "t-date-time-picker/cancel-btn": { "type": "String", @@ -805,17 +1011,13 @@ "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/filter": { + "type": "Function", + "description": "列选项过滤函数,支持自定义列内容。(type 值可为: year, month, date, hour, minute, second)\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)" + "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/mode": { "type": "String|Array", @@ -833,13 +1035,13 @@ "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)" + "description": "title of picker\n\n标题\n\ndefault: '选择时间'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props)" + }, + "t-date-time-picker/use-popup": { + "type": "Boolean", + "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/value": { "type": "String|Number", @@ -853,10 +1055,6 @@ "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)" @@ -881,9 +1079,13 @@ "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-btn": { + "type": "Boolean", + "description": "多按钮排列方式。可选项:true/false\n\ndefault: false\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)" + "description": "点击蒙层时是否触发关闭事件\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props)" }, "t-dialog/confirm-btn": { "type": "String|Object|TNode", @@ -933,6 +1135,10 @@ "type": "event", "description": "关闭事件,点击 取消按钮 或 点击蒙层 时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events)" }, + "t-dialog/closed": { + "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)" @@ -976,7 +1182,7 @@ }, "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)" + "description": "点击蒙层时是否触发抽屉关闭事件\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-props)" }, "t-drawer/destroy-on-close": { "type": "Boolean", @@ -1016,7 +1222,7 @@ }, "t-drawer/close": { "type": "event", - "description": "关闭时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events)" + "description": "关闭时触发。\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events)" }, "t-drawer/item-click": { "type": "event", @@ -1028,7 +1234,11 @@ }, "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)" + "description": "是否禁用操作项\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + }, + "t-dropdown-item/footer": { + "type": "TNode", + "description": "底部\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" }, "t-dropdown-item/keys": { "type": "Object", @@ -1050,12 +1260,16 @@ "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": { + "t-dropdown-item/placement": { "type": "String", - "description": "选项排列;不再支持 tree 布局,可与 treeSelect 配合使用\n\ndefault: columns\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" + "options": [ + "left", + "right" + ], + "description": "复选框和内容相对位置,仅单选菜单栏有效\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" }, "t-dropdown-item/value": { - "type": "String|Number", + "type": "String|Number|Array", "description": "选中值\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props)" }, "t-dropdown-item/change": { @@ -1074,6 +1288,14 @@ "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/direction": { + "type": "String", + "options": [ + "down", + "up" + ], + "description": "菜单展开方向\n\ndefault: down\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)" @@ -1088,15 +1310,19 @@ }, "t-empty/action": { "type": "TNode", - "description": "操作按钮\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props)" + "description": "action block\n\n操作按钮\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)" + "description": "empty component description\n\n描述文字\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props)" + }, + "t-empty/icon": { + "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)" + "description": "image url, or Image component props, or custom any node you need\n\n图片地址\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props)" }, "t-fab/button-props": { "type": "Object", @@ -1134,6 +1360,14 @@ "type": "Boolean", "description": "是否在表单标签字段右侧显示冒号\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" }, + "t-form/content-align": { + "type": "String", + "options": [ + "left", + "right" + ], + "description": "表单内容对齐方式:左对齐、右对齐\n\ndefault: left\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)" @@ -1146,10 +1380,6 @@ "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": [ @@ -1161,15 +1391,7 @@ }, "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)" + "description": "可以整体设置label标签宽度,默认为81px\n\ndefault: '81px'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props)" }, "t-form/prevent-submit-default": { "type": "Boolean", @@ -1204,10 +1426,6 @@ "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)" @@ -1224,6 +1442,18 @@ "type": "event", "description": "校验结束后触发,result 值为 true 表示校验通过;如果校验不通过,result 值为校验结果列表\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-events)" }, + "t-form-item/arrow": { + "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/content-align": { + "type": "String", + "options": [ + "left", + "right" + ], + "description": "表单内容对齐方式:左对齐、右对齐\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" + }, "t-form-item/for": { "type": "String", "description": "label 原生属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props)" @@ -1265,22 +1495,6 @@ "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": [ @@ -1333,6 +1547,82 @@ "type": "String|TNode", "description": "文本,可以通过 Props 传入文本,也可以自定义标题节点\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item?tab=api#griditem-props)" }, + "t-guide/back-button-props": { + "type": "Object", + "description": "透传 返回 的全部属性,示例:`{ content: '返回', theme: 'default' }`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/counter": { + "type": "TNode", + "description": "用于自定义渲染计数部分\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/current": { + "type": "Number", + "description": "当前步骤,即整个引导的进度。-1 则不展示,用于需要中断展示的场景\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/finish-button-props": { + "type": "Object", + "description": "透传 完成 的全部属性,示例:`{ content: '完成', theme: 'primary' }`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/hide-counter": { + "type": "Boolean", + "description": "是否隐藏计数\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/hide-skip": { + "type": "Boolean", + "description": "是否隐藏跳过按钮\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/highlight-padding": { + "type": "Number", + "description": "高亮框的内边距\n\ndefault: 8\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/mode": { + "type": "String", + "options": [ + "popover", + "dialog" + ], + "description": "引导框的类型\n\ndefault: popover\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/next-button-props": { + "type": "Object", + "description": "透传 下一步按钮 的全部属性,示例:{ content: '下一步', theme: 'primary' }\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/show-overlay": { + "type": "Boolean", + "description": "是否出现遮罩层\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/skip-button-props": { + "type": "Object", + "description": "透传 跳过按钮 的全部属性,{ content: '跳过', theme: 'default' }\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/steps": { + "type": "Array", + "description": "用于定义每个步骤的内容,包括高亮的节点、相对位置和具体的文案内容等\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/z-index": { + "type": "Number", + "description": "提示框的层级\n\ndefault: 999999\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props)" + }, + "t-guide/back": { + "type": "event", + "description": "点击返回按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events)" + }, + "t-guide/change": { + "type": "event", + "description": "当前步骤发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events)" + }, + "t-guide/finish": { + "type": "event", + "description": "点击完成按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events)" + }, + "t-guide/next-step-click": { + "type": "event", + "description": "点击下一步时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events)" + }, + "t-guide/skip": { + "type": "event", + "description": "点击跳过按钮时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events)" + }, "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)" @@ -1432,7 +1722,7 @@ "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)" + "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\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" }, "t-image/shape": { "type": "String", @@ -1444,8 +1734,8 @@ "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)" + "type": "String", + "description": "图片链接\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props)" }, "t-image/srcset": { "type": "Object", @@ -1481,7 +1771,7 @@ }, "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)" + "description": "hide or show image viewer\n\n隐藏/显示预览\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", @@ -1499,10 +1789,6 @@ "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)" @@ -1530,47 +1816,76 @@ "center", "right" ], - "description": "文本内容位置,居左/居中/居右\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + "description": "text align type\n\n文本内容位置,居左/居中/居右\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)" + "description": "allow to continue input on value length is over `maxlength` or `maxcharacter`\n\n超出 `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)" + "description": "attribute of input element, [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)\n\n是否开启自动填充功能,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)" + "description": "autofocus on first rendered\n\n自动聚焦\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/borderless": { + "type": "Boolean", + "description": "input without border\n\n是否开启无边框模式\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/clear-trigger": { + "type": "String", + "options": [ + "always ", + " focus" + ], + "description": "show clear icon, clicked to clear input value\n\n清空图标触发方式,仅在输入框有值时有效\n\ndefault: always\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)" + "description": "show clear icon, clicked to clear input value\n\n是否可清空\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)" + "description": "make input to be disabled\n\n是否禁用输入框\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, - "t-input/error-message": { + "t-input/enterkeyhint": { "type": "String", - "description": "错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + "options": [ + "enter", + "done", + "go", + "next", + "previous", + "search", + "send" + ], + "description": "attribute of input element, [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)\n\n用于控制回车键样式,此 API 仅在部分浏览器支持,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)\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)" + "description": "input value formatter, `type=number` does not work. if you need to format number, `InputNumber` Component might be better\n\n指定输入框展示值的格式\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)" + "description": "text on the left of input\n\n左侧文本\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/layout": { + "type": "String", + "options": [ + "vertical", + "horizontal" + ], + "description": "标题输入框布局方式\n\ndefault: horizontal\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)" + "type": "String|Number", + "description": "用户最多可以输入的文本长度,一个中文等于一个计数长度。默认为空,不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/name": { "type": "String", @@ -1586,7 +1901,7 @@ }, "t-input/readonly": { "type": "Boolean", - "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/size": { "type": "String", @@ -1594,7 +1909,11 @@ "small", "medium" ], - "description": "已废弃。输入框尺寸\n\ndefault: small\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + "description": "输入框尺寸\n\ndefault: small\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + }, + "t-input/spell-check": { + "type": "Boolean", + "description": "attribute of input element, [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/spellcheck)\n\n是否开启拼写检查,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/spellcheck)\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/status": { "type": "String", @@ -1604,19 +1923,19 @@ "warning", "error" ], - "description": "输入框状态。默认情况会由组件内部根据实际情况呈现,如果文本过长引起的状态变化\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + "description": "输入框状态\n\ndefault: default\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)" + "description": "suffix content before suffixIcon\n\n后置图标前的后置内容\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)" + "description": "suffix icon of input\n\n组件后置图标\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)" + "description": "tips on the bottom of input, different `status` can make tips to be different color\n\n输入框下方提示文本,会根据不同的 `status` 呈现不同的样式\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/type": { "type": "String", @@ -1630,11 +1949,11 @@ "submit", "hidden" ], - "description": "输入框类型\n\ndefault: text\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" + "description": "type attribute of input element. if you are using `type=number`, `InputNumber` Component might be better\n\n输入框类型\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)" + "type": "String|Number", + "description": "input value\n\n输入框的值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props)" }, "t-input/blur": { "type": "event", @@ -1642,7 +1961,7 @@ }, "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)" + "description": "trigger on input value changed\n\n输入框值发生变化时触发。`trigger=initial` 表示传入的数据不符合预期,组件自动处理后触发 change 告知父组件。如:初始值长度超过 `maxlength` 限制\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events)" }, "t-input/clear": { "type": "event", @@ -1654,7 +1973,7 @@ }, "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)" + "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", @@ -1674,7 +1993,7 @@ }, "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)" + "description": "make link to be disabled\n\n禁用链接。优先级:Link.disabled > Form.disabled\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props)" }, "t-link/hover": { "type": "Boolean", @@ -1742,7 +2061,11 @@ }, "t-list/scroll": { "type": "event", - "description": "列表滚动时触发,scrollTop 表示顶部滚动距离\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-events)" + "description": "列表滚动时触发,bottomDistance 表示底部距离;scrollTop 表示顶部滚动距离\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-events)" + }, + "t-loading/attach": { + "type": "String|Function", + "description": "挂载元素,默认挂载到组件本身所在的位置。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body\n\ndefault: ''\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" }, "t-loading/content": { "type": "String|TNode", @@ -1760,6 +2083,10 @@ "type": "Number", "description": "加载动画执行完成一次的时间,单位:毫秒\n\ndefault: 800\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props)" }, + "t-loading/fullscreen": { + "type": "Boolean", + "description": "是否显示为全屏加载\n\ndefault: false\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)" @@ -1784,10 +2111,6 @@ "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)" @@ -1827,7 +2150,7 @@ }, "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)" + "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", @@ -1835,7 +2158,7 @@ }, "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)" + "description": "链接名称。值为字符串表示链接名称,值为 `Object` 类型,表示透传至 `Link`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props)" }, "t-message/marquee": { "type": "Boolean|Object", @@ -1863,61 +2186,41 @@ "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)" + "description": "当`link`链接存在时,点击链接文本时触发\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/capsule": { + "type": "TNode", + "description": "左侧胶囊区域\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)" + "type": "TNode", + "description": "左侧区域\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)" + "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)" + "type": "TNode", + "description": "右侧区域\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props)" }, "t-navbar/title": { "type": "String|TNode", @@ -1933,11 +2236,11 @@ }, "t-navbar/left-click": { "type": "event", - "description": "点击左侧区域时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events)" + "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)" + "description": "点击右侧图标时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events)" }, "t-notice-bar/content": { "type": "String|Array|TNode", @@ -1951,10 +2254,6 @@ ], "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)" @@ -1964,8 +2263,8 @@ "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)" + "type": "Boolean|TNode", + "description": "用于自定义公告栏前面的图标,优先级大于 theme 设定的图标。值为 false 则不显示图标,值为 true 显示 theme 设定图标\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props)" }, "t-notice-bar/suffix-icon": { "type": "TNode", @@ -1985,29 +2284,29 @@ "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/background-color": { + "type": "String", + "description": "遮罩层的背景色\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" + }, + "t-overlay/custom-style": { + "type": "String", + "description": "遮罩层自定义样式。优先级低于其他属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" + }, "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)" + "description": "是否阻止背景滚动,阻止时蒙层里的内容也将无法滚动\n\ndefault: true\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)" + "description": "是否展示\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props)" }, "t-overlay/z-index": { "type": "Number", @@ -2017,24 +2316,8 @@ "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", + "type": "String|Boolean", "description": "取消按钮文字\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" }, "t-picker/columns": { @@ -2042,16 +2325,16 @@ "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", + "type": "String|Boolean", "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)" + "type": "TNode", + "description": "自定义头部内容\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/option": { + "type": "TNode", + "description": "自定义选项内容。参数为 `option: PickerColumnItem, index: number`\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" }, "t-picker/render-label": { "type": "Function", @@ -2063,11 +2346,7 @@ }, "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)" + "description": "选中值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props)" }, "t-picker/cancel": { "type": "event", @@ -2097,14 +2376,6 @@ "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)" @@ -2149,7 +2420,7 @@ "warning", "error" ], - "description": "弹出气泡主题。\n\ndefault: dark\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props)" + "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", @@ -2165,7 +2436,7 @@ }, "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)" + "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", @@ -2175,6 +2446,10 @@ "type": "Boolean", "description": "点击遮罩层是否关闭\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props)" }, + "t-popup/destroy-on-close": { + "type": "Boolean", + "description": "是否在关闭浮层时销毁浮层\n\ndefault: false\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)" @@ -2192,7 +2467,7 @@ }, "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)" + "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", @@ -2301,26 +2576,14 @@ "type": "event", "description": "结束下拉时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events)" }, + "t-pull-down-refresh/scrolltolower": { + "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)" @@ -2331,11 +2594,11 @@ }, "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)" + "description": "是否为块级元素\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)" + "description": "是否为块级元素\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio/borderless": { "type": "Boolean", @@ -2379,19 +2642,19 @@ }, "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)" + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。优先级:Radio.disabled > RadioGroup.disabled > Form.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)" + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。优先级:Radio.disabled > RadioGroup.disabled > Form.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)" + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标、值为 'none' 则表示没有图标\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)" + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标、值为 'none' 则表示没有图标\n\ndefault: 'circle'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio/label": { "type": "String|TNode", @@ -2431,7 +2694,7 @@ "left", "right" ], - "description": "复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + "description": "复选框和内容相对位置。优先级高于 RadioGroup.placement。Radio 单独存在时,默认值为 left。如果父组件存在 RadioGroup,默认值便由 RadioGroup.placement 决定\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio-button/placement": { "type": "String", @@ -2439,7 +2702,15 @@ "left", "right" ], - "description": "复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + "description": "复选框和内容相对位置。优先级高于 RadioGroup.placement。Radio 单独存在时,默认值为 left。如果父组件存在 RadioGroup,默认值便由 RadioGroup.placement 决定\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" + }, + "t-radio-button/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props)" }, "t-radio/value": { "type": "String|Number|Boolean", @@ -2467,7 +2738,11 @@ }, "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)" + "description": "是否禁用全部子单选框。优先级:Radio.disabled > RadioGroup.disabled > Form.disabled\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/icon": { + "type": "String|Array", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标\n\ndefault: 'circle'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" }, "t-radio-group/keys": { "type": "Object", @@ -2487,7 +2762,11 @@ "left", "right" ], - "description": "复选框和内容相对位置\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + "description": "复选框和内容相对位置。优先级低于 Radio.placement\n\ndefault: left\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" + }, + "t-radio-group/readonly": { + "type": "Boolean", + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props)" }, "t-radio-group/value": { "type": "String|Number|Boolean", @@ -2495,7 +2774,7 @@ }, "t-radio-group/change": { "type": "event", - "description": "选中值发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-events)" + "description": "选中值发生变化时触发, `context.name` 指 RadioGroup 的 name 属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-events)" }, "t-range-input/active-index": { "type": "Number", @@ -2507,7 +2786,7 @@ }, "t-range-input/disabled": { "type": "Boolean", - "description": "是否禁用范围输入框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" + "description": "是否禁用范围输入框\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" }, "t-range-input/format": { "type": "Array|Function", @@ -2531,7 +2810,7 @@ }, "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)" + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props)" }, "t-range-input/separator": { "type": "String|TNode", @@ -2605,13 +2884,9 @@ "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)" + "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", @@ -2619,16 +2894,25 @@ }, "t-rate/disabled": { "type": "Boolean", - "description": "是否禁用评分\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props)" + "description": "是否禁用评分\n\ndefault: undefined\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)" + "type": "String|Number", + "description": "评分图标的间距\n\ndefault: 8\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/placement": { + "type": "String", + "options": [ + "top ", + " bottom ", + " ''" + ], + "description": "选择评分弹框的位置,值为空字符表示不显示评分弹框\n\ndefault: top\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)" @@ -2645,14 +2929,6 @@ "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)" @@ -2677,7 +2953,7 @@ "warning", "error" ], - "description": "内置主题。\n\ndefault: default\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props)" + "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", @@ -2721,7 +2997,7 @@ }, "t-search/readonly": { "type": "Boolean", - "description": "只读状态\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props)" }, "t-search/shape": { "type": "String", @@ -2759,18 +3035,6 @@ "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)" @@ -2783,6 +3047,38 @@ "type": "Object", "description": "透传 Tag 标签组件全部属性\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props)" }, + "t-side-bar/value": { + "type": "String|Number", + "description": "选项值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar?tab=api#sidebar-props)" + }, + "t-side-bar/change": { + "type": "event", + "description": "选项值发生变化时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar?tab=api#sidebar-events)" + }, + "t-side-bar/click": { + "type": "event", + "description": "点击选项时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar?tab=api#sidebar-events)" + }, + "t-side-bar-item/badge-props": { + "type": "Object", + "description": "透传至 Badge 组件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props)" + }, + "t-side-bar-item/disabled": { + "type": "Boolean", + "description": "是否禁用\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props)" + }, + "t-side-bar-item/icon": { + "type": "TNode", + "description": "图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props)" + }, + "t-side-bar-item/label": { + "type": "String", + "description": "展示的标签\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props)" + }, + "t-side-bar-item/value": { + "type": "String|Number", + "description": "当前选项的值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props)" + }, "t-skeleton/animation": { "type": "String", "options": [ @@ -2800,6 +3096,10 @@ "type": "Boolean", "description": "是否为加载状态,如果是则显示骨架图,如果不是则显示加载完成的内容\n\ndefault: true\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props)" }, + "t-skeleton/row-col": { + "type": "Array", + "description": "高级设置,用于自定义行列数量、宽度高度、间距等。【示例一】,`[1, 1, 2]` 表示输出三行骨架图,第一行一列,第二行一列,第三行两列。【示例二】,`[1, 1, { width: '100px' }]` 表示自定义第三行的宽度为 `100px`。【示例三】,`[1, 2, [{ width, height }, { width, height, marginLeft }]]` 表示第三行有两列,且自定义宽度、高度、尺寸(圆形或方形使用)、间距、内容等\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props)" + }, "t-skeleton/theme": { "type": "String", "options": [ @@ -2812,7 +3112,7 @@ }, "t-slider/disabled": { "type": "Boolean", - "description": "是否禁用组件\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" + "description": "是否禁用组件\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/slider?tab=api#slider-props)" }, "t-slider/label": { "type": "String|Boolean|TNode", @@ -2918,18 +3218,26 @@ "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/title-right": { + "type": "String|TNode", + "description": "标题右侧数据 仅支持 layout = 'vertical' 时\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)" + "description": "禁用全部操作\n\ndefault: undefined\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/integer": { + "type": "Boolean", + "description": "是否整型\n\ndefault: true\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)" @@ -2972,6 +3280,10 @@ "type": "event", "description": "数值发生变更时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events)" }, + "t-stepper/focus": { + "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)" @@ -2980,6 +3292,16 @@ "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/current-status": { + "type": "String", + "options": [ + "default", + "process", + "finish", + "error" + ], + "description": "用于控制 current 指向的步骤条的状态\n\ndefault: process\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" + }, "t-steps/layout": { "type": "String", "options": [ @@ -2988,13 +3310,9 @@ ], "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)" + "description": "只读状态\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props)" }, "t-steps/separator": { "type": "String", @@ -3026,8 +3344,8 @@ "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)" + "type": "Object", + "description": "指定容器对应的NodesRef节点为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props)" }, "t-sticky/disabled": { "type": "Boolean", @@ -3045,42 +3363,18 @@ "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)" + "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)" @@ -3095,7 +3389,7 @@ }, "t-swipe-cell/change": { "type": "event", - "description": "菜单展开或者收回后将菜单的状态传递给父组件,值为数组时表示分别控制左右滑动的展开和收起状态。\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-events)" + "description": "菜单展开或者收回后将菜单的状态传递给父组件,值为数组时表示分别控制左右滑动的展开和收起状态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-events)" }, "t-swipe-cell/click": { "type": "event", @@ -3129,8 +3423,8 @@ "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)" + "type": "String|Number", + "description": "轮播的高度\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" }, "t-swiper/interval": { "type": "Number", @@ -3146,19 +3440,11 @@ }, "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)" + "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)" + "description": "【开发中】前边距,可用于露出前一项的一小部分。默认单位 `px`\n\ndefault: 0\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props)" }, "t-swiper/change": { "type": "event", @@ -3184,6 +3470,18 @@ "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/pagination-position": { + "type": "String", + "options": [ + "top-left", + "top", + "top-right", + "bottom-left", + "bottom", + "bottom-right" + ], + "description": "页码信息展示位置\n\ndefault: bottom\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props)" + }, "t-swiper-nav/placement": { "type": "String", "options": [ @@ -3204,25 +3502,21 @@ "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)" + "description": "是否禁用组件。优先级:Switch.disabled > Form.disabled\n\ndefault: undefined\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)" + "type": "Array|TNode", + "description": "开关内容,[开启时内容,关闭时内容]。示例:['开', '关'] 或 (value) => value ? '开' : '关'\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props)" }, "t-switch/loading": { "type": "Boolean", @@ -3263,7 +3557,7 @@ "normal", "round" ], - "description": "标签栏的形状\n\ndefault: 'normal'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" + "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", @@ -3275,11 +3569,11 @@ "normal", "tag" ], - "description": "选项风格\n\ndefault: 'normal'\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" + "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)" + "description": "当前选中标签的索引\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-bar?tab=api#tabbar-props)" }, "t-tab-bar/change": { "type": "event", @@ -3303,7 +3597,7 @@ }, "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)" + "description": "透传至 Badge 组件\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" }, "t-tab-panel/destroy-on-hide": { "type": "Boolean", @@ -3317,6 +3611,10 @@ "type": "String|TNode", "description": "选项卡名称,可自定义选项卡导航内容\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props)" }, + "t-tab-panel/lazy": { + "type": "Boolean", + "description": "Enable tab lazy loading\n\n是否启用选项卡懒加载\n\ndefault: false\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)" @@ -3327,7 +3625,16 @@ }, "t-tabs/animation": { "type": "Object", - "description": "动画效果设置。其中 duration 表示动画时长。(单位:秒)\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + "description": "动画效果设置。其中 duration 表示动画时长\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" + }, + "t-tabs/bottom-line-mode": { + "type": "String", + "options": [ + "fixed", + "auto", + "full" + ], + "description": "激活下划线的模式\n\ndefault: fixed\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props)" }, "t-tabs/list": { "type": "Array", @@ -3467,8 +3774,8 @@ "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)" + "type": "Boolean|Object", + "description": "高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" }, "t-textarea/bordered": { "type": "Boolean", @@ -3476,22 +3783,30 @@ }, "t-textarea/disabled": { "type": "Boolean", - "description": "是否禁用文本框\n\ndefault: false\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" + "description": "是否禁用文本框\n\ndefault: undefined\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)" + "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/layout": { + "type": "String", + "options": [ + "vertical", + "horizontal" + ], + "description": "标题输入框布局方式\n\ndefault: horizontal\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", + "type": "String|Number", "description": "用户最多可以输入的字符个数\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" }, "t-textarea/name": { @@ -3502,6 +3817,10 @@ "type": "String", "description": "占位符\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props)" }, + "t-textarea/readonly": { + "type": "Boolean", + "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)" @@ -3518,75 +3837,6 @@ "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": [ @@ -3600,7 +3850,7 @@ "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", + "type": "TNode", "description": "自定义图标\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" }, "t-toast/message": { @@ -3609,7 +3859,7 @@ }, "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)" + "description": "遮罩层属性,透传至 Overlay\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props)" }, "t-toast/placement": { "type": "String", @@ -3645,62 +3895,29 @@ "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)" + "description": "alias filed name in data\n\n用来定义 `value / label / disabled / 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)" + "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)" + "type": "String|Number|Array", + "description": "选中值\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)" + "description": "点击任何节点均会触发;level 代表当前点击的层级,0 代表最左侧,依次递进\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-events)" }, "t-upload/accept": { "type": "String", @@ -3710,6 +3927,10 @@ "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/add-content": { + "type": "String|TNode", + "description": "添加按钮内容。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效\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)" @@ -3722,17 +3943,17 @@ "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/capture": { + "type": "String", + "description": "图片选取模式,可选值为 camera (直接调起摄像头)\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)" + "description": "make upload to be disabled\n\n是否禁用组件\n\ndefault: undefined\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" }, "t-upload/files": { "type": "Array", @@ -3744,7 +3965,7 @@ }, "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)" + "description": "redefine request data\n\n用于新增或修改文件上传请求 参数。`action` 存在时有效。一个请求上传一个文件时,默认请求字段有 `file`。
一个请求上传多个文件时,默认字段有 `file[0]/file[1]/file[2]/.../length`,其中 `length` 表示本次上传的文件数量。
⚠️非常注意,此处的 `file[0]/file[1]` 仅仅是一个字段名,并非表示 `file` 是一个数组,接口获取字段时注意区分。
可以使用 `name` 定义 `file` 字段的别名。
也可以使用 `formatRequest` 自定义任意字段,如添加一个字段 `fileList` ,存储文件数组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" }, "t-upload/format-response": { "type": "Function", @@ -3768,12 +3989,12 @@ "POST", "GET", "PUT", - "OPTION", + "OPTIONS", "PATCH", "post", "get", "put", - "option", + "options", "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)" @@ -3782,6 +4003,10 @@ "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/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/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)" @@ -3792,7 +4017,11 @@ }, "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)" + "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/value": { + "type": "Array", + "description": "file list\n\n已上传文件列表,同 `files`。TS 类型:`UploadFile`\n\ndefault: []\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props)" }, "t-upload/with-credentials": { "type": "Boolean", @@ -3802,13 +4031,13 @@ "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": { + "t-upload/click-upload": { "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)" + "description": "点击上传区域时触发\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events)" }, - "t-upload/preview": { + "t-upload/fail": { "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)" + "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/progress": { "type": "event", @@ -3829,69 +4058,5 @@ "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 index 2f3be96a8..dff7259f3 100644 --- a/helper/tags.json +++ b/helper/tags.json @@ -11,8 +11,6 @@ "visible", "cancel", "close", - "close", - "selected", "selected" ], "description": "ActionSheet\n\n动作面板\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/action-sheet)" @@ -36,17 +34,21 @@ "cascading", "collapse-avatar", "max", - "size" + "shape", + "size", + "collapsed-item-click" ], "description": "AvatarGroup\n\n头像组\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/avatar-group)" }, "t-back-top": { "attributes": [ + "container", "fixed", "icon", "target", "text", "theme", + "visibility-height", "to-top" ], "description": "BackTop\n\n回到顶部\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/back-top)" @@ -65,6 +67,54 @@ ], "description": "Badge\n\n徽标数\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/badge)" }, + "t-base-table": { + "attributes": [ + "bordered", + "cell-empty-content", + "columns", + "data", + "empty", + "fixed-rows", + "height", + "loading", + "loading-props", + "max-height", + "row-key", + "show-header", + "stripe", + "table-content-width", + "table-layout", + "vertical-align", + "cell-click", + "row-click", + "scroll" + ], + "description": "BaseTable\n\n基础表格\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table)" + }, + "t-table": { + "attributes": [ + "bordered", + "cell-empty-content", + "columns", + "data", + "empty", + "fixed-rows", + "height", + "loading", + "loading-props", + "max-height", + "row-key", + "show-header", + "stripe", + "table-content-width", + "table-layout", + "vertical-align", + "cell-click", + "row-click", + "scroll" + ], + "description": "BaseTable\n\n基础表格\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/base-table)" + }, "t-button": { "attributes": [ "block", @@ -86,12 +136,13 @@ }, "t-calendar": { "attributes": [ - "auto-close", "confirm-btn", + "default-visible", "first-day-of-week", "format", "max-date", "min-date", + "switch-mode", "title", "type", "use-popup", @@ -106,9 +157,11 @@ }, "t-cascader": { "attributes": [ + "check-strictly", "close-btn", "keys", "options", + "placeholder", "sub-titles", "theme", "title", @@ -157,14 +210,14 @@ "size", "variant", "change", - "click" + "click", + "close" ], "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", @@ -186,11 +239,12 @@ }, "t-checkbox-group": { "attributes": [ - "borderless", "disabled", + "keys", "max", "name", "options", + "readonly", "value", "change" ], @@ -223,6 +277,7 @@ "disabled", "expand-icon", "header", + "header-left-icon", "header-right-content", "placement", "value" @@ -231,22 +286,17 @@ }, "t-color-picker": { "attributes": [ - "clearable" + "auto-close", + "clearable", + "footer", + "header", + "popup-props", + "use-popup", + "visible", + "close" ], "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", @@ -262,31 +312,23 @@ ], "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": [ + "auto-close", "cancel-btn", "confirm-btn", "end", - "footer", + "filter", "format", - "header", "mode", "render-label", "show-week", "start", - "steps", "title", + "use-popup", "value", "cancel", "change", - "close", "confirm", "pick" ], @@ -297,6 +339,7 @@ "actions", "button-layout", "cancel-btn", + "close-btn", "close-on-overlay-click", "confirm-btn", "content", @@ -310,6 +353,7 @@ "z-index", "cancel", "close", + "closed", "confirm", "overlay-click" ], @@ -346,12 +390,13 @@ "t-dropdown-item": { "attributes": [ "disabled", + "footer", "keys", "label", "multiple", "options", "options-columns", - "options-layout", + "placement", "value", "change", "confirm", @@ -362,6 +407,7 @@ "t-dropdown-menu": { "attributes": [ "close-on-click-overlay", + "direction", "duration", "show-overlay", "z-index" @@ -372,6 +418,7 @@ "attributes": [ "action", "description", + "icon", "image" ], "description": "Empty\n\n空状态\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/empty)" @@ -397,20 +444,18 @@ "t-form": { "attributes": [ "colon", + "content-align", "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", @@ -420,6 +465,8 @@ }, "t-form-item": { "attributes": [ + "arrow", + "content-align", "for", "help", "label", @@ -428,11 +475,7 @@ "name", "required-mark", "rules", - "show-error-message", - "status", - "status-icon", - "success-border", - "tips" + "show-error-message" ], "description": "FormItem\n\n表单元素\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/form-item)" }, @@ -456,6 +499,29 @@ ], "description": "GridItem\n\n宫格子项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/grid-item)" }, + "t-guide": { + "attributes": [ + "back-button-props", + "counter", + "current", + "finish-button-props", + "hide-counter", + "hide-skip", + "highlight-padding", + "mode", + "next-button-props", + "show-overlay", + "skip-button-props", + "steps", + "z-index", + "back", + "change", + "finish", + "next-step-click", + "skip" + ], + "description": "Guide\n\n引导\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/guide)" + }, "t-icon-svg": { "attributes": [ "load-default-icons", @@ -515,7 +581,6 @@ "t-indexes": { "attributes": [ "index-list", - "list", "sticky", "sticky-offset", "change", @@ -535,11 +600,14 @@ "allow-input-over-max", "autocomplete", "autofocus", + "borderless", + "clear-trigger", "clearable", "disabled", - "error-message", + "enterkeyhint", "format", "label", + "layout", "maxcharacter", "maxlength", "name", @@ -547,6 +615,7 @@ "prefix-icon", "readonly", "size", + "spell-check", "status", "suffix", "suffix-icon", @@ -597,16 +666,17 @@ }, "t-loading": { "attributes": [ + "attach", "content", "default", "delay", "duration", + "fullscreen", "indicator", "inherit-color", "layout", "loading", "pause", - "progress", "reverse", "size", "text", @@ -627,21 +697,16 @@ "theme", "visible", "z-index", - "change", - "close", "close-btn-click", - "closed", "duration-end", - "link-click", - "open", - "opened" + "link-click" ], "description": "Message\n\n全局提醒\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/message)" }, "t-navbar": { "attributes": [ "animation", - "background", + "capsule", "fixed", "left", "left-arrow", @@ -658,49 +723,38 @@ "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": [ + "background-color", + "custom-style", "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", + "option", "render-label", "title", "value", - "visible", "cancel", "change", "confirm", @@ -717,9 +771,7 @@ }, "t-popconfirm": { "attributes": [ - "default", - "destroy-on-close", - "trigger-element" + "default" ], "description": "Popconfirm\n\n气泡确认框\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/popconfirm)" }, @@ -742,6 +794,7 @@ "attach", "close-btn", "close-on-overlay-click", + "destroy-on-close", "overlay-props", "placement", "prevent-scroll-through", @@ -779,13 +832,13 @@ "value", "change", "refresh", + "scrolltolower", "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", @@ -800,6 +853,7 @@ "max-label-row", "name", "placement", + "readonly", "value", "change" ], @@ -807,7 +861,6 @@ }, "t-radio-button": { "attributes": [ - "align", "allow-uncheck", "block", "borderless", @@ -822,6 +875,7 @@ "max-label-row", "name", "placement", + "readonly", "value", "change" ], @@ -832,10 +886,12 @@ "allow-uncheck", "borderless", "disabled", + "icon", "keys", "name", "options", "placement", + "readonly", "value", "change" ], @@ -877,17 +933,16 @@ "t-rate": { "attributes": [ "allow-half", - "clearable", "color", "count", "disabled", "gap", "icon", + "placement", "show-text", "size", "texts", "value", - "variant", "change" ], "description": "Rate\n\n评分\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/rate)" @@ -931,14 +986,6 @@ ], "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", @@ -947,11 +994,30 @@ ], "description": "Select\n\n选择器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/select)" }, + "t-side-bar": { + "attributes": [ + "value", + "change", + "click" + ], + "description": "SideBar\n\n侧边导航\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar)" + }, + "t-side-bar-item": { + "attributes": [ + "badge-props", + "disabled", + "icon", + "label", + "value" + ], + "description": "SideBarItem\n\n侧边导航项\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/side-bar-item)" + }, "t-skeleton": { "attributes": [ "animation", "delay", "loading", + "row-col", "theme" ], "description": "Skeleton\n\n骨架屏\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/skeleton)" @@ -984,12 +1050,17 @@ ], "description": "Space\n\n间距\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/space)" }, + "t-statistic": { + "attributes": [], + "description": "Statistic\n\n统计数值\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/statistic)" + }, "t-step-item": { "attributes": [ "content", "icon", "status", - "title" + "title", + "title-right" ], "description": "StepItem\n\n步骤\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/step-item)" }, @@ -998,6 +1069,7 @@ "disable-input", "disabled", "input-width", + "integer", "max", "min", "size", @@ -1006,6 +1078,7 @@ "value", "blur", "change", + "focus", "overlimit" ], "description": "Stepper\n\n步进器\n\n[docs](https://tdesign.tencent.com/mobile-vue/components/stepper)" @@ -1013,8 +1086,8 @@ "t-steps": { "attributes": [ "current", + "current-status", "layout", - "options", "readonly", "separator", "sequence", @@ -1033,19 +1106,11 @@ ], "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", @@ -1067,7 +1132,6 @@ "navigation", "next-margin", "previous-margin", - "type", "change", "click" ], @@ -1078,6 +1142,7 @@ "current", "direction", "min-show-num", + "pagination-position", "placement", "show-controls", "total", @@ -1087,7 +1152,6 @@ }, "t-switch": { "attributes": [ - "colors", "custom-value", "disabled", "icon", @@ -1127,6 +1191,7 @@ "destroy-on-hide", "disabled", "label", + "lazy", "panel", "value" ], @@ -1135,6 +1200,7 @@ "t-tabs": { "attributes": [ "animation", + "bottom-line-mode", "list", "show-bottom-line", "size", @@ -1176,10 +1242,12 @@ "disabled", "indicator", "label", + "layout", "maxcharacter", "maxlength", "name", "placeholder", + "readonly", "value", "blur", "change", @@ -1187,32 +1255,6 @@ ], "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", @@ -1229,24 +1271,12 @@ ], "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" ], @@ -1256,12 +1286,13 @@ "attributes": [ "accept", "action", + "add-content", "allow-upload-duplicate-file", "auto-upload", "before-upload", + "capture", "data", "disabled", - "file-list-display", "files", "format", "format-request", @@ -1271,11 +1302,14 @@ "max", "method", "multiple", + "preview", "request-method", "size-limit", "use-mock-progress", + "value", "with-credentials", "change", + "click-upload", "fail", "preview", "progress", @@ -1285,26 +1319,5 @@ "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 index 1018c0e5d..d6f4e8c74 100644 --- a/helper/web-types.json +++ b/helper/web-types.json @@ -119,16 +119,6 @@ "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": "选择菜单项时触发", @@ -197,12 +187,11 @@ }, { "name": "shape", - "description": "shape\n\n形状", + "description": "shape\n\n形状。优先级高于 AvatarGroup.shape 。Avatar 单独存在时,默认值为 circle。如果父组件 AvatarGroup 存在,默认值便由 AvatarGroup.shape 决定", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar?tab=api#avatar-props", "type": [ "String" ], - "default": "circle", "attribute-value": { "type": "enum" }, @@ -217,12 +206,11 @@ }, { "name": "size", - "description": "size\n\n尺寸,示例值:small/medium/large/24px/38px 等。优先级高于 AvatarGroup.size 。Avatar 单独存在时,默认值为 medium。如果父组件存在 AvatarGroup,默认值便由 AvatarGroup.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": { @@ -287,16 +275,43 @@ "Number" ] }, + { + "name": "shape", + "description": "shape\n\n形状。优先级低于 Avatar.shape", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-props", + "type": [ + "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "circle" + }, + { + "name": "round" + } + ] + }, { "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" + ] } ], + "js": { + "events": [ + { + "name": "collapsed-item-click", + "description": "点击头像折叠元素触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/avatar-group?tab=api#avatargroup-events" + } + ] + }, "slots": [ { "name": "collapseAvatar", @@ -318,6 +333,14 @@ "description": "BackTop\n\n回到顶部", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top", "props": [ + { + "name": "container", + "description": "滚动的容器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", + "type": [ + "Function" + ] + }, { "name": "fixed", "description": "是否绝对定位固定到屏幕右下方", @@ -332,9 +355,10 @@ "description": "图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", "type": [ + "Boolean", "TNode" ], - "default": "'backtop'" + "default": "true" }, { "name": "target", @@ -378,6 +402,15 @@ "name": "half-round-dark" } ] + }, + { + "name": "visibility-height", + "description": "滚动高度达到此参数值才出现", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/back-top?tab=api#backtop-props", + "type": [ + "Number" + ], + "default": "200" } ], "js": { @@ -529,203 +562,178 @@ ] }, { - "name": "t-button", + "name": "t-base-table", "source": { - "symbol": "Button" + "symbol": "BaseTable" }, - "description": "Button\n\n按钮", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button", + "description": "BaseTable\n\n基础表格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table", "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", + "name": "bordered", + "description": "show table bordered\n\n是否显示表格边框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-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", + "name": "cell-empty-content", + "description": "单元格数据为空时呈现的内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-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", + "name": "columns", + "description": "table column configs\n\n列配置,泛型 T 指表格数据类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "Boolean" + "Array" ], - "default": "false" + "default": "[]" }, { - "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", + "name": "data", + "description": "table data\n\n数据源,泛型 T 指表格数据类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "Boolean" + "Array" ], - "default": "false" + "default": "[]" }, { - "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": "empty", + "description": "empty text or empty element\n\n空表格呈现样式,支持全局配置 `GlobalConfigProvider`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ + "String", "TNode" + ], + "default": "''" + }, + { + "name": "fixed-rows", + "description": "【开发中】固定行(冻结行),示例:[M, N],表示冻结表头 M 行和表尾 N 行。M 和 N 值为 0 时,表示不冻结行", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "Array" + ] + }, + { + "name": "height", + "description": "table height\n\n表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String", + "Number" ] }, { "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", + "description": "loading state table\n\n加载中状态。值为 `true` 会显示默认加载中样式,可以通过 Function 和 插槽 自定义加载状态呈现内容和样式。值为 `false` 则会取消加载状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "Boolean" + "Boolean", + "TNode" ], - "default": "false" + "default": "undefined" }, { "name": "loading-props", "description": "透传加载组件全部属性", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-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", + "name": "max-height", + "description": "table max height\n\n表格最大高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "String" - ], - "default": "rectangle", - "attribute-value": { - "type": "enum" - }, - "values": [ - { - "name": "rectangle" - }, - { - "name": "square" - }, - { - "name": "round" - }, - { - "name": "circle" - } + "String", + "Number" ] }, { - "name": "size", - "description": "a button has four size\n\n组件尺寸", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "name": "row-key", + "description": "unique key for each row data\n\n唯一标识一行数据的字段名,来源于 `data` 中的字段。如果是字段嵌套多层,可以设置形如 `item.a.id` 的方法", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ "String" ], - "default": "medium", - "attribute-value": { - "type": "enum" - }, - "values": [ - { - "name": "extra-small" - }, - { - "name": "small" - }, - { - "name": "medium" - }, - { - "name": "large" - } - ] + "default": "'id'" }, { - "name": "suffix", - "description": "右侧内容,可用于定义右侧图标", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "name": "show-header", + "description": "show table header\n\n是否显示表头", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "TNode" - ] + "Boolean" + ], + "default": "true" }, { - "name": "theme", - "description": "button theme\n\n组件风格,依次为品牌色、危险色", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "name": "stripe", + "description": "show stripe style\n\n是否显示斑马纹", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "String" + "Boolean" ], - "default": "default", - "attribute-value": { - "type": "enum" - }, - "values": [ - { - "name": "default" - }, - { - "name": "primary" - }, - { - "name": "danger" - }, - { - "name": "light" - } + "default": "false" + }, + { + "name": "table-content-width", + "description": "表格内容的总宽度,注意不是表格可见宽度。主要应用于 `table-layout: auto` 模式下的固定列显示。`tableContentWidth` 内容宽度的值必须大于表格可见宽度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String" ] }, { - "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", + "name": "table-layout", + "description": "table-layout css properties, [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout). set value to be `fixed` on `resizable=true` please\n\n表格布局方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ "String" ], - "default": "button", + "default": "fixed", "attribute-value": { "type": "enum" }, "values": [ { - "name": "submit" - }, - { - "name": "reset" + "name": "auto" }, { - "name": "button" + "name": "fixed" } ] }, { - "name": "variant", - "description": "button variant\n\n按钮形式,基础、线框、文字", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "name": "vertical-align", + "description": "vertical align\n\n行内容上下方向对齐", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ "String" ], - "default": "base", + "default": "middle", "attribute-value": { "type": "enum" }, "values": [ { - "name": "base" + "name": "top" }, { - "name": "outline" + "name": "middle" }, { - "name": "text" + "name": "bottom" } ] } @@ -733,75 +741,541 @@ "js": { "events": [ { - "name": "click", - "description": "trigger on click\n\n点击时触发", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-events" + "name": "cell-click", + "description": "trigger on cell clicked\n\n单元格点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events" + }, + { + "name": "row-click", + "description": "trigger on row click\n\n行点击时触发,泛型 T 指表格数据类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events" + }, + { + "name": "scroll", + "description": "trigger on table content scroll\n\n表格内容滚动时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-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": "cellEmptyContent", + "description": "单元格数据为空时呈现的内容类型和参数:string | TNode>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-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": "cell-empty-content", + "description": "单元格数据为空时呈现的内容类型和参数:string | TNode>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props" }, { - "name": "suffix", - "description": "右侧内容,可用于定义右侧图标", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props" + "name": "empty", + "description": "empty text or empty element\n\n空表格呈现样式,支持全局配置 `GlobalConfigProvider`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props" + }, + { + "name": "loading", + "description": "loading state table\n\n加载中状态。值为 `true` 会显示默认加载中样式,可以通过 Function 和 插槽 自定义加载状态呈现内容和样式。值为 `false` 则会取消加载状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props" } ] }, { - "name": "t-calendar", + "name": "t-table", "source": { - "symbol": "Calendar" + "symbol": "BaseTable" }, - "description": "Calendar\n\n日历", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar", + "description": "BaseTable\n\n基础表格", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table", "props": [ { - "name": "auto-close", - "description": "自动关闭;在点击关闭按钮、确认按钮、遮罩层时自动关闭,不需要手动设置 visible", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "name": "bordered", + "description": "show table bordered\n\n是否显示表格边框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ "Boolean" ], - "default": "true" + "default": "false" }, { - "name": "confirm-btn", - "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "name": "cell-empty-content", + "description": "单元格数据为空时呈现的内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-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", + "name": "columns", + "description": "table column configs\n\n列配置,泛型 T 指表格数据类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "Number" + "Array" ], - "default": "0" + "default": "[]" }, { - "name": "format", - "description": "用于格式化日期的函数", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "name": "data", + "description": "table data\n\n数据源,泛型 T 指表格数据类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", "type": [ - "Function" - ] - }, + "Array" + ], + "default": "[]" + }, + { + "name": "empty", + "description": "empty text or empty element\n\n空表格呈现样式,支持全局配置 `GlobalConfigProvider`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String", + "TNode" + ], + "default": "''" + }, + { + "name": "fixed-rows", + "description": "【开发中】固定行(冻结行),示例:[M, N],表示冻结表头 M 行和表尾 N 行。M 和 N 值为 0 时,表示不冻结行", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "Array" + ] + }, + { + "name": "height", + "description": "table height\n\n表格高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px。如果不是绝对固定表格高度,建议使用 `maxHeight`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "loading", + "description": "loading state table\n\n加载中状态。值为 `true` 会显示默认加载中样式,可以通过 Function 和 插槽 自定义加载状态呈现内容和样式。值为 `false` 则会取消加载状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "Boolean", + "TNode" + ], + "default": "undefined" + }, + { + "name": "loading-props", + "description": "透传加载组件全部属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "Object" + ] + }, + { + "name": "max-height", + "description": "table max height\n\n表格最大高度,超出后会出现滚动条。示例:100, '30%', '300'。值为数字类型,会自动加上单位 px", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String", + "Number" + ] + }, + { + "name": "row-key", + "description": "unique key for each row data\n\n唯一标识一行数据的字段名,来源于 `data` 中的字段。如果是字段嵌套多层,可以设置形如 `item.a.id` 的方法", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String" + ], + "default": "'id'" + }, + { + "name": "show-header", + "description": "show table header\n\n是否显示表头", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "stripe", + "description": "show stripe style\n\n是否显示斑马纹", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "table-content-width", + "description": "表格内容的总宽度,注意不是表格可见宽度。主要应用于 `table-layout: auto` 模式下的固定列显示。`tableContentWidth` 内容宽度的值必须大于表格可见宽度", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String" + ] + }, + { + "name": "table-layout", + "description": "table-layout css properties, [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout). set value to be `fixed` on `resizable=true` please\n\n表格布局方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String" + ], + "default": "fixed", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "auto" + }, + { + "name": "fixed" + } + ] + }, + { + "name": "vertical-align", + "description": "vertical align\n\n行内容上下方向对齐", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props", + "type": [ + "String" + ], + "default": "middle", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "top" + }, + { + "name": "middle" + }, + { + "name": "bottom" + } + ] + } + ], + "js": { + "events": [ + { + "name": "cell-click", + "description": "trigger on cell clicked\n\n单元格点击时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events" + }, + { + "name": "row-click", + "description": "trigger on row click\n\n行点击时触发,泛型 T 指表格数据类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events" + }, + { + "name": "scroll", + "description": "trigger on table content scroll\n\n表格内容滚动时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-events" + } + ] + }, + "slots": [ + { + "name": "cellEmptyContent", + "description": "单元格数据为空时呈现的内容类型和参数:string | TNode>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props" + }, + { + "name": "cell-empty-content", + "description": "单元格数据为空时呈现的内容类型和参数:string | TNode>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props" + }, + { + "name": "empty", + "description": "empty text or empty element\n\n空表格呈现样式,支持全局配置 `GlobalConfigProvider`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-props" + }, + { + "name": "loading", + "description": "loading state table\n\n加载中状态。值为 `true` 会显示默认加载中样式,可以通过 Function 和 插槽 自定义加载状态呈现内容和样式。值为 `false` 则会取消加载状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/base-table?tab=api#basetable-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禁用状态。优先级:Button.disabled > Form.disabled", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/button?tab=api#button-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, + { + "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": "透传 Loading 组件全部属性", + "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": "variant of button\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": "dashed" + }, + { + "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": "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": "default-visible", + "description": "是否显示日历;`usePopup` 为 true 时有效。非受控属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "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": "最大可选的日期,不传则默认半年后", @@ -820,6 +1294,29 @@ "Date" ] }, + { + "name": "switch-mode", + "description": "【开发中】切换模式。 `none` 表示水平方向平铺展示所有月份; `month` 表示支持按月切换, `year-month` 表示既按年切换,也支持按月切换", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", + "type": [ + "String" + ], + "default": "none", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "none" + }, + { + "name": "month" + }, + { + "name": "year-month" + } + ] + }, { "name": "title", "description": "标题,不传默认为“请选择日期”", @@ -873,7 +1370,7 @@ }, { "name": "visible", - "description": "是否显示日历;`usePopup` 为 true 时有效", + "description": "是否显示日历;`usePopup` 为 true 时有效。支持语法糖 `v-model:visible`", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/calendar?tab=api#calendar-props", "type": [ "Boolean" @@ -908,12 +1405,12 @@ "slots": [ { "name": "confirmBtn", - "description": "确认按钮。值为 null 则不显示确认按钮。值类型为字符串,则表示自定义按钮文本,值类型为 Object 则表示透传 Button 组件属性。类型和参数:string | ButtonProps | TNode | null【import { ButtonProps } from '@Button'】", + "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'】", + "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" }, { @@ -931,6 +1428,15 @@ "description": "Cascader\n\n级联选择", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader", "props": [ + { + "name": "check-strictly", + "description": "父子节点选中状态不再关联,可各自选中或取消", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "Boolean" + ], + "default": "false" + }, { "name": "close-btn", "description": "关闭按钮", @@ -958,6 +1464,16 @@ ], "default": "[]" }, + { + "name": "placeholder", + "description": "未选中时的提示文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props", + "type": [ + "String", + "TNode" + ], + "default": "'选择选项'" + }, { "name": "sub-titles", "description": "每级展示的次标题", @@ -1045,6 +1561,11 @@ "description": "关闭按钮", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props" }, + { + "name": "placeholder", + "description": "未选中时的提示文案", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cascader?tab=api#cascader-props" + }, { "name": "title", "description": "标题", @@ -1237,7 +1758,8 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/cell-group?tab=api#cellgroup-props", "type": [ "Boolean" - ] + ], + "default": "false" }, { "name": "theme", @@ -1416,6 +1938,11 @@ "name": "click", "description": "点击标签时触发", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-events" + }, + { + "name": "close", + "description": "如果关闭按钮存在,点击关闭按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/check-tag?tab=api#checktag-events" } ] }, @@ -1454,15 +1981,6 @@ ], "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 中使用", @@ -1518,7 +2036,7 @@ }, { "name": "icon", - "description": "自定义选中图标和非选中图标。使用 Array 时表示:[选中态图标,非选中态图标]。使用 String 时,值为 circle 表示填充圆形图标、值为 line 表示描边型图标、值为 rectangle 表示填充矩形图标。", + "description": "自定义选中图标和非选中图标。使用 Array 时表示:[选中态图标,非选中态图标]。使用 String 时,值为 circle 表示填充圆形图标、值为 line 表示描边型图标、值为 rectangle 表示填充矩形图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox?tab=api#checkbox-props", "type": [ "String", @@ -1598,7 +2116,7 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "value", @@ -1647,20 +2165,20 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group", "props": [ { - "name": "borderless", - "description": "是否开启无边框模式", + "name": "disabled", + "description": "是否禁用组件。优先级:Form.disabled < CheckboxGroup.disabled < Checkbox.disabled", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { - "name": "disabled", - "description": "是否禁用组件,默认为 false。优先级:CheckboxGroup.disabled < Checkbox.disabled", + "name": "keys", + "description": "用来定义 value / label 在 `options` 中对应的字段别名", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", "type": [ - "Boolean" + "Object" ] }, { @@ -1688,6 +2206,15 @@ "Array" ] }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/checkbox-group?tab=api#checkboxgroup-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, { "name": "value", "description": "选中值", @@ -1897,6 +2424,14 @@ "TNode" ] }, + { + "name": "header-left-icon", + "description": "面板头左侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props", + "type": [ + "TNode" + ] + }, { "name": "header-right-content", "description": "面板头的右侧区域,一般用于呈现面板操作", @@ -1962,6 +2497,16 @@ "description": "面板头内容", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" }, + { + "name": "headerLeftIcon", + "description": "面板头左侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, + { + "name": "header-left-icon", + "description": "面板头左侧图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/collapse-panel?tab=api#collapsepanel-props" + }, { "name": "headerRightContent", "description": "面板头的右侧区域,一般用于呈现面板操作", @@ -1983,119 +2528,86 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker", "props": [ { - "name": "clearable", - "description": "是否可清空", + "name": "auto-close", + "description": "自动关闭。在点击遮罩层时自动关闭,不需要手动设置 visible", "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" - ] + "default": "true" }, { - "name": "author", - "description": "作者", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "name": "clearable", + "description": "是否可清空", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props", "type": [ - "String", - "TNode" - ] + "Boolean" + ], + "default": "false" }, { - "name": "avatar", - "description": "头像", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "name": "footer", + "description": "底部插槽,仅在 `usePopup` 为 `true` 时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props", "type": [ - "String", - "Object", "TNode" ] }, { - "name": "content", - "description": "内容", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "name": "header", + "description": "顶部插槽,仅在 `usePopup` 为 `true` 时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props", "type": [ - "String", "TNode" ] }, { - "name": "datetime", - "description": "时间", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "name": "popup-props", + "description": "popupProps透传", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props", "type": [ - "String", - "TNode" - ] + "Object" + ], + "default": "{}" }, { - "name": "quote", - "description": "引用", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "name": "use-popup", + "description": "是否使用弹出层包裹颜色选择器", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props", "type": [ - "String", - "TNode" - ] + "Boolean" + ], + "default": "false" }, { - "name": "reply", - "description": "回复", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props", + "name": "visible", + "description": "是否显示颜色选择器。`usePopup` 为 true 时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props", "type": [ - "String", - "TNode" - ] + "Boolean" + ], + "default": "false" } ], + "js": { + "events": [ + { + "name": "close", + "description": "关闭按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-events" + } + ] + }, "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": "footer", + "description": "底部插槽,仅在 `usePopup` 为 `true` 时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props" }, { - "name": "reply", - "description": "回复", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/comment?tab=api#comment-props" + "name": "header", + "description": "顶部插槽,仅在 `usePopup` 为 `true` 时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/color-picker?tab=api#colorpicker-props" } ] }, @@ -2151,7 +2663,7 @@ "type": [ "String" ], - "default": "'small'", + "default": "'medium'", "attribute-value": { "type": "enum" }, @@ -2205,7 +2717,8 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/count-down?tab=api#countdown-props", "type": [ "Number" - ] + ], + "default": "0" } ], "js": { @@ -2230,51 +2743,6 @@ } ] }, - { - "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": { @@ -2283,6 +2751,15 @@ "description": "DateTimePicker\n\n日期时间选择器", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker", "props": [ + { + "name": "auto-close", + "description": "自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", + "type": [ + "Boolean" + ], + "default": "false" + }, { "name": "cancel-btn", "description": "取消按钮文字", @@ -2310,34 +2787,22 @@ ] }, { - "name": "footer", - "description": "底部内容", + "name": "filter", + "description": "列选项过滤函数,支持自定义列内容。(type 值可为: year, month, date, hour, minute, second)", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", "type": [ - "Boolean", - "TNode" - ], - "default": "true" + "Function" + ] }, { "name": "format", - "description": "用于格式化 pick、change、confirm 事件返回的值,[详细文档](https://day.js.org/docs/en/display/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 = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒", @@ -2375,20 +2840,22 @@ ] }, { - "name": "steps", - "description": "时间间隔步数,示例:`{ minute: 5 }`", + "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": [ - "Object" - ] + "String" + ], + "default": "'选择时间'" }, { - "name": "title", - "description": "title of picker\n\n标题", + "name": "use-popup", + "description": "是否使用弹出层包裹", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/date-time-picker?tab=api#datetimepicker-props", "type": [ - "String" - ] + "Boolean" + ], + "default": "true" }, { "name": "value", @@ -2412,11 +2879,6 @@ "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": "确认按钮点击时触发", @@ -2429,18 +2891,7 @@ } ] }, - "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" - } - ] + "slots": [] }, { "name": "t-dialog", @@ -2489,6 +2940,15 @@ "TNode" ] }, + { + "name": "close-btn", + "description": "多按钮排列方式。可选项:true/false", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-props", + "type": [ + "Boolean" + ], + "default": "false" + }, { "name": "close-on-overlay-click", "description": "点击蒙层时是否触发关闭事件", @@ -2496,7 +2956,7 @@ "type": [ "Boolean" ], - "default": "undefined" + "default": "false" }, { "name": "confirm-btn", @@ -2600,6 +3060,11 @@ "description": "关闭事件,点击 取消按钮 或 点击蒙层 时触发", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events" }, + { + "name": "closed", + "description": "对话框消失动画效果结束后触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dialog?tab=api#dialog-events" + }, { "name": "confirm", "description": "如果“确认”按钮存在,则点击“确认”按钮时触发", @@ -2766,7 +3231,7 @@ "type": [ "Boolean" ], - "default": "undefined" + "default": "true" }, { "name": "destroy-on-close", @@ -2853,7 +3318,7 @@ "events": [ { "name": "close", - "description": "关闭时触发", + "description": "关闭时触发。", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/drawer?tab=api#drawer-events" }, { @@ -2891,13 +3356,21 @@ "props": [ { "name": "disabled", - "description": "是否禁用", + "description": "是否禁用操作项", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", "type": [ "Boolean" ], "default": "false" }, + { + "name": "footer", + "description": "底部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", + "type": [ + "TNode" + ] + }, { "name": "keys", "description": "用来定义 value / label 在 `options` 中对应的字段别名", @@ -2943,13 +3416,24 @@ "default": "1" }, { - "name": "options-layout", - "description": "选项排列;不再支持 tree 布局,可与 treeSelect 配合使用", + "name": "placement", + "description": "复选框和内容相对位置,仅单选菜单栏有效", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", "type": [ "String" ], - "default": "columns" + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] }, { "name": "value", @@ -2957,7 +3441,8 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props", "type": [ "String", - "Number" + "Number", + "Array" ], "default": "undefined" } @@ -2981,7 +3466,13 @@ } ] }, - "slots": [] + "slots": [ + { + "name": "footer", + "description": "底部", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-item?tab=api#dropdownitem-props" + } + ] }, { "name": "t-dropdown-menu", @@ -3000,6 +3491,26 @@ ], "default": "true" }, + { + "name": "direction", + "description": "菜单展开方向", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/dropdown-menu?tab=api#dropdownmenu-props", + "type": [ + "String" + ], + "default": "down", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "down" + }, + { + "name": "up" + } + ] + }, { "name": "duration", "description": "动画时长", @@ -3041,15 +3552,24 @@ "props": [ { "name": "action", - "description": "操作按钮", + "description": "action block\n\n操作按钮", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props", "type": [ "TNode" ] }, { - "name": "description", - "description": "描述文字", + "name": "description", + "description": "empty component description\n\n描述文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props", + "type": [ + "String", + "TNode" + ] + }, + { + "name": "icon", + "description": "图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props", "type": [ "String", @@ -3058,7 +3578,7 @@ }, { "name": "image", - "description": "图片地址", + "description": "image url, or Image component props, or custom any node you need\n\n图片地址", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props", "type": [ "String", @@ -3069,17 +3589,22 @@ "slots": [ { "name": "action", - "description": "操作按钮", + "description": "action block\n\n操作按钮", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props" }, { "name": "description", - "description": "描述文字", + "description": "empty component description\n\n描述文字", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props" + }, + { + "name": "icon", + "description": "图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props" }, { "name": "image", - "description": "图片地址", + "description": "image url, or Image component props, or custom any node you need\n\n图片地址", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/empty?tab=api#empty-props" } ] @@ -3197,6 +3722,26 @@ ], "default": "false" }, + { + "name": "content-align", + "description": "表单内容对齐方式:左对齐、右对齐", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form?tab=api#form-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, { "name": "data", "description": "表单数据", @@ -3223,14 +3768,6 @@ "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": "表单字段标签对齐方式:左对齐、右对齐、顶部对齐", @@ -3256,33 +3793,13 @@ }, { "name": "label-width", - "description": "可以整体设置label标签宽度,默认为100px", + "description": "可以整体设置label标签宽度,默认为81px", "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" - } - ] + "default": "'81px'" }, { "name": "prevent-submit-default", @@ -3361,16 +3878,6 @@ ], "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` 提交事件", @@ -3400,18 +3907,7 @@ } ] }, - "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" - } - ] + "slots": [] }, { "name": "t-form-item", @@ -3421,6 +3917,35 @@ "description": "FormItem\n\n表单元素", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item", "props": [ + { + "name": "arrow", + "description": "是否显示右侧箭头", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "content-align", + "description": "表单内容对齐方式:左对齐、右对齐", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/form-item?tab=api#formitem-props", + "type": [ + "String" + ], + "default": "left", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "left" + }, + { + "name": "right" + } + ] + }, { "name": "for", "description": "label 原生属性", @@ -3513,42 +4038,6 @@ "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": [ @@ -3561,21 +4050,6 @@ "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" } ] }, @@ -3724,19 +4198,186 @@ ], "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": "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-guide", + "source": { + "symbol": "Guide" + }, + "description": "Guide\n\n引导", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide", + "props": [ + { + "name": "back-button-props", + "description": "透传 返回 的全部属性,示例:`{ content: '返回', theme: 'default' }`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Object" + ] + }, + { + "name": "counter", + "description": "用于自定义渲染计数部分", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "TNode" + ] + }, + { + "name": "current", + "description": "当前步骤,即整个引导的进度。-1 则不展示,用于需要中断展示的场景", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Number" + ] + }, + { + "name": "finish-button-props", + "description": "透传 完成 的全部属性,示例:`{ content: '完成', theme: 'primary' }`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Object" + ] + }, + { + "name": "hide-counter", + "description": "是否隐藏计数", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "hide-skip", + "description": "是否隐藏跳过按钮", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "highlight-padding", + "description": "高亮框的内边距", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Number" + ], + "default": "8" + }, + { + "name": "mode", + "description": "引导框的类型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "String" + ], + "default": "popover", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "popover" + }, + { + "name": "dialog" + } + ] + }, + { + "name": "next-button-props", + "description": "透传 下一步按钮 的全部属性,示例:{ content: '下一步', theme: 'primary' }", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Object" + ] + }, + { + "name": "show-overlay", + "description": "是否出现遮罩层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Boolean" + ], + "default": "true" + }, + { + "name": "skip-button-props", + "description": "透传 跳过按钮 的全部属性,{ content: '跳过', theme: 'default' }", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Object" + ] + }, + { + "name": "steps", + "description": "用于定义每个步骤的内容,包括高亮的节点、相对位置和具体的文案内容等", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Array" + ] + }, + { + "name": "z-index", + "description": "提示框的层级", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props", + "type": [ + "Number" + ], + "default": "999999" + } + ], + "js": { + "events": [ + { + "name": "back", + "description": "点击返回按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events" + }, + { + "name": "change", + "description": "当前步骤发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events" + }, + { + "name": "finish", + "description": "点击完成按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events" + }, + { + "name": "next-step-click", + "description": "点击下一步时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events" + }, + { + "name": "skip", + "description": "点击跳过按钮时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-events" + } + ] + }, + "slots": [ + { + "name": "counter", + "description": "用于自定义渲染计数部分类型和参数:TNode<{ current: number; total: number }>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/guide?tab=api#guide-props" } ] }, @@ -3971,7 +4612,6 @@ "type": [ "String" ], - "default": "strict-origin-when-cross-origin", "attribute-value": { "type": "enum" }, @@ -4027,11 +4667,10 @@ }, { "name": "src", - "description": "src attribute of ``. image File can also be loaded\n\n用于显示图片的链接或原始图片文件对象", + "description": "图片链接", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image?tab=api#image-props", "type": [ - "String", - "Object" + "String" ] }, { @@ -4135,7 +4774,7 @@ }, { "name": "visible", - "description": "隐藏/显示预览", + "description": "hide or show image viewer\n\n隐藏/显示预览", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/image-viewer?tab=api#imageviewer-props", "type": [ "Boolean" @@ -4201,15 +4840,6 @@ "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", @@ -4275,7 +4905,7 @@ "props": [ { "name": "align", - "description": "文本内容位置,居左/居中/居右", + "description": "text align type\n\n文本内容位置,居左/居中/居右", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String" @@ -4298,7 +4928,7 @@ }, { "name": "allow-input-over-max", - "description": "超出 `maxlength` 或 `maxcharacter` 之后是否允许继续输入", + "description": "allow to continue input on value length is over `maxlength` or `maxcharacter`\n\n超出 `maxlength` 或 `maxcharacter` 之后是否允许继续输入", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "Boolean" @@ -4307,7 +4937,7 @@ }, { "name": "autocomplete", - "description": "是否开启自动填充功能,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)", + "description": "attribute of input element, [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)\n\n是否开启自动填充功能,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" @@ -4316,16 +4946,45 @@ }, { "name": "autofocus", - "description": "自动聚焦", + "description": "autofocus on first rendered\n\n自动聚焦", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Boolean" + ], + "default": "false" + }, + { + "name": "borderless", + "description": "input without border\n\n是否开启无边框模式", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "Boolean" ], "default": "false" }, + { + "name": "clear-trigger", + "description": "show clear icon, clicked to clear input value\n\n清空图标触发方式,仅在输入框有值时有效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "always", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "always " + }, + { + "name": " focus" + } + ] + }, { "name": "clearable", - "description": "是否可清空", + "description": "show clear icon, clicked to clear input value\n\n是否可清空", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "Boolean" @@ -4334,23 +4993,50 @@ }, { "name": "disabled", - "description": "是否禁用输入框", + "description": "make input to be disabled\n\n是否禁用输入框", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "Boolean" - ] + ], + "default": "undefined" }, { - "name": "error-message", - "description": "错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips)", + "name": "enterkeyhint", + "description": "attribute of input element, [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)\n\n用于控制回车键样式,此 API 仅在部分浏览器支持,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String" + ], + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "enter" + }, + { + "name": "done" + }, + { + "name": "go" + }, + { + "name": "next" + }, + { + "name": "previous" + }, + { + "name": "search" + }, + { + "name": "send" + } ] }, { "name": "format", - "description": "指定输入框展示值的格式", + "description": "input value formatter, `type=number` does not work. if you need to format number, `InputNumber` Component might be better\n\n指定输入框展示值的格式", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "Function" @@ -4358,13 +5044,33 @@ }, { "name": "label", - "description": "左侧文本", + "description": "text on the left of input\n\n左侧文本", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String", "TNode" ] }, + { + "name": "layout", + "description": "标题输入框布局方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "vertical" + }, + { + "name": "horizontal" + } + ] + }, { "name": "maxcharacter", "description": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用", @@ -4375,9 +5081,10 @@ }, { "name": "maxlength", - "description": "用户最多可以输入的文本长度,一个中文等于一个计数长度。值为空,则表示不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用", + "description": "用户最多可以输入的文本长度,一个中文等于一个计数长度。默认为空,不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ + "String", "Number" ] }, @@ -4413,11 +5120,11 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "size", - "description": "已废弃。输入框尺寸", + "description": "输入框尺寸", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String" @@ -4435,14 +5142,23 @@ } ] }, + { + "name": "spell-check", + "description": "attribute of input element, [see here](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/spellcheck)\n\n是否开启拼写检查,HTML5 原生属性,[点击查看详情](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/spellcheck)", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", + "type": [ + "Boolean" + ], + "default": "false" + }, { "name": "status", - "description": "输入框状态。默认情况会由组件内部根据实际情况呈现,如果文本过长引起的状态变化", + "description": "输入框状态", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String" ], - "default": "undefined", + "default": "default", "attribute-value": { "type": "enum" }, @@ -4463,7 +5179,7 @@ }, { "name": "suffix", - "description": "后置图标前的后置内容", + "description": "suffix content before suffixIcon\n\n后置图标前的后置内容", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String", @@ -4472,7 +5188,7 @@ }, { "name": "suffix-icon", - "description": "组件后置图标", + "description": "suffix icon of input\n\n组件后置图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "TNode" @@ -4480,7 +5196,7 @@ }, { "name": "tips", - "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "description": "tips on the bottom of input, different `status` can make tips to be different color\n\n输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String", @@ -4489,7 +5205,7 @@ }, { "name": "type", - "description": "输入框类型", + "description": "type attribute of input element. if you are using `type=number`, `InputNumber` Component might be better\n\n输入框类型", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ "String" @@ -4527,12 +5243,12 @@ }, { "name": "value", - "description": "输入框的值", + "description": "input value\n\n输入框的值", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props", "type": [ - "String" - ], - "default": "''" + "String", + "Number" + ] } ], "js": { @@ -4544,7 +5260,7 @@ }, { "name": "change", - "description": "输入框值发生变化时触发。`trigger=initial` 表示传入的数据不符合预期,组件自动处理后触发 change 告知父组件。如:初始值长度超过 `maxlength` 限制", + "description": "trigger on input value changed\n\n输入框值发生变化时触发。`trigger=initial` 表示传入的数据不符合预期,组件自动处理后触发 change 告知父组件。如:初始值长度超过 `maxlength` 限制", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-events" }, { @@ -4559,7 +5275,7 @@ }, { "name": "validate", - "description": "trigger on text length being over max length or max character\n\n字数超出限制时触发", + "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" } ] @@ -4567,7 +5283,7 @@ "slots": [ { "name": "label", - "description": "左侧文本", + "description": "text on the left of input\n\n左侧文本", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" }, { @@ -4582,22 +5298,22 @@ }, { "name": "suffix", - "description": "后置图标前的后置内容", + "description": "suffix content before suffixIcon\n\n后置图标前的后置内容", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" }, { "name": "suffixIcon", - "description": "组件后置图标", + "description": "suffix icon of input\n\n组件后置图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" }, { "name": "suffix-icon", - "description": "组件后置图标", + "description": "suffix icon of input\n\n组件后置图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" }, { "name": "tips", - "description": "输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", + "description": "tips on the bottom of input, different `status` can make tips to be different color\n\n输入框下方提示文本,会根据不同的 `status` 呈现不同的样式", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/input?tab=api#input-props" } ] @@ -4670,11 +5386,12 @@ }, { "name": "disabled", - "description": "make link to be disabled\n\n禁用链接", + "description": "make link to be disabled\n\n禁用链接。优先级:Link.disabled > Form.disabled", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/link?tab=api#link-props", "type": [ "Boolean" - ] + ], + "default": "undefined" }, { "name": "hover", @@ -4864,7 +5581,7 @@ }, { "name": "scroll", - "description": "列表滚动时触发,scrollTop 表示顶部滚动距离", + "description": "列表滚动时触发,bottomDistance 表示底部距离;scrollTop 表示顶部滚动距离", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/list?tab=api#list-events" } ] @@ -4900,6 +5617,16 @@ "description": "Loading\n\n加载中", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading", "props": [ + { + "name": "attach", + "description": "挂载元素,默认挂载到组件本身所在的位置。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "String", + "Function" + ], + "default": "''" + }, { "name": "content", "description": "子元素", @@ -4936,6 +5663,15 @@ ], "default": "800" }, + { + "name": "fullscreen", + "description": "是否显示为全屏加载", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", + "type": [ + "Boolean" + ], + "default": "false" + }, { "name": "indicator", "description": "加载指示符,值为 true 显示默认指示符,值为 false 则不显示,也可以自定义指示符", @@ -4993,14 +5729,6 @@ ], "default": "false" }, - { - "name": "progress", - "description": "加载进度", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/loading?tab=api#loading-props", - "type": [ - "Number" - ] - }, { "name": "reverse", "description": "加载动画是否反向", @@ -5124,7 +5852,7 @@ }, { "name": "duration", - "description": "消息内置计时器,计时到达时会触发 duration-end 事件。单位:毫秒。值为 0 则表示没有计时器。", + "description": "消息内置计时器,计时到达时会触发 duration-end 事件。单位:毫秒。值为 0 则表示没有计时器", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", "type": [ "Number" @@ -5143,7 +5871,7 @@ }, { "name": "link", - "description": "链接名称。值为字符串表示链接名称,值为 Object 类型,表示透传至 Link", + "description": "链接名称。值为字符串表示链接名称,值为 `Object` 类型,表示透传至 `Link`", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props", "type": [ "String", @@ -5215,26 +5943,11 @@ ], "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": "计时结束后触发", @@ -5242,17 +5955,7 @@ }, { "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时并且动画结束后触发", + "description": "当`link`链接存在时,点击链接文本时触发", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-events" } ] @@ -5280,7 +5983,7 @@ }, { "name": "link", - "description": "链接名称。值为字符串表示链接名称,值为 Object 类型,表示透传至 Link", + "description": "链接名称。值为字符串表示链接名称,值为 `Object` 类型,表示透传至 `Link`", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/message?tab=api#message-props" } ] @@ -5303,11 +6006,11 @@ "default": "true" }, { - "name": "background", - "description": "background\n\n已废弃。背景", + "name": "capsule", + "description": "左侧胶囊区域", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", "type": [ - "String" + "TNode" ] }, { @@ -5321,16 +6024,15 @@ }, { "name": "left", - "description": "左侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "description": "左侧区域", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", "type": [ - "String", "TNode" ] }, { "name": "left-arrow", - "description": "是否显示左侧箭头", + "description": "是否展示左侧箭头", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", "type": [ "Boolean" @@ -5339,10 +6041,9 @@ }, { "name": "right", - "description": "右侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "description": "右侧区域", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props", "type": [ - "String", "TNode" ] }, @@ -5377,25 +6078,30 @@ "events": [ { "name": "left-click", - "description": "点击左侧区域时触发", + "description": "点击左侧按钮时触发", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events" }, { "name": "right-click", - "description": "点击右侧区域时触发", + "description": "点击右侧图标时触发", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-events" } ] }, "slots": [ + { + "name": "capsule", + "description": "左侧胶囊区域", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props" + }, { "name": "left", - "description": "左侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "description": "左侧区域", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props" }, { "name": "right", - "description": "右侧区域。值为 `string` 表示文本,为其他表示自定义内容", + "description": "右侧区域", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/navbar?tab=api#navbar-props" }, { @@ -5443,15 +6149,6 @@ } ] }, - { - "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 表示延迟多久开始播放", @@ -5473,11 +6170,13 @@ }, { "name": "prefix-icon", - "description": "前缀图标", + "description": "用于自定义公告栏前面的图标,优先级大于 theme 设定的图标。值为 false 则不显示图标,值为 true 显示 theme 设定图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props", "type": [ + "Boolean", "TNode" - ] + ], + "default": "true" }, { "name": "suffix-icon", @@ -5525,11 +6224,6 @@ ], "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": "点击事件", @@ -5543,11 +6237,6 @@ "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": "右侧额外信息", @@ -5555,12 +6244,12 @@ }, { "name": "prefixIcon", - "description": "前缀图标", + "description": "用于自定义公告栏前面的图标,优先级大于 theme 设定的图标。值为 false 则不显示图标,值为 true 显示 theme 设定图标类型和参数:Boolean | TNode", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" }, { "name": "prefix-icon", - "description": "前缀图标", + "description": "用于自定义公告栏前面的图标,优先级大于 theme 设定的图标。值为 false 则不显示图标,值为 true 显示 theme 设定图标类型和参数:Boolean | TNode", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/notice-bar?tab=api#noticebar-props" }, { @@ -5583,6 +6272,22 @@ "description": "Overlay\n\n遮罩层", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay", "props": [ + { + "name": "background-color", + "description": "遮罩层的背景色", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props", + "type": [ + "String" + ] + }, + { + "name": "custom-style", + "description": "遮罩层自定义样式。优先级低于其他属性", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-props", + "type": [ + "String" + ] + }, { "name": "duration", "description": "背景色过渡时间,单位毫秒", @@ -5594,22 +6299,13 @@ }, { "name": "prevent-scroll-through", - "description": "防止滚动穿透,即不允许点击和滚动", + "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": "是否展示", @@ -5617,74 +6313,27 @@ "type": [ "Boolean" ], - "default": "true" + "default": "false" }, { "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" + "Number" ], - "default": "true" + "default": "1000" } ], + "js": { + "events": [ + { + "name": "click", + "description": "遮罩层的点击事件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/overlay?tab=api#overlay-events" + } + ] + }, "slots": [] }, { @@ -5701,8 +6350,7 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", "type": [ "String", - "Boolean", - "Object" + "Boolean" ], "default": "true" }, @@ -5722,27 +6370,24 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", "type": [ "String", - "Boolean", - "Object" + "Boolean" ], "default": "true" }, { "name": "header", - "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容", + "description": "自定义头部内容", "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` 中对应的字段别名", + "name": "option", + "description": "自定义选项内容。参数为 `option: PickerColumnItem, index: number`", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", "type": [ - "Object" + "TNode" ] }, { @@ -5769,15 +6414,6 @@ "type": [ "Array" ] - }, - { - "name": "visible", - "description": "是否显示", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props", - "type": [ - "Boolean" - ], - "default": "false" } ], "js": { @@ -5807,7 +6443,12 @@ "slots": [ { "name": "header", - "description": "头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容", + "description": "自定义头部内容", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props" + }, + { + "name": "option", + "description": "自定义选项内容。参数为 `option: PickerColumnItem, index: number`", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/picker?tab=api#picker-props" } ] @@ -5856,24 +6497,6 @@ "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": [ @@ -5881,16 +6504,6 @@ "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" } ] }, @@ -5990,7 +6603,7 @@ }, { "name": "theme", - "description": "弹出气泡主题。", + "description": "弹出气泡主题", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popover?tab=api#popover-props", "type": [ "String" @@ -6080,7 +6693,7 @@ "props": [ { "name": "attach", - "description": "制定挂载节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body", + "description": "指定挂载节点。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", "type": [ "String", @@ -6106,6 +6719,15 @@ ], "default": "true" }, + { + "name": "destroy-on-close", + "description": "是否在关闭浮层时销毁浮层", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", + "type": [ + "Boolean" + ], + "default": "false" + }, { "name": "overlay-props", "description": "遮罩层的属性,透传至 overlay", @@ -6146,7 +6768,7 @@ }, { "name": "prevent-scroll-through", - "description": "防止滚动穿透", + "description": "是否阻止背景滚动", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/popup?tab=api#popup-props", "type": [ "Boolean" @@ -6419,6 +7041,11 @@ "description": "结束下拉时触发", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events" }, + { + "name": "scrolltolower", + "description": "滚动到页面底部时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/pull-down-refresh?tab=api#pulldownrefresh-events" + }, { "name": "timeout", "description": "刷新超时触发", @@ -6436,26 +7063,6 @@ "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": "是否允许取消选中", @@ -6467,7 +7074,7 @@ }, { "name": "block", - "description": "是否为块级元素\t", + "description": "是否为块级元素", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "Boolean" @@ -6520,7 +7127,7 @@ }, { "name": "disabled", - "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。Radio.disabled 优先级高于 RadioGroup.disabled", + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。优先级:Radio.disabled > RadioGroup.disabled > Form.disabled", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "Boolean" @@ -6529,7 +7136,7 @@ }, { "name": "icon", - "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标、值为 'none' 则表示没有图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "String", @@ -6574,12 +7181,11 @@ }, { "name": "placement", - "description": "复选框和内容相对位置", + "description": "复选框和内容相对位置。优先级高于 RadioGroup.placement。Radio 单独存在时,默认值为 left。如果父组件存在 RadioGroup,默认值便由 RadioGroup.placement 决定", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "String" ], - "default": "left", "attribute-value": { "type": "enum" }, @@ -6592,6 +7198,15 @@ } ] }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, { "name": "value", "description": "单选按钮的值", @@ -6639,26 +7254,6 @@ "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": "是否允许取消选中", @@ -6670,7 +7265,7 @@ }, { "name": "block", - "description": "是否为块级元素\t", + "description": "是否为块级元素", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "Boolean" @@ -6723,7 +7318,7 @@ }, { "name": "disabled", - "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。Radio.disabled 优先级高于 RadioGroup.disabled", + "description": "是否为禁用态。如果存在父组件 RadioGroup,默认值由 RadioGroup.disabled 控制。优先级:Radio.disabled > RadioGroup.disabled > Form.disabled", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "Boolean" @@ -6732,7 +7327,7 @@ }, { "name": "icon", - "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标、值为 'none' 则表示没有图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "String", @@ -6777,12 +7372,11 @@ }, { "name": "placement", - "description": "复选框和内容相对位置", + "description": "复选框和内容相对位置。优先级高于 RadioGroup.placement。Radio 单独存在时,默认值为 left。如果父组件存在 RadioGroup,默认值便由 RadioGroup.placement 决定", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", "type": [ "String" ], - "default": "left", "attribute-value": { "type": "enum" }, @@ -6795,6 +7389,15 @@ } ] }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio?tab=api#radio-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, { "name": "value", "description": "单选按钮的值", @@ -6862,11 +7465,22 @@ }, { "name": "disabled", - "description": "是否禁用全部子单选框。默认为 false。RadioGroup.disabled 优先级低于 Radio.disabled", + "description": "是否禁用全部子单选框。优先级:Radio.disabled > RadioGroup.disabled > Form.disabled", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", "type": [ "Boolean" - ] + ], + "default": "undefined" + }, + { + "name": "icon", + "description": "自定义选中图标和非选中图标。示例:[选中态图标地址,非选中态图标地址]。使用 String 时,值为 circle 表示填充型图标、值为 line 表示描边型图标、值为 dot 表示圆点图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "String", + "Array" + ], + "default": "'circle'" }, { "name": "keys", @@ -6894,7 +7508,7 @@ }, { "name": "placement", - "description": "复选框和内容相对位置", + "description": "复选框和内容相对位置。优先级低于 Radio.placement", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", "type": [ "String" @@ -6912,6 +7526,15 @@ } ] }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, { "name": "value", "description": "选中的值", @@ -6927,7 +7550,7 @@ "events": [ { "name": "change", - "description": "选中值发生变化时触发", + "description": "选中值发生变化时触发, `context.name` 指 RadioGroup 的 name 属性", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/radio-group?tab=api#radiogroup-events" } ] @@ -6965,7 +7588,8 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/range-input?tab=api#rangeinput-props", "type": [ "Boolean" - ] + ], + "default": "undefined" }, { "name": "format", @@ -7018,7 +7642,7 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "separator", @@ -7238,18 +7862,9 @@ ], "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']。", + "description": "评分图标的颜色,样式中默认为 #ED7B2F。一个值表示设置选中高亮的五角星颜色,示例:[选中颜色]。数组则表示分别设置 选中高亮的五角星颜色 和 未选中暗灰的五角星颜色,[选中颜色,未选中颜色]。示例:['#ED7B2F', '#E3E6EB']", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", "type": [ "String", @@ -7272,16 +7887,18 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", "type": [ "Boolean" - ] + ], + "default": "undefined" }, { "name": "gap", "description": "评分图标的间距", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", "type": [ + "String", "Number" ], - "default": "4" + "default": "8" }, { "name": "icon", @@ -7292,6 +7909,29 @@ "TNode" ] }, + { + "name": "placement", + "description": "选择评分弹框的位置,值为空字符表示不显示评分弹框", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props", + "type": [ + "String" + ], + "default": "top", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "top " + }, + { + "name": " bottom " + }, + { + "name": " ''" + } + ] + }, { "name": "show-text", "description": "是否显示对应的辅助文字", @@ -7327,26 +7967,6 @@ "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": { @@ -7361,7 +7981,7 @@ "slots": [ { "name": "icon", - "description": "自定义评分图标,[选中图标,未选中图标]类型和参数:string | string[]", + "description": "自定义评分图标,[选中图标,未选中图标]类型和参数:Array", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/rate?tab=api#rate-props" } ] @@ -7402,7 +8022,7 @@ }, { "name": "theme", - "description": "内置主题。", + "description": "内置主题", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/result?tab=api#result-props", "type": [ "String" @@ -7567,7 +8187,7 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "shape", @@ -7653,32 +8273,58 @@ "description": "左侧图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/search?tab=api#search-props" } - ] + ] + }, + { + "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-segmented-control", + "name": "t-side-bar", "source": { - "symbol": "SegmentedControl" + "symbol": "SideBar" }, - "description": "SegmentedControl\n\n分段器", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/segmented-control", + "description": "SideBar\n\n侧边导航", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar", "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", + "description": "选项值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar?tab=api#sidebar-props", "type": [ "String", - "Number", - "Array" + "Number" ] } ], @@ -7686,47 +8332,76 @@ "events": [ { "name": "change", - "description": "选中值变化时触发", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/segmented-control?tab=api#segmentedcontrol-events" + "description": "选项值发生变化时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar?tab=api#sidebar-events" + }, + { + "name": "click", + "description": "点击选项时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar?tab=api#sidebar-events" } ] }, "slots": [] }, { - "name": "t-select", + "name": "t-side-bar-item", "source": { - "symbol": "Select" + "symbol": "SideBarItem" }, - "description": "Select\n\n选择器", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select", + "description": "SideBarItem\n\n侧边导航项", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar-item", "props": [ { - "name": "select-input-props", - "description": "透传 SelectInput 筛选器输入框组件的全部属性", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props", + "name": "badge-props", + "description": "透传至 Badge 组件", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props", "type": [ "Object" ] }, { - "name": "tag-input-props", - "description": "透传 TagInput 标签输入框组件的全部属性", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props", + "name": "disabled", + "description": "是否禁用", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props", "type": [ - "Object" + "Boolean" + ], + "default": "false" + }, + { + "name": "icon", + "description": "图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props", + "type": [ + "TNode" ] }, { - "name": "tag-props", - "description": "透传 Tag 标签组件全部属性", - "doc-url": "https://tdesign.tencent.com/mobile-vue/components/select?tab=api#select-props", + "name": "label", + "description": "展示的标签", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props", "type": [ - "Object" + "String" + ] + }, + { + "name": "value", + "description": "当前选项的值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props", + "type": [ + "String", + "Number" ] } ], - "slots": [] + "slots": [ + { + "name": "icon", + "description": "图标", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/side-bar-item?tab=api#sidebaritem-props" + } + ] }, { "name": "t-skeleton", @@ -7777,6 +8452,14 @@ ], "default": "true" }, + { + "name": "row-col", + "description": "高级设置,用于自定义行列数量、宽度高度、间距等。【示例一】,`[1, 1, 2]` 表示输出三行骨架图,第一行一列,第二行一列,第三行两列。【示例二】,`[1, 1, { width: '100px' }]` 表示自定义第三行的宽度为 `100px`。【示例三】,`[1, 2, [{ width, height }, { width, height, marginLeft }]]` 表示第三行有两列,且自定义宽度、高度、尺寸(圆形或方形使用)、间距、内容等", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/skeleton?tab=api#skeleton-props", + "type": [ + "Array" + ] + }, { "name": "theme", "description": "骨架图风格,有基础、头像组合等两大类", @@ -7821,7 +8504,7 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "label", @@ -8037,6 +8720,16 @@ } ] }, + { + "name": "t-statistic", + "source": { + "symbol": "Statistic" + }, + "description": "Statistic\n\n统计数值", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/statistic", + "props": [], + "slots": [] + }, { "name": "t-step-item", "source": { @@ -8100,6 +8793,16 @@ "TNode" ], "default": "''" + }, + { + "name": "title-right", + "description": "标题右侧数据 仅支持 layout = 'vertical' 时", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props", + "type": [ + "String", + "TNode" + ], + "default": "''" } ], "slots": [ @@ -8117,6 +8820,16 @@ "name": "title", "description": "标题", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props" + }, + { + "name": "titleRight", + "description": "标题右侧数据 仅支持 layout = 'vertical' 时", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props" + }, + { + "name": "title-right", + "description": "标题右侧数据 仅支持 layout = 'vertical' 时", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/step-item?tab=api#stepitem-props" } ] }, @@ -8144,7 +8857,7 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "input-width", @@ -8154,6 +8867,15 @@ "Number" ] }, + { + "name": "integer", + "description": "是否整型", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-props", + "type": [ + "Boolean" + ], + "default": "true" + }, { "name": "max", "description": "最大值", @@ -8250,6 +8972,11 @@ "description": "数值发生变更时触发", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events" }, + { + "name": "focus", + "description": "输入框聚焦时触发", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/stepper?tab=api#stepper-events" + }, { "name": "overlimit", "description": "数值超出限制时触发", @@ -8277,31 +9004,49 @@ ] }, { - "name": "layout", - "description": "步骤条方向,有两种:横向和纵向", + "name": "current-status", + "description": "用于控制 current 指向的步骤条的状态", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", "type": [ "String" ], - "default": "horizontal", + "default": "process", "attribute-value": { "type": "enum" }, "values": [ { - "name": "horizontal" + "name": "default" }, { - "name": "vertical" + "name": "process" + }, + { + "name": "finish" + }, + { + "name": "error" } ] }, { - "name": "options", - "description": "步骤条数据列表(作用和 StepItem 效果一样)", + "name": "layout", + "description": "步骤条方向,有两种:横向和纵向", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/steps?tab=api#steps-props", "type": [ - "Array" + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "horizontal" + }, + { + "name": "vertical" + } ] }, { @@ -8311,7 +9056,7 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "separator", @@ -8398,13 +9143,11 @@ "props": [ { "name": "container", - "description": "指定滚动的容器。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body", + "description": "指定容器对应的NodesRef节点为组件的外部容器,滚动时组件会始终保持在容器范围内,当组件即将超出容器底部时,会返回原位置", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/sticky?tab=api#sticky-props", "type": [ - "String", - "Function" - ], - "default": "body" + "Object" + ] }, { "name": "disabled", @@ -8446,57 +9189,6 @@ }, "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": { @@ -8516,7 +9208,7 @@ }, { "name": "default", - "description": "子内容,同 content", + "description": "操作项以外的内容,同 content", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props", "type": [ "String", @@ -8531,25 +9223,6 @@ "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`", @@ -8583,7 +9256,7 @@ "events": [ { "name": "change", - "description": "菜单展开或者收回后将菜单的状态传递给父组件,值为数组时表示分别控制左右滑动的展开和收起状态。", + "description": "菜单展开或者收回后将菜单的状态传递给父组件,值为数组时表示分别控制左右滑动的展开和收起状态", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-events" }, { @@ -8601,17 +9274,17 @@ }, { "name": "default", - "description": "子内容,同 content", + "description": "操作项以外的内容,同 content", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props" }, { "name": "left", - "description": "左侧滑动操作项。所有行为同 `right`类型和参数:Array", + "description": "左侧滑动操作项。所有行为同 `right`类型和参数:Array | TNode", "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 }】", + "description": "右侧滑动操作项。有两种定义方式,一种是使用数组,二种是使用插槽。`right.text` 表示操作文本,`right.className` 表示操作项类名,`right.style` 表示操作项样式,`right.onClick` 表示点击操作项后执行的回调函数。示例:`[{ text: '删除', style: 'background-color: red', onClick: () => {} }]`类型和参数:Array | TNode【interface SwipeActionItem {text: string; className?: string; style?: string; sure?: string | TNode; onClick?: () => void; [key: string]: any }】", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swipe-cell?tab=api#swipecell-props" } ] @@ -8690,9 +9363,10 @@ }, { "name": "height", - "description": "当使用垂直方向滚动时的高度", + "description": "轮播的高度", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", "type": [ + "String", "Number" ] }, @@ -8725,7 +9399,7 @@ }, { "name": "next-margin", - "description": "后边距,可用于露出后一项的一小部分。默认单位 `px`", + "description": "【开发中】后边距,可用于露出后一项的一小部分。默认单位 `px`", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper?tab=api#swiper-props", "type": [ "String", @@ -8735,33 +9409,13 @@ }, { "name": "previous-margin", - "description": "前边距,可用于露出前一项的一小部分。默认单位 `px`", + "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": { @@ -8832,6 +9486,38 @@ ], "default": "2" }, + { + "name": "pagination-position", + "description": "页码信息展示位置", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/swiper-nav?tab=api#swipernav-props", + "type": [ + "String" + ], + "default": "bottom", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "top-left" + }, + { + "name": "top" + }, + { + "name": "top-right" + }, + { + "name": "bottom-left" + }, + { + "name": "bottom" + }, + { + "name": "bottom-right" + } + ] + }, { "name": "placement", "description": "导航器位置,位于主体的内侧或是外侧", @@ -8890,14 +9576,6 @@ "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']", @@ -8908,11 +9586,12 @@ }, { "name": "disabled", - "description": "是否禁用组件,默认为 false", + "description": "是否禁用组件。优先级:Switch.disabled > Form.disabled", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", "type": [ "Boolean" - ] + ], + "default": "undefined" }, { "name": "icon", @@ -8925,10 +9604,11 @@ }, { "name": "label", - "description": "开关的标签;[打开时的标签,关闭时的标签]", + "description": "开关内容,[开启时内容,关闭时内容]。示例:['开', '关'] 或 (value) => value ? '开' : '关'", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props", "type": [ - "Array" + "Array", + "TNode" ], "default": "[]" }, @@ -8984,7 +9664,13 @@ } ] }, - "slots": [] + "slots": [ + { + "name": "label", + "description": "开关内容,[开启时内容,关闭时内容]。示例:['开', '关'] 或 (value) => value ? '开' : '关'类型和参数:Array | TNode<{ value: SwitchValue }>", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/switch?tab=api#switch-props" + } + ] }, { "name": "t-tab-bar", @@ -9028,7 +9714,7 @@ "type": [ "String" ], - "default": "'normal'", + "default": "normal", "attribute-value": { "type": "enum" }, @@ -9057,7 +9743,7 @@ "type": [ "String" ], - "default": "'normal'", + "default": "normal", "attribute-value": { "type": "enum" }, @@ -9078,8 +9764,7 @@ "String", "Number", "Array" - ], - "default": "undefined" + ] } ], "js": { @@ -9157,8 +9842,7 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", "type": [ "Object" - ], - "default": "null" + ] }, { "name": "destroy-on-hide", @@ -9187,6 +9871,15 @@ "TNode" ] }, + { + "name": "lazy", + "description": "Enable tab lazy loading\n\n是否启用选项卡懒加载", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tab-panel?tab=api#tabpanel-props", + "type": [ + "Boolean" + ], + "default": "false" + }, { "name": "panel", "description": "用于自定义选项卡面板内容", @@ -9229,12 +9922,35 @@ "props": [ { "name": "animation", - "description": "动画效果设置。其中 duration 表示动画时长。(单位:秒)", + "description": "动画效果设置。其中 duration 表示动画时长", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", "type": [ "Object" ] }, + { + "name": "bottom-line-mode", + "description": "激活下划线的模式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tabs?tab=api#tabs-props", + "type": [ + "String" + ], + "default": "fixed", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "fixed" + }, + { + "name": "auto" + }, + { + "name": "full" + } + ] + }, { "name": "list", "description": "选项卡列表", @@ -9588,10 +10304,11 @@ }, { "name": "autosize", - "description": "是否自动增高,值为 autosize 时,style.height 不生效", + "description": "高度自动撑开。 autosize = true 表示组件高度自动撑开,同时,依旧允许手动拖高度。如果设置了 autosize.maxRows 或者 autosize.minRows 则不允许手动调整高度", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", "type": [ - "Boolean" + "Boolean", + "Object" ], "default": "false" }, @@ -9611,11 +10328,11 @@ "type": [ "Boolean" ], - "default": "false" + "default": "undefined" }, { "name": "indicator", - "description": "显示文本计数器,如 0/140。当 maxlength < 0 && maxcharacter < 0 成立时, 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" @@ -9631,6 +10348,26 @@ "TNode" ] }, + { + "name": "layout", + "description": "标题输入框布局方式", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "String" + ], + "default": "horizontal", + "attribute-value": { + "type": "enum" + }, + "values": [ + { + "name": "vertical" + }, + { + "name": "horizontal" + } + ] + }, { "name": "maxcharacter", "description": "用户最多可以输入的字符个数,一个中文汉字表示两个字符长度", @@ -9644,6 +10381,7 @@ "description": "用户最多可以输入的字符个数", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", "type": [ + "String", "Number" ] }, @@ -9664,6 +10402,15 @@ ], "default": "undefined" }, + { + "name": "readonly", + "description": "只读状态", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props", + "type": [ + "Boolean" + ], + "default": "undefined" + }, { "name": "value", "description": "文本框值", @@ -9683,236 +10430,21 @@ }, { "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" - } - ] - } - ], + "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": "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" + "description": "左侧文本", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/textarea?tab=api#textarea-props" } ] }, @@ -9958,7 +10490,6 @@ "description": "自定义图标", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", "type": [ - "String", "TNode" ] }, @@ -9977,8 +10508,7 @@ "doc-url": "https://tdesign.tencent.com/mobile-vue/components/toast?tab=api#toast-props", "type": [ "Object" - ], - "default": "{}" + ] }, { "name": "placement", @@ -10071,16 +10601,6 @@ } ] }, - { - "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": { @@ -10089,32 +10609,6 @@ "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", @@ -10127,7 +10621,7 @@ }, { "name": "keys", - "description": "用来定义 `value / label / children` 在 `data` 数据中对应的字段别名,示例:`{ value: 'key', label 'name', children: 'list' }`", + "description": "alias filed name in data\n\n用来定义 `value / label / disabled / 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" @@ -10142,15 +10636,6 @@ ], "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": "选项", @@ -10160,62 +10645,13 @@ ], "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`", + "description": "选中值", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-props", "type": [ "String", "Number", - "Object", "Array" ] } @@ -10224,7 +10660,7 @@ "events": [ { "name": "change", - "description": "节点选中状态变化时触发,`context.node` 表示当前变化的选项,`context. trigger` 表示触发变化的来源。泛型 `TreeValueType` 继承自 `TreeSelectValue` ", + "description": "点击任何节点均会触发;level 代表当前点击的层级,0 代表最左侧,依次递进", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/tree-select?tab=api#treeselect-events" } ] @@ -10255,6 +10691,15 @@ "String" ] }, + { + "name": "add-content", + "description": "添加按钮内容。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "String", + "TNode" + ] + }, { "name": "allow-upload-duplicate-file", "description": "allow to upload duplicate name files\n\n是否允许重复上传相同文件名的文件", @@ -10282,28 +10727,29 @@ ] }, { - "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` 完全自定义上传请求的字段", + "name": "capture", + "description": "图片选取模式,可选值为 camera (直接调起摄像头)", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", "type": [ - "Object" + "String" ] }, { - "name": "disabled", - "description": "make upload to be disabled\n\n是否禁用", + "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": [ - "Boolean" + "Object" ] }, { - "name": "file-list-display", - "description": "used to render file list UI\n\n用于完全自定义文件列表界面内容(UI),单文件和多文件均有效", + "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": [ - "TNode" - ] + "Boolean" + ], + "default": "undefined" }, { "name": "files", @@ -10324,7 +10770,7 @@ }, { "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` 自定义任意字段", + "description": "redefine request data\n\n用于新增或修改文件上传请求 参数。`action` 存在时有效。一个请求上传一个文件时,默认请求字段有 `file`。
一个请求上传多个文件时,默认字段有 `file[0]/file[1]/file[2]/.../length`,其中 `length` 表示本次上传的文件数量。
⚠️非常注意,此处的 `file[0]/file[1]` 仅仅是一个字段名,并非表示 `file` 是一个数组,接口获取字段时注意区分。
可以使用 `name` 定义 `file` 字段的别名。
也可以使用 `formatRequest` 自定义任意字段,如添加一个字段 `fileList` ,存储文件数组", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", "type": [ "Function" @@ -10385,7 +10831,7 @@ "name": "PUT" }, { - "name": "OPTION" + "name": "OPTIONS" }, { "name": "PATCH" @@ -10400,7 +10846,7 @@ "name": "put" }, { - "name": "option" + "name": "options" }, { "name": "patch" @@ -10416,6 +10862,15 @@ ], "default": "false" }, + { + "name": "preview", + "description": "是否支持图片预览,文件没有预览", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Boolean" + ], + "default": "true" + }, { "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' }]}`", @@ -10435,13 +10890,22 @@ }, { "name": "use-mock-progress", - "description": "use mock progress, instead of real progress\n\n是否在请求时间超过 300ms 后显示模拟进度。上传进度有模拟进度和真实进度两种。一般大小的文件上传,真实的上传进度只有 0 和 100,不利于交互呈现,因此组件内置模拟上传进度。真实上传进度一般用于大文件上传。", + "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": "value", + "description": "file list\n\n已上传文件列表,同 `files`。TS 类型:`UploadFile`", + "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-props", + "type": [ + "Array" + ], + "default": "[]" + }, { "name": "with-credentials", "description": "uploading request with cookie\n\n上传请求时是否携带 cookie", @@ -10459,6 +10923,11 @@ "description": "trigger on uploaded files change\n\n已上传文件列表发生变化时触发,`trigger` 表示触发本次的来源", "doc-url": "https://tdesign.tencent.com/mobile-vue/components/upload?tab=api#upload-events" }, + { + "name": "click-upload", + "description": "点击上传区域时触发", + "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`", @@ -10498,176 +10967,16 @@ }, "slots": [ { - "name": "fileListDisplay", - "description": "used to render file list UI\n\n用于完全自定义文件列表界面内容(UI),单文件和多文件均有效类型和参数:TNode<{ files: UploadFile[]; dragEvents?: UploadDisplayDragEvents }>", + "name": "addContent", + "description": "添加按钮内容。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效", "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 }>", + "name": "add-content", + "description": "添加按钮内容。值为空,使用默认图标渲染;值为 slot 则表示使用插槽渲染;其他值无效", "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" - } - ] } ] } diff --git a/package.json b/package.json index 85dca43ec..10d19cd36 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,9 @@ "typings", "LICENSE", "README.md", - "CHANGELOG.md" + "CHANGELOG.md", + "helper", + "global.d.ts" ], "sideEffects": [ "dist/*", diff --git a/src/shared/useTest/index.ts b/src/shared/useTest/index.ts index 1128b8d57..ad2f5885a 100644 --- a/src/shared/useTest/index.ts +++ b/src/shared/useTest/index.ts @@ -21,12 +21,3 @@ export function useTestUtils() { return { makeScroll, sleep }; } - -/** - * 测试相关的vitest方法 - */ -export function useVitest(vi: (typeof import('vitest'))['vitest']) { - const getBoundingClientRect = (dom: Element) => vi.spyOn(dom, 'getBoundingClientRect'); - - return { getBoundingClientRect }; -} diff --git a/src/sticky/__test__/index.test.jsx b/src/sticky/__test__/index.test.jsx index 5ed68ac46..121de9156 100644 --- a/src/sticky/__test__/index.test.jsx +++ b/src/sticky/__test__/index.test.jsx @@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils'; import { describe, it, expect, vi } from 'vitest'; import { nextTick } from 'vue'; import Sticky from '../sticky'; -import { useTestUtils, useVitest } from '../../shared'; +import { useTestUtils } from '../../shared'; const _mount = (template, data = () => ({}), methods = {}) => mount( @@ -23,7 +23,7 @@ const TIMEOUT = 250; * 创建sticky测试用容器 */ const stickyRectMock = (wrapper, { stickyMockReturnValue, documentMockReturnValue }) => { - const { getBoundingClientRect } = useVitest(vi); + const getBoundingClientRect = (dom) => vi.spyOn(dom, 'getBoundingClientRect'); const mockStickyRect = getBoundingClientRect(wrapper.find('.t-sticky').element).mockReturnValue( stickyMockReturnValue, ); diff --git a/tsconfig.build.json b/tsconfig.build.json index 3b0a6ea8d..6eb21c88f 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig", - "exclude": ["node_modules", "src/**/demos", "src/_common", "dist", "es", "esm", "lib", "cjs", "site"] + "exclude": ["node_modules", "src/**/demos", "src/_common", "dist", "es", "esm", "lib", "cjs", "site","global.d.ts"] } diff --git a/tsconfig.json b/tsconfig.json index 12241833a..df539529d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,6 +33,6 @@ }, "rules": { "trailing-comma": false }, "include": ["./**/*.ts", "./**/*.tsx", "./**/*.vue"], - "exclude": ["node_modules", "src/_common", "dist", "es", "esm", "lib", "cjs", "site"], + "exclude": ["node_modules", "src/_common", "dist", "es", "esm", "lib", "cjs", "site", "global.d.ts"], "compileOnSave": false }