Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ check-strictly | Boolean | false | \- | N
close-btn | Boolean | true | \- | N
keys | Object | - | Typescript: `CascaderKeysType` `type CascaderKeysType = TreeKeysType`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/cascader/type.ts) | N
options | Array | [] | Typescript: `Array<CascaderOption>` | N
placeholder | String | 选择选项 | \- | N
placeholder | String | - | \- | N
sub-titles | Array | [] | Typescript: `Array<string>` | N
theme | String | step | options: step/tab | N
title | String | - | \- | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ check-strictly | Boolean | false | 父子节点选中状态不再关联,可各
close-btn | Boolean | true | 关闭按钮 | N
keys | Object | - | 用来定义 value / label / children / disabled 在 `options` 中对应的字段别名。TS 类型:`CascaderKeysType` `type CascaderKeysType = TreeKeysType`。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/common/common.ts)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/cascader/type.ts) | N
options | Array | [] | 可选项数据源。TS 类型:`Array<CascaderOption>` | N
placeholder | String | 选择选项 | 未选中时的提示文案 | N
placeholder | String | - | 未选中时的提示文案。组件内置默认值为:'选择选项' | N
sub-titles | Array | [] | 每级展示的次标题。TS 类型:`Array<string>` | N
theme | String | step | 展示风格。可选项:step/tab | N
title | String | - | 标题 | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const props: TdCascaderProps = {
type: Array,
value: [],
},
/** 未选中时的提示文案 */
/** 未选中时的提示文案。组件内置默认值为:'选择选项' */
placeholder: {
type: String,
value: '选择选项',
value: '',
},
/** 每级展示的次标题 */
subTitles: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export interface TdCascaderProps<CascaderOption extends TreeOptionData = TreeOpt
value?: Array<CascaderOption>;
};
/**
* 未选中时的提示文案
* @default 选择选项
* 未选中时的提示文案。组件内置默认值为:'选择选项'
* @default ''
*/
placeholder?: {
type: StringConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
:: BASE_DOC ::

## API


### ConfigProvider Props

name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
global-config | Object | - | global config。Typescript: `GlobalConfigProvider` | N
theme-vars | Object | - | theme Variables | N

### GlobalConfigProvider

name | type | default | description | required
-- | -- | -- | -- | --
action-sheet | Object | - | ActionSheet global configs。Typescript: `ActionSheetConfig` | N
calendar | Object | - | Calendar global configs。Typescript: `CalendarConfig` | N
cascader | Object | - | Cascader global configs。Typescript: `CascaderConfig` | N
class-prefix | String | t | \- | N
date-time-picker | Object | - | DateTimePicker global configs。Typescript: `DateTimePickerConfig` | N
dropdown-menu | Object | - | DropdownMenu global configs。Typescript: `DropdownMenuConfig` | N
guide | Object | - | Guide global configs。Typescript: `GuideConfig` | N
picker | Object | - | Picker global configs。Typescript: `PickerConfig` | N
pull-down-refresh | Object | - | PullDownRefresh global configs。Typescript: `PullDownRefreshConfig` | N
qrcode | Object | - | QRCode global configs。Typescript: `QRCodeConfig` | N
rate | Object | - | Rate global configs。Typescript: `RateConfig` | N
tab-bar | Object | - | TabBar global configs。Typescript: `TabBarConfig` | N
upload | Object | - | Upload global configs。Typescript: `UploadConfig` | N

### ActionSheetConfig

name | type | default | description | required
-- | -- | -- | -- | --
cancel | String | - | cancel text | N

### CalendarConfig

name | type | default | description | required
-- | -- | -- | -- | --
confirm | String | - | confirm text | N
month-title | String | - | \- | N
months | Array | - | Typescript: `string[]` | N
title | String | - | \- | N
weekdays | Array | - | Typescript: `string[]` | N

### CascaderConfig

name | type | default | description | required
-- | -- | -- | -- | --
placeholder | String | - | \- | N
title | String | - | \- | N

### DateTimePickerConfig

name | type | default | description | required
-- | -- | -- | -- | --
cancel | String | - | \- | N
confirm | String | - | \- | N
date-label | String | - | \- | N
format | String | 'YYYY-MM-DD HH:mm:ss' | \- | N
hour-label | String | - | \- | N
minute-label | String | - | \- | N
month-label | String | - | \- | N
second-label | String | - | \- | N
title | String | - | \- | N
year-label | String | - | \- | N

### DropdownMenuConfig

name | type | default | description | required
-- | -- | -- | -- | --
confirm | String | - | confirm text | N
reset | String | - | reset text | N

### GuideConfig

name | type | default | description | required
-- | -- | -- | -- | --
back | String | - | \- | N
finish | String | - | \- | N
next | String | - | \- | N
skip | String | - | \- | N

### ImageConfig

name | type | default | description | required
-- | -- | -- | -- | --
error-text | String | - | loading text, default value is "Error" | N
loading-text | String | - | loading text, default value is "loading" | N
replace-image-src | Function | - | replace all `src` attribute of images。Typescript: `(params: ImageProps) => string`,[Image API Documents](./image?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/config-provider/type.ts) | N

### InputConfig

name | type | default | description | required
-- | -- | -- | -- | --
placeholder | String | - | \- | N

### PickerConfig

name | type | default | description | required
-- | -- | -- | -- | --
cancel | String | - | cancel text | N
confirm | String | - | confirm text | N

### PullDownRefreshConfig

name | type | default | description | required
-- | -- | -- | -- | --
loading-texts | Array | - | Typescript: `string[]` | N

### QRCodeConfig

name | type | default | description | required
-- | -- | -- | -- | --
expired-text | String | - | Language configuration, "QR code expired" description text | N
refresh-text | String | - | Language configuration, "QR code refresh" description text | N
scanned-text | String | - | Language configuration, "QR code scanned" description text | N

### RateConfig

name | type | default | description | required
-- | -- | -- | -- | --
no-value-text | String | - | \- | N
value-text | String | - | \- | N

### TabBarConfig

name | type | default | description | required
-- | -- | -- | -- | --
have-more-news-aria-label | String | - | \- | N
have-news-aria-label | String | - | \- | N
more-news-aria-label | String | - | \- | N
news-aria-label | String | - | \- | N

### UploadConfig

name | type | default | description | required
-- | -- | -- | -- | --
progress | Object | - | Typescript: `UploadConfigProgress` | N

### UploadConfigProgress

name | type | default | description | required
-- | -- | -- | -- | --
fail-text | String | - | \- | N
success-text | String | - | \- | N
uploading-text | String | - | \- | N
waiting-text | String | - | \- | N
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
:: BASE_DOC ::

## API


### ConfigProvider Props

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
style | Object | - | 样式 | N
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
global-config | Object | - | 全局配置。TS 类型:`GlobalConfigProvider` | N
theme-vars | Object | - | 全局配置 | N

### GlobalConfigProvider

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
action-sheet | Object | - | 动作面板全局配置。TS 类型:`ActionSheetConfig` | N
calendar | Object | - | 日历组件全局配置。TS 类型:`CalendarConfig` | N
cascader | Object | - | 级联选择器全局配置。TS 类型:`CascaderConfig` | N
class-prefix | String | t | CSS 类名前缀 | N
date-time-picker | Object | - | 时间选择器全局配置。TS 类型:`DateTimePickerConfig` | N
dropdown-menu | Object | - | 下拉菜单全局配置。TS 类型:`DropdownMenuConfig` | N
guide | Object | - | 引导全局配置。TS 类型:`GuideConfig` | N
picker | Object | - | 选择器全局配置。TS 类型:`PickerConfig` | N
pull-down-refresh | Object | - | 下拉刷新全局配置。TS 类型:`PullDownRefreshConfig` | N
qrcode | Object | - | 二维码全局配置。TS 类型:`QRCodeConfig` | N
rate | Object | - | 评分全局配置。TS 类型:`RateConfig` | N
tab-bar | Object | - | 标签栏全局配置。TS 类型:`TabBarConfig` | N
upload | Object | - | 上传组件全局配置。TS 类型:`UploadConfig` | N

### ActionSheetConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
cancel | String | - | 语言配置,“取消” 按钮描述文本 | N

### CalendarConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
confirm | String | - | 语言配置,“确定” 按钮描述文本 | N
month-title | String | - | 语言配置,日期月面板标题描述文本。示例:“{year} / {month}” | N
months | Array | - | 月文本描述,默认值:['1 月', '2 月', '3 月', '4 月', '5 月', '6 月', '7 月', '8 月', '9 月', '10 月', '11 月', '12 月']。TS 类型:`string[]` | N
title | String | - | 语言配置,组件标题“请选择日期”描述文本 | N
weekdays | Array | - | 星期文本描述,默认值:['日', '一', '二', '三', '四', '五', '六']。TS 类型:`string[]` | N

### CascaderConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
placeholder | String | - | 语言配置,未选中时的提示文案“选择选项”描述文本 | N
title | String | - | 语言配置,组件标题“选择地址”描述文本 | N

### DateTimePickerConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
cancel | String | - | 语言配置,“取消”按钮描述文本 | N
confirm | String | - | 语言配置,“确定”按钮描述文本 | N
date-label | String | - | 语言配置,“日” 描述文本 | N
format | String | 'YYYY-MM-DD HH:mm:ss' | 日期格式化规则 | N
hour-label | String | - | 语言配置,“时” 描述文本 | N
minute-label | String | - | 语言配置,“分” 描述文本 | N
month-label | String | - | 语言配置,“月” 描述文本 | N
second-label | String | - | 语言配置,“秒” 描述文本 | N
title | String | - | 语言配置,组件标题“选择时间”描述文本 | N
year-label | String | - | 语言配置,“年” 描述文本 | N

### DropdownMenuConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
confirm | String | - | 语言配置,“确定” 按钮描述文本 | N
reset | String | - | 语言配置,“重置” 按钮描述文本 | N

### GuideConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
back | String | - | 语言配置, “返回” 描述文本 | N
finish | String | - | 语言配置, “完成” 描述文本 | N
next | String | - | 语言配置, “下一步” 描述文本 | N
skip | String | - | 语言配置, “跳过” 描述文本 | N

### ImageConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
error-text | String | - | 图片加载失败显示的文本,中文默认为“图片无法显示” | N
loading-text | String | - | 图片加载中显示的文本,中文默认为“图片加载中” | N
replace-image-src | Function | - | 统一替换图片 `src` 地址,参数为组件的全部属性,返回值为新的图片地址。TS 类型:`(params: ImageProps) => string`,[Image API Documents](./image?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/config-provider/type.ts) | N

### InputConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
placeholder | String | - | 语言配置,“请输入”占位符描述文本 | N

### PickerConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
cancel | String | - | 语言配置,“取消” 按钮描述文本 | N
confirm | String | - | 语言配置,“确认” 按钮描述文本 | N

### PullDownRefreshConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
loading-texts | Array | - | 提示文本描述,默认值:['下拉刷新', '松手刷新', '正在刷新', '刷新完成']。TS 类型:`string[]` | N

### QRCodeConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
expired-text | String | - | 语言配置,“二维码过期”描述文本 | N
refresh-text | String | - | 语言配置,“点击刷新”描述文本 | N
scanned-text | String | - | 语言配置,“已扫描”描述文本 | N

### RateConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
no-value-text | String | - | 语言配置,“未评分”描述文本 | N
value-text | String | - | 语言配置,评分值描述文本。示例:“{value} 分” | N

### TabBarConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
have-more-news-aria-label | String | - | 语言配置,“有n+条新的消息”描述文本。示例:“有 {value}+ 条消息” | N
have-news-aria-label | String | - | 语言配置,“有n条新的消息”描述文本。示例:“有 {value} 条消息” | N
more-news-aria-label | String | - | 语言配置,“有很多消息”描述文本 | N
news-aria-label | String | - | 语言配置,“有新的消息”描述文本 | N

### UploadConfig

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
progress | Object | - | 语言配置,上传进度相关。示例:{ uploadText: '上传中', waitingText: '待上传', 'failText': '上传失败', successText: '上传成功' }。TS 类型:`UploadConfigProgress` | N

### UploadConfigProgress

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
fail-text | String | - | 语言配置,“上传失败”文本描述 | N
success-text | String | - | 语言配置,“上传成功”文本描述 | N
uploading-text | String | - | 语言配置,“上传中”文本描述 | N
waiting-text | String | - | 语言配置,“待上传”文本描述 | N
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* eslint-disable */

/**
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
* */

import { TdConfigProviderProps } from './type';
const props: TdConfigProviderProps = {
/** 全局配置 */
globalConfig: {
type: Object,
},
/** 全局配置 */
themeVars: {
type: Object,
},
};

export default props;
Loading