@opentiny/tiny-engine-plugin-bridge 1.0.4-alpha.0 → 1.0.5
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 +285 -285
- package/dist/style.css +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { reactive as j, ref as
|
|
3
|
-
import { Search as
|
|
4
|
-
import { PluginSetting as
|
|
5
|
-
import { useApp as S, useResource as
|
|
6
|
-
import { isVsCodeEnv as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
45
|
+
}, A = {
|
|
47
46
|
Npm: "npm",
|
|
48
47
|
Function: "function"
|
|
49
|
-
},
|
|
48
|
+
}, ze = {
|
|
50
49
|
[E.Util]: "新建工具类",
|
|
51
50
|
[E.Bridge]: "新建桥接源"
|
|
52
|
-
},
|
|
51
|
+
}, B = {
|
|
53
52
|
Read: "read",
|
|
54
53
|
Edit: "edit"
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
const
|
|
59
|
-
return
|
|
60
|
-
}, M = () =>
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
}, z = (
|
|
67
|
-
|
|
68
|
-
}, G = () =>
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
}),
|
|
77
|
+
}), p("refresh", d.type), d.refresh = !0, t();
|
|
78
78
|
}
|
|
79
|
-
})) :
|
|
80
|
-
|
|
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
|
-
}),
|
|
83
|
+
}), p("refresh", d.type), d.refresh = !0, t());
|
|
84
84
|
});
|
|
85
|
-
},
|
|
86
|
-
var
|
|
87
|
-
const e = `app=${S().appInfoState.selectedId}&id=${(
|
|
88
|
-
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
|
|
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
|
-
}),
|
|
94
|
+
}), p("refresh", d.type), d.refresh = !0, t();
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
-
const J = (
|
|
99
|
-
const
|
|
100
|
-
for (const [e, o] of
|
|
101
|
-
|
|
102
|
-
return
|
|
103
|
-
},
|
|
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:
|
|
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(
|
|
115
|
-
const
|
|
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,
|
|
120
|
-
e.resourceList = await
|
|
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((
|
|
123
|
-
),
|
|
124
|
+
Array.isArray(e.resourceList) ? e.resourceList.map((c) => c.name) : []
|
|
125
|
+
), p.value = o(e.resourceList);
|
|
124
126
|
};
|
|
125
|
-
return
|
|
126
|
-
|
|
127
|
+
return X(async () => {
|
|
128
|
+
_(n.name);
|
|
127
129
|
}), {
|
|
128
130
|
state: e,
|
|
129
|
-
list:
|
|
131
|
+
list: p,
|
|
130
132
|
add: (a) => {
|
|
131
|
-
D(""), q(
|
|
133
|
+
D(""), q(n.name), Y(""), z(a), t("open");
|
|
132
134
|
},
|
|
133
|
-
openRead: (a,
|
|
134
|
-
e.activeIndex =
|
|
135
|
+
openRead: (a, c) => {
|
|
136
|
+
e.activeIndex = c, Y(a), D(B.Edit), t("open");
|
|
135
137
|
},
|
|
136
|
-
openEdit: (a,
|
|
137
|
-
e.activeIndex =
|
|
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:
|
|
140
|
-
getType:
|
|
141
|
+
refresh: _,
|
|
142
|
+
getType: F,
|
|
141
143
|
RESOURCE_TYPE: E,
|
|
142
144
|
searchBridgeData: (a) => {
|
|
143
|
-
|
|
145
|
+
p.value = o(e.resourceList, a);
|
|
144
146
|
}
|
|
145
147
|
};
|
|
146
148
|
}
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
157
|
+
t[0] || (t[0] = (a) => e.state.searchValue = a),
|
|
159
158
|
e.searchBridgeData
|
|
160
159
|
],
|
|
161
160
|
clearable: "",
|
|
162
161
|
placeholder: "请输入关键字搜索"
|
|
163
|
-
},
|
|
162
|
+
}, {
|
|
163
|
+
prefix: l(() => [
|
|
164
|
+
s(m)
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
164
168
|
]),
|
|
165
|
-
|
|
166
|
-
(h(!0),
|
|
167
|
-
key:
|
|
168
|
-
class:
|
|
169
|
-
onClick:
|
|
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(
|
|
172
|
-
|
|
173
|
-
s(
|
|
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:
|
|
180
|
+
onClick: K((r) => e.openEdit(a, c), ["stop"])
|
|
177
181
|
}, null, 8, ["onClick"])
|
|
178
|
-
], 10,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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
|
|
190
|
-
const W =
|
|
191
|
-
W.value = !0,
|
|
192
|
-
},
|
|
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
|
-
},
|
|
194
|
+
}, rt = {
|
|
195
195
|
components: {
|
|
196
|
-
TinyForm:
|
|
197
|
-
TinyInput:
|
|
198
|
-
TinyButton:
|
|
199
|
-
TinyFormItem:
|
|
200
|
-
TinyCheckbox:
|
|
201
|
-
PluginSetting:
|
|
202
|
-
TinySwitch:
|
|
203
|
-
MonacoEditor:
|
|
204
|
-
IconUnknow:
|
|
205
|
-
TinyTooltip:
|
|
206
|
-
TinyRadioGroup:
|
|
207
|
-
TinyRadio:
|
|
208
|
-
SvgButton:
|
|
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(
|
|
211
|
-
const
|
|
212
|
-
theme:
|
|
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 } =
|
|
224
|
-
resource: C(() =>
|
|
223
|
+
}, { confirm: e } = xe(), o = j({
|
|
224
|
+
resource: C(() => We()),
|
|
225
225
|
name: "",
|
|
226
226
|
value: "",
|
|
227
227
|
content: {},
|
|
228
|
-
status: C(() => M() ===
|
|
229
|
-
category: C(() => G() ===
|
|
228
|
+
status: C(() => M() === B.Edit),
|
|
229
|
+
category: C(() => G() === A.Npm),
|
|
230
230
|
mode: C(() => {
|
|
231
|
-
var
|
|
232
|
-
return ((
|
|
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
|
|
237
|
-
return
|
|
236
|
+
const r = M() === B.Edit ? "编辑" : "添加", g = F() === E.Bridge ? "桥接源" : "工具类";
|
|
237
|
+
return r + g;
|
|
238
238
|
}),
|
|
239
|
-
type:
|
|
240
|
-
}),
|
|
241
|
-
const
|
|
242
|
-
let
|
|
243
|
-
o.content.destructuring && (o.name && o.name === o.content.exportName ?
|
|
244
|
-
const
|
|
245
|
-
return `import ${
|
|
246
|
-
export { ${
|
|
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
|
|
250
|
-
o.name = o.resource.name, o.content = o.resource.content || {}, o.value = ((
|
|
251
|
-
}),
|
|
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
|
-
(
|
|
254
|
-
|
|
253
|
+
(r) => {
|
|
254
|
+
r || (o.content.instance = "");
|
|
255
255
|
}
|
|
256
256
|
);
|
|
257
|
-
const
|
|
258
|
-
return
|
|
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: (
|
|
264
|
-
const
|
|
265
|
-
Array.isArray(
|
|
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:
|
|
275
|
-
editor:
|
|
274
|
+
resourceForm: v,
|
|
275
|
+
editor: m,
|
|
276
276
|
state: o,
|
|
277
|
-
codePreview:
|
|
277
|
+
codePreview: _,
|
|
278
278
|
isOpen: W,
|
|
279
|
-
closePanel:
|
|
279
|
+
closePanel: x,
|
|
280
280
|
save: () => {
|
|
281
|
-
const
|
|
282
|
-
category:
|
|
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:
|
|
288
|
+
value: m.value.getEditor().getValue()
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
|
-
|
|
292
|
-
if (!
|
|
293
|
-
|
|
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 && !
|
|
300
|
-
|
|
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
|
-
|
|
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
|
-
|
|
314
|
+
Qe(o.name, x, t);
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
},
|
|
318
|
-
options:
|
|
319
|
-
handleChangeType: (
|
|
320
|
-
z(
|
|
318
|
+
options: p,
|
|
319
|
+
handleChangeType: (r) => {
|
|
320
|
+
z(r);
|
|
321
321
|
},
|
|
322
|
-
RESOURCE_CATEGORY:
|
|
322
|
+
RESOURCE_CATEGORY: A
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
},
|
|
326
|
-
function
|
|
327
|
-
const
|
|
328
|
-
return e.isOpen ? (h(), R(
|
|
329
|
-
title:
|
|
330
|
-
|
|
331
|
-
|
|
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:
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
[
|
|
341
|
+
[de, e.state.status]
|
|
342
342
|
]),
|
|
343
|
-
s(
|
|
343
|
+
s(v, {
|
|
344
344
|
class: "save-btn",
|
|
345
345
|
type: "primary",
|
|
346
346
|
onClick: e.save
|
|
347
347
|
}, {
|
|
348
|
-
default:
|
|
349
|
-
|
|
350
|
-
]),
|
|
348
|
+
default: l(() => t[10] || (t[10] = [
|
|
349
|
+
U("保存")
|
|
350
|
+
])),
|
|
351
351
|
_: 1
|
|
352
352
|
}, 8, ["onClick"]),
|
|
353
|
-
s(
|
|
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:
|
|
361
|
-
s(
|
|
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:
|
|
372
|
-
|
|
373
|
-
e.state.status ?
|
|
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:
|
|
378
|
+
default: l(() => [
|
|
379
379
|
s(b, {
|
|
380
380
|
modelValue: e.state.type,
|
|
381
|
-
"onUpdate:modelValue":
|
|
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:
|
|
386
|
-
s(
|
|
385
|
+
default: l(() => [
|
|
386
|
+
s(y, {
|
|
387
387
|
label: e.RESOURCE_CATEGORY.Npm
|
|
388
388
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
|
|
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:
|
|
398
|
-
|
|
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 ?
|
|
408
|
+
e.state.status ? k("", !0) : (h(), R(a, {
|
|
409
409
|
key: 1,
|
|
410
410
|
label: "名称",
|
|
411
411
|
prop: "name"
|
|
412
412
|
}, {
|
|
413
|
-
default:
|
|
414
|
-
s(
|
|
413
|
+
default: l(() => [
|
|
414
|
+
s(c, {
|
|
415
415
|
modelValue: e.state.name,
|
|
416
|
-
"onUpdate:modelValue":
|
|
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(),
|
|
422
|
+
e.state.category ? (h(), L("div", dt, [
|
|
423
423
|
s(a, {
|
|
424
424
|
label: "包名",
|
|
425
425
|
prop: "content.package"
|
|
426
426
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
s(
|
|
427
|
+
default: l(() => [
|
|
428
|
+
s(c, {
|
|
429
429
|
modelValue: e.state.content.package,
|
|
430
|
-
"onUpdate:modelValue":
|
|
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:
|
|
441
|
-
s(
|
|
440
|
+
default: l(() => [
|
|
441
|
+
s(c, {
|
|
442
442
|
modelValue: e.state.content.exportName,
|
|
443
|
-
"onUpdate:modelValue":
|
|
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:
|
|
451
|
-
s(
|
|
450
|
+
default: l(() => [
|
|
451
|
+
s(r, {
|
|
452
452
|
modelValue: e.state.content.destructuring,
|
|
453
|
-
"onUpdate:modelValue":
|
|
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:
|
|
463
|
-
s(
|
|
462
|
+
default: l(() => [
|
|
463
|
+
s(g, {
|
|
464
464
|
modelValue: e.state.isInstance,
|
|
465
|
-
"onUpdate:modelValue":
|
|
465
|
+
"onUpdate:modelValue": t[5] || (t[5] = (u) => e.state.isInstance = u)
|
|
466
466
|
}, null, 8, ["modelValue"])
|
|
467
467
|
]),
|
|
468
468
|
_: 1
|
|
469
|
-
})) :
|
|
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:
|
|
476
|
-
s(
|
|
475
|
+
default: l(() => [
|
|
476
|
+
s(c, {
|
|
477
477
|
modelValue: e.state.content.instance,
|
|
478
|
-
"onUpdate:modelValue":
|
|
478
|
+
"onUpdate:modelValue": t[6] || (t[6] = (u) => e.state.content.instance = u)
|
|
479
479
|
}, null, 8, ["modelValue"])
|
|
480
480
|
]),
|
|
481
481
|
_: 1
|
|
482
|
-
})) :
|
|
482
|
+
})) : k("", !0),
|
|
483
483
|
s(a, { label: "入口路径" }, {
|
|
484
|
-
default:
|
|
485
|
-
s(
|
|
484
|
+
default: l(() => [
|
|
485
|
+
s(c, {
|
|
486
486
|
modelValue: e.state.content.main,
|
|
487
|
-
"onUpdate:modelValue":
|
|
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:
|
|
495
|
-
s(
|
|
494
|
+
default: l(() => [
|
|
495
|
+
s(c, {
|
|
496
496
|
modelValue: e.state.content.version,
|
|
497
|
-
"onUpdate:modelValue":
|
|
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:
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
s(
|
|
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:
|
|
513
|
-
s(
|
|
512
|
+
default: l(() => [
|
|
513
|
+
s(V, { class: "cdn-tips-icon" })
|
|
514
514
|
]),
|
|
515
515
|
_: 1
|
|
516
516
|
})
|
|
517
517
|
])
|
|
518
518
|
]),
|
|
519
|
-
default:
|
|
520
|
-
s(
|
|
519
|
+
default: l(() => [
|
|
520
|
+
s(c, {
|
|
521
521
|
modelValue: e.state.content.cdnLink,
|
|
522
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
` +
|
|
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(
|
|
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
|
-
})) :
|
|
551
|
+
})) : k("", !0);
|
|
552
552
|
}
|
|
553
|
-
const
|
|
554
|
-
const
|
|
553
|
+
const gt = /* @__PURE__ */ J(rt, [["render", mt], ["__scopeId", "data-v-46796b24"]]);
|
|
554
|
+
const _t = {
|
|
555
555
|
components: {
|
|
556
|
-
TinyTabs:
|
|
557
|
-
TinyTabItem:
|
|
558
|
-
PluginPanel:
|
|
559
|
-
SvgButton:
|
|
560
|
-
BridgeManage:
|
|
561
|
-
BridgeSetting:
|
|
562
|
-
LinkButton:
|
|
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
|
|
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
|
-
|
|
568
|
+
n.value === E.Util ? p.value.add(a) : t.value.add(a);
|
|
569
569
|
},
|
|
570
570
|
RESOURCE_TYPE: E,
|
|
571
|
-
activedName:
|
|
571
|
+
activedName: n,
|
|
572
572
|
switchTab: (a) => {
|
|
573
|
-
|
|
573
|
+
x(), q(a.name);
|
|
574
574
|
},
|
|
575
575
|
openBridgePanel: () => {
|
|
576
|
-
|
|
576
|
+
st();
|
|
577
577
|
},
|
|
578
|
-
closePanel:
|
|
578
|
+
closePanel: x,
|
|
579
579
|
openUtilPanel: () => {
|
|
580
|
-
|
|
580
|
+
x();
|
|
581
581
|
},
|
|
582
582
|
refreshList: (a) => {
|
|
583
|
-
a === E.Util ?
|
|
583
|
+
a === E.Util ? p.value.refresh(a) : t.value.refresh(a);
|
|
584
584
|
},
|
|
585
|
-
bridge:
|
|
585
|
+
bridge: t,
|
|
586
586
|
docsUrl: o,
|
|
587
|
-
utilsRef:
|
|
587
|
+
utilsRef: p,
|
|
588
588
|
tips: e,
|
|
589
|
-
isVsCodeEnv:
|
|
589
|
+
isVsCodeEnv: ee
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
return h(), R(
|
|
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:
|
|
601
|
-
s(
|
|
602
|
-
s(
|
|
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:
|
|
606
|
+
onClick: t[0] || (t[0] = (g) => e.addResource("npm"))
|
|
607
607
|
}, null, 8, ["tips"])
|
|
608
608
|
]),
|
|
609
|
-
content:
|
|
609
|
+
content: l(() => [
|
|
610
610
|
s(a, {
|
|
611
611
|
modelValue: e.activedName,
|
|
612
|
-
"onUpdate:modelValue":
|
|
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:
|
|
617
|
+
default: l(() => [
|
|
618
618
|
s(b, {
|
|
619
619
|
name: e.RESOURCE_TYPE.Util,
|
|
620
620
|
title: "工具类"
|
|
621
621
|
}, {
|
|
622
|
-
default:
|
|
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:
|
|
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"])) :
|
|
644
|
+
}, 8, ["name"])) : k("", !0)
|
|
645
645
|
]),
|
|
646
646
|
_: 1
|
|
647
647
|
}, 8, ["modelValue", "onClick"]),
|
|
648
|
-
s(
|
|
648
|
+
s(c, { onRefresh: e.refreshList }, null, 8, ["onRefresh"])
|
|
649
649
|
]),
|
|
650
650
|
_: 1
|
|
651
651
|
}, 8, ["onClose"]);
|
|
652
652
|
}
|
|
653
|
-
const
|
|
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:
|
|
658
|
+
component: ft
|
|
659
659
|
};
|
|
660
660
|
export {
|
|
661
|
-
|
|
661
|
+
kt as default
|
|
662
662
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.manage-panel[data-v-
|
|
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
|
+
"version": "1.0.5",
|
|
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.
|
|
28
|
-
"@opentiny/tiny-engine-common": "1.0.
|
|
29
|
-
"@opentiny/tiny-engine-controller": "1.0.
|
|
30
|
-
"@opentiny/tiny-engine-http": "1.0.
|
|
31
|
-
"@opentiny/vue": "~3.10.0",
|
|
32
|
-
"@opentiny/vue-icon": "~3.10.0"
|
|
27
|
+
"@opentiny/tiny-engine-canvas": "1.0.5",
|
|
28
|
+
"@opentiny/tiny-engine-common": "1.0.4",
|
|
29
|
+
"@opentiny/tiny-engine-controller": "1.0.5",
|
|
30
|
+
"@opentiny/tiny-engine-http": "1.0.4"
|
|
33
31
|
},
|
|
34
32
|
"devDependencies": {
|
|
35
33
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
36
|
-
"@vitejs/plugin-vue-jsx": "^1.
|
|
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": "
|
|
42
|
+
"gitHead": "12bfefc821d435bf69e7e02bf288b5fed633588f"
|
|
43
43
|
}
|