Skip to content

Commit

Permalink
docs(Cell): update property description (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jan 21, 2025
1 parent 4fd7a29 commit 70fc00b
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/products/tdesign-miniprogram/src/cell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- | -- | -- | -- | --
style | Object | - | 样式 | N
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
align | String | middle | 内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N
align | String | middle | 右侧内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N
arrow | Boolean / Object | false | 是否显示右侧箭头 | N
bordered | Boolean | true | 是否显示下边框 | N
description | String / Slot | - | 下方内容描述。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-miniprogram/src/cell/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { TdCellProps } from './type';
const props: TdCellProps = {
/** 内容的对齐方式,默认居中对齐 */
/** 右侧内容的对齐方式,默认居中对齐 */
align: {
type: String,
value: 'middle',
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-miniprogram/src/cell/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

export interface TdCellProps {
/**
* 内容的对齐方式,默认居中对齐
* 右侧内容的对齐方式,默认居中对齐
* @default middle
*/
align?: {
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-mobile-react/src/cell/cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- | -- | -- | -- | --
className | String | - | 类名 | N
style | Object | - | 样式,TS 类型:`React.CSSProperties` | N
align | String | middle | 内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N
align | String | middle | 右侧内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N
arrow | Boolean | false | 是否显示右侧箭头 | N
bordered | Boolean | true | 是否显示下边框 | N
description | TNode | - | 下方内容描述。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-react/blob/develop/src/common.ts) | N
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-mobile-react/src/cell/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { MouseEvent } from 'react';

export interface TdCellProps {
/**
* 内容的对齐方式,默认居中对齐
* 右侧内容的对齐方式,默认居中对齐
* @default middle
*/
align?: 'top' | 'middle' | 'bottom';
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-mobile-vue/src/cell/cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
align | String | middle | 内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N
align | String | middle | 右侧内容的对齐方式,默认居中对齐。可选项:top/middle/bottom | N
arrow | Boolean | false | 是否显示右侧箭头 | N
bordered | Boolean | true | 是否显示下边框 | N
description | String / Slot / Function | - | 下方内容描述。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-mobile-vue/src/cell/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TdCellProps } from './type';
import { PropType } from 'vue';

export default {
/** 内容的对齐方式,默认居中对齐 */
/** 右侧内容的对齐方式,默认居中对齐 */
align: {
type: String as PropType<TdCellProps['align']>,
default: 'middle' as TdCellProps['align'],
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-mobile-vue/src/cell/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TNode } from '../common';

export interface TdCellProps {
/**
* 内容的对齐方式,默认居中对齐
* 右侧内容的对齐方式,默认居中对齐
* @default middle
*/
align?: 'top' | 'middle' | 'bottom';
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -22678,7 +22678,7 @@
],
"field_default_value": "middle",
"field_enum": "top/middle/bottom",
"field_desc_zh": "内容的对齐方式,默认居中对齐",
"field_desc_zh": "右侧内容的对齐方式,默认居中对齐",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
Expand Down

0 comments on commit 70fc00b

Please sign in to comment.