@farris/ui-vue 1.2.8 → 1.3.0
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/components/accordion/index.esm.js +180 -180
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +419 -331
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +346 -326
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +384 -384
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +205 -205
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +555 -467
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +239 -239
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1072 -364
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +129 -129
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +582 -327
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2433 -1134
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +307 -234
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6762 -4946
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4977 -3489
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3525 -2811
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +38 -37
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +282 -282
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2684 -1039
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +149 -101
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +573 -518
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +99 -99
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3607 -2799
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5438 -8236
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1679 -1759
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +421 -421
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +677 -593
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +326 -326
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +272 -199
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3739 -2273
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +11255 -9004
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +6046 -5314
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +588 -444
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +568 -485
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +542 -454
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1967 -1105
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +160 -160
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +1282 -1151
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +705 -555
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +270 -270
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +2231 -1517
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +813 -909
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3781 -2566
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +101 -101
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +538 -450
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +238 -233
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +155 -155
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1243 -1180
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +988 -877
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +5413 -4867
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +199 -199
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +646 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +144 -144
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +464 -391
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +249 -249
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +483 -394
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +2366 -2208
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +397 -399
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +394 -394
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +451 -367
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1252 -1144
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +510 -499
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5463 -9330
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +4058 -2597
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +510 -504
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +220 -220
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +653 -394
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +1028 -1028
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +20407 -18556
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.props.d.ts +1 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +8 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +3 -1
- package/types/data-grid/src/data-grid.props.d.ts +3 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +36 -7
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +3 -1
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +12 -2
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tags/index.d.ts +36 -5
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
const { properties: e, title: l } = i, s = Object.keys(e).reduce((
|
|
9
|
-
return s.id = `${l}-${Date.now()}
|
|
1
|
+
var z = Object.defineProperty;
|
|
2
|
+
var G = (i, e, l) => e in i ? z(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l;
|
|
3
|
+
var V = (i, e, l) => G(i, typeof e != "symbol" ? e + "" : e, l);
|
|
4
|
+
import { defineComponent as F, ref as b, computed as C, createVNode as r, onBeforeMount as _, createApp as Q, onUnmounted as X, inject as Y, onMounted as Z } from "vue";
|
|
5
|
+
import { isPlainObject as R, cloneDeep as K } from "lodash-es";
|
|
6
|
+
const q = {}, W = {};
|
|
7
|
+
function $(i) {
|
|
8
|
+
const { properties: e, title: l, ignore: s } = i, o = s && Array.isArray(s), d = Object.keys(e).reduce((h, u) => ((!o || !s.find((D) => D == u)) && (h[u] = e[u].type === "object" && e[u].properties ? $(e[u]) : K(e[u].default)), h), {});
|
|
9
|
+
return (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
|
|
10
10
|
}
|
|
11
|
-
function P(i, e = {}) {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
return
|
|
11
|
+
function P(i, e = {}, l) {
|
|
12
|
+
const s = q[i];
|
|
13
|
+
if (s) {
|
|
14
|
+
let o = $(s);
|
|
15
|
+
const d = W[i];
|
|
16
|
+
return o = d ? d({ getSchemaByType: P }, o, e, l) : o, o;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function K(i, e) {
|
|
21
|
-
const l = V(e);
|
|
22
|
-
return Object.keys(i).reduce((s, o) => (s[o] && typeof s[o] == "object" ? Object.assign(s[o], i[o]) : s[o] = i[o], s), l), l;
|
|
23
|
-
}
|
|
24
20
|
function x(i, e) {
|
|
21
|
+
const l = $(e);
|
|
22
|
+
return Object.keys(i).reduce((s, o) => (s[o] && R(s[o]) && R(i[o]) ? Object.assign(s[o], i[o]) : s[o] = i[o], s), l), l;
|
|
23
|
+
}
|
|
24
|
+
function I(i, e) {
|
|
25
25
|
return Object.keys(i).filter((s) => i[s] != null).reduce((s, o) => {
|
|
26
26
|
if (e.has(o)) {
|
|
27
|
-
const
|
|
28
|
-
if (typeof
|
|
29
|
-
s[
|
|
27
|
+
const d = e.get(o);
|
|
28
|
+
if (typeof d == "string")
|
|
29
|
+
s[d] = i[o];
|
|
30
30
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(s,
|
|
31
|
+
const h = d(o, i[o], i);
|
|
32
|
+
Object.assign(s, h);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
35
|
s[o] = i[o];
|
|
36
36
|
return s;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const s =
|
|
41
|
-
return
|
|
39
|
+
function ee(i, e, l = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const s = x(i, e);
|
|
41
|
+
return I(s, l);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
function e(a,
|
|
45
|
-
if (typeof
|
|
46
|
-
return
|
|
47
|
-
if (typeof
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
43
|
+
function te(i = {}) {
|
|
44
|
+
function e(a, f, p, y) {
|
|
45
|
+
if (typeof p == "number")
|
|
46
|
+
return y[a].length === p;
|
|
47
|
+
if (typeof p == "object") {
|
|
48
|
+
const m = Object.keys(p)[0], g = p[m];
|
|
49
|
+
if (m === "not")
|
|
50
|
+
return Number(y[a].length) !== Number(g);
|
|
51
|
+
if (m === "moreThan")
|
|
52
|
+
return Number(y[a].length) >= Number(g);
|
|
53
|
+
if (m === "lessThan")
|
|
54
|
+
return Number(y[a].length) <= Number(g);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function l(a,
|
|
59
|
-
return
|
|
58
|
+
function l(a, f, p, y) {
|
|
59
|
+
return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(p);
|
|
60
60
|
}
|
|
61
61
|
const s = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", e],
|
|
63
63
|
["getProperty", l]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(i).reduce((a,
|
|
66
|
-
function o(a,
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const
|
|
72
|
-
return { target:
|
|
65
|
+
Object.keys(i).reduce((a, f) => (a.set(f, i[f]), a), s);
|
|
66
|
+
function o(a, f) {
|
|
67
|
+
const p = a;
|
|
68
|
+
return typeof f == "number" ? [{ target: p, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: p, operator: "getProperty", param: a, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
|
|
69
|
+
if (y === "length")
|
|
70
|
+
return { target: p, operator: "length", param: null, value: f[y] };
|
|
71
|
+
const m = y, g = f[y];
|
|
72
|
+
return { target: p, operator: "getProperty", param: m, value: g };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return Object.keys(a).reduce((
|
|
77
|
-
const
|
|
78
|
-
return
|
|
75
|
+
function d(a) {
|
|
76
|
+
return Object.keys(a).reduce((p, y) => {
|
|
77
|
+
const m = o(y, a[y]);
|
|
78
|
+
return p.push(...m), p;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function h(a, f) {
|
|
82
82
|
if (s.has(a.operator)) {
|
|
83
|
-
const
|
|
84
|
-
return
|
|
83
|
+
const p = s.get(a.operator);
|
|
84
|
+
return p && p(a.target, a.param, a.value, f) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function u(a, f) {
|
|
89
|
+
return d(a).reduce((m, g) => m && h(g, f), !0);
|
|
90
90
|
}
|
|
91
|
-
function D(a,
|
|
92
|
-
const
|
|
93
|
-
return
|
|
91
|
+
function D(a, f) {
|
|
92
|
+
const p = Object.keys(a), y = p.includes("allOf"), m = p.includes("anyOf"), g = y || m, L = (g ? a[g ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((j) => u(j, f));
|
|
93
|
+
return y ? !L.includes(!1) : L.includes(!0);
|
|
94
94
|
}
|
|
95
95
|
return { parseValueSchema: D };
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
function
|
|
100
|
-
return
|
|
101
|
-
const
|
|
102
|
-
return Object.assign(D,
|
|
97
|
+
const ne = {}, ie = {};
|
|
98
|
+
te();
|
|
99
|
+
function se(i, e, l = /* @__PURE__ */ new Map(), s = (h, u, D) => u, o = {}, d = (h) => h) {
|
|
100
|
+
return q[e.title] = e, W[e.title] = s, ne[e.title] = o, ie[e.title] = d, (h = {}) => {
|
|
101
|
+
const u = ee(h, e, l), D = Object.keys(i).reduce((a, f) => (a[f] = i[f].default, a), {});
|
|
102
|
+
return Object.assign(D, u);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function re(i, e) {
|
|
106
106
|
return { customClass: e.class, customStyle: e.style };
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
["appearance",
|
|
108
|
+
const le = /* @__PURE__ */ new Map([
|
|
109
|
+
["appearance", re]
|
|
110
110
|
]);
|
|
111
|
-
function
|
|
111
|
+
function ae(i, e, l) {
|
|
112
112
|
return e;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
114
|
+
const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-design.gitee.io/verify-detail.schema.json", ue = "verify-detail", fe = "A Farris Component", pe = "object", ye = {
|
|
115
115
|
id: {
|
|
116
116
|
description: "The unique identifier for verify-detail",
|
|
117
117
|
type: "string"
|
|
@@ -173,18 +173,18 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
173
173
|
type: "boolean",
|
|
174
174
|
default: !0
|
|
175
175
|
}
|
|
176
|
-
},
|
|
176
|
+
}, ve = [
|
|
177
177
|
"id",
|
|
178
178
|
"type"
|
|
179
|
-
],
|
|
180
|
-
$schema:
|
|
181
|
-
$id:
|
|
182
|
-
title:
|
|
183
|
-
description:
|
|
184
|
-
type:
|
|
185
|
-
properties:
|
|
186
|
-
required:
|
|
187
|
-
},
|
|
179
|
+
], de = {
|
|
180
|
+
$schema: oe,
|
|
181
|
+
$id: ce,
|
|
182
|
+
title: ue,
|
|
183
|
+
description: fe,
|
|
184
|
+
type: pe,
|
|
185
|
+
properties: ye,
|
|
186
|
+
required: ve
|
|
187
|
+
}, he = "verify-detail", me = "A Farris Component", ge = "object", we = {
|
|
188
188
|
basic: {
|
|
189
189
|
description: "Basic Infomation",
|
|
190
190
|
title: "基本信息",
|
|
@@ -206,12 +206,12 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
},
|
|
210
|
-
title:
|
|
211
|
-
description:
|
|
212
|
-
type:
|
|
213
|
-
categories:
|
|
214
|
-
},
|
|
209
|
+
}, be = {
|
|
210
|
+
title: he,
|
|
211
|
+
description: me,
|
|
212
|
+
type: ge,
|
|
213
|
+
categories: we
|
|
214
|
+
}, H = {
|
|
215
215
|
/** 表单验证默认显示的分组信息 */
|
|
216
216
|
showType: { type: String, default: "" },
|
|
217
217
|
/** 是否默认显示验证信息列表 */
|
|
@@ -251,37 +251,37 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
251
251
|
},
|
|
252
252
|
customClass: { type: String, default: "" },
|
|
253
253
|
maxHeight: { type: Number, default: 200 }
|
|
254
|
-
},
|
|
254
|
+
}, B = se(H, de, le, ae, be), N = /* @__PURE__ */ F({
|
|
255
255
|
name: "FVerifyDetail",
|
|
256
|
-
props:
|
|
256
|
+
props: H,
|
|
257
257
|
emits: ["validatorClick", "listshow"],
|
|
258
258
|
setup(i, e) {
|
|
259
259
|
let l = [];
|
|
260
|
-
const s =
|
|
260
|
+
const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(i.customClass);
|
|
261
261
|
function a() {
|
|
262
262
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
var
|
|
266
|
-
!t &&
|
|
264
|
+
function f(t) {
|
|
265
|
+
var v;
|
|
266
|
+
!t && u.value && u.value.length > 0 && (t = u.value[0].type), (v = u.value) == null || v.forEach((n) => {
|
|
267
267
|
n.active = n.type === t;
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
t = t || l[0].type, l.forEach((
|
|
272
|
-
|
|
270
|
+
function p(t) {
|
|
271
|
+
t = t || l[0].type, l.forEach((v) => {
|
|
272
|
+
v.show = v.type === t;
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
t.length <= 0 || (
|
|
275
|
+
function y(t) {
|
|
276
|
+
t.length <= 0 || (f(t.type), p(t.type));
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function m() {
|
|
279
279
|
s.value = !1, e.emit("listshow", !1);
|
|
280
280
|
}
|
|
281
281
|
function g(t) {
|
|
282
282
|
e.emit("validatorClick", t);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function O(t) {
|
|
285
285
|
return r("li", {
|
|
286
286
|
class: "f-verify-list",
|
|
287
287
|
onClick: () => g(t)
|
|
@@ -299,18 +299,18 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
299
299
|
title: t.msg
|
|
300
300
|
}, [t.msg])])]);
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function k() {
|
|
303
303
|
return l.map((t) => r("ul", {
|
|
304
304
|
class: ["f-verify-list-content", {
|
|
305
305
|
active: t.show
|
|
306
306
|
}]
|
|
307
|
-
}, [t.list && t.list.map((
|
|
307
|
+
}, [t.list && t.list.map((v) => O(v))]));
|
|
308
308
|
}
|
|
309
309
|
const L = C(() => {
|
|
310
310
|
var t;
|
|
311
|
-
return ((t =
|
|
311
|
+
return ((t = d.value) == null ? void 0 : t.length) > 0;
|
|
312
312
|
});
|
|
313
|
-
function
|
|
313
|
+
function E(t) {
|
|
314
314
|
return {
|
|
315
315
|
btn: !0,
|
|
316
316
|
"verify-title-btn": !0,
|
|
@@ -318,12 +318,12 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
318
318
|
disabled: t.length <= 0
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
const
|
|
321
|
+
const j = C(() => {
|
|
322
322
|
var t;
|
|
323
|
-
return (t =
|
|
324
|
-
class:
|
|
325
|
-
onClick: () =>
|
|
326
|
-
}, [
|
|
323
|
+
return (t = u.value) == null ? void 0 : t.map((v) => r("button", {
|
|
324
|
+
class: E(v),
|
|
325
|
+
onClick: () => y(v)
|
|
326
|
+
}, [v.title, r("span", null, [v.length])]));
|
|
327
327
|
}), S = C(() => {
|
|
328
328
|
var t;
|
|
329
329
|
return r("div", {
|
|
@@ -333,27 +333,27 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
333
333
|
class: "nums-icon f-icon f-icon-warning"
|
|
334
334
|
}, null), r("span", {
|
|
335
335
|
class: "nums-count"
|
|
336
|
-
}, [(t =
|
|
336
|
+
}, [(t = d.value) == null ? void 0 : t.length])]);
|
|
337
337
|
});
|
|
338
338
|
function M() {
|
|
339
|
-
var
|
|
339
|
+
var v;
|
|
340
340
|
const t = [];
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
list: n.type === "all" ?
|
|
341
|
+
u.value && ((v = u.value) != null && v.length) && (u.value.map((n) => {
|
|
342
|
+
const c = {
|
|
343
|
+
list: n.type === "all" ? d.value : [],
|
|
344
344
|
show: !1,
|
|
345
345
|
type: n.type
|
|
346
346
|
};
|
|
347
|
-
t.push(
|
|
348
|
-
}), t.map((n,
|
|
349
|
-
const
|
|
350
|
-
t[
|
|
351
|
-
}),
|
|
352
|
-
n.length = t[
|
|
347
|
+
t.push(c);
|
|
348
|
+
}), t.map((n, c) => {
|
|
349
|
+
const w = d.value.filter((T) => T.type === n.type);
|
|
350
|
+
t[c].list = c !== 0 ? w : t[c].list;
|
|
351
|
+
}), u.value.map((n, c) => {
|
|
352
|
+
n.length = t[c].list.length;
|
|
353
353
|
})), l = t;
|
|
354
354
|
}
|
|
355
|
-
return
|
|
356
|
-
M(),
|
|
355
|
+
return _(() => {
|
|
356
|
+
M(), p(h.value), f(h.value);
|
|
357
357
|
}), () => r("div", {
|
|
358
358
|
class: L ? `f-verify-detail ${D.value}` : ""
|
|
359
359
|
}, [L.value ? r("div", {
|
|
@@ -371,9 +371,9 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
371
371
|
class: "f-verify-forms-title"
|
|
372
372
|
}, [r("div", {
|
|
373
373
|
class: "btn-group"
|
|
374
|
-
}, [
|
|
374
|
+
}, [j.value]), r("div", {
|
|
375
375
|
class: "f-verify-close",
|
|
376
|
-
onClick:
|
|
376
|
+
onClick: m
|
|
377
377
|
}, [r("span", {
|
|
378
378
|
class: "f-icon f-icon-close"
|
|
379
379
|
}, null)])]), r("div", {
|
|
@@ -381,36 +381,36 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
381
381
|
style: {
|
|
382
382
|
maxHeight: o.value + "px"
|
|
383
383
|
}
|
|
384
|
-
}, [
|
|
384
|
+
}, [k()])])])])]) : null]);
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
|
-
function
|
|
388
|
-
|
|
387
|
+
function Te(i, e, l) {
|
|
388
|
+
Q({
|
|
389
389
|
setup() {
|
|
390
|
-
return
|
|
390
|
+
return X(() => {
|
|
391
391
|
e && e();
|
|
392
392
|
}), () => r(N, i, null);
|
|
393
393
|
}
|
|
394
394
|
}).mount(l);
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class J {
|
|
397
397
|
static show(e, l) {
|
|
398
398
|
this.clear();
|
|
399
399
|
let s = 0;
|
|
400
|
-
this.verifyContainer = document.createElement("div"), l ? (s = l.offsetHeight - 110, l.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s,
|
|
400
|
+
this.verifyContainer = document.createElement("div"), l ? (s = l.offsetHeight - 110, l.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s, Te(e, this.clear, this.verifyContainer);
|
|
401
401
|
}
|
|
402
402
|
static clear() {
|
|
403
403
|
let e = this.verifyContainer;
|
|
404
404
|
e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
|
|
408
|
-
function
|
|
407
|
+
V(J, "verifyContainer", null);
|
|
408
|
+
function De(i, e, l) {
|
|
409
409
|
var M;
|
|
410
410
|
function s() {
|
|
411
411
|
}
|
|
412
|
-
const o = "",
|
|
413
|
-
function
|
|
412
|
+
const o = "", d = "", h = b();
|
|
413
|
+
function u() {
|
|
414
414
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
415
415
|
}
|
|
416
416
|
function D() {
|
|
@@ -419,111 +419,111 @@ function Te(i, e, l) {
|
|
|
419
419
|
function a() {
|
|
420
420
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function f() {
|
|
423
423
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function p(t) {
|
|
426
426
|
if (!t || !t.value)
|
|
427
427
|
return null;
|
|
428
428
|
if (t.value.schema && t.value.schema.type === "component")
|
|
429
429
|
return t.value;
|
|
430
|
-
const
|
|
430
|
+
const v = b(t == null ? void 0 : t.value.parent), n = p(v);
|
|
431
431
|
return n || null;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const { componentInstance:
|
|
435
|
-
return !
|
|
433
|
+
function y(t = e) {
|
|
434
|
+
const { componentInstance: v, designerItemElementRef: n } = t;
|
|
435
|
+
return !v || !v.value ? null : v.value.canMove ? n : y(t.parent);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function m(t) {
|
|
438
438
|
return !!l;
|
|
439
439
|
}
|
|
440
440
|
function g() {
|
|
441
441
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function O() {
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function k(t, v) {
|
|
446
446
|
}
|
|
447
|
-
function L(t) {
|
|
448
|
-
const { componentType:
|
|
449
|
-
let
|
|
450
|
-
const
|
|
451
|
-
return
|
|
447
|
+
function L(t, v) {
|
|
448
|
+
const { componentType: n } = t;
|
|
449
|
+
let c = P(n, t, v);
|
|
450
|
+
const w = n.toLowerCase().replace("-", "_");
|
|
451
|
+
return c && !c.id && c.type === n && (c.id = `${w}_${Math.random().toString().slice(2, 6)}`), c;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
const n = String(t.getAttribute("data-controltype")),
|
|
455
|
-
|
|
456
|
-
let
|
|
453
|
+
function E(t, v) {
|
|
454
|
+
const n = String(t.getAttribute("data-controltype")), c = t.getAttribute("data-feature"), w = c ? JSON.parse(c) : {};
|
|
455
|
+
w.parentComponentInstance = h.value;
|
|
456
|
+
let T = P(n, w);
|
|
457
457
|
const A = n.toLowerCase().replace("-", "_");
|
|
458
|
-
return
|
|
458
|
+
return T && !T.id && T.type === n && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function j(t) {
|
|
461
461
|
}
|
|
462
462
|
function S(...t) {
|
|
463
463
|
}
|
|
464
|
-
return
|
|
465
|
-
canMove:
|
|
464
|
+
return h.value = {
|
|
465
|
+
canMove: u(),
|
|
466
466
|
canSelectParent: D(),
|
|
467
467
|
canDelete: a(),
|
|
468
|
-
canNested: !
|
|
468
|
+
canNested: !f(),
|
|
469
469
|
contents: e == null ? void 0 : e.schema.contents,
|
|
470
470
|
elementRef: i,
|
|
471
471
|
parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
|
|
472
472
|
schema: e == null ? void 0 : e.schema,
|
|
473
473
|
styles: o,
|
|
474
|
-
designerClass:
|
|
475
|
-
canAccepts:
|
|
476
|
-
getBelongedComponentInstance:
|
|
477
|
-
getDraggableDesignItemElement:
|
|
474
|
+
designerClass: d,
|
|
475
|
+
canAccepts: m,
|
|
476
|
+
getBelongedComponentInstance: p,
|
|
477
|
+
getDraggableDesignItemElement: y,
|
|
478
478
|
getDraggingDisplayText: g,
|
|
479
479
|
getPropConfig: S,
|
|
480
|
-
getDragScopeElement:
|
|
481
|
-
onAcceptMovedChildElement:
|
|
482
|
-
onAcceptNewChildElement:
|
|
483
|
-
onChildElementMovedOut:
|
|
480
|
+
getDragScopeElement: O,
|
|
481
|
+
onAcceptMovedChildElement: k,
|
|
482
|
+
onAcceptNewChildElement: E,
|
|
483
|
+
onChildElementMovedOut: j,
|
|
484
484
|
addNewChildComponentSchema: L,
|
|
485
485
|
updateDragAndDropRules: s,
|
|
486
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
487
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
488
|
-
},
|
|
486
|
+
triggerBelongedComponentToMoveWhenMoved: b(!1),
|
|
487
|
+
triggerBelongedComponentToDeleteWhenDeleted: b(!1)
|
|
488
|
+
}, h;
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const Le = /* @__PURE__ */ F({
|
|
491
491
|
name: "FVerifyDetailDesign",
|
|
492
|
-
props:
|
|
492
|
+
props: H,
|
|
493
493
|
emits: ["validatorClick", "listshow"],
|
|
494
494
|
setup(i, e) {
|
|
495
495
|
let l = [];
|
|
496
|
-
const s =
|
|
497
|
-
|
|
498
|
-
D.value.componentInstance =
|
|
499
|
-
}), e.expose(
|
|
500
|
-
function
|
|
496
|
+
const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(), a = Y("design-item-context"), f = De(D, a);
|
|
497
|
+
Z(() => {
|
|
498
|
+
D.value.componentInstance = f;
|
|
499
|
+
}), e.expose(f.value);
|
|
500
|
+
function p() {
|
|
501
501
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
var
|
|
505
|
-
(
|
|
506
|
-
|
|
503
|
+
function y(n) {
|
|
504
|
+
var c;
|
|
505
|
+
(c = u.value) == null || c.forEach((w) => {
|
|
506
|
+
w.active = w.type === n;
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
l.forEach((
|
|
511
|
-
|
|
509
|
+
function m(n) {
|
|
510
|
+
l.forEach((c) => {
|
|
511
|
+
c.show = c.type === n;
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
function g(n) {
|
|
515
|
-
n.length <= 0 || (
|
|
515
|
+
n.length <= 0 || (y(n.type), m(n.type));
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function O() {
|
|
518
518
|
s.value = !1, e.emit("listshow", !1);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function k(n) {
|
|
521
521
|
e.emit("validatorClick", n);
|
|
522
522
|
}
|
|
523
523
|
function L(n) {
|
|
524
524
|
return r("li", {
|
|
525
525
|
class: "f-verify-list",
|
|
526
|
-
onClick: () =>
|
|
526
|
+
onClick: () => k(n)
|
|
527
527
|
}, [r("span", {
|
|
528
528
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
529
529
|
"list-warning": n.type === "warn"
|
|
@@ -538,16 +538,16 @@ const De = /* @__PURE__ */ B({
|
|
|
538
538
|
title: n.msg
|
|
539
539
|
}, [n.msg])])]);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function E() {
|
|
542
542
|
return l.map((n) => r("ul", {
|
|
543
543
|
class: ["f-verify-list-content", {
|
|
544
544
|
active: n.show
|
|
545
545
|
}]
|
|
546
|
-
}, [n.list && n.list.map((
|
|
546
|
+
}, [n.list && n.list.map((c) => L(c))]));
|
|
547
547
|
}
|
|
548
|
-
const
|
|
548
|
+
const j = C(() => {
|
|
549
549
|
var n;
|
|
550
|
-
return ((n =
|
|
550
|
+
return ((n = d.value) == null ? void 0 : n.length) > 0;
|
|
551
551
|
});
|
|
552
552
|
function S(n) {
|
|
553
553
|
return {
|
|
@@ -558,43 +558,43 @@ const De = /* @__PURE__ */ B({
|
|
|
558
558
|
}
|
|
559
559
|
const M = C(() => {
|
|
560
560
|
var n;
|
|
561
|
-
return (n =
|
|
562
|
-
class: S(
|
|
563
|
-
onClick: () => g(
|
|
564
|
-
}, [
|
|
561
|
+
return (n = u.value) == null ? void 0 : n.map((c) => r("button", {
|
|
562
|
+
class: S(c),
|
|
563
|
+
onClick: () => g(c)
|
|
564
|
+
}, [c.title, r("span", null, [c.length])]));
|
|
565
565
|
}), t = C(() => {
|
|
566
566
|
var n;
|
|
567
567
|
return r("div", {
|
|
568
568
|
class: "f-verify-nums",
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: p
|
|
570
570
|
}, [r("span", {
|
|
571
571
|
class: "nums-icon f-icon f-icon-warning"
|
|
572
572
|
}, null), r("span", {
|
|
573
573
|
class: "nums-count"
|
|
574
|
-
}, [(n =
|
|
574
|
+
}, [(n = d.value) == null ? void 0 : n.length])]);
|
|
575
575
|
});
|
|
576
|
-
function
|
|
577
|
-
var
|
|
576
|
+
function v() {
|
|
577
|
+
var c;
|
|
578
578
|
const n = [];
|
|
579
|
-
|
|
580
|
-
const
|
|
581
|
-
list:
|
|
579
|
+
u.value && ((c = u.value) != null && c.length) && (u.value.map((w) => {
|
|
580
|
+
const T = {
|
|
581
|
+
list: w.type === "all" ? d.value : [],
|
|
582
582
|
show: !1,
|
|
583
|
-
type:
|
|
583
|
+
type: w.type
|
|
584
584
|
};
|
|
585
|
-
n.push(
|
|
586
|
-
}), n.map((
|
|
587
|
-
const A =
|
|
588
|
-
n[
|
|
589
|
-
}),
|
|
590
|
-
|
|
585
|
+
n.push(T);
|
|
586
|
+
}), n.map((w, T) => {
|
|
587
|
+
const A = d.value.filter((U) => U.type === w.type);
|
|
588
|
+
n[T].list = T !== 0 ? A : n[T].list;
|
|
589
|
+
}), u.value.map((w, T) => {
|
|
590
|
+
w.length = n[T].list.length;
|
|
591
591
|
})), l = n;
|
|
592
592
|
}
|
|
593
|
-
return
|
|
594
|
-
|
|
593
|
+
return _(() => {
|
|
594
|
+
v(), m(h.value), y(h.value);
|
|
595
595
|
}), () => r("div", {
|
|
596
596
|
ref: D
|
|
597
|
-
}, [
|
|
597
|
+
}, [j.value ? r("div", {
|
|
598
598
|
class: "f-verify-detail"
|
|
599
599
|
}, [r("div", {
|
|
600
600
|
class: "f-verify-detail-content"
|
|
@@ -613,7 +613,7 @@ const De = /* @__PURE__ */ B({
|
|
|
613
613
|
class: "btn-group"
|
|
614
614
|
}, [M.value]), r("div", {
|
|
615
615
|
class: "f-verify-close",
|
|
616
|
-
onClick:
|
|
616
|
+
onClick: O
|
|
617
617
|
}, [r("span", {
|
|
618
618
|
class: "f-icon f-icon-close"
|
|
619
619
|
}, null)])]), r("div", {
|
|
@@ -621,23 +621,23 @@ const De = /* @__PURE__ */ B({
|
|
|
621
621
|
style: {
|
|
622
622
|
maxHeight: o.value + "px"
|
|
623
623
|
}
|
|
624
|
-
}, [
|
|
624
|
+
}, [E()])])])])])]) : null]);
|
|
625
625
|
}
|
|
626
626
|
}), Ee = {
|
|
627
627
|
install(i) {
|
|
628
|
-
i.component(N.name, N), i.provide("FVerifyDetailService",
|
|
628
|
+
i.component(N.name, N), i.provide("FVerifyDetailService", J);
|
|
629
629
|
},
|
|
630
630
|
register(i, e, l, s) {
|
|
631
|
-
i["verify-detail"] = N, e["verify-detail"] =
|
|
631
|
+
i["verify-detail"] = N, e["verify-detail"] = B;
|
|
632
632
|
},
|
|
633
633
|
registerDesigner(i, e, l) {
|
|
634
|
-
i["verify-detail"] =
|
|
634
|
+
i["verify-detail"] = Le, e["verify-detail"] = B;
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
export {
|
|
638
638
|
N as FVerifyDetail,
|
|
639
|
-
|
|
639
|
+
J as FVerifyDetailService,
|
|
640
640
|
Ee as default,
|
|
641
|
-
|
|
642
|
-
|
|
641
|
+
B as propsResolver,
|
|
642
|
+
H as verifyDetailProps
|
|
643
643
|
};
|