@web-utils/form-ui 1.0.0-beta32 → 1.0.0-beta34
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/{Cby3mvvZ.mjs → 6whKG2aW.mjs} +4 -2
- package/chunks/B0QAMGEk.mjs +149 -0
- package/chunks/{C4bM8miy.mjs → BINk6iM9.mjs} +4 -3
- package/chunks/{Cc3EJjbV.mjs → BMybeJeX.mjs} +2 -2
- package/chunks/{BgDYHgyH.mjs → BOnjsuaF.mjs} +4 -1
- package/chunks/BQvDsDYm.mjs +199 -0
- package/chunks/BRCCvDXx.mjs +339 -0
- package/chunks/BX-cVxlK.mjs +102 -0
- package/chunks/{B99alfW4.mjs → BnDWAjBA.mjs} +2 -2
- package/chunks/BrhuWxfn.mjs +168 -0
- package/chunks/{bnRb5PUB.mjs → Bsff-xFB.mjs} +7 -5
- package/chunks/{Cy-4nmyC.mjs → Bx4hMd0g.mjs} +6 -4
- package/chunks/{BmZieBZW.mjs → ByS9PiXt.mjs} +4 -2
- package/chunks/{C9J3j0PX.mjs → C5jtjhYS.mjs} +2 -0
- package/chunks/CK4RBjb4.mjs +660 -0
- package/chunks/{CsfgUCe9.mjs → CMMPk7_3.mjs} +1 -1
- package/chunks/{C44-CFi-.mjs → CO4Fyzj-.mjs} +13 -4
- package/chunks/{Cgl-hCE5.mjs → COdSAAp_.mjs} +2 -2
- package/chunks/CRf0wnBc.mjs +181 -0
- package/chunks/{Ci1XxmdE.mjs → CYgTbmSw.mjs} +5 -3
- package/chunks/{4ZuVpQf6.mjs → CnAEuI_c.mjs} +1 -1
- package/chunks/DPO-hveW.mjs +233 -0
- package/chunks/{C3a15Ful.mjs → DSJFPBdn.mjs} +4 -2
- package/chunks/{D1EOkWJ7.mjs → DfMmYJVy.mjs} +2 -2
- package/chunks/{Dt6gY213.mjs → Dlemc_K8.mjs} +8 -5
- package/chunks/{DazglPJZ.mjs → DukJJ_BZ.mjs} +3 -1
- package/chunks/KZeDzvm6.mjs +115 -0
- package/chunks/{CugRu2Ka.mjs → PRSE4n97.mjs} +5 -3
- package/chunks/{D1G2MMMx.mjs → b5HOxD60.mjs} +13 -4
- package/chunks/{BV_P9a8o.mjs → bTej_00x.mjs} +4 -2
- package/chunks/{JhyiXnbd.mjs → ierlNKc4.mjs} +10 -4
- package/editable-tree/index.d.ts +254 -0
- package/editable-tree/index.mjs +2 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +6 -6
- package/element-dialog/index.mjs +1 -1
- package/form-cascader/index.d.ts +5 -5
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.d.ts +78 -7
- package/form-check-box-group/index.mjs +1 -1
- package/form-check-box-group/style.css +1 -0
- package/form-checkbox/index.d.ts +4 -2
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +63 -11
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +3 -3
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/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 +5 -3
- 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-item-group/index.d.ts +0 -2
- package/form-item-group/index.mjs +1 -1
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -1
- package/form-radio-group/index.d.ts +91 -4
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +82 -10
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +2 -2
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +4 -4
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/helper/dictionary.mjs +7 -7
- package/iframe-window/index.mjs +1 -1
- package/index.d.ts +2 -1
- package/index.mjs +47 -46
- package/month-calendar/index.d.ts +1 -1
- package/package.json +1 -1
- package/pageable-table/index.d.ts +4 -4
- package/pageable-table/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/table-column/index.d.ts +4 -4
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +340 -1
- package/table-view/index.mjs +458 -6
- package/table-view/style.css +1 -0
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +136 -24
- 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 +6 -1
- package/year-calendar/index.mjs +1 -1
- package/chunks/BQ77eAb3.mjs +0 -71
- package/chunks/Br4i8stg.mjs +0 -222
- package/chunks/DO8dVGef.mjs +0 -98
- package/chunks/DtAYXPvz.mjs +0 -108
- package/chunks/S64sNmuR.mjs +0 -226
- package/chunks/dM-icPM8.mjs +0 -107
- package/chunks/pxFLMMUm.mjs +0 -110
- package/chunks/q1SlJP1y.mjs +0 -171
- /package/chunks/{CkFapoKt.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{BV_N8p9t.mjs → DiE4GJtU.mjs} +0 -0
package/table-view/index.mjs
CHANGED
|
@@ -1,9 +1,461 @@
|
|
|
1
|
+
import { c as e, r as t } from "../chunks/BX-cVxlK.mjs";
|
|
2
|
+
import { processButtons as n, reloadTable as r } from "../api/index.mjs";
|
|
3
|
+
import { tableViewContextKey as i } from "../constants/index.mjs";
|
|
4
|
+
import { t as a } from "../chunks/CK4RBjb4.mjs";
|
|
5
|
+
import { t as o } from "../chunks/B1MSrc6f.mjs";
|
|
6
|
+
import s from "../form-item-config-provider/index.mjs";
|
|
7
|
+
import { t as c } from "../chunks/CO4Fyzj-.mjs";
|
|
8
|
+
import { t as l } from "../chunks/BnDWAjBA.mjs";
|
|
9
|
+
import { hasOwn as u, isArray as d, isFunction as f, isString as p, toStringArray as m, trace as h, warning as g } from "@web-utils/core";
|
|
10
|
+
import { Transition as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, mergeProps as T, normalizeClass as E, normalizeStyle as D, openBlock as O, renderList as k, renderSlot as A, resolveComponent as j, toDisplayString as M, toHandlers as N, vShow as P, withCtx as F, withDirectives as I, withModifiers as L } from "vue";
|
|
11
|
+
import { merge as R } from "@web-utils/integrations/lodash";
|
|
12
|
+
import { ElButton as z, ElCollapseTransition as B, ElForm as V, ElFormItem as H, ElRow as U } from "element-plus/es";
|
|
13
|
+
import "element-plus/es/components/base/style/css";
|
|
14
|
+
import "element-plus/es/components/button/style/css";
|
|
15
|
+
import "element-plus/es/components/form-item/style/css";
|
|
16
|
+
import "element-plus/es/components/row/style/css";
|
|
17
|
+
import "element-plus/es/components/form/style/css";
|
|
18
|
+
import "element-plus/es/components/collapse-transition/style/css";
|
|
1
19
|
//#region src/components/form/TableView.vue
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
20
|
+
var W = [
|
|
21
|
+
"back",
|
|
22
|
+
"create",
|
|
23
|
+
"save",
|
|
24
|
+
"withdraw",
|
|
25
|
+
"edit",
|
|
26
|
+
"submit",
|
|
27
|
+
"publish",
|
|
28
|
+
"agree",
|
|
29
|
+
"disagree",
|
|
30
|
+
"reject",
|
|
31
|
+
"finish",
|
|
32
|
+
"cancel",
|
|
33
|
+
"enable",
|
|
34
|
+
"exp",
|
|
35
|
+
"imp",
|
|
36
|
+
"del",
|
|
37
|
+
"disabled",
|
|
38
|
+
"reload",
|
|
39
|
+
"slot"
|
|
40
|
+
], G = {
|
|
41
|
+
name: "TableView",
|
|
42
|
+
bus: {
|
|
43
|
+
reloadTableView(e) {
|
|
44
|
+
if (this._viewIds) if (p(e) || d(e)) {
|
|
45
|
+
let t = e;
|
|
46
|
+
p(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (h.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
|
|
47
|
+
} else g.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
48
|
+
},
|
|
49
|
+
reloadTreeView(e) {
|
|
50
|
+
if (this._viewIds) if (p(e) || d(e)) {
|
|
51
|
+
let t = e;
|
|
52
|
+
p(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (h.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
|
|
53
|
+
} else g.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
provide() {
|
|
57
|
+
return { [i]: this };
|
|
58
|
+
},
|
|
59
|
+
props: {
|
|
60
|
+
viewId: [String, Array],
|
|
61
|
+
searchPanelAttrs: {
|
|
62
|
+
type: Object,
|
|
63
|
+
default: () => {}
|
|
64
|
+
},
|
|
65
|
+
toolbarAttrs: {
|
|
66
|
+
type: Object,
|
|
67
|
+
default: () => {}
|
|
68
|
+
},
|
|
69
|
+
toolbarListeners: Object,
|
|
70
|
+
treeAttrs: {
|
|
71
|
+
type: Object,
|
|
72
|
+
default: () => {}
|
|
73
|
+
},
|
|
74
|
+
treeListeners: Object,
|
|
75
|
+
tableAttrs: Object,
|
|
76
|
+
searchModel: Object,
|
|
77
|
+
tableListeners: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: () => {}
|
|
80
|
+
},
|
|
81
|
+
deleteApi: Function,
|
|
82
|
+
borderTop: Boolean,
|
|
83
|
+
borderBottom: Boolean,
|
|
84
|
+
borderLeft: Boolean,
|
|
85
|
+
borderRight: Boolean,
|
|
86
|
+
border: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !0
|
|
89
|
+
},
|
|
90
|
+
labelWidth: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "120px"
|
|
93
|
+
},
|
|
94
|
+
formPath: [String, Function],
|
|
95
|
+
searchFormPosition: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: "top"
|
|
98
|
+
},
|
|
99
|
+
embed: Boolean,
|
|
100
|
+
deleteTips: String,
|
|
101
|
+
selectTips: String,
|
|
102
|
+
rowKey: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: "id"
|
|
105
|
+
},
|
|
106
|
+
expandSearch: Boolean,
|
|
107
|
+
showToolbar: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !0
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
emits: ["reset"],
|
|
113
|
+
data() {
|
|
114
|
+
return {
|
|
115
|
+
importDialogVisible: !1,
|
|
116
|
+
selectedRows: [],
|
|
117
|
+
isSearchVisible: !1
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
computed: {
|
|
121
|
+
buttonSlots() {
|
|
122
|
+
return W.filter((e) => this.$slots[e]);
|
|
123
|
+
},
|
|
124
|
+
toolbarProps() {
|
|
125
|
+
var e, t;
|
|
126
|
+
let r = R({}, 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 = m(r.buttons), r.searchable = !!((e = (t = this.$slots)["search-form"]) != null && e.call(t)), r;
|
|
128
|
+
},
|
|
129
|
+
treeProps() {
|
|
130
|
+
return e(R({}, this.treeAttrs, {
|
|
131
|
+
treeProps: {
|
|
132
|
+
children: "children",
|
|
133
|
+
label: "label",
|
|
134
|
+
isLeaf: (e) => u(e, "hasChildren") ? !e.hasChildren : u(e, "hasChild") ? !e.hasChild : !0
|
|
135
|
+
},
|
|
136
|
+
show: !1,
|
|
137
|
+
lazy: !0,
|
|
138
|
+
readonly: !0,
|
|
139
|
+
data: [],
|
|
140
|
+
expandFirstNode: !0,
|
|
141
|
+
defaultExpandAll: !1
|
|
142
|
+
}));
|
|
143
|
+
},
|
|
144
|
+
tableProps() {
|
|
145
|
+
let t = this.tableAttrs.api || this.$parent.getPage, n = {
|
|
146
|
+
model: this.searchModel || {},
|
|
147
|
+
height: "auto",
|
|
148
|
+
highlightCurrentRow: !0,
|
|
149
|
+
api: t
|
|
150
|
+
};
|
|
151
|
+
return e(R({}, this.tableAttrs, n));
|
|
152
|
+
},
|
|
153
|
+
searchPanelProps() {
|
|
154
|
+
let t = {
|
|
155
|
+
width: 350,
|
|
156
|
+
model: this.searchModel || {}
|
|
157
|
+
};
|
|
158
|
+
return e(R({}, this.searchPanelAttrs, t));
|
|
159
|
+
},
|
|
160
|
+
toolbarEventHandlers() {
|
|
161
|
+
if (this.toolbarListeners) {
|
|
162
|
+
let { exp: e, ...t } = this.toolbarListeners;
|
|
163
|
+
return t;
|
|
164
|
+
}
|
|
165
|
+
return {};
|
|
166
|
+
},
|
|
167
|
+
tableScopeSlotNames() {
|
|
168
|
+
var e;
|
|
169
|
+
return ((e = this.tableAttrs) == null || (e = e.columns) == null ? void 0 : e.map((e) => e.prop).filter((e) => this.$slots[e])) ?? [];
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
watch: { expandSearch: {
|
|
173
|
+
immediate: !0,
|
|
174
|
+
handler(e) {
|
|
175
|
+
this.isSearchVisible = e;
|
|
176
|
+
}
|
|
177
|
+
} },
|
|
178
|
+
created() {
|
|
179
|
+
this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
|
|
180
|
+
},
|
|
181
|
+
activated() {
|
|
182
|
+
this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
|
|
183
|
+
},
|
|
184
|
+
methods: {
|
|
185
|
+
toHyphenateKey: e,
|
|
186
|
+
onTreeScroll() {
|
|
187
|
+
this.treeScrollTop = this.$refs.treeScroller.scrollTop, this.treeScrollLeft = this.$refs.treeScroller.scrollLeft;
|
|
188
|
+
},
|
|
189
|
+
toggleSearch() {
|
|
190
|
+
this.isSearchVisible = !this.isSearchVisible;
|
|
191
|
+
},
|
|
192
|
+
onSearchClick() {
|
|
193
|
+
this.reloadTable();
|
|
194
|
+
},
|
|
195
|
+
onClearClick() {
|
|
196
|
+
this.$emit("reset"), this.$refs.form.resetFields(), this.reloadTable();
|
|
197
|
+
},
|
|
198
|
+
openFrom(e) {
|
|
199
|
+
this.$router.push(t(this.formPath, e));
|
|
200
|
+
},
|
|
201
|
+
rowDbClick(e) {
|
|
202
|
+
var t;
|
|
203
|
+
!((t = this.tableListeners) != null && t["row-dblclick"]) && this.formPath && this.openFrom(e);
|
|
204
|
+
},
|
|
205
|
+
onSelectionChange(e) {
|
|
206
|
+
this.selectedRows = e;
|
|
207
|
+
},
|
|
208
|
+
create() {
|
|
209
|
+
var e;
|
|
210
|
+
!((e = this.toolbarListeners) != null && e.create) && this.formPath && this.openFrom();
|
|
211
|
+
},
|
|
212
|
+
async del() {
|
|
213
|
+
var e;
|
|
214
|
+
let t = this.deleteApi || this.$parent.del;
|
|
215
|
+
if (!((e = this.toolbarListeners) != null && e.del) && f(t)) {
|
|
216
|
+
if (!this.selectedRows.length) {
|
|
217
|
+
this.$message.warning(this.selectTips || "请选择要删除的记录!");
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
await this.$confirm(this.deleteTips || `您确定要删除选中的[<span class="break-word" style="color: orange">${this.selectedRows.length}</span>]行记录吗?`, "系统提示", {
|
|
221
|
+
type: "warning",
|
|
222
|
+
modal: !0,
|
|
223
|
+
dangerouslyUseHTMLString: !0,
|
|
224
|
+
closeOnClickModal: !1,
|
|
225
|
+
beforeClose: async (e, n, i) => {
|
|
226
|
+
if (e === "confirm") try {
|
|
227
|
+
n.confirmButtonLoading = !0, n.confirmButtonText = "删除...";
|
|
228
|
+
let e = await t.call(this, this.selectedRows.map((e) => e[this.rowKey]));
|
|
229
|
+
this.$message.success(e.data.msg || "删除成功"), this.reloadTableAndTree(), r();
|
|
230
|
+
} catch {}
|
|
231
|
+
i();
|
|
232
|
+
}
|
|
233
|
+
}).catch((e) => e);
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
reloadTable() {
|
|
237
|
+
var e;
|
|
238
|
+
(e = this.$refs.table) == null || e.reload();
|
|
239
|
+
},
|
|
240
|
+
async refreshTable(e) {
|
|
241
|
+
var t;
|
|
242
|
+
await ((t = this.$refs.table) == null ? void 0 : t.getPage(e));
|
|
243
|
+
},
|
|
244
|
+
reloadTree() {
|
|
245
|
+
var e;
|
|
246
|
+
(e = this.$refs.tree) == null || e.reloadTree();
|
|
247
|
+
},
|
|
248
|
+
reloadTableAndTree() {
|
|
249
|
+
this.reloadTable(), this.reloadTree();
|
|
250
|
+
},
|
|
251
|
+
currentRow() {
|
|
252
|
+
return this.$refs.table.currentRow;
|
|
253
|
+
},
|
|
254
|
+
getPageQuery() {
|
|
255
|
+
return this.$refs.table.getPageQuery();
|
|
256
|
+
},
|
|
257
|
+
exp() {
|
|
258
|
+
var e, t;
|
|
259
|
+
(e = (t = this.toolbarListeners).exp) == null || e.call(t, this.selectedRows);
|
|
260
|
+
},
|
|
261
|
+
getTableColumns() {
|
|
262
|
+
return this.$refs.table.tableColumns;
|
|
263
|
+
}
|
|
6
264
|
}
|
|
7
|
-
}
|
|
265
|
+
}, K = { class: "table-view-wrapper" }, q = {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: "search-form-top"
|
|
268
|
+
}, 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" };
|
|
269
|
+
function $(e, t, n, r, i, o) {
|
|
270
|
+
let u = z, d = j("FormItem"), f = U, p = s, m = V, h = B, g = l, R = a, W = c, G = H;
|
|
271
|
+
return O(), b("div", { class: E(["table-view", {
|
|
272
|
+
embed: n.embed,
|
|
273
|
+
"has-tree": o.treeProps.show
|
|
274
|
+
}]) }, [x("div", K, [
|
|
275
|
+
y("搜索条件"),
|
|
276
|
+
n.searchFormPosition === "top" ? (O(), v(h, { key: 0 }, {
|
|
277
|
+
default: F(() => [o.toolbarProps.searchable ? I((O(), b("div", q, [w(m, {
|
|
278
|
+
ref: "form",
|
|
279
|
+
"label-position": "right",
|
|
280
|
+
model: n.searchModel || o.searchPanelProps.model,
|
|
281
|
+
"label-width": n.labelWidth,
|
|
282
|
+
onSubmitCapture: L(o.onSearchClick, ["prevent"])
|
|
283
|
+
}, {
|
|
284
|
+
default: F(() => [w(p, { reactive: "" }, {
|
|
285
|
+
default: F(() => [w(f, { gutter: 0 }, {
|
|
286
|
+
default: F(() => [A(e.$slots, "search-form", {}, () => [t[3] || (t[3] = x("p", null, "请添加搜索条件!", -1))]), w(d, {
|
|
287
|
+
class: "search-actions",
|
|
288
|
+
"hide-label": "",
|
|
289
|
+
"fixed-span": 24
|
|
290
|
+
}, {
|
|
291
|
+
default: F(() => [w(u, {
|
|
292
|
+
type: "primary",
|
|
293
|
+
"native-type": "submit"
|
|
294
|
+
}, {
|
|
295
|
+
default: F(() => [...t[4] || (t[4] = [C("开始搜索", -1)])]),
|
|
296
|
+
_: 1
|
|
297
|
+
}), w(u, {
|
|
298
|
+
style: { "margin-left": "10px" },
|
|
299
|
+
onClick: o.onClearClick
|
|
300
|
+
}, {
|
|
301
|
+
default: F(() => [...t[5] || (t[5] = [C("清除条件", -1)])]),
|
|
302
|
+
_: 1
|
|
303
|
+
}, 8, ["onClick"])]),
|
|
304
|
+
_: 1
|
|
305
|
+
})]),
|
|
306
|
+
_: 3
|
|
307
|
+
})]),
|
|
308
|
+
_: 3
|
|
309
|
+
})]),
|
|
310
|
+
_: 3
|
|
311
|
+
}, 8, [
|
|
312
|
+
"model",
|
|
313
|
+
"label-width",
|
|
314
|
+
"onSubmitCapture"
|
|
315
|
+
])], 512)), [[P, i.isSearchVisible]]) : y("v-if", !0)]),
|
|
316
|
+
_: 3
|
|
317
|
+
})) : y("v-if", !0),
|
|
318
|
+
y("顶部工具条"),
|
|
319
|
+
n.showToolbar ? (O(), v(g, T({ key: 1 }, o.toolbarProps, {
|
|
320
|
+
refreshable: "",
|
|
321
|
+
onSearch: o.toggleSearch,
|
|
322
|
+
onSettings: t[0] || (t[0] = () => e.$refs.table.toggleSettings()),
|
|
323
|
+
onDel: o.del,
|
|
324
|
+
onCreate: o.create,
|
|
325
|
+
onReload: o.reloadTableAndTree,
|
|
326
|
+
onExp: o.exp,
|
|
327
|
+
onImp: t[1] || (t[1] = (e) => i.importDialogVisible = !0)
|
|
328
|
+
}, N(o.toolbarEventHandlers)), S({ _: 2 }, [
|
|
329
|
+
e.$slots["toolbar-button"] ? {
|
|
330
|
+
name: "default",
|
|
331
|
+
fn: F(() => [A(e.$slots, "toolbar-button", { selectedRows: i.selectedRows })]),
|
|
332
|
+
key: "0"
|
|
333
|
+
} : void 0,
|
|
334
|
+
e.$slots["toolbar-left"] ? {
|
|
335
|
+
name: "toolbar-left",
|
|
336
|
+
fn: F(() => [A(e.$slots, "toolbar-left", { selectedRows: i.selectedRows })]),
|
|
337
|
+
key: "1"
|
|
338
|
+
} : void 0,
|
|
339
|
+
e.$slots["toolbar-right"] ? {
|
|
340
|
+
name: "toolbar-right",
|
|
341
|
+
fn: F(() => [A(e.$slots, "toolbar-right", {
|
|
342
|
+
del: o.del,
|
|
343
|
+
create: o.create,
|
|
344
|
+
reload: o.reloadTableAndTree,
|
|
345
|
+
selectedRows: i.selectedRows
|
|
346
|
+
})]),
|
|
347
|
+
key: "2"
|
|
348
|
+
} : void 0,
|
|
349
|
+
e.$slots["toolbar-right-button"] ? {
|
|
350
|
+
name: "toolbar-right-button",
|
|
351
|
+
fn: F(() => [A(e.$slots, "toolbar-right-button")]),
|
|
352
|
+
key: "3"
|
|
353
|
+
} : void 0,
|
|
354
|
+
k(o.buttonSlots, (t) => ({
|
|
355
|
+
name: t,
|
|
356
|
+
fn: F(() => [A(e.$slots, t, { selectedRows: i.selectedRows })])
|
|
357
|
+
}))
|
|
358
|
+
]), 1040, [
|
|
359
|
+
"onSearch",
|
|
360
|
+
"onDel",
|
|
361
|
+
"onCreate",
|
|
362
|
+
"onReload",
|
|
363
|
+
"onExp"
|
|
364
|
+
])) : y("v-if", !0),
|
|
365
|
+
x("div", J, [
|
|
366
|
+
x("div", Y, [
|
|
367
|
+
y("侧栏"),
|
|
368
|
+
o.treeProps.show ? (O(), b("div", {
|
|
369
|
+
key: 0,
|
|
370
|
+
ref: "treeScroller",
|
|
371
|
+
class: "table-view-sidebar",
|
|
372
|
+
onScroll: t[2] || (t[2] = (...e) => o.onTreeScroll && o.onTreeScroll(...e))
|
|
373
|
+
}, [y("<div style=\"font-size: 16px\">视图导航</div>"), w(R, T({ ref: "tree" }, o.treeProps, { readonly: "" }, N(o.toHyphenateKey(n.treeListeners))), {
|
|
374
|
+
default: F(({ node: t, data: n }) => [A(e.$slots, "tree-node", {
|
|
375
|
+
node: t,
|
|
376
|
+
data: n
|
|
377
|
+
}, () => [x("span", null, [x("i", { class: E([t.childNodes.length > 0 ? t.expanded ? "el-icon-folder-opened" : "el-icon-folder" : "el-icon-tickets", "node-icon"]) }, null, 2), A(e.$slots, "tree-label", {
|
|
378
|
+
node: t,
|
|
379
|
+
data: n
|
|
380
|
+
}, () => [C(M(t.label), 1)])])])]),
|
|
381
|
+
_: 3
|
|
382
|
+
}, 16)], 544)) : y("v-if", !0),
|
|
383
|
+
y("表格"),
|
|
384
|
+
x("div", X, [w(W, T({
|
|
385
|
+
ref: "table",
|
|
386
|
+
border: n.border,
|
|
387
|
+
class: [{
|
|
388
|
+
"border-top": n.borderTop,
|
|
389
|
+
"border-bottom": n.borderBottom,
|
|
390
|
+
"border-left": n.borderLeft || n.treeAttrs && n.treeAttrs.show,
|
|
391
|
+
"border-right": n.borderRight
|
|
392
|
+
}]
|
|
393
|
+
}, o.tableProps, N(o.toHyphenateKey(n.tableListeners)), {
|
|
394
|
+
onRowDblclick: o.rowDbClick,
|
|
395
|
+
onSelectionChange: o.onSelectionChange
|
|
396
|
+
}), S({
|
|
397
|
+
default: F(() => [A(e.$slots, "columns")]),
|
|
398
|
+
_: 2
|
|
399
|
+
}, [k(o.tableScopeSlotNames, (t) => ({
|
|
400
|
+
name: t,
|
|
401
|
+
fn: F(({ row: n }) => [A(e.$slots, t, { row: n })])
|
|
402
|
+
}))]), 1040, [
|
|
403
|
+
"border",
|
|
404
|
+
"class",
|
|
405
|
+
"onRowDblclick",
|
|
406
|
+
"onSelectionChange"
|
|
407
|
+
])])
|
|
408
|
+
]),
|
|
409
|
+
y("搜索条件"),
|
|
410
|
+
n.searchFormPosition === "right" ? (O(), v(_, {
|
|
411
|
+
key: 0,
|
|
412
|
+
name: "slide"
|
|
413
|
+
}, {
|
|
414
|
+
default: F(() => [o.toolbarProps.searchable ? I((O(), b("div", {
|
|
415
|
+
key: 0,
|
|
416
|
+
style: D({ width: `${o.searchPanelProps.width}px` }),
|
|
417
|
+
class: "slide-panel"
|
|
418
|
+
}, [y("<div class=\"slide-panel-line\">\r\n <div class=\"slide-panel-line-indicator\"></div>\r\n </div>"), x("div", Z, [w(m, {
|
|
419
|
+
ref: "form",
|
|
420
|
+
"label-position": "right",
|
|
421
|
+
model: n.searchModel || o.searchPanelProps.model,
|
|
422
|
+
"label-width": n.labelWidth,
|
|
423
|
+
onSubmitCapture: L(o.onSearchClick, ["prevent"])
|
|
424
|
+
}, {
|
|
425
|
+
default: F(() => [w(p, {
|
|
426
|
+
block: "",
|
|
427
|
+
"wrap-col": !1
|
|
428
|
+
}, {
|
|
429
|
+
default: F(() => [w(f, { gutter: 0 }, {
|
|
430
|
+
default: F(() => [A(e.$slots, "search-form", {}, () => [t[6] || (t[6] = x("p", null, "请添加搜索条件!", -1))])]),
|
|
431
|
+
_: 3
|
|
432
|
+
})]),
|
|
433
|
+
_: 3
|
|
434
|
+
}), w(G, { "label-width": "0" }, {
|
|
435
|
+
default: F(() => [x("div", Q, [w(u, {
|
|
436
|
+
type: "primary",
|
|
437
|
+
"native-type": "submit"
|
|
438
|
+
}, {
|
|
439
|
+
default: F(() => [...t[7] || (t[7] = [C("开始搜索", -1)])]),
|
|
440
|
+
_: 1
|
|
441
|
+
}), w(u, { onClick: o.onClearClick }, {
|
|
442
|
+
default: F(() => [...t[8] || (t[8] = [C("清除条件", -1)])]),
|
|
443
|
+
_: 1
|
|
444
|
+
}, 8, ["onClick"])])]),
|
|
445
|
+
_: 1
|
|
446
|
+
})]),
|
|
447
|
+
_: 3
|
|
448
|
+
}, 8, [
|
|
449
|
+
"model",
|
|
450
|
+
"label-width",
|
|
451
|
+
"onSubmitCapture"
|
|
452
|
+
])])], 4)), [[P, i.isSearchVisible]]) : y("v-if", !0)]),
|
|
453
|
+
_: 3
|
|
454
|
+
})) : y("v-if", !0)
|
|
455
|
+
]),
|
|
456
|
+
A(e.$slots, "default")
|
|
457
|
+
])], 2);
|
|
458
|
+
}
|
|
459
|
+
var ee = /* @__PURE__ */ o(G, [["render", $]]);
|
|
8
460
|
//#endregion
|
|
9
|
-
export {
|
|
461
|
+
export { ee as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.table-view{flex-direction:column;height:100%;padding:10px;display:flex}.table-view.has-tree .table-view-wrapper .pageable-table-wrapper,.table-view.embed{padding:0}.table-view.embed .toolbar{border:1px solid #ebeef5;border-bottom:none}.table-view.embed .table-view-wrapper{box-shadow:none;border-radius:0}.table-view.embed .table-view-wrapper .pageable-table-wrapper{padding:0}.table-view .toolbar{border-bottom:none;height:46px;line-height:46px}.table-view .table-view-wrapper{border-radius:4px;flex-direction:column;height:100%;display:flex;overflow:hidden;box-shadow:0 2px 12px #0000001a}.table-view .table-view-wrapper .pageable-table-wrapper{padding-left:10px;padding-right:10px}.table-view .table-view-wrapper .el-pagination{color:#303133;white-space:nowrap;text-align:left;padding:6px 10px;font-weight:700}.table-view .border-top .el-table--border{border-top:1px solid #ebeef5}.table-view .border-bottom .el-table--border{border-bottom:1px solid #ebeef5}.table-view .border-left .el-table--border,.table-view .border-left .el-pagination{border-left:1px solid #ebeef5}.table-view .border-right .el-table--border{border-right:1px solid #ebeef5}.table-view .node-icon{margin-right:4px}.table-view .table-view-content-wrapper{flex:1;position:relative;overflow:hidden}.table-view .table-view-content{background-color:#fff;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.table-view .table-view-sidebar{background-color:#fafafa;border-top:1px solid #ebeef5;flex-shrink:0;width:240px;height:100%;padding:4px 10px 10px 4px;overflow:auto}.table-view .table-view-sidebar .et-tree-wrapper{display:table;overflow:visible}.table-view .table-view-sidebar .et-tree-wrapper .el-tree{background-color:#0000}.table-view .table-view-table{flex:auto;height:100%}.table-view .search-form-top{background-color:#fff;padding:10px 10px 0}.table-view .search-form-top .el-form-item__content{align-items:center;display:flex}.table-view .search-actions{float:right}.table-view .search-actions .el-form-item__content{text-align:right;justify-content:right}.table-view .slide-panel{z-index:5;background-color:#fff;display:flex;position:absolute;top:0;bottom:0;right:0;box-shadow:0 0 10px 5px #0000001a}.table-view .slide-panel .slide-panel-line{background-color:#ddd;flex-shrink:0;width:3px;height:100%;position:relative}.table-view .slide-panel .slide-panel-line-indicator{background-color:#aaa;width:100%;height:50px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.table-view .slide-panel .slide-panel-actions{justify-content:center;align-items:center;margin-top:10px;display:flex}.table-view .slide-panel .slide-panel-content{flex:1;padding:10px;overflow:auto}.table-view .slide-panel .slide-panel-content .el-date-editor{width:100%}
|
package/toolbar/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/
|
|
1
|
+
import { t as e } from "../chunks/BnDWAjBA.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,25 +1,76 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
label: StringConstructor;
|
|
3
|
-
icon: StringConstructor;
|
|
4
|
-
type: StringConstructor;
|
|
5
2
|
size: {
|
|
6
3
|
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
type: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
plain: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
text: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
bg: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
link: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
round: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
circle: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
dashed: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
loading: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
loadingIcon: (StringConstructor | ObjectConstructor)[];
|
|
43
|
+
disabled: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
icon: (StringConstructor | ObjectConstructor)[];
|
|
48
|
+
autofocus: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
7
51
|
};
|
|
8
|
-
loadable: BooleanConstructor;
|
|
9
|
-
disabled: BooleanConstructor;
|
|
10
|
-
footer: BooleanConstructor;
|
|
11
|
-
circle: BooleanConstructor;
|
|
12
|
-
plain: BooleanConstructor;
|
|
13
|
-
round: BooleanConstructor;
|
|
14
|
-
primary: BooleanConstructor;
|
|
15
|
-
warning: BooleanConstructor;
|
|
16
52
|
nativeType: {
|
|
17
53
|
type: StringConstructor;
|
|
18
54
|
default: string;
|
|
19
55
|
};
|
|
56
|
+
autoInsertSpace: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
color: StringConstructor;
|
|
61
|
+
dark: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
tag: (StringConstructor | ObjectConstructor)[];
|
|
66
|
+
label: StringConstructor;
|
|
67
|
+
loadable: BooleanConstructor;
|
|
68
|
+
footer: BooleanConstructor;
|
|
69
|
+
primary: BooleanConstructor;
|
|
70
|
+
warning: BooleanConstructor;
|
|
20
71
|
privilege: StringConstructor;
|
|
21
72
|
condition: {
|
|
22
|
-
type: (BooleanConstructor |
|
|
73
|
+
type: (BooleanConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
23
74
|
};
|
|
24
75
|
conditionTips: StringConstructor;
|
|
25
76
|
confirm: BooleanConstructor;
|
|
@@ -31,27 +82,78 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
31
82
|
cancelButtonText: StringConstructor;
|
|
32
83
|
confirmButtonText: StringConstructor;
|
|
33
84
|
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
34
|
-
label: StringConstructor;
|
|
35
|
-
icon: StringConstructor;
|
|
36
|
-
type: StringConstructor;
|
|
37
85
|
size: {
|
|
38
86
|
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
type: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
plain: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
text: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
bg: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
link: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
round: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
circle: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
dashed: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
loading: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
loadingIcon: (StringConstructor | ObjectConstructor)[];
|
|
126
|
+
disabled: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
icon: (StringConstructor | ObjectConstructor)[];
|
|
131
|
+
autofocus: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
39
134
|
};
|
|
40
|
-
loadable: BooleanConstructor;
|
|
41
|
-
disabled: BooleanConstructor;
|
|
42
|
-
footer: BooleanConstructor;
|
|
43
|
-
circle: BooleanConstructor;
|
|
44
|
-
plain: BooleanConstructor;
|
|
45
|
-
round: BooleanConstructor;
|
|
46
|
-
primary: BooleanConstructor;
|
|
47
|
-
warning: BooleanConstructor;
|
|
48
135
|
nativeType: {
|
|
49
136
|
type: StringConstructor;
|
|
50
137
|
default: string;
|
|
51
138
|
};
|
|
139
|
+
autoInsertSpace: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
color: StringConstructor;
|
|
144
|
+
dark: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
tag: (StringConstructor | ObjectConstructor)[];
|
|
149
|
+
label: StringConstructor;
|
|
150
|
+
loadable: BooleanConstructor;
|
|
151
|
+
footer: BooleanConstructor;
|
|
152
|
+
primary: BooleanConstructor;
|
|
153
|
+
warning: BooleanConstructor;
|
|
52
154
|
privilege: StringConstructor;
|
|
53
155
|
condition: {
|
|
54
|
-
type: (BooleanConstructor |
|
|
156
|
+
type: (BooleanConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
55
157
|
};
|
|
56
158
|
conditionTips: StringConstructor;
|
|
57
159
|
confirm: BooleanConstructor;
|
|
@@ -64,14 +166,24 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
64
166
|
confirmButtonText: StringConstructor;
|
|
65
167
|
}>> & Readonly<{}>, {
|
|
66
168
|
primary: boolean;
|
|
169
|
+
size: string;
|
|
170
|
+
loading: boolean;
|
|
67
171
|
disabled: boolean;
|
|
68
172
|
plain: boolean;
|
|
173
|
+
autofocus: boolean;
|
|
69
174
|
round: boolean;
|
|
175
|
+
type: string;
|
|
70
176
|
nativeType: string;
|
|
177
|
+
text: boolean;
|
|
71
178
|
footer: boolean;
|
|
179
|
+
link: boolean;
|
|
72
180
|
loadable: boolean;
|
|
73
181
|
warning: boolean;
|
|
74
182
|
confirm: boolean;
|
|
183
|
+
dark: boolean;
|
|
75
184
|
circle: boolean;
|
|
185
|
+
bg: boolean;
|
|
186
|
+
dashed: boolean;
|
|
187
|
+
autoInsertSpace: boolean;
|
|
76
188
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
77
189
|
export default _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/BrhuWxfn.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/b5HOxD60.mjs";
|
|
2
2
|
export { e as default };
|