neo-cmp-cli 1.2.6 → 1.2.8
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
|
@@ -11,7 +11,6 @@ const getCmpPreview = (cmpsDir, cmpName) => {
|
|
|
11
11
|
const cpmDir = resolveToCurrentRoot(`${cmpsDir}/${cmpName}`);
|
|
12
12
|
const cpmModelDir = resolveToCurrentRoot(`${cmpsDir}/${cmpName}/model`);
|
|
13
13
|
|
|
14
|
-
/*
|
|
15
14
|
if (!fs.existsSync(cpmDir)) {
|
|
16
15
|
console.error(`未找到 ${cmpName} 组件入口文件,请检查 ${cpmDir} 是否存在。`);
|
|
17
16
|
|
|
@@ -19,14 +18,6 @@ const getCmpPreview = (cmpsDir, cmpName) => {
|
|
|
19
18
|
process.exit(1);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
if (!fs.existsSync(cpmModelDir)) {
|
|
23
|
-
console.error(`未找到 ${cmpName} 组件模型文件,请检查 ${cpmModelDir} 是否存在。`);
|
|
24
|
-
|
|
25
|
-
// 退出进程
|
|
26
|
-
process.exit(1);
|
|
27
|
-
}
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
21
|
return `
|
|
31
22
|
import * as React from 'react';
|
|
32
23
|
import ReactDOM from 'react-dom';
|
|
@@ -38,9 +29,6 @@ const curDefaultComProps = new CustomCmpModel().defaultComProps;
|
|
|
38
29
|
const previewComProps = new CustomCmpModel().previewComProps;
|
|
39
30
|
const curPreviewComProps = Object.assign(curDefaultComProps, previewComProps);
|
|
40
31
|
|
|
41
|
-
/* 引入公共的静态资源 */
|
|
42
|
-
import '$public/css/base.css';
|
|
43
|
-
|
|
44
32
|
// 预览 自定义组件
|
|
45
33
|
ReactDOM.render(
|
|
46
34
|
<CustomCmp {...curPreviewComProps} />,
|
|
@@ -114,8 +114,6 @@ export default class ContactForm extends React.PureComponent<
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
console.log('提交联系人数据:', submitData);
|
|
118
|
-
|
|
119
117
|
// 调用 API 提交数据
|
|
120
118
|
const response: any = await createXObject('customContact__c', {
|
|
121
119
|
method: 'POST',
|
|
@@ -123,8 +121,6 @@ export default class ContactForm extends React.PureComponent<
|
|
|
123
121
|
});
|
|
124
122
|
|
|
125
123
|
if (response && response.code === '200') {
|
|
126
|
-
console.log('联系人创建成功:', response.data);
|
|
127
|
-
|
|
128
124
|
message.success('联系人创建成功!');
|
|
129
125
|
// 成功后重置表单
|
|
130
126
|
setTimeout(() => {
|
|
@@ -650,8 +650,6 @@ export default class XObjectTable extends React.PureComponent<
|
|
|
650
650
|
const systemInfo = curAmisData.__NeoSystemInfo || {};
|
|
651
651
|
const columns = this.generateColumns();
|
|
652
652
|
|
|
653
|
-
console.log('xobject-table-container:', this, this.props);
|
|
654
|
-
|
|
655
653
|
return (
|
|
656
654
|
<div className="xobject-table-container">
|
|
657
655
|
<Card>
|