Skip to content

Commit

Permalink
docs(empty): mobile-react 新增epmty组件文档 (#425)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
epoll-j and github-actions[bot] authored Sep 18, 2024
1 parent a41ca10 commit 3ec0282
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 4 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
14 changes: 14 additions & 0 deletions packages/products/tdesign-mobile-react/src/empty/empty.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:: BASE_DOC ::

## API

### Empty Props

name | type | default | description | required
-- | -- | -- | -- | --
className | String | - | className of component | N
style | Object | - | CSS(Cascading Style Sheets),Typescript:`React.CSSProperties` | N
action | TElement | - | action block。Typescript:`TNode`[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
description | TNode | - | empty component description。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
icon | TNode | - | Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
image | TNode | - | image url, or Image component props, or custom any node you need.。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
14 changes: 14 additions & 0 deletions packages/products/tdesign-mobile-react/src/empty/empty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
:: BASE_DOC ::

## API

### Empty Props

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
className | String | - | 类名 | N
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
action | TElement | - | 操作按钮。TS 类型:`TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
description | TNode | - | 描述文字。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
icon | TNode | - | 图标。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
image | TNode | - | 图片地址。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
26 changes: 26 additions & 0 deletions packages/products/tdesign-mobile-react/src/empty/type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* eslint-disable */

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

import { TNode, TElement } from '../common';

export interface TdEmptyProps {
/**
* 操作按钮
*/
action?: TElement;
/**
* 描述文字
*/
description?: TNode;
/**
* 图标
*/
icon?: TNode;
/**
* 图片地址
*/
image?: TNode;
}
10 changes: 6 additions & 4 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -45984,7 +45984,8 @@
{
"id": 1712661318,
"platform_framework": [
"8"
"8",
"16"
],
"component": "Empty",
"field_category": 1,
Expand Down Expand Up @@ -46013,7 +46014,8 @@
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Vue(Mobile)"
"Vue(Mobile)",
"React(Mobile)"
],
"field_type_text": [
"String",
Expand All @@ -46026,7 +46028,6 @@
"1",
"2",
"4",
"16",
"32"
],
"component": "Empty",
Expand Down Expand Up @@ -46059,7 +46060,6 @@
"Vue(PC)",
"React(PC)",
"Angular(PC)",
"React(Mobile)",
"Angular(Mobile)"
],
"field_type_text": [
Expand All @@ -46071,6 +46071,7 @@
"id": 1712661364,
"platform_framework": [
"8",
"16",
"64"
],
"component": "Empty",
Expand Down Expand Up @@ -46101,6 +46102,7 @@
"field_category_text": "Props",
"platform_framework_text": [
"Vue(Mobile)",
"React(Mobile)",
"Miniprogram"
],
"field_type_text": [
Expand Down

0 comments on commit 3ec0282

Please sign in to comment.