Skip to content

Commit

Permalink
feat: update Empty.image
Browse files Browse the repository at this point in the history
  • Loading branch information
chaishi committed Dec 4, 2023
1 parent 7ddd648 commit 3e767c5
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/products/tdesign-react/src/empty/empty.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ className | String | - | 类名 | N
style | Object | - | 样式,Typescript:`React.CSSProperties` | N
action | TElement | - | action block。Typescript:`TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
description | TNode | - | empty component description。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
image | TNode | - | image url, or Image component props, or custom any node you need。Typescript:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/empty/type.ts) | N
image | TNode | - | image url, or Image component props, or custom any node you need.。Typescript:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts)[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/empty/type.ts) | N
imageStyle | Object | - | pass `Cascading Style Sheets` to image element。Typescript:`Styles`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
title | TNode | - | empty component title。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
type | String | empty | Empty component type。options: empty/success/fail/network-error/maintenance | N
2 changes: 1 addition & 1 deletion packages/products/tdesign-react/src/empty/empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ className | String | - | 类名 | N
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
action | TElement | - | 操作区域。TS 类型:`TNode`[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
description | TNode | - | 描述文字。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
image | TNode | - | 图片地址。TS 类型:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts)[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/empty/type.ts) | N
image | TNode | - | 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />`。TS 类型:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts)[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/empty/type.ts) | N
imageStyle | Object | - | 透传图片样式表。TS 类型:`Styles`[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
title | TNode | - | 错误标题。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/common.ts) | N
type | String | empty | 组件类型,如:空数据/成功/失败/网络错误/建设中。可选项:empty/success/fail/network-error/maintenance | N
2 changes: 1 addition & 1 deletion packages/products/tdesign-react/src/empty/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface TdEmptyProps {
*/
description?: TNode;
/**
* 图片地址
* 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />`
*/
image?: ImageProps | TNode;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
action | Slot / Function | - | action block。Typescript:`TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
description | String / Slot / Function | - | empty component description。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
image | String / Slot / Function | - | image url, or Image component props, or custom any node you need。Typescript:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/empty/type.ts) | N
image | String / Slot / Function | - | image url, or Image component props, or custom any node you need.。Typescript:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts)[see more ts definition](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/empty/type.ts) | N
imageStyle | Object | - | pass `Cascading Style Sheets` to image element。Typescript:`Styles`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
title | String / Slot / Function | - | empty component title。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
type | String | empty | Empty component type。options: empty/success/fail/network-error/maintenance | N
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue-next/src/empty/empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-- | -- | -- | -- | --
action | Slot / Function | - | 操作区域。TS 类型:`TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
description | String / Slot / Function | - | 描述文字。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
image | String / Slot / Function | - | 图片地址。TS 类型:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts)[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/empty/type.ts) | N
image | String / Slot / Function | - | 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />`。TS 类型:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts)[详细类型定义](https://github.com/Tencent/tdesign-vue-next/tree/develop/src/empty/type.ts) | N
imageStyle | Object | - | 透传图片样式表。TS 类型:`Styles`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
title | String / Slot / Function | - | 错误标题。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
type | String | empty | 组件类型,如:空数据/成功/失败/网络错误/建设中。可选项:empty/success/fail/network-error/maintenance | N
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue-next/src/empty/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
description: {
type: [String, Function] as PropType<TdEmptyProps['description']>,
},
/** 图片地址 */
/** 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />` */
image: {
type: [String, Function] as PropType<TdEmptyProps['image']>,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue-next/src/empty/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface TdEmptyProps {
*/
description?: string | TNode;
/**
* 图片地址
* 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />`
*/
image?: string | ImageProps | TNode;
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue/src/empty/empty.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name | type | default | description | required
-- | -- | -- | -- | --
action | Slot / Function | - | action block。Typescript:`TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
description | String / Slot / Function | - | empty component description。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
image | String / Slot / Function | - | image url, or Image component props, or custom any node you need。Typescript:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts)[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/empty/type.ts) | N
image | String / Slot / Function | - | image url, or Image component props, or custom any node you need.。Typescript:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts)[see more ts definition](https://github.com/Tencent/tdesign-vue/tree/develop/src/empty/type.ts) | N
imageStyle | Object | - | pass `Cascading Style Sheets` to image element。Typescript:`Styles`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
title | String / Slot / Function | - | empty component title。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
type | String | empty | Empty component type。options: empty/success/fail/network-error/maintenance | N
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue/src/empty/empty.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-- | -- | -- | -- | --
action | Slot / Function | - | 操作区域。TS 类型:`TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
description | String / Slot / Function | - | 描述文字。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
image | String / Slot / Function | - | 图片地址。TS 类型:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts)[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/empty/type.ts) | N
image | String / Slot / Function | - | 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />`。TS 类型:`string \| ImageProps \| TNode `[Image API Documents](./image?tab=api)[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts)[详细类型定义](https://github.com/Tencent/tdesign-vue/tree/develop/src/empty/type.ts) | N
imageStyle | Object | - | 透传图片样式表。TS 类型:`Styles`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
title | String / Slot / Function | - | 错误标题。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
type | String | empty | 组件类型,如:空数据/成功/失败/网络错误/建设中。可选项:empty/success/fail/network-error/maintenance | N
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue/src/empty/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
description: {
type: [String, Function] as PropType<TdEmptyProps['description']>,
},
/** 图片地址 */
/** 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />` */
image: {
type: [String, Function] as PropType<TdEmptyProps['image']>,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-vue/src/empty/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface TdEmptyProps {
*/
description?: string | TNode;
/**
* 图片地址
* 组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />`
*/
image?: string | ImageProps | TNode;
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -40069,8 +40069,8 @@
],
"field_default_value": "",
"field_enum": "",
"field_desc_zh": "图片地址",
"field_desc_en": "image url, or Image component props, or custom any node you need",
"field_desc_zh": "组件图片,可以完全自定义内容。值类型为字符串时,表示图片地址;值类型为对象时,则表示透传全部属性到图片组件,示例:`<Empty image={{ src: '', shape: 'round' }} />`",
"field_desc_en": "image url, or Image component props, or custom any node you need.",
"field_required": 0,
"event_input": "",
"create_time": "2021-08-01 14:31:55",
Expand Down

0 comments on commit 3e767c5

Please sign in to comment.