neo-cmp-cli 1.3.5 → 1.3.6
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/package.json
CHANGED
|
@@ -48,9 +48,11 @@ interface EntityTableProps {
|
|
|
48
48
|
fieldDescList?: any[];
|
|
49
49
|
pageSize?: number;
|
|
50
50
|
page?: number;
|
|
51
|
+
autoFetchData?: boolean;
|
|
51
52
|
};
|
|
52
53
|
/** Neo 平台传递的数据,包含系统信息等 */
|
|
53
54
|
data?: any;
|
|
55
|
+
entityData?: any; // Neo 平台自动获取的实体数据
|
|
54
56
|
/** 是否显示新增按钮 */
|
|
55
57
|
showAddButton?: boolean;
|
|
56
58
|
/** 是否显示编辑按钮 */
|
|
@@ -318,7 +320,7 @@ export default class EntityTable extends React.PureComponent<
|
|
|
318
320
|
* @param pageSize 每页条数,默认为 10
|
|
319
321
|
*/
|
|
320
322
|
async loadData(page = 1, pageSize = 10) {
|
|
321
|
-
const { xObjectApiKey } = this.props.xObjectDataApi || {};
|
|
323
|
+
const { xObjectApiKey, autoFetchData } = this.props.xObjectDataApi || {};
|
|
322
324
|
if (!xObjectApiKey) return;
|
|
323
325
|
|
|
324
326
|
this.setState({ loading: true, error: null });
|