@farris/ui-vue 1.2.5 → 1.2.6
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/package.json +1 -1
- package/components/avatar/index.esm.js +124 -116
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +219 -209
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +36 -28
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +318 -316
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3771 -3622
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2408 -2405
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +250 -242
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +575 -565
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +281 -277
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1795 -1783
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3914 -3769
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +475 -465
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +256 -248
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1445 -1446
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4347 -4145
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4657 -4475
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +353 -345
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +917 -893
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +108 -101
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +394 -384
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +72 -64
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +404 -393
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +610 -592
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3654 -3408
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +79 -71
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1448 -1406
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +86 -78
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +387 -379
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3769 -3620
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2041 -2038
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12423 -11981
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var V = Object.defineProperty;
|
|
2
2
|
var D = (n, e, t) => e in n ? V(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var g = (n, e, t) => D(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { ref as v, computed as
|
|
4
|
+
import { ref as v, computed as C, defineComponent as w, createVNode as f, inject as F, onMounted as E } from "vue";
|
|
5
5
|
import { cloneDeep as R } from "lodash-es";
|
|
6
6
|
import { resolveAppearance as H } from "@farris/ui-vue/components/dynamic-resolver";
|
|
7
7
|
import { useDesignerComponent as Q } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
|
|
8
8
|
import { withInstall as N } from "@farris/ui-vue/components/common";
|
|
9
9
|
const O = {}, L = {};
|
|
10
10
|
function P(n) {
|
|
11
|
-
const { properties: e, title: t } = n, o = Object.keys(e).reduce((r,
|
|
11
|
+
const { properties: e, title: t } = n, o = Object.keys(e).reduce((r, l) => (r[l] = e[l].type === "object" && e[l].properties ? P(e[l]) : R(e[l].default), r), {});
|
|
12
12
|
return o.id = `${t}-${Date.now()}`, o;
|
|
13
13
|
}
|
|
14
14
|
function U(n, e) {
|
|
@@ -18,11 +18,11 @@ function U(n, e) {
|
|
|
18
18
|
function j(n, e) {
|
|
19
19
|
return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
|
|
20
20
|
if (e.has(r)) {
|
|
21
|
-
const
|
|
22
|
-
if (typeof
|
|
23
|
-
o[
|
|
21
|
+
const l = e.get(r);
|
|
22
|
+
if (typeof l == "string")
|
|
23
|
+
o[l] = n[r];
|
|
24
24
|
else {
|
|
25
|
-
const m =
|
|
25
|
+
const m = l(r, n[r], n);
|
|
26
26
|
Object.assign(o, m);
|
|
27
27
|
}
|
|
28
28
|
} else
|
|
@@ -35,65 +35,65 @@ function q(n, e, t = /* @__PURE__ */ new Map()) {
|
|
|
35
35
|
return j(o, t);
|
|
36
36
|
}
|
|
37
37
|
function W(n = {}) {
|
|
38
|
-
function e(i,
|
|
39
|
-
if (typeof
|
|
40
|
-
return d[i].length ===
|
|
41
|
-
if (typeof
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
38
|
+
function e(i, s, c, d) {
|
|
39
|
+
if (typeof c == "number")
|
|
40
|
+
return d[i].length === c;
|
|
41
|
+
if (typeof c == "object") {
|
|
42
|
+
const p = Object.keys(c)[0], y = c[p];
|
|
43
|
+
if (p === "not")
|
|
44
44
|
return Number(d[i].length) !== Number(y);
|
|
45
|
-
if (
|
|
45
|
+
if (p === "moreThan")
|
|
46
46
|
return Number(d[i].length) >= Number(y);
|
|
47
|
-
if (
|
|
47
|
+
if (p === "lessThan")
|
|
48
48
|
return Number(d[i].length) <= Number(y);
|
|
49
49
|
}
|
|
50
50
|
return !1;
|
|
51
51
|
}
|
|
52
|
-
function t(i,
|
|
53
|
-
return d[i] && d[i].propertyValue && String(d[i].propertyValue.value) === String(
|
|
52
|
+
function t(i, s, c, d) {
|
|
53
|
+
return d[i] && d[i].propertyValue && String(d[i].propertyValue.value) === String(c);
|
|
54
54
|
}
|
|
55
55
|
const o = /* @__PURE__ */ new Map([
|
|
56
56
|
["length", e],
|
|
57
57
|
["getProperty", t]
|
|
58
58
|
]);
|
|
59
|
-
Object.keys(n).reduce((i,
|
|
60
|
-
function r(i,
|
|
61
|
-
const
|
|
62
|
-
return typeof
|
|
59
|
+
Object.keys(n).reduce((i, s) => (i.set(s, n[s]), i), o);
|
|
60
|
+
function r(i, s) {
|
|
61
|
+
const c = i;
|
|
62
|
+
return typeof s == "number" ? [{ target: c, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: c, operator: "getProperty", param: i, value: !!s }] : typeof s == "object" ? Object.keys(s).map((d) => {
|
|
63
63
|
if (d === "length")
|
|
64
|
-
return { target:
|
|
65
|
-
const
|
|
66
|
-
return { target:
|
|
64
|
+
return { target: c, operator: "length", param: null, value: s[d] };
|
|
65
|
+
const p = d, y = s[d];
|
|
66
|
+
return { target: c, operator: "getProperty", param: p, value: y };
|
|
67
67
|
}) : [];
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return Object.keys(i).reduce((
|
|
71
|
-
const
|
|
72
|
-
return
|
|
69
|
+
function l(i) {
|
|
70
|
+
return Object.keys(i).reduce((c, d) => {
|
|
71
|
+
const p = r(d, i[d]);
|
|
72
|
+
return c.push(...p), c;
|
|
73
73
|
}, []);
|
|
74
74
|
}
|
|
75
|
-
function m(i,
|
|
75
|
+
function m(i, s) {
|
|
76
76
|
if (o.has(i.operator)) {
|
|
77
|
-
const
|
|
78
|
-
return
|
|
77
|
+
const c = o.get(i.operator);
|
|
78
|
+
return c && c(i.target, i.param, i.value, s) || !1;
|
|
79
79
|
}
|
|
80
80
|
return !1;
|
|
81
81
|
}
|
|
82
|
-
function u(i,
|
|
83
|
-
return
|
|
82
|
+
function u(i, s) {
|
|
83
|
+
return l(i).reduce((p, y) => p && m(y, s), !0);
|
|
84
84
|
}
|
|
85
|
-
function A(i,
|
|
86
|
-
const
|
|
87
|
-
return d ? !
|
|
85
|
+
function A(i, s) {
|
|
86
|
+
const c = Object.keys(i), d = c.includes("allOf"), p = c.includes("anyOf"), y = d || p, S = (y ? i[y ? d ? "allOf" : "anyOf" : "allOf"] : [i]).map((k) => u(k, s));
|
|
87
|
+
return d ? !S.includes(!1) : S.includes(!0);
|
|
88
88
|
}
|
|
89
89
|
return { parseValueSchema: A };
|
|
90
90
|
}
|
|
91
91
|
const a = {
|
|
92
92
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
93
93
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
95
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
96
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
97
97
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
98
98
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
99
99
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -120,15 +120,15 @@ const a = {
|
|
|
120
120
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
121
121
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
122
122
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
123
|
-
|
|
123
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
124
124
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
125
125
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
126
126
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
127
127
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
128
128
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
129
129
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
131
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
132
132
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
133
133
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
134
134
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -137,7 +137,7 @@ const a = {
|
|
|
137
137
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
138
138
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
139
139
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
140
|
-
|
|
140
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
141
141
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
142
142
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
143
143
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -167,7 +167,7 @@ const a = {
|
|
|
167
167
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
168
168
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
169
169
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
170
|
-
|
|
170
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
171
171
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
172
172
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
173
173
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -201,9 +201,9 @@ const a = {
|
|
|
201
201
|
/** 审批类 end */
|
|
202
202
|
}, G = {}, z = {};
|
|
203
203
|
W();
|
|
204
|
-
function Z(n, e, t = /* @__PURE__ */ new Map(), o = (m, u, A) => u, r = {},
|
|
205
|
-
return O[e.title] = e, L[e.title] = o, G[e.title] = r, z[e.title] =
|
|
206
|
-
const u = q(m, e, t), A = Object.keys(n).reduce((i,
|
|
204
|
+
function Z(n, e, t = /* @__PURE__ */ new Map(), o = (m, u, A) => u, r = {}, l = (m) => m) {
|
|
205
|
+
return O[e.title] = e, L[e.title] = o, G[e.title] = r, z[e.title] = l, (m = {}) => {
|
|
206
|
+
const u = q(m, e, t), A = Object.keys(n).reduce((i, s) => (i[s] = n[s].default, i), {});
|
|
207
207
|
return Object.assign(A, u);
|
|
208
208
|
};
|
|
209
209
|
}
|
|
@@ -322,47 +322,47 @@ const Y = /* @__PURE__ */ new Map([
|
|
|
322
322
|
* 支持的头像类型
|
|
323
323
|
*/
|
|
324
324
|
imageType: { type: Array, default: ["jpeg"] }
|
|
325
|
-
},
|
|
326
|
-
function
|
|
327
|
-
const r = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAwICQoJBwwKCQoNDAwOER0TERAQESMZGxUdKiUsKyklKCguNEI4LjE/MigoOk46P0RHSktKLTdRV1FIVkJJSkf/2wBDAQwNDREPESITEyJHMCgwR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dH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EeO23K5ZW5ZXjb97o1tcvj22WXHS/DPKMqAAAAAAAAAAAAAAAAAAAAAAOux212d0ttwvGdnjHr3ceMfPevo2XxbLTu3T0B1TmHJAZVOYF4p98xPviBFScQGlRZxBdS3TG3slvsibS/8WX+t/YHhx/TPGaqk4TyVQAAAAAAAAAAAAAAAAAAAAAAd+iX82c7ZL9/Nwdui/5b/rfoD00vARAQqAhfvcVNfL3A1WMqDSxmVQVNr/iz4/pv7LDOXLDLGcbNPDeDxTh6DtOjZaafFju816tlf+2Puo4Dv1bPvY+51bLvY+5RwHfq2Xex9zquXex9yjgO/Vcu9j7nVc+9j7lHAd+q597H3Oq597H3BwHfqufex9zqufex9yjgO/Vc+9j7nVc+9j7lHAd+q597H3Oq597H3KOA79Vz72PudVz72PuUcB36rl3sfc6rn3sfco4DvejZd7H3OrZd7H3KOA79Wy72PudWz72PuDg7dG/y3/W/Q6tl3sfdvY7K7PO25S6yzSdoOqWlEBmhaBamt+6J6AnmqaqDQy0CxYyoNCKC6m/VAGhPJdQBOSgKi6+QGu41QBRAF1LUABbUABNdAVOYUC0tE13gIWloCcTXeloFQLQTmffMtT74gixOa6gqysrzBVSVQVdWdQGpRNV1BV10SUlBYIvIF1E1Ne0F5iAKIAohaCmqWgBaapqC2ohqC6pqWoC2paa70tAqCACACa+F+RanyAWJ/a8vkAuqT6fVf7AVOz0X+AXVYh2egNSifx9T+wVWefyX+PqCyrqn807PQFEn0+p/YKH9H37gAc/kC6onL0P5BRP6OV8vqC2of2l/gAOSAuqan9J/AKmon9AUtL9PqnP1oCWl5ehfv5gh635nP1qWg//Z",
|
|
328
|
-
function m(
|
|
329
|
-
return
|
|
325
|
+
}, M = Z(T, oe, Y, K);
|
|
326
|
+
function x(n, e, t, o) {
|
|
327
|
+
const r = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAwICQoJBwwKCQoNDAwOER0TERAQESMZGxUdKiUsKyklKCguNEI4LjE/MigoOk46P0RHSktKLTdR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OU8ZpfZ1w6Ts8rJlrhfHfPmg7FKgAF4AgVARPW/NanoAsZaBVlZUFVF4g57fbfhY7pLld0l/e+EeO23K5ZW5ZXjb97o1tcvj22WXHS/DPKMqAAAAAAAAAAAAAAAAAAAAAAOux212d0ttwvGdnjHr3ceMfPevo2XxbLTu3T0B1TmHJAZVOYF4p98xPviBFScQGlRZxBdS3TG3slvsibS/8WX+t/YHhx/TPGaqk4TyVQAAAAAAAAAAAAAAAAAAAAAAd+iX82c7ZL9/Nwdui/5b/rfoD00vARAQqAhfvcVNfL3A1WMqDSxmVQVNr/iz4/pv7LDOXLDLGcbNPDeDxTh6DtOjZaafFju816tlf+2Puo4Dv1bPvY+51bLvY+5RwHfq2Xex9zquXex9yjgO/Vcu9j7nVc+9j7lHAd+q597H3Oq597H3BwHfqufex9zqufex9yjgO/Vc+9j7nVc+9j7lHAd+q597H3Oq597H3KOA79Vz72PudVz72PuUcB36rl3sfc6rn3sfco4DvejZd7H3OrZd7H3KOA79Wy72PudWz72PuDg7dG/y3/W/Q6tl3sfdvY7K7PO25S6yzSdoOqWlEBmhaBamt+6J6AnmqaqDQy0CxYyoNCKC6m/VAGhPJdQBOSgKi6+QGu41QBRAF1LUABbUABNdAVOYUC0tE13gIWloCcTXeloFQLQTmffMtT74gixOa6gqysrzBVSVQVdWdQGpRNV1BV10SUlBYIvIF1E1Ne0F5iAKIAohaCmqWgBaapqC2ohqC6pqWoC2paa70tAqCACACa+F+RanyAWJ/a8vkAuqT6fVf7AVOz0X+AXVYh2egNSifx9T+wVWefyX+PqCyrqn807PQFEn0+p/YKH9H37gAc/kC6onL0P5BRP6OV8vqC2of2l/gAOSAuqan9J/AKmon9AUtL9PqnP1oCWl5ehfv5gh635nP1qWg//Z", l = v(n.readonly);
|
|
328
|
+
function m(p) {
|
|
329
|
+
return p.match(/\.(jpeg|jpg|gif|png|svg|bmp|webp)$/) != null;
|
|
330
330
|
}
|
|
331
|
-
function u(
|
|
332
|
-
return
|
|
331
|
+
function u(p) {
|
|
332
|
+
return p.indexOf("data:image/") > -1;
|
|
333
333
|
}
|
|
334
|
-
function A(
|
|
335
|
-
return
|
|
334
|
+
function A(p) {
|
|
335
|
+
return p ? "data:image/jpeg;base64," + p : "";
|
|
336
336
|
}
|
|
337
|
-
const i =
|
|
337
|
+
const i = C(() => {
|
|
338
338
|
var y;
|
|
339
339
|
if (!n.imageType || !n.imageType.length)
|
|
340
340
|
return "";
|
|
341
|
-
const
|
|
342
|
-
return !
|
|
343
|
-
}),
|
|
344
|
-
const
|
|
345
|
-
return m(
|
|
346
|
-
}),
|
|
341
|
+
const p = (y = n.imageType) == null ? void 0 : y.map((h) => (h === "jpg" && (h = "jpeg"), `image/${h}`));
|
|
342
|
+
return !p || !p.length ? "image/*" : p.join(",");
|
|
343
|
+
}), s = C(() => {
|
|
344
|
+
const p = o.value || n.cover || r;
|
|
345
|
+
return m(p) || u(p) ? p : A(p);
|
|
346
|
+
}), c = C(() => l.value ? "" : n.title);
|
|
347
347
|
function d() {
|
|
348
|
-
|
|
348
|
+
l.value || t && t.value && t.value.click();
|
|
349
349
|
}
|
|
350
|
-
return { acceptTypes: i, imageSource:
|
|
350
|
+
return { acceptTypes: i, imageSource: s, imageTitle: c, onClickImage: d };
|
|
351
351
|
}
|
|
352
352
|
const b = /* @__PURE__ */ w({
|
|
353
353
|
name: "FAvatar",
|
|
354
354
|
props: T,
|
|
355
355
|
emits: ["change", "update:modelValue"],
|
|
356
356
|
setup(n, e) {
|
|
357
|
-
const t =
|
|
357
|
+
const t = C(() => ({
|
|
358
358
|
"f-avatar": !0,
|
|
359
359
|
"f-avatar-readonly": n.readonly,
|
|
360
360
|
"f-avatar-circle": n.shape === "circle",
|
|
361
361
|
"f-avatar-square": n.shape === "square"
|
|
362
|
-
})), o = v(n.modelValue), r =
|
|
362
|
+
})), o = v(n.modelValue), r = C(() => ({
|
|
363
363
|
width: n.avatarWidth + "px",
|
|
364
364
|
height: n.avatarHeight + "px"
|
|
365
|
-
})),
|
|
365
|
+
})), l = !1;
|
|
366
366
|
function m() {
|
|
367
367
|
return "";
|
|
368
368
|
}
|
|
@@ -370,17 +370,17 @@ const b = /* @__PURE__ */ w({
|
|
|
370
370
|
}
|
|
371
371
|
const A = v(null), {
|
|
372
372
|
acceptTypes: i,
|
|
373
|
-
imageSource:
|
|
374
|
-
onClickImage:
|
|
375
|
-
} =
|
|
373
|
+
imageSource: s,
|
|
374
|
+
onClickImage: c
|
|
375
|
+
} = x(n, e, A, o);
|
|
376
376
|
return () => f("div", {
|
|
377
377
|
class: t.value,
|
|
378
378
|
style: r.value,
|
|
379
|
-
onClick:
|
|
380
|
-
}, [
|
|
379
|
+
onClick: c
|
|
380
|
+
}, [l, f("img", {
|
|
381
381
|
title: n.title,
|
|
382
382
|
class: "f-avatar-image",
|
|
383
|
-
src:
|
|
383
|
+
src: s.value,
|
|
384
384
|
onError: m
|
|
385
385
|
}, null), !n.readonly && f("div", {
|
|
386
386
|
class: "f-avatar-icon"
|
|
@@ -400,10 +400,10 @@ const b = /* @__PURE__ */ w({
|
|
|
400
400
|
function ae(n, e) {
|
|
401
401
|
n.schema;
|
|
402
402
|
const t = v(!0), o = v(!0);
|
|
403
|
-
function r(
|
|
403
|
+
function r(c) {
|
|
404
404
|
return !1;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function l() {
|
|
407
407
|
return !1;
|
|
408
408
|
}
|
|
409
409
|
function m() {
|
|
@@ -412,28 +412,29 @@ function ae(n, e) {
|
|
|
412
412
|
function u() {
|
|
413
413
|
return !0;
|
|
414
414
|
}
|
|
415
|
-
function A(
|
|
415
|
+
function A(c) {
|
|
416
416
|
}
|
|
417
417
|
function i() {
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function s(c) {
|
|
420
420
|
return null;
|
|
421
421
|
}
|
|
422
422
|
return {
|
|
423
423
|
canAccepts: r,
|
|
424
|
-
checkCanDeleteComponent:
|
|
424
|
+
checkCanDeleteComponent: l,
|
|
425
425
|
checkCanMoveComponent: m,
|
|
426
426
|
hideNestedPaddingInDesginerView: u,
|
|
427
427
|
onAcceptMovedChildElement: A,
|
|
428
428
|
resolveComponentContext: i,
|
|
429
429
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
430
430
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
431
|
-
getPropsConfig:
|
|
431
|
+
getPropsConfig: s
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
class I {
|
|
435
435
|
static getEditorTypesByMDataType(e) {
|
|
436
|
-
|
|
436
|
+
const t = this.fieldControlTypeMapping[e];
|
|
437
|
+
return t || [{ key: "", value: "" }];
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
440
|
/**
|
|
@@ -505,13 +506,18 @@ class ie {
|
|
|
505
506
|
g(this, "designViewModelField");
|
|
506
507
|
g(this, "controlCreatorUtils");
|
|
507
508
|
g(this, "designerHostService");
|
|
509
|
+
g(this, "schemaService", null);
|
|
508
510
|
g(this, "metadataService", null);
|
|
509
511
|
g(this, "propertyConfig", {
|
|
510
512
|
type: "object",
|
|
511
513
|
categories: {}
|
|
512
514
|
});
|
|
513
515
|
var o;
|
|
514
|
-
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService;
|
|
516
|
+
this.componentId = e, this.designerHostService = t, this.eventsEditorUtils = t.eventsEditorUtils, this.formSchemaUtils = t.formSchemaUtils, this.formMetadataConverter = t.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(e)) || "", this.designViewModelUtils = t.designViewModelUtils, this.controlCreatorUtils = t.controlCreatorUtils, this.metadataService = t.metadataService, this.schemaService = t.schemaService;
|
|
517
|
+
}
|
|
518
|
+
getTableInfo() {
|
|
519
|
+
var e;
|
|
520
|
+
return (e = this.schemaService) == null ? void 0 : e.getTableInfoByViewModelId(this.viewModelId);
|
|
515
521
|
}
|
|
516
522
|
setDesignViewModelField(e) {
|
|
517
523
|
const t = e.binding && e.binding.type === "Form" && e.binding.field;
|
|
@@ -526,6 +532,7 @@ class ie {
|
|
|
526
532
|
changeFieldEditorType(e, t) {
|
|
527
533
|
}
|
|
528
534
|
getBasicPropConfig(e) {
|
|
535
|
+
var o, r;
|
|
529
536
|
var t = this;
|
|
530
537
|
return this.setDesignViewModelField(e), {
|
|
531
538
|
description: "Basic Information",
|
|
@@ -547,7 +554,8 @@ class ie {
|
|
|
547
554
|
type: "combo-list",
|
|
548
555
|
textField: "value",
|
|
549
556
|
valueField: "key",
|
|
550
|
-
data: I.getEditorTypesByMDataType(t.designViewModelField.type.name)
|
|
557
|
+
data: I.getEditorTypesByMDataType(((r = (o = t.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : r.name) || ""),
|
|
558
|
+
editable: !1
|
|
551
559
|
}
|
|
552
560
|
},
|
|
553
561
|
label: {
|
|
@@ -556,11 +564,11 @@ class ie {
|
|
|
556
564
|
$converter: "/converter/form-group-label.converter"
|
|
557
565
|
}
|
|
558
566
|
},
|
|
559
|
-
setPropertyRelates(
|
|
560
|
-
if (
|
|
561
|
-
switch (
|
|
567
|
+
setPropertyRelates(l, m) {
|
|
568
|
+
if (l)
|
|
569
|
+
switch (l && l.propertyID) {
|
|
562
570
|
case "type": {
|
|
563
|
-
t.changeControlType(e,
|
|
571
|
+
t.changeControlType(e, l);
|
|
564
572
|
break;
|
|
565
573
|
}
|
|
566
574
|
}
|
|
@@ -573,12 +581,12 @@ class ie {
|
|
|
573
581
|
* @param newControlType 新控件类型
|
|
574
582
|
*/
|
|
575
583
|
changeControlType(e, t) {
|
|
576
|
-
var i,
|
|
584
|
+
var i, s, c, d, p;
|
|
577
585
|
const o = t.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
578
|
-
let
|
|
579
|
-
if (!
|
|
586
|
+
let l = this.getControlParentContainer(e.id, r);
|
|
587
|
+
if (!l)
|
|
580
588
|
return;
|
|
581
|
-
const m =
|
|
589
|
+
const m = l.contents.findIndex((y) => y.id === e.id), u = l.contents[m];
|
|
582
590
|
let A;
|
|
583
591
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
584
592
|
editor: {
|
|
@@ -596,11 +604,11 @@ class ie {
|
|
|
596
604
|
isTextArea: A.isTextArea && u.isTextArea,
|
|
597
605
|
type: o || "",
|
|
598
606
|
placeHolder: (i = u.editor) == null ? void 0 : i.placeHolder,
|
|
599
|
-
holdPlace: (
|
|
600
|
-
readonly: (
|
|
607
|
+
holdPlace: (s = u.editor) == null ? void 0 : s.holdPlace,
|
|
608
|
+
readonly: (c = u.editor) == null ? void 0 : c.readonly,
|
|
601
609
|
require: (d = u.editor) == null ? void 0 : d.require,
|
|
602
|
-
visible: (
|
|
603
|
-
}),
|
|
610
|
+
visible: (p = u.editor) == null ? void 0 : p.visible
|
|
611
|
+
}), l.contents.splice(m, 1, A);
|
|
604
612
|
}
|
|
605
613
|
getAppearanceConfig(e = null) {
|
|
606
614
|
return {
|
|
@@ -715,7 +723,7 @@ class re extends ie {
|
|
|
715
723
|
title: "组件信息",
|
|
716
724
|
type: "input-group",
|
|
717
725
|
$converter: "/converter/property-editor.converter"
|
|
718
|
-
}, t),
|
|
726
|
+
}, t), l = Object.assign({
|
|
719
727
|
readonly: {
|
|
720
728
|
description: "",
|
|
721
729
|
title: "只读",
|
|
@@ -737,7 +745,7 @@ class re extends ie {
|
|
|
737
745
|
type: "string"
|
|
738
746
|
}
|
|
739
747
|
}, o);
|
|
740
|
-
return { ...r, properties: { ...
|
|
748
|
+
return { ...r, properties: { ...l } };
|
|
741
749
|
}
|
|
742
750
|
}
|
|
743
751
|
class le extends re {
|
|
@@ -780,25 +788,25 @@ function se(n, e) {
|
|
|
780
788
|
canAccepts: t,
|
|
781
789
|
checkCanDeleteComponent: o,
|
|
782
790
|
checkCanMoveComponent: r,
|
|
783
|
-
hideNestedPaddingInDesginerView:
|
|
791
|
+
hideNestedPaddingInDesginerView: l,
|
|
784
792
|
onAcceptMovedChildElement: m,
|
|
785
793
|
resolveComponentContext: u,
|
|
786
794
|
triggerBelongedComponentToMoveWhenMoved: A,
|
|
787
795
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
788
|
-
} = ae(n),
|
|
789
|
-
function
|
|
790
|
-
return new le(d, e).getPropertyConfig(
|
|
796
|
+
} = ae(n), s = n.schema;
|
|
797
|
+
function c(d) {
|
|
798
|
+
return new le(d, e).getPropertyConfig(s);
|
|
791
799
|
}
|
|
792
800
|
return {
|
|
793
801
|
canAccepts: t,
|
|
794
802
|
checkCanDeleteComponent: o,
|
|
795
803
|
checkCanMoveComponent: r,
|
|
796
|
-
hideNestedPaddingInDesginerView:
|
|
804
|
+
hideNestedPaddingInDesginerView: l,
|
|
797
805
|
onAcceptMovedChildElement: m,
|
|
798
806
|
resolveComponentContext: u,
|
|
799
807
|
triggerBelongedComponentToMoveWhenMoved: A,
|
|
800
808
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
801
|
-
getPropsConfig:
|
|
809
|
+
getPropsConfig: c
|
|
802
810
|
};
|
|
803
811
|
}
|
|
804
812
|
const ce = /* @__PURE__ */ w({
|
|
@@ -806,39 +814,39 @@ const ce = /* @__PURE__ */ w({
|
|
|
806
814
|
props: T,
|
|
807
815
|
emits: ["change", "update:modelValue"],
|
|
808
816
|
setup(n, e) {
|
|
809
|
-
const t = v(), o =
|
|
817
|
+
const t = v(), o = F("designer-host-service"), r = F("design-item-context"), l = se(r, o), m = Q(t, r, l);
|
|
810
818
|
E(() => {
|
|
811
819
|
t.value.componentInstance = m;
|
|
812
820
|
}), e.expose(m.value);
|
|
813
|
-
const u =
|
|
821
|
+
const u = C(() => ({
|
|
814
822
|
"f-avatar": !0,
|
|
815
823
|
"f-avatar-readonly": n.readonly,
|
|
816
824
|
"f-avatar-circle": n.shape === "circle",
|
|
817
825
|
"f-avatar-square": n.shape === "square"
|
|
818
|
-
})), A = v(n.modelValue), i =
|
|
826
|
+
})), A = v(n.modelValue), i = C(() => ({
|
|
819
827
|
width: n.avatarWidth + "px",
|
|
820
828
|
height: n.avatarHeight + "px"
|
|
821
|
-
})),
|
|
822
|
-
function
|
|
829
|
+
})), s = !1;
|
|
830
|
+
function c() {
|
|
823
831
|
return "";
|
|
824
832
|
}
|
|
825
833
|
function d() {
|
|
826
834
|
}
|
|
827
|
-
const
|
|
835
|
+
const p = v(null), {
|
|
828
836
|
acceptTypes: y,
|
|
829
|
-
imageSource:
|
|
837
|
+
imageSource: h,
|
|
830
838
|
onClickImage: B
|
|
831
|
-
} =
|
|
839
|
+
} = x(n, e, p, A);
|
|
832
840
|
return () => f("div", {
|
|
833
841
|
ref: t,
|
|
834
842
|
class: u.value,
|
|
835
843
|
style: i.value,
|
|
836
844
|
onClick: B
|
|
837
|
-
}, [
|
|
845
|
+
}, [s, f("img", {
|
|
838
846
|
title: n.title,
|
|
839
847
|
class: "f-avatar-image",
|
|
840
|
-
src:
|
|
841
|
-
onError:
|
|
848
|
+
src: h.value,
|
|
849
|
+
onError: c
|
|
842
850
|
}, null), !n.readonly && f("div", {
|
|
843
851
|
class: "f-avatar-icon"
|
|
844
852
|
}, [f("span", {
|
|
@@ -855,15 +863,15 @@ const ce = /* @__PURE__ */ w({
|
|
|
855
863
|
}
|
|
856
864
|
});
|
|
857
865
|
b.register = (n, e, t, o) => {
|
|
858
|
-
n.avatar = b, e.avatar =
|
|
866
|
+
n.avatar = b, e.avatar = M;
|
|
859
867
|
};
|
|
860
868
|
b.registerDesigner = (n, e, t) => {
|
|
861
|
-
n.avatar = ce, e.avatar =
|
|
869
|
+
n.avatar = ce, e.avatar = M;
|
|
862
870
|
};
|
|
863
871
|
const fe = N(b);
|
|
864
872
|
export {
|
|
865
873
|
b as FAvatar,
|
|
866
874
|
T as avatarProps,
|
|
867
875
|
fe as default,
|
|
868
|
-
|
|
876
|
+
M as propsResolver
|
|
869
877
|
};
|