@web-utils/component 4.0.13 → 4.0.15
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 +15 -13
- package/card/index.mjs +20 -18
- package/carousel/index.mjs +12 -10
- package/chat/index.mjs +56 -45
- package/chunk-file-uploader/index.mjs +378 -36
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
- package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
- package/chunks/FyForm.DriwCJ7b.mjs +765 -0
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
- package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
- package/chunks/TableColumn.BzivvXMF.mjs +337 -0
- package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
- package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
- package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
- package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
- package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
- package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
- package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
- package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
- package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
- package/color-picker/index.mjs +101 -22
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +15 -12
- package/data-card/index.mjs +12 -10
- package/data-card-text/index.mjs +12 -10
- package/data-display/index.mjs +17 -15
- package/data-icons/index.mjs +16 -13
- package/data-imgtext/index.mjs +18 -15
- package/data-operatext/index.mjs +16 -14
- package/data-panel/index.mjs +16 -13
- package/data-pay/index.mjs +20 -16
- package/data-price/index.mjs +16 -14
- package/data-progress/index.mjs +17 -13
- package/data-rotate/index.mjs +15 -12
- package/data-table-picker/index.mjs +18 -15
- package/data-tabs/index.mjs +15 -12
- package/dialog-form/index.mjs +18 -16
- package/dynamic-table/index.mjs +30 -25
- package/editable-progress/index.mjs +11 -9
- package/editable-tree/index.mjs +56 -52
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +23 -22
- 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 +11 -10
- package/flow-designer/index.mjs +1973 -699
- 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 +34 -32
- package/form-cascader/index.mjs +24 -23
- package/form-checkbox/index.mjs +17 -16
- package/form-checkbox-group/index.mjs +23 -20
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +20 -18
- package/form-holder/index.mjs +14 -13
- package/form-input/index.mjs +15 -14
- package/form-input-cron-expression/index.mjs +22 -19
- package/form-input-email/index.mjs +16 -15
- package/form-input-id-card/index.mjs +13 -12
- package/form-input-number/index.mjs +17 -16
- package/form-input-phone-number/index.mjs +22 -21
- package/form-input-tag/index.mjs +15 -14
- package/form-input-time/index.mjs +15 -14
- package/form-item/index.mjs +3 -140
- package/form-item-group/index.mjs +31 -28
- package/form-radio-group/index.mjs +28 -27
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +23 -21
- package/form-switch/index.mjs +17 -16
- package/form-table/index.mjs +17 -16
- package/form-table-plus/index.mjs +22 -21
- package/form-textarea/index.mjs +16 -15
- package/form-tree-select/index.mjs +15 -14
- package/form-tree-select-multiple/index.mjs +15 -14
- package/form-view/index.mjs +39 -35
- package/fy-array/index.mjs +37 -33
- package/fy-cascader/index.mjs +17 -16
- package/fy-checkbox/index.mjs +13 -11
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1147 -1123
- package/fy-date/index.mjs +11 -10
- package/fy-draggable/index.mjs +10 -9
- package/fy-dynamic/index.mjs +25 -22
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +15 -638
- package/fy-form-design/index.mjs +1165 -1127
- package/fy-input/index.mjs +14 -12
- package/fy-input-color/index.mjs +15 -13
- package/fy-input-icon/index.mjs +23 -20
- package/fy-input-map/index.mjs +31 -28
- package/fy-input-number/index.mjs +10 -9
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +37 -33
- package/fy-progress/index.mjs +10 -9
- package/fy-radio/index.mjs +16 -15
- package/fy-rate/index.mjs +11 -10
- package/fy-select/index.mjs +29 -25
- package/fy-slider/index.mjs +12 -11
- package/fy-switch/index.mjs +10 -9
- package/fy-tabs/index.mjs +17 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +24 -18
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +13 -11
- package/iframe-window/index.mjs +10 -9
- package/image-cropper/index.mjs +30 -28
- package/image-preview/index.mjs +14 -12
- package/index.mjs +72 -72
- package/input-number/index.mjs +14 -13
- package/input-number-range/index.mjs +12 -11
- package/license/index.mjs +1 -1
- package/login/index.mjs +26 -21
- package/nav-bar/index.mjs +10 -9
- package/notice/index.mjs +10 -9
- package/package.json +1 -1
- package/page-index/index.mjs +13 -12
- package/page-index-top/index.mjs +28 -23
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +9 -8
- package/pageable-table/index.mjs +182 -172
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +16 -15
- package/picker-table-view/index.mjs +58 -49
- package/present-view/index.mjs +39 -35
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +22 -20
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +10 -9
- package/split-pane/index.mjs +37 -36
- package/static-pageable-table/index.mjs +13 -11
- package/sub-table/index.mjs +49 -36
- package/sub-table-plus/index.mjs +18 -229
- package/swiper/index.mjs +12 -11
- package/table-column/index.mjs +3 -223
- package/table-view/index.mjs +60 -52
- package/tabs-view/index.mjs +19 -17
- package/tag-render/index.mjs +18 -16
- package/text-ellipsis/index.mjs +10 -9
- package/toolbar/index.mjs +14 -13
- package/toolbar-button/index.mjs +14 -13
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +267 -259
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -21
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import r from "element-ui/lib/pagination";
|
|
2
|
+
import s from "element-ui/lib/table";
|
|
3
|
+
import { chunk as o } from "@web-utils/integrations/lodash";
|
|
4
|
+
import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
5
|
const i = {
|
|
4
6
|
name: "StaticPageableTable",
|
|
5
7
|
props: {
|
|
@@ -39,26 +41,26 @@ const i = {
|
|
|
39
41
|
},
|
|
40
42
|
methods: {
|
|
41
43
|
fetchData() {
|
|
42
|
-
this.records =
|
|
44
|
+
this.records = o(this.rows, this.page.limit)[this.page.page - 1];
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
};
|
|
46
|
-
var
|
|
48
|
+
var p = function() {
|
|
47
49
|
var e = this, t = e._self._c;
|
|
48
|
-
return t("div", { staticClass: "static-pageable-table" }, [t(
|
|
50
|
+
return t("div", { staticClass: "static-pageable-table" }, [t(s, e._g(e._b({ attrs: { size: "mini", data: e.records } }, "ElTable", e.$attrs, !1), e.$listeners), [e._t("default", function() {
|
|
49
51
|
return [e._v("请添加表格列")];
|
|
50
|
-
})], 2), t(
|
|
52
|
+
})], 2), t(r, { attrs: { "current-page": e.page.page, "hide-on-single-page": !0, "page-size": e.page.limit, total: e.page.total, background: "", layout: "total, prev, pager, next" }, on: { "current-change": (a) => {
|
|
51
53
|
e.page.page = a;
|
|
52
54
|
} } })], 1);
|
|
53
|
-
},
|
|
55
|
+
}, l = [], g = /* @__PURE__ */ n(
|
|
54
56
|
i,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
p,
|
|
58
|
+
l,
|
|
57
59
|
!1,
|
|
58
60
|
null,
|
|
59
61
|
null
|
|
60
62
|
);
|
|
61
|
-
const
|
|
63
|
+
const d = g.exports;
|
|
62
64
|
export {
|
|
63
|
-
|
|
65
|
+
d as default
|
|
64
66
|
};
|
package/sub-table/index.mjs
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import d from "../confirmable/index.mjs";
|
|
2
|
+
import { T as u, _ as b } from "../chunks/TableColumn.BzivvXMF.mjs";
|
|
3
|
+
import c from "../form-textarea/index.mjs";
|
|
4
|
+
import f from "../form-input-number/index.mjs";
|
|
5
|
+
import h from "../form-checkbox-group/index.mjs";
|
|
6
|
+
import y from "../form-cascader/index.mjs";
|
|
7
|
+
import g from "../form-date-picker/index.mjs";
|
|
8
|
+
import _ from "../form-select/index.mjs";
|
|
9
|
+
import v from "../form-input-phone-number/index.mjs";
|
|
10
|
+
import I from "../form-input/index.mjs";
|
|
11
|
+
import i from "element-ui/lib/button";
|
|
12
|
+
import $ from "../confirm-button/index.mjs";
|
|
13
|
+
import C from "../pageable-table/index.mjs";
|
|
14
|
+
import { findTreeChildren as F, isFunction as A } from "@web-utils/core";
|
|
15
|
+
import { cloneDeep as D } from "@web-utils/integrations/lodash";
|
|
16
|
+
import { n as T } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
17
|
+
const q = {
|
|
5
18
|
name: "SubTable",
|
|
6
19
|
emits: ["add-row"],
|
|
7
20
|
inject: {
|
|
@@ -85,7 +98,7 @@ const c = {
|
|
|
85
98
|
},
|
|
86
99
|
methods: {
|
|
87
100
|
getCellType(n, e) {
|
|
88
|
-
return
|
|
101
|
+
return A(e.getType) ? e.getType(n, e) : e.type;
|
|
89
102
|
},
|
|
90
103
|
getInputAttr(n, e) {
|
|
91
104
|
return { ...e.attrs, ...e.getAttrs ? e.getAttrs(n) : {} };
|
|
@@ -106,7 +119,7 @@ const c = {
|
|
|
106
119
|
}
|
|
107
120
|
},
|
|
108
121
|
add(n, e) {
|
|
109
|
-
const a =
|
|
122
|
+
const a = D(this.rowProps);
|
|
110
123
|
this.rows.splice(e + 1, 0, a);
|
|
111
124
|
},
|
|
112
125
|
addRow() {
|
|
@@ -139,24 +152,24 @@ const c = {
|
|
|
139
152
|
getVal(n, e, a) {
|
|
140
153
|
var t, r;
|
|
141
154
|
if (a.type === "select" && ((t = a.attrs) != null && t.options)) {
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
return
|
|
155
|
+
const p = a.attrs.options.find((s) => s.code === n[e.property]);
|
|
156
|
+
if (p)
|
|
157
|
+
return p.name;
|
|
145
158
|
}
|
|
146
159
|
if (a.type === "cascader" && ((r = a.attrs) != null && r.options)) {
|
|
147
|
-
const [
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
160
|
+
const [p] = F(a.attrs.options, (s) => s[a.attrs.valueKey || "value"] === n[e.property]);
|
|
161
|
+
if (p)
|
|
162
|
+
return p[a.attrs.valueKey || "label"];
|
|
150
163
|
}
|
|
151
164
|
return n[e.property];
|
|
152
165
|
}
|
|
153
166
|
}
|
|
154
167
|
};
|
|
155
|
-
var
|
|
168
|
+
var k = function() {
|
|
156
169
|
var e = this, a = e._self._c;
|
|
157
|
-
return a(
|
|
170
|
+
return a(C, e._g(e._b({ ref: "table", staticClass: "sub-table", attrs: { "auto-height": "", data: e.rows, api: e.fetchApi, "show-summary": e.showSummary, "selection-width": e.selectionWidth, "hide-on-single-page": "", selection: e.enabled }, on: { "selection-change": e.onSelectionChange }, scopedSlots: e._u([e.editable ? null : { key: "toolbar", fn: function() {
|
|
158
171
|
return [e.enabled || e.fetchApi ? a("div", { staticClass: "table-header" }, [e._t("toolbar", function() {
|
|
159
|
-
return [e.enabled ? [a(
|
|
172
|
+
return [e.enabled ? [a(i, { staticClass: "table-header-button add", attrs: { size: "mini", icon: "el-icon-circle-plus", type: "text" }, on: { click: e.addRow } }, [e._v("添加")]), a($, { staticClass: "table-header-button remove", attrs: { size: "mini", message: "您确定要删除选中的记录吗?", icon: "el-icon-error", type: "text" }, on: { click: e.delRow } }, [e._v(" 删除 ")])] : e._e(), e.fetchApi ? a(i, { staticClass: "table-header-button refresh", attrs: { size: "mini", icon: "el-icon-refresh-left", type: "text", disabled: !1 }, on: { click: e.refresh } }, [e._v(" 刷新 ")]) : e._e()];
|
|
160
173
|
}, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh })], 2) : e._e()];
|
|
161
174
|
}, proxy: !0 }, e.allowEmpty && !e.inputDisabled && e.showEmptyAddButton ? { key: "empty", fn: function() {
|
|
162
175
|
return [a("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(t) {
|
|
@@ -164,43 +177,43 @@ var h = function() {
|
|
|
164
177
|
} } })];
|
|
165
178
|
}, proxy: !0 } : null], null, !0) }, "PageableTable", e.$attrs, !1), e.$listeners), [e._t("columns", function() {
|
|
166
179
|
return [e._l(e.columns, function(t) {
|
|
167
|
-
return [t.label && !t.hide && !t.slot ? a(
|
|
180
|
+
return [t.label && !t.hide && !t.slot ? a(u, { key: `${t.prop}-${e.enabled}-${t.type}`, attrs: { label: t.label, width: t.width, align: t.align, prop: t.prop, options: t.options, "show-overflow-tooltip": !e.available && t.showOverflowTooltip }, scopedSlots: e._u([{ key: "header", fn: function() {
|
|
168
181
|
return [!e.inputDisabled && t.required ? a("span", { staticStyle: { color: "#f56c6c" } }, [e._v("*")]) : e._e(), e._v(" " + e._s(t.label) + " ")];
|
|
169
|
-
}, proxy: !0 }, { key: "default", fn: function({ row: r, column:
|
|
170
|
-
return [e._t("tag", null, { row: r, column:
|
|
182
|
+
}, proxy: !0 }, { key: "default", fn: function({ row: r, column: p, $index: s }) {
|
|
183
|
+
return [e._t("tag", null, { row: r, column: p, index: s }), e._t(t.prop, function() {
|
|
171
184
|
var o;
|
|
172
|
-
return [e.available && e.getCellType(r, t) === "input" ? [a(
|
|
173
|
-
return e.$set(r,
|
|
174
|
-
}, input: (l) => e.onInput(r, l, t) } }, "FormInputUser", e.getInputAttr(r, t), !1)) : a("FormInputUser", e._b({ attrs: { value: r[
|
|
175
|
-
return e.$set(r,
|
|
176
|
-
}, input: (l) => e.onInput(r, l, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1)) : a("FormInputDepartment", e._b({ attrs: { value: r[
|
|
185
|
+
return [e.available && e.getCellType(r, t) === "input" ? [a(I, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInput", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "inputPhoneNumber" ? [a(v, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputPhoneNumber", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "user" ? [t.single ? a("FormInputUser", e._b({ attrs: { name: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { "update:name": function(l) {
|
|
186
|
+
return e.$set(r, p.property, l);
|
|
187
|
+
}, input: (l) => e.onInput(r, l, t) } }, "FormInputUser", e.getInputAttr(r, t), !1)) : a("FormInputUser", e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputUser", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "department" ? [t.single ? a("FormInputDepartment", e._b({ attrs: { "ou-type": t.ouType, name: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { "update:name": function(l) {
|
|
188
|
+
return e.$set(r, p.property, l);
|
|
189
|
+
}, input: (l) => e.onInput(r, l, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1)) : a("FormInputDepartment", e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "select" ? [a(_, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, options: t.options, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormSelect", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "datePicker" ? [a(g, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required, start: r[t.start], end: r[t.end] }, on: { "update:start": function(l) {
|
|
177
190
|
return e.$set(r, t.start, l);
|
|
178
191
|
}, "update:end": function(l) {
|
|
179
192
|
return e.$set(r, t.end, l);
|
|
180
|
-
}, input: (l) => e.onInput(r, l, t) } }, "FormDatePicker", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "cascader" ? [a(
|
|
181
|
-
}, { row: r, column:
|
|
193
|
+
}, input: (l) => e.onInput(r, l, t) } }, "FormDatePicker", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "cascader" ? [a(y, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required, "label-key": t.labelKey, "value-key": t.valueKey }, on: { input: (l) => e.onInput(r, l, t) } }, "FormCascader", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "checkbox" ? [a(h, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormCheckboxGroup", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "number" ? [a(f, e._b({ attrs: { value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormInputNumber", e.getInputAttr(r, t), !1))] : e.available && e.getCellType(r, t) === "textarea" ? [a(c, e._b({ attrs: { rows: t.rows || "3", value: r[p.property], disabled: e.isInputDisabled(r, t), prop: `${e.prop}[${s}].${t.prop}`, required: t.required }, on: { input: (l) => e.onInput(r, l, t) } }, "FormTextarea", e.getInputAttr(r, t), !1))] : t.dicType || (o = t.options) != null && o.length ? [a(b, { attrs: { "dict-type": t.dicType, "id-as-value": t.idAsValue, "label-as-value": t.labelAsValue, column: p, row: r, options: t.options } })] : [e._v(e._s(e.getVal(r, p, t)))]];
|
|
194
|
+
}, { row: r, column: p, index: s })];
|
|
182
195
|
} }], null, !0) }) : t.slot ? e._t("default") : e._e()];
|
|
183
196
|
})];
|
|
184
|
-
}, { columns: e.columns }), e._t("handle", null, { add: e.add, remove: e.remove }), (!e.value || e.value.length < e.limit) && !e.inputDisabled && e.enabled && e.editable && e.handleColumn ? a(
|
|
197
|
+
}, { columns: e.columns }), e._t("handle", null, { add: e.add, remove: e.remove }), (!e.value || e.value.length < e.limit) && !e.inputDisabled && e.enabled && e.editable && e.handleColumn ? a(u, { attrs: { label: "操作", fixed: "right", width: "80", align: "center", prop: "menu" }, scopedSlots: e._u([{ key: "header", fn: function({ column: t, $index: r }) {
|
|
185
198
|
return [e._t("handle-column-header", function() {
|
|
186
199
|
return [e._v(" " + e._s(t.label) + " ")];
|
|
187
200
|
}, { column: t, index: r })];
|
|
188
201
|
} }, { key: "default", fn: function({ row: t, $index: r }) {
|
|
189
|
-
return [e.showHandleColumnAddButton && e.value.length < e.maxLimit ? a("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "margin-right": "5px", "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(
|
|
190
|
-
return
|
|
191
|
-
} } }) : e._e(), e.value && e.value.length > 1 || e.allowEmpty ? a(
|
|
192
|
-
return
|
|
202
|
+
return [e.showHandleColumnAddButton && e.value.length < e.maxLimit ? a("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "margin-right": "5px", "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(p) {
|
|
203
|
+
return p.stopPropagation(), e.add(t, r);
|
|
204
|
+
} } }) : e._e(), e.value && e.value.length > 1 || e.allowEmpty ? a(d, { staticClass: "el-icon-error sub-table-handle-button table-button-remove", attrs: { title: "删除", message: "您确定要删除该行吗?" }, on: { click: function(p) {
|
|
205
|
+
return p.stopPropagation(), e.remove(t, r);
|
|
193
206
|
} } }) : e._e()];
|
|
194
207
|
} }], null, !0) }) : e._e()], 2);
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
208
|
+
}, S = [], R = /* @__PURE__ */ T(
|
|
209
|
+
q,
|
|
210
|
+
k,
|
|
211
|
+
S,
|
|
199
212
|
!1,
|
|
200
213
|
null,
|
|
201
214
|
null
|
|
202
215
|
);
|
|
203
|
-
const
|
|
216
|
+
const J = R.exports;
|
|
204
217
|
export {
|
|
205
|
-
|
|
218
|
+
J as default
|
|
206
219
|
};
|
package/sub-table-plus/index.mjs
CHANGED
|
@@ -1,231 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
showMessage: Boolean,
|
|
19
|
-
pageSize: Number
|
|
20
|
-
},
|
|
21
|
-
data() {
|
|
22
|
-
return {
|
|
23
|
-
rows: [],
|
|
24
|
-
selectedRows: []
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
computed: {
|
|
28
|
-
enabled() {
|
|
29
|
-
return !this.inputDisabled;
|
|
30
|
-
},
|
|
31
|
-
hasToolBarMenu() {
|
|
32
|
-
var s;
|
|
33
|
-
return (s = this.toolbarMenus) == null ? void 0 : s.length;
|
|
34
|
-
},
|
|
35
|
-
hasHandleMenus() {
|
|
36
|
-
var s;
|
|
37
|
-
return (s = this.handleMenus) == null ? void 0 : s.length;
|
|
38
|
-
},
|
|
39
|
-
rowProps() {
|
|
40
|
-
const s = {};
|
|
41
|
-
return this.columns && this.columns.map((e) => e.prop).forEach((e) => {
|
|
42
|
-
s[e] = null;
|
|
43
|
-
}), s;
|
|
44
|
-
},
|
|
45
|
-
inputDisabled() {
|
|
46
|
-
return this.disabled || (this.elForm || {}).disabled;
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
watch: {
|
|
50
|
-
value: {
|
|
51
|
-
deep: !0,
|
|
52
|
-
immediate: !0,
|
|
53
|
-
handler(s) {
|
|
54
|
-
this.rows = s || [];
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
rows: {
|
|
58
|
-
deep: !0,
|
|
59
|
-
immediate: !0,
|
|
60
|
-
handler(s) {
|
|
61
|
-
this.$emit("input", s);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
methods: {
|
|
66
|
-
getCellType(s, e) {
|
|
67
|
-
return c(e.getType) ? e.getType(s, e) : e.type;
|
|
68
|
-
},
|
|
69
|
-
getInputAttr(s, e) {
|
|
70
|
-
return e.attrs && e.getAttrs ? { ...e.attrs, ...e.getAttrs(s) } : e.attrs ? e.attrs : e.getAttrs ? e.getAttrs(s) : {};
|
|
71
|
-
},
|
|
72
|
-
isInputDisabled(s, e) {
|
|
73
|
-
var l;
|
|
74
|
-
return (l = e.isDisabled) == null ? void 0 : l.call(e, s);
|
|
75
|
-
},
|
|
76
|
-
onInput(s, e, l) {
|
|
77
|
-
l.setValue ? l.setValue(s, e, l, this.rows) : l.setVal !== !1 && (s[l.prop] = e);
|
|
78
|
-
},
|
|
79
|
-
onBlur(s, e) {
|
|
80
|
-
e.onBlur && e.onBlur(s, e, this.rows);
|
|
81
|
-
},
|
|
82
|
-
onSelectionChange(s) {
|
|
83
|
-
this.selectedRows = s;
|
|
84
|
-
},
|
|
85
|
-
async remove(s, e) {
|
|
86
|
-
try {
|
|
87
|
-
if (this.delApi)
|
|
88
|
-
try {
|
|
89
|
-
await this.delApi([s.id]), this.$message.success("删除成功!"), this.refresh();
|
|
90
|
-
} catch {
|
|
91
|
-
this.$message.error("删除失败!");
|
|
92
|
-
}
|
|
93
|
-
else
|
|
94
|
-
this.rows.splice(e, 1);
|
|
95
|
-
} catch {
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
async add(s, e) {
|
|
99
|
-
var l;
|
|
100
|
-
if (this.fetchApi)
|
|
101
|
-
this.addRow();
|
|
102
|
-
else {
|
|
103
|
-
const o = b(this.rowProps), u = await ((l = this.initRow) == null ? void 0 : l.call(this, o, e));
|
|
104
|
-
e === -1 ? this.rows.push(u || o) : this.rows.splice(e + 1, 0, u || o);
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
addRow() {
|
|
108
|
-
this.$emit("add-row");
|
|
109
|
-
},
|
|
110
|
-
async delRow() {
|
|
111
|
-
if (!this.selectedRows.length) {
|
|
112
|
-
this.$message.warning("请选择要删除的记录!");
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
try {
|
|
116
|
-
if (this.delApi)
|
|
117
|
-
try {
|
|
118
|
-
await this.delApi(this.selectedRows.map((s) => s.id)), this.$message.success("删除成功!"), this.refresh();
|
|
119
|
-
} catch {
|
|
120
|
-
this.$message.error("删除失败!");
|
|
121
|
-
}
|
|
122
|
-
else
|
|
123
|
-
this.$emit(
|
|
124
|
-
"input",
|
|
125
|
-
this.rows.filter((s) => !this.selectedRows.includes(s))
|
|
126
|
-
);
|
|
127
|
-
} catch {
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
refresh() {
|
|
131
|
-
this.$refs.table.getPage();
|
|
132
|
-
},
|
|
133
|
-
getVal(s, e, l) {
|
|
134
|
-
var o, u;
|
|
135
|
-
if (l.type === "select" && ((o = l.attrs) != null && o.options)) {
|
|
136
|
-
const t = l.attrs.options.find((r) => r.value === s[e.property] || r.code === s[e.property]);
|
|
137
|
-
if (t)
|
|
138
|
-
return t.label || t.name;
|
|
139
|
-
}
|
|
140
|
-
if (l.type === "checkbox1")
|
|
141
|
-
return s[e.property] === !0 || s[e.property] === "1" || s[e.property] === "Y" ? "是" : "否";
|
|
142
|
-
if (l.type === "cascader" && ((u = l.attrs) != null && u.options)) {
|
|
143
|
-
const [t] = i(l.attrs.options, (r) => r[l.attrs.valueKey || "value"] === s[e.property]);
|
|
144
|
-
if (t)
|
|
145
|
-
return t[l.attrs.valueKey || "label"];
|
|
146
|
-
}
|
|
147
|
-
return s[e.property];
|
|
148
|
-
},
|
|
149
|
-
reloadTable() {
|
|
150
|
-
var s;
|
|
151
|
-
(s = this.$refs.table) == null || s.reload();
|
|
152
|
-
},
|
|
153
|
-
async refreshTable() {
|
|
154
|
-
var s;
|
|
155
|
-
await ((s = this.$refs.table) == null ? void 0 : s.getPage());
|
|
156
|
-
},
|
|
157
|
-
removeSelectedRows() {
|
|
158
|
-
this.$emit(
|
|
159
|
-
"input",
|
|
160
|
-
this.value.filter((s) => !this.selectedRows.includes(s))
|
|
161
|
-
);
|
|
162
|
-
},
|
|
163
|
-
rowDbClick(...s) {
|
|
164
|
-
var e;
|
|
165
|
-
(e = this.onRowDbClick) == null || e.call(this, ...s);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
var g = function() {
|
|
170
|
-
var o, u;
|
|
171
|
-
var e = this, l = e._self._c;
|
|
172
|
-
return l("div", { class: ["sub-table-plus", { "hide-message": !e.showMessage }] }, [l("PageableTable", e._g(e._b({ ref: "table", attrs: { "auto-height": "", data: e.fetchApi ? !1 : e.rows, api: e.fetchApi, "payload-style": "body", "show-summary": e.showSummary, descs: e.descs, ascs: e.ascs, "page-size": e.pageSize, "selection-width": e.selectionWidth, "hide-on-single-page": "", selection: e.selection, index: e.index }, on: { "selection-change": e.onSelectionChange }, scopedSlots: e._u([!e.inputDisabled || e.hasToolBarMenu ? { key: "toolbar", fn: function() {
|
|
173
|
-
return [l("div", { staticClass: "table-header flex-row" }, [e._t("toolbar", function() {
|
|
174
|
-
return [l("div", { staticClass: "flex-item" }, [e._t("toolbar-left", function() {
|
|
175
|
-
var t, r, n;
|
|
176
|
-
return [(t = e.toolbarMenus) != null && t.includes("add") ? l("ElButton", { staticClass: "table-header-button add", attrs: { size: "mini", icon: "el-icon-circle-plus", type: "text" }, on: { click: e.addRow } }, [e._v(" 添加 ")]) : e._e(), (r = e.toolbarMenus) != null && r.includes("delete") ? l("ConfirmButton", { staticClass: "table-header-button remove", attrs: { size: "mini", disabled: e.selectedRows.length <= 0, message: "您确定要删除选中的记录吗?", icon: "el-icon-error", type: "text" }, on: { click: e.delRow } }, [e._v(" 删除 ")]) : e._e(), (n = e.toolbarMenus) != null && n.includes("refresh") ? l("ElButton", { staticClass: "table-header-button refresh", attrs: { size: "mini", icon: "el-icon-refresh-left", type: "text", disabled: !1 }, on: { click: e.refresh } }, [e._v(" 刷新 ")]) : e._e()];
|
|
177
|
-
}, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh }), e._t("toolbar-left-append", null, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh })], 2), l("div", { staticClass: "flex-not-shrink" }, [e._t("toolbar-right", null, { removeSelectedRows: e.removeSelectedRows, selectedRows: e.selectedRows })], 2)];
|
|
178
|
-
}, { addRow: e.addRow, delRow: e.delRow, refresh: e.refresh })], 2)];
|
|
179
|
-
}, proxy: !0 } : null, e.bottomAddButton ? { key: "empty", fn: function() {
|
|
180
|
-
return [l("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(t) {
|
|
181
|
-
var r;
|
|
182
|
-
return t.stopPropagation(), e.add(null, ((r = e.value) == null ? void 0 : r.length) ?? 0);
|
|
183
|
-
} } })];
|
|
184
|
-
}, proxy: !0 } : null], null, !0) }, "PageableTable", e.$attrs, !1), e.$listeners), [e._t("columns", function() {
|
|
185
|
-
return [e._l(e.columns, function(t) {
|
|
186
|
-
return [t.label && !t.hide && !t.slot ? l("TableColumn", { key: `${t.prop}-${e.enabled}${t.type ? `-${t.type}` : ""}${t.required ? `-${t.required}` : ""}`, attrs: { label: t.label, width: t.width, "dict-type": t.dictType, clickable: t.clickable, align: t.align, prop: t.prop, options: t.options, "show-overflow-tooltip": !t.editable && t.showOverflowTooltip }, scopedSlots: e._u([{ key: "header", fn: function() {
|
|
187
|
-
return [!e.inputDisabled && t.required ? l("span", { staticStyle: { color: "#f56c6c" } }, [e._v("*")]) : e._e(), l("span", { attrs: { title: t.label } }, [e._v(e._s(t.label))])];
|
|
188
|
-
}, proxy: !0 }, { key: "default", fn: function({ row: r, column: n, $index: p }) {
|
|
189
|
-
return [e._t("tag", null, { row: r, column: n, index: p }), e._t(t.prop, function() {
|
|
190
|
-
var d;
|
|
191
|
-
return [e.enabled && t.editable === !0 ? [e.getCellType(r, t) === "input" ? [l("FormInput", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { blur: () => e.onBlur(r, t), input: (a) => e.onInput(r, a, t) } }, "FormInput", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "checkbox1" ? [l("FormCheckbox", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormCheckbox", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "inputPhoneNumber" ? [l("FormInputPhoneNumber", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputPhoneNumber", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "user" ? [t.single ? l("FormInputUser", e._b({ attrs: { id: r[n.idProp || `${n.property}Id`], "wrap-col": !1, name: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { "update:id": function(a) {
|
|
192
|
-
return e.$set(r, n.idProp || `${n.property}Id`, a);
|
|
193
|
-
}, "update:name": function(a) {
|
|
194
|
-
return e.$set(r, n.property, a);
|
|
195
|
-
}, input: (a) => e.onInput(r, a, t) } }, "FormInputUser", e.getInputAttr(r, t), !1)) : l("FormInputUser", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputUser", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "department" ? [t.single ? l("FormInputDepartment", e._b({ attrs: { "wrap-col": !1, "ou-type": t.ouType, name: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { "update:name": function(a) {
|
|
196
|
-
return e.$set(r, n.property, a);
|
|
197
|
-
}, input: (a) => e.onInput(r, a, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1)) : l("FormInputDepartment", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputDepartment", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "select" ? [l("FormSelect", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormSelect", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "datePicker" ? [l("FormDatePicker", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required, start: r[t.start], end: r[t.end] }, on: { "update:start": function(a) {
|
|
198
|
-
return e.$set(r, t.start, a);
|
|
199
|
-
}, "update:end": function(a) {
|
|
200
|
-
return e.$set(r, t.end, a);
|
|
201
|
-
}, input: (a) => e.onInput(r, a, t) } }, "FormDatePicker", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "cascader" ? [l("FormCascader", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required, "label-key": t.labelKey, "value-key": t.valueKey }, on: { input: (a) => e.onInput(r, a, t) } }, "FormCascader", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "checkbox" ? [l("FormCheckboxGroup", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormCheckboxGroup", e.getInputAttr(r, t), !1))] : e.getCellType(r, t) === "number" ? [l("FormInputNumber", e._b({ attrs: { "wrap-col": !1, value: r[n.property], disabled: e.isInputDisabled(r, t), prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required }, on: { input: (a) => e.onInput(r, a, t) } }, "FormInputNumber", e.getInputAttr(r, t), !1))] : e._e()] : t.dictType || (d = t.options) != null && d.length ? [l("DictRender", { attrs: { "dict-type": t.dictType, "id-as-value": t.idAsValue, "label-as-value": t.labelAsValue, column: n, row: r, options: t.options } })] : [e._v(e._s(e.getVal(r, n, t)))]];
|
|
202
|
-
}, { row: r, column: n, wrapCol: !1, index: p, prop: e.prop ? `${e.prop}[${p}].${t.prop}` : null, required: t.required, editable: t.editable })];
|
|
203
|
-
} }], null, !0) }) : t.slot ? e._t(t.slot) : e._e()];
|
|
204
|
-
})];
|
|
205
|
-
}, { columns: e.columns }), e._t("handle", null, { add: e.add, remove: e.remove }), !e.inputDisabled && e.hasHandleMenus ? l("TableColumn", { attrs: { label: "操作", width: "80", align: "center", prop: "menu" }, scopedSlots: e._u([{ key: "header", fn: function({ column: t, $index: r }) {
|
|
206
|
-
return [e._t("handle-column-header", function() {
|
|
207
|
-
return [e._v(" " + e._s(t.label) + " ")];
|
|
208
|
-
}, { column: t, index: r })];
|
|
209
|
-
} }, { key: "default", fn: function({ row: t, $index: r }) {
|
|
210
|
-
var n, p, d;
|
|
211
|
-
return [(n = e.handleMenus) != null && n.includes("add") && ((p = e.value) == null ? void 0 : p.length) < e.limit ? l("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "margin-right": "5px", "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(a) {
|
|
212
|
-
return a.stopPropagation(), e.add(t, r);
|
|
213
|
-
} } }) : e._e(), (d = e.handleMenus) != null && d.includes("delete") ? l("Confirmable", { staticClass: "el-icon-error sub-table-handle-button table-button-remove", attrs: { title: "删除", message: "您确定要删除该行吗?" }, on: { click: function(a) {
|
|
214
|
-
return a.stopPropagation(), e.remove(t, r);
|
|
215
|
-
} } }) : e._e()];
|
|
216
|
-
} }], null, !0) }) : e._e()], 2), !e.inputDisabled && e.bottomAddButton && ((o = e.value) == null ? void 0 : o.length) < e.limit && ((u = e.value) == null ? void 0 : u.length) > 0 ? l("div", { staticClass: "flex-row vertical-center horizon-center", staticStyle: { padding: "10px", border: "1px solid #ebeef5", "border-top": "none" } }, [l("i", { staticClass: "el-icon-circle-plus sub-table-handle-button table-button-add", staticStyle: { "font-size": "20px", cursor: "pointer" }, attrs: { title: "添加" }, on: { click: function(t) {
|
|
217
|
-
var r;
|
|
218
|
-
return t.stopPropagation(), e.add(null, ((r = e.value) == null ? void 0 : r.length) ?? 0);
|
|
219
|
-
} } })]) : e._e()], 1);
|
|
220
|
-
}, _ = [], I = /* @__PURE__ */ f(
|
|
221
|
-
y,
|
|
222
|
-
g,
|
|
223
|
-
_,
|
|
224
|
-
!1,
|
|
225
|
-
null,
|
|
226
|
-
null
|
|
227
|
-
);
|
|
228
|
-
const k = I.exports;
|
|
1
|
+
import "../confirmable/index.mjs";
|
|
2
|
+
import "../chunks/TableColumn.BzivvXMF.mjs";
|
|
3
|
+
import "../form-input-number/index.mjs";
|
|
4
|
+
import "../form-checkbox-group/index.mjs";
|
|
5
|
+
import "../form-cascader/index.mjs";
|
|
6
|
+
import "../form-date-picker/index.mjs";
|
|
7
|
+
import "../form-select/index.mjs";
|
|
8
|
+
import "../form-input-phone-number/index.mjs";
|
|
9
|
+
import "../form-checkbox/index.mjs";
|
|
10
|
+
import "../form-input/index.mjs";
|
|
11
|
+
import "element-ui/lib/button";
|
|
12
|
+
import "../confirm-button/index.mjs";
|
|
13
|
+
import "../pageable-table/index.mjs";
|
|
14
|
+
import "@web-utils/core";
|
|
15
|
+
import "@web-utils/integrations/lodash";
|
|
16
|
+
import { a as j } from "../chunks/SubTablePlus.BH0IIv3X.mjs";
|
|
17
|
+
import "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
229
18
|
export {
|
|
230
|
-
|
|
19
|
+
j as default
|
|
231
20
|
};
|
package/swiper/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { getEleWidth as r } from "@web-utils/core";
|
|
2
1
|
import a from "../resize-observer/index.mjs";
|
|
2
|
+
import r from "element-ui/lib/button";
|
|
3
|
+
import { getEleWidth as o } from "@web-utils/core";
|
|
3
4
|
import "../resize-observer/style.css";
|
|
4
|
-
import { n as
|
|
5
|
-
const
|
|
5
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const l = {
|
|
6
7
|
name: "Swiper",
|
|
7
8
|
components: {
|
|
8
9
|
ResizeObserver: a
|
|
@@ -39,7 +40,7 @@ const h = {
|
|
|
39
40
|
let e = 0;
|
|
40
41
|
const t = [], { children: s } = this.$refs.swiperContent;
|
|
41
42
|
Array.prototype.forEach.call(s, (i) => {
|
|
42
|
-
const n =
|
|
43
|
+
const n = o(i);
|
|
43
44
|
e += n, t.push(n);
|
|
44
45
|
}), this.childrenWidth = t, this.swiperContentWidth = e;
|
|
45
46
|
},
|
|
@@ -101,20 +102,20 @@ const h = {
|
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
};
|
|
104
|
-
var
|
|
105
|
+
var d = function() {
|
|
105
106
|
var t = this, s = t._self._c;
|
|
106
|
-
return s("div", { staticClass: "egd-swiper" }, [s(
|
|
107
|
+
return s("div", { staticClass: "egd-swiper" }, [s(r, { staticClass: "el-carousel__arrow el-carousel__arrow--left", attrs: { disabled: t.reachedLeft, icon: "el-icon-arrow-left" }, on: { click: t.clickLeft } }), s("div", { ref: "swiperBox", staticClass: "egd-swiper-box", on: { wheel: function(i) {
|
|
107
108
|
return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
|
|
108
|
-
} } }, [s("div", { ref: "swiperContent", staticClass: "egd-swiper-content", style: t.swiperContentStyle }, [t._t("default")], 2)]), s(
|
|
109
|
-
},
|
|
110
|
-
h,
|
|
109
|
+
} } }, [s("div", { ref: "swiperContent", staticClass: "egd-swiper-content", style: t.swiperContentStyle }, [t._t("default")], 2)]), s(r, { staticClass: "el-carousel__arrow el-carousel__arrow--right", attrs: { disabled: t.reachedRight, icon: "el-icon-arrow-right" }, on: { click: t.clickRight } }), s(a, { on: { notify: t.resize } })], 1);
|
|
110
|
+
}, c = [], p = /* @__PURE__ */ h(
|
|
111
111
|
l,
|
|
112
112
|
d,
|
|
113
|
+
c,
|
|
113
114
|
!1,
|
|
114
115
|
null,
|
|
115
116
|
null
|
|
116
117
|
);
|
|
117
|
-
const
|
|
118
|
+
const _ = p.exports;
|
|
118
119
|
export {
|
|
119
|
-
|
|
120
|
+
_ as default
|
|
120
121
|
};
|