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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-cmp-cli",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -64,6 +64,8 @@ export class EntityDetailModel {
64
64
  type: 'xObjectDetailApi', // 用于选取对象业务详情数据的配置项
65
65
  name: 'xObjectDetailApi',
66
66
  label: '业务详情数据',
67
+ showPage: false,
68
+ showPageSize: false,
67
69
  },
68
70
  /*
69
71
  {
@@ -65,6 +65,9 @@ export class EntityFormModel {
65
65
  */
66
66
  placeholder: '请选择实体数据源',
67
67
  custom: true,
68
+ showPage: false,
69
+ showPageSize: false,
70
+ showAutoFetchData: false,
68
71
  },
69
72
  {
70
73
  type: 'select',
@@ -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 });