@dckj-npm/lowcode-plugin-code-generator 1.0.2 → 1.0.3

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.
@@ -47,15 +47,14 @@ export function CodeGenActionBtn(_ref) {
47
47
  console.log('window ', ctx.workspace.window);
48
48
  console.log('skeleton ', ctx.workspace.skeleton);
49
49
  console.log('windows ', ctx.workspace.windows);
50
- console.log('resourceList ', ctx.workspace.resourceList());
51
50
  console.log('ctx ', ctx.workspace.currentProject);
52
- _context.next = 14;
51
+ _context.next = 13;
53
52
  return ctx.project.exportSchema();
54
- case 14:
53
+ case 13:
55
54
  originalSchema2 = _context.sent;
56
- _context.next = 17;
55
+ _context.next = 16;
57
56
  return fixSchema(originalSchema);
58
- case 17:
57
+ case 16:
59
58
  schema = _context.sent;
60
59
  console.log('got schema:222222 ', schema);
61
60
  console.log('got schema:33333333 ', originalSchema2);
@@ -67,13 +66,13 @@ export function CodeGenActionBtn(_ref) {
67
66
  });
68
67
 
69
68
  // 出码...
70
- _context.next = 23;
69
+ _context.next = 22;
71
70
  return CodeGenerator.generateCode({
72
71
  solution: 'vuejs3',
73
72
  schema: schema,
74
73
  flattenResult: true
75
74
  });
76
- case 23:
75
+ case 22:
77
76
  result = _context.sent;
78
77
  console.log('generated: ', result);
79
78
  setState(function (prev) {
@@ -82,10 +81,10 @@ export function CodeGenActionBtn(_ref) {
82
81
  result: result
83
82
  });
84
83
  });
85
- _context.next = 32;
84
+ _context.next = 31;
86
85
  break;
87
- case 28:
88
- _context.prev = 28;
86
+ case 27:
87
+ _context.prev = 27;
89
88
  _context.t0 = _context["catch"](0);
90
89
  console.error('failed to run code generator: ', _context.t0);
91
90
  setState(function (prev) {
@@ -94,11 +93,11 @@ export function CodeGenActionBtn(_ref) {
94
93
  error: _context.t0 instanceof Error ? _context.t0 : new Error("" + ((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message) || _context.t0))
95
94
  });
96
95
  });
97
- case 32:
96
+ case 31:
98
97
  case "end":
99
98
  return _context.stop();
100
99
  }
101
- }, _callee, null, [[0, 28]]);
100
+ }, _callee, null, [[0, 27]]);
102
101
  }));
103
102
  return function handleClick() {
104
103
  return _ref2.apply(this, arguments);
@@ -55,15 +55,14 @@ function CodeGenActionBtn(_ref) {
55
55
  console.log('window ', ctx.workspace.window);
56
56
  console.log('skeleton ', ctx.workspace.skeleton);
57
57
  console.log('windows ', ctx.workspace.windows);
58
- console.log('resourceList ', ctx.workspace.resourceList());
59
58
  console.log('ctx ', ctx.workspace.currentProject);
60
- _context.next = 14;
59
+ _context.next = 13;
61
60
  return ctx.project.exportSchema();
62
- case 14:
61
+ case 13:
63
62
  originalSchema2 = _context.sent;
64
- _context.next = 17;
63
+ _context.next = 16;
65
64
  return fixSchema(originalSchema);
66
- case 17:
65
+ case 16:
67
66
  schema = _context.sent;
68
67
  console.log('got schema:222222 ', schema);
69
68
  console.log('got schema:33333333 ', originalSchema2);
@@ -75,13 +74,13 @@ function CodeGenActionBtn(_ref) {
75
74
  });
76
75
 
77
76
  // 出码...
78
- _context.next = 23;
77
+ _context.next = 22;
79
78
  return CodeGenerator.generateCode({
80
79
  solution: 'vuejs3',
81
80
  schema: schema,
82
81
  flattenResult: true
83
82
  });
84
- case 23:
83
+ case 22:
85
84
  result = _context.sent;
86
85
  console.log('generated: ', result);
87
86
  setState(function (prev) {
@@ -90,10 +89,10 @@ function CodeGenActionBtn(_ref) {
90
89
  result: result
91
90
  });
92
91
  });
93
- _context.next = 32;
92
+ _context.next = 31;
94
93
  break;
95
- case 28:
96
- _context.prev = 28;
94
+ case 27:
95
+ _context.prev = 27;
97
96
  _context.t0 = _context["catch"](0);
98
97
  console.error('failed to run code generator: ', _context.t0);
99
98
  setState(function (prev) {
@@ -102,11 +101,11 @@ function CodeGenActionBtn(_ref) {
102
101
  error: _context.t0 instanceof Error ? _context.t0 : new Error("" + ((_context.t0 === null || _context.t0 === void 0 ? void 0 : _context.t0.message) || _context.t0))
103
102
  });
104
103
  });
105
- case 32:
104
+ case 31:
106
105
  case "end":
107
106
  return _context.stop();
108
107
  }
109
- }, _callee, null, [[0, 28]]);
108
+ }, _callee, null, [[0, 27]]);
110
109
  }));
111
110
  return function handleClick() {
112
111
  return _ref2.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/lowcode-plugin-code-generator",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "集团低代码引擎 - 浏览器出码插件",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",