@ccs-ui/rc-pro 2.3.3-beta-1 → 2.3.3-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/pro-table/table.d.ts +2 -2
- package/es/pro-table/table.js +2 -0
- package/package.json +1 -1
package/es/pro-table/table.d.ts
CHANGED
|
@@ -73,8 +73,8 @@ export type CcsProTableProps<RecordType> = Pick<PropsWithCss, 'className'> & Pro
|
|
|
73
73
|
};
|
|
74
74
|
/** 异步树父级值字段 */
|
|
75
75
|
parentFieldName?: string;
|
|
76
|
-
/**
|
|
77
|
-
leafNode?:
|
|
76
|
+
/** 异步树叶子节点标识字段或函数判断 */
|
|
77
|
+
leafNode?: string | ((record: RecordType) => boolean);
|
|
78
78
|
/** ref 回调方法 */
|
|
79
79
|
proRef?: CCS.TableInstanceRef<RecordType>;
|
|
80
80
|
/** 显示序号 */
|
package/es/pro-table/table.js
CHANGED
|
@@ -58,6 +58,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
58
58
|
toolbarExtra = props.toolbarExtra,
|
|
59
59
|
_props$formItems = props.formItems,
|
|
60
60
|
formItems = _props$formItems === void 0 ? [] : _props$formItems,
|
|
61
|
+
leafNode = props.leafNode,
|
|
61
62
|
parentFieldName = props.parentFieldName,
|
|
62
63
|
_props$formInitValues = props.formInitValues,
|
|
63
64
|
formInitValues = _props$formInitValues === void 0 ? {} : _props$formInitValues;
|
|
@@ -476,6 +477,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
476
477
|
return tableTitle;
|
|
477
478
|
} : undefined
|
|
478
479
|
}),
|
|
480
|
+
leafNode: leafNode,
|
|
479
481
|
treeRef: treeRef,
|
|
480
482
|
tableRef: tableRef,
|
|
481
483
|
tableContentRef: tableContentRef,
|