@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/fy-curd/index.mjs
CHANGED
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
I.call(e, i) && S(t, i, e[i]);
|
|
7
|
-
if (w)
|
|
8
|
-
for (var i of w(e))
|
|
9
|
-
E.call(e, i) && S(t, i, e[i]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { p as P } from "../chunks/packages.ByyangTp.mjs";
|
|
13
|
-
import { p as B } from "../chunks/permission.CO31YIkD.mjs";
|
|
14
|
-
import { i as D } from "../chunks/init.DAsXSoLW.mjs";
|
|
15
|
-
import { g as T, f as z, t as M, c as L } from "../chunks/dataformat.CpqOeGBl.mjs";
|
|
16
|
-
import { o as h, j as x, d as a, u as $, D as b, k as V, i as R, l as A, s as H } from "../chunks/util.DqFv_pWg.mjs";
|
|
1
|
+
import { p as $ } from "../chunks/packages.ByyangTp.mjs";
|
|
2
|
+
import { p as x } from "../chunks/permission.CO31YIkD.mjs";
|
|
3
|
+
import { i as O } from "../chunks/init.DAsXSoLW.mjs";
|
|
4
|
+
import { g as F, f as k, t as I, c as E } from "../chunks/dataformat.CpqOeGBl.mjs";
|
|
5
|
+
import { o as h, j as C, d as a, u as B, D as b, k as P, i as D, l as T, s as z } from "../chunks/util.DqFv_pWg.mjs";
|
|
17
6
|
import { isBlank as c } from "@web-utils/core";
|
|
18
|
-
import { s as
|
|
7
|
+
import { s as M } from "../chunks/slot.DXIbhGat.mjs";
|
|
19
8
|
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
20
|
-
import { F as
|
|
21
|
-
import { s as
|
|
22
|
-
import
|
|
9
|
+
import { F as L, d as w } from "../chunks/FormTemp.Bu2VCxUh.mjs";
|
|
10
|
+
import { s as V } from "../chunks/dic.Dkl-leRW.mjs";
|
|
11
|
+
import R from "../icon-temp/index.mjs";
|
|
23
12
|
import "../icon-temp/style.css";
|
|
24
13
|
const p = {
|
|
25
14
|
menuWidth: 220,
|
|
@@ -90,9 +79,9 @@ const p = {
|
|
|
90
79
|
dropRowClass: ".el-table__body-wrapper > table > tbody",
|
|
91
80
|
dropColClass: ".el-table__header-wrapper tr",
|
|
92
81
|
ghostClass: "avue-crud__ghost"
|
|
93
|
-
},
|
|
82
|
+
}, A = {
|
|
94
83
|
name: "HeaderSearch",
|
|
95
|
-
mixins: [
|
|
84
|
+
mixins: [M],
|
|
96
85
|
inject: ["crud"],
|
|
97
86
|
props: {
|
|
98
87
|
search: Object
|
|
@@ -129,7 +118,7 @@ const p = {
|
|
|
129
118
|
d = d.replace(d[0], d[0].toLowerCase()), m[d] = l[u];
|
|
130
119
|
}
|
|
131
120
|
}), l = Object.assign(l, m, {
|
|
132
|
-
type:
|
|
121
|
+
type: F(l),
|
|
133
122
|
detail: !1,
|
|
134
123
|
dicFlag: l.cascader ? !0 : h(l.dicFlag, !1),
|
|
135
124
|
span: l.searchSpan || t.searchSpan || p.searchSpan,
|
|
@@ -224,7 +213,7 @@ const p = {
|
|
|
224
213
|
},
|
|
225
214
|
// 搜索回调
|
|
226
215
|
searchChange(t, e) {
|
|
227
|
-
t =
|
|
216
|
+
t = C(t), this.crud.propOption.forEach((i) => {
|
|
228
217
|
i.searchProp && (t[i.searchProp] = t[i.prop], delete t[i.prop]);
|
|
229
218
|
}), this.crud.$emit("search-change", t, e);
|
|
230
219
|
},
|
|
@@ -245,7 +234,7 @@ const p = {
|
|
|
245
234
|
}
|
|
246
235
|
}
|
|
247
236
|
};
|
|
248
|
-
var
|
|
237
|
+
var H = function() {
|
|
249
238
|
var e = this, i = e._self._c;
|
|
250
239
|
return e.searchFlag ? i("ElCard", { directives: [{ name: "show", rawName: "v-show", value: e.searchShow && e.searchFlag, expression: "searchShow && searchFlag" }], staticClass: "avue-crud__search", attrs: { shadow: e.crud.isCard } }, [e._t("search", null, { row: e.searchForm, search: e.searchForm, size: e.crud.controlSize }), i("FyForm", { ref: "form", attrs: { option: e.option }, on: { submit: e.searchChange, "reset-change": e.resetChange }, scopedSlots: e._u([{ key: "menuForm", fn: function(n) {
|
|
251
240
|
return [e._t(
|
|
@@ -276,18 +265,18 @@ var G = function() {
|
|
|
276
265
|
})], null, !0), model: { value: e.searchForm, callback: function(n) {
|
|
277
266
|
e.searchForm = n;
|
|
278
267
|
}, expression: "searchForm" } })], 2) : e._e();
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
268
|
+
}, N = [], j = /* @__PURE__ */ f(
|
|
269
|
+
A,
|
|
270
|
+
H,
|
|
271
|
+
N,
|
|
283
272
|
!1,
|
|
284
273
|
null,
|
|
285
274
|
null
|
|
286
275
|
);
|
|
287
|
-
const
|
|
276
|
+
const W = j.exports, K = {
|
|
288
277
|
name: "HeaderMenu",
|
|
289
278
|
directives: {
|
|
290
|
-
permission:
|
|
279
|
+
permission: x
|
|
291
280
|
},
|
|
292
281
|
inject: ["crud"],
|
|
293
282
|
data() {
|
|
@@ -355,7 +344,7 @@ const J = X.exports, Q = {
|
|
|
355
344
|
}
|
|
356
345
|
}
|
|
357
346
|
};
|
|
358
|
-
var
|
|
347
|
+
var U = function() {
|
|
359
348
|
var e = this, i = e._self._c;
|
|
360
349
|
return i("div", { staticClass: "avue-crud__menu" }, [e.optVal(e.crud.tableOption.menuLeft, !0) ? i("div", { staticClass: "avue-crud__left" }, [e.optVal(e.crud.tableOption.addBtn, e.config.addBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("addBtn"), expression: "crud.getPermission('addBtn')" }], attrs: { type: "primary", icon: e.crud.getBtnIcon("addBtn"), size: e.crud.isMediumSize }, on: { click: e.crud.rowAdd } }, [e.crud.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("addBtn")) + " ")]], 2) : e._e(), e.optVal(e.crud.tableOption.addRowBtn, e.config.addRowBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("addRowBtn"), expression: "crud.getPermission('addRowBtn')" }], attrs: { type: "primary", icon: e.crud.getBtnIcon("addBtn"), size: e.crud.isMediumSize }, on: { click: e.crud.rowCellAdd } }, [e.crud.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("addBtn")) + " ")]], 2) : e._e(), e._t("menuLeft", null, { size: e.crud.isMediumSize })], 2) : e._e(), e.optVal(e.crud.tableOption.menuRight, !0) ? i("div", { staticClass: "avue-crud__right" }, [e.optVal(e.crud.tableOption.dateBtn, e.config.dateBtn) ? i("FyDate", { staticStyle: { display: "inline-block", "margin-right": "20px" }, attrs: { type: "datetimerange", "value-format": "yyyy-MM-dd HH:mm:ss", format: "yyyy-MM-dd HH:mm:ss", "picker-options": e.pickerOptions, size: e.crud.isMediumSize }, on: { change: e.dateChange } }) : e._e(), e._t("menuRight", null, { size: e.crud.isMediumSize }), e.optVal(e.crud.tableOption.excelBtn, e.config.excelBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("excelBtn"), expression: "crud.getPermission('excelBtn')" }], attrs: { icon: e.crud.getBtnIcon("excelBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: e.rowExcel } }) : e._e(), e.optVal(e.crud.tableOption.printBtn, e.config.printBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("printBtn"), expression: "crud.getPermission('printBtn')" }], attrs: { icon: e.crud.getBtnIcon("printBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: e.rowPrint } }) : e._e(), e.optVal(e.crud.tableOption.refreshBtn, e.config.refreshBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("refreshBtn"), expression: "crud.getPermission('refreshBtn')" }], attrs: { icon: e.crud.getBtnIcon("refreshBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: e.crud.refreshChange } }) : e._e(), e.optVal(e.crud.tableOption.columnBtn, e.config.columnBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("columnBtn"), expression: "crud.getPermission('columnBtn')" }], attrs: { icon: e.crud.getBtnIcon("columnBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: function(n) {
|
|
361
350
|
return e.crud.$refs.dialogColumn.handleShow();
|
|
@@ -364,17 +353,17 @@ var Y = function() {
|
|
|
364
353
|
} } }) : e._e(), e.optVal(e.crud.tableOption.filterBtn, e.config.filterBtn) ? i("ElButton", { directives: [{ name: "permission", rawName: "v-permission", value: e.crud.getPermission("filterBtn"), expression: "crud.getPermission('filterBtn')" }], attrs: { icon: e.crud.getBtnIcon("filterBtn"), circle: "", size: e.crud.isMediumSize }, on: { click: function(n) {
|
|
365
354
|
return e.crud.$refs.dialogFilter.handleShow();
|
|
366
355
|
} } }) : e._e()], 2) : e._e()]);
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
356
|
+
}, G = [], q = /* @__PURE__ */ f(
|
|
357
|
+
K,
|
|
358
|
+
U,
|
|
359
|
+
G,
|
|
371
360
|
!1,
|
|
372
361
|
null,
|
|
373
362
|
null
|
|
374
363
|
);
|
|
375
|
-
const
|
|
364
|
+
const X = q.exports, y = {}, J = {
|
|
376
365
|
name: "ColumnSlot",
|
|
377
|
-
components: { IconTemp:
|
|
366
|
+
components: { IconTemp: R, FormTemp: L },
|
|
378
367
|
inject: ["dynamic", "crud"],
|
|
379
368
|
props: {
|
|
380
369
|
column: Object,
|
|
@@ -389,9 +378,9 @@ const te = ee.exports, C = {}, ie = {
|
|
|
389
378
|
methods: {
|
|
390
379
|
isBlank: c,
|
|
391
380
|
optVal: h,
|
|
392
|
-
uploadFun:
|
|
381
|
+
uploadFun: B,
|
|
393
382
|
isMediaType(t, e) {
|
|
394
|
-
return
|
|
383
|
+
return D(t, e);
|
|
395
384
|
},
|
|
396
385
|
vaildLabel(t, e, i) {
|
|
397
386
|
if (t.rules && e.$cellEdit)
|
|
@@ -399,8 +388,8 @@ const te = ee.exports, C = {}, ie = {
|
|
|
399
388
|
},
|
|
400
389
|
columnChange(t, e, i) {
|
|
401
390
|
const n = `${i}-${e.prop}`;
|
|
402
|
-
|
|
403
|
-
|
|
391
|
+
y[n] || (this.handleChange(e, t), typeof e.change == "function" && e.cell === !0 && e.change({ row: t, column: e, index: i, value: t[e.prop] })), y[n] = !0, this.$nextTick(() => {
|
|
392
|
+
y[n] = !1;
|
|
404
393
|
});
|
|
405
394
|
},
|
|
406
395
|
handleChange(t, e) {
|
|
@@ -410,7 +399,7 @@ const te = ee.exports, C = {}, ie = {
|
|
|
410
399
|
const r = n, s = e[t.prop], l = e.$index, o = this.findObject(this.columnOption, r);
|
|
411
400
|
c(o) || (c(this.crud.cascaderDIC[l]) && this.$set(this.crud.cascaderDIC, l, {}), this.crud.cascaderIndexList.includes(l) && i.forEach((m) => {
|
|
412
401
|
this.$set(this.crud.cascaderDIC[l], m.prop, []), i.forEach((u) => e[u] = "");
|
|
413
|
-
}), !(c(i) || c(s) || c(o)) &&
|
|
402
|
+
}), !(c(i) || c(s) || c(o)) && V({
|
|
414
403
|
column: o,
|
|
415
404
|
value: s,
|
|
416
405
|
form: e
|
|
@@ -422,12 +411,12 @@ const te = ee.exports, C = {}, ie = {
|
|
|
422
411
|
});
|
|
423
412
|
},
|
|
424
413
|
handleDetail(t, e) {
|
|
425
|
-
const i = e.parentProp ? (this.crud.cascaderDIC[t.$index] || {})[e.prop] : this.crud.DIC[e.prop], n =
|
|
414
|
+
const i = e.parentProp ? (this.crud.cascaderDIC[t.$index] || {})[e.prop] : this.crud.DIC[e.prop], n = w(t, e, this.crud.tableOption, i);
|
|
426
415
|
return !c(i) && this.crud.tableOption.filterDic !== !0 && (t[`$${e.prop}`] = n), n;
|
|
427
416
|
},
|
|
428
417
|
corArray(t, e) {
|
|
429
418
|
let i = this.handleDetail(t, e);
|
|
430
|
-
return Array.isArray(i) || (i = c(i) ? [] : i.split(
|
|
419
|
+
return Array.isArray(i) || (i = c(i) ? [] : i.split(P)), a(i);
|
|
431
420
|
},
|
|
432
421
|
openImg(t, e, i) {
|
|
433
422
|
let n = this.getImgList(t, e);
|
|
@@ -442,7 +431,7 @@ const te = ee.exports, C = {}, ie = {
|
|
|
442
431
|
}
|
|
443
432
|
}
|
|
444
433
|
};
|
|
445
|
-
var
|
|
434
|
+
var Q = function() {
|
|
446
435
|
var e = this, i = e._self._c;
|
|
447
436
|
return e.getColumnProp(e.column, "hide") ? i("ElTableColumn", { key: e.column.prop, attrs: { prop: e.column.prop, label: e.column.label, "column-key": e.column.prop, "filter-placement": "bottom-end", filters: e.getColumnProp(e.column, "filters"), "filter-method": e.getColumnProp(e.column, "filterMethod") ? e.handleFilterMethod : void 0, "filter-multiple": e.optVal(e.column.filterMultiple, !0), "show-overflow-tooltip": e.column.overHidden, "min-width": e.column.minWidth, sortable: e.getColumnProp(e.column, "sortable"), "sort-method": e.column.sortMethod, "sort-orders": e.column.sortOrders, "sort-by": e.column.sortBy, resizable: e.column.resizable, "render-header": e.column.renderHeader, align: e.column.align || e.crud.tableOption.align, "header-align": e.column.headerAlign || e.crud.tableOption.headerAlign, width: e.getColumnProp(e.column, "width"), fixed: e.getColumnProp(e.column, "fixed") }, scopedSlots: e._u([{ key: "header", fn: function({ $index: n }) {
|
|
448
437
|
return [e.crud.getSlotName(e.column, "H", e.crud.$scopedSlots) ? e._t(e.crud.getSlotName(e.column, "H"), null, null, { column: e.column, $index: n }) : i("span", [e._v(e._s(e.column.label))])];
|
|
@@ -475,17 +464,17 @@ var ne = function() {
|
|
|
475
464
|
e.$set(n, e.column.prop, s);
|
|
476
465
|
}, expression: "row[column.prop]" } })], 1) : e.column.type === "color" ? i("i", { staticClass: "avue-crud__color", style: { backgroundColor: n[e.column.prop] } }) : e.column.type === "icon" ? i("IconTemp", { attrs: { text: n[e.column.prop] } }) : e.column.html ? i("span", { domProps: { innerHTML: e._s(e.handleDetail(n, e.column)) } }) : i("span", { domProps: { textContent: e._s(e.handleDetail(n, e.column)) } })]];
|
|
477
466
|
} }], null, !0) }) : e._e();
|
|
478
|
-
},
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
467
|
+
}, Y = [], Z = /* @__PURE__ */ f(
|
|
468
|
+
J,
|
|
469
|
+
Q,
|
|
470
|
+
Y,
|
|
482
471
|
!1,
|
|
483
472
|
null,
|
|
484
473
|
null
|
|
485
474
|
);
|
|
486
|
-
const
|
|
475
|
+
const S = Z.exports, ee = {
|
|
487
476
|
name: "ColumnDynamic",
|
|
488
|
-
components: { ColumnSlot:
|
|
477
|
+
components: { ColumnSlot: S },
|
|
489
478
|
inject: ["dynamic", "crud"],
|
|
490
479
|
props: {
|
|
491
480
|
columnOption: Object
|
|
@@ -500,7 +489,7 @@ const F = se.exports, le = {
|
|
|
500
489
|
optVal: h
|
|
501
490
|
}
|
|
502
491
|
};
|
|
503
|
-
var
|
|
492
|
+
var te = function() {
|
|
504
493
|
var e = this, i = e._self._c;
|
|
505
494
|
return e.getColumnProp(e.columnOption, "hide") ? i("ElTableColumn", { key: e.columnOption.prop, attrs: { prop: e.columnOption.prop, label: e.columnOption.label, "filter-placement": "bottom-end", filters: e.getColumnProp(e.columnOption, "filters"), "filter-method": e.getColumnProp(e.columnOption, "filterMethod") ? e.handleFilterMethod : void 0, "filter-multiple": e.optVal(e.columnOption.filterMultiple, !0), "show-overflow-tooltip": e.columnOption.overHidden, "min-width": e.columnOption.minWidth, sortable: e.getColumnProp(e.columnOption, "sortable"), "render-header": e.columnOption.renderHeader, align: e.columnOption.align || e.crud.tableOption.align, "header-align": e.columnOption.headerAlign || e.crud.tableOption.headerAlign, width: e.getColumnProp(e.columnOption, "width"), fixed: e.getColumnProp(e.columnOption, "fixed") } }, [e._l(e.columnOption.children, function(n) {
|
|
506
495
|
return [n.children && n.children.length > 0 ? i("ColumnDynamic", { key: n.prop, attrs: { "column-option": n }, scopedSlots: e._u([e._l(e.crud.mainSlot, function(r) {
|
|
@@ -513,17 +502,17 @@ var oe = function() {
|
|
|
513
502
|
} };
|
|
514
503
|
})], null, !0) })];
|
|
515
504
|
})], 2) : e._e();
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
505
|
+
}, ie = [], ne = /* @__PURE__ */ f(
|
|
506
|
+
ee,
|
|
507
|
+
te,
|
|
508
|
+
ie,
|
|
520
509
|
!1,
|
|
521
510
|
null,
|
|
522
511
|
null
|
|
523
512
|
);
|
|
524
|
-
const
|
|
513
|
+
const re = ne.exports, se = {
|
|
525
514
|
name: "Column",
|
|
526
|
-
components: { ColumnDynamic:
|
|
515
|
+
components: { ColumnDynamic: re, ColumnSlot: S },
|
|
527
516
|
inject: ["crud"],
|
|
528
517
|
provide() {
|
|
529
518
|
return {
|
|
@@ -537,7 +526,7 @@ const ue = ce.exports, de = {
|
|
|
537
526
|
computed: {
|
|
538
527
|
list() {
|
|
539
528
|
let t = [...this.columnOption];
|
|
540
|
-
return t =
|
|
529
|
+
return t = T(t, "index", (e, i) => {
|
|
541
530
|
var n, r;
|
|
542
531
|
return ((n = this.crud.objectOption[e.prop]) == null ? void 0 : n.index) - ((r = this.crud.objectOption[i.prop]) == null ? void 0 : r.index);
|
|
543
532
|
}), t;
|
|
@@ -576,7 +565,7 @@ const ue = ce.exports, de = {
|
|
|
576
565
|
}
|
|
577
566
|
}
|
|
578
567
|
};
|
|
579
|
-
var
|
|
568
|
+
var le = function() {
|
|
580
569
|
var e = this, i = e._self._c;
|
|
581
570
|
return i("div", [e._t("header"), e._l(e.list, function(n) {
|
|
582
571
|
return [n.children && n.children.length > 0 ? i("ColumnDynamic", { key: n.pop, attrs: { "column-option": n }, scopedSlots: e._u([e._l(e.crud.mainSlot, function(r) {
|
|
@@ -589,15 +578,15 @@ var pe = function() {
|
|
|
589
578
|
} };
|
|
590
579
|
})], null, !0) })];
|
|
591
580
|
}), e._t("footer")], 2);
|
|
592
|
-
},
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
581
|
+
}, oe = [], ae = /* @__PURE__ */ f(
|
|
582
|
+
se,
|
|
583
|
+
le,
|
|
584
|
+
oe,
|
|
596
585
|
!1,
|
|
597
586
|
null,
|
|
598
587
|
null
|
|
599
588
|
);
|
|
600
|
-
const
|
|
589
|
+
const ce = ae.exports, ue = {
|
|
601
590
|
name: "ColumnDefault",
|
|
602
591
|
inject: ["crud"],
|
|
603
592
|
data() {
|
|
@@ -634,23 +623,23 @@ const fe = me.exports, be = {
|
|
|
634
623
|
}
|
|
635
624
|
}
|
|
636
625
|
};
|
|
637
|
-
var
|
|
626
|
+
var de = function() {
|
|
638
627
|
var e = this, i = e._self._c;
|
|
639
628
|
return i("div", [i("ElTableColumn", { attrs: { width: "1px" } }), e.crud.tableOption.expand ? i("ElTableColumn", { key: "expand", attrs: { type: "expand", width: e.crud.tableOption.expandWidth || e.config.expandWidth, fixed: e.optVal(e.crud.tableOption.expandFixed, e.config.expandFixed), align: "center" }, scopedSlots: e._u([{ key: "default", fn: function({ row: n }) {
|
|
640
629
|
return [e._t("expand", null, { row: n, index: n.$index })];
|
|
641
630
|
} }], null, !0) }) : e._e(), e.crud.tableOption.selection ? i("ElTableColumn", { key: "selection", attrs: { fixed: e.optVal(e.crud.tableOption.selectionFixed, e.config.selectionFixed), type: "selection", selectable: e.crud.tableOption.selectable, "reserve-selection": e.optVal(e.crud.tableOption.reserveSelection), width: e.crud.tableOption.selectionWidth || e.config.selectionWidth, align: "center" } }) : e._e(), e.optVal(e.crud.tableOption.index) ? i("ElTableColumn", { key: "index", attrs: { fixed: e.optVal(e.crud.tableOption.indexFixed, e.config.indexFixed), label: e.crud.tableOption.indexLabel || e.config.indexLabel, type: "index", width: e.crud.tableOption.indexWidth || e.config.indexWidth, index: e.indexMethod, align: "center" } }) : e._e()], 1);
|
|
642
|
-
},
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
631
|
+
}, pe = [], he = /* @__PURE__ */ f(
|
|
632
|
+
ue,
|
|
633
|
+
de,
|
|
634
|
+
pe,
|
|
646
635
|
!1,
|
|
647
636
|
null,
|
|
648
637
|
null
|
|
649
638
|
);
|
|
650
|
-
const
|
|
639
|
+
const me = he.exports, fe = {
|
|
651
640
|
name: "ColumnMenu",
|
|
652
641
|
directives: {
|
|
653
|
-
permission:
|
|
642
|
+
permission: x
|
|
654
643
|
},
|
|
655
644
|
inject: ["crud"],
|
|
656
645
|
data() {
|
|
@@ -679,7 +668,7 @@ const ye = ve.exports, Ce = {
|
|
|
679
668
|
}
|
|
680
669
|
}
|
|
681
670
|
};
|
|
682
|
-
var
|
|
671
|
+
var be = function() {
|
|
683
672
|
var e = this, i = e._self._c;
|
|
684
673
|
return e.optVal(e.crud.tableOption.menu, e.config.menu) && e.crud.getPermission("menu") ? i("ElTableColumn", { key: "menu", staticClass: "avue-crud__btn", attrs: { prop: "menu", fixed: e.optVal(e.crud.tableOption.menuFixed, e.config.menuFixed), label: e.crud.tableOption.menuTitle || "操作", align: e.crud.tableOption.menuAlign || e.config.menuAlign, "header-align": e.crud.tableOption.menuHeaderAlign || e.config.menuHeaderAlign, width: e.crud.isMobile ? e.crud.tableOption.menuXsWidth || e.config.menuXsWidth : e.crud.tableOption.menuWidth || e.config.menuWidth }, scopedSlots: e._u([{ key: "default", fn: function({ row: n, $index: r }) {
|
|
685
674
|
return [e.isMenu ? i("ElDropdown", { attrs: { size: e.crud.isMediumSize }, scopedSlots: e._u([{ key: "dropdown", fn: function() {
|
|
@@ -708,15 +697,15 @@ var xe = function() {
|
|
|
708
697
|
return s.stopPropagation(), e.crud.rowDel(n, r);
|
|
709
698
|
} } }, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("delBtn")) + " ")]], 2) : e._e()] : e._e(), e._t("menu", null, { row: n, type: e.menuText("primary"), disabled: e.crud.btnDisabled, size: e.crud.isMediumSize, index: r })];
|
|
710
699
|
} }], null, !0) }) : e._e();
|
|
711
|
-
},
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
700
|
+
}, ge = [], _e = /* @__PURE__ */ f(
|
|
701
|
+
fe,
|
|
702
|
+
be,
|
|
703
|
+
ge,
|
|
715
704
|
!1,
|
|
716
705
|
null,
|
|
717
706
|
null
|
|
718
707
|
);
|
|
719
|
-
const
|
|
708
|
+
const ve = _e.exports, ye = {
|
|
720
709
|
name: "TablePage",
|
|
721
710
|
inject: ["crud"],
|
|
722
711
|
data() {
|
|
@@ -787,22 +776,22 @@ const Se = we.exports, $e = {
|
|
|
787
776
|
}
|
|
788
777
|
}
|
|
789
778
|
};
|
|
790
|
-
var
|
|
779
|
+
var Ce = function() {
|
|
791
780
|
var e = this, i = e._self._c;
|
|
792
781
|
return e.pageFlag && e.optVal(e.crud.tableOption.page, !0) ? i("ElCard", { staticClass: "avue-pagination", attrs: { shadow: e.crud.isCard } }, [e._t("page"), i("ElPagination", { staticStyle: { "margin-top": "25px" }, attrs: { small: e.crud.size === "mini", disabled: e.defaultPage.disabled, "hide-on-single-page": e.defaultPage.single, "pager-count": e.defaultPage.pagerCount, "current-page": e.defaultPage.currentPage, background: e.defaultPage.background, "page-size": e.defaultPage.pageSize, "page-sizes": e.defaultPage.pageSizes, layout: e.defaultPage.layout, total: e.defaultPage.total }, on: { "update:currentPage": function(n) {
|
|
793
782
|
return e.$set(e.defaultPage, "currentPage", n);
|
|
794
783
|
}, "update:current-page": function(n) {
|
|
795
784
|
return e.$set(e.defaultPage, "currentPage", n);
|
|
796
785
|
}, "size-change": e.sizeChange, "prev-click": e.prevClick, "next-click": e.nextClick, "current-change": e.currentChange } })], 2) : e._e();
|
|
797
|
-
},
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
786
|
+
}, xe = [], Be = /* @__PURE__ */ f(
|
|
787
|
+
ye,
|
|
788
|
+
Ce,
|
|
789
|
+
xe,
|
|
801
790
|
!1,
|
|
802
791
|
null,
|
|
803
792
|
null
|
|
804
793
|
);
|
|
805
|
-
const
|
|
794
|
+
const we = Be.exports, Se = {
|
|
806
795
|
name: "FyDialogForm",
|
|
807
796
|
inject: ["crud"],
|
|
808
797
|
data() {
|
|
@@ -877,7 +866,7 @@ const Ie = ke.exports, Ee = {
|
|
|
877
866
|
},
|
|
878
867
|
methods: {
|
|
879
868
|
optVal: h,
|
|
880
|
-
uploadFun:
|
|
869
|
+
uploadFun: B,
|
|
881
870
|
submit() {
|
|
882
871
|
this.$refs.tableForm.submit();
|
|
883
872
|
},
|
|
@@ -909,11 +898,11 @@ const Ie = ke.exports, Ee = {
|
|
|
909
898
|
},
|
|
910
899
|
// 保存
|
|
911
900
|
rowSave(t) {
|
|
912
|
-
this.crud.$emit("row-save",
|
|
901
|
+
this.crud.$emit("row-save", C(this.crud.tableForm, ["$"]), this.closeDialog, t);
|
|
913
902
|
},
|
|
914
903
|
// 更新
|
|
915
904
|
rowUpdate(t) {
|
|
916
|
-
this.crud.$emit("row-update",
|
|
905
|
+
this.crud.$emit("row-update", C(this.crud.tableForm, ["$"]), this.crud.tableIndex, this.closeDialog, t);
|
|
917
906
|
},
|
|
918
907
|
closeDialog(t) {
|
|
919
908
|
t = a(t), t && (() => {
|
|
@@ -948,7 +937,7 @@ const Ie = ke.exports, Ee = {
|
|
|
948
937
|
}
|
|
949
938
|
}
|
|
950
939
|
};
|
|
951
|
-
var
|
|
940
|
+
var $e = function() {
|
|
952
941
|
var e = this, i = e._self._c;
|
|
953
942
|
return e.boxVisible ? i(e.dialogType, e._b({ tag: "Component", staticClass: "dialog-form", attrs: { "lock-scroll": "", "show-full-screen": "", "destroy-on-close": e.crud.tableOption.dialogDestroy, "wrapper-closable": e.crud.tableOption.dialogClickModal, direction: e.direction, "custom-class": e.crud.tableOption.dialogCustomClass, "modal-append-to-body": "", "append-to-body": "", top: e.dialogTop, title: e.dialogTitle, "close-on-press-escape": e.crud.tableOption.dialogEscape, "close-on-click-modal": e.optVal(e.crud.tableOption.dialogClickModal, !1), modal: e.crud.tableOption.dialogModal, "show-close": e.crud.tableOption.dialogCloseBtn, visible: e.boxVisible, "before-close": e.hide }, on: { "update:visible": function(n) {
|
|
954
943
|
e.boxVisible = n;
|
|
@@ -961,15 +950,15 @@ var Pe = function() {
|
|
|
961
950
|
})], null, !0), model: { value: e.crud.tableForm, callback: function(n) {
|
|
962
951
|
e.$set(e.crud, "tableForm", n);
|
|
963
952
|
}, expression: "crud.tableForm" } }, "FyForm", e.uploadFun({}, e.crud), !1)), i("span", { staticClass: "avue-dialog__footer", class: `avue-dialog__footer--${e.dialogMenuPosition}` }, [e.optVal(e.option.submitBtn, !0) && !e.isView ? i("ElButton", { attrs: { loading: e.disabled, size: e.crud.controlSize, icon: e.option.submitIcon, type: "primary" }, on: { click: e.submit } }, [e._v(" " + e._s(e.option.submitText) + " ")]) : e._e(), e.optVal(e.option.emptyBtn, !0) && !e.isView ? i("ElButton", { attrs: { disabled: e.disabled, size: e.crud.controlSize, icon: e.option.emptyIcon }, on: { click: e.reset } }, [e._v(" " + e._s(e.option.emptyText) + " ")]) : e._e(), e._t("menuForm", null, { disabled: e.disabled, size: e.crud.controlSize, type: e.boxType })], 2)], 1) : e._e();
|
|
964
|
-
},
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
953
|
+
}, Oe = [], Fe = /* @__PURE__ */ f(
|
|
954
|
+
Se,
|
|
955
|
+
$e,
|
|
956
|
+
Oe,
|
|
968
957
|
!1,
|
|
969
958
|
null,
|
|
970
959
|
null
|
|
971
960
|
);
|
|
972
|
-
const
|
|
961
|
+
const ke = Fe.exports, Ie = {
|
|
973
962
|
name: "DialogColumn",
|
|
974
963
|
inject: ["crud"],
|
|
975
964
|
data() {
|
|
@@ -1028,7 +1017,7 @@ const ze = Te.exports, Me = {
|
|
|
1028
1017
|
}
|
|
1029
1018
|
}
|
|
1030
1019
|
};
|
|
1031
|
-
var
|
|
1020
|
+
var Ee = function() {
|
|
1032
1021
|
var e = this, i = e._self._c;
|
|
1033
1022
|
return e.columnBox ? i("div", [i("ElDrawer", { staticClass: "avue-crud__dialog avue-crud__column avue-dialog", attrs: { "lock-scroll": "", "append-to-body": "", title: "列显隐", size: e.crud.isMobile ? "100%" : "40%", visible: e.columnBox }, on: { "update:visible": function(n) {
|
|
1034
1023
|
e.columnBox = n;
|
|
@@ -1041,15 +1030,15 @@ var Le = function() {
|
|
|
1041
1030
|
}, expression: "crud.objectOption[row.prop][item.prop]" } })];
|
|
1042
1031
|
} }], null, !0) }) : e._e()];
|
|
1043
1032
|
})], 2)], 1)], 1) : e._e();
|
|
1044
|
-
},
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1033
|
+
}, Pe = [], De = /* @__PURE__ */ f(
|
|
1034
|
+
Ie,
|
|
1035
|
+
Ee,
|
|
1036
|
+
Pe,
|
|
1048
1037
|
!1,
|
|
1049
1038
|
null,
|
|
1050
1039
|
null
|
|
1051
1040
|
);
|
|
1052
|
-
const
|
|
1041
|
+
const Te = De.exports, ze = {
|
|
1053
1042
|
name: "DialogExcel",
|
|
1054
1043
|
inject: ["crud"],
|
|
1055
1044
|
data() {
|
|
@@ -1080,7 +1069,7 @@ const Ae = Re.exports, He = {
|
|
|
1080
1069
|
const s = a(r);
|
|
1081
1070
|
e.forEach((l) => {
|
|
1082
1071
|
const o = l.parentProp ? (this.crud.cascaderDIC[l.$index] || {})[l.prop] : this.crud.DIC[l.prop];
|
|
1083
|
-
s[l.prop] =
|
|
1072
|
+
s[l.prop] = w(s, l, t, o);
|
|
1084
1073
|
}), n.push(s);
|
|
1085
1074
|
}), this.form.params.includes("sum") && t.showSummary && n.push(this.crud.sumsList), n;
|
|
1086
1075
|
},
|
|
@@ -1192,7 +1181,7 @@ const Ae = Re.exports, He = {
|
|
|
1192
1181
|
}
|
|
1193
1182
|
}
|
|
1194
1183
|
};
|
|
1195
|
-
var
|
|
1184
|
+
var Me = function() {
|
|
1196
1185
|
var e = this, i = e._self._c;
|
|
1197
1186
|
return e.box ? i("div", [i("ElementDialog", { staticClass: "avue-dialog", attrs: { title: "导出", "lock-scroll": "", visible: e.box, width: e.crud.isMobile ? "100%" : "30%" }, on: { "update:visible": function(n) {
|
|
1198
1187
|
e.box = n;
|
|
@@ -1203,15 +1192,15 @@ var Ne = function() {
|
|
|
1203
1192
|
}, proxy: !0 }], null, !1, 2375905330) }, [i("FyForm", { attrs: { option: e.option }, model: { value: e.form, callback: function(n) {
|
|
1204
1193
|
e.form = n;
|
|
1205
1194
|
}, expression: "form" } })], 1)], 1) : e._e();
|
|
1206
|
-
},
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1195
|
+
}, Le = [], Ve = /* @__PURE__ */ f(
|
|
1196
|
+
ze,
|
|
1197
|
+
Me,
|
|
1198
|
+
Le,
|
|
1210
1199
|
!1,
|
|
1211
1200
|
null,
|
|
1212
1201
|
null
|
|
1213
1202
|
);
|
|
1214
|
-
const
|
|
1203
|
+
const Re = Ve.exports, Ae = {
|
|
1215
1204
|
name: "DialogFilter",
|
|
1216
1205
|
inject: ["crud"],
|
|
1217
1206
|
data() {
|
|
@@ -1300,7 +1289,7 @@ const Ke = We.exports, Ue = {
|
|
|
1300
1289
|
}
|
|
1301
1290
|
}
|
|
1302
1291
|
};
|
|
1303
|
-
var
|
|
1292
|
+
var He = function() {
|
|
1304
1293
|
var e = this, i = e._self._c;
|
|
1305
1294
|
return e.box ? i("div", [i("ElDrawer", { staticClass: "avue-dialog", class: ["avue-crud__dialog", "avue-crud__filter"], attrs: { "lock-scroll": "", "append-to-body": "", title: "过滤条件", size: e.crud.isMobile ? "100%" : "60%", visible: e.box }, on: { "update:visible": function(n) {
|
|
1306
1295
|
e.box = n;
|
|
@@ -1319,32 +1308,32 @@ var Ge = function() {
|
|
|
1319
1308
|
}), i("ElCol", { staticClass: "avue-form__menu avue-form__menu--right", attrs: { span: 24 } }, [i("ElButton", { attrs: { type: "primary", size: e.crud.isMediumSize }, on: { click: e.handleSubmit } }, [e._v(" 确 定 ")]), i("ElButton", { attrs: { size: e.crud.isMediumSize }, on: { click: function(n) {
|
|
1320
1309
|
e.box = !1;
|
|
1321
1310
|
} } }, [e._v(" 取 消 ")])], 1)], 2)], 1)], 1) : e._e();
|
|
1322
|
-
},
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1311
|
+
}, Ne = [], je = /* @__PURE__ */ f(
|
|
1312
|
+
Ae,
|
|
1313
|
+
He,
|
|
1314
|
+
Ne,
|
|
1326
1315
|
!1,
|
|
1327
1316
|
null,
|
|
1328
1317
|
null
|
|
1329
1318
|
);
|
|
1330
|
-
const
|
|
1319
|
+
const We = je.exports, Ke = {
|
|
1331
1320
|
name: "FyCurd",
|
|
1332
1321
|
components: {
|
|
1333
|
-
DialogFilter:
|
|
1334
|
-
DialogExcel:
|
|
1335
|
-
DialogColumn:
|
|
1336
|
-
FyDialogForm:
|
|
1337
|
-
TablePage:
|
|
1338
|
-
ColumnMenu:
|
|
1339
|
-
ColumnDefault:
|
|
1340
|
-
Column:
|
|
1341
|
-
HeaderMenu:
|
|
1342
|
-
HeaderSearch:
|
|
1322
|
+
DialogFilter: We,
|
|
1323
|
+
DialogExcel: Re,
|
|
1324
|
+
DialogColumn: Te,
|
|
1325
|
+
FyDialogForm: ke,
|
|
1326
|
+
TablePage: we,
|
|
1327
|
+
ColumnMenu: ve,
|
|
1328
|
+
ColumnDefault: me,
|
|
1329
|
+
Column: ce,
|
|
1330
|
+
HeaderMenu: X,
|
|
1331
|
+
HeaderSearch: W
|
|
1343
1332
|
},
|
|
1344
1333
|
directives: {
|
|
1345
|
-
permission:
|
|
1334
|
+
permission: x
|
|
1346
1335
|
},
|
|
1347
|
-
mixins: [
|
|
1336
|
+
mixins: [O],
|
|
1348
1337
|
provide() {
|
|
1349
1338
|
return {
|
|
1350
1339
|
crud: this
|
|
@@ -1471,7 +1460,7 @@ const Je = Xe.exports, Qe = {
|
|
|
1471
1460
|
Array.isArray(n.children) ? e(n.children) : t.push(n);
|
|
1472
1461
|
});
|
|
1473
1462
|
}
|
|
1474
|
-
return e(this.columnOption), t =
|
|
1463
|
+
return e(this.columnOption), t = E(t), t;
|
|
1475
1464
|
},
|
|
1476
1465
|
isShowSummary() {
|
|
1477
1466
|
return this.option.showSummary;
|
|
@@ -1535,7 +1524,7 @@ const Je = Xe.exports, Qe = {
|
|
|
1535
1524
|
this.dataInit(), this.getTableHeight(), this.refreshTable();
|
|
1536
1525
|
},
|
|
1537
1526
|
methods: {
|
|
1538
|
-
setPx:
|
|
1527
|
+
setPx: z,
|
|
1539
1528
|
optVal: h,
|
|
1540
1529
|
handleValidate(t, e, i) {
|
|
1541
1530
|
this.listError[t] || this.$set(this.listError, t, { valid: !1, msg: "" }), this.listError[t].valid = !e, this.listError[t].msg = i;
|
|
@@ -1566,7 +1555,7 @@ const Je = Xe.exports, Qe = {
|
|
|
1566
1555
|
});
|
|
1567
1556
|
},
|
|
1568
1557
|
menuIcon(t) {
|
|
1569
|
-
return h(this.tableOption[`${t}Text`],
|
|
1558
|
+
return h(this.tableOption[`${t}Text`], I(`crud.${t}`));
|
|
1570
1559
|
},
|
|
1571
1560
|
getBtnIcon(t) {
|
|
1572
1561
|
const e = `${t}Icon`;
|
|
@@ -1685,11 +1674,13 @@ const Je = Xe.exports, Qe = {
|
|
|
1685
1674
|
},
|
|
1686
1675
|
// 单元格新增
|
|
1687
1676
|
rowCellAdd(t = {}) {
|
|
1688
|
-
const e = this.list.length, i =
|
|
1689
|
-
t = a(
|
|
1677
|
+
const e = this.list.length, i = k(this.propOption).tableForm;
|
|
1678
|
+
t = a({
|
|
1690
1679
|
$cellEdit: !0,
|
|
1691
|
-
$index: e
|
|
1692
|
-
|
|
1680
|
+
$index: e,
|
|
1681
|
+
...i,
|
|
1682
|
+
...t
|
|
1683
|
+
}), this.list.push(t);
|
|
1693
1684
|
},
|
|
1694
1685
|
// 行取消
|
|
1695
1686
|
rowCancel(t, e) {
|
|
@@ -1810,7 +1801,7 @@ const Je = Xe.exports, Qe = {
|
|
|
1810
1801
|
return;
|
|
1811
1802
|
}
|
|
1812
1803
|
if (!window.Sortable) {
|
|
1813
|
-
|
|
1804
|
+
$.logs("Sortable");
|
|
1814
1805
|
return;
|
|
1815
1806
|
}
|
|
1816
1807
|
window.Sortable.create(e, {
|
|
@@ -1837,7 +1828,7 @@ const Je = Xe.exports, Qe = {
|
|
|
1837
1828
|
}
|
|
1838
1829
|
}
|
|
1839
1830
|
};
|
|
1840
|
-
var
|
|
1831
|
+
var Ue = function() {
|
|
1841
1832
|
var e = this, i = e._self._c;
|
|
1842
1833
|
return i("div", { staticClass: "avue-crud avue-crud--card" }, [e.tableOption.title ? i(e.tableOption.titleSize || "h2", { tag: "Component", style: e.tableOption.titleStyle }, [e._v(" " + e._s(e.tableOption.title) + " ")]) : e._e(), i("HeaderSearch", { ref: "headerSearch", scopedSlots: e._u([{ key: "search", fn: function(n) {
|
|
1843
1834
|
return [e._t("search", null, null, n)];
|
|
@@ -1874,15 +1865,15 @@ var Ye = function() {
|
|
|
1874
1865
|
}), { key: "menuForm", fn: function(n) {
|
|
1875
1866
|
return [e._t("menuForm", null, null, n)];
|
|
1876
1867
|
} }], null, !0) }), i("DialogColumn", { ref: "dialogColumn" }), i("DialogExcel", { ref: "dialogExcel" }), i("DialogFilter", { ref: "dialogFilter" })], 2);
|
|
1877
|
-
},
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1868
|
+
}, Ge = [], qe = /* @__PURE__ */ f(
|
|
1869
|
+
Ke,
|
|
1870
|
+
Ue,
|
|
1871
|
+
Ge,
|
|
1881
1872
|
!1,
|
|
1882
1873
|
null,
|
|
1883
1874
|
null
|
|
1884
1875
|
);
|
|
1885
|
-
const
|
|
1876
|
+
const ot = qe.exports;
|
|
1886
1877
|
export {
|
|
1887
|
-
|
|
1878
|
+
ot as default
|
|
1888
1879
|
};
|
package/fy-curd/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body,.dialog-form .el-drawer__body{flex-direction:column;flex:auto;padding:0;display:flex}.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body .avue-form,.dialog-form .el-drawer__body .avue-form{flex:auto}.dialog-form .el-drawer .el-drawer__body{height:100%}.dialog-form .el-drawer .avue-form{padding:10px}.avue-crud{width:100%;margin:0 auto}.avue-crud .el-card+.el-card{margin-top:8px}.avue-crud--card .el-card{border:none}.avue-crud--card .el-card__body{padding:0}.avue-crud--card .el-card+.el-card{margin-top:0}.avue-crud .el-table .el-form-item{width:100%;margin-bottom:0;display:inline-block}.avue-crud .el-table .el-form-item__label{position:absolute;left:2px}.avue-crud .el-table .el-form-item__content{font-size:inherit;line-height:inherit}.avue-crud .el-table .el-form-item__error{text-align:left;width:100%;position:relative}.avue-crud .el-dropdown+.el-button{margin-left:10px}.avue-crud .el-checkbox:last-of-type{margin-right:0}.avue-crud .el-range-editor--mini{height:28px}.avue-crud__img{justify-content:center;display:flex}.avue-crud__img>*{object-fit:contain;height:50px;margin-right:5px;font-size:50px}.avue-crud__column .el-checkbox{cursor:move;margin-bottom:10px}.avue-crud__menu{background-color:#fff;justify-content:space-between;width:100%;height:auto;min-height:40px;margin-bottom:5px;display:flex;position:relative;overflow:hidden}.avue-crud__search .el-form-item--medium.el-form-item{margin-bottom:22px}.avue-crud__search .el-form-item--mini.el-form-item,.avue-crud__search .el-form-item--small.el-form-item{margin-bottom:14px}.avue-crud .el-table--mini .avue-crud__color{width:20px;height:20px}.avue-crud .el-table--mini .avue-crud__icon{font-size:20px}.avue-crud .el-table--small .avue-crud__color{width:30px;height:30px}.avue-crud .el-table--small .avue-crud__icon{font-size:30px}.avue-crud th{color
|
|
1
|
+
.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body,.dialog-form .el-drawer__body{flex-direction:column;flex:auto;padding:0;display:flex}.dialog-form .element-dialog.el-dialog.el-dialog-resizeable .el-dialog__body .avue-form,.dialog-form .el-drawer__body .avue-form{flex:auto}.dialog-form .el-drawer .el-drawer__body{height:100%}.dialog-form .el-drawer .avue-form{padding:10px}.avue-crud{width:100%;margin:0 auto}.avue-crud .el-card+.el-card{margin-top:8px}.avue-crud--card .el-card{border:none}.avue-crud--card .el-card__body{padding:0}.avue-crud--card .el-card+.el-card{margin-top:0}.avue-crud .el-table .el-form-item{width:100%;margin-bottom:0;display:inline-block}.avue-crud .el-table .el-form-item__label{position:absolute;left:2px}.avue-crud .el-table .el-form-item__content{font-size:inherit;line-height:inherit}.avue-crud .el-table .el-form-item__error{text-align:left;width:100%;position:relative}.avue-crud .el-dropdown+.el-button{margin-left:10px}.avue-crud .el-checkbox:last-of-type{margin-right:0}.avue-crud .el-range-editor--mini{height:28px}.avue-crud__img{justify-content:center;display:flex}.avue-crud__img>*{object-fit:contain;height:50px;margin-right:5px;font-size:50px}.avue-crud__column .el-checkbox{cursor:move;margin-bottom:10px}.avue-crud__menu{background-color:#fff;justify-content:space-between;width:100%;height:auto;min-height:40px;margin-bottom:5px;display:flex;position:relative;overflow:hidden}.avue-crud__search .el-form-item--medium.el-form-item{margin-bottom:22px}.avue-crud__search .el-form-item--mini.el-form-item,.avue-crud__search .el-form-item--small.el-form-item{margin-bottom:14px}.avue-crud .el-table--mini .avue-crud__color{width:20px;height:20px}.avue-crud .el-table--mini .avue-crud__icon{font-size:20px}.avue-crud .el-table--small .avue-crud__color{width:30px;height:30px}.avue-crud .el-table--small .avue-crud__icon{font-size:30px}.avue-crud th{color:#000000d9;word-break:break-word;background-color:#fafafa}.avue-crud table td{line-height:26px}.avue-crud--indeterminate .is-indeterminate .el-checkbox__inner{background-color:#fff;border-color:#dcdfe6}.avue-crud .el-table th{color:#000000d9;word-break:break-word;background-color:#fafafa}.avue-crud__color{border-radius:5px;width:40px;height:40px;margin:0 auto;display:block}.avue-crud__icon{font-size:45px}.avue-crud__icon--small{width:20px;height:20px;font-size:20px}.avue-crud__ghost{cursor:move;opacity:.4}.is-always-shadow+.avue-crud__pagination{padding:0}.avue-crud__pagination{text-align:right;padding:25px 0 20px 20px;position:relative}.avue-crud__pagination .el-pagination{display:inline-block}.avue-crud__form{padding:0 8px}.avue-crud__empty{padding:20px 0}.avue-crud__empty .el-empty__description{margin-top:0}.avue-crud__header{margin-bottom:10px}.avue-crud__header>.el-button{padding:12px 25px}.avue-crud__title{justify-content:space-between;align-items:center;margin-bottom:20px;font-size:22px;font-weight:700;display:flex}.avue-crud__tip{align-items:center;margin:0 0 8px;font-size:12px;display:flex}.avue-crud__tip-name{margin-right:10px}.avue-crud__tip-count{font-size:16px;font-weight:600}.avue-crud__tip .el-button{margin-bottom:0}.avue-crud__filter-item{justify-content:center;align-items:center;margin-bottom:12px;display:flex}.avue-crud__filter-menu{margin-bottom:20px;padding:0 5px}.avue-crud__filter-label{margin:0 5px;width:120px!important}.avue-crud__filter-symbol{margin:0 5px;width:80px!important}.avue-crud__filter-value{margin:0 5px;width:150px!important}.avue-crud__filter-value .el-date-editor.el-input,.avue-crud__filter-value .el-date-editor.el-input__inner{width:100%}.avue-crud__filter-icon{margin-left:10px}.avue-crud__dialog .el-drawer__header .avue-crud__dialog__menu{padding-right:0}.avue-crud__dialog__header{justify-content:space-between;align-items:center;display:flex}.avue-crud__dialog__menu{padding-right:20px}.avue-crud__dialog__menu i{color:#909399;font-size:15px}.avue-crud__dialog__menu i:hover{color:#409eff}.avue-crud__dialog .el-dialog__body,.avue-crud__dialog .el-drawer__body{padding:20px 20px 5px 10px}.avue-crud__dialog .el-drawer__close-btn{margin-top:2px;font-size:18px}.avue-crud__dialog .el-scrollbar__wrap{overflow-x:hidden}.avue-crud__dialog .avue-form__menu{padding-top:15px}
|