@web-utils/form-ui 1.0.0-beta35 → 1.0.0-beta37
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/{iWQD3xvX.mjs → B17LMtNG.mjs} +11 -16
- package/chunks/{DFsI7Y6h.mjs → B2HO8aAj.mjs} +11 -11
- package/chunks/{axr9InkL.mjs → BC0gfvsl.mjs} +9 -13
- package/chunks/{DQxPzCsy.mjs → BMAsNnWL.mjs} +11 -15
- package/chunks/{DQJyNm1V.mjs → Bd1UFJic.mjs} +135 -131
- package/chunks/{D5_ctQqL.mjs → BeBtvo7Q.mjs} +1 -1
- package/chunks/{Cr1vBYne.mjs → BeyC-b9n.mjs} +12 -15
- package/chunks/{A3sHIRQ_.mjs → BiIR7j9T.mjs} +15 -42
- package/chunks/{_dm2lLNL.mjs → BrXlRZbl.mjs} +2 -2
- package/chunks/{BTS_zTkz.mjs → BufIRDd0.mjs} +35 -39
- package/chunks/{uYaz9cwr.mjs → Byr79NWq.mjs} +14 -34
- package/chunks/{BLWwTutr.mjs → C81uwgZb.mjs} +14 -33
- package/chunks/{CNskrN5I.mjs → C95McWbI.mjs} +2 -2
- package/chunks/CE8bze--.mjs +231 -0
- package/chunks/{DcbnHU8K.mjs → CGmMqCP6.mjs} +19 -23
- package/chunks/{D7hD-ppq.mjs → CRrdgtwT.mjs} +1 -1
- package/chunks/{DistOy_O.mjs → CUvhHVXq.mjs} +27 -19
- package/chunks/{DJKE5P39.mjs → CZ6kuiWf.mjs} +2 -2
- package/chunks/{Dgyjc3LT.mjs → Cab-ZjRx.mjs} +29 -45
- package/chunks/{ZXCLnZFa.mjs → Ce5K-XbN.mjs} +111 -144
- package/chunks/{CLn0r4lV.mjs → CszLlvRH.mjs} +15 -17
- package/chunks/{CGJkMYZ4.mjs → D0M61zlJ.mjs} +11 -20
- package/chunks/DjX-fB-E.mjs +35 -0
- package/chunks/{BwdWZEjT.mjs → DkXSvAFI.mjs} +12 -18
- package/chunks/{DQKi5eEl.mjs → XqRTtFfp.mjs} +2 -2
- package/chunks/{BX-cVxlK.mjs → cmuHpsX6.mjs} +21 -14
- package/chunks/{1cDNhlSV.mjs → h0Y7oZ-O.mjs} +2 -2
- package/editable-tree/index.d.ts +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +1 -1
- package/element-dialog/index.mjs +1 -1
- package/form-cascader/index.d.ts +0 -14
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.d.ts +0 -2
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +36 -10
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +2 -6
- package/form-holder/index.mjs +1 -1
- package/form-image/index.d.ts +2 -14
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +0 -24
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +0 -6
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +0 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +0 -2
- package/form-rate/index.mjs +1 -1
- package/form-select/index.d.ts +0 -14
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +0 -4
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +0 -2
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/helper/dictionary.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/index.mjs +25 -25
- package/package.json +1 -1
- package/pageable-table/index.d.ts +0 -38
- package/pageable-table/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +73 -72
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/web-types.json +1 -1
- package/chunks/BLRY0zkF.mjs +0 -51
- package/chunks/BvsmTC3G.mjs +0 -229
package/form-select/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Byr79NWq.mjs";
|
|
2
2
|
export { e as default };
|
package/form-slider/index.d.ts
CHANGED
|
@@ -154,8 +154,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
154
154
|
}>, () => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
155
155
|
[key: string]: any;
|
|
156
156
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
157
|
-
change: null;
|
|
158
|
-
input: null;
|
|
159
157
|
"update:modelValue": null;
|
|
160
158
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
161
159
|
modelValue: (ArrayConstructor | NumberConstructor)[];
|
|
@@ -311,8 +309,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
311
309
|
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
312
310
|
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
313
311
|
}>> & Readonly<{
|
|
314
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
315
|
-
onInput?: ((...args: any[]) => any) | undefined;
|
|
316
312
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
317
313
|
}>, {
|
|
318
314
|
size: string;
|
package/form-slider/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/B17LMtNG.mjs";
|
|
2
2
|
export { e as default };
|
package/form-switch/index.d.ts
CHANGED
|
@@ -150,7 +150,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
150
150
|
}>, () => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
151
151
|
[key: string]: any;
|
|
152
152
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
153
|
-
change: null;
|
|
154
153
|
"update:modelValue": null;
|
|
155
154
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
156
155
|
modelValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
@@ -302,7 +301,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
302
301
|
labelRowspan: (StringConstructor | NumberConstructor)[];
|
|
303
302
|
inputRowspan: (StringConstructor | NumberConstructor)[];
|
|
304
303
|
}>> & Readonly<{
|
|
305
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
306
304
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
307
305
|
}>, {
|
|
308
306
|
size: string;
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BeyC-b9n.mjs";
|
|
2
2
|
export { e as default };
|
package/form-text/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BC0gfvsl.mjs";
|
|
2
2
|
export { e as default };
|
package/helper/dictionary.mjs
CHANGED
package/iframe-window/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Cab-ZjRx.mjs";
|
|
2
2
|
import { createBlock as t, createElementVNode as n, mergeModels as r, mergeProps as i, openBlock as a, useModel as o, withCtx as s } from "vue";
|
|
3
3
|
//#region src/components/iframe-window/IframeWindow.vue
|
|
4
4
|
var c = ["src"], l = /* @__PURE__ */ Object.assign({ name: "IframeWindow" }, {
|
package/index.mjs
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import e from "./awesome-button/index.mjs";
|
|
2
2
|
import t from "./confirmable/index.mjs";
|
|
3
3
|
import n from "./confirm-button/index.mjs";
|
|
4
|
-
import { t as r } from "./chunks/
|
|
5
|
-
import { t as i } from "./chunks/
|
|
6
|
-
import { t as a } from "./chunks/
|
|
4
|
+
import { t as r } from "./chunks/XqRTtFfp.mjs";
|
|
5
|
+
import { t as i } from "./chunks/Bd1UFJic.mjs";
|
|
6
|
+
import { t as a } from "./chunks/Cab-ZjRx.mjs";
|
|
7
7
|
import o from "./empty-view/index.mjs";
|
|
8
8
|
import s from "./flex-scroll-area/index.mjs";
|
|
9
9
|
import c from "./form-advice/index.mjs";
|
|
10
10
|
import l from "./form-button/index.mjs";
|
|
11
|
-
import { a as u } from "./chunks/
|
|
12
|
-
import { t as d } from "./chunks/
|
|
11
|
+
import { a as u } from "./chunks/CE8bze--.mjs";
|
|
12
|
+
import { t as d } from "./chunks/C81uwgZb.mjs";
|
|
13
13
|
import f from "./form-cell/index.mjs";
|
|
14
|
-
import { t as p } from "./chunks/
|
|
15
|
-
import { t as m } from "./chunks/
|
|
16
|
-
import { t as h } from "./chunks/
|
|
17
|
-
import { t as g } from "./chunks/
|
|
14
|
+
import { t as p } from "./chunks/CUvhHVXq.mjs";
|
|
15
|
+
import { t as m } from "./chunks/BiIR7j9T.mjs";
|
|
16
|
+
import { t as h } from "./chunks/CszLlvRH.mjs";
|
|
17
|
+
import { t as g } from "./chunks/B2HO8aAj.mjs";
|
|
18
18
|
import _ from "./form-red-table/index.mjs";
|
|
19
|
-
import { t as v } from "./chunks/
|
|
20
|
-
import { t as y } from "./chunks/
|
|
19
|
+
import { t as v } from "./chunks/BufIRDd0.mjs";
|
|
20
|
+
import { t as y } from "./chunks/DjX-fB-E.mjs";
|
|
21
21
|
import { t as b } from "./chunks/CWfUPCtS.mjs";
|
|
22
|
-
import { t as x } from "./chunks/
|
|
23
|
-
import { t as S } from "./chunks/
|
|
24
|
-
import { t as C } from "./chunks/
|
|
25
|
-
import { t as w } from "./chunks/
|
|
26
|
-
import { t as T } from "./chunks/
|
|
22
|
+
import { t as x } from "./chunks/DkXSvAFI.mjs";
|
|
23
|
+
import { t as S } from "./chunks/h0Y7oZ-O.mjs";
|
|
24
|
+
import { t as C } from "./chunks/C95McWbI.mjs";
|
|
25
|
+
import { t as w } from "./chunks/D0M61zlJ.mjs";
|
|
26
|
+
import { t as T } from "./chunks/BrXlRZbl.mjs";
|
|
27
27
|
import E from "./form-input-tag/index.mjs";
|
|
28
28
|
import D from "./form-input-time/index.mjs";
|
|
29
29
|
import O from "./form-item-config-provider/index.mjs";
|
|
30
30
|
import { t as k } from "./chunks/BYAy19s4.mjs";
|
|
31
|
-
import { t as A } from "./chunks/
|
|
32
|
-
import { t as j } from "./chunks/
|
|
31
|
+
import { t as A } from "./chunks/CGmMqCP6.mjs";
|
|
32
|
+
import { t as j } from "./chunks/BMAsNnWL.mjs";
|
|
33
33
|
import { t as M } from "./chunks/BW6iY7Q7.mjs";
|
|
34
|
-
import { t as N } from "./chunks/
|
|
35
|
-
import { t as P } from "./chunks/
|
|
36
|
-
import { t as F } from "./chunks/
|
|
37
|
-
import { t as I } from "./chunks/
|
|
34
|
+
import { t as N } from "./chunks/Byr79NWq.mjs";
|
|
35
|
+
import { t as P } from "./chunks/B17LMtNG.mjs";
|
|
36
|
+
import { t as F } from "./chunks/BeyC-b9n.mjs";
|
|
37
|
+
import { t as I } from "./chunks/BC0gfvsl.mjs";
|
|
38
38
|
import L from "./form-view/index.mjs";
|
|
39
39
|
import R from "./iframe-window/index.mjs";
|
|
40
40
|
import z from "./resize-observer/index.mjs";
|
|
41
|
-
import { t as B } from "./chunks/
|
|
42
|
-
import { t as V } from "./chunks/
|
|
41
|
+
import { t as B } from "./chunks/Ce5K-XbN.mjs";
|
|
42
|
+
import { t as V } from "./chunks/BeBtvo7Q.mjs";
|
|
43
43
|
import H from "./table-column-def/index.mjs";
|
|
44
|
-
import { t as U } from "./chunks/
|
|
44
|
+
import { t as U } from "./chunks/CZ6kuiWf.mjs";
|
|
45
45
|
import W from "./table-view/index.mjs";
|
|
46
46
|
import G from "./x-input-tag/index.mjs";
|
|
47
47
|
import { t as K } from "./chunks/CnAEuI_c.mjs";
|
package/package.json
CHANGED
|
@@ -175,25 +175,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
175
175
|
useVisibilityChange: BooleanConstructor;
|
|
176
176
|
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
177
177
|
'page-loaded': null;
|
|
178
|
-
select: null;
|
|
179
|
-
'select-all': null;
|
|
180
|
-
'selection-change': null;
|
|
181
|
-
'cell-mouse-enter': null;
|
|
182
|
-
'cell-mouse-leave': null;
|
|
183
|
-
'cell-click': null;
|
|
184
|
-
'cell-dblclick': null;
|
|
185
|
-
'cell-contextmenu': null;
|
|
186
|
-
'row-click': null;
|
|
187
|
-
'row-contextmenu': null;
|
|
188
|
-
'row-dblclick': null;
|
|
189
|
-
'header-click': null;
|
|
190
|
-
'header-contextmenu': null;
|
|
191
|
-
'sort-change': null;
|
|
192
|
-
'filter-change': null;
|
|
193
|
-
'current-change': null;
|
|
194
|
-
'header-dragend': null;
|
|
195
|
-
'expand-change': null;
|
|
196
|
-
scroll: null;
|
|
197
178
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
198
179
|
data: {
|
|
199
180
|
type: ArrayConstructor;
|
|
@@ -370,26 +351,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
370
351
|
selectExport: BooleanConstructor;
|
|
371
352
|
useVisibilityChange: BooleanConstructor;
|
|
372
353
|
}>> & Readonly<{
|
|
373
|
-
onScroll?: ((...args: any[]) => any) | undefined;
|
|
374
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
375
|
-
"onExpand-change"?: ((...args: any[]) => any) | undefined;
|
|
376
354
|
"onPage-loaded"?: ((...args: any[]) => any) | undefined;
|
|
377
|
-
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
|
378
|
-
"onSelection-change"?: ((...args: any[]) => any) | undefined;
|
|
379
|
-
"onCell-mouse-enter"?: ((...args: any[]) => any) | undefined;
|
|
380
|
-
"onCell-mouse-leave"?: ((...args: any[]) => any) | undefined;
|
|
381
|
-
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
382
|
-
"onCell-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
383
|
-
"onCell-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
384
|
-
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
385
|
-
"onRow-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
386
|
-
"onRow-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
387
|
-
"onHeader-click"?: ((...args: any[]) => any) | undefined;
|
|
388
|
-
"onHeader-contextmenu"?: ((...args: any[]) => any) | undefined;
|
|
389
|
-
"onSort-change"?: ((...args: any[]) => any) | undefined;
|
|
390
|
-
"onFilter-change"?: ((...args: any[]) => any) | undefined;
|
|
391
|
-
"onCurrent-change"?: ((...args: any[]) => any) | undefined;
|
|
392
|
-
"onHeader-dragend"?: ((...args: any[]) => any) | undefined;
|
|
393
355
|
}>, {
|
|
394
356
|
data: unknown[];
|
|
395
357
|
immediate: boolean;
|
package/pageable-table/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Ce5K-XbN.mjs";
|
|
2
2
|
export { e as default };
|
package/table-column/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BeBtvo7Q.mjs";
|
|
2
2
|
export { e as default };
|
package/table-view/index.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { c as e, r as t } from "../chunks/
|
|
1
|
+
import { c as e, r as t } from "../chunks/cmuHpsX6.mjs";
|
|
2
2
|
import { processButtons as n, reloadTable as r } from "../api/index.mjs";
|
|
3
3
|
import { tableViewContextKey as i } from "../constants/index.mjs";
|
|
4
|
-
import { t as a } from "../chunks/
|
|
4
|
+
import { t as a } from "../chunks/Bd1UFJic.mjs";
|
|
5
5
|
import { t as o } from "../chunks/B1MSrc6f.mjs";
|
|
6
|
-
import s from "../
|
|
7
|
-
import
|
|
8
|
-
import { t as l } from "../chunks/
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { a as s } from "../chunks/CE8bze--.mjs";
|
|
7
|
+
import c from "../form-item-config-provider/index.mjs";
|
|
8
|
+
import { t as l } from "../chunks/Ce5K-XbN.mjs";
|
|
9
|
+
import { t as u } from "../chunks/CZ6kuiWf.mjs";
|
|
10
|
+
import { hasOwn as d, isArray as f, isFunction as p, isString as m, toStringArray as h, trace as g, warning as _ } from "@web-utils/core";
|
|
11
|
+
import { Transition as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as C, createTextVNode as w, createVNode as T, mergeProps as E, normalizeClass as D, normalizeStyle as O, openBlock as k, renderList as A, renderSlot as j, toDisplayString as M, toHandlers as N, vShow as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
|
|
11
12
|
import { merge as R } from "@web-utils/integrations/lodash";
|
|
12
13
|
import { ElButton as z, ElCollapseTransition as B, ElForm as V, ElFormItem as H, ElRow as U } from "element-plus/es";
|
|
13
14
|
//#region src/components/form/TableView.vue
|
|
@@ -35,16 +36,16 @@ var W = [
|
|
|
35
36
|
name: "TableView",
|
|
36
37
|
bus: {
|
|
37
38
|
reloadTableView(e) {
|
|
38
|
-
if (this._viewIds) if (
|
|
39
|
+
if (this._viewIds) if (m(e) || f(e)) {
|
|
39
40
|
let t = e;
|
|
40
|
-
|
|
41
|
-
} else
|
|
41
|
+
m(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (g.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
|
|
42
|
+
} else _.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
42
43
|
},
|
|
43
44
|
reloadTreeView(e) {
|
|
44
|
-
if (this._viewIds) if (
|
|
45
|
+
if (this._viewIds) if (m(e) || f(e)) {
|
|
45
46
|
let t = e;
|
|
46
|
-
|
|
47
|
-
} else
|
|
47
|
+
m(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (g.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
|
|
48
|
+
} else _.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
provide() {
|
|
@@ -118,14 +119,14 @@ var W = [
|
|
|
118
119
|
toolbarProps() {
|
|
119
120
|
var e, t;
|
|
120
121
|
let r = R({}, this.toolbarAttrs, {}), i = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
|
|
121
|
-
return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons =
|
|
122
|
+
return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons = h(r.buttons), r.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), r;
|
|
122
123
|
},
|
|
123
124
|
treeProps() {
|
|
124
125
|
return e(R({}, this.treeAttrs, {
|
|
125
126
|
treeProps: {
|
|
126
127
|
children: "children",
|
|
127
128
|
label: "label",
|
|
128
|
-
isLeaf: (e) =>
|
|
129
|
+
isLeaf: (e) => d(e, "hasChildren") ? !e.hasChildren : d(e, "hasChild") ? !e.hasChild : !0
|
|
129
130
|
},
|
|
130
131
|
show: !1,
|
|
131
132
|
lazy: !0,
|
|
@@ -206,7 +207,7 @@ var W = [
|
|
|
206
207
|
async del() {
|
|
207
208
|
var e;
|
|
208
209
|
let t = this.deleteApi || this.$parent.del;
|
|
209
|
-
if (!((e = this.toolbarListeners) != null && e.del) &&
|
|
210
|
+
if (!((e = this.toolbarListeners) != null && e.del) && p(t)) {
|
|
210
211
|
if (!this.selectedRows.length) {
|
|
211
212
|
this.$message.warning(this.selectTips || "请选择要删除的记录!");
|
|
212
213
|
return;
|
|
@@ -261,38 +262,38 @@ var W = [
|
|
|
261
262
|
class: "search-form-top"
|
|
262
263
|
}, J = { class: "table-view-content-wrapper" }, Y = { class: "table-view-content" }, X = { class: "table-view-table" }, Z = { class: "slide-panel-content" }, Q = { class: "slide-panel-actions" };
|
|
263
264
|
function $(e, t, n, r, i, o) {
|
|
264
|
-
let
|
|
265
|
-
return
|
|
265
|
+
let d = z, f = s, p = U, m = c, h = V, g = B, _ = u, R = a, W = l, G = H;
|
|
266
|
+
return k(), x("div", { class: D(["table-view", {
|
|
266
267
|
embed: n.embed,
|
|
267
268
|
"has-tree": o.treeProps.show
|
|
268
|
-
}]) }, [
|
|
269
|
-
|
|
270
|
-
n.searchFormPosition === "top" ? (
|
|
271
|
-
default: F(() => [o.toolbarProps.searchable ? I((
|
|
269
|
+
}]) }, [S("div", K, [
|
|
270
|
+
b("搜索条件"),
|
|
271
|
+
n.searchFormPosition === "top" ? (k(), y(g, { key: 0 }, {
|
|
272
|
+
default: F(() => [o.toolbarProps.searchable ? I((k(), x("div", q, [T(h, {
|
|
272
273
|
ref: "form",
|
|
273
274
|
"label-position": "right",
|
|
274
275
|
model: n.searchModel || o.searchPanelProps.model,
|
|
275
276
|
"label-width": n.labelWidth,
|
|
276
277
|
onSubmitCapture: L(o.onSearchClick, ["prevent"])
|
|
277
278
|
}, {
|
|
278
|
-
default: F(() => [
|
|
279
|
-
default: F(() => [
|
|
280
|
-
default: F(() => [
|
|
279
|
+
default: F(() => [T(m, { reactive: "" }, {
|
|
280
|
+
default: F(() => [T(p, { gutter: 0 }, {
|
|
281
|
+
default: F(() => [j(e.$slots, "search-form", {}, () => [t[3] || (t[3] = S("p", null, "请添加搜索条件!", -1))]), T(f, {
|
|
281
282
|
class: "search-actions",
|
|
282
283
|
"hide-label": "",
|
|
283
284
|
"fixed-span": 24
|
|
284
285
|
}, {
|
|
285
|
-
default: F(() => [
|
|
286
|
+
default: F(() => [T(d, {
|
|
286
287
|
type: "primary",
|
|
287
288
|
"native-type": "submit"
|
|
288
289
|
}, {
|
|
289
|
-
default: F(() => [...t[4] || (t[4] = [
|
|
290
|
+
default: F(() => [...t[4] || (t[4] = [w("开始搜索", -1)])]),
|
|
290
291
|
_: 1
|
|
291
|
-
}),
|
|
292
|
+
}), T(d, {
|
|
292
293
|
style: { "margin-left": "10px" },
|
|
293
294
|
onClick: o.onClearClick
|
|
294
295
|
}, {
|
|
295
|
-
default: F(() => [...t[5] || (t[5] = [
|
|
296
|
+
default: F(() => [...t[5] || (t[5] = [w("清除条件", -1)])]),
|
|
296
297
|
_: 1
|
|
297
298
|
}, 8, ["onClick"])]),
|
|
298
299
|
_: 1
|
|
@@ -306,11 +307,11 @@ function $(e, t, n, r, i, o) {
|
|
|
306
307
|
"model",
|
|
307
308
|
"label-width",
|
|
308
309
|
"onSubmitCapture"
|
|
309
|
-
])], 512)), [[P, i.isSearchVisible]]) :
|
|
310
|
+
])], 512)), [[P, i.isSearchVisible]]) : b("v-if", !0)]),
|
|
310
311
|
_: 3
|
|
311
|
-
})) :
|
|
312
|
-
|
|
313
|
-
n.showToolbar ? (
|
|
312
|
+
})) : b("v-if", !0),
|
|
313
|
+
b("顶部工具条"),
|
|
314
|
+
n.showToolbar ? (k(), y(_, E({ key: 1 }, o.toolbarProps, {
|
|
314
315
|
refreshable: "",
|
|
315
316
|
onSearch: o.toggleSearch,
|
|
316
317
|
onSettings: t[0] || (t[0] = () => e.$refs.table.toggleSettings()),
|
|
@@ -319,20 +320,20 @@ function $(e, t, n, r, i, o) {
|
|
|
319
320
|
onReload: o.reloadTableAndTree,
|
|
320
321
|
onExp: o.exp,
|
|
321
322
|
onImp: t[1] || (t[1] = (e) => i.importDialogVisible = !0)
|
|
322
|
-
}, N(o.toolbarEventHandlers)),
|
|
323
|
+
}, N(o.toolbarEventHandlers)), C({ _: 2 }, [
|
|
323
324
|
e.$slots["toolbar-button"] ? {
|
|
324
325
|
name: "default",
|
|
325
|
-
fn: F(() => [
|
|
326
|
+
fn: F(() => [j(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
|
|
326
327
|
key: "0"
|
|
327
328
|
} : void 0,
|
|
328
329
|
e.$slots["toolbar-left"] ? {
|
|
329
330
|
name: "toolbar-left",
|
|
330
|
-
fn: F(() => [
|
|
331
|
+
fn: F(() => [j(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
|
|
331
332
|
key: "1"
|
|
332
333
|
} : void 0,
|
|
333
334
|
e.$slots["toolbar-right"] ? {
|
|
334
335
|
name: "toolbar-right",
|
|
335
|
-
fn: F(() => [
|
|
336
|
+
fn: F(() => [j(e.$slots, "toolbar-right", {
|
|
336
337
|
del: o.del,
|
|
337
338
|
create: o.create,
|
|
338
339
|
reload: o.reloadTableAndTree,
|
|
@@ -342,12 +343,12 @@ function $(e, t, n, r, i, o) {
|
|
|
342
343
|
} : void 0,
|
|
343
344
|
e.$slots["toolbar-right-button"] ? {
|
|
344
345
|
name: "toolbar-right-button",
|
|
345
|
-
fn: F(() => [
|
|
346
|
+
fn: F(() => [j(e.$slots, "toolbar-right-button")]),
|
|
346
347
|
key: "3"
|
|
347
348
|
} : void 0,
|
|
348
|
-
|
|
349
|
+
A(o.buttonSlots, (t) => ({
|
|
349
350
|
name: t,
|
|
350
|
-
fn: F(() => [
|
|
351
|
+
fn: F(() => [j(e.$slots, t, { selectedRows: i.selectedRows })])
|
|
351
352
|
}))
|
|
352
353
|
]), 1040, [
|
|
353
354
|
"onSearch",
|
|
@@ -355,27 +356,27 @@ function $(e, t, n, r, i, o) {
|
|
|
355
356
|
"onCreate",
|
|
356
357
|
"onReload",
|
|
357
358
|
"onExp"
|
|
358
|
-
])) :
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
o.treeProps.show ? (
|
|
359
|
+
])) : b("v-if", !0),
|
|
360
|
+
S("div", J, [
|
|
361
|
+
S("div", Y, [
|
|
362
|
+
b("侧栏"),
|
|
363
|
+
o.treeProps.show ? (k(), x("div", {
|
|
363
364
|
key: 0,
|
|
364
365
|
ref: "treeScroller",
|
|
365
366
|
class: "table-view-sidebar",
|
|
366
367
|
onScroll: t[2] || (t[2] = (...e) => o.onTreeScroll && o.onTreeScroll(...e))
|
|
367
|
-
}, [
|
|
368
|
-
default: F(({ node: t, data: n }) => [
|
|
368
|
+
}, [b("<div style=\"font-size: 16px\">视图导航</div>"), T(R, E({ ref: "tree" }, o.treeProps, { readonly: "" }, N(o.toHyphenateKey(n.treeListeners))), {
|
|
369
|
+
default: F(({ node: t, data: n }) => [j(e.$slots, "tree-node", {
|
|
369
370
|
node: t,
|
|
370
371
|
data: n
|
|
371
|
-
}, () => [
|
|
372
|
+
}, () => [S("span", null, [S("i", { class: D([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), j(e.$slots, "tree-label", {
|
|
372
373
|
node: t,
|
|
373
374
|
data: n
|
|
374
|
-
}, () => [
|
|
375
|
+
}, () => [w(M(t.label), 1)])])])]),
|
|
375
376
|
_: 3
|
|
376
|
-
}, 16)], 544)) :
|
|
377
|
-
|
|
378
|
-
|
|
377
|
+
}, 16)], 544)) : b("v-if", !0),
|
|
378
|
+
b("表格"),
|
|
379
|
+
S("div", X, [T(W, E({
|
|
379
380
|
ref: "table",
|
|
380
381
|
border: n.border,
|
|
381
382
|
class: [{
|
|
@@ -387,12 +388,12 @@ function $(e, t, n, r, i, o) {
|
|
|
387
388
|
}, o.tableProps, N(o.toHyphenateKey(n.tableListeners)), {
|
|
388
389
|
onRowDblclick: o.rowDbClick,
|
|
389
390
|
onSelectionChange: o.onSelectionChange
|
|
390
|
-
}),
|
|
391
|
-
default: F(() => [
|
|
391
|
+
}), C({
|
|
392
|
+
default: F(() => [j(e.$slots, "columns")]),
|
|
392
393
|
_: 2
|
|
393
|
-
}, [
|
|
394
|
+
}, [A(o.tableScopeSlotNames, (t) => ({
|
|
394
395
|
name: t,
|
|
395
|
-
fn: F(({ row: n }) => [
|
|
396
|
+
fn: F(({ row: n }) => [j(e.$slots, t, { row: n })])
|
|
396
397
|
}))]), 1040, [
|
|
397
398
|
"border",
|
|
398
399
|
"class",
|
|
@@ -400,40 +401,40 @@ function $(e, t, n, r, i, o) {
|
|
|
400
401
|
"onSelectionChange"
|
|
401
402
|
])])
|
|
402
403
|
]),
|
|
403
|
-
|
|
404
|
-
n.searchFormPosition === "right" ? (
|
|
404
|
+
b("搜索条件"),
|
|
405
|
+
n.searchFormPosition === "right" ? (k(), y(v, {
|
|
405
406
|
key: 0,
|
|
406
407
|
name: "slide"
|
|
407
408
|
}, {
|
|
408
|
-
default: F(() => [o.toolbarProps.searchable ? I((
|
|
409
|
+
default: F(() => [o.toolbarProps.searchable ? I((k(), x("div", {
|
|
409
410
|
key: 0,
|
|
410
|
-
style:
|
|
411
|
+
style: O({ width: `${o.searchPanelProps.width}px` }),
|
|
411
412
|
class: "slide-panel"
|
|
412
|
-
}, [
|
|
413
|
+
}, [b("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), S("div", Z, [T(h, {
|
|
413
414
|
ref: "form",
|
|
414
415
|
"label-position": "right",
|
|
415
416
|
model: n.searchModel || o.searchPanelProps.model,
|
|
416
417
|
"label-width": n.labelWidth,
|
|
417
418
|
onSubmitCapture: L(o.onSearchClick, ["prevent"])
|
|
418
419
|
}, {
|
|
419
|
-
default: F(() => [
|
|
420
|
+
default: F(() => [T(m, {
|
|
420
421
|
block: "",
|
|
421
422
|
"wrap-col": !1
|
|
422
423
|
}, {
|
|
423
|
-
default: F(() => [
|
|
424
|
-
default: F(() => [
|
|
424
|
+
default: F(() => [T(p, { gutter: 0 }, {
|
|
425
|
+
default: F(() => [j(e.$slots, "search-form", {}, () => [t[6] || (t[6] = S("p", null, "请添加搜索条件!", -1))])]),
|
|
425
426
|
_: 3
|
|
426
427
|
})]),
|
|
427
428
|
_: 3
|
|
428
|
-
}),
|
|
429
|
-
default: F(() => [
|
|
429
|
+
}), T(G, { "label-width": "0" }, {
|
|
430
|
+
default: F(() => [S("div", Q, [T(d, {
|
|
430
431
|
type: "primary",
|
|
431
432
|
"native-type": "submit"
|
|
432
433
|
}, {
|
|
433
|
-
default: F(() => [...t[7] || (t[7] = [
|
|
434
|
+
default: F(() => [...t[7] || (t[7] = [w("开始搜索", -1)])]),
|
|
434
435
|
_: 1
|
|
435
|
-
}),
|
|
436
|
-
default: F(() => [...t[8] || (t[8] = [
|
|
436
|
+
}), T(d, { onClick: o.onClearClick }, {
|
|
437
|
+
default: F(() => [...t[8] || (t[8] = [w("清除条件", -1)])]),
|
|
437
438
|
_: 1
|
|
438
439
|
}, 8, ["onClick"])])]),
|
|
439
440
|
_: 1
|
|
@@ -443,11 +444,11 @@ function $(e, t, n, r, i, o) {
|
|
|
443
444
|
"model",
|
|
444
445
|
"label-width",
|
|
445
446
|
"onSubmitCapture"
|
|
446
|
-
])])], 4)), [[P, i.isSearchVisible]]) :
|
|
447
|
+
])])], 4)), [[P, i.isSearchVisible]]) : b("v-if", !0)]),
|
|
447
448
|
_: 3
|
|
448
|
-
})) :
|
|
449
|
+
})) : b("v-if", !0)
|
|
449
450
|
]),
|
|
450
|
-
|
|
451
|
+
j(e.$slots, "default")
|
|
451
452
|
])], 2);
|
|
452
453
|
}
|
|
453
454
|
var ee = /* @__PURE__ */ o(G, [["render", $]]);
|
package/toolbar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/CZ6kuiWf.mjs";
|
|
2
2
|
export { e as default };
|
package/toolbar-button/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/XqRTtFfp.mjs";
|
|
2
2
|
export { e as default };
|