@opentiny/tiny-engine-plugin-bridge 1.0.3 → 1.0.4

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/index.js CHANGED
@@ -1,19 +1,18 @@
1
1
  import "./style.css";
2
- import { reactive as j, ref as V, watchEffect as $, resolveComponent as l, openBlock as h, createElementBlock as x, createElementVNode as v, createVNode as s, Fragment as ce, renderList as le, normalizeClass as ie, withModifiers as Q, toDisplayString as w, createCommentVNode as T, pushScopeId as ee, popScopeId as te, computed as C, watch as de, onMounted as pe, createBlock as R, withCtx as r, withDirectives as ue, vShow as me, createTextVNode as k, nextTick as _e } from "vue";
3
- import { Search as ge, Form as ye, Input as fe, Button as ve, FormItem as he, Checkbox as be, Switch as Ee, Tooltip as Re, RadioGroup as Ce, Radio as Te, Tabs as Ve, TabItem as Se } from "@opentiny/vue";
4
- import { PluginSetting as Ue, VueMonaco as ke, SvgButton as ne, PluginPanel as Ie, LinkButton as xe } from "@opentiny/tiny-engine-common";
5
- import { useApp as S, useResource as N, useNotify as B, useModal as we, getGlobalConfig as Ne, useHelp as Be } from "@opentiny/tiny-engine-controller";
6
- import { isVsCodeEnv as oe } from "@opentiny/tiny-engine-common/js/environments";
7
- import { updateUtils as X, deleteUtils as Oe } from "@opentiny/tiny-engine-canvas";
8
- import { useHttp as Pe } from "@opentiny/tiny-engine-http";
9
- import { generateBridge as Le, generateUtil as Fe } from "@opentiny/tiny-engine-common/js/vscodeGenerateFile";
10
- import { iconUnknow as Ae } from "@opentiny/vue-icon";
11
- import { theme as De } from "@opentiny/tiny-engine-controller/adapter";
12
- const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${t}&category=${n}`), Ge = (t) => P.post("/app-center/api/apps/extension/create", t), Me = (t) => P.post("/app-center/api/apps/extension/update", t), qe = (t) => P.get(`/app-center/api/apps/extension/delete?${t}`), ze = (t) => {
13
- P.get(`/app-center/api/apps/schema/${t}`).then((n) => {
14
- Le(n.bridge), Fe(n.utils);
2
+ import { reactive as j, ref as T, watchEffect as X, resolveComponent as i, openBlock as h, createElementBlock as L, createElementVNode as f, createVNode as s, withCtx as l, Fragment as ae, renderList as se, normalizeClass as re, withModifiers as K, toDisplayString as I, computed as C, watch as le, onMounted as ie, createBlock as R, withDirectives as ce, vShow as de, createTextVNode as U, createCommentVNode as k, nextTick as pe } from "vue";
3
+ import { Search as ue, Form as me, Input as ge, Button as _e, FormItem as ye, Checkbox as fe, Switch as ve, Tooltip as he, RadioGroup as be, Radio as Ee, Tabs as Re, TabItem as Ce } from "@opentiny/vue";
4
+ import { SearchEmpty as Te, PluginSetting as Se, VueMonaco as Ve, SvgButton as Z, PluginPanel as Ue, LinkButton as ke } from "@opentiny/tiny-engine-common";
5
+ import { useApp as S, useCanvas as $, useResource as w, useNotify as N, useModal as xe, getGlobalConfig as Ie, useHelp as we } from "@opentiny/tiny-engine-controller";
6
+ import { isVsCodeEnv as ee } from "@opentiny/tiny-engine-controller/js/environments";
7
+ import { useHttp as Ne } from "@opentiny/tiny-engine-http";
8
+ import { generateBridge as Be, generateUtil as Oe } from "@opentiny/tiny-engine-controller/js/vscodeGenerateFile";
9
+ import { iconSearch as Pe, iconUnknow as Le } from "@opentiny/vue-icon";
10
+ import { theme as Ae } from "@opentiny/tiny-engine-controller/adapter";
11
+ const O = Ne(), Fe = (n, t) => O.get(`/app-center/api/apps/extension/list?app=${n}&category=${t}`), De = (n) => O.post("/app-center/api/apps/extension/create", n), Ye = (n) => O.post("/app-center/api/apps/extension/update", n), Ge = (n) => O.get(`/app-center/api/apps/extension/delete?${n}`), Me = (n) => {
12
+ O.get(`/app-center/api/apps/schema/${n}`).then((t) => {
13
+ Be(t.bridge), Oe(t.utils);
15
14
  });
16
- }, i = j({
15
+ }, d = j({
17
16
  actionType: "",
18
17
  type: "",
19
18
  category: "",
@@ -22,7 +21,7 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
22
21
  resourceNames: {},
23
22
  refresh: !1,
24
23
  id: S().appInfoState.selectedId
25
- }), Z = {
24
+ }), Q = {
26
25
  name: "",
27
26
  type: "npm",
28
27
  content: {
@@ -33,7 +32,7 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
33
32
  destructuring: !0,
34
33
  main: ""
35
34
  }
36
- }, He = {
35
+ }, qe = {
37
36
  name: "",
38
37
  type: "function",
39
38
  content: {
@@ -43,66 +42,69 @@ const P = Pe(), Ye = (t, n) => P.get(`/app-center/api/apps/extension/list?app=${
43
42
  }, E = {
44
43
  Util: "utils",
45
44
  Bridge: "bridge"
46
- }, F = {
45
+ }, A = {
47
46
  Npm: "npm",
48
47
  Function: "function"
49
- }, je = {
48
+ }, ze = {
50
49
  [E.Util]: "新建工具类",
51
50
  [E.Bridge]: "新建桥接源"
52
- }, O = {
51
+ }, B = {
53
52
  Read: "read",
54
53
  Edit: "edit"
55
- }, Je = (t) => i.resourceNames[t], We = (t, n) => {
56
- i.resourceNames[t] = n;
57
- }, Ke = (t) => {
58
- const n = S().appInfoState.selectedId;
59
- return Ye(n, t);
60
- }, M = () => i.actionType, D = (t) => {
61
- i.actionType = t;
62
- }, Qe = () => i.resource, Y = (t = Z) => {
63
- t || (t = i.category === F.Function ? He : Z), i.resource = t;
64
- }, A = () => i.type, q = (t) => {
65
- i.type = t;
66
- }, z = (t) => {
67
- i.category = t;
68
- }, G = () => i.category, H = (...t) => {
69
- oe && ze(...t);
70
- }, Xe = (t, n, d) => {
71
- M() === O.Edit ? (t.id = i.resource.id, Me(t).then((e) => {
72
- if (e) {
73
- const o = N().resState[t.category].findIndex((g) => g.name === e.name);
74
- N().resState[t.category][o] = e, X([e]), H(S().appInfoState.selectedId), B({
54
+ }, He = (n) => d.resourceNames[n], je = (n, t) => {
55
+ d.resourceNames[n] = t;
56
+ }, Je = (n) => {
57
+ const t = S().appInfoState.selectedId;
58
+ return Fe(t, n);
59
+ }, M = () => d.actionType, D = (n) => {
60
+ d.actionType = n;
61
+ }, We = () => d.resource, Y = (n = Q) => {
62
+ n || (n = d.category === A.Function ? qe : Q), d.resource = n;
63
+ }, F = () => d.type, q = (n) => {
64
+ d.type = n;
65
+ }, z = (n) => {
66
+ d.category = n;
67
+ }, G = () => d.category, H = (...n) => {
68
+ ee && Me(...n);
69
+ }, Ke = (n, t, p) => {
70
+ const { updateUtils: e } = $().canvasApi.value;
71
+ M() === B.Edit ? (n.id = d.resource.id, Ye(n).then((o) => {
72
+ if (o) {
73
+ const _ = w().resState[n.category].findIndex((m) => m.name === o.name);
74
+ w().resState[n.category][_] = o, e([o]), H(S().appInfoState.selectedId), N({
75
75
  type: "success",
76
76
  message: "修改成功"
77
- }), d("refresh", i.type), i.refresh = !0, n();
77
+ }), p("refresh", d.type), d.refresh = !0, t();
78
78
  }
79
- })) : Ge(t).then((e) => {
80
- e && (N().resState[t.category].push(e), X([e]), H(S().appInfoState.selectedId), B({
79
+ })) : De(n).then((o) => {
80
+ o && (w().resState[n.category].push(o), e([o]), H(S().appInfoState.selectedId), N({
81
81
  type: "success",
82
82
  message: "创建成功"
83
- }), d("refresh", i.type), i.refresh = !0, n());
83
+ }), p("refresh", d.type), d.refresh = !0, t());
84
84
  });
85
- }, Ze = (t, n, d) => {
86
- var o;
87
- const e = `app=${S().appInfoState.selectedId}&id=${(o = i.resource) == null ? void 0 : o.id}`;
88
- qe(e).then((g) => {
89
- if (g) {
90
- const y = N().resState[i.type].findIndex((f) => f.name === g.name);
91
- N().resState[i.type].splice(y, 1), Oe([g]), H(S().appInfoState.selectedId), B({
85
+ }, Qe = (n, t, p) => {
86
+ var _;
87
+ const e = `app=${S().appInfoState.selectedId}&id=${(_ = d.resource) == null ? void 0 : _.id}`, { deleteUtils: o } = $().canvasApi.value;
88
+ Ge(e).then((m) => {
89
+ if (m) {
90
+ const v = w().resState[d.type].findIndex((y) => y.name === m.name);
91
+ w().resState[d.type].splice(v, 1), o([m]), H(S().appInfoState.selectedId), N({
92
92
  type: "success",
93
93
  message: "删除成功"
94
- }), d("refresh", i.type), i.refresh = !0, n();
94
+ }), p("refresh", d.type), d.refresh = !0, t();
95
95
  }
96
96
  });
97
97
  };
98
- const J = (t, n) => {
99
- const d = t.__vccOpts || t;
100
- for (const [e, o] of n)
101
- d[e] = o;
102
- return d;
103
- }, $e = {
98
+ const J = (n, t) => {
99
+ const p = n.__vccOpts || n;
100
+ for (const [e, o] of t)
101
+ p[e] = o;
102
+ return p;
103
+ }, Xe = {
104
104
  components: {
105
- TinySearch: ge
105
+ TinySearch: ue,
106
+ TinyIconSearch: Pe(),
107
+ SearchEmpty: Te
106
108
  },
107
109
  props: {
108
110
  name: {
@@ -111,105 +113,103 @@ const J = (t, n) => {
111
113
  }
112
114
  },
113
115
  emits: ["open"],
114
- setup(t, { emit: n }) {
115
- const d = V([]), e = j({
116
+ setup(n, { emit: t }) {
117
+ const p = T([]), e = j({
116
118
  resourceList: [],
117
119
  activeIndex: -1,
118
120
  searchValue: ""
119
- }), o = (a = e.resourceList, u = e.searchValue) => a.filter((c) => c.name.toLowerCase().indexOf(u.toLowerCase()) > -1), g = async (a) => {
120
- e.resourceList = await Ke(a), We(
121
+ }), o = (a = e.resourceList, c = e.searchValue) => a.filter((r) => r.name.toLowerCase().indexOf(c.toLowerCase()) > -1), _ = async (a) => {
122
+ e.resourceList = await Je(a), je(
121
123
  a,
122
- Array.isArray(e.resourceList) ? e.resourceList.map((u) => u.name) : []
123
- ), d.value = o(e.resourceList);
124
+ Array.isArray(e.resourceList) ? e.resourceList.map((c) => c.name) : []
125
+ ), p.value = o(e.resourceList);
124
126
  };
125
- return $(async () => {
126
- g(t.name);
127
+ return X(async () => {
128
+ _(n.name);
127
129
  }), {
128
130
  state: e,
129
- list: d,
131
+ list: p,
130
132
  add: (a) => {
131
- D(""), q(t.name), Y(""), z(a), n("open");
133
+ D(""), q(n.name), Y(""), z(a), t("open");
132
134
  },
133
- openRead: (a, u) => {
134
- e.activeIndex = u, Y(a), D(O.Edit), n("open");
135
+ openRead: (a, c) => {
136
+ e.activeIndex = c, Y(a), D(B.Edit), t("open");
135
137
  },
136
- openEdit: (a, u) => {
137
- e.activeIndex = u, Y(a), D(O.Edit), q(t.name), z(a.type), n("open");
138
+ openEdit: (a, c) => {
139
+ e.activeIndex = c, Y(a), D(B.Edit), q(n.name), z(a.type), t("open");
138
140
  },
139
- refresh: g,
140
- getType: A,
141
+ refresh: _,
142
+ getType: F,
141
143
  RESOURCE_TYPE: E,
142
144
  searchBridgeData: (a) => {
143
- d.value = o(e.resourceList, a);
145
+ p.value = o(e.resourceList, a);
144
146
  }
145
147
  };
146
148
  }
147
- }, et = (t) => (ee("data-v-70da6acf"), t = t(), te(), t), tt = { class: "manage-panel" }, nt = { class: "manage-panel-search" }, ot = { class: "list" }, at = ["onClick"], st = { class: "item-label" }, rt = {
148
- key: 0,
149
- class: "empty-wrap"
150
- }, ct = /* @__PURE__ */ et(() => /* @__PURE__ */ v("p", { class: "empty-text" }, "暂无数据", -1));
151
- function lt(t, n, d, e, o, g) {
152
- const y = l("tiny-search"), f = l("svg-icon");
153
- return h(), x("div", tt, [
154
- v("div", nt, [
155
- s(y, {
149
+ }, Ze = { class: "manage-panel" }, $e = { class: "manage-panel-search" }, et = { class: "list" }, tt = ["onClick"], nt = { class: "item-label" };
150
+ function ot(n, t, p, e, o, _) {
151
+ const m = i("tiny-icon-search"), v = i("tiny-search"), y = i("svg-icon"), b = i("search-empty");
152
+ return h(), L("div", Ze, [
153
+ f("div", $e, [
154
+ s(v, {
156
155
  modelValue: e.state.searchValue,
157
156
  "onUpdate:modelValue": [
158
- n[0] || (n[0] = (_) => e.state.searchValue = _),
157
+ t[0] || (t[0] = (a) => e.state.searchValue = a),
159
158
  e.searchBridgeData
160
159
  ],
161
160
  clearable: "",
162
161
  placeholder: "请输入关键字搜索"
163
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
162
+ }, {
163
+ prefix: l(() => [
164
+ s(m)
165
+ ]),
166
+ _: 1
167
+ }, 8, ["modelValue", "onUpdate:modelValue"])
164
168
  ]),
165
- v("div", ot, [
166
- (h(!0), x(ce, null, le(e.list, (_, b) => (h(), x("div", {
167
- key: _.name,
168
- class: ie(["list-item", b === e.state.activeIndex ? "active" : ""]),
169
- onClick: Q((a) => e.openEdit(_, b), ["stop"])
169
+ f("div", et, [
170
+ (h(!0), L(ae, null, se(e.list, (a, c) => (h(), L("div", {
171
+ key: a.name,
172
+ class: re(["list-item", c === e.state.activeIndex ? "active" : ""]),
173
+ onClick: K((r) => e.openEdit(a, c), ["stop"])
170
174
  }, [
171
- s(f, { name: "resources" }),
172
- v("div", st, w(_.name), 1),
173
- s(f, {
175
+ s(y, { name: "resources" }),
176
+ f("div", nt, I(a.name), 1),
177
+ s(y, {
174
178
  class: "setting-icon",
175
179
  name: "setting",
176
- onClick: Q((a) => e.openEdit(_, b), ["stop"])
180
+ onClick: K((r) => e.openEdit(a, c), ["stop"])
177
181
  }, null, 8, ["onClick"])
178
- ], 10, at))), 128)),
179
- e.list.length ? T("", !0) : (h(), x("div", rt, [
180
- s(f, {
181
- class: "empty-icon",
182
- name: "empty"
183
- }),
184
- ct
185
- ]))
182
+ ], 10, tt))), 128)),
183
+ s(b, {
184
+ isShow: !e.list.length
185
+ }, null, 8, ["isShow"])
186
186
  ])
187
187
  ]);
188
188
  }
189
- const it = /* @__PURE__ */ J($e, [["render", lt], ["__scopeId", "data-v-70da6acf"]]);
190
- const W = V(!1), dt = () => {
191
- W.value = !0, _e(() => window.dispatchEvent(new Event("resize")));
192
- }, I = () => {
189
+ const at = /* @__PURE__ */ J(Xe, [["render", ot], ["__scopeId", "data-v-ddac9b90"]]);
190
+ const W = T(!1), st = () => {
191
+ W.value = !0, pe(() => window.dispatchEvent(new Event("resize")));
192
+ }, x = () => {
193
193
  W.value = !1;
194
- }, pt = {
194
+ }, rt = {
195
195
  components: {
196
- TinyForm: ye,
197
- TinyInput: fe,
198
- TinyButton: ve,
199
- TinyFormItem: he,
200
- TinyCheckbox: be,
201
- PluginSetting: Ue,
202
- TinySwitch: Ee,
203
- MonacoEditor: ke,
204
- IconUnknow: Ae(),
205
- TinyTooltip: Re,
206
- TinyRadioGroup: Ce,
207
- TinyRadio: Te,
208
- SvgButton: ne
196
+ TinyForm: me,
197
+ TinyInput: ge,
198
+ TinyButton: _e,
199
+ TinyFormItem: ye,
200
+ TinyCheckbox: fe,
201
+ PluginSetting: Se,
202
+ TinySwitch: ve,
203
+ MonacoEditor: Ve,
204
+ IconUnknow: Le(),
205
+ TinyTooltip: he,
206
+ TinyRadioGroup: be,
207
+ TinyRadio: Ee,
208
+ SvgButton: Z
209
209
  },
210
- setup(t, { emit: n }) {
211
- const d = {
212
- theme: De(),
210
+ setup(n, { emit: t }) {
211
+ const p = {
212
+ theme: Ae(),
213
213
  roundedSelection: !0,
214
214
  automaticLayout: !0,
215
215
  autoIndent: !0,
@@ -220,49 +220,49 @@ const W = V(!1), dt = () => {
220
220
  // 禁用滚动条边边一直显示的边框
221
221
  overviewRulerBorder: !1,
222
222
  renderLineHighlightOnlyWhenFocus: !0
223
- }, { confirm: e } = we(), o = j({
224
- resource: C(() => Qe()),
223
+ }, { confirm: e } = xe(), o = j({
224
+ resource: C(() => We()),
225
225
  name: "",
226
226
  value: "",
227
227
  content: {},
228
- status: C(() => M() === O.Edit),
229
- category: C(() => G() === F.Npm),
228
+ status: C(() => M() === B.Edit),
229
+ category: C(() => G() === A.Npm),
230
230
  mode: C(() => {
231
- var c;
232
- return ((c = Ne()) == null ? void 0 : c.dslMode) !== "Vue";
231
+ var r;
232
+ return ((r = Ie()) == null ? void 0 : r.dslMode) !== "Vue";
233
233
  }),
234
234
  isInstance: !1,
235
235
  title: C(() => {
236
- const c = M() === O.Edit ? "编辑" : "添加", m = A() === E.Bridge ? "桥接源" : "工具类";
237
- return c + m;
236
+ const r = M() === B.Edit ? "编辑" : "添加", g = F() === E.Bridge ? "桥接源" : "工具类";
237
+ return r + g;
238
238
  }),
239
- type: F.Npm
240
- }), g = C(() => {
241
- const c = o.name || "name";
242
- let m = c;
243
- o.content.destructuring && (o.name && o.name === o.content.exportName ? m = `{ ${o.content.exportName || "exportName"} }` : m = `{ ${o.content.exportName || "exportName"} as ${c} }`);
244
- const U = `${o.content.package || "package"}${o.content.main || ""}`;
245
- return `import ${m} from '${U}'
246
- export { ${c} }`;
239
+ type: A.Npm
240
+ }), _ = C(() => {
241
+ const r = o.name || "name";
242
+ let g = r;
243
+ o.content.destructuring && (o.name && o.name === o.content.exportName ? g = `{ ${o.content.exportName || "exportName"} }` : g = `{ ${o.content.exportName || "exportName"} as ${r} }`);
244
+ const V = `${o.content.package || "package"}${o.content.main || ""}`;
245
+ return `import ${g} from '${V}'
246
+ export { ${r} }`;
247
247
  });
248
- $(() => {
249
- var c, m;
250
- o.name = o.resource.name, o.content = o.resource.content || {}, o.value = ((m = (c = o.resource) == null ? void 0 : c.content) == null ? void 0 : m.value) || "", o.type = G();
251
- }), de(
248
+ X(() => {
249
+ var r, g;
250
+ o.name = o.resource.name, o.content = o.resource.content || {}, o.value = ((g = (r = o.resource) == null ? void 0 : r.content) == null ? void 0 : g.value) || "", o.type = G();
251
+ }), le(
252
252
  () => o.isInstance,
253
- (c) => {
254
- c || (o.content.instance = "");
253
+ (r) => {
254
+ r || (o.content.instance = "");
255
255
  }
256
256
  );
257
- const y = V(null), f = V(null);
258
- return pe(() => window.dispatchEvent(new Event("resize"))), {
257
+ const m = T(null), v = T(null);
258
+ return ie(() => window.dispatchEvent(new Event("resize"))), {
259
259
  rules: {
260
260
  name: [
261
261
  { required: !0, message: "必填", trigger: "change" },
262
262
  {
263
- validator: (c, m, U) => {
264
- const L = Je(A());
265
- Array.isArray(L) && L.includes(m) ? U(new Error("资源名称已存在")) : U();
263
+ validator: (r, g, V) => {
264
+ const P = He(F());
265
+ Array.isArray(P) && P.includes(g) ? V(new Error("资源名称已存在")) : V();
266
266
  },
267
267
  trigger: "change"
268
268
  }
@@ -271,39 +271,39 @@ export { ${c} }`;
271
271
  "content.exportName": [{ required: !0, message: "必填", trigger: "change" }],
272
272
  "content.instanceName": { required: !0, message: "必填", trigger: "change" }
273
273
  },
274
- resourceForm: f,
275
- editor: y,
274
+ resourceForm: v,
275
+ editor: m,
276
276
  state: o,
277
- codePreview: g,
277
+ codePreview: _,
278
278
  isOpen: W,
279
- closePanel: I,
279
+ closePanel: x,
280
280
  save: () => {
281
- const c = {
282
- category: A(),
281
+ const r = {
282
+ category: F(),
283
283
  type: G(),
284
284
  name: o.name,
285
285
  app: S().appInfoState.selectedId,
286
286
  content: o.category ? o.content : {
287
287
  type: "JSFunction",
288
- value: y.value.getEditor().getValue()
288
+ value: m.value.getEditor().getValue()
289
289
  }
290
290
  };
291
- f.value.validate((m) => {
292
- if (!m) {
293
- B({
291
+ v.value.validate((g) => {
292
+ if (!g) {
293
+ N({
294
294
  type: "error",
295
295
  message: "请检查必填项"
296
296
  });
297
297
  return;
298
298
  }
299
- if (!o.category && !y.value.getEditor().getValue()) {
300
- B({
299
+ if (!o.category && !m.value.getEditor().getValue()) {
300
+ N({
301
301
  type: "error",
302
302
  message: "function 内容必填"
303
303
  });
304
304
  return;
305
305
  }
306
- Xe(c, I, n);
306
+ Ke(r, x, t);
307
307
  });
308
308
  },
309
309
  deleteReSource: () => {
@@ -311,54 +311,54 @@ export { ${c} }`;
311
311
  title: "删除资源",
312
312
  message: "如果删除正在使用的资源,将无法正常预览页面,确认要删除吗?",
313
313
  exec: () => {
314
- Ze(o.name, I, n);
314
+ Qe(o.name, x, t);
315
315
  }
316
316
  });
317
317
  },
318
- options: d,
319
- handleChangeType: (c) => {
320
- z(c);
318
+ options: p,
319
+ handleChangeType: (r) => {
320
+ z(r);
321
321
  },
322
- RESOURCE_CATEGORY: F
322
+ RESOURCE_CATEGORY: A
323
323
  };
324
324
  }
325
- }, K = (t) => (ee("data-v-46796b24"), t = t(), te(), t), ut = { class: "title-wrap" }, mt = { class: "header-wrap" }, _t = { class: "right-item" }, gt = { key: 2 }, yt = { class: "cdn-label-wrap" }, ft = /* @__PURE__ */ K(() => /* @__PURE__ */ v("span", null, "CDN", -1)), vt = { class: "code-preview" }, ht = /* @__PURE__ */ K(() => /* @__PURE__ */ v("span", { class: "pre-title" }, "生成的", -1)), bt = /* @__PURE__ */ K(() => /* @__PURE__ */ v("span", { class: "pre-title" }, "代码预览", -1));
326
- function Et(t, n, d, e, o, g) {
327
- const y = l("svg-button"), f = l("tiny-button"), _ = l("tiny-radio"), b = l("tiny-radio-group"), a = l("tiny-form-item"), u = l("tiny-input"), c = l("tiny-switch"), m = l("tiny-checkbox"), U = l("icon-unknow"), L = l("tiny-tooltip"), ae = l("monaco-editor"), se = l("tiny-form"), re = l("plugin-setting");
328
- return e.isOpen ? (h(), R(re, { key: 0 }, {
329
- title: r(() => [
330
- v("div", ut, [
331
- v("span", null, w(e.state.title), 1)
325
+ }, lt = { class: "title-wrap" }, it = { class: "header-wrap" }, ct = { class: "right-item" }, dt = { key: 2 }, pt = { class: "cdn-label-wrap" }, ut = { class: "code-preview" };
326
+ function mt(n, t, p, e, o, _) {
327
+ const m = i("svg-button"), v = i("tiny-button"), y = i("tiny-radio"), b = i("tiny-radio-group"), a = i("tiny-form-item"), c = i("tiny-input"), r = i("tiny-switch"), g = i("tiny-checkbox"), V = i("icon-unknow"), P = i("tiny-tooltip"), te = i("monaco-editor"), ne = i("tiny-form"), oe = i("plugin-setting");
328
+ return e.isOpen ? (h(), R(oe, { key: 0 }, {
329
+ title: l(() => [
330
+ f("div", lt, [
331
+ f("span", null, I(e.state.title), 1)
332
332
  ])
333
333
  ]),
334
- header: r(() => [
335
- v("div", mt, [
336
- ue(s(y, {
334
+ header: l(() => [
335
+ f("div", it, [
336
+ ce(s(m, {
337
337
  class: "delete-btn",
338
338
  name: "delete",
339
339
  onClick: e.deleteReSource
340
340
  }, null, 8, ["onClick"]), [
341
- [me, e.state.status]
341
+ [de, e.state.status]
342
342
  ]),
343
- s(f, {
343
+ s(v, {
344
344
  class: "save-btn",
345
345
  type: "primary",
346
346
  onClick: e.save
347
347
  }, {
348
- default: r(() => [
349
- k("保存")
350
- ]),
348
+ default: l(() => t[10] || (t[10] = [
349
+ U("保存")
350
+ ])),
351
351
  _: 1
352
352
  }, 8, ["onClick"]),
353
- s(y, {
353
+ s(m, {
354
354
  class: "close-btn",
355
355
  name: "close",
356
356
  onClick: e.closePanel
357
357
  }, null, 8, ["onClick"])
358
358
  ])
359
359
  ]),
360
- content: r(() => [
361
- s(se, {
360
+ content: l(() => [
361
+ s(ne, {
362
362
  ref: "resourceForm",
363
363
  class: "resource-form",
364
364
  rules: e.rules,
@@ -368,34 +368,34 @@ function Et(t, n, d, e, o, g) {
368
368
  "label-position": "left",
369
369
  "label-align": !0
370
370
  }, {
371
- default: r(() => [
372
- v("div", _t, [
373
- e.state.status ? T("", !0) : (h(), R(a, {
371
+ default: l(() => [
372
+ f("div", ct, [
373
+ e.state.status ? k("", !0) : (h(), R(a, {
374
374
  key: 0,
375
375
  label: "工具类型",
376
376
  prop: "type"
377
377
  }, {
378
- default: r(() => [
378
+ default: l(() => [
379
379
  s(b, {
380
380
  modelValue: e.state.type,
381
- "onUpdate:modelValue": n[0] || (n[0] = (p) => e.state.type = p),
381
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => e.state.type = u),
382
382
  class: "resource-type-radio-group",
383
383
  onChange: e.handleChangeType
384
384
  }, {
385
- default: r(() => [
386
- s(_, {
385
+ default: l(() => [
386
+ s(y, {
387
387
  label: e.RESOURCE_CATEGORY.Npm
388
388
  }, {
389
- default: r(() => [
390
- k(w(e.RESOURCE_CATEGORY.Npm), 1)
389
+ default: l(() => [
390
+ U(I(e.RESOURCE_CATEGORY.Npm), 1)
391
391
  ]),
392
392
  _: 1
393
393
  }, 8, ["label"]),
394
- s(_, {
394
+ s(y, {
395
395
  label: e.RESOURCE_CATEGORY.Function
396
396
  }, {
397
- default: r(() => [
398
- k(w(e.RESOURCE_CATEGORY.Function), 1)
397
+ default: l(() => [
398
+ U(I(e.RESOURCE_CATEGORY.Function), 1)
399
399
  ]),
400
400
  _: 1
401
401
  }, 8, ["label"])
@@ -405,29 +405,29 @@ function Et(t, n, d, e, o, g) {
405
405
  ]),
406
406
  _: 1
407
407
  })),
408
- e.state.status ? T("", !0) : (h(), R(a, {
408
+ e.state.status ? k("", !0) : (h(), R(a, {
409
409
  key: 1,
410
410
  label: "名称",
411
411
  prop: "name"
412
412
  }, {
413
- default: r(() => [
414
- s(u, {
413
+ default: l(() => [
414
+ s(c, {
415
415
  modelValue: e.state.name,
416
- "onUpdate:modelValue": n[1] || (n[1] = (p) => e.state.name = p),
416
+ "onUpdate:modelValue": t[1] || (t[1] = (u) => e.state.name = u),
417
417
  placeholder: "请输入工具类名称"
418
418
  }, null, 8, ["modelValue"])
419
419
  ]),
420
420
  _: 1
421
421
  })),
422
- e.state.category ? (h(), x("div", gt, [
422
+ e.state.category ? (h(), L("div", dt, [
423
423
  s(a, {
424
424
  label: "包名",
425
425
  prop: "content.package"
426
426
  }, {
427
- default: r(() => [
428
- s(u, {
427
+ default: l(() => [
428
+ s(c, {
429
429
  modelValue: e.state.content.package,
430
- "onUpdate:modelValue": n[2] || (n[2] = (p) => e.state.content.package = p),
430
+ "onUpdate:modelValue": t[2] || (t[2] = (u) => e.state.content.package = u),
431
431
  placeholder: "请输入npm包名称"
432
432
  }, null, 8, ["modelValue"])
433
433
  ]),
@@ -437,20 +437,20 @@ function Et(t, n, d, e, o, g) {
437
437
  label: "导出名称",
438
438
  prop: "content.exportName"
439
439
  }, {
440
- default: r(() => [
441
- s(u, {
440
+ default: l(() => [
441
+ s(c, {
442
442
  modelValue: e.state.content.exportName,
443
- "onUpdate:modelValue": n[3] || (n[3] = (p) => e.state.content.exportName = p),
443
+ "onUpdate:modelValue": t[3] || (t[3] = (u) => e.state.content.exportName = u),
444
444
  placeholder: "请输入npm包的导出名称"
445
445
  }, null, 8, ["modelValue"])
446
446
  ]),
447
447
  _: 1
448
448
  }),
449
449
  s(a, { label: "是否解构" }, {
450
- default: r(() => [
451
- s(c, {
450
+ default: l(() => [
451
+ s(r, {
452
452
  modelValue: e.state.content.destructuring,
453
- "onUpdate:modelValue": n[4] || (n[4] = (p) => e.state.content.destructuring = p)
453
+ "onUpdate:modelValue": t[4] || (t[4] = (u) => e.state.content.destructuring = u)
454
454
  }, null, 8, ["modelValue"])
455
455
  ]),
456
456
  _: 1
@@ -459,83 +459,83 @@ function Et(t, n, d, e, o, g) {
459
459
  key: 0,
460
460
  label: "是否作为实例"
461
461
  }, {
462
- default: r(() => [
463
- s(m, {
462
+ default: l(() => [
463
+ s(g, {
464
464
  modelValue: e.state.isInstance,
465
- "onUpdate:modelValue": n[5] || (n[5] = (p) => e.state.isInstance = p)
465
+ "onUpdate:modelValue": t[5] || (t[5] = (u) => e.state.isInstance = u)
466
466
  }, null, 8, ["modelValue"])
467
467
  ]),
468
468
  _: 1
469
- })) : T("", !0),
469
+ })) : k("", !0),
470
470
  e.state.isInstance ? (h(), R(a, {
471
471
  key: 1,
472
472
  label: "实例名称",
473
473
  prop: "content.instanceName"
474
474
  }, {
475
- default: r(() => [
476
- s(u, {
475
+ default: l(() => [
476
+ s(c, {
477
477
  modelValue: e.state.content.instance,
478
- "onUpdate:modelValue": n[6] || (n[6] = (p) => e.state.content.instance = p)
478
+ "onUpdate:modelValue": t[6] || (t[6] = (u) => e.state.content.instance = u)
479
479
  }, null, 8, ["modelValue"])
480
480
  ]),
481
481
  _: 1
482
- })) : T("", !0),
482
+ })) : k("", !0),
483
483
  s(a, { label: "入口路径" }, {
484
- default: r(() => [
485
- s(u, {
484
+ default: l(() => [
485
+ s(c, {
486
486
  modelValue: e.state.content.main,
487
- "onUpdate:modelValue": n[7] || (n[7] = (p) => e.state.content.main = p),
487
+ "onUpdate:modelValue": t[7] || (t[7] = (u) => e.state.content.main = u),
488
488
  placeholder: "main"
489
489
  }, null, 8, ["modelValue"])
490
490
  ]),
491
491
  _: 1
492
492
  }),
493
493
  s(a, { label: "版本号" }, {
494
- default: r(() => [
495
- s(u, {
494
+ default: l(() => [
495
+ s(c, {
496
496
  modelValue: e.state.content.version,
497
- "onUpdate:modelValue": n[8] || (n[8] = (p) => e.state.content.version = p),
497
+ "onUpdate:modelValue": t[8] || (t[8] = (u) => e.state.content.version = u),
498
498
  placeholder: "latest"
499
499
  }, null, 8, ["modelValue"])
500
500
  ]),
501
501
  _: 1
502
502
  }),
503
503
  s(a, null, {
504
- label: r(() => [
505
- v("div", yt, [
506
- ft,
507
- s(L, {
504
+ label: l(() => [
505
+ f("div", pt, [
506
+ t[11] || (t[11] = f("span", null, "CDN", -1)),
507
+ s(P, {
508
508
  effect: "dark",
509
509
  content: "浏览器直接可用的生产包链接,请确保可用,否则可能会造成页面预览失败",
510
510
  placement: "top"
511
511
  }, {
512
- default: r(() => [
513
- s(U, { class: "cdn-tips-icon" })
512
+ default: l(() => [
513
+ s(V, { class: "cdn-tips-icon" })
514
514
  ]),
515
515
  _: 1
516
516
  })
517
517
  ])
518
518
  ]),
519
- default: r(() => [
520
- s(u, {
519
+ default: l(() => [
520
+ s(c, {
521
521
  modelValue: e.state.content.cdnLink,
522
- "onUpdate:modelValue": n[9] || (n[9] = (p) => e.state.content.cdnLink = p),
522
+ "onUpdate:modelValue": t[9] || (t[9] = (u) => e.state.content.cdnLink = u),
523
523
  placeholder: "浏览器直接可用的生产包链接,请确保可用,否则可能会造成页面预览失败"
524
524
  }, null, 8, ["modelValue"])
525
525
  ]),
526
526
  _: 1
527
527
  }),
528
- v("div", vt, [
529
- v("pre", null, [
530
- k("// "),
531
- ht,
532
- k(" utils.js "),
533
- bt,
534
- k(`
535
- ` + w(e.codePreview), 1)
528
+ f("div", ut, [
529
+ f("pre", null, [
530
+ t[12] || (t[12] = U("// ")),
531
+ t[13] || (t[13] = f("span", { class: "pre-title" }, "生成的", -1)),
532
+ t[14] || (t[14] = U(" utils.js ")),
533
+ t[15] || (t[15] = f("span", { class: "pre-title" }, "代码预览", -1)),
534
+ U(`
535
+ ` + I(e.codePreview), 1)
536
536
  ])
537
537
  ])
538
- ])) : (h(), R(ae, {
538
+ ])) : (h(), R(te, {
539
539
  key: 3,
540
540
  ref: "editor",
541
541
  value: e.state.value,
@@ -548,79 +548,79 @@ function Et(t, n, d, e, o, g) {
548
548
  }, 8, ["rules", "model"])
549
549
  ]),
550
550
  _: 1
551
- })) : T("", !0);
551
+ })) : k("", !0);
552
552
  }
553
- const Rt = /* @__PURE__ */ J(pt, [["render", Et], ["__scopeId", "data-v-46796b24"]]);
554
- const Ct = {
553
+ const gt = /* @__PURE__ */ J(rt, [["render", mt], ["__scopeId", "data-v-46796b24"]]);
554
+ const _t = {
555
555
  components: {
556
- TinyTabs: Ve,
557
- TinyTabItem: Se,
558
- PluginPanel: Ie,
559
- SvgButton: ne,
560
- BridgeManage: it,
561
- BridgeSetting: Rt,
562
- LinkButton: xe
556
+ TinyTabs: Re,
557
+ TinyTabItem: Ce,
558
+ PluginPanel: Ue,
559
+ SvgButton: Z,
560
+ BridgeManage: at,
561
+ BridgeSetting: gt,
562
+ LinkButton: ke
563
563
  },
564
564
  setup() {
565
- const t = V(E.Util), n = V(null), d = V(null), e = C(() => je[t.value]), o = Be().getDocsUrl("bridge");
565
+ const n = T(E.Util), t = T(null), p = T(null), e = C(() => ze[n.value]), o = we().getDocsUrl("bridge");
566
566
  return {
567
567
  addResource: (a) => {
568
- t.value === E.Util ? d.value.add(a) : n.value.add(a);
568
+ n.value === E.Util ? p.value.add(a) : t.value.add(a);
569
569
  },
570
570
  RESOURCE_TYPE: E,
571
- activedName: t,
571
+ activedName: n,
572
572
  switchTab: (a) => {
573
- I(), q(a.name);
573
+ x(), q(a.name);
574
574
  },
575
575
  openBridgePanel: () => {
576
- dt();
576
+ st();
577
577
  },
578
- closePanel: I,
578
+ closePanel: x,
579
579
  openUtilPanel: () => {
580
- I();
580
+ x();
581
581
  },
582
582
  refreshList: (a) => {
583
- a === E.Util ? d.value.refresh(a) : n.value.refresh(a);
583
+ a === E.Util ? p.value.refresh(a) : t.value.refresh(a);
584
584
  },
585
- bridge: n,
585
+ bridge: t,
586
586
  docsUrl: o,
587
- utilsRef: d,
587
+ utilsRef: p,
588
588
  tips: e,
589
- isVsCodeEnv: oe
589
+ isVsCodeEnv: ee
590
590
  };
591
591
  }
592
592
  };
593
- function Tt(t, n, d, e, o, g) {
594
- const y = l("link-button"), f = l("svg-button"), _ = l("bridge-manage"), b = l("tiny-tab-item"), a = l("tiny-tabs"), u = l("bridge-setting"), c = l("plugin-panel");
595
- return h(), R(c, {
593
+ function yt(n, t, p, e, o, _) {
594
+ const m = i("link-button"), v = i("svg-button"), y = i("bridge-manage"), b = i("tiny-tab-item"), a = i("tiny-tabs"), c = i("bridge-setting"), r = i("plugin-panel");
595
+ return h(), R(r, {
596
596
  title: "资源管理",
597
597
  isCloseLeft: !1,
598
598
  onClose: e.closePanel
599
599
  }, {
600
- header: r(() => [
601
- s(y, { href: e.docsUrl }, null, 8, ["href"]),
602
- s(f, {
600
+ header: l(() => [
601
+ s(m, { href: e.docsUrl }, null, 8, ["href"]),
602
+ s(v, {
603
603
  name: "add-utils",
604
604
  placement: "left",
605
605
  tips: e.tips,
606
- onClick: n[0] || (n[0] = (m) => e.addResource("npm"))
606
+ onClick: t[0] || (t[0] = (g) => e.addResource("npm"))
607
607
  }, null, 8, ["tips"])
608
608
  ]),
609
- content: r(() => [
609
+ content: l(() => [
610
610
  s(a, {
611
611
  modelValue: e.activedName,
612
- "onUpdate:modelValue": n[1] || (n[1] = (m) => e.activedName = m),
612
+ "onUpdate:modelValue": t[1] || (t[1] = (g) => e.activedName = g),
613
613
  class: "tabs full-width-tabs",
614
614
  "tab-style": "button-card",
615
615
  onClick: e.switchTab
616
616
  }, {
617
- default: r(() => [
617
+ default: l(() => [
618
618
  s(b, {
619
619
  name: e.RESOURCE_TYPE.Util,
620
620
  title: "工具类"
621
621
  }, {
622
- default: r(() => [
623
- s(_, {
622
+ default: l(() => [
623
+ s(y, {
624
624
  ref: "utilsRef",
625
625
  name: e.RESOURCE_TYPE.Util,
626
626
  onOpen: e.openBridgePanel
@@ -633,30 +633,30 @@ function Tt(t, n, d, e, o, g) {
633
633
  name: e.RESOURCE_TYPE.Bridge,
634
634
  title: "桥接源"
635
635
  }, {
636
- default: r(() => [
637
- s(_, {
636
+ default: l(() => [
637
+ s(y, {
638
638
  ref: "bridge",
639
639
  name: e.RESOURCE_TYPE.Bridge,
640
640
  onOpen: e.openBridgePanel
641
641
  }, null, 8, ["name", "onOpen"])
642
642
  ]),
643
643
  _: 1
644
- }, 8, ["name"])) : T("", !0)
644
+ }, 8, ["name"])) : k("", !0)
645
645
  ]),
646
646
  _: 1
647
647
  }, 8, ["modelValue", "onClick"]),
648
- s(u, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
648
+ s(c, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
649
649
  ]),
650
650
  _: 1
651
651
  }, 8, ["onClose"]);
652
652
  }
653
- const Vt = /* @__PURE__ */ J(Ct, [["render", Tt], ["__scopeId", "data-v-e04eb86e"]]), Ft = {
653
+ const ft = /* @__PURE__ */ J(_t, [["render", yt], ["__scopeId", "data-v-5b838c2a"]]), kt = {
654
654
  id: "Bridge",
655
655
  title: "资源管理",
656
656
  icon: "plugin-icon-sresources",
657
657
  align: "top",
658
- component: Vt
658
+ component: ft
659
659
  };
660
660
  export {
661
- Ft as default
661
+ kt as default
662
662
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .manage-panel[data-v-70da6acf]{height:100%;display:flex;flex-direction:column;position:relative}.manage-panel .manage-panel-search[data-v-70da6acf]{padding:8px}.manage-panel .add-button[data-v-70da6acf]{align-self:flex-end;margin:6px}.manage-panel .list[data-v-70da6acf]{flex:1;border-top:1px solid var(--ti-lowcode-tabs-border-color);overflow:auto}.manage-panel .list-item[data-v-70da6acf]{height:28px;display:grid;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:center;padding:0 12px;position:relative;color:var(--ti-lowcode-bridge-list-color);cursor:pointer;font-size:12px}.manage-panel .list-item[data-v-70da6acf]:hover,.manage-panel .list-item.active[data-v-70da6acf]{background:var(--ti-lowcode-bridge-list-bg)}.manage-panel .list-item svg[data-v-70da6acf]{color:var(--ti-lowcode-toolbar-more-hover-color)}.plugin-setting[data-v-46796b24] .icon-wrap{margin-right:8px}.plugin-setting .resource-form[data-v-46796b24] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap .help-link[data-v-46796b24]{display:inline-block;color:var(--ti-lowcode-common-primary-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-46796b24]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-46796b24]{display:flex;align-items:center;column-gap:16px}.plugin-setting .header-wrap .delete-btn[data-v-46796b24]{color:var(--ti-lowcode-common-text-color-5)}.plugin-setting .header-wrap .delete-btn[data-v-46796b24]:hover{color:var(--ti-lowcode-common-primary-text-color)}.plugin-setting .monaco-editor[data-v-46796b24]{height:500px;margin-top:8px;border:1px solid var(--ti-lowcode-birdge-editor-border-color)}.plugin-setting .resource-form-footer[data-v-46796b24]{padding:12px 0 12px 80px}.plugin-setting .resource-form-footer .tiny-svg[data-v-46796b24]{margin-right:6px}.plugin-setting .resource-form-footer .del[data-v-46796b24]:hover{background-color:var(--ti-lowcode-delete-button-hover-bg)}.plugin-setting .cdn-label-wrap[data-v-46796b24]{display:flex;align-items:center}.code-preview[data-v-46796b24]{font-size:14px;line-height:20px;margin-left:12px;color:var(--ti-lowcode-birdge-code-preview-color);background-color:var(--ti-lowcode-birdge-code-preview-bg-color);border-radius:6px}.code-preview .pre-title[data-v-46796b24]{font-family:Microsoft YaHei}.code-preview>pre[data-v-46796b24]{margin:0;padding:8px 20px;font-family:Consolas,Courier New,monospace}.tabs[data-v-e04eb86e]{height:calc(100% - 46px)}[data-v-e04eb86e] .tiny-tabs__header{padding:8px;border-bottom:1px solid var(--ti-lowcode-tabs-border-color)}[data-v-e04eb86e] .tiny-tabs__content{height:calc(100% - 45px);padding:0}[data-v-e04eb86e] .tiny-tabs__content>div{height:100%}[data-v-e04eb86e] .help-box{position:absolute;left:72px;top:3px}
1
+ .manage-panel[data-v-ddac9b90]{height:100%;display:flex;flex-direction:column;position:relative}.manage-panel .manage-panel-search[data-v-ddac9b90]{padding:8px}.manage-panel .add-button[data-v-ddac9b90]{align-self:flex-end;margin:6px}.manage-panel .list[data-v-ddac9b90]{flex:1;border-top:1px solid var(--ti-lowcode-tabs-border-color);overflow:auto}.manage-panel .list-item[data-v-ddac9b90]{height:28px;display:grid;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:center;padding:0 12px;position:relative;color:var(--ti-lowcode-bridge-list-color);cursor:pointer;font-size:12px}.manage-panel .list-item[data-v-ddac9b90]:hover,.manage-panel .list-item.active[data-v-ddac9b90]{background:var(--ti-lowcode-bridge-list-bg)}.manage-panel .list-item svg[data-v-ddac9b90]{color:var(--ti-lowcode-toolbar-more-hover-color)}.plugin-setting[data-v-46796b24] .icon-wrap{margin-right:8px}.plugin-setting .resource-form[data-v-46796b24] .tiny-form-item__label .cdn-tips-icon{margin-left:4px}.plugin-setting .title-wrap .help-link[data-v-46796b24]{display:inline-block;color:var(--ti-lowcode-common-primary-color);font-size:12px;margin-left:16px}.plugin-setting .title-wrap .help-link[data-v-46796b24]:hover{text-decoration:underline}.plugin-setting .header-wrap[data-v-46796b24]{display:flex;align-items:center;column-gap:16px}.plugin-setting .header-wrap .delete-btn[data-v-46796b24]{color:var(--ti-lowcode-common-text-color-5)}.plugin-setting .header-wrap .delete-btn[data-v-46796b24]:hover{color:var(--ti-lowcode-common-primary-text-color)}.plugin-setting .monaco-editor[data-v-46796b24]{height:500px;margin-top:8px;border:1px solid var(--ti-lowcode-birdge-editor-border-color)}.plugin-setting .resource-form-footer[data-v-46796b24]{padding:12px 0 12px 80px}.plugin-setting .resource-form-footer .tiny-svg[data-v-46796b24]{margin-right:6px}.plugin-setting .resource-form-footer .del[data-v-46796b24]:hover{background-color:var(--ti-lowcode-delete-button-hover-bg)}.plugin-setting .cdn-label-wrap[data-v-46796b24]{display:flex;align-items:center}.code-preview[data-v-46796b24]{font-size:14px;line-height:20px;margin-left:12px;color:var(--ti-lowcode-birdge-code-preview-color);background-color:var(--ti-lowcode-birdge-code-preview-bg-color);border-radius:6px}.code-preview .pre-title[data-v-46796b24]{font-family:Microsoft YaHei}.code-preview>pre[data-v-46796b24]{margin:0;padding:8px 20px;font-family:Consolas,Courier New,monospace}.tabs[data-v-5b838c2a]{height:calc(100% - 46px)}[data-v-5b838c2a] .tiny-tabs__header{padding:8px;border-bottom:1px solid var(--ti-lowcode-tabs-border-color)}[data-v-5b838c2a] .tiny-tabs__content{height:calc(100% - 45px);padding:0}[data-v-5b838c2a] .tiny-tabs__content>div{height:100%}[data-v-5b838c2a] .help-box{position:absolute;left:72px;top:3px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-plugin-bridge",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,20 +24,20 @@
24
24
  "license": "MIT",
25
25
  "homepage": "https://opentiny.design/tiny-engine",
26
26
  "dependencies": {
27
- "@opentiny/tiny-engine-canvas": "1.0.3",
28
- "@opentiny/tiny-engine-common": "1.0.2",
29
- "@opentiny/tiny-engine-controller": "1.0.3",
30
- "@opentiny/tiny-engine-http": "1.0.2",
31
- "@opentiny/vue": "~3.10.0",
32
- "@opentiny/vue-icon": "~3.10.0"
27
+ "@opentiny/tiny-engine-canvas": "1.0.4",
28
+ "@opentiny/tiny-engine-common": "1.0.3",
29
+ "@opentiny/tiny-engine-controller": "1.0.4",
30
+ "@opentiny/tiny-engine-http": "1.0.3"
33
31
  },
34
32
  "devDependencies": {
35
33
  "@vitejs/plugin-vue": "^4.2.3",
36
- "@vitejs/plugin-vue-jsx": "^1.3.10",
34
+ "@vitejs/plugin-vue-jsx": "^3.1.0",
37
35
  "vite": "^4.3.7"
38
36
  },
39
37
  "peerDependencies": {
38
+ "@opentiny/vue": "^3.14.0",
39
+ "@opentiny/vue-icon": "^3.14.0",
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "9a6cce3988accb39c97a9a21169c022c65a8e27f"
42
+ "gitHead": "aa79110d52c3e77f6e664c22983c93bd74d9406d"
43
43
  }