diff --git a/db/TDesign.db b/db/TDesign.db index f218cf184..ae6787296 100644 Binary files a/db/TDesign.db and b/db/TDesign.db differ diff --git a/packages/products/tdesign-miniprogram/src/tab-bar-item/props.ts b/packages/products/tdesign-miniprogram/src/tab-bar-item/props.ts new file mode 100644 index 000000000..556220674 --- /dev/null +++ b/packages/products/tdesign-miniprogram/src/tab-bar-item/props.ts @@ -0,0 +1,27 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdTabBarItemProps } from './type'; +const props: TdTabBarItemProps = { + /** 图标右上角提示信息 */ + badgeProps: { + type: Object, + }, + /** 图标名称。传入对象时透传至 Icon 组件 */ + icon: { + type: null, + }, + /** 二级菜单 */ + subTabBar: { + type: Array, + }, + /** 标识符 */ + value: { + type: null, + }, +}; + +export default props; diff --git a/packages/products/tdesign-miniprogram/src/tab-bar-item/type.ts b/packages/products/tdesign-miniprogram/src/tab-bar-item/type.ts new file mode 100644 index 000000000..c5ef64806 --- /dev/null +++ b/packages/products/tdesign-miniprogram/src/tab-bar-item/type.ts @@ -0,0 +1,43 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { BadgeProps } from '../badge/index'; + +export interface TdTabBarItemProps { + /** + * 图标右上角提示信息 + */ + badgeProps?: { + type: ObjectConstructor; + value?: BadgeProps; + }; + /** + * 图标名称。传入对象时透传至 Icon 组件 + */ + icon?: { + type: null; + value?: string | object; + }; + /** + * 二级菜单 + */ + subTabBar?: { + type: ArrayConstructor; + value?: SubTabBarItem[]; + }; + /** + * 标识符 + */ + value?: { + type: null; + value?: string | number; + }; +} + +export interface SubTabBarItem { + value: string; + label: string; +} diff --git a/packages/products/tdesign-miniprogram/src/tab-bar/README.en-US.md b/packages/products/tdesign-miniprogram/src/tab-bar/README.en-US.md index c04083d4e..885077d5a 100644 --- a/packages/products/tdesign-miniprogram/src/tab-bar/README.en-US.md +++ b/packages/products/tdesign-miniprogram/src/tab-bar/README.en-US.md @@ -14,7 +14,7 @@ safe-area-inset-bottom | Boolean | true | \- | N shape | String | normal | options: normal/round | N split | Boolean | true | \- | N theme | String | normal | options: normal/tag | N -value | String / Number / Array | null | Typescript:`string \| number \| Array` | N +value | String / Number / Array | - | Typescript:`string \| number \| Array` | N default-value | String / Number / Array | undefined | uncontrolled property。Typescript:`string \| number \| Array` | N ### TabBar Events diff --git a/packages/products/tdesign-miniprogram/src/tab-bar/README.md b/packages/products/tdesign-miniprogram/src/tab-bar/README.md index b07fd809e..0f9c44a82 100644 --- a/packages/products/tdesign-miniprogram/src/tab-bar/README.md +++ b/packages/products/tdesign-miniprogram/src/tab-bar/README.md @@ -14,7 +14,7 @@ safe-area-inset-bottom | Boolean | true | 是否为 iPhoneX 留出底部安全 shape | String | normal | 标签栏的形状。可选项:normal/round | N split | Boolean | true | 是否需要分割线 | N theme | String | normal | 选项风格。可选项:normal/tag | N -value | String / Number / Array | null | 当前选中标签的索引。TS 类型:`string \| number \| Array` | N +value | String / Number / Array | - | 当前选中标签的索引。TS 类型:`string \| number \| Array` | N default-value | String / Number / Array | undefined | 当前选中标签的索引。非受控属性。TS 类型:`string \| number \| Array` | N ### TabBar Events diff --git a/packages/products/tdesign-miniprogram/src/tab-bar/props.ts b/packages/products/tdesign-miniprogram/src/tab-bar/props.ts index 72bf2b421..637eee00f 100644 --- a/packages/products/tdesign-miniprogram/src/tab-bar/props.ts +++ b/packages/products/tdesign-miniprogram/src/tab-bar/props.ts @@ -25,15 +25,20 @@ const props: TdTabBarProps = { type: Boolean, value: true, }, + /** 标签栏的形状 */ + shape: { + type: String, + value: 'normal', + }, /** 是否需要分割线 */ split: { type: Boolean, value: true, }, - /** 自定义组件样式 */ - style: { + /** 选项风格 */ + theme: { type: String, - value: '', + value: 'normal', }, /** 当前选中标签的索引 */ value: { @@ -43,7 +48,6 @@ const props: TdTabBarProps = { /** 当前选中标签的索引,非受控属性 */ defaultValue: { type: null, - value: null, }, }; diff --git a/packages/products/tdesign-miniprogram/src/tab-bar/type.ts b/packages/products/tdesign-miniprogram/src/tab-bar/type.ts index ef329590d..3565afd4a 100644 --- a/packages/products/tdesign-miniprogram/src/tab-bar/type.ts +++ b/packages/products/tdesign-miniprogram/src/tab-bar/type.ts @@ -4,8 +4,6 @@ * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC * */ -import { BadgeProps } from '../badge/index'; - export interface TdTabBarProps { /** * 是否显示外边框 @@ -38,6 +36,14 @@ export interface TdTabBarProps { type: BooleanConstructor; value?: boolean; }; + /** + * 标签栏的形状 + * @default normal + */ + shape?: { + type: StringConstructor; + value?: 'normal' | 'round'; + }; /** * 是否需要分割线 * @default true @@ -47,16 +53,15 @@ export interface TdTabBarProps { value?: boolean; }; /** - * 自定义组件样式 - * @default '' + * 选项风格 + * @default normal */ - style?: { + theme?: { type: StringConstructor; - value?: string; + value?: 'normal' | 'tag'; }; /** * 当前选中标签的索引 - * @default null */ value?: { type: null; @@ -64,54 +69,9 @@ export interface TdTabBarProps { }; /** * 当前选中标签的索引,非受控属性 - * @default null */ defaultValue?: { type: null; value?: string | number | Array; }; } - -export interface TdTabBarItemProps { - /** - * 图标右上角提示信息 - */ - badgeProps?: { - type: ObjectConstructor; - value?: BadgeProps; - }; - /** - * 图标名称 - */ - icon?: { - type: StringConstructor; - value?: string; - }; - /** - * 自定义组件样式 - * @default '' - */ - style?: { - type: StringConstructor; - value?: string; - }; - /** - * 二级菜单 - */ - subTabBar?: { - type: ArrayConstructor; - value?: SubTabBarItem[]; - }; - /** - * 标识符 - */ - value?: { - type: null; - value?: string | number; - }; -} - -export interface SubTabBarItem { - value: string; - label: string; -} diff --git a/packages/products/tdesign-mobile-react/src/tab-bar/defaultProps.ts b/packages/products/tdesign-mobile-react/src/tab-bar/defaultProps.ts new file mode 100644 index 000000000..c18c9610a --- /dev/null +++ b/packages/products/tdesign-mobile-react/src/tab-bar/defaultProps.ts @@ -0,0 +1,14 @@ +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdTabBarProps } from './type'; + +export const tabBarDefaultProps: TdTabBarProps = { + bordered: true, + fixed: true, + safeAreaInsetBottom: true, + shape: 'normal', + split: true, + theme: 'normal', +}; diff --git a/packages/products/tdesign-mobile-react/src/tab-bar/tab-bar.en-US.md b/packages/products/tdesign-mobile-react/src/tab-bar/tab-bar.en-US.md new file mode 100644 index 000000000..4b4241382 --- /dev/null +++ b/packages/products/tdesign-mobile-react/src/tab-bar/tab-bar.en-US.md @@ -0,0 +1,33 @@ +:: BASE_DOC :: + +## API + +### TabBar Props + +name | type | default | description | required +-- | -- | -- | -- | -- +className | String | - | className of component | N +style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N +bordered | Boolean | true | \- | N +children | TNode | - | Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N +fixed | Boolean | true | \- | N +safeAreaInsetBottom | Boolean | true | \- | N +shape | String | normal | options: normal/round | N +split | Boolean | true | \- | N +theme | String | normal | options: normal/tag | N +value | String / Number / Array | - | Typescript:`string \| number \| Array` | N +defaultValue | String / Number / Array | - | uncontrolled property。Typescript:`string \| number \| Array` | N +onChange | Function | | Typescript:`(value: string \| number) => void`
| N + + +### TabBarItem Props + +name | type | default | description | required +-- | -- | -- | -- | -- +className | String | - | className of component | N +style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N +badgeProps | Object | - | Typescript:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/tab-bar/type.ts) | N +children | TNode | - | Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N +icon | TElement | - | Typescript:`TNode`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N +subTabBar | Array | - | Typescript:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/tab-bar/type.ts) | N +value | String / Number | - | \- | N diff --git a/packages/products/tdesign-mobile-react/src/tab-bar/tab-bar.md b/packages/products/tdesign-mobile-react/src/tab-bar/tab-bar.md new file mode 100644 index 000000000..2ea3781b6 --- /dev/null +++ b/packages/products/tdesign-mobile-react/src/tab-bar/tab-bar.md @@ -0,0 +1,33 @@ +:: BASE_DOC :: + +## API + +### TabBar Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +className | String | - | 类名 | N +style | Object | - | 样式,TS 类型:`React.CSSProperties` | N +bordered | Boolean | true | 是否显示外边框 | N +children | TNode | - | 标签栏内容。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N +fixed | Boolean | true | 是否固定在底部 | N +safeAreaInsetBottom | Boolean | true | 是否为 iPhoneX 留出底部安全距离 | N +shape | String | normal | 标签栏的形状。可选项:normal/round | N +split | Boolean | true | 是否需要分割线 | N +theme | String | normal | 选项风格。可选项:normal/tag | N +value | String / Number / Array | - | 当前选中标签的索引。TS 类型:`string \| number \| Array` | N +defaultValue | String / Number / Array | - | 当前选中标签的索引。非受控属性。TS 类型:`string \| number \| Array` | N +onChange | Function | | TS 类型:`(value: string \| number) => void`
选中标签切换时触发 | N + + +### TabBarItem Props + +名称 | 类型 | 默认值 | 描述 | 必传 +-- | -- | -- | -- | -- +className | String | - | 类名 | N +style | Object | - | 样式,TS 类型:`React.CSSProperties` | N +badgeProps | Object | - | 图标右上角提示信息。TS 类型:`BadgeProps`,[Badge API Documents](./badge?tab=api)。[详细类型定义](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/tab-bar/type.ts) | N +children | TNode | - | 标签内容。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N +icon | TElement | - | 图标名称。TS 类型:`TNode`。[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N +subTabBar | Array | - | 二级菜单。TS 类型:`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[详细类型定义](https://github.com/Tencent/tdesign-mobile-react/tree/develop/src/tab-bar/type.ts) | N +value | String / Number | - | 标识符 | N diff --git a/packages/products/tdesign-mobile-react/src/tab-bar/type.ts b/packages/products/tdesign-mobile-react/src/tab-bar/type.ts new file mode 100644 index 000000000..a5acb6f3c --- /dev/null +++ b/packages/products/tdesign-mobile-react/src/tab-bar/type.ts @@ -0,0 +1,85 @@ +/* eslint-disable */ + +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { BadgeProps } from '../badge'; +import { TNode, TElement } from '../common'; + +export interface TdTabBarProps { + /** + * 是否显示外边框 + * @default true + */ + bordered?: boolean; + /** + * 标签栏内容 + */ + children?: TNode; + /** + * 是否固定在底部 + * @default true + */ + fixed?: boolean; + /** + * 是否为 iPhoneX 留出底部安全距离 + * @default true + */ + safeAreaInsetBottom?: boolean; + /** + * 标签栏的形状 + * @default normal + */ + shape?: 'normal' | 'round'; + /** + * 是否需要分割线 + * @default true + */ + split?: boolean; + /** + * 选项风格 + * @default normal + */ + theme?: 'normal' | 'tag'; + /** + * 当前选中标签的索引 + */ + value?: string | number | Array; + /** + * 当前选中标签的索引,非受控属性 + */ + defaultValue?: string | number | Array; + /** + * 选中标签切换时触发 + */ + onChange?: (value: string | number) => void; +} + +export interface TdTabBarItemProps { + /** + * 图标右上角提示信息 + */ + badgeProps?: BadgeProps; + /** + * 标签内容 + */ + children?: TNode; + /** + * 图标名称 + */ + icon?: TElement; + /** + * 二级菜单 + */ + subTabBar?: SubTabBarItem[]; + /** + * 标识符 + */ + value?: string | number; +} + +export interface SubTabBarItem { + value: string; + label: string; +} diff --git a/packages/products/tdesign-mobile-vue/src/tab-bar/props.ts b/packages/products/tdesign-mobile-vue/src/tab-bar/props.ts index f41badf7e..f2d991985 100644 --- a/packages/products/tdesign-mobile-vue/src/tab-bar/props.ts +++ b/packages/products/tdesign-mobile-vue/src/tab-bar/props.ts @@ -58,7 +58,6 @@ export default { /** 当前选中标签的索引,非受控属性 */ defaultValue: { type: [String, Number, Array] as PropType, - default: undefined, }, /** 选中标签切换时触发 */ onChange: Function as PropType, diff --git a/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.en-US.md b/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.en-US.md index 49a3bac25..1163cad20 100644 --- a/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.en-US.md +++ b/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.en-US.md @@ -9,11 +9,11 @@ name | type | default | description | required bordered | Boolean | true | \- | N fixed | Boolean | true | \- | N safeAreaInsetBottom | Boolean | true | \- | N -shape | String | 'normal' | options: normal/round | N +shape | String | normal | options: normal/round | N split | Boolean | true | \- | N -theme | String | 'normal' | options: normal/tag | N -value | String / Number / Array | undefined | `v-model` and `v-model:value` is supported。Typescript:`string \| number \| Array` | N -defaultValue | String / Number / Array | undefined | uncontrolled property。Typescript:`string \| number \| Array` | N +theme | String | normal | options: normal/tag | N +value | String / Number / Array | - | `v-model` and `v-model:value` is supported。Typescript:`string \| number \| Array` | N +defaultValue | String / Number / Array | - | uncontrolled property。Typescript:`string \| number \| Array` | N onChange | Function | | Typescript:`(value: string \| number) => void`
| N ### TabBar Events diff --git a/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.md b/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.md index 69f2a6968..c575d92c6 100644 --- a/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.md +++ b/packages/products/tdesign-mobile-vue/src/tab-bar/tab-bar.md @@ -9,11 +9,11 @@ bordered | Boolean | true | 是否显示外边框 | N fixed | Boolean | true | 是否固定在底部 | N safeAreaInsetBottom | Boolean | true | 是否为 iPhoneX 留出底部安全距离 | N -shape | String | 'normal' | 标签栏的形状。可选项:normal/round | N +shape | String | normal | 标签栏的形状。可选项:normal/round | N split | Boolean | true | 是否需要分割线 | N -theme | String | 'normal' | 选项风格。可选项:normal/tag | N -value | String / Number / Array | undefined | 当前选中标签的索引。支持语法糖 `v-model` 或 `v-model:value`。TS 类型:`string \| number \| Array` | N -defaultValue | String / Number / Array | undefined | 当前选中标签的索引。非受控属性。TS 类型:`string \| number \| Array` | N +theme | String | normal | 选项风格。可选项:normal/tag | N +value | String / Number / Array | - | 当前选中标签的索引。支持语法糖 `v-model` 或 `v-model:value`。TS 类型:`string \| number \| Array` | N +defaultValue | String / Number / Array | - | 当前选中标签的索引。非受控属性。TS 类型:`string \| number \| Array` | N onChange | Function | | TS 类型:`(value: string \| number) => void`
选中标签切换时触发 | N ### TabBar Events diff --git a/packages/products/tdesign-mobile-vue/src/tab-bar/type.ts b/packages/products/tdesign-mobile-vue/src/tab-bar/type.ts index b4f00b4cc..80e651b2a 100644 --- a/packages/products/tdesign-mobile-vue/src/tab-bar/type.ts +++ b/packages/products/tdesign-mobile-vue/src/tab-bar/type.ts @@ -25,7 +25,7 @@ export interface TdTabBarProps { safeAreaInsetBottom?: boolean; /** * 标签栏的形状 - * @default 'normal' + * @default normal */ shape?: 'normal' | 'round'; /** @@ -35,7 +35,7 @@ export interface TdTabBarProps { split?: boolean; /** * 选项风格 - * @default 'normal' + * @default normal */ theme?: 'normal' | 'tag'; /** diff --git a/packages/scripts/api.json b/packages/scripts/api.json index 6bd539057..f857542fb 100644 --- a/packages/scripts/api.json +++ b/packages/scripts/api.json @@ -111958,40 +111958,42 @@ ] }, { - "id": 3058, + "id": 1724677279, "platform_framework": [ - "64" + "16" ], "component": "TabBar", "field_category": 1, - "field_name": "customStyle", + "field_name": "children", "field_type": [ - "1" + "1", + "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "自定义组件样式", + "field_desc_zh": "标签栏内容", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2022-10-31 11:32:09", - "update_time": "2022-10-31 11:32:09", + "create_time": "2024-08-26 13:01:19", + "update_time": "2024-08-26 13:01:19", "event_output": null, - "custom_field_type": null, + "custom_field_type": "TNode", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, "trigger_elements": "", "deprecated": 0, - "version": "{\"Miniprogram\": \"0.25.0\"}", + "version": "", "test_description": null, "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Miniprogram" + "React(Mobile)" ], "field_type_text": [ - "String" + "String", + "TNode" ] }, { @@ -112077,6 +112079,9 @@ { "id": 1380, "platform_framework": [ + "8", + "16", + "32", "64" ], "component": "TabBar", @@ -112105,52 +112110,21 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)", "Miniprogram" ], "field_type_text": [ "Boolean" ] }, - { - "id": 3466, - "platform_framework": [ - "8" - ], - "component": "TabBar", - "field_category": 1, - "field_name": "safeAreaInsetBottom", - "field_type": [ - "4" - ], - "field_default_value": "true", - "field_enum": "", - "field_desc_zh": "是否为 iPhoneX 留出底部安全距离", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2023-04-23 11:46:23", - "update_time": "2023-04-23 11:46:23", - "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": [ - "Vue(Mobile)" - ], - "field_type_text": [ - "Boolean" - ] - }, { "id": 3281, "platform_framework": [ + "8", + "16", + "32", "64" ], "component": "TabBar", @@ -112179,52 +112153,21 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)", "Miniprogram" ], "field_type_text": [ "String" ] }, - { - "id": 3467, - "platform_framework": [ - "8" - ], - "component": "TabBar", - "field_category": 1, - "field_name": "shape", - "field_type": [ - "1" - ], - "field_default_value": "'normal'", - "field_enum": "normal/round", - "field_desc_zh": "标签栏的形状", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2023-04-23 11:47:19", - "update_time": "2023-04-23 11:47:19", - "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": [ - "Vue(Mobile)" - ], - "field_type_text": [ - "String" - ] - }, { "id": 2192, "platform_framework": [ + "8", + "16", + "32", "64" ], "component": "TabBar", @@ -112253,52 +112196,21 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)", "Miniprogram" ], "field_type_text": [ "Boolean" ] }, - { - "id": 3468, - "platform_framework": [ - "8" - ], - "component": "TabBar", - "field_category": 1, - "field_name": "split", - "field_type": [ - "4" - ], - "field_default_value": "true", - "field_enum": "", - "field_desc_zh": "是否需要分割线", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2023-04-23 11:48:26", - "update_time": "2023-04-23 11:48:26", - "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": [ - "Vue(Mobile)" - ], - "field_type_text": [ - "Boolean" - ] - }, { "id": 3282, "platform_framework": [ + "8", + "16", + "32", "64" ], "component": "TabBar", @@ -112327,55 +112239,22 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)", "Miniprogram" ], "field_type_text": [ "String" ] }, - { - "id": 3469, - "platform_framework": [ - "8" - ], - "component": "TabBar", - "field_category": 1, - "field_name": "theme", - "field_type": [ - "1" - ], - "field_default_value": "'normal'", - "field_enum": "normal/tag", - "field_desc_zh": "选项风格", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2023-04-23 11:52:31", - "update_time": "2023-04-23 11:52:31", - "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": [ - "Vue(Mobile)" - ], - "field_type_text": [ - "String" - ] - }, { "id": 1375, "platform_framework": [ "8", "16", - "32" + "32", + "64" ], "component": "TabBar", "field_category": 1, @@ -112385,7 +112264,7 @@ "2", "16" ], - "field_default_value": "undefined", + "field_default_value": "", "field_enum": "", "field_desc_zh": "当前选中标签的索引", "field_desc_en": null, @@ -112407,47 +112286,7 @@ "platform_framework_text": [ "Vue(Mobile)", "React(Mobile)", - "Angular(Mobile)" - ], - "field_type_text": [ - "String", - "Number", - "Array" - ] - }, - { - "id": 3112, - "platform_framework": [ - "64" - ], - "component": "TabBar", - "field_category": 1, - "field_name": "value", - "field_type": [ - "1", - "2", - "16" - ], - "field_default_value": "null", - "field_enum": "", - "field_desc_zh": "当前选中标签的索引", - "field_desc_en": null, - "field_required": 0, - "event_input": "", - "create_time": "2022-10-31 16:48:18", - "update_time": "2022-10-31 16:48:18", - "event_output": null, - "custom_field_type": "string | number | Array", - "syntactic_sugar": "v-model", - "readonly": 1, - "html_attribute": 0, - "trigger_elements": "", - "deprecated": 0, - "version": "", - "test_description": null, - "support_default_value": 1, - "field_category_text": "Props", - "platform_framework_text": [ + "Angular(Mobile)", "Miniprogram" ], "field_type_text": [ @@ -112572,47 +112411,47 @@ ] }, { - "id": 3059, + "id": 1724677465, "platform_framework": [ - "64" + "16" ], "component": "TabBarItem", "field_category": 1, - "field_name": "customStyle", + "field_name": "children", "field_type": [ - "1" + "1", + "64" ], "field_default_value": "", "field_enum": "", - "field_desc_zh": "自定义组件样式", + "field_desc_zh": "标签内容", "field_desc_en": null, "field_required": 0, "event_input": "", - "create_time": "2022-10-31 11:32:16", - "update_time": "2022-10-31 11:32:16", + "create_time": "2024-08-26 13:04:25", + "update_time": "2024-08-26 13:04:25", "event_output": null, - "custom_field_type": null, + "custom_field_type": "TNode", "syntactic_sugar": null, "readonly": 1, "html_attribute": 0, "trigger_elements": "", "deprecated": 0, - "version": "{\"Miniprogram\": \"0.25.0\"}", + "version": "", "test_description": null, "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Miniprogram" + "React(Mobile)" ], "field_type_text": [ - "String" + "String", + "TNode" ] }, { "id": 1437, "platform_framework": [ - "16", - "32", "64" ], "component": "TabBarItem", @@ -112643,8 +112482,6 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "React(Mobile)", - "Angular(Mobile)", "Miniprogram" ], "field_type_text": [ @@ -112656,7 +112493,9 @@ { "id": 2069, "platform_framework": [ - "8" + "8", + "16", + "32" ], "component": "TabBarItem", "field_category": 1, @@ -112684,7 +112523,9 @@ "support_default_value": 0, "field_category_text": "Props", "platform_framework_text": [ - "Vue(Mobile)" + "Vue(Mobile)", + "React(Mobile)", + "Angular(Mobile)" ], "field_type_text": [ "TNode"