@shjjs/visual-ui 3.0.17 → 3.0.19
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/es/commons/plugins/datasource/utils/storageData.mjs +14 -6
- package/es/commons/plugins/datasource/utils/utils.mjs +160 -135
- package/es/commons/plugins/event/actions/updateVariableAction.mjs +32 -30
- package/es/components/Commons/components/CustomComponentRender/index.vue.mjs +2 -2
- package/es/components/Commons/components/CustomComponentRender/index.vue2.mjs +74 -66
- package/es/components/Scene/components/UeForWebUI/index.vue.mjs +2 -2
- package/es/components/Scene/components/UeForWebUI/index.vue2.mjs +7 -8
- package/es/components/Scene/components/UeForXiWebView/index.vue.mjs +2 -2
- package/es/components/Scene/components/UeForXiWebView/index.vue2.mjs +7 -8
- package/es/components/Text/components/List/index.vue.mjs +47 -47
- package/es/components/Text/components/TableScroll/index.vue.mjs +2 -2
- package/es/components/Text/components/TableScroll/index.vue2.mjs +2 -1
- package/es/components/Text/components/TextDynamic/index.vue.mjs +4 -4
- package/es/packages/commons/plugins/datasource/utils/utils.d.ts +51 -43
- package/es/packages/commons/plugins/event/entity/event.d.ts +1 -0
- package/es/packages/components/Commons/components/CustomComponentRender/index.vue.d.ts +73 -70
- package/es/widgets.css +1 -1
- package/package.json +1 -1
- package/umd/index.js +1043 -1036
- package/umd/widgets.css +1 -1
- package/es/components/Scene/components/UeForWebUI/WebUI.mjs +0 -4
- package/es/components/Scene/components/UeForXiWebView/XiWebView.mjs +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-604e43c1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, computed as a, onMounted as d, onBeforeUnmount as
|
|
1
|
+
import { defineComponent as s, computed as a, onMounted as d, onBeforeUnmount as l, createElementBlock as v, openBlock as f } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import "../../../Interaction/components/Tabs/index.mjs";
|
|
@@ -162,9 +162,8 @@ import "../../../../commons/plugins/datasource/utils/request.mjs";
|
|
|
162
162
|
import "mqtt";
|
|
163
163
|
import "nanoid";
|
|
164
164
|
import { upgradeUeForXiWebView as g } from "./version.mjs";
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
...w,
|
|
165
|
+
const h = { class: "shj-ue-for-XiWebView" }, E = s({ name: "ShjUeForXiWebView" }), Mi = /* @__PURE__ */ s({
|
|
166
|
+
...E,
|
|
168
167
|
props: {
|
|
169
168
|
option: {},
|
|
170
169
|
sources: {},
|
|
@@ -190,14 +189,14 @@ const E = { class: "shj-ue-for-XiWebView" }, w = s({ name: "ShjUeForXiWebView" }
|
|
|
190
189
|
};
|
|
191
190
|
let o = null;
|
|
192
191
|
return d(() => {
|
|
193
|
-
o = document.createElement("script"), o.src =
|
|
192
|
+
o = document.createElement("script"), o.src = `/libs/XiWebView.js?t=${Date.now()}`, o.type = "text/javascript", o.onload = () => {
|
|
194
193
|
u();
|
|
195
194
|
}, document.body.appendChild(o);
|
|
196
|
-
}),
|
|
195
|
+
}), l(() => {
|
|
197
196
|
delete window.ue;
|
|
198
|
-
}), (i, r) => (f(),
|
|
197
|
+
}), (i, r) => (f(), v("div", h));
|
|
199
198
|
}
|
|
200
199
|
});
|
|
201
200
|
export {
|
|
202
|
-
|
|
201
|
+
Mi as default
|
|
203
202
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, computed as m, ref as b, onMounted as U, createBlock as W, openBlock as y, unref as v, withCtx as z, createElementVNode as
|
|
1
|
+
import { defineComponent as w, computed as m, ref as b, onMounted as U, createBlock as W, openBlock as y, unref as v, withCtx as z, createElementVNode as p, normalizeStyle as a, createElementBlock as x, Fragment as F, renderList as P, createVNode as g } from "vue";
|
|
2
2
|
import { Vue3SeamlessScroll as T } from "vue3-seamless-scroll";
|
|
3
3
|
import { useWatch as _ } from "./hooks/useListWatch.mjs";
|
|
4
4
|
/* empty css */
|
|
@@ -161,7 +161,7 @@ import "../../../Deleted/components/Wavesurfer/index.mjs";
|
|
|
161
161
|
import { SHJDatasourceV2 as q } from "../../../../commons/plugins/datasource/index.mjs";
|
|
162
162
|
import { SHJParseEvent as f } from "../../../../commons/plugins/event/index.mjs";
|
|
163
163
|
import "lodash";
|
|
164
|
-
import { Utils as
|
|
164
|
+
import { Utils as i } from "../../../../commons/utils/utils.mjs";
|
|
165
165
|
import S from "../../../../commons/components/Text.vue.mjs";
|
|
166
166
|
import { upgradeList as A } from "./version.mjs";
|
|
167
167
|
const G = ["onClick", "onMouseenter", "onMouseleave"], I = ["src"], K = w({ name: "ShjList" }), oi = /* @__PURE__ */ w({
|
|
@@ -176,24 +176,24 @@ const G = ["onClick", "onMouseenter", "onMouseleave"], I = ["src"], K = w({ name
|
|
|
176
176
|
"on-mouseenter-row",
|
|
177
177
|
"on-mouseout-row"
|
|
178
178
|
],
|
|
179
|
-
setup(s, { expose: k, emit:
|
|
180
|
-
const t = m(() => A(s.option)),
|
|
181
|
-
() =>
|
|
179
|
+
setup(s, { expose: k, emit: E }) {
|
|
180
|
+
const t = m(() => A(s.option)), O = E, c = b([]), h = b(-1), V = m(
|
|
181
|
+
() => i.json2cssObject(t.value.style.list)
|
|
182
182
|
), M = m(() => ({
|
|
183
|
-
normal:
|
|
184
|
-
hover:
|
|
183
|
+
normal: i.json2cssObject(t.value.style.item),
|
|
184
|
+
hover: i.json2cssObject(t.value.style.item.hover)
|
|
185
185
|
})), C = m(() => ({
|
|
186
|
-
normal:
|
|
187
|
-
hover:
|
|
186
|
+
normal: i.json2cssObject(t.value.style.item.thumbnail),
|
|
187
|
+
hover: i.json2cssObject(t.value.style.item.hover.thumbnail)
|
|
188
188
|
})), L = m(() => ({
|
|
189
|
-
normal:
|
|
190
|
-
hover:
|
|
189
|
+
normal: i.json2cssObject(t.value.style.item.container),
|
|
190
|
+
hover: i.json2cssObject(t.value.style.item.hover.container)
|
|
191
191
|
})), $ = m(() => ({
|
|
192
|
-
normal:
|
|
193
|
-
hover:
|
|
192
|
+
normal: i.json2cssObject(t.value.style.item.container.title),
|
|
193
|
+
hover: i.json2cssObject(t.value.style.item.hover.container.title)
|
|
194
194
|
})), D = m(() => ({
|
|
195
|
-
normal:
|
|
196
|
-
hover:
|
|
195
|
+
normal: i.json2cssObject(t.value.style.item.container.description),
|
|
196
|
+
hover: i.json2cssObject(
|
|
197
197
|
t.value.style.item.hover.container.description
|
|
198
198
|
)
|
|
199
199
|
})), N = m(() => ({
|
|
@@ -202,21 +202,21 @@ const G = ["onClick", "onMouseenter", "onMouseleave"], I = ["src"], K = w({ name
|
|
|
202
202
|
})), B = m(() => ({
|
|
203
203
|
normal: t.value.style.item.container.description.textStyle,
|
|
204
204
|
hover: t.value.style.item.hover.container.description.textStyle
|
|
205
|
-
})), l = (
|
|
205
|
+
})), l = (r, n) => n === h.value ? r.hover : r.normal, u = () => {
|
|
206
206
|
q.parse({
|
|
207
207
|
sources: s.sources,
|
|
208
|
-
callback: ({ data:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
callback: ({ data: r }) => {
|
|
209
|
+
try {
|
|
210
|
+
f.parseEvents(s.useEvents, "dataListener", c.value), c.value = r[0].data;
|
|
211
|
+
} catch {
|
|
212
|
+
c.value = [], f.parseEvents(s.useEvents, "dataListenerError", null);
|
|
212
213
|
}
|
|
213
|
-
e[0] && e[0].data ? n.value = e[0].data : n.value = [], f.parseEvents(s.useEvents, "dataListener", n.value);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
|
-
}, d = (
|
|
217
|
-
|
|
218
|
-
const o = { row:
|
|
219
|
-
|
|
216
|
+
}, d = (r) => (n, e) => {
|
|
217
|
+
r === "mouseenter" ? h.value = e : r === "mouseleave" && (h.value = -1);
|
|
218
|
+
const o = { row: n, rowIndex: e };
|
|
219
|
+
O(`on-${r}-row`, o), f.parseEvents(s.useEvents, `on-${r}-row`, o);
|
|
220
220
|
}, H = d("click"), R = d("mouseenter"), J = d("mouseleave");
|
|
221
221
|
return U(() => u()), _({ option: t.value, sources: s.sources }, u), k({
|
|
222
222
|
refresh: () => u(),
|
|
@@ -224,11 +224,11 @@ const G = ["onClick", "onMouseenter", "onMouseleave"], I = ["src"], K = w({ name
|
|
|
224
224
|
},
|
|
225
225
|
// 刷新视图 无需刷新
|
|
226
226
|
refreshData: () => u()
|
|
227
|
-
}), (
|
|
227
|
+
}), (r, n) => (y(), W(v(T), {
|
|
228
228
|
modelValue: t.value.scroll.start,
|
|
229
|
-
"onUpdate:modelValue":
|
|
229
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => t.value.scroll.start = e),
|
|
230
230
|
direction: t.value.scroll.direction,
|
|
231
|
-
list:
|
|
231
|
+
list: c.value,
|
|
232
232
|
"is-watch": "",
|
|
233
233
|
step: t.value.scroll.step,
|
|
234
234
|
hover: t.value.scroll.hover,
|
|
@@ -238,50 +238,50 @@ const G = ["onClick", "onMouseenter", "onMouseleave"], I = ["src"], K = w({ name
|
|
|
238
238
|
class: "list-container overflow-hidden"
|
|
239
239
|
}, {
|
|
240
240
|
default: z(() => [
|
|
241
|
-
|
|
241
|
+
p("div", {
|
|
242
242
|
class: "list-wrap flex flex-direction-column",
|
|
243
|
-
style:
|
|
243
|
+
style: a(V.value)
|
|
244
244
|
}, [
|
|
245
|
-
(y(!0), x(F, null, P(
|
|
245
|
+
(y(!0), x(F, null, P(c.value, (e, o) => (y(), x("div", {
|
|
246
246
|
key: o,
|
|
247
247
|
class: "flex gap-10px align-items-center padding-4px height-60px background-color-black overflow-hidden transition-all duration-200 ease-in-out",
|
|
248
|
-
style:
|
|
249
|
-
onClick: (j) => v(H)(
|
|
250
|
-
onMouseenter: (j) => v(R)(
|
|
251
|
-
onMouseleave: (j) => v(J)(
|
|
248
|
+
style: a(l(M.value, o)),
|
|
249
|
+
onClick: (j) => v(H)(e, o),
|
|
250
|
+
onMouseenter: (j) => v(R)(e, o),
|
|
251
|
+
onMouseleave: (j) => v(J)(e, o)
|
|
252
252
|
}, [
|
|
253
|
-
|
|
253
|
+
p("div", {
|
|
254
254
|
class: "item-thumbnail width-50px height-50px flex-none background-color-blue overflow-hidden transition-all duration-200 ease-in-out",
|
|
255
|
-
style:
|
|
255
|
+
style: a(l(C.value, o))
|
|
256
256
|
}, [
|
|
257
|
-
|
|
257
|
+
p("img", {
|
|
258
258
|
referrerpolicy: "no-referrer",
|
|
259
259
|
class: "width-100 height-100 object-fit-cover transition-all duration-200 ease-in-out",
|
|
260
|
-
src:
|
|
260
|
+
src: e.thumbnail,
|
|
261
261
|
style: { "pointer-events": "none" }
|
|
262
262
|
}, null, 8, I)
|
|
263
263
|
], 4),
|
|
264
|
-
|
|
264
|
+
p("div", {
|
|
265
265
|
class: "item-container flex flex-direction-column gap-2px transition-all duration-200 ease-in-out",
|
|
266
|
-
style:
|
|
266
|
+
style: a(l(L.value, o))
|
|
267
267
|
}, [
|
|
268
|
-
|
|
268
|
+
p("div", {
|
|
269
269
|
class: "item-title width-100 flex-none transition-all duration-200 ease-in-out",
|
|
270
|
-
style:
|
|
270
|
+
style: a(l($.value, o))
|
|
271
271
|
}, [
|
|
272
272
|
g(S, {
|
|
273
273
|
"text-style": l(N.value, o),
|
|
274
|
-
text:
|
|
274
|
+
text: e.title,
|
|
275
275
|
style: { "pointer-events": "none" }
|
|
276
276
|
}, null, 8, ["text-style", "text"])
|
|
277
277
|
], 4),
|
|
278
|
-
|
|
278
|
+
p("div", {
|
|
279
279
|
class: "item-description flex-none transition-all duration-200 ease-in-out",
|
|
280
|
-
style:
|
|
280
|
+
style: a(l(D.value, o))
|
|
281
281
|
}, [
|
|
282
282
|
g(S, {
|
|
283
283
|
"text-style": l(B.value, o),
|
|
284
|
-
text:
|
|
284
|
+
text: e.description,
|
|
285
285
|
style: { "pointer-events": "none" }
|
|
286
286
|
}, null, 8, ["text-style", "text"])
|
|
287
287
|
], 4)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d231166c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -338,6 +338,7 @@ const lt = {
|
|
|
338
338
|
hover: l.value.scroll.hover,
|
|
339
339
|
"limit-scroll-num": l.value.scroll.limitScrollNum,
|
|
340
340
|
"single-height": l.value.scroll.isSingle ? l.value.style.rows.header.height * 5 : 0,
|
|
341
|
+
step: l.value.scroll.step,
|
|
341
342
|
"single-wait-time": l.value.scroll.singleWaitTime,
|
|
342
343
|
class: "table-body"
|
|
343
344
|
}, {
|
|
@@ -378,7 +379,7 @@ const lt = {
|
|
|
378
379
|
])), 128))
|
|
379
380
|
]),
|
|
380
381
|
_: 1
|
|
381
|
-
}, 8, ["modelValue", "direction", "list", "hover", "limit-scroll-num", "single-height", "single-wait-time"])
|
|
382
|
+
}, 8, ["modelValue", "direction", "list", "hover", "limit-scroll-num", "single-height", "step", "single-wait-time"])
|
|
382
383
|
], 6)) : T("", !0);
|
|
383
384
|
}
|
|
384
385
|
});
|
|
@@ -162,8 +162,8 @@ import "lodash";
|
|
|
162
162
|
import { upgradeTextDynamic as v } from "./version.mjs";
|
|
163
163
|
import d from "../../../../commons/components/Text.vue.mjs";
|
|
164
164
|
import { useWatch as h } from "./hooks/useWatch.mjs";
|
|
165
|
-
const
|
|
166
|
-
...
|
|
165
|
+
const E = e({ name: "ShjTextDynamic" }), Tr = /* @__PURE__ */ e({
|
|
166
|
+
...E,
|
|
167
167
|
props: {
|
|
168
168
|
option: {},
|
|
169
169
|
sources: {},
|
|
@@ -177,7 +177,7 @@ const y = e({ name: "ShjTextDynamic" }), Tr = /* @__PURE__ */ e({
|
|
|
177
177
|
try {
|
|
178
178
|
p.parseEvents(t.useEvents, "dataListener", r), m.value = r[0].data[0].value;
|
|
179
179
|
} catch {
|
|
180
|
-
p.parseEvents(t.useEvents, "
|
|
180
|
+
p.parseEvents(t.useEvents, "dataListenerError", null);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
});
|
|
@@ -190,7 +190,7 @@ const y = e({ name: "ShjTextDynamic" }), Tr = /* @__PURE__ */ e({
|
|
|
190
190
|
refresh: () => o(),
|
|
191
191
|
refreshView: () => o(),
|
|
192
192
|
refreshData: () => o()
|
|
193
|
-
}), (r,
|
|
193
|
+
}), (r, y) => (f(), l(d, {
|
|
194
194
|
text: m.value,
|
|
195
195
|
textStyle: i.value.base.textStyle
|
|
196
196
|
}, null, 8, ["text", "textStyle"]));
|
|
@@ -1,43 +1,51 @@
|
|
|
1
|
-
import { IVariable } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* 数据源工具类
|
|
4
|
-
*/
|
|
5
|
-
export declare class DataSourceUtils {
|
|
6
|
-
static executeAllVariable(variableData: IVariable[]): void;
|
|
7
|
-
static replaceObjectVariables(obj: any): any;
|
|
8
|
-
static replaceStringVariables(str: string): string;
|
|
9
|
-
static getObjectVariableNames(obj: any): string[];
|
|
10
|
-
static getStringVariableNames(str: string): string[];
|
|
11
|
-
static parseVariablePath(path: any): {
|
|
12
|
-
varName: any;
|
|
13
|
-
propPath: any;
|
|
14
|
-
};
|
|
15
|
-
static getEnvironments(): {
|
|
16
|
-
envName: string;
|
|
17
|
-
envBaseUrl: string;
|
|
18
|
-
};
|
|
19
|
-
static setEnvironments(environments: any[]): void;
|
|
20
|
-
static getVariables(): any[];
|
|
21
|
-
static setVariables(variable: any[]): void;
|
|
22
|
-
static setVariableById(variable: any, value: any, updateWidget?: boolean): void;
|
|
23
|
-
static getVariableById(id: string): any;
|
|
24
|
-
static getVariableByName(name: string): any;
|
|
25
|
-
static getVariableValueById(id: string): any;
|
|
26
|
-
static addVariable: (variable: any) => void;
|
|
27
|
-
static updateVariable: (variable: any) => void;
|
|
28
|
-
static deleteVariableById: (id: any) => void;
|
|
29
|
-
static noneData(id: string): {
|
|
30
|
-
id: string;
|
|
31
|
-
finalKeyData: {
|
|
32
|
-
id: string;
|
|
33
|
-
data: any;
|
|
34
|
-
};
|
|
35
|
-
finalUserData: {
|
|
36
|
-
id: string;
|
|
37
|
-
data: any;
|
|
38
|
-
};
|
|
39
|
-
filteredData: any;
|
|
40
|
-
rawData: any;
|
|
41
|
-
noMappingData: any;
|
|
42
|
-
};
|
|
43
|
-
|
|
1
|
+
import { IVariable } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* 数据源工具类
|
|
4
|
+
*/
|
|
5
|
+
export declare class DataSourceUtils {
|
|
6
|
+
static executeAllVariable(variableData: IVariable[]): void;
|
|
7
|
+
static replaceObjectVariables(obj: any): any;
|
|
8
|
+
static replaceStringVariables(str: string): string;
|
|
9
|
+
static getObjectVariableNames(obj: any): string[];
|
|
10
|
+
static getStringVariableNames(str: string): string[];
|
|
11
|
+
static parseVariablePath(path: any): {
|
|
12
|
+
varName: any;
|
|
13
|
+
propPath: any;
|
|
14
|
+
};
|
|
15
|
+
static getEnvironments(): {
|
|
16
|
+
envName: string;
|
|
17
|
+
envBaseUrl: string;
|
|
18
|
+
};
|
|
19
|
+
static setEnvironments(environments: any[]): void;
|
|
20
|
+
static getVariables(): any[];
|
|
21
|
+
static setVariables(variable: any[]): void;
|
|
22
|
+
static setVariableById(variable: any, value: any, updateWidget?: boolean, path?: string): void;
|
|
23
|
+
static getVariableById(id: string): any;
|
|
24
|
+
static getVariableByName(name: string): any;
|
|
25
|
+
static getVariableValueById(id: string): any;
|
|
26
|
+
static addVariable: (variable: any) => void;
|
|
27
|
+
static updateVariable: (variable: any) => void;
|
|
28
|
+
static deleteVariableById: (id: any) => void;
|
|
29
|
+
static noneData(id: string): {
|
|
30
|
+
id: string;
|
|
31
|
+
finalKeyData: {
|
|
32
|
+
id: string;
|
|
33
|
+
data: any;
|
|
34
|
+
};
|
|
35
|
+
finalUserData: {
|
|
36
|
+
id: string;
|
|
37
|
+
data: any;
|
|
38
|
+
};
|
|
39
|
+
filteredData: any;
|
|
40
|
+
rawData: any;
|
|
41
|
+
noMappingData: any;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 动态给对象指定路径设置值(含路径有效性检测,全程使用new Function)
|
|
45
|
+
* @param {string} path - 支持点分隔(data3.t1)和数组下标(data3.t2[1])
|
|
46
|
+
* @param {object} obj - 目标对象
|
|
47
|
+
* @param {any} value - 待设置值
|
|
48
|
+
* @throws {Error} 路径无效(节点不存在)时抛出错误
|
|
49
|
+
*/
|
|
50
|
+
static setObjectJsonByPath(path: any, obj: any, value: any): any;
|
|
51
|
+
}
|
|
@@ -1,70 +1,73 @@
|
|
|
1
|
-
import type { ICustomComponentRenderOption } from "./types";
|
|
2
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
option: {
|
|
4
|
-
type: any;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
sources: {
|
|
8
|
-
type: ArrayConstructor;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
useEvents: {
|
|
12
|
-
type: ArrayConstructor;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
}>, {
|
|
16
|
-
option: import("vue").ComputedRef<ICustomComponentRenderOption>;
|
|
17
|
-
productionMode: import("vue").Ref<boolean, boolean>;
|
|
18
|
-
vueVersion: import("vue").Ref<string, string>;
|
|
19
|
-
builtinImportMap: import("vue").ComputedRef<import("@shjjs/repl").ImportMap>;
|
|
20
|
-
sfcOptions: any;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
currentHash: import("vue").Ref<string, string>;
|
|
24
|
-
initStore: () => void;
|
|
25
|
-
handleSourcesChange: () => void;
|
|
26
|
-
handleOptionChange: () => void;
|
|
27
|
-
previewOptions: import("vue").ComputedRef<{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, {}, {}, {},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
1
|
+
import type { ICustomComponentRenderOption } from "./types";
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
option: {
|
|
4
|
+
type: any;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
sources: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
useEvents: {
|
|
12
|
+
type: ArrayConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>, {
|
|
16
|
+
option: import("vue").ComputedRef<ICustomComponentRenderOption>;
|
|
17
|
+
productionMode: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
vueVersion: import("vue").Ref<string, string>;
|
|
19
|
+
builtinImportMap: import("vue").ComputedRef<import("@shjjs/repl").ImportMap>;
|
|
20
|
+
sfcOptions: any;
|
|
21
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
22
|
+
store: import("vue").ShallowRef<any, any>;
|
|
23
|
+
currentHash: import("vue").Ref<string, string>;
|
|
24
|
+
initStore: () => void;
|
|
25
|
+
handleSourcesChange: () => void;
|
|
26
|
+
handleOptionChange: () => void;
|
|
27
|
+
previewOptions: import("vue").ComputedRef<{
|
|
28
|
+
showRuntimeError: boolean;
|
|
29
|
+
showRuntimeWarning: boolean;
|
|
30
|
+
customCode: {
|
|
31
|
+
useCode: string;
|
|
32
|
+
};
|
|
33
|
+
headHTML: string;
|
|
34
|
+
}>;
|
|
35
|
+
sandboxRef: import("vue").Ref<any, any>;
|
|
36
|
+
readonly Sandbox: import("vue").DefineComponent<import("@shjjs/repl").SandboxProps, {
|
|
37
|
+
reload: () => void;
|
|
38
|
+
container: Readonly<import("vue").ShallowRef<HTMLDivElement, HTMLDivElement>>;
|
|
39
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("@shjjs/repl").SandboxProps> & Readonly<{}>, {
|
|
40
|
+
ssr: boolean;
|
|
41
|
+
theme: "dark" | "light";
|
|
42
|
+
clearConsole: boolean;
|
|
43
|
+
previewOptions: {
|
|
44
|
+
headHTML?: string;
|
|
45
|
+
bodyHTML?: string;
|
|
46
|
+
placeholderHTML?: string;
|
|
47
|
+
customCode?: {
|
|
48
|
+
importCode?: string;
|
|
49
|
+
useCode?: string;
|
|
50
|
+
};
|
|
51
|
+
showRuntimeError?: boolean;
|
|
52
|
+
showRuntimeWarning?: boolean;
|
|
53
|
+
};
|
|
54
|
+
show: boolean;
|
|
55
|
+
autoStoreInit: boolean;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
57
|
+
container: HTMLDivElement;
|
|
58
|
+
}, any>;
|
|
59
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
option: {
|
|
61
|
+
type: any;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
sources: {
|
|
65
|
+
type: ArrayConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
useEvents: {
|
|
69
|
+
type: ArrayConstructor;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
export default _sfc_main;
|