@fangzhongya/vue-archive 0.1.11 → 0.1.13
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.css +1 -1
- package/dist/node/index.cjs +163 -74
- package/dist/node/index.js +163 -74
- package/dist/packages/components/aside/index.vue.js +4 -4
- package/dist/packages/components/boxurl/index.vue.js +5 -5
- package/dist/packages/components/choice/choice.vue.js +4 -4
- package/dist/packages/components/choice/index.vue.js +1 -1
- package/dist/packages/components/code/highlight.vue.js +3 -3
- package/dist/packages/components/code/index.vue.js +3 -3
- package/dist/packages/components/compo/code.vue.js +2 -2
- package/dist/packages/components/compo/ftable.vue.js +6 -6
- package/dist/packages/components/compo/index.vue.js +1 -1
- package/dist/packages/components/compo/info-top.vue.js +2 -2
- package/dist/packages/components/compo/info.vue.js +5 -5
- package/dist/packages/components/compo/props.vue.js +1 -1
- package/dist/packages/components/header/index.vue.js +2 -2
- package/dist/packages/components/main/index.vue.js +3 -3
- package/dist/packages/components/md/index.vue.js +7 -7
- package/dist/packages/components/test/index.vue.js +4 -4
- package/dist/packages/components/use/code.d.ts +18 -25
- package/dist/packages/components/use/code.vue.js +4 -4
- package/dist/packages/components/use/effect.vue.js +2 -2
- package/dist/packages/components/use/retrie/any/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/array/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/boolean/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/choice/index.vue.js +5 -5
- package/dist/packages/components/use/retrie/expose/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/form/index.vue.js +1 -1
- package/dist/packages/components/use/retrie/function/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/index.vue.js +1 -1
- package/dist/packages/components/use/retrie/input/editor/editor.d.ts +0 -49
- package/dist/packages/components/use/retrie/input/editor/editor.vue.js +2 -2
- package/dist/packages/components/use/retrie/input/index.vue.js +1 -1
- package/dist/packages/components/use/retrie/input/text.vue.js +2 -2
- package/dist/packages/components/use/retrie/number/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/object/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/other/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/select/index.vue.js +5 -5
- package/dist/packages/components/use/retrie/slot/index.vue.js +2 -2
- package/dist/packages/components/use/retrie/string/index.vue.js +2 -2
- package/dist/packages/components/use/set-code.vue.js +2 -2
- package/dist/packages/components/use/set-emit.vue.js +4 -4
- package/dist/packages/components/use/set-expose.vue.js +6 -6
- package/dist/packages/components/use/set-props.vue.js +2 -2
- package/dist/packages/components/use/set-slot.vue.js +7 -7
- package/dist/packages/index/index.vue2.js +2 -2
- package/dist/packages/page/compon/index.vue2.js +2 -2
- package/dist/packages/page/comprops/index.vue2.js +3 -3
- package/dist/packages/page/develop/index.vue2.js +2 -2
- package/dist/packages/page/edit/index.vue2.js +2 -2
- package/dist/packages/page/index/index.vue2.js +1 -1
- package/dist/packages/page/single/index.vue2.js +2 -2
- package/dist/packages/page/tests/index.vue2.js +6 -6
- package/dist/packages/utils/glob.cjs +1 -1
- package/dist/packages/utils/glob.js +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as l, watch as p,
|
|
1
|
+
import { defineComponent as c, ref as l, watch as p, openBlock as s, createElementBlock as u, createVNode as i, unref as f } from "vue";
|
|
2
2
|
import m from "./top.js";
|
|
3
3
|
import { getNotesText as v } from "../../utils/annotat.js";
|
|
4
4
|
import { getLocalTextComponents as _ } from "../../utils/glob.js";
|
|
@@ -22,7 +22,7 @@ const d = { class: "info-top" }, y = /* @__PURE__ */ c({
|
|
|
22
22
|
() => {
|
|
23
23
|
o();
|
|
24
24
|
}
|
|
25
|
-
), o(), (n, a) => (
|
|
25
|
+
), o(), (n, a) => (s(), u("div", d, [
|
|
26
26
|
i(f(m), { value: t.value }, null, 8, ["value"])
|
|
27
27
|
]));
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m,
|
|
1
|
+
import { defineComponent as m, openBlock as n, createElementBlock as a, createVNode as c, withCtx as p, createElementVNode as e, toDisplayString as t, Fragment as r, renderList as d, createCommentVNode as u } from "vue";
|
|
2
2
|
import _ from "../boxurl/index.vue.js";
|
|
3
3
|
const f = { class: "compo-info" }, v = { class: "compo-info-name" }, h = { class: "compo-info-name-span" }, N = {
|
|
4
4
|
key: 0,
|
|
@@ -12,19 +12,19 @@ const f = { class: "compo-info" }, v = { class: "compo-info-name" }, h = { class
|
|
|
12
12
|
},
|
|
13
13
|
setup(i) {
|
|
14
14
|
const o = i;
|
|
15
|
-
return (x, s) => (
|
|
15
|
+
return (x, s) => (n(), a("div", f, [
|
|
16
16
|
c(_, {
|
|
17
17
|
value: o.value
|
|
18
18
|
}, {
|
|
19
19
|
default: p(() => [
|
|
20
20
|
e("div", v, [
|
|
21
21
|
e("div", h, t(o.value?.name), 1),
|
|
22
|
-
o.value?.aliasNames && o.value?.aliasNames.length ? (
|
|
22
|
+
o.value?.aliasNames && o.value?.aliasNames.length ? (n(), a("div", N, [
|
|
23
23
|
s[0] || (s[0] = e("span", { class: "compo-info-name-li-span" }, " 别名 ", -1)),
|
|
24
24
|
e("span", k, [
|
|
25
|
-
(
|
|
25
|
+
(n(!0), a(r, null, d(o.value.aliasNames, (l) => (n(), a("span", null, t(l), 1))), 256))
|
|
26
26
|
])
|
|
27
|
-
])) :
|
|
27
|
+
])) : u("", !0),
|
|
28
28
|
e("div", y, [
|
|
29
29
|
s[1] || (s[1] = e("span", { class: "compo-info-name-li-span" }, " 文件路径 ", -1)),
|
|
30
30
|
e("span", g, t(o.value?.key), 1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as p, reactive as $, watch as B,
|
|
1
|
+
import { defineComponent as g, ref as p, reactive as $, watch as B, openBlock as l, createElementBlock as h, createBlock as n, unref as u, createCommentVNode as i, createElementVNode as o } from "vue";
|
|
2
2
|
import N from "./top.js";
|
|
3
3
|
import r from "./ftable.vue.js";
|
|
4
4
|
import { tprops as E, temits as T, texpose as V, tslot as b } from "./index.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as e, createElementBlock as r } from "vue";
|
|
2
2
|
import c from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const o = {};
|
|
4
4
|
function t(n, _) {
|
|
5
|
-
return
|
|
5
|
+
return e(), r("div");
|
|
6
6
|
}
|
|
7
7
|
const m = /* @__PURE__ */ c(o, [["render", t]]);
|
|
8
8
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, ref as f, watch as p,
|
|
1
|
+
import { defineComponent as d, ref as f, watch as p, openBlock as v, createElementBlock as m, createElementVNode as t, createVNode as a, Fragment as _, renderList as $ } from "vue";
|
|
2
2
|
import { useRouter as C } from "vue-router";
|
|
3
3
|
import { toCompon as b, toTests as k, toDevelop as g, toEdit as x } from "../../router/index.js";
|
|
4
4
|
import E from "../compo/index.vue.js";
|
|
@@ -26,7 +26,7 @@ const j = { class: "main" }, w = { class: "main-top" }, D = { class: "main-compo
|
|
|
26
26
|
function n(s) {
|
|
27
27
|
s == 1 ? b(l, o.value) : s == 2 ? k(l, o.value) : s == 3 ? g(l, o.value) : s == 4 && x(l, o.value);
|
|
28
28
|
}
|
|
29
|
-
return (s, e) => (
|
|
29
|
+
return (s, e) => (v(), m("div", j, [
|
|
30
30
|
t("div", w, [
|
|
31
31
|
a(N, { value: u.value }, null, 8, ["value"])
|
|
32
32
|
]),
|
|
@@ -51,7 +51,7 @@ const j = { class: "main" }, w = { class: "main-top" }, D = { class: "main-compo
|
|
|
51
51
|
onClick: e[3] || (e[3] = (i) => n(4))
|
|
52
52
|
}, "编辑")
|
|
53
53
|
]),
|
|
54
|
-
(
|
|
54
|
+
(v(!0), m(_, null, $(r.value, (i) => (v(), m("div", L, [
|
|
55
55
|
a(T, { value: i }, null, 8, ["value"])
|
|
56
56
|
]))), 256)),
|
|
57
57
|
t("div", O, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, ref as d, watch as h,
|
|
1
|
+
import { defineComponent as s, ref as d, watch as h, openBlock as r, createElementBlock as i, Fragment as v, createVNode as _, withCtx as f, createElementVNode as l, toDisplayString as p, createCommentVNode as g } from "vue";
|
|
2
2
|
import x from "../boxurl/index.vue.js";
|
|
3
3
|
import u from "../../../_virtual/common.js";
|
|
4
4
|
import k from "markdown-it";
|
|
@@ -36,18 +36,18 @@ const y = { class: "md" }, L = { class: "md-top-name" }, T = ["innerHTML"], D =
|
|
|
36
36
|
t.value = "";
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
return n(), (a, o) => (
|
|
40
|
-
t.value ? (
|
|
41
|
-
|
|
39
|
+
return n(), (a, o) => (r(), i("div", y, [
|
|
40
|
+
t.value ? (r(), i(v, { key: 0 }, [
|
|
41
|
+
_(x, {
|
|
42
42
|
value: e.value
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
l("div", L,
|
|
44
|
+
default: f(() => [
|
|
45
|
+
l("div", L, p(e.value?.value) + " 说明文档", 1)
|
|
46
46
|
]),
|
|
47
47
|
_: 1
|
|
48
48
|
}, 8, ["value"]),
|
|
49
49
|
l("div", { innerHTML: t.value }, null, 8, T)
|
|
50
|
-
], 64)) :
|
|
50
|
+
], 64)) : g("", !0)
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
53
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, ref as u, watch as g, defineAsyncComponent as C,
|
|
1
|
+
import { defineComponent as k, ref as u, watch as g, defineAsyncComponent as C, openBlock as i, createElementBlock as p, normalizeClass as N, createVNode as a, withCtx as r, createElementVNode as o, toDisplayString as B, unref as f, createBlock as T, Suspense as V, createTextVNode as b, createCommentVNode as w } from "vue";
|
|
2
2
|
import A from "../boxurl/index.vue.js";
|
|
3
3
|
import D from "./top.js";
|
|
4
4
|
import E from "../code/index.vue.js";
|
|
@@ -50,9 +50,9 @@ const j = { class: "md-top-name" }, z = { class: "test-top" }, L = { class: "tes
|
|
|
50
50
|
]),
|
|
51
51
|
o("div", L, [
|
|
52
52
|
o("div", O, [
|
|
53
|
-
(i(), V
|
|
53
|
+
(i(), T(V, null, {
|
|
54
54
|
fallback: r(() => [...t[0] || (t[0] = [
|
|
55
|
-
|
|
55
|
+
b(" 示例加载中... ", -1)
|
|
56
56
|
])]),
|
|
57
57
|
default: r(() => [
|
|
58
58
|
a(f(v))
|
|
@@ -65,7 +65,7 @@ const j = { class: "md-top-name" }, z = { class: "test-top" }, L = { class: "tes
|
|
|
65
65
|
value: e.value,
|
|
66
66
|
text: s.value
|
|
67
67
|
}, null, 8, ["value", "text"])
|
|
68
|
-
])) :
|
|
68
|
+
])) : w("", !0)
|
|
69
69
|
])
|
|
70
70
|
], 2));
|
|
71
71
|
}
|
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
}>> & Readonly<{
|
|
21
|
-
onRefresh?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
html: string;
|
|
24
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|
|
1
|
+
import { ObjStr, ObjUnk } from '../../config';
|
|
2
|
+
import { SpecObjs, Spec } from '../../utils/index';
|
|
3
|
+
import { DataType } from './util';
|
|
4
|
+
export declare function getHmtl(propsname: string, param: {
|
|
5
|
+
[key: string]: SpecObjs[];
|
|
6
|
+
}, value: ObjUnk, slotValue?: ObjStr, propsText?: ObjStr, exposeText?: ObjUnk): Promise<string>;
|
|
7
|
+
export declare function setValStringify(v: unknown, key: string, propsText?: ObjStr): string | Promise<string>;
|
|
8
|
+
type SelectsObj = {
|
|
9
|
+
label: string;
|
|
10
|
+
prop: unknown;
|
|
11
|
+
};
|
|
12
|
+
export declare function getSpecType(val: Spec): {
|
|
13
|
+
arr: SelectsObj[];
|
|
14
|
+
type: string;
|
|
15
|
+
dataType: DataType[];
|
|
16
|
+
};
|
|
17
|
+
export declare function getDefaultValue(obj: Spec, is?: boolean): any;
|
|
18
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as p,
|
|
1
|
+
import { defineComponent as m, ref as p, openBlock as v, createElementBlock as f, createElementVNode as e, toDisplayString as h, withModifiers as i, withDirectives as C, createVNode as _, vShow as b } from "vue";
|
|
2
2
|
import k from "../code/highlight.vue.js";
|
|
3
3
|
import { copyCode as g } from "../../utils/index.js";
|
|
4
4
|
import { exportStringToFile as S } from "../../utils/util.js";
|
|
@@ -30,13 +30,13 @@ const y = { class: "set-code" }, w = { class: "but-div set-code-but" }, x = { cl
|
|
|
30
30
|
function a() {
|
|
31
31
|
l("refresh");
|
|
32
32
|
}
|
|
33
|
-
return (D, s) => (
|
|
33
|
+
return (D, s) => (v(), f("div", y, [
|
|
34
34
|
e("div", {
|
|
35
35
|
onClick: r,
|
|
36
36
|
class: "set-code-buts"
|
|
37
37
|
}, [
|
|
38
38
|
s[0] || (s[0] = e("div", null, "代码", -1)),
|
|
39
|
-
e("div", w,
|
|
39
|
+
e("div", w, h(o.value ? "显示" : "隐藏"), 1),
|
|
40
40
|
e("div", {
|
|
41
41
|
onClick: i(d, ["stop"]),
|
|
42
42
|
class: "but-div set-code-but"
|
|
@@ -50,7 +50,7 @@ const y = { class: "set-code" }, w = { class: "but-div set-code-but" }, x = { cl
|
|
|
50
50
|
class: "but-div set-code-but"
|
|
51
51
|
}, " 刷新 ")
|
|
52
52
|
]),
|
|
53
|
-
|
|
53
|
+
C(e("div", x, [
|
|
54
54
|
_(k, {
|
|
55
55
|
language: "html",
|
|
56
56
|
code: t.html
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { openBlock as t, createElementBlock as o, renderSlot as c } from "vue";
|
|
2
2
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const s = {}, f = { class: "use-effect" };
|
|
4
4
|
function n(e, _) {
|
|
5
|
-
return
|
|
5
|
+
return t(), o("div", f, [
|
|
6
6
|
c(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, ref as p, watch as _,
|
|
1
|
+
import { defineComponent as V, ref as p, watch as _, openBlock as v, createElementBlock as h, createElementVNode as j, createVNode as u } from "vue";
|
|
2
2
|
import { getDataTypeType as T, isDefaultType as C } from "../../util.js";
|
|
3
3
|
import x from "../form/index.vue.js";
|
|
4
4
|
import O from "../select/index.vue.js";
|
|
@@ -92,7 +92,7 @@ const k = { class: "form-any" }, N = /* @__PURE__ */ V({
|
|
|
92
92
|
function y(...e) {
|
|
93
93
|
d("change", ...e);
|
|
94
94
|
}
|
|
95
|
-
return (e, l) => (
|
|
95
|
+
return (e, l) => (v(), h("div", k, [
|
|
96
96
|
j("div", null, [
|
|
97
97
|
u(O, {
|
|
98
98
|
noValue: "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as s, watch as f,
|
|
1
|
+
import { defineComponent as c, ref as s, watch as f, openBlock as p, createElementBlock as d, createVNode as v } from "vue";
|
|
2
2
|
import y from "../input/index.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { prettierArrFormat as _ } from "../../util.js";
|
|
@@ -40,7 +40,7 @@ const V = { class: "form-array" }, A = /* @__PURE__ */ c({
|
|
|
40
40
|
]`, t("value", void 0, r), t("error", !1);
|
|
41
41
|
return r;
|
|
42
42
|
}
|
|
43
|
-
return (e, r) => (
|
|
43
|
+
return (e, r) => (p(), d("div", V, [
|
|
44
44
|
v(y, {
|
|
45
45
|
format: "json",
|
|
46
46
|
modelValue: n.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as p, watch as m,
|
|
1
|
+
import { defineComponent as c, ref as p, watch as m, openBlock as v, createElementBlock as b, createElementVNode as t, withModifiers as i } from "vue";
|
|
2
2
|
const k = { class: "form-boolean" }, y = ["disabled", "checked"], h = ["disabled", "checked"], V = /* @__PURE__ */ c({
|
|
3
3
|
__name: "index",
|
|
4
4
|
props: {
|
|
@@ -35,7 +35,7 @@ const k = { class: "form-boolean" }, y = ["disabled", "checked"], h = ["disabled
|
|
|
35
35
|
function n(e) {
|
|
36
36
|
o.value = d(e) || !1, u("value", o.value, JSON.stringify(o.value));
|
|
37
37
|
}
|
|
38
|
-
return (e, l) => (
|
|
38
|
+
return (e, l) => (v(), b("div", k, [
|
|
39
39
|
t("div", {
|
|
40
40
|
class: "form-boolean-div",
|
|
41
41
|
onClick: l[0] || (l[0] = i((f) => n(!0), ["stop"]))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as c, computed as _, watch as L,
|
|
1
|
+
import { defineComponent as D, ref as c, computed as _, watch as L, openBlock as i, createElementBlock as r, createElementVNode as p, withModifiers as s, withDirectives as z, Fragment as E, renderList as F, normalizeClass as I, toDisplayString as O, vShow as $ } from "vue";
|
|
2
2
|
import "@fangzhongya/utils/basic/object/mergeObject";
|
|
3
3
|
import { toggleArray as J } from "@fangzhongya/utils/basic/array/toggleArray";
|
|
4
4
|
import "@fangzhongya/utils/name/humpToLine";
|
|
@@ -102,7 +102,7 @@ const G = { class: "form-select" }, H = ["value", "disabled"], K = { class: "for
|
|
|
102
102
|
);
|
|
103
103
|
V("value", e, JSON.stringify(e));
|
|
104
104
|
}
|
|
105
|
-
return (e, t) => (
|
|
105
|
+
return (e, t) => (i(), r("div", G, [
|
|
106
106
|
p("input", {
|
|
107
107
|
value: w.value,
|
|
108
108
|
readonly: "",
|
|
@@ -120,8 +120,8 @@ const G = { class: "form-select" }, H = ["value", "disabled"], K = { class: "for
|
|
|
120
120
|
class: "form-select-box"
|
|
121
121
|
}, [
|
|
122
122
|
z(p("div", K, [
|
|
123
|
-
o.list && o.list.length > 0 ? (
|
|
124
|
-
(
|
|
123
|
+
o.list && o.list.length > 0 ? (i(), r("div", Q, [
|
|
124
|
+
(i(!0), r(E, null, F(o.list, (n, a) => (i(), r("div", {
|
|
125
125
|
class: I(["form-select-list-li", {
|
|
126
126
|
active: A(n)
|
|
127
127
|
}]),
|
|
@@ -129,7 +129,7 @@ const G = { class: "form-select" }, H = ["value", "disabled"], K = { class: "for
|
|
|
129
129
|
}, [
|
|
130
130
|
p("span", null, O(g(n)), 1)
|
|
131
131
|
], 10, R))), 256))
|
|
132
|
-
])) : (
|
|
132
|
+
])) : (i(), r("div", U, "暂无数据"))
|
|
133
133
|
], 512), [
|
|
134
134
|
[$, m.value]
|
|
135
135
|
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, ref as i, computed as h,
|
|
1
|
+
import { defineComponent as y, ref as i, computed as h, openBlock as x, createElementBlock as b, createElementVNode as p, toDisplayString as c, createVNode as N } from "vue";
|
|
2
2
|
import { parseParamString as S } from "../../../../utils/annotat.js";
|
|
3
3
|
import E from "../index.vue.js";
|
|
4
4
|
/* empty css */
|
|
@@ -46,7 +46,7 @@ const O = { class: "expose" }, R = { class: "expose-label" }, j = { class: "expo
|
|
|
46
46
|
} else
|
|
47
47
|
console.log("请选择方法");
|
|
48
48
|
}
|
|
49
|
-
return (t, l) => (
|
|
49
|
+
return (t, l) => (x(), b("div", O, [
|
|
50
50
|
p("div", R, c(m.value || "请选择方法"), 1),
|
|
51
51
|
N(E, {
|
|
52
52
|
list: _.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as r, ref as g,
|
|
1
|
+
import { defineComponent as r, ref as g, openBlock as i, createElementBlock as u, normalizeClass as y, createBlock as n } from "vue";
|
|
2
2
|
import b from "../function/index.vue.js";
|
|
3
3
|
import V from "../object/index.vue.js";
|
|
4
4
|
import T from "../array/index.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, computed as f, ref as s, watch as d,
|
|
1
|
+
import { defineComponent as p, computed as f, ref as s, watch as d, openBlock as v, createElementBlock as _, createVNode as y } from "vue";
|
|
2
2
|
import V from "../input/index.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { prettierFunFormat as g } from "../../util.js";
|
|
@@ -53,7 +53,7 @@ const h = { class: "form-function" }, B = /* @__PURE__ */ p({
|
|
|
53
53
|
}`, t("value", void 0, c() + r), t("error", !1);
|
|
54
54
|
return r;
|
|
55
55
|
}
|
|
56
|
-
return (e, r) => (
|
|
56
|
+
return (e, r) => (v(), _("div", h, [
|
|
57
57
|
y(V, {
|
|
58
58
|
format: "js",
|
|
59
59
|
modelValue: l.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as k, ref as m, watch as V, nextTick as g,
|
|
1
|
+
import { defineComponent as k, ref as m, watch as V, nextTick as g, openBlock as l, createElementBlock as r, createElementVNode as d, withModifiers as b, toDisplayString as f, Fragment as h, renderList as x, createCommentVNode as C, createBlock as p } from "vue";
|
|
2
2
|
import N from "./any/index.vue.js";
|
|
3
3
|
import q from "./form/index.vue.js";
|
|
4
4
|
const B = { class: "com-retrie" }, S = {
|
|
@@ -3,52 +3,3 @@ export declare function getJs(parent: HTMLElement, value: string, options?: stri
|
|
|
3
3
|
export declare function getHtml(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
4
4
|
export declare function getJson(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
5
5
|
export declare function getCss(parent: HTMLElement, value: string, options?: string[]): monaco.editor.IStandaloneCodeEditor;
|
|
6
|
-
...items: string[]): string[];
|
|
7
|
-
isArray(arg: any): arg is any[];
|
|
8
|
-
readonly prototype: any[];
|
|
9
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
10
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
11
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
12
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
13
|
-
of<T>(...items: T[]): T[];
|
|
14
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
15
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
16
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
|
-
"update:modelValue": (...args: any[]) => void;
|
|
21
|
-
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
default: string;
|
|
25
|
-
};
|
|
26
|
-
format: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
};
|
|
29
|
-
options: {
|
|
30
|
-
type: {
|
|
31
|
-
(arrayLength: number): string[];
|
|
32
|
-
(...items: string[]): string[];
|
|
33
|
-
new (arrayLength: number): string[];
|
|
34
|
-
new (...items: string[]): string[];
|
|
35
|
-
isArray(arg: any): arg is any[];
|
|
36
|
-
readonly prototype: any[];
|
|
37
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
38
|
-
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
39
|
-
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
40
|
-
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
41
|
-
of<T>(...items: T[]): T[];
|
|
42
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
|
|
43
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
44
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
}>> & Readonly<{
|
|
48
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
}>, {
|
|
50
|
-
modelValue: string;
|
|
51
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
52
|
-
refText: HTMLDivElement;
|
|
53
|
-
}, HTMLDivElement>;
|
|
54
|
-
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as f, shallowRef as c, watch as d, onMounted as v, withDirectives as p,
|
|
1
|
+
import { defineComponent as m, ref as f, shallowRef as c, watch as d, onMounted as v, withDirectives as p, openBlock as V, createElementBlock as _, createElementVNode as g, unref as h } from "vue";
|
|
2
2
|
import x from "../../../../../directives/adjust/index.js";
|
|
3
3
|
import { getJs as y, getCss as B, getHtml as j, getJson as k } from "./editor.js";
|
|
4
4
|
const w = { class: "editor-div" }, C = /* @__PURE__ */ m({
|
|
@@ -41,7 +41,7 @@ const w = { class: "editor-div" }, C = /* @__PURE__ */ m({
|
|
|
41
41
|
i(a);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
}), (t, a) => p((
|
|
44
|
+
}), (t, a) => p((V(), _("div", w, [
|
|
45
45
|
g("div", {
|
|
46
46
|
class: "editor-code",
|
|
47
47
|
ref_key: "refText",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as d, ref as s, computed as f,
|
|
1
|
+
import { defineComponent as d, ref as s, computed as f, openBlock as l, createElementBlock as c, createBlock as r } from "vue";
|
|
2
2
|
import V from "./text.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import y from "./editor/editor.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as s, ref as d, watch as p, withDirectives as c,
|
|
1
|
+
import { defineComponent as s, ref as d, watch as p, withDirectives as c, openBlock as i, createElementBlock as f, vModelText as v } from "vue";
|
|
2
2
|
const V = /* @__PURE__ */ s({
|
|
3
3
|
__name: "text",
|
|
4
4
|
props: {
|
|
@@ -24,7 +24,7 @@ const V = /* @__PURE__ */ s({
|
|
|
24
24
|
const e = t.value;
|
|
25
25
|
e && u("update:modelValue", e);
|
|
26
26
|
}
|
|
27
|
-
return (r, e) => c((
|
|
27
|
+
return (r, e) => c((i(), f("textarea", {
|
|
28
28
|
class: "form-input-text",
|
|
29
29
|
rows: "5",
|
|
30
30
|
"onUpdate:modelValue": e[0] || (e[0] = (m) => t.value = m),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as c, watch as f,
|
|
1
|
+
import { defineComponent as m, ref as c, watch as f, openBlock as d, createElementBlock as p, withDirectives as v, createElementVNode as N, withModifiers as _, vModelText as V } from "vue";
|
|
2
2
|
const b = { class: "form-number" }, x = /* @__PURE__ */ m({
|
|
3
3
|
__name: "index",
|
|
4
4
|
props: {
|
|
@@ -33,7 +33,7 @@ const b = { class: "form-number" }, x = /* @__PURE__ */ m({
|
|
|
33
33
|
} else
|
|
34
34
|
return r("value", void 0, JSON.stringify(0)), r("error", !1), 0;
|
|
35
35
|
}
|
|
36
|
-
return (t, e) => (
|
|
36
|
+
return (t, e) => (d(), p("div", b, [
|
|
37
37
|
v(N("input", {
|
|
38
38
|
class: "form-number-input",
|
|
39
39
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => o.value = a),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as s, watch as f,
|
|
1
|
+
import { defineComponent as m, ref as s, watch as f, openBlock as p, createElementBlock as d, createVNode as v } from "vue";
|
|
2
2
|
import _ from "../input/index.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { prettierObjFormat as y } from "../../util.js";
|
|
@@ -40,7 +40,7 @@ const V = { class: "form-object" }, k = /* @__PURE__ */ m({
|
|
|
40
40
|
}`, t("value", void 0, r), t("error", !1);
|
|
41
41
|
return r;
|
|
42
42
|
}
|
|
43
|
-
return (e, r) => (
|
|
43
|
+
return (e, r) => (p(), d("div", V, [
|
|
44
44
|
v(_, {
|
|
45
45
|
format: "json",
|
|
46
46
|
modelValue: l.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as p, watch as d,
|
|
1
|
+
import { defineComponent as m, ref as p, watch as d, openBlock as f, createElementBlock as y, createVNode as v } from "vue";
|
|
2
2
|
import _ from "../input/index.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { isTypeEqual as V, prettierFormat as g } from "../../util.js";
|
|
@@ -52,7 +52,7 @@ const h = { class: "form-other" }, B = /* @__PURE__ */ m({
|
|
|
52
52
|
r = "", o("value", void 0, r), o("error", !1);
|
|
53
53
|
return r;
|
|
54
54
|
}
|
|
55
|
-
return (e, r) => (
|
|
55
|
+
return (e, r) => (f(), y("div", h, [
|
|
56
56
|
v(_, {
|
|
57
57
|
format: "js",
|
|
58
58
|
modelValue: l.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, ref as y, watch as T,
|
|
1
|
+
import { defineComponent as C, ref as y, watch as T, openBlock as s, createElementBlock as i, createElementVNode as c, withModifiers as d, withDirectives as x, Fragment as B, renderList as S, normalizeClass as w, toDisplayString as N, vShow as j } from "vue";
|
|
2
2
|
import { getDataTypeType as A, getString as D } from "../../util.js";
|
|
3
3
|
const z = { class: "form-select" }, E = ["value", "disabled"], L = { class: "form-select-box" }, O = { class: "form-select-list" }, F = {
|
|
4
4
|
key: 0,
|
|
@@ -88,7 +88,7 @@ const z = { class: "form-select" }, E = ["value", "disabled"], L = { class: "for
|
|
|
88
88
|
t = e;
|
|
89
89
|
f("value", t, JSON.stringify(e)), f("change", t, n.value);
|
|
90
90
|
}
|
|
91
|
-
return (e, t) => (
|
|
91
|
+
return (e, t) => (s(), i("div", z, [
|
|
92
92
|
c("input", {
|
|
93
93
|
class: "form-select-input",
|
|
94
94
|
value: p(n.value),
|
|
@@ -101,8 +101,8 @@ const z = { class: "form-select" }, E = ["value", "disabled"], L = { class: "for
|
|
|
101
101
|
}, null, 40, E),
|
|
102
102
|
c("div", L, [
|
|
103
103
|
x(c("div", O, [
|
|
104
|
-
l.list && l.list.length > 0 ? (
|
|
105
|
-
(
|
|
104
|
+
l.list && l.list.length > 0 ? (s(), i("div", F, [
|
|
105
|
+
(s(!0), i(B, null, S(l.list, (o, u) => (s(), i("div", {
|
|
106
106
|
class: w(["form-select-list-li", {
|
|
107
107
|
active: b(o)
|
|
108
108
|
}]),
|
|
@@ -110,7 +110,7 @@ const z = { class: "form-select" }, E = ["value", "disabled"], L = { class: "for
|
|
|
110
110
|
}, [
|
|
111
111
|
c("span", null, N(p(o)), 1)
|
|
112
112
|
], 10, J))), 256))
|
|
113
|
-
])) : (
|
|
113
|
+
])) : (s(), i("div", M, "暂无数据"))
|
|
114
114
|
], 512), [
|
|
115
115
|
[j, r.value]
|
|
116
116
|
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i, ref as s,
|
|
1
|
+
import { defineComponent as i, ref as s, openBlock as m, createElementBlock as u, createVNode as p, createElementVNode as d, withModifiers as f } from "vue";
|
|
2
2
|
import _ from "../input/index.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { prettierHtml as v } from "../../util.js";
|
|
@@ -24,7 +24,7 @@ const h = { class: "slot" }, C = /* @__PURE__ */ i({
|
|
|
24
24
|
function c(t) {
|
|
25
25
|
return t;
|
|
26
26
|
}
|
|
27
|
-
return (t, e) => (
|
|
27
|
+
return (t, e) => (m(), u("div", h, [
|
|
28
28
|
p(_, {
|
|
29
29
|
format: "html",
|
|
30
30
|
modelValue: o.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as m, watch as p,
|
|
1
|
+
import { defineComponent as c, ref as m, watch as p, openBlock as d, createElementBlock as f, withDirectives as v, createElementVNode as g, withModifiers as x, vModelText as _ } from "vue";
|
|
2
2
|
import { getString as V } from "../../util.js";
|
|
3
3
|
const h = { class: "form-string" }, B = /* @__PURE__ */ c({
|
|
4
4
|
__name: "index",
|
|
@@ -36,7 +36,7 @@ const h = { class: "form-string" }, B = /* @__PURE__ */ c({
|
|
|
36
36
|
function n(e) {
|
|
37
37
|
return e ? (e = V(e), r("value", e, JSON.stringify(e)), e) : (r("value", void 0, JSON.stringify("")), "");
|
|
38
38
|
}
|
|
39
|
-
return (e, o) => (
|
|
39
|
+
return (e, o) => (d(), f("div", h, [
|
|
40
40
|
v(g("textarea", {
|
|
41
41
|
class: "form-string-text",
|
|
42
42
|
rows: "3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, ref as n, watch as s,
|
|
1
|
+
import { defineComponent as p, ref as n, watch as s, openBlock as r, createElementBlock as c, createVNode as m } from "vue";
|
|
2
2
|
import l from "./code.vue.js";
|
|
3
3
|
import { getHmtl as u } from "./code.js";
|
|
4
4
|
const i = { class: "set-code" }, y = /* @__PURE__ */ p({
|
|
@@ -49,7 +49,7 @@ const i = { class: "set-code" }, y = /* @__PURE__ */ p({
|
|
|
49
49
|
e.exposeText
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
return (f, x) => (
|
|
52
|
+
return (f, x) => (r(), c("div", i, [
|
|
53
53
|
m(l, {
|
|
54
54
|
name: e.name,
|
|
55
55
|
html: t.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h,
|
|
1
|
+
import { defineComponent as h, openBlock as r, createElementBlock as a, Fragment as o, renderList as c, createElementVNode as s, toDisplayString as i, createCommentVNode as b } from "vue";
|
|
2
2
|
const g = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "set-emit"
|
|
@@ -27,15 +27,15 @@ const g = {
|
|
|
27
27
|
let l = e.name;
|
|
28
28
|
return n.value && n.value[l]?._date_ || "";
|
|
29
29
|
}
|
|
30
|
-
return (e, l) => n.list && n.list.length > 0 ? (
|
|
31
|
-
(
|
|
30
|
+
return (e, l) => n.list && n.list.length > 0 ? (r(), a("div", g, [
|
|
31
|
+
(r(!0), a(o, null, c(n.list, (t, f) => (r(), a("div", {
|
|
32
32
|
class: "set-emit-li",
|
|
33
33
|
key: f
|
|
34
34
|
}, [
|
|
35
35
|
s("div", y, i(p(t)), 1),
|
|
36
36
|
s("div", N, [
|
|
37
37
|
s("span", null, "事件返回数据:" + i(_(t)), 1),
|
|
38
|
-
(
|
|
38
|
+
(r(!0), a(o, null, c(d(t), (v, u) => (r(), a("div", { key: u }, [
|
|
39
39
|
s("span", null, i(t.selectable.split(",")[u]), 1),
|
|
40
40
|
s("span", null, "参数" + i(u + 1) + ":", 1),
|
|
41
41
|
s("span", null, i(JSON.stringify(v)), 1)
|