neo-cmp-cli 1.2.17 → 1.2.19

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.2.17",
3
+ "version": "1.2.19",
4
4
  "description": "前端脚手架:自定义组件开发工具,支持react 和 vue2.0技术栈。",
5
5
  "keywords": [
6
6
  "neo-cli",
@@ -17,7 +17,9 @@ const NeoCommonModules = {
17
17
  qs: '^6.11.0',
18
18
  lodash: '^4.17.21',
19
19
  'neo-ui-component-web': '^1.0.0',
20
- 'neo-ui-common': '^1.0.0'
20
+ 'neo-ui-common': '^1.0.0',
21
+ 'neo-open-api': '^1.0.11',
22
+ amis: '^1.1.5',
21
23
  };
22
24
 
23
25
  // 根据 Neo 共享出来的依赖模块,获取 externals 配置
@@ -29,7 +29,8 @@ const neoSharedDeps = {
29
29
  moment: '^2.25.3',
30
30
  lodash: '^4.17.21',
31
31
  'react-dnd': '^11.1.3',
32
- classnames: '^2.3.2'
32
+ classnames: '^2.3.2',
33
+ 'neo-open-api': '^1.0.11'
33
34
  };
34
35
 
35
36
  const MFPlugins = [
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.2.17",
50
+ "neo-cmp-cli": "^1.2.19",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5"
@@ -51,7 +51,7 @@
51
51
  "@types/react": "^16.9.11",
52
52
  "@types/react-dom": "^16.9.15",
53
53
  "@types/axios": "^0.14.0",
54
- "neo-cmp-cli": "^1.2.17",
54
+ "neo-cmp-cli": "^1.2.19",
55
55
  "husky": "^4.2.5",
56
56
  "lint-staged": "^10.2.9",
57
57
  "prettier": "^2.0.5"
@@ -47,7 +47,7 @@
47
47
  "@commitlint/config-conventional": "^9.1.1",
48
48
  "@types/react": "^16.9.11",
49
49
  "@types/react-dom": "^16.9.15",
50
- "neo-cmp-cli": "^1.2.17",
50
+ "neo-cmp-cli": "^1.2.19",
51
51
  "husky": "^4.2.5",
52
52
  "lint-staged": "^10.2.9",
53
53
  "prettier": "^2.0.5",
@@ -101,7 +101,6 @@ module.exports = {
101
101
  },
102
102
  publish2oss: {
103
103
  // 用于构建并发布至 OSS 的相关配置
104
- cssExtract: true, // 不额外提取css文件
105
104
  /*
106
105
  【特别说明】以下配置项都自带默认值,非必填。如需自定义请自行配置。
107
106
  NODE_ENV: 'production',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo-custom-cmp-template",
3
- "version": "1.1.6",
3
+ "version": "1.1.6.beta1",
4
4
  "description": "neo自定义组件模板(react&ts技术栈)",
5
5
  "keywords": [
6
6
  "自定义组件模板",
@@ -52,7 +52,7 @@
52
52
  "@types/react": "^16.9.11",
53
53
  "@types/react-dom": "^16.9.15",
54
54
  "@types/axios": "^0.14.0",
55
- "neo-cmp-cli": "^1.2.17",
55
+ "neo-cmp-cli": "^1.2.19",
56
56
  "husky": "^4.2.5",
57
57
  "lint-staged": "^10.2.9",
58
58
  "prettier": "^2.0.5"
@@ -33,6 +33,7 @@ interface EntityDetailProps {
33
33
  columnCount?: number;
34
34
  showTitle?: boolean;
35
35
  data?: any;
36
+ entityData?: any;
36
37
  }
37
38
 
38
39
  interface FieldDescription {
@@ -122,6 +123,14 @@ export default class EntityDetail extends React.PureComponent<
122
123
  const xObjectDetailApi: any = this.props.xObjectDetailApi || {};
123
124
  if (!xObjectDetailApi.xObjectApiKey || !xObjectDetailApi.objectId) return;
124
125
 
126
+ // 方式一:直接从 props 中取实体数据源相关数据
127
+ const { entityData: detailData } = this.props;
128
+ if (detailData) {
129
+ this.setState({ detailData });
130
+ }
131
+
132
+ /*
133
+ // 方式一:使用 Neo Open API SDK 获取详情数据
125
134
  this.setState({ loading: true, error: null });
126
135
 
127
136
  try {
@@ -145,6 +154,7 @@ export default class EntityDetail extends React.PureComponent<
145
154
  loading: false,
146
155
  });
147
156
  }
157
+ */
148
158
  }
149
159
 
150
160
  getFieldLabel(apiKey: string): string {
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.2.17",
47
+ "neo-cmp-cli": "^1.2.19",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5"
@@ -46,7 +46,7 @@
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
47
  "@types/react": "^16.9.11",
48
48
  "@types/react-dom": "^16.9.15",
49
- "neo-cmp-cli": "^1.2.17",
49
+ "neo-cmp-cli": "^1.2.19",
50
50
  "husky": "^4.2.5",
51
51
  "lint-staged": "^10.2.9",
52
52
  "prettier": "^2.0.5"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@commitlint/cli": "^8.3.5",
46
46
  "@commitlint/config-conventional": "^9.1.1",
47
- "neo-cmp-cli": "^1.2.17",
47
+ "neo-cmp-cli": "^1.2.19",
48
48
  "husky": "^4.2.5",
49
49
  "lint-staged": "^10.2.9",
50
50
  "prettier": "^2.0.5",