hlrender 0.0.293 → 0.0.295
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/{_pdf-f58abfa8.js → _pdf-013c5e13.js} +7 -7
- package/{_txt-fb6e5231.js → _txt-c8b4bede.js} +7 -7
- package/{_unsupport-45e1adb6.js → _unsupport-f7d2e6bc.js} +1 -1
- package/{affix-widget-a23c07d0.js → affix-widget-bba16424.js} +17 -17
- package/{alert-widget-40decdfa.js → alert-widget-6dd0b2fa.js} +17 -17
- package/{anchor-widget-15e4fb49.js → anchor-widget-12ef6131.js} +14 -14
- package/{auto-complete-widget-3777dde6.js → auto-complete-widget-b93415c6.js} +17 -17
- package/{avatar-widget-02bc06d6.js → avatar-widget-0876cdf6.js} +17 -17
- package/{backtop-widget-13ac96d4.js → backtop-widget-df47e3c0.js} +17 -17
- package/{badge-widget-d5929887.js → badge-widget-23a59e2a.js} +20 -20
- package/{barcode-widget-118814a4.js → barcode-widget-3f3c8034.js} +23 -23
- package/{baseImp-c747aa92.js → baseCommonField-c2a132bc.js} +3321 -3659
- package/baseDataType-af503f9f.js +4 -0
- package/{breadcrumb-widget-9c1ce816.js → breadcrumb-widget-e6607a19.js} +14 -14
- package/{button-widget-69beb829.js → button-widget-96f338f7.js} +17 -17
- package/{cache-widget-0eefea05.js → cache-widget-55248be9.js} +16 -16
- package/{card-widget-ecf8e83f.js → card-widget-d8aa3bfc.js} +36 -36
- package/{carousel-widget-9ae1d3b8.js → carousel-widget-04bbc0ea.js} +15 -15
- package/{cascader-widget-cc6f9fd5.js → cascader-widget-445be0fb.js} +22 -22
- package/chart-widget-17fb249b.js +113 -0
- package/{checkbox-widget-c788c8b5.js → checkbox-widget-8fb1a06e.js} +16 -16
- package/{collapse-widget-ab2dd707.js → collapse-widget-a03aab9f.js} +15 -15
- package/{color-picker-widget-4c430c6f.js → color-picker-widget-54d62083.js} +16 -16
- package/{cont-cell-widget-b9bc6859.js → cont-cell-widget-8b78509f.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-f0f147b3.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-df01b74e.js} +5 -5
- package/{cont-widget-6a48163e.js → cont-widget-d6b8de57.js} +5 -5
- package/content-wrapper-7179adf7.js +17 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-69aa3d67.js → content-wrapper.vue_vue_type_script_setup_true_lang-0ff5e6b6.js} +7 -7
- package/{countdown-widget-162a8078.js → countdown-widget-cfbbbcf7.js} +22 -22
- package/{cssClass-04ad35f8.js → cssClass-22b82172.js} +2 -2
- package/{date-picker-range-widget-c1d31a90.js → date-picker-range-widget-3b5c6b30.js} +33 -33
- package/{date-picker-widget-0f2f8c23.js → date-picker-widget-5fbdf144.js} +34 -34
- package/default-slot-widget-e8f0af5f.js +27 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-10364416.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-89cd92f6.js} +7 -7
- package/{descriptions-widget-715839e8.js → descriptions-widget-29b846f3.js} +15 -15
- package/{dialog-815d640b.js → dialog-6ce4ec4d.js} +2 -2
- package/{dialog-widget-128615da.js → dialog-widget-3ca10228.js} +16 -16
- package/{divider-widget-37ffa37f.js → divider-widget-5331c181.js} +17 -17
- package/{drag-wrapper-449a452d.js → drag-wrapper-26233757.js} +15 -15
- package/{drawer-widget-862d5f05.js → drawer-widget-f7e1999e.js} +16 -16
- package/{dropdown-widget-faf12ae6.js → dropdown-widget-a8212368.js} +18 -18
- package/{empty-widget-d8c1a94c.js → empty-widget-bdadedc8.js} +17 -17
- package/{expression-3ff313e6.js → expression-2443dc1e.js} +1555 -1383
- package/feedback-widget-b05aed00.js +27 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-c470e651.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-88314dd9.js} +6 -6
- package/{fieldobj-e94e4f2f.js → fieldobj-e86c52db.js} +1 -1
- package/{file-upload-widget-fce9eb43.js → file-upload-widget-6e16f54e.js} +63 -63
- package/{form-item-wrapper-0c51f690.js → form-item-wrapper-3ee6dc3f.js} +20 -20
- package/{form-widget-e632b808.js → form-widget-48c38fde.js} +79 -80
- package/{global-provide-inject-f2e9314a.js → globalProvideInject-af5ac9ca.js} +3251 -2918
- package/{grid-col-widget-a1df59c2.js → grid-col-widget-58a0d1cb.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-35f1227e.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4295e0db.js} +5 -5
- package/{grid-widget-d4642895.js → grid-widget-72fdf5b6.js} +5 -5
- package/{hcard-widget-cc1328b9.js → hcard-widget-ded3cb09.js} +26 -26
- package/{html-text-widget-274456b7.js → html-text-widget-9bcad0c0.js} +15 -15
- package/icon-59a05cd7.js +443 -0
- package/{icon-widget-849963ba.js → icon-widget-faf382c4.js} +14 -14
- package/iframe-widget-346fc34a.js +131 -0
- package/{image-widget-89b747cc.js → image-widget-e1d8417c.js} +14 -14
- package/{index-19895587.js → index-4feb900a.js} +8 -8
- package/{enum-type-3220958e.js → index-efb59a41.js} +237 -233
- package/index-f1d89bf9.js +238 -0
- package/{input-number-widget-b3314793.js → input-number-widget-54403c5a.js} +20 -20
- package/{input-tag-widget-d33aa2c0.js → input-tag-widget-90b052f2.js} +17 -17
- package/{input-widget-47bbee46.js → input-widget-1f10477c.js} +17 -17
- package/{label-wrapper-2155ce1e.js → label-wrapper-d53597ed.js} +6 -6
- package/{label-wrapper.vue_vue_type_style_index_0_lang-fcd9226e.js → label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js} +10 -10
- package/{link-widget-e9db2cc3.js → link-widget-f292713e.js} +17 -17
- package/{ltable-col-widget-d9dbdac7.js → ltable-col-widget-c6d79791.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-e70e1cdf.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ec0e162d.js} +9 -9
- package/{ltable-widget-5e5b90cb.js → ltable-widget-6317e3dd.js} +11 -11
- package/{mask-04ad41e9.js → mask-4a7b3f05.js} +1 -1
- package/{mention-widget-53350221.js → mention-widget-9a67d9b9.js} +17 -17
- package/{menu-widget-d5077686.js → menu-widget-54832d22.js} +35 -35
- package/{model-widget-4517fe27.js → model-widget-12d7b5c6.js} +43 -43
- package/multirow-a7933e2a.js +235 -0
- package/{multirow-widget-f3aaba72.js → multirow-widget-9dbaaf3b.js} +45 -45
- package/package.json +1 -1
- package/{pagination-widget-11e2c5e2.js → pagination-widget-19e07f93.js} +14 -14
- package/{picture-upload-widget-8107d48c.js → picture-upload-widget-91ac5961.js} +51 -51
- package/{progress-widget-3234dc37.js → progress-widget-8285d220.js} +40 -40
- package/{qrcode-widget-22362453.js → qrcode-widget-8768fadb.js} +23 -23
- package/{radio-widget-b820efbf.js → radio-widget-24625a8c.js} +16 -16
- package/{range-widget-ee933ee0.js → range-widget-6a148c19.js} +23 -23
- package/{rate-widget-47e247d9.js → rate-widget-ddade3d7.js} +16 -16
- package/render.es.js +242 -240
- package/render.style.css +1 -1
- package/render.umd.js +359 -359
- package/{result-widget-df8e6fc1.js → result-widget-8555b393.js} +15 -15
- package/{rich-editor-widget-328d67a4.js → rich-editor-widget-3b1d1572.js} +21 -21
- package/{router-widget-66b508c2.js → router-widget-c502fff7.js} +14 -14
- package/{segmented-widget-9d06575d.js → segmented-widget-ae88e4e3.js} +32 -32
- package/{select-widget-0ca5a77d.js → select-widget-35456918.js} +16 -16
- package/{sfc-4e57232d.js → sfc-88854d51.js} +137 -136
- package/{sfcview-769da8d2.js → sfcview-a6d34fe7.js} +20 -20
- package/share-field-5b8d348c.js +863 -0
- package/{share-file-ae1b0f0f.js → share-file-b9b6df9d.js} +28 -29
- package/{skeleton-widget-c15938da.js → skeleton-widget-7cd026e6.js} +17 -17
- package/{skeletonItem-widget-6ab7c228.js → skeletonItem-widget-62ebc963.js} +14 -14
- package/{slider-widget-66943d99.js → slider-widget-11a26a3b.js} +16 -16
- package/{slot-0c0c26e2.js → slot-9c90ab7a.js} +6 -6
- package/{space-widget-9e0f16e9.js → space-widget-275b883e.js} +15 -15
- package/{splitter-widget-cfaf6648.js → splitter-widget-246cee74.js} +15 -15
- package/{static-text-widget-6f1765a0.js → static-text-widget-580387f7.js} +15 -15
- package/{statistic-widget-0b7cd66a.js → statistic-widget-4190eaed.js} +17 -17
- package/{steps-widget-83238190.js → steps-widget-66d08511.js} +14 -14
- package/{subMenu-widget-9df7e742.js → subMenu-widget-b29e61fc.js} +9 -9
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-4edb8ab5.js → subMenu-widget.vue_vue_type_script_setup_true_lang-a0993d3f.js} +19 -20
- package/{switch-widget-57f8f0f4.js → switch-widget-8da4f2c4.js} +16 -16
- package/{tab-pane-widget-c2c1e4eb.js → tab-pane-widget-d70dc524.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-b7da2810.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ee3f66bd.js} +5 -5
- package/table-col-widget-566de20c.js +23 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-b03e7309.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-30b20027.js} +26 -27
- package/{table-widget-1452a439.js → table-widget-b1f7edeb.js} +45 -45
- package/{tabs-widget-e462d782.js → tabs-widget-bb5c52de.js} +7 -7
- package/{tag-widget-be4e8d9f.js → tag-widget-3c185f23.js} +17 -17
- package/{text-widget-f242530c.js → text-widget-c7386d8e.js} +17 -17
- package/{textarea-widget-66fcc4a5.js → textarea-widget-0fe10859.js} +16 -16
- package/{time-picker-range-widget-58eb1f7d.js → time-picker-range-widget-77a300e1.js} +28 -29
- package/{time-picker-widget-798590b8.js → time-picker-widget-3b22e5ee.js} +23 -23
- package/{time-select-widget-8aef0b01.js → time-select-widget-a04bcbfb.js} +16 -16
- package/{timeline-widget-638b6fb7.js → timeline-widget-708d7749.js} +20 -20
- package/{tmpl-widget-21d8409a.js → tmpl-widget-c66af7cd.js} +28 -28
- package/{tooltip-widget-c6954724.js → tooltip-widget-0cc7c09b.js} +15 -15
- package/{tour-widget-d3a0bc37.js → tour-widget-6218b953.js} +36 -36
- package/{transfer-widget-eb3c431b.js → transfer-widget-a3056089.js} +17 -17
- package/{tree-select-widget-e2f8b098.js → tree-select-widget-fe844fb2.js} +16 -16
- package/{tree-widget-2225bd6a.js → tree-widget-342893a6.js} +24 -24
- package/uuid-1013bfdd.js +16 -0
- package/{verifycode-widget-8e71f538.js → verifycode-widget-63f3390d.js} +39 -39
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b1b666bd.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js} +45 -46
- package/{wrapper-widget-d9773c13.js → wrapper-widget-a3570b05.js} +7 -7
- package/chart-widget-cd1ad92e.js +0 -115
- package/content-wrapper-04e9f779.js +0 -17
- package/default-slot-widget-87817844.js +0 -27
- package/enum-type-541d923e.js +0 -271
- package/feedback-widget-810472c0.js +0 -27
- package/icon-4e8380f7.js +0 -181
- package/iframe-widget-0fcdc28f.js +0 -131
- package/index-a1a70aff.js +0 -239
- package/multirow-954607d6.js +0 -236
- package/share-field-e935c6da.js +0 -874
- package/table-col-widget-b578b99d.js +0 -23
- package/uuid-a3dfaedc.js +0 -199
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { defineComponent as B, computed as w, resolveComponent as I, openBlock as l, createBlock as c, mergeProps as V, unref as n, withCtx as p, createElementBlock as y, Fragment as O, createVNode as
|
|
1
|
+
import { defineComponent as B, computed as w, resolveComponent as I, openBlock as l, createBlock as c, mergeProps as V, unref as n, withCtx as p, createElementBlock as y, Fragment as O, createVNode as S, renderList as x, createTextVNode as Y, toDisplayString as _, createElementVNode as C, isRef as Z, toHandlers as tt, resolveDynamicComponent as T } from "vue";
|
|
2
2
|
import { I as ot } from "./field-base-66c90648.js";
|
|
3
|
-
import { _ as et } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
4
|
-
import { a as nt } from "./share-field-
|
|
5
|
-
import { w as rt } from "./expression-
|
|
6
|
-
import {
|
|
7
|
-
import { u as ct } from "./icon-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { e as m } from "./enum-type-3220958e.js";
|
|
3
|
+
import { _ as et } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
4
|
+
import { a as nt } from "./share-field-5b8d348c.js";
|
|
5
|
+
import { w as rt } from "./expression-2443dc1e.js";
|
|
6
|
+
import { b as st, v as lt, k as at } from "./baseCommonField-c2a132bc.js";
|
|
7
|
+
import { u as ct, a4 as v, ao as h } from "./icon-59a05cd7.js";
|
|
8
|
+
import { d as pt } from "./slot-9c90ab7a.js";
|
|
9
|
+
import { e as b } from "./index-efb59a41.js";
|
|
11
10
|
import { t as ut } from "./index-31e1760d.js";
|
|
12
11
|
import "./widget-base-df734ada.js";
|
|
13
|
-
import "./
|
|
14
|
-
import "./
|
|
12
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
13
|
+
import "./baseDataType-af503f9f.js";
|
|
15
14
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
-
import "./index-
|
|
15
|
+
import "./index-4feb900a.js";
|
|
17
16
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
18
|
-
import "./fieldobj-
|
|
19
|
-
import "./multirow-
|
|
17
|
+
import "./fieldobj-e86c52db.js";
|
|
18
|
+
import "./multirow-a7933e2a.js";
|
|
19
|
+
import "./uuid-1013bfdd.js";
|
|
20
20
|
import "./source-map-b04aec4a.js";
|
|
21
21
|
import "./esprima-e8d15055.js";
|
|
22
22
|
import "axios";
|
|
23
|
-
import "./dialog-
|
|
23
|
+
import "./dialog-6ce4ec4d.js";
|
|
24
24
|
import "element-plus";
|
|
25
25
|
const dt = B({ componentName: rt.FieldWidget }), Rt = /* @__PURE__ */ B({
|
|
26
26
|
...dt,
|
|
27
27
|
__name: "tour-widget",
|
|
28
28
|
props: { ...ot },
|
|
29
29
|
setup(A, { expose: M }) {
|
|
30
|
-
const N = A, { fieldEditor: R, slots: P, fieldKey: D, fieldModel: u, attrs: H, extendAttrs: f, events:
|
|
30
|
+
const N = A, { fieldEditor: R, slots: P, fieldKey: D, fieldModel: u, attrs: H, extendAttrs: f, events: L, optionItems: m, getWidgetOptionByPropValue: r, exposed: g, fieldObj: W } = nt(N), $ = w(() => {
|
|
31
31
|
var t, e;
|
|
32
32
|
return {
|
|
33
33
|
offset: (t = f.value) == null ? void 0 : t.gap_offset,
|
|
34
34
|
radius: (e = f.value) == null ? void 0 : e.gap_radius
|
|
35
35
|
};
|
|
36
|
-
}),
|
|
36
|
+
}), F = (t) => {
|
|
37
37
|
const e = r(t == null ? void 0 : t.maskType), s = r(t == null ? void 0 : t.mask1), a = r(t == null ? void 0 : t.mask2);
|
|
38
38
|
switch (e) {
|
|
39
39
|
case v.bool:
|
|
@@ -49,20 +49,20 @@ const dt = B({ componentName: rt.FieldWidget }), Rt = /* @__PURE__ */ B({
|
|
|
49
49
|
case v.object:
|
|
50
50
|
return a;
|
|
51
51
|
}
|
|
52
|
-
},
|
|
52
|
+
}, G = (t) => {
|
|
53
53
|
var d;
|
|
54
54
|
const e = r(t == null ? void 0 : t.targetType), s = r(t == null ? void 0 : t.target_htmlelement), a = r(t == null ? void 0 : t.target_string), k = r(t == null ? void 0 : t.target_function);
|
|
55
55
|
switch (e) {
|
|
56
56
|
case h.HTMLElement: {
|
|
57
57
|
const { transFormula: o } = at(), i = o(s);
|
|
58
|
-
return (d = (g == null ? void 0 : g.findRefById(i,
|
|
58
|
+
return (d = (g == null ? void 0 : g.findRefById(i, E)).exposed) == null ? void 0 : d.fieldEditor();
|
|
59
59
|
}
|
|
60
60
|
case h.String:
|
|
61
61
|
return a;
|
|
62
62
|
case h.Function:
|
|
63
63
|
return lt(k);
|
|
64
64
|
}
|
|
65
|
-
},
|
|
65
|
+
}, K = (t) => {
|
|
66
66
|
var e = {};
|
|
67
67
|
return [
|
|
68
68
|
"showArrow",
|
|
@@ -75,39 +75,39 @@ const dt = B({ componentName: rt.FieldWidget }), Rt = /* @__PURE__ */ B({
|
|
|
75
75
|
].map((s) => {
|
|
76
76
|
e[s] = r(t == null ? void 0 : t[s]);
|
|
77
77
|
}), Object.assign(e, {
|
|
78
|
-
target:
|
|
79
|
-
mask:
|
|
78
|
+
target: G(t),
|
|
79
|
+
mask: F(t),
|
|
80
80
|
scrollIntoViewOptions: j(t)
|
|
81
81
|
}), e;
|
|
82
|
-
},
|
|
82
|
+
}, U = w(() => F(f.value)), q = w(() => j(f.value)), z = w(() => ({
|
|
83
83
|
...H.value,
|
|
84
|
-
gap:
|
|
85
|
-
scrollIntoViewOptions:
|
|
86
|
-
mask:
|
|
84
|
+
gap: $.value,
|
|
85
|
+
scrollIntoViewOptions: q.value,
|
|
86
|
+
mask: U.value
|
|
87
87
|
})), J = () => {
|
|
88
88
|
u.value = !0;
|
|
89
89
|
}, Q = () => {
|
|
90
90
|
u.value = !1;
|
|
91
|
-
}, { instance:
|
|
91
|
+
}, { instance: E } = ct(), X = st({ instance: E });
|
|
92
92
|
return M({ ...g, show: J, hide: Q }), (t, e) => {
|
|
93
93
|
const s = I("el-tag"), a = I("el-tour-step"), k = I("el-tour");
|
|
94
94
|
return l(), c(et, V(t.$props, {
|
|
95
|
-
"prop-options": { fieldObj: n(
|
|
95
|
+
"prop-options": { fieldObj: n(W) }
|
|
96
96
|
}), {
|
|
97
97
|
default: p(({ data: d }) => [
|
|
98
98
|
t.designState ? (l(), y(O, { key: 0 }, [
|
|
99
|
-
|
|
100
|
-
content: n(
|
|
99
|
+
S(ut, {
|
|
100
|
+
content: n(b).i18nt("designer.hint.designTip")
|
|
101
101
|
}, null, 8, ["content"]),
|
|
102
|
-
(l(!0), y(O, null,
|
|
103
|
-
|
|
102
|
+
(l(!0), y(O, null, x(n(m), (o, i) => (l(), y("div", null, [
|
|
103
|
+
S(s, null, {
|
|
104
104
|
default: p(() => [
|
|
105
105
|
Y(_(i), 1)
|
|
106
106
|
]),
|
|
107
107
|
_: 2
|
|
108
108
|
}, 1024),
|
|
109
|
-
C("div", null, _(n(
|
|
110
|
-
C("div", null, _(n(
|
|
109
|
+
C("div", null, _(n(b).i18nt("designer.setting.tour_title")) + ":" + _(o == null ? void 0 : o.title), 1),
|
|
110
|
+
C("div", null, _(n(b).i18nt("designer.setting.tour_description")) + ":" + _(o == null ? void 0 : o.description), 1)
|
|
111
111
|
]))), 256))
|
|
112
112
|
], 64)) : (l(), c(k, V({
|
|
113
113
|
modelValue: n(u),
|
|
@@ -115,7 +115,7 @@ const dt = B({ componentName: rt.FieldWidget }), Rt = /* @__PURE__ */ B({
|
|
|
115
115
|
ref_key: "fieldEditor",
|
|
116
116
|
ref: R,
|
|
117
117
|
key: n(D)
|
|
118
|
-
}, z.value, tt(n(
|
|
118
|
+
}, z.value, tt(n(L)), {
|
|
119
119
|
class: d.injectClass,
|
|
120
120
|
style: d.injectStyle
|
|
121
121
|
}), {
|
|
@@ -126,7 +126,7 @@ const dt = B({ componentName: rt.FieldWidget }), Rt = /* @__PURE__ */ B({
|
|
|
126
126
|
}, null, 8, ["scope", "ctx"]))
|
|
127
127
|
]),
|
|
128
128
|
default: p(() => [
|
|
129
|
-
(l(!0), y(O, null,
|
|
129
|
+
(l(!0), y(O, null, x(n(m), (o, i) => (l(), c(a, V({ key: i }, { ref_for: !0 }, K(o)), {
|
|
130
130
|
header: p(() => [
|
|
131
131
|
(l(), c(T(n(r)(o.header))))
|
|
132
132
|
]),
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { defineComponent as c, computed as O, resolveComponent as S, openBlock as m, createBlock as a, mergeProps as l, unref as r, withCtx as f, isRef as x, toHandlers as z, createSlots as A, renderList as I, resolveDynamicComponent as W, createCommentVNode as u } from "vue";
|
|
2
|
-
import { e as h } from "./
|
|
2
|
+
import { e as h } from "./index-efb59a41.js";
|
|
3
3
|
import { I as B } from "./field-base-66c90648.js";
|
|
4
|
-
import { a as E } from "./share-field-
|
|
5
|
-
import { g as L } from "./slot-
|
|
6
|
-
import P from "./form-item-wrapper-
|
|
7
|
-
import { w as T } from "./expression-
|
|
8
|
-
import { D as $ } from "./drag-wrapper-
|
|
4
|
+
import { a as E } from "./share-field-5b8d348c.js";
|
|
5
|
+
import { g as L } from "./slot-9c90ab7a.js";
|
|
6
|
+
import P from "./form-item-wrapper-3ee6dc3f.js";
|
|
7
|
+
import { w as T } from "./expression-2443dc1e.js";
|
|
8
|
+
import { D as $ } from "./drag-wrapper-26233757.js";
|
|
9
9
|
import "./widget-base-df734ada.js";
|
|
10
|
-
import "./multirow-
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "./
|
|
10
|
+
import "./multirow-a7933e2a.js";
|
|
11
|
+
import "./baseCommonField-c2a132bc.js";
|
|
12
|
+
import "./icon-59a05cd7.js";
|
|
13
|
+
import "./baseDataType-af503f9f.js";
|
|
14
14
|
import "axios";
|
|
15
|
-
import "./dialog-
|
|
15
|
+
import "./dialog-6ce4ec4d.js";
|
|
16
16
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
17
|
-
import "./uuid-
|
|
17
|
+
import "./uuid-1013bfdd.js";
|
|
18
18
|
import "element-plus";
|
|
19
|
-
import "./
|
|
20
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
21
|
-
import "./index-
|
|
19
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
20
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
21
|
+
import "./index-4feb900a.js";
|
|
22
22
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
-
import "./fieldobj-
|
|
24
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-
|
|
23
|
+
import "./fieldobj-e86c52db.js";
|
|
24
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js";
|
|
25
25
|
import "./source-map-b04aec4a.js";
|
|
26
26
|
import "./esprima-e8d15055.js";
|
|
27
27
|
const H = c({ componentName: T.FieldWidget }), ge = /* @__PURE__ */ c({
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as D, computed as a, resolveComponent as te, openBlock as s, createBlock as p, mergeProps as b, unref as l, withCtx as d, toHandlers as W, createSlots as A, resolveDynamicComponent as n, createCommentVNode as C } from "vue";
|
|
2
|
-
import { s as f, t as B } from "./
|
|
2
|
+
import { s as f, t as B } from "./index-efb59a41.js";
|
|
3
3
|
import { I as oe } from "./field-base-66c90648.js";
|
|
4
|
-
import { a as le } from "./share-field-
|
|
5
|
-
import re from "./form-item-wrapper-
|
|
6
|
-
import {
|
|
4
|
+
import { a as le } from "./share-field-5b8d348c.js";
|
|
5
|
+
import re from "./form-item-wrapper-3ee6dc3f.js";
|
|
6
|
+
import { g as v, w as ae } from "./expression-2443dc1e.js";
|
|
7
7
|
import "./widget-base-df734ada.js";
|
|
8
|
-
import "./multirow-
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
8
|
+
import "./multirow-a7933e2a.js";
|
|
9
|
+
import "./baseCommonField-c2a132bc.js";
|
|
10
|
+
import "./icon-59a05cd7.js";
|
|
11
|
+
import "./baseDataType-af503f9f.js";
|
|
12
12
|
import "axios";
|
|
13
|
-
import "./dialog-
|
|
13
|
+
import "./dialog-6ce4ec4d.js";
|
|
14
14
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
-
import "./uuid-
|
|
15
|
+
import "./uuid-1013bfdd.js";
|
|
16
16
|
import "element-plus";
|
|
17
|
-
import "./
|
|
18
|
-
import "./slot-
|
|
19
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
20
|
-
import "./index-
|
|
17
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
18
|
+
import "./slot-9c90ab7a.js";
|
|
19
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
20
|
+
import "./index-4feb900a.js";
|
|
21
21
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
-
import "./fieldobj-
|
|
23
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-
|
|
22
|
+
import "./fieldobj-e86c52db.js";
|
|
23
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js";
|
|
24
24
|
import "./source-map-b04aec4a.js";
|
|
25
25
|
import "./esprima-e8d15055.js";
|
|
26
26
|
const se = D({ componentName: ae.FieldWidget }), ze = /* @__PURE__ */ D({
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as h, computed as l, resolveComponent as $, openBlock as m, createBlock as f, mergeProps as
|
|
1
|
+
import { defineComponent as h, computed as l, resolveComponent as $, openBlock as m, createBlock as f, mergeProps as P, unref as p, withCtx as K, isRef as A, toHandlers as H, createSlots as M, resolveDynamicComponent as b } from "vue";
|
|
2
2
|
import { I as R } from "./field-base-66c90648.js";
|
|
3
|
-
import { a as U } from "./share-field-
|
|
4
|
-
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
5
|
-
import {
|
|
6
|
-
import { s as n } from "./
|
|
3
|
+
import { a as U } from "./share-field-5b8d348c.js";
|
|
4
|
+
import { _ as q } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
5
|
+
import { g as a, w as G } from "./expression-2443dc1e.js";
|
|
6
|
+
import { s as n } from "./index-efb59a41.js";
|
|
7
7
|
import "./widget-base-df734ada.js";
|
|
8
|
-
import "./multirow-
|
|
9
|
-
import "./
|
|
10
|
-
import "./
|
|
11
|
-
import "./
|
|
8
|
+
import "./multirow-a7933e2a.js";
|
|
9
|
+
import "./baseCommonField-c2a132bc.js";
|
|
10
|
+
import "./icon-59a05cd7.js";
|
|
11
|
+
import "./baseDataType-af503f9f.js";
|
|
12
12
|
import "axios";
|
|
13
|
-
import "./dialog-
|
|
13
|
+
import "./dialog-6ce4ec4d.js";
|
|
14
14
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
-
import "./uuid-
|
|
15
|
+
import "./uuid-1013bfdd.js";
|
|
16
16
|
import "element-plus";
|
|
17
|
-
import "./
|
|
18
|
-
import "./slot-
|
|
19
|
-
import "./index-
|
|
17
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
18
|
+
import "./slot-9c90ab7a.js";
|
|
19
|
+
import "./index-4feb900a.js";
|
|
20
20
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
-
import "./fieldobj-
|
|
21
|
+
import "./fieldobj-e86c52db.js";
|
|
22
22
|
import "./source-map-b04aec4a.js";
|
|
23
23
|
import "./esprima-e8d15055.js";
|
|
24
24
|
const J = h({ componentName: G.FieldWidget }), Ke = /* @__PURE__ */ h({
|
|
@@ -26,12 +26,12 @@ const J = h({ componentName: G.FieldWidget }), Ke = /* @__PURE__ */ h({
|
|
|
26
26
|
__name: "tree-widget",
|
|
27
27
|
props: { ...R },
|
|
28
28
|
setup(V, { expose: E }) {
|
|
29
|
-
var
|
|
29
|
+
var C;
|
|
30
30
|
const j = V, { fieldEditor: w, fieldKey: N, fieldModel: c, attrs: i, extendAttrs: s, events: z, activeOptionItem: y, optionItems: F, fieldObj: S, getWidgetOption: k, filterOptionItems: B, exposed: D, activeOptionItems: v } = U(j), I = l(() => {
|
|
31
31
|
var o, d, t, r, u;
|
|
32
32
|
let e = {};
|
|
33
33
|
return n(e, a.label, (o = s.value) == null ? void 0 : o.labelProp, !0), n(e, a.children, (d = s.value) == null ? void 0 : d.childrenProp, !0), n(e, a.disabled, (t = s.value) == null ? void 0 : t.disabledProp, !0), n(e, a.isLeaf, (r = s.value) == null ? void 0 : r.isLeafProp, !0), n(e, a.class, (u = s.value) == null ? void 0 : u.classProp, !0), e;
|
|
34
|
-
}), _ = (
|
|
34
|
+
}), _ = (C = i == null ? void 0 : i.value) == null ? void 0 : C.nodeKey, L = l(() => {
|
|
35
35
|
var e;
|
|
36
36
|
return (e = v == null ? void 0 : v.value) == null ? void 0 : e.map((o) => String(o == null ? void 0 : o[_]));
|
|
37
37
|
}), O = l(() => {
|
|
@@ -40,14 +40,14 @@ const J = h({ componentName: G.FieldWidget }), Ke = /* @__PURE__ */ h({
|
|
|
40
40
|
}), W = l(() => {
|
|
41
41
|
var e;
|
|
42
42
|
return (e = B((o) => !!(o != null && o.isopen))) == null ? void 0 : e.map((o) => o == null ? void 0 : o[_]);
|
|
43
|
-
}),
|
|
43
|
+
}), g = l(() => k("optionDefault")), x = l(() => k("empty"));
|
|
44
44
|
return E({ ...D }), (e, o) => {
|
|
45
45
|
const d = $("el-tree");
|
|
46
|
-
return m(), f(q,
|
|
46
|
+
return m(), f(q, P(e.$props, {
|
|
47
47
|
"prop-optiions": { fieldObj: p(S) }
|
|
48
48
|
}), {
|
|
49
49
|
default: K(({ data: t }) => [
|
|
50
|
-
(m(), f(d,
|
|
50
|
+
(m(), f(d, P({
|
|
51
51
|
ref_key: "fieldEditor",
|
|
52
52
|
ref: w,
|
|
53
53
|
modelValue: p(c),
|
|
@@ -63,17 +63,17 @@ const J = h({ componentName: G.FieldWidget }), Ke = /* @__PURE__ */ h({
|
|
|
63
63
|
defaultExpandedKeys: W.value,
|
|
64
64
|
currentNodeKey: O.value
|
|
65
65
|
}), M({ _: 2 }, [
|
|
66
|
-
|
|
66
|
+
x.value ? {
|
|
67
67
|
name: "empty",
|
|
68
68
|
fn: K(() => [
|
|
69
|
-
(m(), f(
|
|
69
|
+
(m(), f(b(x.value)))
|
|
70
70
|
]),
|
|
71
71
|
key: "0"
|
|
72
72
|
} : void 0,
|
|
73
|
-
|
|
73
|
+
g.value ? {
|
|
74
74
|
name: "default",
|
|
75
75
|
fn: K(({ node: r, data: u }) => [
|
|
76
|
-
(m(), f(
|
|
76
|
+
(m(), f(b(g.value), {
|
|
77
77
|
item: { node: r, data: u }
|
|
78
78
|
}, null, 8, ["item"]))
|
|
79
79
|
]),
|
package/uuid-1013bfdd.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function a() {
|
|
2
|
+
return u("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", /[xy]/g);
|
|
3
|
+
}
|
|
4
|
+
function i() {
|
|
5
|
+
return u("xxxxxxxxxxxxxxxxxxxxxxxxxxxx", /[xy]/g);
|
|
6
|
+
}
|
|
7
|
+
function u(t, r, x = 16) {
|
|
8
|
+
return t.replace(r, (e) => {
|
|
9
|
+
const n = Math.floor(Math.random() * x);
|
|
10
|
+
return (e === "x" ? n : n & 3 | 8).toString(x);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
a,
|
|
15
|
+
i as u
|
|
16
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as g, ref as v, onMounted as N, watch as k, openBlock as w, createElementBlock as S, createElementVNode as x, computed as C, nextTick as H, createBlock as P, mergeProps as b, unref as u, withCtx as W, createVNode as I } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { A as V, w as z } from "./expression-2443dc1e.js";
|
|
3
3
|
import { I as T } from "./field-base-66c90648.js";
|
|
4
|
-
import { a as B } from "./share-field-
|
|
5
|
-
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
6
|
-
import { _ as
|
|
4
|
+
import { a as B } from "./share-field-5b8d348c.js";
|
|
5
|
+
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js";
|
|
6
|
+
import { _ as A } from "./_plugin-vue_export-helper-dad06003.js";
|
|
7
7
|
import "./source-map-b04aec4a.js";
|
|
8
|
-
import "./
|
|
9
|
-
import "./uuid-
|
|
8
|
+
import "./index-efb59a41.js";
|
|
9
|
+
import "./uuid-1013bfdd.js";
|
|
10
10
|
import "./_commonjsHelpers-e7ea1525.js";
|
|
11
|
+
import "./baseDataType-af503f9f.js";
|
|
11
12
|
import "./esprima-e8d15055.js";
|
|
12
13
|
import "./widget-base-df734ada.js";
|
|
13
|
-
import "./multirow-
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./icon-4e8380f7.js";
|
|
14
|
+
import "./multirow-a7933e2a.js";
|
|
15
|
+
import "./baseCommonField-c2a132bc.js";
|
|
16
|
+
import "./icon-59a05cd7.js";
|
|
17
17
|
import "axios";
|
|
18
|
-
import "./dialog-
|
|
18
|
+
import "./dialog-6ce4ec4d.js";
|
|
19
19
|
import "element-plus";
|
|
20
|
-
import "./
|
|
21
|
-
import "./slot-
|
|
22
|
-
import "./index-
|
|
23
|
-
import "./fieldobj-
|
|
24
|
-
const
|
|
25
|
-
__name: "
|
|
20
|
+
import "./globalProvideInject-af5ac9ca.js";
|
|
21
|
+
import "./slot-9c90ab7a.js";
|
|
22
|
+
import "./index-4feb900a.js";
|
|
23
|
+
import "./fieldobj-e86c52db.js";
|
|
24
|
+
const F = { class: "s-canvas" }, L = ["width", "height"], R = /* @__PURE__ */ g({
|
|
25
|
+
__name: "index",
|
|
26
26
|
props: {
|
|
27
27
|
identifyCode: {
|
|
28
28
|
type: String,
|
|
@@ -79,16 +79,16 @@ const L = { class: "s-canvas" }, R = ["width", "height"], $ = /* @__PURE__ */ g(
|
|
|
79
79
|
},
|
|
80
80
|
setup(d) {
|
|
81
81
|
const t = d, m = v(), n = (e, o) => Math.floor(Math.random() * (o - e) + e), s = (e, o) => {
|
|
82
|
-
let i = n(e, o), l = n(e, o),
|
|
83
|
-
return "rgb(" + i + "," + l + "," +
|
|
84
|
-
},
|
|
82
|
+
let i = n(e, o), l = n(e, o), c = n(e, o);
|
|
83
|
+
return "rgb(" + i + "," + l + "," + c + ")";
|
|
84
|
+
}, f = (e) => {
|
|
85
85
|
for (let o = 0; o < 5; o++)
|
|
86
86
|
e.strokeStyle = s(t.lineColorMin, t.lineColorMax), e.beginPath(), e.moveTo(n(0, t.contentWidth), n(0, t.contentHeight)), e.lineTo(n(0, t.contentWidth), n(0, t.contentHeight)), e.stroke();
|
|
87
|
-
},
|
|
87
|
+
}, h = (e, o, i) => {
|
|
88
88
|
e.fillStyle = s(t.colorMin, t.colorMax), e.font = n(t.fontSizeMin, t.fontSizeMax) + "px SimHei";
|
|
89
|
-
let l = (i + 1) * (t.contentWidth / (t.identifyCode.length + 1)),
|
|
90
|
-
var
|
|
91
|
-
e.translate(l,
|
|
89
|
+
let l = (i + 1) * (t.contentWidth / (t.identifyCode.length + 1)), c = n(t.fontSizeMax, t.contentHeight - 5);
|
|
90
|
+
var _ = n(-45, 45);
|
|
91
|
+
e.translate(l, c), e.rotate(_ * Math.PI / 180), e.fillText(o, 0, 0), e.rotate(-_ * Math.PI / 180), e.translate(-l, -c);
|
|
92
92
|
}, y = (e) => {
|
|
93
93
|
for (let o = 0; o < 80; o++)
|
|
94
94
|
e.fillStyle = s(0, 255), e.beginPath(), e.arc(n(0, t.contentWidth), n(0, t.contentHeight), 1, 0, 2 * Math.PI), e.fill();
|
|
@@ -96,8 +96,8 @@ const L = { class: "s-canvas" }, R = ["width", "height"], $ = /* @__PURE__ */ g(
|
|
|
96
96
|
let e = m.value, o = e == null ? void 0 : e.getContext("2d");
|
|
97
97
|
o.textBaseline = "bottom", o.fillStyle = s(t.backgroundColorMin, t.backgroundColorMax), o.fillRect(0, 0, t.contentWidth, t.contentHeight);
|
|
98
98
|
for (let i = 0; i < t.identifyCode.length; i++)
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
h(o, t.identifyCode[i], i);
|
|
100
|
+
f(o), y(o);
|
|
101
101
|
};
|
|
102
102
|
return N(() => {
|
|
103
103
|
a();
|
|
@@ -106,55 +106,55 @@ const L = { class: "s-canvas" }, R = ["width", "height"], $ = /* @__PURE__ */ g(
|
|
|
106
106
|
(e) => {
|
|
107
107
|
e && a();
|
|
108
108
|
}
|
|
109
|
-
), (e, o) => (w(), S("div",
|
|
109
|
+
), (e, o) => (w(), S("div", F, [
|
|
110
110
|
x("canvas", {
|
|
111
111
|
ref_key: "canavsRef",
|
|
112
112
|
ref: m,
|
|
113
113
|
width: t.contentWidth,
|
|
114
114
|
height: t.contentHeight
|
|
115
|
-
}, null, 8,
|
|
115
|
+
}, null, 8, L)
|
|
116
116
|
]));
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const
|
|
119
|
+
const $ = /* @__PURE__ */ A(R, [["__scopeId", "data-v-36c9adc7"]]), j = (d, t) => (t = t + 1, Math.floor(Math.random() * (t - d) + d)), O = g({ componentName: z.FieldWidget }), ue = /* @__PURE__ */ g({
|
|
120
120
|
...O,
|
|
121
121
|
__name: "verifycode-widget",
|
|
122
122
|
props: { ...T },
|
|
123
123
|
setup(d, { expose: t }) {
|
|
124
|
-
const m = d, { fieldEditor: n, exposed: s, extendAttrs:
|
|
124
|
+
const m = d, { fieldEditor: n, exposed: s, extendAttrs: f, attrs: h, fieldObj: y } = B(m);
|
|
125
125
|
let a = v(""), e = C(() => {
|
|
126
126
|
var r;
|
|
127
|
-
return (r =
|
|
127
|
+
return (r = f.value) == null ? void 0 : r.content;
|
|
128
128
|
}), o = C(() => {
|
|
129
129
|
var r;
|
|
130
|
-
return (r =
|
|
130
|
+
return (r = f.value) == null ? void 0 : r.identifyCodeLen;
|
|
131
131
|
});
|
|
132
132
|
const i = (r, M) => {
|
|
133
133
|
for (let p = 0; p < M; p++)
|
|
134
|
-
a.value += r[
|
|
134
|
+
a.value += r[j(0, r.length)];
|
|
135
135
|
}, l = () => {
|
|
136
136
|
a.value = "", i(e.value, o.value);
|
|
137
|
-
},
|
|
137
|
+
}, c = () => a.value, _ = (r) => {
|
|
138
138
|
a.value = r;
|
|
139
139
|
};
|
|
140
|
-
return k(() =>
|
|
140
|
+
return k(() => h.value, (r) => {
|
|
141
141
|
H(() => {
|
|
142
142
|
l();
|
|
143
143
|
});
|
|
144
144
|
}), N(() => {
|
|
145
145
|
l();
|
|
146
|
-
}), t({ ...s, refresh: l, getValue:
|
|
146
|
+
}), t({ ...s, refresh: l, getValue: c, setValue: _ }), (r, M) => (w(), P(E, b(r.$props, {
|
|
147
147
|
"prop-options": { fieldObj: u(y) }
|
|
148
148
|
}), {
|
|
149
149
|
default: W(() => {
|
|
150
150
|
var p;
|
|
151
151
|
return [
|
|
152
|
-
I(
|
|
152
|
+
I($, b({
|
|
153
153
|
ref_key: "fieldEditor",
|
|
154
154
|
ref: n
|
|
155
|
-
}, u(
|
|
155
|
+
}, u(h), {
|
|
156
156
|
"identify-code": u(a),
|
|
157
|
-
class: u(V)((p = u(
|
|
157
|
+
class: u(V)((p = u(f)) == null ? void 0 : p.customClass),
|
|
158
158
|
onClick: l
|
|
159
159
|
}), null, 16, ["identify-code", "class"])
|
|
160
160
|
];
|