@web-utils/form-ui 1.0.0-beta93 → 1.0.0-beta95
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/chunks/{6dpdFLpv2.mjs → B0i3ywbn2.mjs} +35 -44
- package/chunks/{Cv1iIzzy2.mjs → BanS-yUY2.mjs} +1 -1
- package/chunks/{BZw-uhPj.mjs → C23Qaggp.mjs} +27 -26
- package/chunks/{n1KViU9y2.mjs → CIVnqVAQ2.mjs} +12 -9
- package/chunks/{JUkvPXqc.mjs → CZxWWk4N.mjs} +8 -8
- package/chunks/{BKdkhZkk2.mjs → D7kTwnJK2.mjs} +1 -1
- package/chunks/{C6l7TFPU.mjs → D8C17D2k.mjs} +7 -7
- package/chunks/{DngNYJVa2.mjs → DzfHfYvS2.mjs} +1 -1
- package/chunks/{5BOS55Lv2.mjs → NYkLWtyw2.mjs} +1 -1
- package/chunks/{BpZ0yk642.mjs → bBwzYT0T2.mjs} +23 -18
- package/chunks/{-d4DuTH12.mjs → dgRz6V6p2.mjs} +1 -1
- package/chunks/qIca9lDu2.mjs +108 -0
- package/chunks/{DRkvaPr32.mjs → q_m3gw_j2.mjs} +11 -8
- package/chunks/{BTVXdtOG.mjs → sCsjgWvR.mjs} +104 -95
- package/chunks/{D6B1lNKn2.mjs → v2GLQDzI2.mjs} +18 -18
- package/data-table-picker/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-input/index.d.ts +3 -3
- package/form-input/index.mjs +1 -1
- package/form-input-email/index.d.ts +3 -3
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +3 -3
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +2 -2
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +3 -3
- package/form-input-phone-number/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-table/index.d.ts +2 -0
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +2 -2
- package/form-table-plus/index.mjs +1 -1
- package/form-textarea/index.d.ts +1 -1
- package/form-textarea/index.mjs +1 -1
- package/index.mjs +15 -15
- package/package.json +3 -4
- package/pageable-table/index.d.ts +2 -2
- package/pageable-table/index.mjs +1 -1
- package/props/input-number.d.ts +1 -1
- package/props/input-number.mjs +5 -1
- package/props/input.d.ts +1 -1
- package/props/input.mjs +3 -2
- package/sub-table/index.d.ts +2 -0
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.d.ts +2 -0
- package/sub-table-plus/index.mjs +1 -1
- package/table-view/index.d.ts +3 -0
- package/table-view/index.mjs +13 -18
- package/vue/directives/chat-drag.d.ts +2 -0
- package/vue/directives/chat-drag.mjs +12 -0
- package/vue/directives/click-outside.d.ts +10 -0
- package/vue/directives/click-outside.mjs +36 -0
- package/vue/directives/dialog-drag.d.ts +2 -0
- package/vue/directives/dialog-drag.mjs +15 -0
- package/vue/directives/drag-move.d.ts +10 -0
- package/vue/directives/drag-move.mjs +27 -0
- package/vue/directives/fix-fixed-column-height.d.ts +7 -0
- package/vue/directives/fix-fixed-column-height.mjs +20 -0
- package/vue/directives/index.d.ts +7 -0
- package/vue/directives/index.mjs +8 -0
- package/vue/directives/resize.d.ts +2 -0
- package/vue/directives/resize.mjs +12 -0
- package/vue/directives/scroll-bottom.d.ts +5 -0
- package/vue/directives/scroll-bottom.mjs +6 -0
- package/vue/hooks/index.d.ts +3 -0
- package/vue/hooks/index.mjs +4 -0
- package/{hook → vue/hooks}/useDictionary.d.ts +1 -1
- package/{hook → vue/hooks}/useDictionary.mjs +2 -2
- package/vue/hooks/useEventBus.d.ts +1 -0
- package/vue/hooks/useEventBus.mjs +20 -0
- package/{hook → vue/hooks}/useVisibilityChange.mjs +1 -1
- package/vue/index.d.ts +3 -0
- package/vue/index.mjs +83 -0
- package/vue/mixin/bus.d.ts +5 -0
- package/vue/mixin/bus.mjs +33 -0
- package/vue/mixin/dialog.d.ts +38 -0
- package/vue/mixin/dialog.mjs +2 -0
- package/vue/mixin/index.d.ts +6 -0
- package/vue/mixin/index.mjs +7 -0
- package/vue/mixin/message.d.ts +2 -0
- package/vue/mixin/message.mjs +27 -0
- package/vue/mixin/multi-items.d.ts +43 -0
- package/vue/mixin/multi-items.mjs +70 -0
- package/vue/mixin/page.d.ts +28 -0
- package/vue/mixin/page.mjs +38 -0
- package/vue/mixin/resize-mixin.d.ts +15 -0
- package/vue/mixin/resize-mixin.mjs +24 -0
- package/web-types.json +1 -1
- package/chunks/DML17Idh2.mjs +0 -108
- package/column/index.d.ts +0 -38
- package/column-default/index.d.ts +0 -77
- package/column-dynamic/index.d.ts +0 -8
- package/column-menu/index.d.ts +0 -81
- package/column-slot/index.d.ts +0 -21
- package/dialog-column/index.d.ts +0 -19
- package/dialog-excel/index.d.ts +0 -16
- package/dialog-filter/index.d.ts +0 -20
- package/element-base-info/index.d.ts +0 -35
- package/element-form/index.d.ts +0 -45
- package/element-listeners/index.d.ts +0 -42
- package/element-multi-instance/index.d.ts +0 -29
- package/element-other-config/index.d.ts +0 -14
- package/element-properties/index.d.ts +0 -21
- package/element-task-config/index.d.ts +0 -89
- package/flow-condition/index.d.ts +0 -16
- package/form-group/index.d.ts +0 -62
- package/form-temp/index.d.ts +0 -11286
- package/fy-dialog-form/index.d.ts +0 -1014
- package/fy-form-menu/index.d.ts +0 -9
- package/header-menu/index.d.ts +0 -86
- package/header-search/index.d.ts +0 -32
- package/process-designer/index.d.ts +0 -176
- package/process-palette/index.d.ts +0 -9
- package/properties-panel/index.d.ts +0 -97
- package/receive-task/index.d.ts +0 -20
- package/script-task/index.d.ts +0 -21
- package/signal-and-message/index.d.ts +0 -22
- package/table-column-filterable/index.d.ts +0 -163
- package/table-column-setting-panel/index.d.ts +0 -14
- package/table-page/index.d.ts +0 -23
- package/trigger/index.d.ts +0 -25
- package/user-task/index.d.ts +0 -24
- package/user-task-listeners/index.d.ts +0 -45
- package/vue-tree-select-arrow/index.d.ts +0 -2
- package/vue-tree-select-control/index.d.ts +0 -2
- package/vue-tree-select-delete/index.d.ts +0 -2
- package/vue-tree-select-hidden-fields/index.d.ts +0 -2
- package/vue-tree-select-input/index.d.ts +0 -2
- package/vue-tree-select-menu/index.d.ts +0 -2
- package/vue-tree-select-menu-portal/index.d.ts +0 -2
- package/vue-tree-select-multi-value/index.d.ts +0 -2
- package/vue-tree-select-multi-value-item/index.d.ts +0 -12
- package/vue-tree-select-option/index.d.ts +0 -12
- package/vue-tree-select-placeholder/index.d.ts +0 -2
- package/vue-tree-select-portal-target/index.d.ts +0 -2
- package/vue-tree-select-single-value/index.d.ts +0 -2
- /package/{hook → vue/hooks}/useVisibilityChange.d.ts +0 -0
|
@@ -5,11 +5,13 @@ import s from "../element-resize-observer/index.mjs";
|
|
|
5
5
|
import { getDictLabel as c } from "../helper/dictionary.mjs";
|
|
6
6
|
import { t as l } from "./C_QfuxeQ.mjs";
|
|
7
7
|
import { t as u } from "./BdrgibgS.mjs";
|
|
8
|
-
import { useVisibilityChange as ee } from "../
|
|
9
|
-
import {
|
|
8
|
+
import { useVisibilityChange as ee } from "../vue/hooks/useVisibilityChange.mjs";
|
|
9
|
+
import { useEventBus as te } from "../vue/hooks/useEventBus.mjs";
|
|
10
|
+
import "../vue/index.mjs";
|
|
11
|
+
import { ElCheckbox as d, ElDrawer as f, ElEmpty as p, ElMessage as ne, ElPagination as re, ElRadio as m, ElTable as h, ElTableColumn as g } from "element-plus/es";
|
|
10
12
|
import "element-plus/es/components/base/style/css";
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import {
|
|
13
|
+
import { Fragment as ie, computed as _, createBlock as v, createTextVNode as y, createVNode as b, inject as x, isVNode as S, mergeModels as C, mergeProps as w, nextTick as ae, onUpdated as oe, openBlock as T, provide as E, reactive as D, ref as O, toDisplayString as k, useModel as A, useTemplateRef as se, watch as j, withCtx as M } from "vue";
|
|
14
|
+
import { isArray as N, isFunction as ce, isString as P } from "@web-utils/core";
|
|
13
15
|
import "element-plus/es/components/message/style/css";
|
|
14
16
|
import "element-plus/es/components/drawer/style/css";
|
|
15
17
|
import "element-plus/es/components/table/style/css";
|
|
@@ -18,11 +20,10 @@ import "element-plus/es/components/table-column/style/css";
|
|
|
18
20
|
import "element-plus/es/components/pagination/style/css";
|
|
19
21
|
import "element-plus/es/components/empty/style/css";
|
|
20
22
|
import "element-plus/es/components/radio/style/css";
|
|
21
|
-
import {
|
|
22
|
-
import { uuid as ce } from "@web-utils/integrations/uuid";
|
|
23
|
+
import { uuid as le } from "@web-utils/integrations/uuid";
|
|
23
24
|
import "../pageable-table/style.css";
|
|
24
25
|
//#region src/components/table/components/TableColumnSettingPanel.vue
|
|
25
|
-
var
|
|
26
|
+
var F = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
26
27
|
__name: "TableColumnSettingPanel",
|
|
27
28
|
props: /* @__PURE__ */ C({ columns: {
|
|
28
29
|
type: Array,
|
|
@@ -108,12 +109,12 @@ var P = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
|
108
109
|
});
|
|
109
110
|
//#endregion
|
|
110
111
|
//#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
|
|
111
|
-
function
|
|
112
|
+
function I(e) {
|
|
112
113
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !S(e);
|
|
113
114
|
}
|
|
114
115
|
//#endregion
|
|
115
116
|
//#region src/components/table/components/TableColumnFilterable.vue
|
|
116
|
-
var
|
|
117
|
+
var ue = {
|
|
117
118
|
name: "TableColumnFilterable",
|
|
118
119
|
props: { ...l },
|
|
119
120
|
setup(t, { slots: n }) {
|
|
@@ -128,9 +129,9 @@ var le = {
|
|
|
128
129
|
return () => b(u, w(i.value, {
|
|
129
130
|
filterMethod: o.value,
|
|
130
131
|
filters: s.value
|
|
131
|
-
}),
|
|
132
|
+
}), I(n) ? n : { default: () => [n] });
|
|
132
133
|
}
|
|
133
|
-
},
|
|
134
|
+
}, L = {
|
|
134
135
|
data: {
|
|
135
136
|
type: Array,
|
|
136
137
|
default: () => []
|
|
@@ -252,7 +253,7 @@ var le = {
|
|
|
252
253
|
type: String,
|
|
253
254
|
default: "45"
|
|
254
255
|
},
|
|
255
|
-
viewId: String,
|
|
256
|
+
viewId: [String, Array],
|
|
256
257
|
url: String,
|
|
257
258
|
hideOnSinglePage: Boolean,
|
|
258
259
|
api: Function,
|
|
@@ -306,7 +307,7 @@ var le = {
|
|
|
306
307
|
selectExport: Boolean,
|
|
307
308
|
useVisibilityChange: Boolean,
|
|
308
309
|
rowDbClick: Function
|
|
309
|
-
},
|
|
310
|
+
}, R = {
|
|
310
311
|
data: !0,
|
|
311
312
|
rowDbClick: !0,
|
|
312
313
|
selectionWidth: !0,
|
|
@@ -333,38 +334,38 @@ var le = {
|
|
|
333
334
|
columns: !0,
|
|
334
335
|
payloadStyle: !0,
|
|
335
336
|
disabledRowKeys: !0
|
|
336
|
-
},
|
|
337
|
+
}, de = (e) => R[e] !== !0;
|
|
337
338
|
//#endregion
|
|
338
339
|
//#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
|
|
339
|
-
function
|
|
340
|
+
function fe(e) {
|
|
340
341
|
let t = "";
|
|
341
342
|
for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
|
|
342
343
|
return t;
|
|
343
344
|
}
|
|
344
|
-
var
|
|
345
|
+
var z = {
|
|
345
346
|
loading: 1,
|
|
346
347
|
error: -1,
|
|
347
348
|
empty: 2,
|
|
348
349
|
success: 0
|
|
349
|
-
},
|
|
350
|
+
}, B = {
|
|
350
351
|
name: "PageableTable",
|
|
351
352
|
emits: { "page-loaded": null },
|
|
352
353
|
inheritAttrs: !1,
|
|
353
|
-
props: { ...
|
|
354
|
+
props: { ...L },
|
|
354
355
|
setup(e, { emit: l, attrs: u, slots: d, expose: f }) {
|
|
355
356
|
E(i, e.rowDbClick);
|
|
356
|
-
let v =
|
|
357
|
+
let v = se("table"), x = O({
|
|
357
358
|
hideProps: {},
|
|
358
359
|
fixedProps: {},
|
|
359
360
|
filterableProps: {},
|
|
360
361
|
sortableProps: {}
|
|
361
|
-
}), S = O(
|
|
362
|
+
}), S = O(z.empty), C = O([]), T = O(null), D = O(!1), k = O([]), A = O({
|
|
362
363
|
total: 0,
|
|
363
364
|
page: 1,
|
|
364
365
|
limit: e.pageSize,
|
|
365
366
|
ascs: e.ascs,
|
|
366
367
|
descs: e.descs
|
|
367
|
-
}), M = O(0),
|
|
368
|
+
}), M = O(0), I = O(0), L = _(() => e.reloadOnModelChange ? {
|
|
368
369
|
asc: A.value.ascs,
|
|
369
370
|
desc: A.value.descs,
|
|
370
371
|
page: A.value.page,
|
|
@@ -375,14 +376,14 @@ var R = {
|
|
|
375
376
|
desc: A.value.descs,
|
|
376
377
|
page: A.value.page,
|
|
377
378
|
limit: A.value.limit
|
|
378
|
-
}),
|
|
379
|
+
}), R = _(() => {
|
|
379
380
|
var e;
|
|
380
381
|
let t = `${(A.value.page - 1) * A.value.limit + (((e = C.value) == null ? void 0 : e.length) ?? 0)}`;
|
|
381
382
|
return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
|
|
382
|
-
}),
|
|
383
|
+
}), B = () => {
|
|
383
384
|
V();
|
|
384
|
-
},
|
|
385
|
-
if (e.clickRowSelect &&
|
|
385
|
+
}, pe = (t, n, r) => {
|
|
386
|
+
if (e.clickRowSelect && X(t)) {
|
|
386
387
|
var i;
|
|
387
388
|
if (k.value.find((n) => n[e.rowKey] === t[e.rowKey])) {
|
|
388
389
|
var a;
|
|
@@ -398,20 +399,20 @@ var R = {
|
|
|
398
399
|
return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
|
|
399
400
|
});
|
|
400
401
|
n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
|
|
401
|
-
},
|
|
402
|
-
M.value = t,
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
},
|
|
402
|
+
}, me = ({ scrollLeft: e, scrollTop: t }) => {
|
|
403
|
+
M.value = t, I.value = e;
|
|
404
|
+
}, he = () => {
|
|
405
|
+
be(M.value, I.value);
|
|
406
|
+
}, ge = (e) => n(fe(e)), _e = ({ prop: t, order: n }) => {
|
|
406
407
|
e.payloadStyle === "body" ? (A.value.ascs = n === "ascending" ? [t] : e.ascs, A.value.descs = n === "descending" ? [t] : e.descs) : (A.value.ascs = n === "ascending" ? t : "", A.value.descs = n === "descending" ? t : "");
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
},
|
|
408
|
+
}, ve = (e) => {
|
|
409
|
+
X(e) && (T.value = e);
|
|
410
|
+
}, ye = (e) => {
|
|
410
411
|
k.value = e;
|
|
411
|
-
},
|
|
412
|
+
}, H = () => {
|
|
412
413
|
var e;
|
|
413
414
|
(e = v.value) == null || e.clearSelection();
|
|
414
|
-
},
|
|
415
|
+
}, U = () => {
|
|
415
416
|
let t;
|
|
416
417
|
return t = e.payloadStyle === "body" ? {
|
|
417
418
|
page: {
|
|
@@ -426,20 +427,20 @@ var R = {
|
|
|
426
427
|
size: A.value.limit,
|
|
427
428
|
...e.model || {}
|
|
428
429
|
}, e.selectExport && (e.rowKey ? t.exportKeys = k.value.map((t) => t[e.rowKey]) : t.exportKeys = k.value.map((e) => C.value.indexOf(e))), t;
|
|
429
|
-
},
|
|
430
|
+
}, W = async (t = !0) => {
|
|
430
431
|
if (!e.api && e.data !== !1) {
|
|
431
432
|
var n;
|
|
432
433
|
C.value = e.data, A.value.page = 1, A.value.total = (n = C.value) == null ? void 0 : n.length, A.value.limit = A.value.total < 1 ? e.pageSize : A.value.total;
|
|
433
434
|
return;
|
|
434
435
|
}
|
|
435
436
|
t !== !1 && (C.value = []);
|
|
436
|
-
let r, i =
|
|
437
|
+
let r, i = U();
|
|
437
438
|
if (e.api) {
|
|
438
|
-
t !== !1 && (S.value =
|
|
439
|
+
t !== !1 && (S.value = z.loading);
|
|
439
440
|
try {
|
|
440
441
|
e.api && (r = await e.api(i));
|
|
441
442
|
} catch {
|
|
442
|
-
S.value =
|
|
443
|
+
S.value = z.error;
|
|
443
444
|
return;
|
|
444
445
|
}
|
|
445
446
|
} else if (e.data) r = { data: { data: {
|
|
@@ -454,15 +455,15 @@ var R = {
|
|
|
454
455
|
return;
|
|
455
456
|
}
|
|
456
457
|
let { data: { data: a } = {} } = r || {}, { total: o, records: s } = a || {};
|
|
457
|
-
A.value.total = Number(o), C.value = await
|
|
458
|
-
},
|
|
459
|
-
|
|
458
|
+
A.value.total = Number(o), C.value = await xe(s), !s || !s.length ? S.value = z.empty : S.value = z.success, G(), l("page-loaded", a);
|
|
459
|
+
}, G = () => {
|
|
460
|
+
ae(() => {
|
|
460
461
|
var e;
|
|
461
462
|
(e = v.value) == null || e.doLayout();
|
|
462
463
|
});
|
|
463
|
-
},
|
|
464
|
-
await
|
|
465
|
-
},
|
|
464
|
+
}, K = async (e) => {
|
|
465
|
+
await W(e);
|
|
466
|
+
}, q = () => {
|
|
466
467
|
A.value = {
|
|
467
468
|
total: 0,
|
|
468
469
|
page: 1,
|
|
@@ -470,12 +471,12 @@ var R = {
|
|
|
470
471
|
ascs: e.ascs,
|
|
471
472
|
descs: e.descs
|
|
472
473
|
};
|
|
473
|
-
},
|
|
474
|
+
}, be = (e, t) => {
|
|
474
475
|
v.value.setScrollTop(e), v.value.setScrollLeft(t);
|
|
475
|
-
},
|
|
476
|
+
}, J = (e, t) => {
|
|
476
477
|
var n;
|
|
477
478
|
(n = v.value) == null || n.toggleRowSelection(e, t);
|
|
478
|
-
},
|
|
479
|
+
}, xe = async (t) => {
|
|
479
480
|
if (!t) return [];
|
|
480
481
|
let n = [...t];
|
|
481
482
|
for (let t of n) for (let n of e.dicOptions) if (t[`$${n.prop}`] = t[n.prop], n.dicData) {
|
|
@@ -483,26 +484,34 @@ var R = {
|
|
|
483
484
|
t[n.prop] = ((r = n.dicData.find((e) => e.modelValue === t[n.prop])) == null ? void 0 : r.label) || t[n.prop];
|
|
484
485
|
} else t[n.prop] = await c(n.dicType, t[n.prop]);
|
|
485
486
|
return n;
|
|
486
|
-
},
|
|
487
|
+
}, Y = () => {
|
|
487
488
|
D.value = !D.value;
|
|
488
|
-
},
|
|
489
|
+
}, X = (t) => {
|
|
489
490
|
var n;
|
|
490
491
|
return !(t != null && t.disabled) && !((n = e.disabledRowKeys) != null && n.includes(t == null ? void 0 : t[e.rowKey]));
|
|
491
492
|
};
|
|
492
493
|
e.useVisibilityChange && ee({ onPageVisible: () => {
|
|
493
|
-
|
|
494
|
-
} })
|
|
495
|
-
|
|
496
|
-
|
|
494
|
+
K(!1);
|
|
495
|
+
} });
|
|
496
|
+
let Z = _(() => {
|
|
497
|
+
let t = [];
|
|
498
|
+
return P(e.viewId) ? t = e.viewId.split(",") : N(e.viewId) && (t = e.viewId), t.filter((e) => e);
|
|
499
|
+
});
|
|
500
|
+
te("reloadTable", (e) => {
|
|
501
|
+
if (P(e) || N(e)) {
|
|
502
|
+
let t = e;
|
|
503
|
+
P(e) && (t = e.split(",")), Z.value.some((e) => t.includes(e)) && (console.info(`reloadTable:${Z.value.join()}`), W());
|
|
504
|
+
} else console.warn("`viewId`的类型必须是字符串或数组");
|
|
505
|
+
}), j(() => e.url, q), j(() => e.api, q), j(() => e.data, W), j(() => L.value, W, {
|
|
497
506
|
deep: !0,
|
|
498
507
|
immediate: e.immediate
|
|
499
508
|
});
|
|
500
509
|
let Q = (t) => {
|
|
501
510
|
let n;
|
|
502
|
-
if (
|
|
511
|
+
if (ce(e.rowKey)) {
|
|
503
512
|
if (n = e.rowKey(t), n) return n;
|
|
504
513
|
} else if (e.rowKey && (n = t[e.rowKey], n)) return n;
|
|
505
|
-
return n = "__rowKey", t[n] || (t[n] =
|
|
514
|
+
return n = "__rowKey", t[n] || (t[n] = le(!1)), t[n];
|
|
506
515
|
}, $ = _(() => {
|
|
507
516
|
let t = [];
|
|
508
517
|
if (d.default) {
|
|
@@ -528,31 +537,31 @@ var R = {
|
|
|
528
537
|
}
|
|
529
538
|
return t;
|
|
530
539
|
});
|
|
531
|
-
|
|
532
|
-
|
|
540
|
+
oe(() => {
|
|
541
|
+
he();
|
|
533
542
|
}), f({
|
|
534
543
|
records: C,
|
|
535
|
-
getPage:
|
|
536
|
-
refresh:
|
|
537
|
-
reload:
|
|
538
|
-
doLayout:
|
|
539
|
-
clearSelection:
|
|
540
|
-
toggleRowSelection:
|
|
541
|
-
toggleSettings:
|
|
544
|
+
getPage: W,
|
|
545
|
+
refresh: K,
|
|
546
|
+
reload: q,
|
|
547
|
+
doLayout: G,
|
|
548
|
+
clearSelection: H,
|
|
549
|
+
toggleRowSelection: J,
|
|
550
|
+
toggleSettings: Y,
|
|
542
551
|
currentRow: T,
|
|
543
|
-
getPageQuery:
|
|
552
|
+
getPageQuery: U,
|
|
544
553
|
tableColumns: $
|
|
545
554
|
}), E(a, {
|
|
546
555
|
records: C,
|
|
547
|
-
getPage:
|
|
548
|
-
refresh:
|
|
549
|
-
reload:
|
|
550
|
-
doLayout:
|
|
551
|
-
clearSelection:
|
|
552
|
-
toggleRowSelection:
|
|
553
|
-
toggleSettings:
|
|
556
|
+
getPage: W,
|
|
557
|
+
refresh: K,
|
|
558
|
+
reload: q,
|
|
559
|
+
doLayout: G,
|
|
560
|
+
clearSelection: H,
|
|
561
|
+
toggleRowSelection: J,
|
|
562
|
+
toggleSettings: Y
|
|
554
563
|
});
|
|
555
|
-
let { autoBindProps:
|
|
564
|
+
let { autoBindProps: Se, listeners: Ce } = t(e, { predicate: de });
|
|
556
565
|
return () => b("div", {
|
|
557
566
|
class: [
|
|
558
567
|
"pageable-table",
|
|
@@ -562,7 +571,7 @@ var R = {
|
|
|
562
571
|
style: u.style
|
|
563
572
|
}, [b("div", { class: "pageable-table-wrapper" }, [
|
|
564
573
|
d.toolbar && d.toolbar({ selectedRows: k.value }),
|
|
565
|
-
b(h, w(
|
|
574
|
+
b(h, w(Ce.value, Se.value, {
|
|
566
575
|
ref: "table",
|
|
567
576
|
data: C.value,
|
|
568
577
|
class: ["flex-item", { "header-bold": e.headerBold }],
|
|
@@ -571,20 +580,20 @@ var R = {
|
|
|
571
580
|
rowKey: Q,
|
|
572
581
|
size: "default",
|
|
573
582
|
height: e.autoHeight ? null : "auto",
|
|
574
|
-
onScroll:
|
|
575
|
-
onSortChange:
|
|
576
|
-
onRowDblclick:
|
|
577
|
-
onRowClick:
|
|
583
|
+
onScroll: me,
|
|
584
|
+
onSortChange: _e,
|
|
585
|
+
onRowDblclick: B,
|
|
586
|
+
onRowClick: pe,
|
|
578
587
|
onCellClick: V,
|
|
579
|
-
onCurrentChange:
|
|
580
|
-
onSelectionChange:
|
|
588
|
+
onCurrentChange: ve,
|
|
589
|
+
onSelectionChange: ye
|
|
581
590
|
}), {
|
|
582
591
|
default: () => {
|
|
583
592
|
let t = [];
|
|
584
593
|
if (e.multiple && e.selection && t.push(b(g, {
|
|
585
594
|
key: "selection",
|
|
586
595
|
type: "selection",
|
|
587
|
-
selectable:
|
|
596
|
+
selectable: X,
|
|
588
597
|
width: e.selectionWidth,
|
|
589
598
|
align: "center"
|
|
590
599
|
}, null)), !e.multiple && e.selection && t.push(b(g, {
|
|
@@ -600,20 +609,20 @@ var R = {
|
|
|
600
609
|
}, { default: () => [b("span", null, null)] }),
|
|
601
610
|
default: ({ row: e }) => b(m, {
|
|
602
611
|
label: !0,
|
|
603
|
-
disabled: !
|
|
612
|
+
disabled: !X(e),
|
|
604
613
|
modelValue: T.value && Q(T.value) === Q(e)
|
|
605
614
|
}, { default: () => [b("span", null, null)] })
|
|
606
615
|
})), e.index && t.push(b(g, {
|
|
607
616
|
key: "index",
|
|
608
617
|
type: "index",
|
|
609
618
|
label: "序号",
|
|
610
|
-
width:
|
|
619
|
+
width: R.value,
|
|
611
620
|
align: "center"
|
|
612
621
|
}, { default: ({ $index: e }) => (A.value.page - 1) * A.value.limit + e + 1 || e + 1 })), $.value.length > 0) for (let e = 0; e < $.value.length; e++) {
|
|
613
622
|
let n = $.value[e];
|
|
614
623
|
if (n.hide) continue;
|
|
615
624
|
let { prop: r, headerSlot: i, defaultSlot: a, expandSlot: o, iconSlot: s, ...c } = n;
|
|
616
|
-
t.push(b(
|
|
625
|
+
t.push(b(ue, w(c, { prop: r }), {
|
|
617
626
|
default: d[r] ? ({ row: e }) => d[r]({ row: e }) : a,
|
|
618
627
|
header: i,
|
|
619
628
|
expand: o,
|
|
@@ -625,21 +634,21 @@ var R = {
|
|
|
625
634
|
label: "点击表格行复制模板"
|
|
626
635
|
}, { default: ({ row: e }) => b("pre", {
|
|
627
636
|
class: "pointer",
|
|
628
|
-
onClick: () =>
|
|
637
|
+
onClick: () => ge(e)
|
|
629
638
|
}, [JSON.stringify(e, null, " ")]) }));
|
|
630
639
|
return t;
|
|
631
640
|
},
|
|
632
|
-
empty: () => d.empty ? d.empty() : b(
|
|
633
|
-
S.value ===
|
|
634
|
-
S.value ===
|
|
641
|
+
empty: () => d.empty ? d.empty() : b(ie, null, [
|
|
642
|
+
S.value === z.loading && b("span", { class: "pageable-table-loading" }, [b("i", { class: "table-status-icon el-icon-loading" }, null), y("加载中...")]),
|
|
643
|
+
S.value === z.error && b(o, {
|
|
635
644
|
class: "pageable-table-error",
|
|
636
|
-
onClick:
|
|
645
|
+
onClick: K
|
|
637
646
|
}, { default: () => [b("i", { class: "table-status-icon el-icon-error" }, null), y("加载失败,点击重试!")] }),
|
|
638
|
-
S.value !==
|
|
647
|
+
S.value !== z.loading && S.value !== z.error && b(p, null, null)
|
|
639
648
|
]),
|
|
640
649
|
append: d.append
|
|
641
650
|
}),
|
|
642
|
-
e.paging && b(
|
|
651
|
+
e.paging && b(re, {
|
|
643
652
|
"current-page": A.value.page,
|
|
644
653
|
"onUpdate:current-page": (e) => A.value.page = e,
|
|
645
654
|
"hide-on-single-page": e.hideOnSinglePage,
|
|
@@ -659,15 +668,15 @@ var R = {
|
|
|
659
668
|
background: !0,
|
|
660
669
|
layout: "total, sizes, prev, pager, next, jumper"
|
|
661
670
|
}, null),
|
|
662
|
-
b(
|
|
671
|
+
b(F, {
|
|
663
672
|
settings: x.value,
|
|
664
673
|
"onUpdate:settings": (e) => x.value = e,
|
|
665
674
|
modelValue: D.value,
|
|
666
675
|
"onUpdate:modelValue": (e) => D.value = e,
|
|
667
676
|
columns: $.value
|
|
668
677
|
}, null)
|
|
669
|
-
]), b(s, { onNotify:
|
|
678
|
+
]), b(s, { onNotify: G }, null)]);
|
|
670
679
|
}
|
|
671
680
|
};
|
|
672
681
|
//#endregion
|
|
673
|
-
export {
|
|
682
|
+
export { B as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useDictionary as e } from "../vue/hooks/useDictionary.mjs";
|
|
2
|
+
import { n as t, o as n } from "./_7MDfW_y.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/radio-group.mjs";
|
|
4
4
|
import { ElRadio as a, ElRadioButton as o, ElRadioGroup as s } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
@@ -17,27 +17,27 @@ var m = {
|
|
|
17
17
|
name: "FormRadioGroup",
|
|
18
18
|
inheritAttrs: !1,
|
|
19
19
|
props: { ...r },
|
|
20
|
-
emits: { ...
|
|
21
|
-
setup(
|
|
22
|
-
let h = f(
|
|
20
|
+
emits: { ...t },
|
|
21
|
+
setup(t, { slots: r, attrs: u, emit: m }) {
|
|
22
|
+
let h = f(t, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = n(t, {
|
|
23
23
|
emit: m,
|
|
24
24
|
slots: r,
|
|
25
25
|
attrs: u,
|
|
26
26
|
predicate: i,
|
|
27
27
|
messagePrefix: "请选择"
|
|
28
|
-
}), b = c(() =>
|
|
28
|
+
}), b = c(() => t.classic ? "label" : t.labelProp), x = c(() => t.classic ? "value" : t.valueProp), { dictItems: S } = e(t), C = c(() => t.dictType ? S.value : t.gender ? [{
|
|
29
29
|
[b.value]: "男",
|
|
30
|
-
[x.value]:
|
|
30
|
+
[x.value]: t.chinese ? "男" : t.typing ? 1 : "1"
|
|
31
31
|
}, {
|
|
32
32
|
[b.value]: "女",
|
|
33
|
-
[x.value]:
|
|
34
|
-
}] :
|
|
33
|
+
[x.value]: t.chinese ? "女" : t.typing ? 2 : "2"
|
|
34
|
+
}] : t.confirm ? [{
|
|
35
35
|
[b.value]: "是",
|
|
36
|
-
[x.value]:
|
|
36
|
+
[x.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
|
|
37
37
|
}, {
|
|
38
38
|
[b.value]: "否",
|
|
39
|
-
[x.value]:
|
|
40
|
-
}] :
|
|
39
|
+
[x.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
|
|
40
|
+
}] : t.options);
|
|
41
41
|
return () => g({ vNodes: l(s, d(v.value, y.value, {
|
|
42
42
|
modelValue: h.value,
|
|
43
43
|
"onUpdate:modelValue": (e) => h.value = e,
|
|
@@ -45,14 +45,14 @@ var m = {
|
|
|
45
45
|
}), {
|
|
46
46
|
...r,
|
|
47
47
|
default: r.default || (() => {
|
|
48
|
-
var
|
|
49
|
-
return (
|
|
50
|
-
key:
|
|
51
|
-
value:
|
|
48
|
+
var e;
|
|
49
|
+
return (e = C.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" || t.radioType === "button" ? l(o, {
|
|
50
|
+
key: e,
|
|
51
|
+
value: e,
|
|
52
52
|
disabled: r
|
|
53
53
|
}, p(n) ? n : { default: () => [n] }) : l(a, {
|
|
54
|
-
key:
|
|
55
|
-
value:
|
|
54
|
+
key: e,
|
|
55
|
+
value: e,
|
|
56
56
|
disabled: r
|
|
57
57
|
}, p(n) ? n : { default: () => [n] }));
|
|
58
58
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../chunks/B1MSrc6f.mjs";
|
|
2
2
|
import { t } from "../chunks/D9IZqJJJ.mjs";
|
|
3
3
|
import { t as n } from "../chunks/DTeHffqJ.mjs";
|
|
4
|
-
import { t as r } from "../chunks/
|
|
4
|
+
import { t as r } from "../chunks/sCsjgWvR.mjs";
|
|
5
5
|
import { ElMessage as i } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import { createBlock as a, createTextVNode as o, createVNode as s, openBlock as c, renderSlot as l, withCtx as u } from "vue";
|
package/form-cascader/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/D8C17D2k.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CZxWWk4N.mjs";
|
|
2
2
|
export { e as default };
|
package/form-input/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
34
34
|
prefixIcon: (ObjectConstructor | StringConstructor)[];
|
|
35
35
|
suffixIcon: (ObjectConstructor | StringConstructor)[];
|
|
36
36
|
rows: {
|
|
37
|
-
type: NumberConstructor;
|
|
37
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
38
38
|
default: number;
|
|
39
39
|
};
|
|
40
40
|
autosize: (ObjectConstructor | BooleanConstructor)[];
|
|
@@ -207,7 +207,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
207
207
|
prefixIcon: (ObjectConstructor | StringConstructor)[];
|
|
208
208
|
suffixIcon: (ObjectConstructor | StringConstructor)[];
|
|
209
209
|
rows: {
|
|
210
|
-
type: NumberConstructor;
|
|
210
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
211
211
|
default: number;
|
|
212
212
|
};
|
|
213
213
|
autosize: (ObjectConstructor | BooleanConstructor)[];
|
|
@@ -366,13 +366,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
366
366
|
wrapFormItem: boolean;
|
|
367
367
|
clearable: boolean;
|
|
368
368
|
validateEvent: boolean;
|
|
369
|
+
rows: string | number;
|
|
369
370
|
readonlyGrey: boolean;
|
|
370
371
|
picker: boolean;
|
|
371
372
|
maxlength: string | number;
|
|
372
373
|
showWordLimit: boolean;
|
|
373
374
|
wordLimitPosition: string;
|
|
374
375
|
showPassword: boolean;
|
|
375
|
-
rows: number;
|
|
376
376
|
autocomplete: string;
|
|
377
377
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
378
378
|
export default _default;
|
package/form-input/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/C23Qaggp.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -34,7 +34,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
34
34
|
prefixIcon: (ObjectConstructor | StringConstructor)[];
|
|
35
35
|
suffixIcon: (ObjectConstructor | StringConstructor)[];
|
|
36
36
|
rows: {
|
|
37
|
-
type: NumberConstructor;
|
|
37
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
38
38
|
default: number;
|
|
39
39
|
};
|
|
40
40
|
autosize: (ObjectConstructor | BooleanConstructor)[];
|
|
@@ -205,7 +205,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
205
205
|
prefixIcon: (ObjectConstructor | StringConstructor)[];
|
|
206
206
|
suffixIcon: (ObjectConstructor | StringConstructor)[];
|
|
207
207
|
rows: {
|
|
208
|
-
type: NumberConstructor;
|
|
208
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
209
209
|
default: number;
|
|
210
210
|
};
|
|
211
211
|
autosize: (ObjectConstructor | BooleanConstructor)[];
|
|
@@ -364,13 +364,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
364
364
|
wrapFormItem: boolean;
|
|
365
365
|
clearable: boolean;
|
|
366
366
|
validateEvent: boolean;
|
|
367
|
+
rows: string | number;
|
|
367
368
|
readonlyGrey: boolean;
|
|
368
369
|
picker: boolean;
|
|
369
370
|
maxlength: string | number;
|
|
370
371
|
showWordLimit: boolean;
|
|
371
372
|
wordLimitPosition: string;
|
|
372
373
|
showPassword: boolean;
|
|
373
|
-
rows: number;
|
|
374
374
|
autocomplete: string;
|
|
375
375
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
376
376
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/NYkLWtyw2.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -34,7 +34,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
34
34
|
prefixIcon: (ObjectConstructor | StringConstructor)[];
|
|
35
35
|
suffixIcon: (ObjectConstructor | StringConstructor)[];
|
|
36
36
|
rows: {
|
|
37
|
-
type: NumberConstructor;
|
|
37
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
38
38
|
default: number;
|
|
39
39
|
};
|
|
40
40
|
autosize: (ObjectConstructor | BooleanConstructor)[];
|
|
@@ -205,7 +205,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
205
205
|
prefixIcon: (ObjectConstructor | StringConstructor)[];
|
|
206
206
|
suffixIcon: (ObjectConstructor | StringConstructor)[];
|
|
207
207
|
rows: {
|
|
208
|
-
type: NumberConstructor;
|
|
208
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
209
209
|
default: number;
|
|
210
210
|
};
|
|
211
211
|
autosize: (ObjectConstructor | BooleanConstructor)[];
|
|
@@ -364,13 +364,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
364
364
|
wrapFormItem: boolean;
|
|
365
365
|
clearable: boolean;
|
|
366
366
|
validateEvent: boolean;
|
|
367
|
+
rows: string | number;
|
|
367
368
|
readonlyGrey: boolean;
|
|
368
369
|
picker: boolean;
|
|
369
370
|
maxlength: string | number;
|
|
370
371
|
showWordLimit: boolean;
|
|
371
372
|
wordLimitPosition: string;
|
|
372
373
|
showPassword: boolean;
|
|
373
|
-
rows: number;
|
|
374
374
|
autocomplete: string;
|
|
375
375
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
376
376
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/DzfHfYvS2.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
modelValue: (NumberConstructor | null)[];
|
|
2
|
+
modelValue: (StringConstructor | NumberConstructor | null)[];
|
|
3
3
|
min: {
|
|
4
4
|
type: NumberConstructor;
|
|
5
5
|
default: number;
|
|
@@ -149,7 +149,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
149
149
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
150
150
|
"update:modelValue": null;
|
|
151
151
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
152
|
-
modelValue: (NumberConstructor | null)[];
|
|
152
|
+
modelValue: (StringConstructor | NumberConstructor | null)[];
|
|
153
153
|
min: {
|
|
154
154
|
type: NumberConstructor;
|
|
155
155
|
default: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BanS-yUY2.mjs";
|
|
2
2
|
export { e as default };
|