@web-utils/form-ui 1.0.0-beta50 → 1.0.0-beta52
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/{eae6huQB.mjs → B1k8ydde.mjs} +2 -2
- package/chunks/{B1IPSTA6.mjs → B75qfA0z.mjs} +2 -2
- package/chunks/{pIzhYsBe.mjs → BAw6wxW1.mjs} +2 -2
- package/chunks/{hzaYr6Ud2.mjs → BQyL45PF2.mjs} +1 -1
- package/chunks/{B9gA65rt2.mjs → BSU2FqMP2.mjs} +2 -2
- package/chunks/{Cln3RBAD.mjs → BWh6u1O0.mjs} +1 -1
- package/chunks/{DA7oGHSX.mjs → BXVB-H8_.mjs} +2 -2
- package/chunks/B_RAcbs_.mjs +108 -0
- package/chunks/{BtcjAHE6.mjs → BshE3RnA.mjs} +2 -2
- package/chunks/{CuAoMR3n.mjs → C6hLXCPk.mjs} +5 -16
- package/chunks/{vXQf89tS.mjs → C7G-cAoI.mjs} +1 -1
- package/chunks/{CAd1zK9Q.mjs → CBFbSsTJ.mjs} +2 -2
- package/chunks/CGDnQr1c.mjs +67 -0
- package/chunks/CGHcOyNC2.mjs +87 -0
- package/chunks/{ByHz4mmh.mjs → CVKPpQdS.mjs} +2 -2
- package/chunks/{BUGCiCnl.mjs → CXsoKP22.mjs} +4 -1
- package/chunks/CjRZ71IY2.mjs +512 -0
- package/chunks/CkjtCuMs.mjs +416 -0
- package/chunks/{D0Zg2CV0.mjs → CtHmTtVP.mjs} +3 -3
- package/chunks/{V2p-PCpL.mjs → CzHaJsnD.mjs} +3 -3
- package/chunks/{Dkd5BC98.mjs → D2MB3CnR.mjs} +2 -6
- package/chunks/{D_qiRmiE.mjs → D3mFJzGr.mjs} +32 -26
- package/chunks/{BbSPWDDZ.mjs → DLgFBI_X.mjs} +2 -2
- package/chunks/{BfxDxIg0.mjs → DVbw6xIr.mjs} +2 -2
- package/chunks/{kflKDW4T2.mjs → DZJ-ShZA2.mjs} +38 -39
- package/chunks/{CqoVAnxC2.mjs → DcFllKOf2.mjs} +2 -6
- package/chunks/DhVmHzB7.mjs +653 -0
- package/chunks/{6yfBZFOB.mjs → DitpKWMd.mjs} +4 -3
- package/chunks/{bFbPPcdq.mjs → DkXlFWjs.mjs} +2 -2
- package/chunks/{CxTg0r4n.mjs → Dt3lfDnL.mjs} +1 -1
- package/chunks/{BA2KEptL.mjs → GMFHxPJq.mjs} +2 -6
- package/chunks/{BqWvBF14.mjs → JKFepPeL.mjs} +2 -2
- package/chunks/{CJdkjadi.mjs → KuAMIZnG.mjs} +1 -1
- package/chunks/{BBERmTup.mjs → XoImEoke.mjs} +19 -4
- package/chunks/{wXeqV-_7.mjs → eBESsR-G.mjs} +2 -2
- package/chunks/{CabldOLo.mjs → v-O82KSn.mjs} +4 -3
- package/confirm-button/index.d.ts +9 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.d.ts +9 -2
- package/confirmable/index.mjs +1 -1
- package/constants/index.d.ts +1 -0
- package/constants/index.mjs +2 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.d.ts +2 -2
- package/form-button/index.d.ts +9 -2
- package/form-cascader/index.d.ts +16 -10
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.d.ts +8 -2
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.d.ts +8 -2
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +8 -2
- package/form-date-picker/index.mjs +1 -1
- package/form-image/index.d.ts +8 -2
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +8 -2
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +8 -2
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +8 -2
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +8 -2
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +8 -2
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +8 -2
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +8 -2
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.d.ts +16 -10
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +8 -2
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +8 -2
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +8 -2
- package/form-rate/index.mjs +1 -1
- package/form-select/index.d.ts +8 -2
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +8 -2
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +8 -2
- package/form-switch/index.mjs +1 -1
- package/form-table/index.d.ts +43 -25
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +8 -8
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +8 -2
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.d.ts +12 -12
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +16 -10
- package/form-time-select/index.mjs +1 -1
- package/helper/sub-table-plus.d.ts +38 -0
- package/helper/sub-table-plus.mjs +4 -0
- package/index.css +1 -1
- package/index.mjs +33 -33
- package/package.json +1 -1
- package/pageable-table/index.d.ts +13 -11
- package/pageable-table/index.mjs +1 -1
- package/pageable-table/style.css +1 -1
- package/sub-table/index.d.ts +36 -30
- package/sub-table/index.mjs +2 -472
- package/sub-table-plus/index.d.ts +15 -3
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.d.ts +8 -5
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.d.ts +14 -12
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +6 -1
- package/table-view/index.mjs +121 -110
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +2 -2
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +1 -1
- package/chunks/B-zqRAXo.mjs +0 -69
- package/chunks/BsZgAJX_2.mjs +0 -81
- package/chunks/cqIZWDHo.mjs +0 -614
- package/chunks/gCeDFHo1.mjs +0 -32
- package/chunks/hlha6Bhc.mjs +0 -107
- package/chunks/zwXzk9ff2.mjs +0 -568
package/table-view/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { tableViewContextKey } from '../../constants';
|
|
1
|
+
import { tableViewContextKey, cellClickHandlerContextKey } from '../../constants';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
|
+
data: ArrayConstructor;
|
|
3
4
|
viewId: (StringConstructor | ArrayConstructor)[];
|
|
4
5
|
searchPanelAttrs: {
|
|
5
6
|
type: ObjectConstructor;
|
|
@@ -85,6 +86,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
85
86
|
exp(): void;
|
|
86
87
|
getTableColumns(): any;
|
|
87
88
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "reset"[], "reset", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
89
|
+
data: ArrayConstructor;
|
|
88
90
|
viewId: (StringConstructor | ArrayConstructor)[];
|
|
89
91
|
searchPanelAttrs: {
|
|
90
92
|
type: ObjectConstructor;
|
|
@@ -156,6 +158,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
156
158
|
showToolbar: boolean;
|
|
157
159
|
}, {}, {}, {}, string, () => {
|
|
158
160
|
[tableViewContextKey]: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
161
|
+
data: ArrayConstructor;
|
|
159
162
|
viewId: (StringConstructor | ArrayConstructor)[];
|
|
160
163
|
searchPanelAttrs: {
|
|
161
164
|
type: ObjectConstructor;
|
|
@@ -250,6 +253,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
250
253
|
M: {};
|
|
251
254
|
Defaults: {};
|
|
252
255
|
}, Readonly<globalThis.ExtractPropTypes<{
|
|
256
|
+
data: ArrayConstructor;
|
|
253
257
|
viewId: (StringConstructor | ArrayConstructor)[];
|
|
254
258
|
searchPanelAttrs: {
|
|
255
259
|
type: ObjectConstructor;
|
|
@@ -337,5 +341,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
337
341
|
exp(): void;
|
|
338
342
|
getTableColumns(): any;
|
|
339
343
|
}, {}>;
|
|
344
|
+
[cellClickHandlerContextKey]: (row: any) => void;
|
|
340
345
|
}, true, {}, any>;
|
|
341
346
|
export default _default;
|
package/table-view/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { i as e, l as t } from "../chunks/DcTVYqeJ.mjs";
|
|
2
2
|
import { processButtons as n, reloadTable as r } from "../api/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { a as
|
|
8
|
-
import
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { hasOwn as
|
|
12
|
-
import { Transition as
|
|
13
|
-
import { merge as
|
|
14
|
-
import { ElCollapseTransition as
|
|
3
|
+
import { cellClickHandlerContextKey as i, tableViewContextKey as a } from "../constants/index.mjs";
|
|
4
|
+
import { t as o } from "../chunks/Dt3lfDnL.mjs";
|
|
5
|
+
import { t as s } from "../chunks/BWh6u1O0.mjs";
|
|
6
|
+
import { t as c } from "../chunks/CkOD-_VV.mjs";
|
|
7
|
+
import { a as l } from "../chunks/D3mFJzGr.mjs";
|
|
8
|
+
import u from "../form-item-config-provider/index.mjs";
|
|
9
|
+
import { t as d } from "../chunks/DhVmHzB7.mjs";
|
|
10
|
+
import { t as f } from "../chunks/BQyL45PF2.mjs";
|
|
11
|
+
import { hasOwn as p, isArray as m, isFunction as h, isString as g, toStringArray as _, trace as v, warning as y } from "@web-utils/core";
|
|
12
|
+
import { Transition as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, mergeProps as O, normalizeClass as k, normalizeStyle as A, openBlock as j, renderList as M, renderSlot as N, toDisplayString as P, toHandlers as F, vShow as I, withCtx as L, withDirectives as R, withModifiers as z } from "vue";
|
|
13
|
+
import { merge as B } from "@web-utils/integrations/lodash";
|
|
14
|
+
import { ElCollapseTransition as V, ElForm as H, ElFormItem as U, ElRow as W } from "element-plus/es";
|
|
15
15
|
//#region src/components/form/TableView.vue
|
|
16
|
-
var
|
|
16
|
+
var G = [
|
|
17
17
|
"back",
|
|
18
18
|
"create",
|
|
19
19
|
"save",
|
|
@@ -33,26 +33,30 @@ var W = [
|
|
|
33
33
|
"disabled",
|
|
34
34
|
"reload",
|
|
35
35
|
"slot"
|
|
36
|
-
],
|
|
36
|
+
], K = {
|
|
37
37
|
name: "TableView",
|
|
38
38
|
bus: {
|
|
39
39
|
reloadTableView(e) {
|
|
40
|
-
if (this._viewIds) if (
|
|
40
|
+
if (this._viewIds) if (g(e) || m(e)) {
|
|
41
41
|
let t = e;
|
|
42
|
-
|
|
43
|
-
} else
|
|
42
|
+
g(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (v.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
|
|
43
|
+
} else y.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
44
44
|
},
|
|
45
45
|
reloadTreeView(e) {
|
|
46
|
-
if (this._viewIds) if (
|
|
46
|
+
if (this._viewIds) if (g(e) || m(e)) {
|
|
47
47
|
let t = e;
|
|
48
|
-
|
|
49
|
-
} else
|
|
48
|
+
g(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (v.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
|
|
49
|
+
} else y.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
provide() {
|
|
53
|
-
return {
|
|
53
|
+
return {
|
|
54
|
+
[a]: this,
|
|
55
|
+
[i]: this.rowDbClick
|
|
56
|
+
};
|
|
54
57
|
},
|
|
55
58
|
props: {
|
|
59
|
+
data: Array,
|
|
56
60
|
viewId: [String, Array],
|
|
57
61
|
searchPanelAttrs: {
|
|
58
62
|
type: Object,
|
|
@@ -115,19 +119,19 @@ var W = [
|
|
|
115
119
|
},
|
|
116
120
|
computed: {
|
|
117
121
|
buttonSlots() {
|
|
118
|
-
return
|
|
122
|
+
return G.filter((e) => this.$slots[e]);
|
|
119
123
|
},
|
|
120
124
|
toolbarProps() {
|
|
121
125
|
var e, t;
|
|
122
|
-
let r =
|
|
123
|
-
return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons =
|
|
126
|
+
let r = B({}, this.toolbarAttrs, {}), i = (r == null ? void 0 : r.buttons) || this.$parent.buttons;
|
|
127
|
+
return i = i || [], r.buttons = i, r.buttons = n(r.buttons), r.buttons = _(r.buttons), r.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), r;
|
|
124
128
|
},
|
|
125
129
|
treeProps() {
|
|
126
|
-
return t(
|
|
130
|
+
return t(B({}, this.treeAttrs, {
|
|
127
131
|
treeProps: {
|
|
128
132
|
children: "children",
|
|
129
133
|
label: "label",
|
|
130
|
-
isLeaf: (e) =>
|
|
134
|
+
isLeaf: (e) => p(e, "hasChildren") ? !e.hasChildren : p(e, "hasChild") ? !e.hasChild : !0
|
|
131
135
|
},
|
|
132
136
|
show: !1,
|
|
133
137
|
lazy: !0,
|
|
@@ -144,14 +148,14 @@ var W = [
|
|
|
144
148
|
highlightCurrentRow: !0,
|
|
145
149
|
api: e
|
|
146
150
|
};
|
|
147
|
-
return t(
|
|
151
|
+
return t(B({}, this.tableAttrs, n));
|
|
148
152
|
},
|
|
149
153
|
searchPanelProps() {
|
|
150
154
|
let e = {
|
|
151
155
|
width: 350,
|
|
152
156
|
model: this.searchModel || {}
|
|
153
157
|
};
|
|
154
|
-
return t(
|
|
158
|
+
return t(B({}, this.searchPanelAttrs, e));
|
|
155
159
|
},
|
|
156
160
|
toolbarEventHandlers() {
|
|
157
161
|
if (this.toolbarListeners) {
|
|
@@ -195,8 +199,8 @@ var W = [
|
|
|
195
199
|
this.$router.push(e(this.formPath, t));
|
|
196
200
|
},
|
|
197
201
|
rowDbClick(e) {
|
|
198
|
-
var t;
|
|
199
|
-
!((t = this.tableListeners) != null && t["row-dblclick"]) && this.formPath && this.openFrom(e);
|
|
202
|
+
var t, n;
|
|
203
|
+
!((t = this.tableListeners) != null && t["row-dblclick"]) && !((n = this.tableListeners) != null && n.rowDblclick) && this.formPath && this.openFrom(e);
|
|
200
204
|
},
|
|
201
205
|
onSelectionChange(e) {
|
|
202
206
|
this.selectedRows = e;
|
|
@@ -208,7 +212,7 @@ var W = [
|
|
|
208
212
|
async del() {
|
|
209
213
|
var e;
|
|
210
214
|
let t = this.deleteApi || this.$parent.del;
|
|
211
|
-
if (!((e = this.toolbarListeners) != null && e.del) &&
|
|
215
|
+
if (!((e = this.toolbarListeners) != null && e.del) && h(t)) {
|
|
212
216
|
if (!this.selectedRows.length) {
|
|
213
217
|
this.$message.warning(this.selectTips || "请选择要删除的记录!");
|
|
214
218
|
return;
|
|
@@ -258,43 +262,43 @@ var W = [
|
|
|
258
262
|
return this.$refs.table.tableColumns;
|
|
259
263
|
}
|
|
260
264
|
}
|
|
261
|
-
},
|
|
265
|
+
}, q = { class: "table-view-wrapper" }, J = {
|
|
262
266
|
key: 0,
|
|
263
267
|
class: "search-form-top"
|
|
264
|
-
},
|
|
265
|
-
function
|
|
266
|
-
let
|
|
267
|
-
return
|
|
268
|
+
}, Y = { class: "table-view-content-wrapper" }, X = { class: "table-view-content" }, Z = { class: "table-view-table" }, Q = { class: "slide-panel-content" }, $ = { class: "slide-panel-actions" };
|
|
269
|
+
function ee(e, t, n, r, i, a) {
|
|
270
|
+
let c = o, p = l, m = W, h = u, g = H, _ = V, v = f, y = s, B = d, G = U;
|
|
271
|
+
return j(), C("div", { class: k(["table-view", {
|
|
268
272
|
embed: n.embed,
|
|
269
|
-
"has-tree":
|
|
270
|
-
}]) }, [
|
|
271
|
-
|
|
272
|
-
n.searchFormPosition === "top" ? (
|
|
273
|
-
default:
|
|
273
|
+
"has-tree": a.treeProps.show
|
|
274
|
+
}]) }, [w("div", q, [
|
|
275
|
+
S("搜索条件"),
|
|
276
|
+
n.searchFormPosition === "top" ? (j(), x(_, { key: 0 }, {
|
|
277
|
+
default: L(() => [a.toolbarProps.searchable ? R((j(), C("div", J, [D(g, {
|
|
274
278
|
ref: "form",
|
|
275
279
|
"label-position": "right",
|
|
276
|
-
model: n.searchModel ||
|
|
280
|
+
model: n.searchModel || a.searchPanelProps.model,
|
|
277
281
|
"label-width": n.labelWidth,
|
|
278
|
-
onSubmitCapture:
|
|
282
|
+
onSubmitCapture: z(a.onSearchClick, ["prevent"])
|
|
279
283
|
}, {
|
|
280
|
-
default:
|
|
281
|
-
default:
|
|
282
|
-
default:
|
|
284
|
+
default: L(() => [D(h, { reactive: "" }, {
|
|
285
|
+
default: L(() => [D(m, { gutter: 0 }, {
|
|
286
|
+
default: L(() => [N(e.$slots, "search-form", {}, () => [t[3] || (t[3] = w("p", null, "请添加搜索条件!", -1))]), D(p, {
|
|
283
287
|
class: "search-actions",
|
|
284
288
|
"hide-label": "",
|
|
285
289
|
"fixed-span": 24
|
|
286
290
|
}, {
|
|
287
|
-
default:
|
|
291
|
+
default: L(() => [D(c, {
|
|
288
292
|
type: "primary",
|
|
289
293
|
"native-type": "submit"
|
|
290
294
|
}, {
|
|
291
|
-
default:
|
|
295
|
+
default: L(() => [...t[4] || (t[4] = [E("开始搜索", -1)])]),
|
|
292
296
|
_: 1
|
|
293
|
-
}),
|
|
297
|
+
}), D(c, {
|
|
294
298
|
style: { "margin-left": "10px" },
|
|
295
|
-
onClick:
|
|
299
|
+
onClick: a.onClearClick
|
|
296
300
|
}, {
|
|
297
|
-
default:
|
|
301
|
+
default: L(() => [...t[5] || (t[5] = [E("清除条件", -1)])]),
|
|
298
302
|
_: 1
|
|
299
303
|
}, 8, ["onClick"])]),
|
|
300
304
|
_: 1
|
|
@@ -308,48 +312,48 @@ function $(e, t, n, r, i, s) {
|
|
|
308
312
|
"model",
|
|
309
313
|
"label-width",
|
|
310
314
|
"onSubmitCapture"
|
|
311
|
-
])], 512)), [[
|
|
315
|
+
])], 512)), [[I, i.isSearchVisible]]) : S("v-if", !0)]),
|
|
312
316
|
_: 3
|
|
313
|
-
})) :
|
|
314
|
-
|
|
315
|
-
n.showToolbar ? (
|
|
317
|
+
})) : S("v-if", !0),
|
|
318
|
+
S("顶部工具条"),
|
|
319
|
+
n.showToolbar ? (j(), x(v, O({ key: 1 }, a.toolbarProps, {
|
|
316
320
|
refreshable: "",
|
|
317
|
-
onSearch:
|
|
321
|
+
onSearch: a.toggleSearch,
|
|
318
322
|
onSettings: t[0] || (t[0] = () => e.$refs.table.toggleSettings()),
|
|
319
|
-
onDel:
|
|
320
|
-
onCreate:
|
|
321
|
-
onReload:
|
|
322
|
-
onExp:
|
|
323
|
+
onDel: a.del,
|
|
324
|
+
onCreate: a.create,
|
|
325
|
+
onReload: a.reloadTableAndTree,
|
|
326
|
+
onExp: a.exp,
|
|
323
327
|
onImp: t[1] || (t[1] = (e) => i.importDialogVisible = !0)
|
|
324
|
-
},
|
|
328
|
+
}, F(a.toolbarEventHandlers)), T({ _: 2 }, [
|
|
325
329
|
e.$slots["toolbar-button"] ? {
|
|
326
330
|
name: "default",
|
|
327
|
-
fn:
|
|
331
|
+
fn: L(() => [N(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
|
|
328
332
|
key: "0"
|
|
329
333
|
} : void 0,
|
|
330
334
|
e.$slots["toolbar-left"] ? {
|
|
331
335
|
name: "toolbar-left",
|
|
332
|
-
fn:
|
|
336
|
+
fn: L(() => [N(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
|
|
333
337
|
key: "1"
|
|
334
338
|
} : void 0,
|
|
335
339
|
e.$slots["toolbar-right"] ? {
|
|
336
340
|
name: "toolbar-right",
|
|
337
|
-
fn:
|
|
338
|
-
del:
|
|
339
|
-
create:
|
|
340
|
-
reload:
|
|
341
|
+
fn: L(() => [N(e.$slots, "toolbar-right", {
|
|
342
|
+
del: a.del,
|
|
343
|
+
create: a.create,
|
|
344
|
+
reload: a.reloadTableAndTree,
|
|
341
345
|
selectedRows: i.selectedRows
|
|
342
346
|
})]),
|
|
343
347
|
key: "2"
|
|
344
348
|
} : void 0,
|
|
345
349
|
e.$slots["toolbar-right-button"] ? {
|
|
346
350
|
name: "toolbar-right-button",
|
|
347
|
-
fn:
|
|
351
|
+
fn: L(() => [N(e.$slots, "toolbar-right-button")]),
|
|
348
352
|
key: "3"
|
|
349
353
|
} : void 0,
|
|
350
|
-
|
|
354
|
+
M(a.buttonSlots, (t) => ({
|
|
351
355
|
name: t,
|
|
352
|
-
fn:
|
|
356
|
+
fn: L(() => [N(e.$slots, t, { selectedRows: i.selectedRows })])
|
|
353
357
|
}))
|
|
354
358
|
]), 1040, [
|
|
355
359
|
"onSearch",
|
|
@@ -357,27 +361,27 @@ function $(e, t, n, r, i, s) {
|
|
|
357
361
|
"onCreate",
|
|
358
362
|
"onReload",
|
|
359
363
|
"onExp"
|
|
360
|
-
])) :
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
])) : S("v-if", !0),
|
|
365
|
+
w("div", Y, [
|
|
366
|
+
w("div", X, [
|
|
367
|
+
S("侧栏"),
|
|
368
|
+
a.treeProps.show ? (j(), C("div", {
|
|
365
369
|
key: 0,
|
|
366
370
|
ref: "treeScroller",
|
|
367
371
|
class: "table-view-sidebar",
|
|
368
|
-
onScroll: t[2] || (t[2] = (...e) =>
|
|
369
|
-
}, [
|
|
370
|
-
default:
|
|
372
|
+
onScroll: t[2] || (t[2] = (...e) => a.onTreeScroll && a.onTreeScroll(...e))
|
|
373
|
+
}, [S("<div style=\"font-size: 16px\">视图导航</div>"), D(y, O({ ref: "tree" }, a.treeProps, { readonly: "" }, F(a.toHyphenateKey(n.treeListeners))), {
|
|
374
|
+
default: L(({ node: t, data: n }) => [N(e.$slots, "tree-node", {
|
|
371
375
|
node: t,
|
|
372
376
|
data: n
|
|
373
|
-
}, () => [
|
|
377
|
+
}, () => [w("span", null, [w("i", { class: k([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), N(e.$slots, "tree-label", {
|
|
374
378
|
node: t,
|
|
375
379
|
data: n
|
|
376
|
-
}, () => [
|
|
380
|
+
}, () => [E(P(t.label), 1)])])])]),
|
|
377
381
|
_: 3
|
|
378
|
-
}, 16)], 544)) :
|
|
379
|
-
|
|
380
|
-
|
|
382
|
+
}, 16)], 544)) : S("v-if", !0),
|
|
383
|
+
S("表格"),
|
|
384
|
+
w("div", Z, [D(B, O({
|
|
381
385
|
ref: "table",
|
|
382
386
|
border: n.border,
|
|
383
387
|
class: [{
|
|
@@ -386,56 +390,63 @@ function $(e, t, n, r, i, s) {
|
|
|
386
390
|
"border-left": n.borderLeft || n.treeAttrs && n.treeAttrs.show,
|
|
387
391
|
"border-right": n.borderRight
|
|
388
392
|
}]
|
|
389
|
-
},
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
393
|
+
}, a.tableProps, {
|
|
394
|
+
"row-key": n.rowKey,
|
|
395
|
+
"row-db-click": a.rowDbClick,
|
|
396
|
+
data: n.data
|
|
397
|
+
}, F(a.toHyphenateKey(n.tableListeners)), {
|
|
398
|
+
onRowDblclick: a.rowDbClick,
|
|
399
|
+
onSelectionChange: a.onSelectionChange
|
|
400
|
+
}), T({
|
|
401
|
+
default: L(() => [N(e.$slots, "columns")]),
|
|
394
402
|
_: 2
|
|
395
|
-
}, [
|
|
403
|
+
}, [M(a.tableScopeSlotNames, (t) => ({
|
|
396
404
|
name: t,
|
|
397
|
-
fn:
|
|
405
|
+
fn: L(({ row: n }) => [N(e.$slots, t, { row: n })])
|
|
398
406
|
}))]), 1040, [
|
|
399
407
|
"border",
|
|
400
408
|
"class",
|
|
409
|
+
"row-key",
|
|
410
|
+
"row-db-click",
|
|
411
|
+
"data",
|
|
401
412
|
"onRowDblclick",
|
|
402
413
|
"onSelectionChange"
|
|
403
414
|
])])
|
|
404
415
|
]),
|
|
405
|
-
|
|
406
|
-
n.searchFormPosition === "right" ? (
|
|
416
|
+
S("搜索条件"),
|
|
417
|
+
n.searchFormPosition === "right" ? (j(), x(b, {
|
|
407
418
|
key: 0,
|
|
408
419
|
name: "slide"
|
|
409
420
|
}, {
|
|
410
|
-
default:
|
|
421
|
+
default: L(() => [a.toolbarProps.searchable ? R((j(), C("div", {
|
|
411
422
|
key: 0,
|
|
412
|
-
style:
|
|
423
|
+
style: A({ width: `${a.searchPanelProps.width}px` }),
|
|
413
424
|
class: "slide-panel"
|
|
414
|
-
}, [
|
|
425
|
+
}, [S("<div class=\"slide-panel-line\">\n <div class=\"slide-panel-line-indicator\"></div>\n </div>"), w("div", Q, [D(g, {
|
|
415
426
|
ref: "form",
|
|
416
427
|
"label-position": "right",
|
|
417
|
-
model: n.searchModel ||
|
|
428
|
+
model: n.searchModel || a.searchPanelProps.model,
|
|
418
429
|
"label-width": n.labelWidth,
|
|
419
|
-
onSubmitCapture:
|
|
430
|
+
onSubmitCapture: z(a.onSearchClick, ["prevent"])
|
|
420
431
|
}, {
|
|
421
|
-
default:
|
|
432
|
+
default: L(() => [D(h, {
|
|
422
433
|
block: "",
|
|
423
434
|
"wrap-col": !1
|
|
424
435
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
default:
|
|
436
|
+
default: L(() => [D(m, { gutter: 0 }, {
|
|
437
|
+
default: L(() => [N(e.$slots, "search-form", {}, () => [t[6] || (t[6] = w("p", null, "请添加搜索条件!", -1))])]),
|
|
427
438
|
_: 3
|
|
428
439
|
})]),
|
|
429
440
|
_: 3
|
|
430
|
-
}),
|
|
431
|
-
default:
|
|
441
|
+
}), D(G, { "label-width": "0" }, {
|
|
442
|
+
default: L(() => [w("div", $, [D(c, {
|
|
432
443
|
type: "primary",
|
|
433
444
|
"native-type": "submit"
|
|
434
445
|
}, {
|
|
435
|
-
default:
|
|
446
|
+
default: L(() => [...t[7] || (t[7] = [E("开始搜索", -1)])]),
|
|
436
447
|
_: 1
|
|
437
|
-
}),
|
|
438
|
-
default:
|
|
448
|
+
}), D(c, { onClick: a.onClearClick }, {
|
|
449
|
+
default: L(() => [...t[8] || (t[8] = [E("清除条件", -1)])]),
|
|
439
450
|
_: 1
|
|
440
451
|
}, 8, ["onClick"])])]),
|
|
441
452
|
_: 1
|
|
@@ -445,13 +456,13 @@ function $(e, t, n, r, i, s) {
|
|
|
445
456
|
"model",
|
|
446
457
|
"label-width",
|
|
447
458
|
"onSubmitCapture"
|
|
448
|
-
])])], 4)), [[
|
|
459
|
+
])])], 4)), [[I, i.isSearchVisible]]) : S("v-if", !0)]),
|
|
449
460
|
_: 3
|
|
450
|
-
})) :
|
|
461
|
+
})) : S("v-if", !0)
|
|
451
462
|
]),
|
|
452
|
-
|
|
463
|
+
N(e.$slots, "default")
|
|
453
464
|
])], 2);
|
|
454
465
|
}
|
|
455
|
-
var
|
|
466
|
+
var te = /* @__PURE__ */ c(K, [["render", ee]]);
|
|
456
467
|
//#endregion
|
|
457
|
-
export {
|
|
468
|
+
export { te as default };
|
package/toolbar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BQyL45PF2.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -42,7 +42,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
42
42
|
loadingIcon: (StringConstructor | ObjectConstructor)[];
|
|
43
43
|
disabled: {
|
|
44
44
|
type: BooleanConstructor;
|
|
45
|
-
default:
|
|
45
|
+
default: undefined;
|
|
46
46
|
};
|
|
47
47
|
icon: (StringConstructor | ObjectConstructor)[];
|
|
48
48
|
autofocus: {
|
|
@@ -125,7 +125,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
125
125
|
loadingIcon: (StringConstructor | ObjectConstructor)[];
|
|
126
126
|
disabled: {
|
|
127
127
|
type: BooleanConstructor;
|
|
128
|
-
default:
|
|
128
|
+
default: undefined;
|
|
129
129
|
};
|
|
130
130
|
icon: (StringConstructor | ObjectConstructor)[];
|
|
131
131
|
autofocus: {
|
package/toolbar-button/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/Dt3lfDnL.mjs";
|
|
2
2
|
export { e as default };
|
package/vue-cron/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/C7G-cAoI.mjs";
|
|
2
2
|
export { e as default };
|