@web-utils/component 2.70.0 → 3.0.1
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 +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- 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 +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/search/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as n } from "../chunks/init.
|
|
1
|
+
import { D as a } from "../chunks/util.7844e2c2.mjs";
|
|
2
|
+
import { i as n } from "../chunks/init.f0a03127.mjs";
|
|
3
3
|
import { isBlank as o } from "@web-utils/core";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import l from "element-ui/lib/col";
|
|
5
|
+
import u from "element-ui/lib/row";
|
|
6
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
7
|
+
var _ = function() {
|
|
6
8
|
var t = this, e = t.$createElement, r = t._self._c || e;
|
|
7
|
-
return r(
|
|
9
|
+
return r(u, {
|
|
8
10
|
class: ["avue-search", {
|
|
9
11
|
"avue--card": t.isCard
|
|
10
12
|
}],
|
|
@@ -12,7 +14,7 @@ var h = function() {
|
|
|
12
14
|
span: 24
|
|
13
15
|
}
|
|
14
16
|
}, t._l(t.columnOption, function(s) {
|
|
15
|
-
return r(
|
|
17
|
+
return r(l, {
|
|
16
18
|
key: s.prop,
|
|
17
19
|
staticClass: "avue-search__item",
|
|
18
20
|
attrs: {
|
|
@@ -24,22 +26,22 @@ var h = function() {
|
|
|
24
26
|
staticClass: "avue-search__content"
|
|
25
27
|
}, [t.mainSlot.includes(s.prop) ? t._t(s.prop, null, {
|
|
26
28
|
dic: t.DIC[s.prop]
|
|
27
|
-
}) : t._l(t.DIC[s.prop], function(
|
|
29
|
+
}) : t._l(t.DIC[s.prop], function(p) {
|
|
28
30
|
return r("span", {
|
|
29
|
-
key: t.getKey(
|
|
31
|
+
key: t.getKey(p, s.props, t.valueKey),
|
|
30
32
|
class: ["avue-search__tags", {
|
|
31
|
-
"avue-search__tags--active": t.getActive(
|
|
33
|
+
"avue-search__tags--active": t.getActive(p, s)
|
|
32
34
|
}],
|
|
33
35
|
on: {
|
|
34
|
-
click: function(
|
|
35
|
-
return t.handleClick(s,
|
|
36
|
+
click: function(m) {
|
|
37
|
+
return t.handleClick(s, p);
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
}, [t._v(t._s(t.getKey(
|
|
40
|
+
}, [t._v(t._s(t.getKey(p, s.props, t.labelKey)))]);
|
|
39
41
|
})], 2)]);
|
|
40
42
|
}), 1);
|
|
41
|
-
},
|
|
42
|
-
const
|
|
43
|
+
}, c = [];
|
|
44
|
+
const f = {
|
|
43
45
|
name: "Search",
|
|
44
46
|
mixins: [n],
|
|
45
47
|
props: {
|
|
@@ -58,10 +60,10 @@ const c = {
|
|
|
58
60
|
return this.parentOption.props || {};
|
|
59
61
|
},
|
|
60
62
|
labelKey() {
|
|
61
|
-
return
|
|
63
|
+
return a.label;
|
|
62
64
|
},
|
|
63
65
|
valueKey() {
|
|
64
|
-
return
|
|
66
|
+
return a.value;
|
|
65
67
|
},
|
|
66
68
|
mainSlot() {
|
|
67
69
|
const t = [];
|
|
@@ -120,24 +122,24 @@ const c = {
|
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
|
-
},
|
|
124
|
-
var
|
|
125
|
+
}, i = {};
|
|
126
|
+
var v = /* @__PURE__ */ h(
|
|
127
|
+
f,
|
|
128
|
+
_,
|
|
125
129
|
c,
|
|
126
|
-
h,
|
|
127
|
-
u,
|
|
128
130
|
!1,
|
|
129
|
-
|
|
131
|
+
d,
|
|
130
132
|
null,
|
|
131
133
|
null,
|
|
132
134
|
null
|
|
133
135
|
);
|
|
134
|
-
function
|
|
135
|
-
for (let e in
|
|
136
|
-
this[e] =
|
|
136
|
+
function d(t) {
|
|
137
|
+
for (let e in i)
|
|
138
|
+
this[e] = i[e];
|
|
137
139
|
}
|
|
138
|
-
const
|
|
139
|
-
return
|
|
140
|
+
const b = /* @__PURE__ */ function() {
|
|
141
|
+
return v.exports;
|
|
140
142
|
}();
|
|
141
143
|
export {
|
|
142
|
-
|
|
144
|
+
b as default
|
|
143
145
|
};
|
package/search-popover/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ var c = (t, r, e) => new Promise((s, o) => {
|
|
|
16
16
|
});
|
|
17
17
|
import { copy as d, isInContainer as p } from "@web-utils/core";
|
|
18
18
|
import v from "element-ui/lib/utils/clickoutside";
|
|
19
|
-
import { z as f } from "../chunks/util.
|
|
19
|
+
import { z as f } from "../chunks/util.7844e2c2.mjs";
|
|
20
20
|
import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
21
21
|
var w = function() {
|
|
22
22
|
var t = this, r = t.$createElement, e = t._self._c || r;
|
package/sign/index.mjs
CHANGED
package/split-pane/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var f = (t, e, s) => new Promise((
|
|
2
|
-
var
|
|
1
|
+
var f = (t, e, s) => new Promise((n, i) => {
|
|
2
|
+
var o = (r) => {
|
|
3
3
|
try {
|
|
4
4
|
a(s.next(r));
|
|
5
5
|
} catch (l) {
|
|
@@ -11,13 +11,12 @@ var f = (t, e, s) => new Promise((o, i) => {
|
|
|
11
11
|
} catch (l) {
|
|
12
12
|
i(l);
|
|
13
13
|
}
|
|
14
|
-
}, a = (r) => r.done ?
|
|
14
|
+
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(o, g);
|
|
15
15
|
a((s = s.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import {
|
|
18
|
-
import v from "
|
|
19
|
-
|
|
20
|
-
function m(t, e) {
|
|
17
|
+
import { _ as m } from "../chunks/ResizeObserver.60f728f0.mjs";
|
|
18
|
+
import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
19
|
+
function x(t, e) {
|
|
21
20
|
for (let s = 0; s < e.length; s++)
|
|
22
21
|
if (t === e[s])
|
|
23
22
|
return !0;
|
|
@@ -29,30 +28,30 @@ const h = function() {
|
|
|
29
28
|
} : function(t, e, s) {
|
|
30
29
|
t && e && s && t.attachEvent(`on${e}`, s);
|
|
31
30
|
};
|
|
32
|
-
}(),
|
|
31
|
+
}(), u = function() {
|
|
33
32
|
return document.removeEventListener ? function(t, e, s) {
|
|
34
33
|
t && e && t.removeEventListener(e, s, !1);
|
|
35
34
|
} : function(t, e, s) {
|
|
36
35
|
t && e && t.detachEvent(`on${e}`, s);
|
|
37
36
|
};
|
|
38
37
|
}();
|
|
39
|
-
var
|
|
38
|
+
var _ = function() {
|
|
40
39
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
41
40
|
return s("div", {
|
|
42
41
|
class: t.classes
|
|
43
42
|
}, [t.showIcon ? s("div", {
|
|
44
43
|
class: t.barConClasses
|
|
45
44
|
}, t._m(0), 0) : t._e()]);
|
|
46
|
-
},
|
|
45
|
+
}, $ = [function() {
|
|
47
46
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
48
|
-
return t._l(8, function(
|
|
47
|
+
return t._l(8, function(n) {
|
|
49
48
|
return s("i", {
|
|
50
|
-
key: `trigger-${
|
|
49
|
+
key: `trigger-${n}`,
|
|
51
50
|
class: `${t.prefix}-bar`
|
|
52
51
|
});
|
|
53
52
|
});
|
|
54
53
|
}];
|
|
55
|
-
const
|
|
54
|
+
const M = {
|
|
56
55
|
name: "Trigger",
|
|
57
56
|
props: {
|
|
58
57
|
mode: String,
|
|
@@ -82,25 +81,25 @@ const $ = {
|
|
|
82
81
|
return [`${this.prefix}-bar-con`, this.isVertical ? "vertical" : "horizontal"];
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
},
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
x,
|
|
84
|
+
}, p = {};
|
|
85
|
+
var z = /* @__PURE__ */ v(
|
|
86
|
+
M,
|
|
89
87
|
_,
|
|
88
|
+
$,
|
|
90
89
|
!1,
|
|
91
|
-
|
|
90
|
+
S,
|
|
92
91
|
null,
|
|
93
92
|
null,
|
|
94
93
|
null
|
|
95
94
|
);
|
|
96
|
-
function
|
|
97
|
-
for (let e in
|
|
98
|
-
this[e] =
|
|
95
|
+
function S(t) {
|
|
96
|
+
for (let e in p)
|
|
97
|
+
this[e] = p[e];
|
|
99
98
|
}
|
|
100
|
-
const
|
|
101
|
-
return
|
|
99
|
+
const c = /* @__PURE__ */ function() {
|
|
100
|
+
return z.exports;
|
|
102
101
|
}();
|
|
103
|
-
var
|
|
102
|
+
var w = function() {
|
|
104
103
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
105
104
|
return s("div", {
|
|
106
105
|
ref: "outerWrapper",
|
|
@@ -127,7 +126,7 @@ var S = function() {
|
|
|
127
126
|
mousedown: t.handleMousedown
|
|
128
127
|
}
|
|
129
128
|
}, [t._t("trigger", function() {
|
|
130
|
-
return [s(
|
|
129
|
+
return [s(c, {
|
|
131
130
|
attrs: {
|
|
132
131
|
mode: "vertical"
|
|
133
132
|
}
|
|
@@ -154,7 +153,7 @@ var S = function() {
|
|
|
154
153
|
mousedown: t.handleMousedown
|
|
155
154
|
}
|
|
156
155
|
}, [t._t("trigger", function() {
|
|
157
|
-
return [s(
|
|
156
|
+
return [s(c, {
|
|
158
157
|
attrs: {
|
|
159
158
|
mode: "horizontal"
|
|
160
159
|
}
|
|
@@ -164,18 +163,14 @@ var S = function() {
|
|
|
164
163
|
style: {
|
|
165
164
|
top: `calc(${t.offset}% + ${t.triggerSize}px)`
|
|
166
165
|
}
|
|
167
|
-
}, [t._t("bottom")], 2)]), s(
|
|
166
|
+
}, [t._t("bottom")], 2)]), s(m, {
|
|
168
167
|
on: {
|
|
169
168
|
notify: t.resetOffset
|
|
170
169
|
}
|
|
171
170
|
})], 1);
|
|
172
|
-
},
|
|
171
|
+
}, O = [];
|
|
173
172
|
const y = {
|
|
174
173
|
name: "SplitPane",
|
|
175
|
-
components: {
|
|
176
|
-
Trigger: O,
|
|
177
|
-
ResizeObserver: v
|
|
178
|
-
},
|
|
179
174
|
props: {
|
|
180
175
|
value: {
|
|
181
176
|
type: [Number, String],
|
|
@@ -183,7 +178,7 @@ const y = {
|
|
|
183
178
|
},
|
|
184
179
|
mode: {
|
|
185
180
|
validator(t) {
|
|
186
|
-
return
|
|
181
|
+
return x(t, ["horizontal", "vertical"]);
|
|
187
182
|
},
|
|
188
183
|
default: "horizontal"
|
|
189
184
|
},
|
|
@@ -268,23 +263,23 @@ const y = {
|
|
|
268
263
|
return this.valueIsPx ? e = `${this.$refs.outerWrapper[this.offsetSize] - parseFloat(t)}px` : e = 1 - t, e;
|
|
269
264
|
},
|
|
270
265
|
handleMove(t) {
|
|
271
|
-
const s = (this.isHorizontal ? t.pageX : t.pageY) - this.initOffset,
|
|
272
|
-
let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(
|
|
273
|
-
const
|
|
274
|
-
parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(
|
|
266
|
+
const s = (this.isHorizontal ? t.pageX : t.pageY) - this.initOffset, n = this.$refs.outerWrapper[this.offsetSize];
|
|
267
|
+
let i = this.valueIsPx ? `${parseFloat(this.oldOffset) + s}px` : this.px2percent(n * this.oldOffset + s, n);
|
|
268
|
+
const o = this.getAnotherOffset(i);
|
|
269
|
+
parseFloat(i) <= parseFloat(this.computedMin) && (i = this.getMax(i, this.computedMin)), parseFloat(o) <= parseFloat(this.computedMax) && (i = this.getAnotherOffset(this.getMax(o, this.computedMax))), t.atMin = this.value === this.computedMin, t.atMax = this.valueIsPx ? this.getAnotherOffset(this.value) === this.computedMax : this.getAnotherOffset(this.value).toFixed(5) === this.computedMax.toFixed(5), this.$emit("input", i), this.$emit("on-moving", t);
|
|
275
270
|
},
|
|
276
271
|
handleUp() {
|
|
277
|
-
this.isMoving = !1,
|
|
272
|
+
this.isMoving = !1, u(window, "mousemove", this.handleMove), u(window, "mouseup", this.handleUp), this.$emit("on-move-end");
|
|
278
273
|
},
|
|
279
274
|
handleMousedown(t) {
|
|
280
275
|
this.initOffset = this.isHorizontal ? t.pageX : t.pageY, this.oldOffset = this.value, this.isMoving = !0, h(window, "mousemove", this.handleMove), h(window, "mouseup", this.handleUp), this.$emit("on-move-start");
|
|
281
276
|
}
|
|
282
277
|
}
|
|
283
|
-
},
|
|
284
|
-
var F = /* @__PURE__ */
|
|
278
|
+
}, d = {};
|
|
279
|
+
var F = /* @__PURE__ */ v(
|
|
285
280
|
y,
|
|
286
|
-
S,
|
|
287
281
|
w,
|
|
282
|
+
O,
|
|
288
283
|
!1,
|
|
289
284
|
b,
|
|
290
285
|
null,
|
|
@@ -292,12 +287,12 @@ var F = /* @__PURE__ */ d(
|
|
|
292
287
|
null
|
|
293
288
|
);
|
|
294
289
|
function b(t) {
|
|
295
|
-
for (let e in
|
|
296
|
-
this[e] =
|
|
290
|
+
for (let e in d)
|
|
291
|
+
this[e] = d[e];
|
|
297
292
|
}
|
|
298
|
-
const
|
|
293
|
+
const E = /* @__PURE__ */ function() {
|
|
299
294
|
return F.exports;
|
|
300
295
|
}();
|
|
301
296
|
export {
|
|
302
|
-
|
|
297
|
+
E as default
|
|
303
298
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { chunk as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { chunk as s } from "@web-utils/integrations/lodash";
|
|
2
|
+
import o from "element-ui/lib/pagination";
|
|
3
|
+
import i from "element-ui/lib/table";
|
|
4
|
+
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
+
var p = function() {
|
|
4
6
|
var e = this, t = e.$createElement, a = e._self._c || t;
|
|
5
7
|
return a("div", {
|
|
6
8
|
staticClass: "static-pageable-table"
|
|
7
|
-
}, [a(
|
|
9
|
+
}, [a(i, e._g(e._b({
|
|
8
10
|
attrs: {
|
|
9
11
|
size: "mini",
|
|
10
12
|
data: e.records
|
|
11
13
|
}
|
|
12
14
|
}, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
|
|
13
15
|
return [e._v("请添加表格列")];
|
|
14
|
-
})], 2), a(
|
|
16
|
+
})], 2), a(o, {
|
|
15
17
|
attrs: {
|
|
16
18
|
"current-page": e.page.page,
|
|
17
19
|
"hide-on-single-page": !0,
|
|
@@ -21,13 +23,13 @@ var o = function() {
|
|
|
21
23
|
layout: "total, prev, pager, next"
|
|
22
24
|
},
|
|
23
25
|
on: {
|
|
24
|
-
"current-change": function(
|
|
25
|
-
e.page.page =
|
|
26
|
+
"current-change": function(n) {
|
|
27
|
+
e.page.page = n;
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
})], 1);
|
|
29
|
-
},
|
|
30
|
-
const
|
|
31
|
+
}, c = [];
|
|
32
|
+
const _ = {
|
|
31
33
|
name: "StaticPageableTable",
|
|
32
34
|
props: {
|
|
33
35
|
rows: {
|
|
@@ -66,27 +68,27 @@ const c = {
|
|
|
66
68
|
},
|
|
67
69
|
methods: {
|
|
68
70
|
fetchData() {
|
|
69
|
-
this.records =
|
|
71
|
+
this.records = s(this.rows, this.page.limit)[this.page.page - 1];
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
}, r = {};
|
|
73
|
-
var
|
|
75
|
+
var g = /* @__PURE__ */ l(
|
|
76
|
+
_,
|
|
77
|
+
p,
|
|
74
78
|
c,
|
|
75
|
-
o,
|
|
76
|
-
l,
|
|
77
79
|
!1,
|
|
78
|
-
|
|
80
|
+
u,
|
|
79
81
|
null,
|
|
80
82
|
null,
|
|
81
83
|
null
|
|
82
84
|
);
|
|
83
|
-
function
|
|
85
|
+
function u(e) {
|
|
84
86
|
for (let t in r)
|
|
85
87
|
this[t] = r[t];
|
|
86
88
|
}
|
|
87
|
-
const
|
|
88
|
-
return
|
|
89
|
+
const v = /* @__PURE__ */ function() {
|
|
90
|
+
return g.exports;
|
|
89
91
|
}();
|
|
90
92
|
export {
|
|
91
|
-
|
|
93
|
+
v as default
|
|
92
94
|
};
|
package/swiper/index.mjs
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
var h = (t, e, s) => new Promise((i, r) => {
|
|
2
|
-
var
|
|
2
|
+
var c = (n) => {
|
|
3
3
|
try {
|
|
4
4
|
a(s.next(n));
|
|
5
5
|
} catch (o) {
|
|
6
6
|
r(o);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, u = (n) => {
|
|
9
9
|
try {
|
|
10
10
|
a(s.throw(n));
|
|
11
11
|
} catch (o) {
|
|
12
12
|
r(o);
|
|
13
13
|
}
|
|
14
|
-
}, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(
|
|
14
|
+
}, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(c, u);
|
|
15
15
|
a((s = s.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { getEleWidth as
|
|
18
|
-
import
|
|
17
|
+
import { getEleWidth as p } from "@web-utils/core";
|
|
18
|
+
import f from "@web-utils/component/resize-observer";
|
|
19
19
|
import "@web-utils/component/resize-observer/style.css";
|
|
20
|
-
import {
|
|
21
|
-
|
|
20
|
+
import { _ as w } from "../chunks/ResizeObserver.60f728f0.mjs";
|
|
21
|
+
import l from "element-ui/lib/button";
|
|
22
|
+
import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
23
|
+
var _ = function() {
|
|
22
24
|
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
23
25
|
return s("div", {
|
|
24
26
|
staticClass: "egd-swiper"
|
|
25
|
-
}, [s(
|
|
27
|
+
}, [s(l, {
|
|
26
28
|
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
|
27
29
|
attrs: {
|
|
28
30
|
disabled: t.reachedLeft,
|
|
@@ -43,7 +45,7 @@ var w = function() {
|
|
|
43
45
|
ref: "swiperContent",
|
|
44
46
|
staticClass: "egd-swiper-content",
|
|
45
47
|
style: t.swiperContentStyle
|
|
46
|
-
}, [t._t("default")], 2)]), s(
|
|
48
|
+
}, [t._t("default")], 2)]), s(l, {
|
|
47
49
|
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
|
48
50
|
attrs: {
|
|
49
51
|
disabled: t.reachedRight,
|
|
@@ -52,16 +54,16 @@ var w = function() {
|
|
|
52
54
|
on: {
|
|
53
55
|
click: t.clickRight
|
|
54
56
|
}
|
|
55
|
-
}), s(
|
|
57
|
+
}), s(w, {
|
|
56
58
|
on: {
|
|
57
59
|
notify: t.resize
|
|
58
60
|
}
|
|
59
61
|
})], 1);
|
|
60
|
-
},
|
|
61
|
-
const
|
|
62
|
+
}, v = [];
|
|
63
|
+
const X = {
|
|
62
64
|
name: "Swiper",
|
|
63
65
|
components: {
|
|
64
|
-
ResizeObserver:
|
|
66
|
+
ResizeObserver: f
|
|
65
67
|
},
|
|
66
68
|
data() {
|
|
67
69
|
return {
|
|
@@ -99,7 +101,7 @@ const v = {
|
|
|
99
101
|
let t = 0;
|
|
100
102
|
const e = [], { children: s } = this.$refs.swiperContent;
|
|
101
103
|
Array.prototype.forEach.call(s, (i) => {
|
|
102
|
-
const r =
|
|
104
|
+
const r = p(i);
|
|
103
105
|
t += r, e.push(r);
|
|
104
106
|
}), this.childrenWidth = e, this.swiperContentWidth = t;
|
|
105
107
|
},
|
|
@@ -160,24 +162,24 @@ const v = {
|
|
|
160
162
|
this.updateDuration(!1), this.$refs.swiperContent.removeEventListener("transitionend", this.transitionend), this.$refs.swiperContent.removeEventListener("webkitTransitionEnd", this.transitionend);
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
|
-
},
|
|
164
|
-
var
|
|
165
|
+
}, d = {};
|
|
166
|
+
var W = /* @__PURE__ */ m(
|
|
167
|
+
X,
|
|
168
|
+
_,
|
|
165
169
|
v,
|
|
166
|
-
w,
|
|
167
|
-
m,
|
|
168
170
|
!1,
|
|
169
|
-
|
|
171
|
+
C,
|
|
170
172
|
null,
|
|
171
173
|
null,
|
|
172
174
|
null
|
|
173
175
|
);
|
|
174
|
-
function
|
|
175
|
-
for (let e in
|
|
176
|
-
this[e] =
|
|
176
|
+
function C(t) {
|
|
177
|
+
for (let e in d)
|
|
178
|
+
this[e] = d[e];
|
|
177
179
|
}
|
|
178
|
-
const
|
|
179
|
-
return
|
|
180
|
+
const k = /* @__PURE__ */ function() {
|
|
181
|
+
return W.exports;
|
|
180
182
|
}();
|
|
181
183
|
export {
|
|
182
|
-
|
|
184
|
+
k as default
|
|
183
185
|
};
|