neo-cmp-cli 1.8.26 → 1.9.1
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/dist/main2.js +1 -1
- package/dist/neo/deleteCmp.js +1 -0
- package/dist/neo/pullCmp.js +1 -0
- package/dist/neo/pushCmp.js +1 -0
- package/dist/package.json.js +1 -1
- package/package.json +1 -1
- package/template/antd-custom-cmp-template/package.json +1 -1
- package/template/develop/cmpEventFunctions.ts +257 -0
- package/template/develop/cmpEvents.ts +864 -0
- package/template/develop/commonModules.js +55 -0
- package/template/develop/pageSchema1.json +744 -0
- package/template/develop//344/272/213/344/273/266/345/212/250/344/275/234/344/277/235/345/255/230/346/265/201/347/250/213/345/210/206/346/236/220.md +390 -0
- package/template/echarts-custom-cmp-template/package.json +1 -1
- package/template/empty-custom-cmp-template/package.json +1 -1
- package/template/neo-custom-cmp-template/package.json +1 -1
- package/template/neo-custom-cmp-template/src/components/entityForm_c/index.tsx +11 -3
- package/template/neo-custom-cmp-template/src/components/entityForm_c/model.ts +10 -11
- package/template/react-custom-cmp-template/package.json +1 -1
- package/template/react-ts-custom-cmp-template/package.json +1 -1
- package/template/vue2-custom-cmp-template/package.json +1 -1
- package/test/deprecate-versions.js +1 -1
- package/dist/utils/cmpUtils/deleteCmp.js +0 -1
- package/dist/utils/cmpUtils/pullCmp.js +0 -1
- package/dist/utils/cmpUtils/pushCmp.js +0 -1
package/dist/main2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("akfun");require("lodash");const r=require("./module/neoInit.js"),i=require("./module/neoInitByCopy.js"),s=require("./module/inspect.js"),t=require("./utils/neoConfigInit.js"),o=require("./utils/neoParams.js"),u=require("./config/index.js"),l=require("./oss/publish2oss.js"),p=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("akfun");require("lodash");const r=require("./module/neoInit.js"),i=require("./module/neoInitByCopy.js"),s=require("./module/inspect.js"),t=require("./utils/neoConfigInit.js"),o=require("./utils/neoParams.js"),u=require("./config/index.js"),l=require("./oss/publish2oss.js"),p=require("./neo/pushCmp.js"),n=require("./neo/pullCmp.js"),c=require("./neo/deleteCmp.js"),d=require("./utils/cmpUtils/previewCmp.js"),b=require("./utils/generateEntries.js"),m=require("./utils/cmpUtils/createCmpByTemplate.js"),a=require("./utils/projectUtils/createCmpProjectByTemplate.js"),q=require("./utils/projectUtils/openProject.js"),_=require("./utils/configureNeoBuild.js"),y=require("./utils/common.js"),g=require("./utils/projectNameValidator.js"),j=require("./utils/cmpUtils/getCmpTypeByDir.js"),v=require("./neo/neoService.js"),T=require("./neo/neoLogin.js"),f=require("./utils/projectUtils/hasNeoProject.js");var C,x;exports.__require=function(){if(x)return C;x=1;const h=e,E=r.__require(),N=i.__require(),w=s.__require(),B=t.__require(),{consoleTag:D}=o.__require(),P=u.__require(),k=l.__require(),I=p.__require(),L=n.__require(),M=c.__require(),O=d.__require(),U=b.__require(),S=m.__require(),R=a.__require(),A=q.__require(),{configureNeoBuild:V}=_.__require(),{errorLog:z,successLog:F}=y.__require(),{validateProjectName:G}=g.__require(),H=j.__require(),J=v.__require(),K=T.__require(),Q=f.__require();function W(e,r){const{entryType:i,cmpType:s}=r;let t=[],o={};try{const{entries:r,cmpTypes:u,defaultExports:l}=U({configEntry:e.entry,disableAutoRegister:e.disableAutoRegister,componentsDir:P.componentsDir,entryType:i,cmpType:s});r&&Object.keys(r).length>0&&(e.entry=r,t=u,console.info("已自动生成 entry 入口配置:",r)),o=l}catch(e){z(e.message),process.exit(1)}return{cmpTypes:t,defaultExports:o}}function X(e){return Object.assign(P.build2lib,e)}return C={neoInit:E,neoInitByCopy:N,inspect:w,neoConfigInit:B,projectConfig:P,consoleTag:D,errorLog:z,successLog:F,validateProjectName:G,getCmpTypeByDir:H,NeoService:J,NeoLoginService:K,hasNeoProject:Q,createCmpProjectByTemplate:R,createCmpByTemplate:S,dev:()=>{P.dev||(z("未找到 dev 相关配置。"),process.exit(1)),h.dev(P,D)},previewCmp:e=>{e||(z("请输入要预览的组件名称。"),process.exit(1)),P.preview||(z("未找到 preview 相关配置。"),process.exit(1)),P.dev=Object.assign(P.dev,P.preview),delete P.preview,O(P,e)},linkDebug:()=>{P.linkDebug||(z("未找到 debug 相关配置。"),process.exit(1)),P.dev=Object.assign(P.dev,P.linkDebug),delete P.linkDebug,delete P.dev.ignoreNodeModules,P.webpack.ignoreNodeModules=!1;const{cmpTypes:e,defaultExports:r}=W(P.dev,{entryType:"linkDebug"});V(P.dev,{cmpTypes:e,defaultExports:r,verbose:!0,excludeModel:!1}),h.dev(P,D)},build:()=>h.build("build",P,D),build2lib:()=>{W(P.build2lib,{entryType:"widget"}),h.build("lib",P,D)},publish2oss:e=>{const r=P.publish2oss;P.build2lib=X(r);const{cmpTypes:i,defaultExports:s}=W(P.build2lib,{entryType:"widget",cmpType:e});V(P.build2lib,{cmpTypes:i,defaultExports:s,verbose:!0,excludeModel:!0}),h.build("lib",P,D,()=>{k(r.ossType,r.ossConfig,r.assetsRoot)})},pushCmp:e=>{const{neoConfig:r,pushCmp:i}=P,s=Object.assign({},i,r);P.build2lib=X(s);const{cmpTypes:t,defaultExports:o}=W(P.build2lib,{entryType:"widget",cmpType:e});V(P.build2lib,{cmpTypes:t,defaultExports:o,verbose:!1,excludeModel:!0}),h.build("lib",P,D,()=>{I(s,e)})},pullCmp:(e,r)=>{L(e,P.neoConfig,r)},deleteCmp:(e,r)=>{M(e,P.neoConfig,r)},build2esm:()=>h.build2esm(P,D),openEditor:A},C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("ora"),r=require("./neoService.js"),t=require("../utils/common.js");var o,s;exports.__require=function(){if(s)return o;s=1;const i=e,n=r.__require(),{errorLog:c,successLog:u}=t.__require();return o=async(e,r,t)=>{if(!r)return void c("未找到 NeoCRM 平台授权配置(neo.config.js / authConfig)。");const o=i("正在删除组件...").start();try{let s=t,i=[],a=null;t?i=t.cmpList||[]:(s=new n(r),o.info("正在获取自定义组件列表..."),i=await s.getCustomCmpList()),0===i.length&&(c("删除失败,当前租户暂无任何自定义组件。",o),process.exit(1)),a=s.getCmpInfoByCmpType(e),a||(c(`删除失败,当前租户不存在${e}自定义组件。`,o),process.exit(1)),o.info(`正在删除${e}自定义组件...`),await s.deleteCmp(e),u(`已成功删除${e}自定义组件!\n`,o)}catch(e){c(`删除自定义组件失败: ${e.message}`,o),process.exit(1)}},o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("lodash");const e=require("akfun"),r=require("ora"),t=require("./neoService.js"),o=require("../utils/common.js"),i=require("../utils/pathUtils.js"),s=require("../utils/cmpUtils/getCmpTypeByDir.js"),n=require("../utils/cmpUtils/createCmpByZip.js");var c,u;exports.__require=function(){if(u)return c;u=1;const{getConfigObj:a}=e,p=r,m=t.__require(),{getFramework:f,errorLog:g,successLog:l}=o.__require(),{catchCurPackageJson:q}=i.__require(),C=s.__require(),_=n.__require(),y=f(a(q()).framework);return c=async(e,r,t)=>{if(!r)return void g("未找到 NeoCRM 平台授权配置(neo.config.js / authConfig)。");C().indexOf(e)>-1&&(g(`当前项目目录中已存在${e}自定义组件。(./src/components 目录下)`),process.exit(1));const o=p("正在拉取组件...").start();try{let i=t,s=[],n={},c=null;t?(s=t.cmpList||[],n=t.cmpInfoMap||{}):(i=new m(r),o.info("正在获取自定义组件列表..."),s=await i.getCustomCmpList(),n=i.cmpInfoMap||{}),0===s.length&&(g("拉取失败,当前租户暂无任何自定义组件。",o),process.exit(1)),c=i.getCmpInfoByCmpType(e),c||(g(`拉取失败,当前租户不存在${e}自定义组件。`,o),process.exit(1)),c.framework&&c.framework!==y&&(g(`拉取失败,${e}自定义组件与当前项目技术栈不一致。`,o),process.exit(1));const u=i.getCodeLibByCmpType(e),a=await i.ensureValidToken();await _(u,{token:a,cmpName:e,componentBaseDir:"./src/components"})||(g(`拉取失败,${e}自定义组件源码解析失败,请检查源码文件是否正确。`,o),process.exit(1)),l(`已成功拉取${e}自定义组件!\n`,o)}catch(e){throw g(`拉取自定义组件失败: ${e.message}`,o),e}},c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("node:fs"),t=require("node:path"),s=require("lodash"),o=require("akfun"),r=require("ora"),i=require("./neoService.js"),a=require("../utils/common.js"),n=require("../utils/pathUtils.js"),c=require("../utils/projectUtils/createCmpProjectZip.js");var l,p;exports.__require=function(){if(p)return l;p=1;const g=e,u=t,m=s,{getConfigObj:d}=o,w=r,h=i.__require(),{getFramework:y,errorLog:b,successLog:v}=a.__require(),{catchCurPackageJson:C}=n.__require(),f=c.__require(),T=d(C()),$=(e=[])=>e.map(e=>({label:e.label,description:e.description,propSchema:JSON.stringify(e)})),q=(e=[],t)=>e&&0!==e.length?e.map(e=>({...e,componentType:t,eventCategory:e.eventCategory||2,pageType:e.pageType||1,targetDevice:e.targetDevice||1,eventParams:e.eventParams||[]})):[];return l=async(e,t)=>{const s=w("正在发布组件...").start();try{let o,r=new h(e);await r.ensureValidToken(),s.start("[1/4] 打包源码文件(含单个自定义组件源码)...");try{o=f(t,process.cwd(),e.assetsRoot),o?v(`[1/4] 源码文件打包完成: ${u.basename(o)}。`,s):b("[1/4] 源码文件打包失败,未返回 zip 文件路径。",s)}catch(e){b("[1/4] 源码文件打包失败。",s)}s.start("[2/4] 获取自定义组件构建产物...");const i=await r.getCmpAssets(t);let a;s.start("[3/4] 构建组件数据...");try{a=await(async(e,t)=>{if(!t||!t.cmpType)return b("自定义组件信息或组件名称不能为空"),null;const{cmpType:s}=t;if(!e||!g.existsSync(e))return b(`未找到自定义组件目录: ${e}`),null;const o=m.camelCase(s),r=u.join(e,`${o}Model.js`),i=globalThis.window;globalThis.window||(globalThis.window={console:console,neoRequire:()=>{},postMessage:()=>{}});try{g.existsSync(r)?require(r):(b(`未找到自定义组件模型文件,请检查以下路径是否存在:${r}`),process.exit(1)),globalThis.window&&globalThis.window.NEOEditorCustomModels||(b(`模型文件未导出有效模型方法(CatchCustomCmpModelClass),模型文件地址: ${r} `),process.exit(1));const e=globalThis.window.NEOEditorCustomModels[s];e||(b(`未找到自定义组件模型类(${s}),模型文件地址: ${r} `),process.exit(1));const o=new e;o||(b(`未找到自定义组件模型信息(${s}),模型文件地址: ${r} `),process.exit(1));const i={...t,version:T.version||"1.0.0",framework:T.framework?y(T.framework):0,label:o.label||s,description:o.description||"",componentCategory:(o.tags||["自定义组件"]).join(","),targetPage:o.targetPage||["customPage"],targetObject:o.targetObject||["all"],targetApplication:o.targetApplication||["all"],targetDevice:o.targetDevice||"all",iconUrl:o.iconUrl||o.iconUrl,defaultProps:JSON.stringify(o.defaultComProps||{}),previewProps:JSON.stringify(o.previewComProps||{}),props:$(o.propsSchema||[]),events:q(o.events||[],s),functions:o.functions||o.actions||[],exposedToDesigner:void 0===o.exposedToDesigner||o.exposedToDesigner,namespace:o.namespace||"neo-cmp-cli",enableDuplicate:void 0===o.enableDuplicate||o.enableDuplicate};return console.log(`自定义组件模型信息(${s}):`,m.omit(i,["assetFile","modelAssetFile","cssAssetFile","codeLibFile"])),i}catch(e){return b(`自定义组件模型文件解析失败 (${r||"未知路径"}): ${e.message}`),b(e.stack),null}finally{void 0===i?delete globalThis.window:globalThis.window=i}})(e.assetsRoot,i),a?v("[3/4] 组件数据构建完成。",s):b(`[3/4] 未获取到自定义组件模型信息(${t})。`,s)}catch(e){b(`[3/4] 组件数据构建失败: ${e.message}`,s)}s.start("[4/4] 保存组件信息到 NeoCRM 平台...");try{await r.updateCustomComponent(a),v("[4/4] 组件信息保存成功",s)}catch(e){b("[4/4] 组件信息保存失败",s)}const{tenant_id:n,instance_uri:c}=r.tokenCache||{};console.log(`\n✅ 自定义组件发布成功!\n(当前租户 ID: ${n},所在租户的 API 域名: ${c}。)`)}catch(e){try{s&&s.isSpinning&&b(`❌ 自定义组件发布失败: ${e.message}`,s)}catch{b(`\n❌ 自定义组件发布失败: ${e.message}`)}throw e}},l};
|
package/dist/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e="1.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e="1.9.0";const o={version:e};exports.default=o,exports.version=e;
|
package/package.json
CHANGED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件事件动作函数
|
|
3
|
+
* - apiKey: 事件动作名称
|
|
4
|
+
* - label: 事件动作标签
|
|
5
|
+
* - description: 描述
|
|
6
|
+
* - funcInParams: 事件动作入参
|
|
7
|
+
* - funcOutParams: 事件动作出参
|
|
8
|
+
* - labelKey: 事件动作标签(对应国际化键)
|
|
9
|
+
* - helpText: 帮助文本
|
|
10
|
+
* - helpTextKey: 帮助文本键(对应国际化键)
|
|
11
|
+
*/
|
|
12
|
+
const functions = [
|
|
13
|
+
{
|
|
14
|
+
componentId: null,
|
|
15
|
+
helpText: '',
|
|
16
|
+
apiKey: 'logout',
|
|
17
|
+
custom: false,
|
|
18
|
+
funcInParams: null,
|
|
19
|
+
description: '',
|
|
20
|
+
label: '登出',
|
|
21
|
+
cmpKeyIdentifier: '',
|
|
22
|
+
funcOutParams: null,
|
|
23
|
+
helpTextKey: '',
|
|
24
|
+
body: null,
|
|
25
|
+
pageType: 1,
|
|
26
|
+
id: 13095000000001,
|
|
27
|
+
funcScope: 1,
|
|
28
|
+
labelKey: 'XdMDNeoFunction.logout'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
componentId: null,
|
|
32
|
+
helpText: '',
|
|
33
|
+
apiKey: 'createRecord',
|
|
34
|
+
custom: false,
|
|
35
|
+
funcInParams:
|
|
36
|
+
'[{"apiKey":"xObjectName","label":"实体apiKey","type":"String","required":true},{"apiKey":"busiType","label":"业务类型apiKey","type":"String","required":true}]',
|
|
37
|
+
description: '',
|
|
38
|
+
label: '新建数据',
|
|
39
|
+
cmpKeyIdentifier: '',
|
|
40
|
+
funcOutParams: '[]',
|
|
41
|
+
helpTextKey: '',
|
|
42
|
+
body: null,
|
|
43
|
+
pageType: 1,
|
|
44
|
+
id: 13095000000002,
|
|
45
|
+
funcScope: 1,
|
|
46
|
+
labelKey: 'XdMDNeoFunction.createRecord'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
componentId: null,
|
|
50
|
+
helpText: '',
|
|
51
|
+
apiKey: 'editRecord',
|
|
52
|
+
custom: false,
|
|
53
|
+
funcInParams:
|
|
54
|
+
'[{"apiKey":"xObjectName","label":"实体apiKey","type":"String","required":true},{"apiKey":"busiType","label":"业务类型apiKey","type":"String","required":true},{"apiKey":"recordId","label":"数据Id","type":"String","required":true}]',
|
|
55
|
+
description: '',
|
|
56
|
+
label: '编辑数据',
|
|
57
|
+
cmpKeyIdentifier: '',
|
|
58
|
+
funcOutParams: '[]',
|
|
59
|
+
helpTextKey: '',
|
|
60
|
+
body: null,
|
|
61
|
+
pageType: 1,
|
|
62
|
+
id: 13095000000003,
|
|
63
|
+
funcScope: 1,
|
|
64
|
+
labelKey: 'XdMDNeoFunction.editRecord'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
componentId: null,
|
|
68
|
+
helpText: '',
|
|
69
|
+
apiKey: 'cloneRecord',
|
|
70
|
+
custom: false,
|
|
71
|
+
funcInParams:
|
|
72
|
+
'[{"apiKey":"xObjectName","label":"实体apiKey","type":"String","required":true},{"apiKey":"busiType","label":"业务类型apiKey","type":"String","required":true},{"apiKey":"recordId","label":"原始数据Id","type":"String","required":true}]',
|
|
73
|
+
description: '',
|
|
74
|
+
label: '复制数据',
|
|
75
|
+
cmpKeyIdentifier: '',
|
|
76
|
+
funcOutParams: '[]',
|
|
77
|
+
helpTextKey: '',
|
|
78
|
+
body: null,
|
|
79
|
+
pageType: 1,
|
|
80
|
+
id: 13095000000004,
|
|
81
|
+
funcScope: 1,
|
|
82
|
+
labelKey: 'XdMDNeoFunction.cloneRecord'
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
componentId: null,
|
|
86
|
+
helpText: '',
|
|
87
|
+
apiKey: 'showToast',
|
|
88
|
+
custom: false,
|
|
89
|
+
funcInParams:
|
|
90
|
+
'[{"apiKey":"type","options":[{"label":"成功","value":"success"},{"label":"警告","value":"warning"},{"label":"失败","value":"error"}],"label":"提示类型","type":"String","required":false},{"apiKey":"msg","label":"提示内容","type":"String","required":true},{"apiKey":"showTime","label":"停留时长(s)","type":"Number","required":false}]',
|
|
91
|
+
description: '',
|
|
92
|
+
label: '弹出提示信息',
|
|
93
|
+
cmpKeyIdentifier: '',
|
|
94
|
+
funcOutParams: '[]',
|
|
95
|
+
helpTextKey: '',
|
|
96
|
+
body: null,
|
|
97
|
+
pageType: 1,
|
|
98
|
+
id: 13095000000005,
|
|
99
|
+
funcScope: 1,
|
|
100
|
+
labelKey: 'XdMDNeoFunction.showToast'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
componentId: null,
|
|
104
|
+
helpText: '',
|
|
105
|
+
apiKey: 'showLoading',
|
|
106
|
+
custom: false,
|
|
107
|
+
funcInParams: '[]',
|
|
108
|
+
description: '',
|
|
109
|
+
label: '弹出loading框',
|
|
110
|
+
cmpKeyIdentifier: '',
|
|
111
|
+
funcOutParams: '[]',
|
|
112
|
+
helpTextKey: '',
|
|
113
|
+
body: null,
|
|
114
|
+
pageType: 1,
|
|
115
|
+
id: 13095000000009,
|
|
116
|
+
funcScope: 1,
|
|
117
|
+
labelKey: 'XdMDNeoFunction.showLoading'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
componentId: null,
|
|
121
|
+
helpText: '',
|
|
122
|
+
apiKey: 'hideLoading',
|
|
123
|
+
custom: false,
|
|
124
|
+
funcInParams: '[]',
|
|
125
|
+
description: '',
|
|
126
|
+
label: '关闭loading框',
|
|
127
|
+
cmpKeyIdentifier: '',
|
|
128
|
+
funcOutParams: '[]',
|
|
129
|
+
helpTextKey: '',
|
|
130
|
+
body: null,
|
|
131
|
+
pageType: 1,
|
|
132
|
+
id: 13095000000010,
|
|
133
|
+
funcScope: 1,
|
|
134
|
+
labelKey: 'XdMDNeoFunction.hideLoading'
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
componentId: null,
|
|
138
|
+
helpText: '',
|
|
139
|
+
apiKey: 'navigatePageTo',
|
|
140
|
+
custom: false,
|
|
141
|
+
funcInParams:
|
|
142
|
+
'[{"apiKey":"url","label":"打开的地址","type":"String","required":true},{"apiKey":"target","options":[{"label":"当前页跳转","value":0},{"label":"新页签打开","value":1}],"label":"打开页面的方式","type":"Number","required":false}]',
|
|
143
|
+
description: '',
|
|
144
|
+
label: '打开指定页面',
|
|
145
|
+
cmpKeyIdentifier: '',
|
|
146
|
+
funcOutParams: '[]',
|
|
147
|
+
helpTextKey: '',
|
|
148
|
+
body: null,
|
|
149
|
+
pageType: 1,
|
|
150
|
+
id: 13095000000011,
|
|
151
|
+
funcScope: 1,
|
|
152
|
+
labelKey: 'XdMDNeoFunction.navigatePageTo'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
componentId: null,
|
|
156
|
+
helpText: '',
|
|
157
|
+
apiKey: 'log',
|
|
158
|
+
custom: false,
|
|
159
|
+
funcInParams: '[{"apiKey":"msg","label":"提示的消息内容","type":"String","required":true}]',
|
|
160
|
+
description: '',
|
|
161
|
+
label: '打印log信息',
|
|
162
|
+
cmpKeyIdentifier: '',
|
|
163
|
+
funcOutParams: '[]',
|
|
164
|
+
helpTextKey: '',
|
|
165
|
+
body: null,
|
|
166
|
+
pageType: 1,
|
|
167
|
+
id: 13095000000012,
|
|
168
|
+
funcScope: 1,
|
|
169
|
+
labelKey: 'XdMDNeoFunction.log'
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
componentId: null,
|
|
173
|
+
helpText: '',
|
|
174
|
+
apiKey: 'warn',
|
|
175
|
+
custom: false,
|
|
176
|
+
funcInParams: '[{"apiKey":"msg","label":"提示的消息内容","type":"String","required":true}]',
|
|
177
|
+
description: '',
|
|
178
|
+
label: '打印warn信息',
|
|
179
|
+
cmpKeyIdentifier: '',
|
|
180
|
+
funcOutParams: '[]',
|
|
181
|
+
helpTextKey: '',
|
|
182
|
+
body: null,
|
|
183
|
+
pageType: 1,
|
|
184
|
+
id: 13095000000013,
|
|
185
|
+
funcScope: 1,
|
|
186
|
+
labelKey: 'XdMDNeoFunction.warn'
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
componentId: null,
|
|
190
|
+
helpText: '',
|
|
191
|
+
apiKey: 'info',
|
|
192
|
+
custom: false,
|
|
193
|
+
funcInParams: '[{"apiKey":"msg","label":"提示的消息内容","type":"String","required":true}]',
|
|
194
|
+
description: '',
|
|
195
|
+
label: '打印info信息',
|
|
196
|
+
cmpKeyIdentifier: '',
|
|
197
|
+
funcOutParams: '[]',
|
|
198
|
+
helpTextKey: '',
|
|
199
|
+
body: null,
|
|
200
|
+
pageType: 1,
|
|
201
|
+
id: 13095000000014,
|
|
202
|
+
funcScope: 1,
|
|
203
|
+
labelKey: 'XdMDNeoFunction.info'
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
componentId: null,
|
|
207
|
+
helpText: '',
|
|
208
|
+
apiKey: 'error',
|
|
209
|
+
custom: false,
|
|
210
|
+
funcInParams: '[{"apiKey":"msg","label":"提示的消息内容","type":"String","required":true}]',
|
|
211
|
+
description: '',
|
|
212
|
+
label: '打印error信息',
|
|
213
|
+
cmpKeyIdentifier: '',
|
|
214
|
+
funcOutParams: '[]',
|
|
215
|
+
helpTextKey: '',
|
|
216
|
+
body: null,
|
|
217
|
+
pageType: 1,
|
|
218
|
+
id: 13095000000015,
|
|
219
|
+
funcScope: 1,
|
|
220
|
+
labelKey: 'XdMDNeoFunction.error'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
componentId: null,
|
|
224
|
+
helpText: '',
|
|
225
|
+
apiKey: 'popupIframe',
|
|
226
|
+
custom: false,
|
|
227
|
+
funcInParams:
|
|
228
|
+
'[{"apiKey":"url","label":"页面地址","type":"String","required":true},{"apiKey":"title","label":"窗口标题","type":"String","required":true},{"apiKey":"height","label":"窗口高度","type":"String","required":false},{"apiKey":"width","label":"窗口宽度","type":"String","required":false}]',
|
|
229
|
+
description: '',
|
|
230
|
+
label: '弹出窗口',
|
|
231
|
+
cmpKeyIdentifier: '',
|
|
232
|
+
funcOutParams: '[]',
|
|
233
|
+
helpTextKey: '',
|
|
234
|
+
body: null,
|
|
235
|
+
pageType: 1,
|
|
236
|
+
id: 13095000000016,
|
|
237
|
+
funcScope: 1,
|
|
238
|
+
labelKey: 'XdMDNeoFunction.popupIframe'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
componentId: null,
|
|
242
|
+
helpText: '',
|
|
243
|
+
apiKey: 'returnValue',
|
|
244
|
+
custom: false,
|
|
245
|
+
funcInParams: '[{"apiKey":"value","label":"需要返回的内容","type":"Boolean","required":true}]',
|
|
246
|
+
description: '',
|
|
247
|
+
label: '返回值',
|
|
248
|
+
cmpKeyIdentifier: '',
|
|
249
|
+
funcOutParams: '[]',
|
|
250
|
+
helpTextKey: '',
|
|
251
|
+
body: null,
|
|
252
|
+
pageType: 1,
|
|
253
|
+
id: 13095000000017,
|
|
254
|
+
funcScope: 1,
|
|
255
|
+
labelKey: 'XdMDNeoFunction.returnValue'
|
|
256
|
+
}
|
|
257
|
+
]
|