diff --git a/db/TDesign.db b/db/TDesign.db index 4075e883c..2e60905e7 100644 Binary files a/db/TDesign.db and b/db/TDesign.db differ diff --git a/packages/products/tdesign-miniprogram/packages/components/cascader/README.en-US.md b/packages/products/tdesign-miniprogram/packages/components/cascader/README.en-US.md index 3e9752116..fe2467d64 100644 --- a/packages/products/tdesign-miniprogram/packages/components/cascader/README.en-US.md +++ b/packages/products/tdesign-miniprogram/packages/components/cascader/README.en-US.md @@ -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` | N -placeholder | String | 选择选项 | \- | N +placeholder | String | - | \- | N sub-titles | Array | [] | Typescript: `Array` | N theme | String | step | options: step/tab | N title | String | - | \- | N diff --git a/packages/products/tdesign-miniprogram/packages/components/cascader/README.md b/packages/products/tdesign-miniprogram/packages/components/cascader/README.md index cd06b651b..f5d460644 100644 --- a/packages/products/tdesign-miniprogram/packages/components/cascader/README.md +++ b/packages/products/tdesign-miniprogram/packages/components/cascader/README.md @@ -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` | N -placeholder | String | 选择选项 | 未选中时的提示文案 | N +placeholder | String | - | 未选中时的提示文案。组件内置默认值为:'选择选项' | N sub-titles | Array | [] | 每级展示的次标题。TS 类型:`Array` | N theme | String | step | 展示风格。可选项:step/tab | N title | String | - | 标题 | N diff --git a/packages/products/tdesign-miniprogram/packages/components/cascader/props.ts b/packages/products/tdesign-miniprogram/packages/components/cascader/props.ts index 5221fd1bf..c4f805994 100644 --- a/packages/products/tdesign-miniprogram/packages/components/cascader/props.ts +++ b/packages/products/tdesign-miniprogram/packages/components/cascader/props.ts @@ -25,10 +25,10 @@ const props: TdCascaderProps = { type: Array, value: [], }, - /** 未选中时的提示文案 */ + /** 未选中时的提示文案。组件内置默认值为:'选择选项' */ placeholder: { type: String, - value: '选择选项', + value: '', }, /** 每级展示的次标题 */ subTitles: { diff --git a/packages/products/tdesign-miniprogram/packages/components/cascader/type.ts b/packages/products/tdesign-miniprogram/packages/components/cascader/type.ts index 27ef49224..2fa8e0c62 100644 --- a/packages/products/tdesign-miniprogram/packages/components/cascader/type.ts +++ b/packages/products/tdesign-miniprogram/packages/components/cascader/type.ts @@ -39,8 +39,8 @@ export interface TdCascaderProps; }; /** - * 未选中时的提示文案 - * @default 选择选项 + * 未选中时的提示文案。组件内置默认值为:'选择选项' + * @default '' */ placeholder?: { type: StringConstructor; diff --git a/packages/products/tdesign-miniprogram/packages/components/config-provider/README.en-US.md b/packages/products/tdesign-miniprogram/packages/components/config-provider/README.en-US.md new file mode 100644 index 000000000..9b32d7992 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/components/config-provider/README.en-US.md @@ -0,0 +1,176 @@ +:: 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 + +### AttachmentsConfig + +name | type | default | description | required +-- | -- | -- | -- | -- +status | Object | - | Typescript: `{ pending: string; fail: string; }` | 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 + +### ChatActionbarConfig + +name | type | default | description | required +-- | -- | -- | -- | -- +action-bar | Object | - | Typescript: `{ replay: string; copy: string; good: string; bad: string; share: string; quote: string; }` | N + +### ChatSenderConfig + +name | type | default | description | required +-- | -- | -- | -- | -- +placeholder | String | - | \- | N +send-text | String | - | \- | N +stop-text | String | - | \- | N + +### ChatThinkingConfig + +name | type | default | description | required +-- | -- | -- | -- | -- +status | Object | - | Typescript: `{ pending: string; complete: string; stop: 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 diff --git a/packages/products/tdesign-miniprogram/packages/components/config-provider/README.md b/packages/products/tdesign-miniprogram/packages/components/config-provider/README.md new file mode 100644 index 000000000..513bf57f8 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/components/config-provider/README.md @@ -0,0 +1,176 @@ +:: 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 + +### AttachmentsConfig + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +status | Object | - | 语言配置,附件上传状态描述文本。TS 类型:`{ pending: string; fail: 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 + +### ChatActionbarConfig + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +action-bar | Object | - | 语言配置,对话操作栏描述文本。TS 类型:`{ replay: string; copy: string; good: string; bad: string; share: string; quote: string; }` | N + +### ChatSenderConfig + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +placeholder | String | - | 语言配置,占位符描述文本 | N +send-text | String | - | 语言配置,发送按钮描述文本 | N +stop-text | String | - | 语言配置,停止发送按钮描述文本 | N + +### ChatThinkingConfig + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +status | Object | - | 语言配置,思考状态描述文本。TS 类型:`{ pending: string; complete: string; stop: 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 diff --git a/packages/products/tdesign-miniprogram/packages/components/config-provider/props.ts b/packages/products/tdesign-miniprogram/packages/components/config-provider/props.ts new file mode 100644 index 000000000..979d2fcc4 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/components/config-provider/props.ts @@ -0,0 +1,19 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdConfigProviderProps } from './type'; +const props: TdConfigProviderProps = { + /** 全局配置 */ + globalConfig: { + type: Object, + }, + /** 全局配置 */ + themeVars: { + type: Object, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/packages/components/config-provider/type.ts b/packages/products/tdesign-miniprogram/packages/components/config-provider/type.ts new file mode 100644 index 000000000..ca93b9968 --- /dev/null +++ b/packages/products/tdesign-miniprogram/packages/components/config-provider/type.ts @@ -0,0 +1,384 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { ImageProps } from '../image/index'; + +export interface TdConfigProviderProps { + /** + * 全局配置 + */ + globalConfig?: { + type: ObjectConstructor; + value?: GlobalConfigProvider; + }; + /** + * 全局配置 + */ + themeVars?: { + type: ObjectConstructor; + value?: object; + }; +} + +export interface GlobalConfigProvider { + /** + * 动作面板全局配置 + */ + actionSheet?: ActionSheetConfig; + /** + * 日历组件全局配置 + */ + calendar?: CalendarConfig; + /** + * 级联选择器全局配置 + */ + cascader?: CascaderConfig; + /** + * CSS 类名前缀 + * @default t + */ + classPrefix?: string; + /** + * 时间选择器全局配置 + */ + dateTimePicker?: DateTimePickerConfig; + /** + * 下拉菜单全局配置 + */ + dropdownMenu?: DropdownMenuConfig; + /** + * 引导全局配置 + */ + guide?: GuideConfig; + /** + * 选择器全局配置 + */ + picker?: PickerConfig; + /** + * 下拉刷新全局配置 + */ + pullDownRefresh?: PullDownRefreshConfig; + /** + * 二维码全局配置 + */ + qrcode?: QRCodeConfig; + /** + * 评分全局配置 + */ + rate?: RateConfig; + /** + * 标签栏全局配置 + */ + tabBar?: TabBarConfig; + /** + * 上传组件全局配置 + */ + upload?: UploadConfig; +} + +export interface ActionSheetConfig { + /** + * 语言配置,“取消” 按钮描述文本 + * @default '' + */ + cancel?: string; +} + +export interface AttachmentsConfig { + /** + * 语言配置,附件上传状态描述文本 + */ + status?: { pending: string; fail: string }; +} + +export interface CalendarConfig { + /** + * 语言配置,“确定” 按钮描述文本 + * @default '' + */ + confirm?: string; + /** + * 语言配置,日期月面板标题描述文本。示例:“{year} / {month}” + * @default '' + */ + monthTitle?: string; + /** + * 月文本描述,默认值:['1 月', '2 月', '3 月', '4 月', '5 月', '6 月', '7 月', '8 月', '9 月', '10 月', '11 月', '12 月'] + */ + months?: string[]; + /** + * 语言配置,组件标题“请选择日期”描述文本 + * @default '' + */ + title?: string; + /** + * 星期文本描述,默认值:['日', '一', '二', '三', '四', '五', '六'] + */ + weekdays?: string[]; +} + +export interface CascaderConfig { + /** + * 语言配置,未选中时的提示文案“选择选项”描述文本 + * @default '' + */ + placeholder?: string; + /** + * 语言配置,组件标题“选择地址”描述文本 + * @default '' + */ + title?: string; +} + +export interface ChatActionbarConfig { + /** + * 语言配置,对话操作栏描述文本 + */ + actionBar?: { replay: string; copy: string; good: string; bad: string; share: string; quote: string }; +} + +export interface ChatSenderConfig { + /** + * 语言配置,占位符描述文本 + * @default '' + */ + placeholder?: string; + /** + * 语言配置,发送按钮描述文本 + * @default '' + */ + sendText?: string; + /** + * 语言配置,停止发送按钮描述文本 + * @default '' + */ + stopText?: string; +} + +export interface ChatThinkingConfig { + /** + * 语言配置,思考状态描述文本 + */ + status?: { pending: string; complete: string; stop: string }; +} + +export interface DateTimePickerConfig { + /** + * 语言配置,“取消”按钮描述文本 + * @default '' + */ + cancel?: string; + /** + * 语言配置,“确定”按钮描述文本 + * @default '' + */ + confirm?: string; + /** + * 语言配置,“日” 描述文本 + * @default '' + */ + dateLabel?: string; + /** + * 日期格式化规则 + * @default 'YYYY-MM-DD HH:mm:ss' + */ + format?: string; + /** + * 语言配置,“时” 描述文本 + * @default '' + */ + hourLabel?: string; + /** + * 语言配置,“分” 描述文本 + * @default '' + */ + minuteLabel?: string; + /** + * 语言配置,“月” 描述文本 + * @default '' + */ + monthLabel?: string; + /** + * 语言配置,“秒” 描述文本 + * @default '' + */ + secondLabel?: string; + /** + * 语言配置,组件标题“选择时间”描述文本 + * @default '' + */ + title?: string; + /** + * 语言配置,“年” 描述文本 + * @default '' + */ + yearLabel?: string; +} + +export interface DropdownMenuConfig { + /** + * 语言配置,“确定” 按钮描述文本 + * @default '' + */ + confirm?: string; + /** + * 语言配置,“重置” 按钮描述文本 + * @default '' + */ + reset?: string; +} + +export interface GuideConfig { + /** + * 语言配置, “返回” 描述文本 + * @default '' + */ + back?: string; + /** + * 语言配置, “完成” 描述文本 + * @default '' + */ + finish?: string; + /** + * 语言配置, “下一步” 描述文本 + * @default '' + */ + next?: string; + /** + * 语言配置, “跳过” 描述文本 + * @default '' + */ + skip?: string; +} + +export interface ImageConfig { + /** + * 图片加载失败显示的文本,中文默认为“图片无法显示” + * @default '' + */ + errorText?: string; + /** + * 图片加载中显示的文本,中文默认为“图片加载中” + * @default '' + */ + loadingText?: string; + /** + * 统一替换图片 `src` 地址,参数为组件的全部属性,返回值为新的图片地址 + */ + replaceImageSrc?: (params: ImageProps) => string; +} + +export interface InputConfig { + /** + * 语言配置,“请输入”占位符描述文本 + * @default '' + */ + placeholder?: string; +} + +export interface PickerConfig { + /** + * 语言配置,“取消” 按钮描述文本 + * @default '' + */ + cancel?: string; + /** + * 语言配置,“确认” 按钮描述文本 + * @default '' + */ + confirm?: string; +} + +export interface PullDownRefreshConfig { + /** + * 提示文本描述,默认值:['下拉刷新', '松手刷新', '正在刷新', '刷新完成'] + */ + loadingTexts?: string[]; +} + +export interface QRCodeConfig { + /** + * 语言配置,“二维码过期”描述文本 + * @default '' + */ + expiredText?: string; + /** + * 语言配置,“点击刷新”描述文本 + * @default '' + */ + refreshText?: string; + /** + * 语言配置,“已扫描”描述文本 + * @default '' + */ + scannedText?: string; +} + +export interface RateConfig { + /** + * 语言配置,“未评分”描述文本 + * @default '' + */ + noValueText?: string; + /** + * 语言配置,评分值描述文本。示例:“{value} 分” + * @default '' + */ + valueText?: string; +} + +export interface TabBarConfig { + /** + * 语言配置,“有n+条新的消息”描述文本。示例:“有 {value}+ 条消息” + * @default '' + */ + haveMoreNewsAriaLabel?: string; + /** + * 语言配置,“有n条新的消息”描述文本。示例:“有 {value} 条消息” + * @default '' + */ + haveNewsAriaLabel?: string; + /** + * 语言配置,“有很多消息”描述文本 + * @default '' + */ + moreNewsAriaLabel?: string; + /** + * 语言配置,“有新的消息”描述文本 + * @default '' + */ + newsAriaLabel?: string; +} + +export interface UploadConfig { + /** + * 语言配置,上传进度相关。示例:{ uploadText: '上传中', waitingText: '待上传', 'failText': '上传失败', successText: '上传成功' } + */ + progress?: UploadConfigProgress; +} + +export interface UploadConfigProgress { + /** + * 语言配置,“上传失败”文本描述 + * @default '' + */ + failText?: string; + /** + * 语言配置,“上传成功”文本描述 + * @default '' + */ + successText?: string; + /** + * 语言配置,“上传中”文本描述 + * @default '' + */ + uploadingText?: string; + /** + * 语言配置,“待上传”文本描述 + * @default '' + */ + waitingText?: string; +} diff --git a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.en-US.md b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.en-US.md index 2b939622a..058699af9 100644 --- a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.en-US.md +++ b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.en-US.md @@ -11,7 +11,6 @@ custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on v auto-close | Boolean | false | \- | N cancel-btn | String | 取消 | \- | N confirm-btn | String | - | \- | N -custom-locale | String | zh | \- | N end | String / Number | - | \- | N filter | Function | - | Typescript: `(type: TimeModeValues, columns: DateTimePickerColumn) => DateTimePickerColumn` `type DateTimePickerColumn = DateTimePickerColumnItem[]` `interface DateTimePickerColumnItem { label: string,value: string}`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N format | String | 'YYYY-MM-DD HH:mm:ss' | \- | N diff --git a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.md b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.md index 04e81399a..235b0debe 100644 --- a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.md +++ b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/README.md @@ -11,7 +11,6 @@ custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场 auto-close | Boolean | false | 自动关闭;在确认、取消、点击遮罩层自动关闭,不需要手动设置 visible | N cancel-btn | String | 取消 | 取消按钮文字 | N confirm-btn | String | - | 确定按钮文字 | N -custom-locale | String | zh | 组件国际化语言,目前支持: 简体中文(zh)、(tc)、英文(en)、日语(ja)、韩语(ko)、俄语(ru)等六种语言 | N end | String / Number | - | 选择器的最大可选时间,默认为当前时间+10年 | N filter | Function | - | 列选项过滤函数,支持自定义列内容。(type 值可为: year, month, date, hour, minute, second)。TS 类型:`(type: TimeModeValues, columns: DateTimePickerColumn) => DateTimePickerColumn` `type DateTimePickerColumn = DateTimePickerColumnItem[]` `interface DateTimePickerColumnItem { label: string,value: string}`。[详细类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/packages/components/date-time-picker/type.ts) | N format | String | 'YYYY-MM-DD HH:mm:ss' | 用于格式化 pick、change、confirm 事件返回的值,[详细文档](https://day.js.org/docs/en/display/format) | N diff --git a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/props.ts b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/props.ts index 43e07e56b..ffae8c3cf 100644 --- a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/props.ts +++ b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/props.ts @@ -21,11 +21,6 @@ const props: TdDateTimePickerProps = { type: String, value: '', }, - /** 组件国际化语言,目前支持: 简体中文(zh)、(tc)、英文(en)、日语(ja)、韩语(ko)、俄语(ru)等六种语言 */ - customLocale: { - type: String, - value: 'zh', - }, /** 选择器的最大可选时间,默认为当前时间+10年 */ end: { type: null, diff --git a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/type.ts b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/type.ts index 6a155dbf4..91e82eab2 100644 --- a/packages/products/tdesign-miniprogram/packages/components/date-time-picker/type.ts +++ b/packages/products/tdesign-miniprogram/packages/components/date-time-picker/type.ts @@ -31,14 +31,6 @@ export interface TdDateTimePickerProps { type: StringConstructor; value?: string; }; - /** - * 组件国际化语言,目前支持: 简体中文(zh)、(tc)、英文(en)、日语(ja)、韩语(ko)、俄语(ru)等六种语言 - * @default zh - */ - customLocale?: { - type: StringConstructor; - value?: string; - }; /** * 选择器的最大可选时间,默认为当前时间+10年 */ diff --git a/packages/scripts/api.json b/packages/scripts/api.json index fd4fa4699..a8eba8713 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -3324,7 +3324,8 @@ "id": 1741182503, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "ActionSheetConfig", "field_category": 1, @@ -3353,7 +3354,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -5291,6 +5293,43 @@ "String" ] }, + { + "id": 1772102998, + "platform_framework": [ + "64" + ], + "component": "AttachmentsConfig", + "field_category": 1, + "field_name": "status", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语言配置,附件上传状态描述文本", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-02-26 10:49:58", + "update_time": "2026-02-26 10:49:58", + "event_output": null, + "custom_field_type": "{ pending: string; fail: string; }", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, { "id": 3152, "platform_framework": [ @@ -19037,7 +19076,8 @@ "id": 1741183085, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "CalendarConfig", "field_category": 1, @@ -19066,7 +19106,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -19312,7 +19353,8 @@ "id": 1741183537, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "CalendarConfig", "field_category": 1, @@ -19341,7 +19383,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -19351,7 +19394,8 @@ "id": 1741190561, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "CalendarConfig", "field_category": 1, @@ -19380,7 +19424,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Array" @@ -19468,7 +19513,8 @@ "id": 1741183315, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "CalendarConfig", "field_category": 1, @@ -19497,7 +19543,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -19585,7 +19632,8 @@ "id": 1741183385, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "CalendarConfig", "field_category": 1, @@ -19614,7 +19662,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Array" @@ -22328,9 +22377,9 @@ "field_type": [ "1" ], - "field_default_value": "选择选项", + "field_default_value": "", "field_enum": "", - "field_desc_zh": "未选中时的提示文案", + "field_desc_zh": "未选中时的提示文案。组件内置默认值为:'选择选项'", "field_desc_en": null, "field_required": 0, "event_input": "", @@ -23971,7 +24020,8 @@ "id": 1741183832, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "CascaderConfig", "field_category": 1, @@ -24000,7 +24050,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -24010,7 +24061,8 @@ "id": 1741183804, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "CascaderConfig", "field_category": 1, @@ -24039,7 +24091,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -26457,6 +26510,43 @@ ], "field_type_text": [] }, + { + "id": 1772103301, + "platform_framework": [ + "64" + ], + "component": "ChatActionbarConfig", + "field_category": 1, + "field_name": "actionBar", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语言配置,对话操作栏描述文本", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-02-26 10:55:01", + "update_time": "2026-02-26 10:55:01", + "event_output": null, + "custom_field_type": "{ replay: string; copy: string; good: string; bad: string; share: string; quote: string; }", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, { "id": 1742883575, "platform_framework": [ @@ -28939,9 +29029,9 @@ "field_type": [ "1" ], - "field_default_value": "请输入消息...", + "field_default_value": "", "field_enum": "", - "field_desc_zh": "输入框默认文案", + "field_desc_zh": "输入框默认文案。组件内置默认值为:'请输入消息...'", "field_desc_en": null, "field_required": 0, "event_input": "", @@ -29732,6 +29822,117 @@ ], "field_type_text": [] }, + { + "id": 1772103332, + "platform_framework": [ + "64" + ], + "component": "ChatSenderConfig", + "field_category": 1, + "field_name": "placeholder", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语言配置,占位符描述文本", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-02-26 10:55:32", + "update_time": "2026-02-26 10:55:32", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1772103359, + "platform_framework": [ + "64" + ], + "component": "ChatSenderConfig", + "field_category": 1, + "field_name": "sendText", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语言配置,发送按钮描述文本", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-02-26 10:55:59", + "update_time": "2026-02-26 10:55:59", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, + { + "id": 1772103371, + "platform_framework": [ + "64" + ], + "component": "ChatSenderConfig", + "field_category": 1, + "field_name": "stopText", + "field_type": [ + "1" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语言配置,停止发送按钮描述文本", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-02-26 10:56:11", + "update_time": "2026-02-26 10:56:11", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "String" + ] + }, { "id": 1762424283, "platform_framework": [ @@ -29987,6 +30188,43 @@ ], "field_type_text": [] }, + { + "id": 1772103456, + "platform_framework": [ + "64" + ], + "component": "ChatThinkingConfig", + "field_category": 1, + "field_name": "status", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "语言配置,思考状态描述文本", + "field_desc_en": null, + "field_required": 0, + "event_input": "", + "create_time": "2026-02-26 10:57:36", + "update_time": "2026-02-26 10:57:36", + "event_output": null, + "custom_field_type": "{ pending: string; complete: string; stop: string; }", + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, { "id": 418, "platform_framework": [ @@ -36969,7 +37207,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "ConfigProvider", "field_category": 1, @@ -37000,7 +37239,45 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" + ], + "field_type_text": [ + "Object" + ] + }, + { + "id": 1770278274, + "platform_framework": [ + "64" + ], + "component": "ConfigProvider", + "field_category": 1, + "field_name": "themeVars", + "field_type": [ + "8" + ], + "field_default_value": "", + "field_enum": "", + "field_desc_zh": "全局配置", + "field_desc_en": "theme Variables", + "field_required": 0, + "event_input": "", + "create_time": "2026-02-05 07:57:54", + "update_time": "2026-02-05 07:57:54", + "event_output": null, + "custom_field_type": null, + "syntactic_sugar": null, + "readonly": 1, + "html_attribute": 0, + "trigger_elements": "", + "deprecated": 0, + "version": "", + "test_description": null, + "support_default_value": 0, + "field_category_text": "Props", + "platform_framework_text": [ + "Miniprogram" ], "field_type_text": [ "Object" @@ -42627,43 +42904,6 @@ "String" ] }, - { - "id": 1710844467, - "platform_framework": [ - "64" - ], - "component": "DateTimePicker", - "field_category": 1, - "field_name": "customLocale", - "field_type": [ - "1" - ], - "field_default_value": "zh", - "field_enum": "", - "field_desc_zh": " 组件国际化语言,目前支持: 简体中文(zh)、(tc)、英文(en)、日语(ja)、韩语(ko)、俄语(ru)等六种语言", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2024-03-19 10:34:27", - "update_time": "2024-03-19 10:34:27", - "event_output": null, - "custom_field_type": null, - "syntactic_sugar": null, - "readonly": 1, - "html_attribute": 0, - "trigger_elements": "", - "deprecated": 0, - "version": "", - "test_description": null, - "support_default_value": 0, - "field_category_text": "Props", - "platform_framework_text": [ - "Miniprogram" - ], - "field_type_text": [ - "String" - ] - }, { "id": 2678, "platform_framework": [ @@ -43831,7 +44071,8 @@ "id": 1741184344, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -43860,7 +44101,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -43870,7 +44112,8 @@ "id": 1741184367, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -43899,7 +44142,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -43909,7 +44153,8 @@ "id": 1741184498, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -43938,7 +44183,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -43948,7 +44194,8 @@ "id": 1741184408, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -43977,7 +44224,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -43987,7 +44235,8 @@ "id": 1741184520, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -44016,7 +44265,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -44026,7 +44276,8 @@ "id": 1741184535, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -44055,7 +44306,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -44065,7 +44317,8 @@ "id": 1741184463, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -44094,7 +44347,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -44104,7 +44358,8 @@ "id": 1741184543, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -44133,7 +44388,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -44143,7 +44399,8 @@ "id": 1741184308, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -44172,7 +44429,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -44182,7 +44440,8 @@ "id": 1741184432, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DateTimePickerConfig", "field_category": 1, @@ -44211,7 +44470,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -54342,7 +54602,8 @@ "id": 1741184034, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DropdownMenuConfig", "field_category": 1, @@ -54371,7 +54632,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -54381,7 +54643,8 @@ "id": 1741184082, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "DropdownMenuConfig", "field_category": 1, @@ -54410,7 +54673,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -60977,7 +61241,8 @@ "id": 1741187123, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -61006,7 +61271,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -61217,7 +61483,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -61248,7 +61515,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -61260,7 +61528,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -61291,7 +61560,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -61424,7 +61694,8 @@ "id": 1741187493, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -61453,7 +61724,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -61580,7 +61852,8 @@ "id": 1741187326, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -61609,7 +61882,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -61703,7 +61977,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -61734,7 +62009,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -62058,7 +62334,8 @@ "id": 1741187708, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -62087,7 +62364,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -62136,7 +62414,8 @@ "id": 1741187753, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -62165,7 +62444,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -62222,7 +62502,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -62253,7 +62534,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -62341,7 +62623,8 @@ "id": 1741187827, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -62370,7 +62653,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -62659,7 +62943,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "GlobalConfigProvider", "field_category": 1, @@ -62690,7 +62975,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -65288,7 +65574,8 @@ "id": 1741223709, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GuideConfig", "field_category": 1, @@ -65317,7 +65604,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -65327,7 +65615,8 @@ "id": 1741223681, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GuideConfig", "field_category": 1, @@ -65356,7 +65645,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -65405,7 +65695,8 @@ "id": 1741223638, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GuideConfig", "field_category": 1, @@ -65434,7 +65725,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -65522,7 +65814,8 @@ "id": 1741223667, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "GuideConfig", "field_category": 1, @@ -65551,7 +65844,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -89756,7 +90050,8 @@ "id": 1741185484, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "PickerConfig", "field_category": 1, @@ -89785,7 +90080,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -89795,7 +90091,8 @@ "id": 1741185505, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "PickerConfig", "field_category": 1, @@ -89824,7 +90121,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -102714,7 +103012,8 @@ "id": 1741186556, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "RateConfig", "field_category": 1, @@ -102743,7 +103042,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -102792,7 +103092,8 @@ "id": 1741186536, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "RateConfig", "field_category": 1, @@ -102821,7 +103122,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -121427,7 +121729,8 @@ "id": 1741186773, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "TabBarConfig", "field_category": 1, @@ -121456,7 +121759,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -121466,7 +121770,8 @@ "id": 1741186793, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "TabBarConfig", "field_category": 1, @@ -121495,7 +121800,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -121505,7 +121811,8 @@ "id": 1741186744, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "TabBarConfig", "field_category": 1, @@ -121534,7 +121841,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -121544,7 +121852,8 @@ "id": 1741186722, "platform_framework": [ "8", - "16" + "16", + "64" ], "component": "TabBarConfig", "field_category": 1, @@ -121573,7 +121882,8 @@ "field_category_text": "Props", "platform_framework_text": [ "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -148013,7 +148323,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "UploadConfig", "field_category": 1, @@ -148044,7 +148355,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "Object" @@ -148446,7 +148758,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "UploadConfigProgress", "field_category": 1, @@ -148477,7 +148790,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -148489,7 +148803,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "UploadConfigProgress", "field_category": 1, @@ -148520,7 +148835,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -148532,7 +148848,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "UploadConfigProgress", "field_category": 1, @@ -148563,7 +148880,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" @@ -148575,7 +148893,8 @@ "1", "2", "8", - "16" + "16", + "64" ], "component": "UploadConfigProgress", "field_category": 1, @@ -148606,7 +148925,8 @@ "Vue(PC)", "React(PC)", "Vue(Mobile)", - "React(Mobile)" + "React(Mobile)", + "Miniprogram" ], "field_type_text": [ "String" diff --git a/packages/scripts/config/files-combine.js b/packages/scripts/config/files-combine.js index 9cb8e1a81..130bb71b9 100644 --- a/packages/scripts/config/files-combine.js +++ b/packages/scripts/config/files-combine.js @@ -6,9 +6,13 @@ const GLOBAL_COMPONENTS_CONFIG = [ 'ActionSheetConfig', 'AlertConfig', 'AnchorConfig', + 'AttachmentsConfig', 'AutoCompleteConfig', 'CalendarConfig', 'CascaderConfig', + 'ChatActionbarConfig', + 'ChatSenderConfig', + 'ChatThinkingConfig', 'ColorPickerConfig', 'DatePickerConfig', 'DateTimePickerConfig', diff --git a/packages/scripts/map.json b/packages/scripts/map.json index 461791da7..cdad69380 100644 --- a/packages/scripts/map.json +++ b/packages/scripts/map.json @@ -1173,6 +1173,11 @@ "label": "动作面板全局配置", "type": "TS" }, + { + "value": "AttachmentsConfig", + "label": "文件附件全局配置", + "type": "TS" + }, { "value": "Cell", "label": "单元格" @@ -1181,6 +1186,21 @@ "value": "CellGroup", "label": "单元格组" }, + { + "value": "ChatActionbarConfig", + "label": "对话操作全局配置", + "type": "TS" + }, + { + "value": "ChatSenderConfig", + "label": "对话输入全局配置", + "type": "TS" + }, + { + "value": "ChatThinkingConfig", + "label": "思考过程全局配置", + "type": "TS" + }, { "value": "CountDown", "label": "倒计时" @@ -1285,6 +1305,10 @@ "label": "下拉刷新全局配置", "type": "TS" }, + { + "value": "ScrollView", + "label": "滚动容器" + }, { "value": "SearchField", "label": "搜索框" @@ -1293,10 +1317,6 @@ "value": "SegmentedControl", "label": "分段器" }, - { - "value": "ScrollView", - "label": "滚动容器" - }, { "value": "SideBar", "label": "侧边导航" @@ -1305,14 +1325,6 @@ "value": "SideBarItem", "label": "侧边导航项" }, - { - "value": "SwipeCell", - "label": "滑动操作" - }, - { - "value": "SwiperNav", - "label": "轮播导航" - }, { "value": "Stepper", "label": "步进器" @@ -1321,6 +1333,14 @@ "value": "Sticky", "label": "吸顶容器" }, + { + "value": "SwipeCell", + "label": "滑动操作" + }, + { + "value": "SwiperNav", + "label": "轮播导航" + }, { "value": "Tab", "label": "选项卡" diff --git a/packages/server/controllers/ComponentApi/const.ts b/packages/server/controllers/ComponentApi/const.ts index 1e149aba8..9ffbfa75d 100644 --- a/packages/server/controllers/ComponentApi/const.ts +++ b/packages/server/controllers/ComponentApi/const.ts @@ -448,7 +448,11 @@ export const COMPONENTS_MOBILE: Array = [ { value: 'ToastOptions', label: '轻提示插件参数', type: 'TS' }, { value: 'Transition', label: '动画' }, { value: 'Upload', label: '上传' }, -]; + { value: 'AttachmentsConfig', label: '文件附件全局配置', type: 'TS' }, + { value: 'ChatActionbarConfig', label: '对话操作全局配置', type: 'TS' }, + { value: 'ChatSenderConfig', label: '对话输入全局配置', type: 'TS' }, + { value: 'ChatThinkingConfig', label: '思考过程全局配置', type: 'TS' }, +].sort((a, b) => a.value.localeCompare(b.value)); export default { PLATFORM_MAP,