@web-utils/component 4.0.15 → 4.0.16
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/address-input/index.mjs +13 -15
- package/card/index.mjs +18 -20
- package/carousel/index.mjs +10 -12
- package/chat/index.mjs +45 -56
- package/chunk-file-uploader/index.mjs +36 -378
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
- package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
- package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
- package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
- package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
- package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
- package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
- package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
- package/chunks/core.0Exl13Mz.mjs +54 -0
- package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
- package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
- package/chunks/dictionary.DGt59Ir7.mjs +68 -0
- package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
- package/chunks/form-item.LWjePsPa.mjs +233 -0
- package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
- package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
- package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/chunks/utils.DRcxC1Fb.mjs +60 -0
- package/color-picker/index.mjs +22 -101
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +12 -15
- package/data-card/index.mjs +10 -12
- package/data-card-text/index.mjs +10 -12
- package/data-display/index.mjs +15 -17
- package/data-icons/index.mjs +13 -16
- package/data-imgtext/index.mjs +15 -18
- package/data-operatext/index.mjs +14 -16
- package/data-panel/index.mjs +13 -16
- package/data-pay/index.mjs +16 -20
- package/data-price/index.mjs +14 -16
- package/data-progress/index.mjs +13 -17
- package/data-rotate/index.mjs +12 -15
- package/data-table-picker/index.mjs +15 -18
- package/data-tabs/index.mjs +12 -15
- package/dialog-form/index.mjs +16 -18
- package/dynamic-table/index.mjs +25 -30
- package/editable-progress/index.mjs +9 -11
- package/editable-tree/index.mjs +52 -56
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +22 -23
- package/element-listeners/style.css +1 -0
- package/element-multi-instance/style.css +1 -0
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +10 -11
- package/flow-designer/index.mjs +699 -1973
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +32 -34
- package/form-cascader/index.mjs +23 -24
- package/form-checkbox/index.mjs +16 -17
- package/form-checkbox-group/index.mjs +20 -23
- package/form-date-picker/index.mjs +18 -20
- package/form-holder/index.mjs +13 -14
- package/form-input/index.mjs +14 -15
- package/form-input-cron-expression/index.mjs +19 -22
- package/form-input-email/index.mjs +15 -16
- package/form-input-id-card/index.mjs +12 -13
- package/form-input-number/index.mjs +16 -17
- package/form-input-phone-number/index.mjs +21 -22
- package/form-input-tag/index.mjs +14 -15
- package/form-input-time/index.mjs +14 -15
- package/form-item/index.mjs +140 -3
- package/form-item-group/index.mjs +28 -31
- package/form-radio-group/index.mjs +27 -28
- package/form-select/index.mjs +21 -23
- package/form-switch/index.mjs +16 -17
- package/form-table/index.mjs +16 -17
- package/form-table-plus/index.mjs +21 -22
- package/form-textarea/index.mjs +15 -16
- package/form-tree-select/index.mjs +14 -15
- package/form-tree-select-multiple/index.mjs +14 -15
- package/form-view/index.mjs +35 -39
- package/fy-array/index.mjs +33 -37
- package/fy-cascader/index.mjs +16 -17
- package/fy-checkbox/index.mjs +11 -13
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1128 -1152
- package/fy-date/index.mjs +10 -11
- package/fy-draggable/index.mjs +9 -10
- package/fy-dynamic/index.mjs +22 -25
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +638 -15
- package/fy-form-design/index.mjs +1307 -1345
- package/fy-from/crud/zh.d.ts +6 -6
- package/fy-input/index.mjs +12 -14
- package/fy-input-color/index.mjs +13 -15
- package/fy-input-icon/index.mjs +20 -23
- package/fy-input-map/index.mjs +28 -31
- package/fy-input-number/index.mjs +9 -10
- package/fy-input-table/index.mjs +18 -22
- package/fy-input-tree/index.mjs +33 -37
- package/fy-progress/index.mjs +9 -10
- package/fy-radio/index.mjs +15 -16
- package/fy-rate/index.mjs +10 -11
- package/fy-select/index.mjs +25 -29
- package/fy-slider/index.mjs +11 -12
- package/fy-switch/index.mjs +9 -10
- package/fy-tabs/index.mjs +15 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +18 -24
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +74 -76
- package/guide-steps/index.mjs +11 -13
- package/iframe-window/index.mjs +9 -10
- package/image-cropper/index.mjs +28 -30
- package/image-preview/index.mjs +12 -14
- package/index.mjs +72 -72
- package/input-number/index.mjs +13 -14
- package/input-number-range/index.mjs +11 -12
- package/license/index.mjs +1 -1
- package/login/index.mjs +21 -26
- package/nav-bar/index.mjs +9 -10
- package/notice/index.mjs +9 -10
- package/package.json +1 -1
- package/page-index/index.mjs +12 -13
- package/page-index-top/index.mjs +23 -28
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +8 -9
- package/pageable-table/index.mjs +172 -182
- package/pageable-view/index.mjs +15 -16
- package/picker-table-view/index.mjs +49 -58
- package/present-view/index.mjs +35 -39
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +20 -22
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +9 -10
- package/split-pane/index.mjs +36 -37
- package/static-pageable-table/index.mjs +11 -13
- package/sub-table/index.mjs +36 -49
- package/sub-table-plus/index.mjs +229 -18
- package/swiper/index.mjs +11 -12
- package/table-column/index.mjs +223 -3
- package/table-view/index.mjs +52 -60
- package/tabs-view/index.mjs +17 -19
- package/tag-render/index.mjs +16 -18
- package/text-ellipsis/index.mjs +9 -10
- package/toolbar/index.mjs +13 -14
- package/toolbar-button/index.mjs +13 -14
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +259 -267
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +21 -24
- package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
- package/chunks/FyForm.DriwCJ7b.mjs +0 -765
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
- package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
- package/chunks/TableColumn.BzivvXMF.mjs +0 -337
package/page-index/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import r from "
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const p = {
|
|
1
|
+
import { findFirstMatchNode as r, treeToArray as n } from "@web-utils/core";
|
|
2
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const d = {
|
|
5
4
|
name: "PageIndex",
|
|
6
5
|
props: {
|
|
7
6
|
menus: {
|
|
@@ -50,10 +49,10 @@ const p = {
|
|
|
50
49
|
},
|
|
51
50
|
methods: {
|
|
52
51
|
async activeFirstMenu() {
|
|
53
|
-
if (
|
|
52
|
+
if (n(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
|
|
54
53
|
await this.setCurrentKey(this.$route.path);
|
|
55
54
|
else {
|
|
56
|
-
const t =
|
|
55
|
+
const t = r(this.menus, (e) => e.path);
|
|
57
56
|
t && (await this.$router.push({ path: t.path, query: t.query }), await this.setCurrentKey(t.path));
|
|
58
57
|
}
|
|
59
58
|
},
|
|
@@ -66,18 +65,18 @@ const p = {
|
|
|
66
65
|
},
|
|
67
66
|
async beforeRouteUpdate(a, t, e) {
|
|
68
67
|
if (a.path === this.schema) {
|
|
69
|
-
const s =
|
|
68
|
+
const s = r(this.menus, (i) => i.path);
|
|
70
69
|
s ? (await e({ path: s.path, query: s.query }), await this.setCurrentKey(s.path)) : await e(!1);
|
|
71
70
|
} else
|
|
72
71
|
await e(), await this.setCurrentKey(this.$route.path);
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
};
|
|
76
|
-
var
|
|
75
|
+
var h = function() {
|
|
77
76
|
var t = this, e = t._self._c;
|
|
78
77
|
return e("div", { staticClass: "egd-container" }, [t.aside ? e("div", { staticClass: "egd-aside", style: { width: t.asideWidth } }, [t._t("aside", function() {
|
|
79
78
|
return [e("div", { staticClass: "egd-main" }, [t._t("nav-top"), e("div", { staticClass: "egd-header" }, [e("span", { staticClass: "section-title flex-not-shrink" }, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
|
|
80
|
-
return [e(
|
|
79
|
+
return [e("ElTree", { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node: i }) {
|
|
81
80
|
return [t._t("tree-node", function() {
|
|
82
81
|
return [e("span", [e("i", { class: s.icon }), t._v(" " + t._s(s.label))])];
|
|
83
82
|
}, { data: s, node: i })];
|
|
@@ -86,15 +85,15 @@ var d = function() {
|
|
|
86
85
|
})], 2) : t._e(), e("div", { staticClass: "page-index-content", style: { width: t.aside ? `calc(100% - ${t.asideWidth})` : "100%" } }, [t._t("default", function() {
|
|
87
86
|
return [e("div", { staticClass: "page-index-content-empty" }, [t._v(" " + t._s(t.tips) + " ")])];
|
|
88
87
|
})], 2)]);
|
|
89
|
-
},
|
|
90
|
-
p,
|
|
88
|
+
}, o = [], p = /* @__PURE__ */ u(
|
|
91
89
|
d,
|
|
92
90
|
h,
|
|
91
|
+
o,
|
|
93
92
|
!1,
|
|
94
93
|
null,
|
|
95
94
|
null
|
|
96
95
|
);
|
|
97
|
-
const
|
|
96
|
+
const f = p.exports;
|
|
98
97
|
export {
|
|
99
|
-
|
|
98
|
+
f as default
|
|
100
99
|
};
|
package/page-index-top/index.mjs
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import p from "../page-header/index.mjs";
|
|
5
|
-
import c from "../page-skeleton/index.mjs";
|
|
6
|
-
import { findFirstMatchNode as r, treeToArray as m } from "@web-utils/core";
|
|
7
|
-
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
-
const h = {
|
|
1
|
+
import { findFirstMatchNode as n, treeToArray as i } from "@web-utils/core";
|
|
2
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
|
+
const o = {
|
|
9
4
|
name: "PageIndexTop",
|
|
10
5
|
props: {
|
|
11
6
|
menus: {
|
|
@@ -34,47 +29,47 @@ const h = {
|
|
|
34
29
|
},
|
|
35
30
|
methods: {
|
|
36
31
|
async activeFirstMenu() {
|
|
37
|
-
if (
|
|
32
|
+
if (i(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
|
|
38
33
|
this.activeTab = this.$route.path;
|
|
39
34
|
else {
|
|
40
|
-
const t =
|
|
35
|
+
const t = n(this.menus, (e) => e.path);
|
|
41
36
|
t && (this.activeTab = t.path, await this.$router.push({ path: t.path, query: t.query }));
|
|
42
37
|
}
|
|
43
38
|
},
|
|
44
|
-
async tabClick(
|
|
45
|
-
await this.$router.push(
|
|
39
|
+
async tabClick(s) {
|
|
40
|
+
await this.$router.push(s.name);
|
|
46
41
|
},
|
|
47
|
-
async beforeRouteUpdate(
|
|
48
|
-
if (
|
|
49
|
-
const a =
|
|
42
|
+
async beforeRouteUpdate(s, t, e) {
|
|
43
|
+
if (s.path === this.schema) {
|
|
44
|
+
const a = n(this.menus, (r) => r.path);
|
|
50
45
|
a ? (await e({ path: a.path, query: a.query }), this.activeTab = a.path) : await e(!1);
|
|
51
46
|
} else
|
|
52
47
|
await e();
|
|
53
48
|
}
|
|
54
49
|
}
|
|
55
50
|
};
|
|
56
|
-
var
|
|
51
|
+
var p = function() {
|
|
57
52
|
var t = this, e = t._self._c;
|
|
58
|
-
return t.menus && t.menus.length ? e(
|
|
59
|
-
return [e(
|
|
60
|
-
return [e(
|
|
53
|
+
return t.menus && t.menus.length ? e("PageSkeleton", { scopedSlots: t._u([{ key: "header", fn: function() {
|
|
54
|
+
return [e("PageHeader", { scopedSlots: t._u([{ key: "section-title", fn: function() {
|
|
55
|
+
return [e("ElTabs", { on: { "tab-click": t.tabClick }, model: { value: t.activeTab, callback: function(a) {
|
|
61
56
|
t.activeTab = a;
|
|
62
57
|
}, expression: "activeTab" } }, t._l(t.menus, function(a) {
|
|
63
|
-
return e(
|
|
58
|
+
return e("ElTabPane", { key: a.path, attrs: { label: a.label, name: `${a.path}` } });
|
|
64
59
|
}), 1)];
|
|
65
60
|
}, proxy: !0 }], null, !1, 412017982) })];
|
|
66
61
|
}, proxy: !0 }], null, !1, 2288233724) }, [t._t("default", function() {
|
|
67
|
-
return [e(
|
|
68
|
-
})], 2) : e(
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
return [e("EmptyView", { attrs: { "empty-tips": t.tips } })];
|
|
63
|
+
})], 2) : e("EmptyView", { attrs: { "empty-tips": "暂无权限!" } });
|
|
64
|
+
}, c = [], l = /* @__PURE__ */ u(
|
|
65
|
+
o,
|
|
66
|
+
p,
|
|
67
|
+
c,
|
|
73
68
|
!1,
|
|
74
69
|
null,
|
|
75
70
|
null
|
|
76
71
|
);
|
|
77
|
-
const
|
|
72
|
+
const f = l.exports;
|
|
78
73
|
export {
|
|
79
|
-
|
|
74
|
+
f as default
|
|
80
75
|
};
|
package/page-skeleton/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import o from "../
|
|
2
|
-
import n from "../page-header/index.mjs";
|
|
3
|
-
import r from "../page/index.mjs";
|
|
1
|
+
import o from "../page/index.mjs";
|
|
4
2
|
import "../page/style.css";
|
|
3
|
+
import n from "../nav-bar/index.mjs";
|
|
5
4
|
import "../nav-bar/style.css";
|
|
5
|
+
import r from "../page-header/index.mjs";
|
|
6
6
|
import "../page-header/style.css";
|
|
7
|
-
import { n as
|
|
8
|
-
const
|
|
7
|
+
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
+
const l = {
|
|
9
9
|
name: "PageSkeleton",
|
|
10
10
|
components: {
|
|
11
|
-
Page:
|
|
12
|
-
NavBar:
|
|
13
|
-
PageHeader:
|
|
11
|
+
Page: o,
|
|
12
|
+
NavBar: n,
|
|
13
|
+
PageHeader: r
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
16
|
title: String,
|
|
@@ -29,18 +29,18 @@ const a = {
|
|
|
29
29
|
};
|
|
30
30
|
var s = function() {
|
|
31
31
|
var e = this, t = e._self._c;
|
|
32
|
-
return t(
|
|
33
|
-
return [e.title ? t(
|
|
32
|
+
return t("Page", { staticClass: "page-skeleton" }, [e.header ? e._t("header", function() {
|
|
33
|
+
return [e.title ? t("PageHeader", { attrs: { title: e.title } }) : t("NavBar")];
|
|
34
34
|
}) : e._e(), t("div", { class: ["page-content", { "flex-column": e.flexColumn, "flex-row": e.flexRow, "content-scroll": e.contentScroll }, e.contentClass] }, [e._t("default")], 2)], 2);
|
|
35
|
-
}, c = [], f = /* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
}, c = [], f = /* @__PURE__ */ a(
|
|
36
|
+
l,
|
|
37
37
|
s,
|
|
38
38
|
c,
|
|
39
39
|
!1,
|
|
40
40
|
null,
|
|
41
41
|
null
|
|
42
42
|
);
|
|
43
|
-
const
|
|
43
|
+
const x = f.exports;
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
x as default
|
|
46
46
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import l from "../
|
|
2
|
-
|
|
3
|
-
const n = {
|
|
1
|
+
import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
2
|
+
const a = {
|
|
4
3
|
name: "PageSkeletonNew",
|
|
5
4
|
props: {
|
|
6
5
|
title: {
|
|
@@ -24,9 +23,9 @@ const n = {
|
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
};
|
|
27
|
-
var
|
|
26
|
+
var n = function() {
|
|
28
27
|
var e = this, t = e._self._c;
|
|
29
|
-
return t(
|
|
28
|
+
return t("Page", { staticClass: "page-skeleton-new", attrs: { horizontal: "" } }, [t("div", { staticClass: "page-skeleton-new-left", style: { width: e.sidebarWidth } }, [e.header ? t("div", { staticClass: "page-skeleton-new-header", staticStyle: { "margin-right": "0" } }, [t("span", { staticClass: "section-title" }, [e._v(e._s(e.title))])]) : e._e(), t("div", { staticClass: "flex-item", staticStyle: { "border-right": "1px solid #eee" } }, [e._t("sidebar-content", function() {
|
|
30
29
|
return [e._v(" 侧栏内容 ")];
|
|
31
30
|
})], 2)]), t("div", { staticClass: "page-skeleton-new-right", style: { width: `calc(100% - ${e.sidebarWidth})` } }, [e.header ? t("div", { staticClass: "page-skeleton-new-header", staticStyle: { "margin-left": "0", "padding-left": "10px" } }, [t("div", { staticClass: "flex-item flex-row vertical-center" }, [e._t("header-left")], 2), t("div", { staticClass: "flex-item flex-row vertical-center" }, [t("div", { class: ["flex-row", "flex-item", "vertical-center", "align-end"] }, [e._t("header-right")], 2)])]) : e._e(), t("div", { class: [
|
|
32
31
|
"page-skeleton-new-page-content",
|
|
@@ -36,15 +35,15 @@ var s = function() {
|
|
|
36
35
|
] }, [e._t("default", function() {
|
|
37
36
|
return [e._v("内容")];
|
|
38
37
|
})], 2)])]);
|
|
39
|
-
},
|
|
38
|
+
}, s = [], i = /* @__PURE__ */ l(
|
|
39
|
+
a,
|
|
40
40
|
n,
|
|
41
41
|
s,
|
|
42
|
-
i,
|
|
43
42
|
!1,
|
|
44
43
|
null,
|
|
45
44
|
null
|
|
46
45
|
);
|
|
47
|
-
const
|
|
46
|
+
const c = i.exports;
|
|
48
47
|
export {
|
|
49
|
-
|
|
48
|
+
c as default
|
|
50
49
|
};
|