Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions helper/attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -4816,11 +4816,11 @@
},
"t-primary-table/async-loading": {
"type": "String|TNode",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容\n\n[docs](https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props)"
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容\n\n[docs](https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props)"
},
"t-table/async-loading": {
"type": "String|TNode",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容\n\n[docs](https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props)"
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容\n\n[docs](https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props)"
},
"t-primary-table/column-controller": {
"type": "Object",
Expand Down
12 changes: 6 additions & 6 deletions helper/web-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -10950,7 +10950,7 @@
"props": [
{
"name": "async-loading",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容",
"doc-url": "https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props",
"type": "'loading' | 'load-more' | TNode"
},
Expand Down Expand Up @@ -11643,12 +11643,12 @@
"slots": [
{
"name": "asyncLoading",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"doc-url": "https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props"
},
{
"name": "async-loading",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"doc-url": "https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props"
},
{
Expand Down Expand Up @@ -11783,7 +11783,7 @@
"props": [
{
"name": "async-loading",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容",
"doc-url": "https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props",
"type": "'loading' | 'load-more' | TNode"
},
Expand Down Expand Up @@ -12476,12 +12476,12 @@
"slots": [
{
"name": "asyncLoading",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"doc-url": "https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props"
},
{
"name": "async-loading",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"description": "async loading state\n\n异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容类型和参数:'loading' | 'load-more' | TNode",
"doc-url": "https://tdesign.tencent.com/vue/components/table?tab=api#primarytable-props"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/table/primary-table-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TdPrimaryTableProps } from '../table/type';
import { PropType } from 'vue';

export default {
/** 异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容 */
/** 异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容 */
asyncLoading: {
type: [String, Function] as PropType<TdPrimaryTableProps['asyncLoading']>,
},
Expand Down
2 changes: 1 addition & 1 deletion src/table/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ width | String / Number | - | 列宽,可以作为最小宽度使用。当列

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
asyncLoading | String / Slot / Function | - | 异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容。TS 类型:`'loading' \| 'load-more' \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
asyncLoading | String / Slot / Function | - | 异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容。TS 类型:`'loading' \| 'load-more' \| TNode`。[通用类型定义](https://github.com/Tencent/tdesign-vue/blob/develop/src/common.ts) | N
columnController | Object | - | 自定义显示列控制器,值为空不会显示。具体属性请看下方 `TableColumnController` 文档。TS 类型:`TableColumnController` | N
columnControllerVisible | Boolean | undefined | 是否显示列配置弹框控制器,只要该属性值不为 `undefined`,弹框的显示/隐藏完全由该属性控制。支持语法糖 `.sync` | N
columns | Array | [] | 列配置,泛型 T 指表格数据类型。TS 类型:`Array<PrimaryTableCol<T>>` | N
Expand Down
2 changes: 1 addition & 1 deletion src/table/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export interface BaseTableCol<T extends TableRowData = TableRowData> {
export interface TdPrimaryTableProps<T extends TableRowData = TableRowData>
extends Omit<TdBaseTableProps<T>, 'columns' | 'onCellClick'> {
/**
* 异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `loading-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容
* 异步加载状态。值为 `loading` 显示默认文字 “正在加载中,请稍后”,值为 `load-more` 显示“点击加载更多”,值为其他,表示完全自定义异步加载区域内容
*/
asyncLoading?: 'loading' | 'load-more' | TNode;
/**
Expand Down
Loading