diff --git a/components/action-sheet/README.md b/components/action-sheet/README.md index 4483838..09e8156 100644 --- a/components/action-sheet/README.md +++ b/components/action-sheet/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-action-sheet": "tdesign-miniprogram/action-sheet/action-sheet", + "t-action-sheet": "/components/action-sheet/action-sheet", } ``` @@ -37,7 +37,7 @@ isComponent: true ### 支持指令调用 ```javascript -import ActionSheet, { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/index'; +import ActionSheet, { ActionSheetTheme } from '/components/action-sheet/index'; // 指令调用不同于组件引用不需要传入visible const basicListOption: ActionSheetShowOption = { @@ -75,7 +75,7 @@ handler.close(); -- | -- | -- | -- | -- cancel-text | String | 取消 | 设置取消按钮的文本 | N count | Number | 8 | 设置每页展示菜单的数量,仅当 type=grid 时有效 | N -items | Array | - | 必需。菜单项。TS 类型:`Array` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean; icon?: string; }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/action-sheet/type.ts) | Y +items | Array | - | 必需。菜单项。TS 类型:`Array` `interface ActionSheetItem {label: string; color?: string; disabled?: boolean; icon?: string; }`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/action-sheet/type.ts) | Y show-cancel | Boolean | true | 是否显示取消按钮 | N theme | String | list | 展示类型,列表和表格形式展示。可选项:list/grid | N visible | Boolean | null | 必需。显示与隐藏 | Y diff --git a/components/badge/README.md b/components/badge/README.md index e48c861..58bf748 100644 --- a/components/badge/README.md +++ b/components/badge/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-badge": "tdesign-miniprogram/badge/badge" + "t-badge": "/components/badge/badge" } ``` diff --git a/components/button/README.md b/components/button/README.md index d1bca6a..456da4e 100644 --- a/components/button/README.md +++ b/components/button/README.md @@ -12,8 +12,8 @@ isComponent: true ```json "usingComponents": { - "t-button": "tdesign-miniprogram/button/button", - "t-button-group": "tdesign-miniprogram/button-group/button-group" + "t-button": "/components/button/button", + "t-button-group": "/components/button-group/button-group" } ``` diff --git a/components/cell/README.md b/components/cell/README.md index 4bdc541..d9382da 100644 --- a/components/cell/README.md +++ b/components/cell/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-cell": "tdesign-miniprogram/cell/cell" + "t-cell": "/components/cell/cell" } ``` diff --git a/components/checkbox/README.md b/components/checkbox/README.md index 5030168..cc9db0b 100644 --- a/components/checkbox/README.md +++ b/components/checkbox/README.md @@ -12,8 +12,8 @@ isComponent: true ```json "usingComponents": { - "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", - "t-checkbox-group": "tdesign-miniprogram/checkbox-group/checkbox-group" + "t-checkbox": "/components/checkbox/checkbox", + "t-checkbox-group": "/components/checkbox-group/checkbox-group" } ``` @@ -85,12 +85,12 @@ change | `(checked: boolean)` | 值变化时触发 disabled | Boolean | false | 是否禁用组件 | N max | Number | undefined | 支持最多选中的数量 | N name | String | - | 统一设置内部复选框 HTML 属性 | N -options | Array | [] | 以配置形式设置子元素。示例1:`['北京', '上海']` ,示例2: `[{ label: '全选', checkAll: true }, { label: '上海', value: 'shanghai' }]`。checkAll 值为 true 表示当前选项为「全选选项」。TS 类型:`Array` `type CheckboxOption = string | number | CheckboxOptionObj` `interface CheckboxOptionObj { label?: string; value?: string | number; disabled?: boolean; checkAll?: true }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox/type.ts) | N -value | Array | [] | 选中值。TS 类型:`CheckboxGroupValue` `type CheckboxGroupValue = Array`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox/type.ts) | N -default-value | Array | undefined | 选中值。非受控属性。TS 类型:`CheckboxGroupValue` `type CheckboxGroupValue = Array`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox/type.ts) | N +options | Array | [] | 以配置形式设置子元素。示例1:`['北京', '上海']` ,示例2: `[{ label: '全选', checkAll: true }, { label: '上海', value: 'shanghai' }]`。checkAll 值为 true 表示当前选项为「全选选项」。TS 类型:`Array` `type CheckboxOption = string | number | CheckboxOptionObj` `interface CheckboxOptionObj { label?: string; value?: string | number; disabled?: boolean; checkAll?: true }`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/checkbox/type.ts) | N +value | Array | [] | 选中值。TS 类型:`CheckboxGroupValue` `type CheckboxGroupValue = Array`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/checkbox/type.ts) | N +default-value | Array | undefined | 选中值。非受控属性。TS 类型:`CheckboxGroupValue` `type CheckboxGroupValue = Array`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/checkbox/type.ts) | N ### CheckboxGroup Events 名称 | 参数 | 描述 -- | -- | -- -change | `(value: CheckboxGroupValue, context: CheckboxGroupChangeContext)` | 值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/checkbox/type.ts)。
`interface CheckboxGroupChangeContext { e: Event; current: string | number; option: CheckboxOption | TdCheckboxProps; type: 'check' | 'uncheck' }`
+change | `(value: CheckboxGroupValue, context: CheckboxGroupChangeContext)` | 值变化时触发。`context.current` 表示当前变化的数据项,如果是全选则为空;`context.type` 表示引起选中数据变化的是选中或是取消选中。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/checkbox/type.ts)。
`interface CheckboxGroupChangeContext { e: Event; current: string | number; option: CheckboxOption | TdCheckboxProps; type: 'check' | 'uncheck' }`
diff --git a/components/date-time-picker/README.md b/components/date-time-picker/README.md index 6cad303..1ba6825 100644 --- a/components/date-time-picker/README.md +++ b/components/date-time-picker/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-date-time-picker": "tdesign-miniprogram/date-time-picker/date-time-picker" + "t-date-time-picker": "/components/date-time-picker/date-time-picker" } ``` @@ -50,12 +50,12 @@ external-classes | Array | - | 组件类名,分别用于设置组件外层元 footer | Slot | true | 底部内容 | N format | String | '' | 用于格式化日期,[详细文档](https://day.js.org/docs/en/display/format) | N header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容 | N -mode | String / Array | 'date' | year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒。TS 类型:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues | Array ` `type TimeModeValues = 'year' | 'month' | 'date' | 'hour' | 'minute' | 'second'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N +mode | String / Array | 'date' | year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分;当类型为数组时,第一个值控制年月日,第二个值控制时分秒。TS 类型:`DateTimePickerMode` `type DateTimePickerMode = TimeModeValues | Array ` `type TimeModeValues = 'year' | 'month' | 'date' | 'hour' | 'minute' | 'second'`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/date-time-picker/type.ts) | N show-week | Boolean | false | 【开发中】是否在日期旁边显示周几(如周一,周二,周日等) | N start | String / Number | - | 选择器的开始时间 | N title | String | - | 标题 | N -value | String / Number | - | 选中值。TS 类型:`DateValue` `type DateValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N -default-value | String / Number | undefined | 选中值。非受控属性。TS 类型:`DateValue` `type DateValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/date-time-picker/type.ts) | N +value | String / Number | - | 选中值。TS 类型:`DateValue` `type DateValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/date-time-picker/type.ts) | N +default-value | String / Number | undefined | 选中值。非受控属性。TS 类型:`DateValue` `type DateValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/date-time-picker/type.ts) | N visible | Boolean | false | 是否显示 | N ### DateTimePicker Events diff --git a/components/divider/README.md b/components/divider/README.md index 8ca202a..4773659 100644 --- a/components/divider/README.md +++ b/components/divider/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-divider": "tdesign-miniprogram/divider/divider" + "t-divider": "/components/divider/divider" } ``` diff --git a/components/empty/README.md b/components/empty/README.md index 3a5f759..b277594 100644 --- a/components/empty/README.md +++ b/components/empty/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-empty": "tdesign-miniprogram/empty/empty" + "t-empty": "/components/empty/empty" } ``` diff --git a/components/fab/README.md b/components/fab/README.md index 0ba9127..bd74c29 100644 --- a/components/fab/README.md +++ b/components/fab/README.md @@ -13,7 +13,7 @@ isComponent: true ```json "usingComponents": { - "t-fab": "tdesign-miniprogram/fab/fab" + "t-fab": "/components/fab/fab" } ``` diff --git a/components/grid/README.md b/components/grid/README.md index cdfbdb8..293b1fe 100644 --- a/components/grid/README.md +++ b/components/grid/README.md @@ -12,8 +12,8 @@ isComponent: true ```json "usingComponents": { - "t-grid": "tdesign-miniprogram/grid/grid", - "t-grid-item": "tdesign-miniprogram/grid/grid-item" + "t-grid": "/components/grid/grid", + "t-grid-item": "/components/grid/grid-item" } ``` diff --git a/components/icon/README.md b/components/icon/README.md index c991911..466b72d 100644 --- a/components/icon/README.md +++ b/components/icon/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-icon": "tdesign-miniprogram/icon/icon" + "t-icon": "/components/icon/icon" } ``` diff --git a/components/image/README.md b/components/image/README.md index 30c68e9..e29cb81 100644 --- a/components/image/README.md +++ b/components/image/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-image": "tdesign-miniprogram/image/image" + "t-image": "/components/image/image" } ``` diff --git a/components/input/README.md b/components/input/README.md index 4a11133..96af6e8 100644 --- a/components/input/README.md +++ b/components/input/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-input": "tdesign-miniprogram/input/input" + "t-input": "/components/input/input" } ``` ### 主题定制 @@ -81,7 +81,7 @@ clearable | Boolean | false | 是否可清空 | N disabled | Boolean | false | 是否禁用输入框 | N error-message | String | - | 错误提示文本,值为空不显示(废弃属性,如果需要,请更为使用 status 和 tips) | N external-classes | Array | - | 组件类名,用于设置组件外层元素、输入框、占位符、错误信息等元素类名。`['t-class','t-class-icon', 't-class-label', 't-class-input', 't-class-clearable', 't-class-suffix', 't-class-suffix-icon', 't-class-error-msg']` | N -format | Function | - | 【开发中】指定输入框展示值的格式。TS 类型:`InputFormatType` `type InputFormatType = (value: InputValue) => number | string`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/input/type.ts) | N +format | Function | - | 【开发中】指定输入框展示值的格式。TS 类型:`InputFormatType` `type InputFormatType = (value: InputValue) => number | string`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/input/type.ts) | N label | String / Slot | - | 左侧文本 | N maxcharacter | Number | - | 用户最多可以输入的字符个数,一个中文汉字表示两个字符长度。`maxcharacter` 和 `maxlength` 二选一使用 | N maxlength | Number | - | 用户最多可以输入的文本长度,一个中文等于一个计数长度。值小于等于 0 的时候,则表示不限制输入长度。`maxcharacter` 和 `maxlength` 二选一使用 | N @@ -94,8 +94,8 @@ suffix | String / Slot | - | 后置图标前的后置内容 | N suffix-icon | String / Slot | - | 后置文本内容,值为字符串则表示图标名称 | N tips | String / Slot | - | 【开发中】输入框下方提示文本,会根据不同的 `status` 呈现不同的样式 | N type | String | text | 输入框类型。可选项:text/number/idcard/digit/safe-password/password | N -value | String / Number | - | 输入框的值。TS 类型:`InputValue` `type InputValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/input/type.ts) | N -default-value | String / Number | undefined | 输入框的值。非受控属性。TS 类型:`InputValue` `type InputValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/input/type.ts) | N +value | String / Number | - | 输入框的值。TS 类型:`InputValue` `type InputValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/input/type.ts) | N +default-value | String / Number | undefined | 输入框的值。非受控属性。TS 类型:`InputValue` `type InputValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/input/type.ts) | N password | Boolean | false | 是否是密码类型(已废弃,请更为使用 type 指定输入框类型) | N placeholder-style | String | - | 必需。指定 placeholder 的样式 | Y placeholder-class | String | input-placeholder | 指定 placeholder 的样式类 | N diff --git a/components/loading/README.md b/components/loading/README.md index 8cd1459..e3a4749 100644 --- a/components/loading/README.md +++ b/components/loading/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-loading": "tdesign-miniprogram/loading/loading" + "t-loading": "/components/loading/loading" } ``` diff --git a/components/overlay/README.md b/components/overlay/README.md index f453f15..a56e3d1 100644 --- a/components/overlay/README.md +++ b/components/overlay/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-overlay": "tdesign-miniprogram/overlay/overlay" + "t-overlay": "/components/overlay/overlay" } ``` @@ -39,4 +39,4 @@ custom-style| String | '' | 自定义样式 | N 名称 | 参数 | 描述 -- | -- | -- -click | `({ visible: boolean })` | 点击遮罩时触发 \ No newline at end of file +click | `({ visible: boolean })` | 点击遮罩时触发 diff --git a/components/picker/README.md b/components/picker/README.md index 6097849..51ec283 100644 --- a/components/picker/README.md +++ b/components/picker/README.md @@ -12,8 +12,8 @@ isComponent: true ```json "usingComponents": { - "t-picker": "tdesign-miniprogram/picker/picker", - "t-picker-item": "tdesign-miniprogram/picker/picker-item", + "t-picker": "/components/picker/picker", + "t-picker-item": "/components/picker/picker-item", } ``` @@ -30,14 +30,14 @@ isComponent: true -- | -- | -- | -- | -- auto-close | Boolean | true | 自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible | N cancel-btn | String / Boolean / Object | true | 取消按钮文字。TS 类型:`boolean | string | ButtonProps` | N -columns | Array / Function | [] | 【开发中】必需。配置每一列的选项。TS 类型:`Array | ((item: Array) => Array)` `type PickerColumn = PickerColumnItem[]` `interface PickerColumnItem { label: string,value: string}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | Y -confirm-btn | String / Boolean / Object | true | 确定按钮文字。TS 类型:`boolean | string | ButtonProps`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N +columns | Array / Function | [] | 【开发中】必需。配置每一列的选项。TS 类型:`Array | ((item: Array) => Array)` `type PickerColumn = PickerColumnItem[]` `interface PickerColumnItem { label: string,value: string}`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | Y +confirm-btn | String / Boolean / Object | true | 确定按钮文字。TS 类型:`boolean | string | ButtonProps`,[Button API Documents](./button?tab=api)。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N footer | Slot | - | 底部内容 | N header | Boolean / Slot | true | 头部内容。值为 true 显示空白头部,值为 false 不显示任何内容,值类型为 TNode 表示自定义头部内容 | N render-label | String / Function | - | 【开发中】自定义label。TS 类型:`(item: PickerColumnItem) => string` | N title | String | '' | 标题 | N -value | Array | - | 选中值。TS 类型:`Array` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N -default-value | Array | undefined | 选中值。非受控属性。TS 类型:`Array` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N +value | Array | - | 选中值。TS 类型:`Array` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N +default-value | Array | undefined | 选中值。非受控属性。TS 类型:`Array` `type PickerValue = string | number`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N visible | Boolean | false | 是否显示 | N ### Picker Events @@ -54,4 +54,4 @@ pick | `(detail: { value: Array; label: string; index: number; col 名称 | 类型 | 默认值 | 说明 | 必传 -- | -- | -- | -- | -- format | Function | - | 格式化标签。TS 类型:`(option: PickerItemOption) => string` | N -options | Array | [] | 数据源。TS 类型:`Array` `interface PickerItemOption { label: string; value: string | number }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/picker/type.ts) | N \ No newline at end of file +options | Array | [] | 数据源。TS 类型:`Array` `interface PickerItemOption { label: string; value: string | number }`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/picker/type.ts) | N diff --git a/components/popup/README.md b/components/popup/README.md index 535233d..7a87aaa 100644 --- a/components/popup/README.md +++ b/components/popup/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-popup": "tdesign-miniprogram/popup/popup" + "t-popup": "/components/popup/popup" } ``` @@ -44,4 +44,4 @@ duration | Number | 240 | 动画过渡时间 | N 名称 | 参数 | 描述 -- | -- | -- -visible-change | `(visible: boolean, trigger: PopupSource) ` | 当浮层隐藏或显示时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/popup/type.ts)。
`type PopupSource = 'close-btn' | 'overlay'`
+visible-change | `(visible: boolean, trigger: PopupSource) ` | 当浮层隐藏或显示时触发。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/popup/type.ts)。
`type PopupSource = 'close-btn' | 'overlay'`
diff --git a/components/swiper/README.md b/components/swiper/README.md index 1a2d99d..cf0230b 100644 --- a/components/swiper/README.md +++ b/components/swiper/README.md @@ -12,9 +12,9 @@ isComponent: true ```json "usingComponents": { - "t-swiper": "tdesign-miniprogram/swiper/swiper", - "t-swiper-item": "tdesign-miniprogram/swiper/swiper-item", - "t-swiper-nav": "tdesign-miniprogram/swiper/swiper-nav", + "t-swiper": "/components/swiper/swiper", + "t-swiper-item": "/components/swiper/swiper-item", + "t-swiper-nav": "/components/swiper/swiper-nav", } ``` @@ -81,7 +81,7 @@ pagination-position | String | bottom-right | 页码信息展示位置。可选 名称 | 参数 | 描述 -- | -- | -- -change | `(current: number, source: SwiperChangeSource)` | 轮播切换时触发。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/swiper/type.ts)。
`type SwiperChangeSource = 'autoplay' | 'touch' | ''`
+change | `(current: number, source: SwiperChangeSource)` | 轮播切换时触发。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/swiper/type.ts)。
`type SwiperChangeSource = 'autoplay' | 'touch' | ''`
### SwiperNavigation @@ -89,4 +89,4 @@ change | `(current: number, source: SwiperChangeSource)` | 轮播切换时触发 -- | -- | -- | -- | -- min-show-num | Number | - | 小于这个数字不会显示导航器 | N show-slide-btn | Boolean | - | 表示是否显示两侧的滑动控制按钮 | N -type | String | - | 导航器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等。TS 类型:`SwiperNavigationType` `type SwiperNavigationType = 'dots' | 'dots-bar' | 'fraction'`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/swiper/type.ts) | N +type | String | - | 导航器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等。TS 类型:`SwiperNavigationType` `type SwiperNavigationType = 'dots' | 'dots-bar' | 'fraction'`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/swiper/type.ts) | N diff --git a/components/switch/README.md b/components/switch/README.md index d89fd40..5dfa3a0 100644 --- a/components/switch/README.md +++ b/components/switch/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-switch": "tdesign-miniprogram/switch/switch" + "t-switch": "/components/switch/switch" } ``` @@ -53,8 +53,8 @@ disabled | Boolean | false | 是否禁用组件 | N label | String | '' | 开关的标签 | N loading | Boolean | false | 是否处于加载中状态 | N size | String | medium | 开关尺寸。可选项:small/medium/large | N -value | String / Number / Boolean | undefined | 开关值。TS 类型:`SwitchValue` `type SwitchValue = string | number | boolean`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/switch/type.ts) | N -default-value | String / Number / Boolean | undefined | 开关值。非受控属性。TS 类型:`SwitchValue` `type SwitchValue = string | number | boolean`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/switch/type.ts) | N +value | String / Number / Boolean | undefined | 开关值。TS 类型:`SwitchValue` `type SwitchValue = string | number | boolean`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/switch/type.ts) | N +default-value | String / Number / Boolean | undefined | 开关值。非受控属性。TS 类型:`SwitchValue` `type SwitchValue = string | number | boolean`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/switch/type.ts) | N ### Switch Events diff --git a/components/tab-bar/README.en-US.md b/components/tab-bar/README.en-US.md index 2f7eac1..7ca0301 100644 --- a/components/tab-bar/README.en-US.md +++ b/components/tab-bar/README.en-US.md @@ -23,7 +23,7 @@ change | `(value: string | number)` | \- name | type | default | description | required -- | -- | -- | -- | -- -badge-props | Object | - | Typescript:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/tab-bar/type.ts) | N +badge-props | Object | - | Typescript:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[see more ts definition](https://github.com/Tencent//components/tree/develop/src/tab-bar/type.ts) | N icon | String / Slot | - | \- | N -sub-tab-bar | Array | - | Typescript:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/tab-bar/type.ts) | N +sub-tab-bar | Array | - | Typescript:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[see more ts definition](https://github.com/Tencent//components/tree/develop/src/tab-bar/type.ts) | N value | String / Number | - | \- | N diff --git a/components/tab-bar/README.md b/components/tab-bar/README.md index cd28521..0a9cead 100644 --- a/components/tab-bar/README.md +++ b/components/tab-bar/README.md @@ -79,7 +79,7 @@ change | `(value: string | number)` | 选中标签切换时触发 名称 | 类型 | 默认值 | 说明 | 必传 -- | -- | -- | -- | -- -badge-props | Object | - | 图标右上角提示信息。TS 类型:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/tab-bar/type.ts) | N +badge-props | Object | - | 图标右上角提示信息。TS 类型:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/tab-bar/type.ts) | N icon | String / Slot | - | 图标名称 | N -sub-tab-bar | Array | - | 二级菜单。TS 类型:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/tab-bar/type.ts) | N +sub-tab-bar | Array | - | 二级菜单。TS 类型:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[详细类型定义](https://github.com/Tencent//components/tree/develop/src/tab-bar/type.ts) | N value | String / Number | - | 标识符 | N diff --git a/components/textarea/README.md b/components/textarea/README.md index 8ee4f66..aa4d6cd 100644 --- a/components/textarea/README.md +++ b/components/textarea/README.md @@ -12,7 +12,7 @@ isComponent: true ```json "usingComponents": { - "t-textarea": "tdesign-miniprogram/textarea/textarea" + "t-textarea": "/components/textarea/textarea" } ```