@web-utils/component 2.8.8 → 2.8.9
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/chat/index.mjs +1 -1
- package/chunk-file-uploader/index.mjs +5 -3
- package/chunks/FormTemp.a77c73c4.mjs +163 -0
- package/{icon-temp/index.mjs → chunks/IconTemp.a10129a6.mjs} +2 -2
- package/chunks/{dataformat.ab62230f.mjs → dataformat.4100726d.mjs} +8 -8
- package/chunks/{dic.7f13b573.mjs → dic.9e90e2a4.mjs} +1 -1
- package/chunks/{event.1ac32f1d.mjs → event.ebd9a3a6.mjs} +2 -2
- package/chunks/{init.47ce5ed9.mjs → init.27f6a0c4.mjs} +2 -2
- package/chunks/{util.505913d9.mjs → util.d691afb6.mjs} +17 -17
- package/dialog-form/index.mjs +1 -1
- package/egd-collapse-item/index.mjs +14 -12
- package/flow/index.mjs +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +36 -32
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +2504 -140
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +1 -1
- package/fy-dynamic/index.mjs +2 -2
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +538 -333
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +21 -21
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +14 -12
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +2 -2
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.mjs +475 -552
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/package.json +1 -1
- package/process-palette/index.mjs +190 -0
- package/process-palette/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +104 -34
- package/text-ellipsis/index.mjs +1 -1
- package/tinymce-editor/index.mjs +846 -44
- package/tinymce-editor/style.css +1 -1
- package/verify/index.mjs +1 -1
- package/web-types.json +25 -658
- package/chunk-file-uploader-button/index.mjs +0 -60
- package/chunk-file-uploader-button/style.css +0 -1
- package/chunk-file-uploader-drop/index.mjs +0 -83
- package/chunk-file-uploader-drop/style.css +0 -1
- package/chunk-file-uploader-file/index.mjs +0 -311
- package/chunk-file-uploader-file/style.css +0 -1
- package/chunk-file-uploader-files/index.mjs +0 -49
- package/chunk-file-uploader-files/style.css +0 -1
- package/chunk-file-uploader-list/index.mjs +0 -50
- package/chunk-file-uploader-list/style.css +0 -1
- package/chunk-file-uploader-un-support/index.mjs +0 -51
- package/chunk-file-uploader-un-support/style.css +0 -1
- package/chunks/config.46422d7f.mjs +0 -73
- package/chunks/detail.6e46de33.mjs +0 -29
- package/chunks/mixins.5a78e0db.mjs +0 -16
- package/chunks/utils.97652d86.mjs +0 -26
- package/column/index.mjs +0 -115
- package/column-default/index.mjs +0 -106
- package/column-dynamic/index.mjs +0 -93
- package/column-menu/index.mjs +0 -288
- package/column-slot/index.mjs +0 -267
- package/dialog-column/index.mjs +0 -139
- package/dialog-excel/index.mjs +0 -211
- package/dialog-filter/index.mjs +0 -248
- package/form-group/index.mjs +0 -117
- package/form-group/style.css +0 -1
- package/form-temp/index.mjs +0 -137
- package/fy-dialog-form/index.mjs +0 -272
- package/fy-form-menu/index.mjs +0 -95
- package/header-menu/index.mjs +0 -238
- package/header-search/index.mjs +0 -255
- package/table-page/index.mjs +0 -130
- package/tinymce-wrapper/index.mjs +0 -821
- package/tinymce-wrapper/style.css +0 -1
- package/trigger/index.mjs +0 -71
package/column-menu/index.mjs
DELETED
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { c as u } from "../chunks/config.46422d7f.mjs";
|
|
2
|
-
import { p as d } from "../chunks/permission.ce5d2121.mjs";
|
|
3
|
-
import { o as a } from "../chunks/util.505913d9.mjs";
|
|
4
|
-
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
-
var m = function() {
|
|
6
|
-
var e = this, o = e.$createElement, r = e._self._c || o;
|
|
7
|
-
return e.optVal(e.crud.tableOption.menu, e.config.menu) && e.crud.getPermission("menu") ? r("ElTableColumn", {
|
|
8
|
-
key: "menu",
|
|
9
|
-
staticClass: "avue-crud__btn",
|
|
10
|
-
attrs: {
|
|
11
|
-
prop: "menu",
|
|
12
|
-
fixed: e.optVal(e.crud.tableOption.menuFixed, e.config.menuFixed),
|
|
13
|
-
label: e.crud.tableOption.menuTitle || "操作",
|
|
14
|
-
align: e.crud.tableOption.menuAlign || e.config.menuAlign,
|
|
15
|
-
"header-align": e.crud.tableOption.menuHeaderAlign || e.config.menuHeaderAlign,
|
|
16
|
-
width: e.crud.isMobile ? e.crud.tableOption.menuXsWidth || e.config.menuXsWidth : e.crud.tableOption.menuWidth || e.config.menuWidth
|
|
17
|
-
},
|
|
18
|
-
scopedSlots: e._u([{
|
|
19
|
-
key: "default",
|
|
20
|
-
fn: function(c) {
|
|
21
|
-
var n = c.row, t = c.$index;
|
|
22
|
-
return [e.isMenu ? r("ElDropdown", {
|
|
23
|
-
attrs: {
|
|
24
|
-
size: e.crud.isMediumSize
|
|
25
|
-
},
|
|
26
|
-
scopedSlots: e._u([{
|
|
27
|
-
key: "dropdown",
|
|
28
|
-
fn: function() {
|
|
29
|
-
return [r("ElDropdownMenu", [e.optVal(e.crud.tableOption.viewBtn, e.config.viewBtn) ? r("ElDropdownItem", {
|
|
30
|
-
directives: [{
|
|
31
|
-
name: "permission",
|
|
32
|
-
rawName: "v-permission",
|
|
33
|
-
value: e.crud.getPermission("viewBtn", n, t),
|
|
34
|
-
expression: "crud.getPermission('viewBtn', row, $index)"
|
|
35
|
-
}],
|
|
36
|
-
attrs: {
|
|
37
|
-
icon: e.crud.getBtnIcon("viewBtn")
|
|
38
|
-
},
|
|
39
|
-
nativeOn: {
|
|
40
|
-
click: function(i) {
|
|
41
|
-
return e.crud.rowView(n, t);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}, [e._v(" " + e._s(e.crud.menuIcon("viewBtn")) + " ")]) : e._e(), e.optVal(e.crud.tableOption.editBtn, e.config.editBtn) ? r("ElDropdownItem", {
|
|
45
|
-
directives: [{
|
|
46
|
-
name: "permission",
|
|
47
|
-
rawName: "v-permission",
|
|
48
|
-
value: e.crud.getPermission("editBtn", n, t),
|
|
49
|
-
expression: "crud.getPermission('editBtn', row, $index)"
|
|
50
|
-
}],
|
|
51
|
-
attrs: {
|
|
52
|
-
icon: e.crud.getBtnIcon("editBtn")
|
|
53
|
-
},
|
|
54
|
-
nativeOn: {
|
|
55
|
-
click: function(i) {
|
|
56
|
-
return e.crud.rowEdit(n, t);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}, [e._v(" " + e._s(e.crud.menuIcon("editBtn")) + " ")]) : e._e(), e.optVal(e.crud.tableOption.copyBtn, e.config.copyBtn) ? r("ElDropdownItem", {
|
|
60
|
-
directives: [{
|
|
61
|
-
name: "permission",
|
|
62
|
-
rawName: "v-permission",
|
|
63
|
-
value: e.crud.getPermission("copyBtn", n, t),
|
|
64
|
-
expression: "crud.getPermission('copyBtn', row, $index)"
|
|
65
|
-
}],
|
|
66
|
-
attrs: {
|
|
67
|
-
icon: e.crud.getBtnIcon("copyBtn")
|
|
68
|
-
},
|
|
69
|
-
nativeOn: {
|
|
70
|
-
click: function(i) {
|
|
71
|
-
return e.crud.rowCopy(n);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, [e._v(" " + e._s(e.crud.menuIcon("copyBtn")) + " ")]) : e._e(), e.optVal(e.crud.tableOption.delBtn, e.config.delBtn) ? r("ElDropdownItem", {
|
|
75
|
-
directives: [{
|
|
76
|
-
name: "permission",
|
|
77
|
-
rawName: "v-permission",
|
|
78
|
-
value: e.crud.getPermission("delBtn", n, t),
|
|
79
|
-
expression: "crud.getPermission('delBtn', row, $index)"
|
|
80
|
-
}],
|
|
81
|
-
attrs: {
|
|
82
|
-
icon: e.crud.getBtnIcon("delBtn")
|
|
83
|
-
},
|
|
84
|
-
nativeOn: {
|
|
85
|
-
click: function(i) {
|
|
86
|
-
return e.crud.rowDel(n, t);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}, [e._v(" " + e._s(e.crud.menuIcon("delBtn")) + " ")]) : e._e(), e._t("menuBtn", null, {
|
|
90
|
-
row: n,
|
|
91
|
-
type: e.menuText("primary"),
|
|
92
|
-
disabled: e.crud.btnDisabled,
|
|
93
|
-
size: e.crud.isMediumSize,
|
|
94
|
-
index: t
|
|
95
|
-
})], 2)];
|
|
96
|
-
},
|
|
97
|
-
proxy: !0
|
|
98
|
-
}], null, !0)
|
|
99
|
-
}, [r("ElButton", {
|
|
100
|
-
attrs: {
|
|
101
|
-
type: "text",
|
|
102
|
-
size: e.crud.isMediumSize
|
|
103
|
-
}
|
|
104
|
-
}, [e._v(" " + e._s(e.crud.tableOption.menuBtnTitle || "按钮") + " "), r("i", {
|
|
105
|
-
staticClass: "el-icon-arrow-down el-icon--right"
|
|
106
|
-
})])], 1) : ["button", "text", "icon"].includes(e.menuType) ? [e.optVal(e.crud.tableOption.cellBtn, e.config.cellBtn) ? [e.optVal(e.crud.tableOption.editBtn, e.config.editBtn) && !n.$cellEdit ? r("ElButton", {
|
|
107
|
-
directives: [{
|
|
108
|
-
name: "permission",
|
|
109
|
-
rawName: "v-permission",
|
|
110
|
-
value: e.crud.getPermission("editBtn", n, t),
|
|
111
|
-
expression: "crud.getPermission('editBtn', row, $index)"
|
|
112
|
-
}],
|
|
113
|
-
attrs: {
|
|
114
|
-
type: e.menuText("primary"),
|
|
115
|
-
icon: e.crud.getBtnIcon("editBtn"),
|
|
116
|
-
size: e.crud.isMediumSize,
|
|
117
|
-
disabled: e.crud.btnDisabledList[t]
|
|
118
|
-
},
|
|
119
|
-
on: {
|
|
120
|
-
click: function(i) {
|
|
121
|
-
return i.stopPropagation(), e.crud.rowCell(n, t);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("editBtn")) + " ")]], 2) : e.optVal(e.crud.tableOption.saveBtn, e.config.saveBtn) && n.$cellEdit ? r("ElButton", {
|
|
125
|
-
directives: [{
|
|
126
|
-
name: "permission",
|
|
127
|
-
rawName: "v-permission",
|
|
128
|
-
value: e.crud.getPermission("saveBtn", n, t),
|
|
129
|
-
expression: "crud.getPermission('saveBtn', row, $index)"
|
|
130
|
-
}],
|
|
131
|
-
attrs: {
|
|
132
|
-
type: e.menuText("primary"),
|
|
133
|
-
icon: e.crud.getBtnIcon("saveBtn"),
|
|
134
|
-
size: e.crud.isMediumSize,
|
|
135
|
-
disabled: e.crud.btnDisabledList[t]
|
|
136
|
-
},
|
|
137
|
-
on: {
|
|
138
|
-
click: function(i) {
|
|
139
|
-
return i.stopPropagation(), e.crud.rowCell(n, t);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("saveBtn")) + " ")]], 2) : e._e(), n.$cellEdit ? r("ElButton", {
|
|
143
|
-
attrs: {
|
|
144
|
-
type: e.menuText("danger"),
|
|
145
|
-
icon: e.crud.getBtnIcon("cancelBtn"),
|
|
146
|
-
size: e.crud.isMediumSize,
|
|
147
|
-
disabled: e.crud.btnDisabledList[t]
|
|
148
|
-
},
|
|
149
|
-
on: {
|
|
150
|
-
click: function(i) {
|
|
151
|
-
return i.stopPropagation(), e.crud.rowCancel(n, t);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("cancelBtn")) + " ")]], 2) : e._e()] : e._e(), e.optVal(e.crud.tableOption.viewBtn, e.config.viewBtn) ? r("ElButton", {
|
|
155
|
-
directives: [{
|
|
156
|
-
name: "permission",
|
|
157
|
-
rawName: "v-permission",
|
|
158
|
-
value: e.crud.getPermission("viewBtn", n, t),
|
|
159
|
-
expression: "crud.getPermission('viewBtn', row, $index)"
|
|
160
|
-
}],
|
|
161
|
-
attrs: {
|
|
162
|
-
type: e.menuText("success"),
|
|
163
|
-
icon: e.crud.getBtnIcon("viewBtn"),
|
|
164
|
-
size: e.crud.isMediumSize,
|
|
165
|
-
disabled: e.btnDisabled
|
|
166
|
-
},
|
|
167
|
-
on: {
|
|
168
|
-
click: function(i) {
|
|
169
|
-
return i.stopPropagation(), e.crud.rowView(n, t);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("viewBtn")) + " ")]], 2) : e._e(), e.optVal(e.crud.tableOption.editBtn, e.config.editBtn) && !e.crud.tableOption.cellBtn ? r("ElButton", {
|
|
173
|
-
directives: [{
|
|
174
|
-
name: "permission",
|
|
175
|
-
rawName: "v-permission",
|
|
176
|
-
value: e.crud.getPermission("editBtn", n, t),
|
|
177
|
-
expression: "crud.getPermission('editBtn', row, $index)"
|
|
178
|
-
}],
|
|
179
|
-
attrs: {
|
|
180
|
-
type: e.menuText("primary"),
|
|
181
|
-
icon: e.crud.getBtnIcon("editBtn"),
|
|
182
|
-
size: e.crud.isMediumSize,
|
|
183
|
-
disabled: e.btnDisabled
|
|
184
|
-
},
|
|
185
|
-
on: {
|
|
186
|
-
click: function(i) {
|
|
187
|
-
return i.stopPropagation(), e.crud.rowEdit(n, t);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("editBtn")) + " ")]], 2) : e._e(), e.optVal(e.crud.tableOption.copyBtn, e.config.copyBtn) ? r("ElButton", {
|
|
191
|
-
directives: [{
|
|
192
|
-
name: "permission",
|
|
193
|
-
rawName: "v-permission",
|
|
194
|
-
value: e.crud.getPermission("copyBtn", n, t),
|
|
195
|
-
expression: "crud.getPermission('copyBtn', row, $index)"
|
|
196
|
-
}],
|
|
197
|
-
attrs: {
|
|
198
|
-
type: e.menuText("primary"),
|
|
199
|
-
icon: e.crud.getBtnIcon("copyBtn"),
|
|
200
|
-
size: e.crud.isMediumSize,
|
|
201
|
-
disabled: e.btnDisabled
|
|
202
|
-
},
|
|
203
|
-
on: {
|
|
204
|
-
click: function(i) {
|
|
205
|
-
return i.stopPropagation(), e.crud.rowCopy(n);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("copyBtn")) + " ")]], 2) : e._e(), e.optVal(e.crud.tableOption.delBtn, e.config.delBtn) && !n.$cellEdit ? r("ElButton", {
|
|
209
|
-
directives: [{
|
|
210
|
-
name: "permission",
|
|
211
|
-
rawName: "v-permission",
|
|
212
|
-
value: e.crud.getPermission("delBtn", n, t),
|
|
213
|
-
expression: "crud.getPermission('delBtn', row, $index)"
|
|
214
|
-
}],
|
|
215
|
-
attrs: {
|
|
216
|
-
type: e.menuText("danger"),
|
|
217
|
-
icon: e.crud.getBtnIcon("delBtn"),
|
|
218
|
-
size: e.crud.isMediumSize,
|
|
219
|
-
disabled: e.btnDisabled
|
|
220
|
-
},
|
|
221
|
-
on: {
|
|
222
|
-
click: function(i) {
|
|
223
|
-
return i.stopPropagation(), e.crud.rowDel(n, t);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}, [e.isIconMenu ? e._e() : [e._v(" " + e._s(e.crud.menuIcon("delBtn")) + " ")]], 2) : e._e()] : e._e(), e._t("menu", null, {
|
|
227
|
-
row: n,
|
|
228
|
-
type: e.menuText("primary"),
|
|
229
|
-
disabled: e.crud.btnDisabled,
|
|
230
|
-
size: e.crud.isMediumSize,
|
|
231
|
-
index: t
|
|
232
|
-
})];
|
|
233
|
-
}
|
|
234
|
-
}], null, !0)
|
|
235
|
-
}) : e._e();
|
|
236
|
-
}, p = [];
|
|
237
|
-
const B = {
|
|
238
|
-
name: "ColumnMenu",
|
|
239
|
-
directives: {
|
|
240
|
-
permission: d
|
|
241
|
-
},
|
|
242
|
-
inject: ["crud"],
|
|
243
|
-
data() {
|
|
244
|
-
return {
|
|
245
|
-
config: u
|
|
246
|
-
};
|
|
247
|
-
},
|
|
248
|
-
computed: {
|
|
249
|
-
menuType() {
|
|
250
|
-
return this.crud.tableOption.menuType || this.$AVUE.menuType || "button";
|
|
251
|
-
},
|
|
252
|
-
isIconMenu() {
|
|
253
|
-
return this.menuType === "icon";
|
|
254
|
-
},
|
|
255
|
-
isTextMenu() {
|
|
256
|
-
return this.menuType === "text";
|
|
257
|
-
},
|
|
258
|
-
isMenu() {
|
|
259
|
-
return this.menuType === "menu";
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
methods: {
|
|
263
|
-
optVal: a,
|
|
264
|
-
menuText(e) {
|
|
265
|
-
return ["text", "menu"].includes(this.menuType) ? "text" : e;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}, s = {};
|
|
269
|
-
var v = /* @__PURE__ */ l(
|
|
270
|
-
B,
|
|
271
|
-
m,
|
|
272
|
-
p,
|
|
273
|
-
!1,
|
|
274
|
-
g,
|
|
275
|
-
null,
|
|
276
|
-
null,
|
|
277
|
-
null
|
|
278
|
-
);
|
|
279
|
-
function g(e) {
|
|
280
|
-
for (let o in s)
|
|
281
|
-
this[o] = s[o];
|
|
282
|
-
}
|
|
283
|
-
const f = /* @__PURE__ */ function() {
|
|
284
|
-
return v.exports;
|
|
285
|
-
}();
|
|
286
|
-
export {
|
|
287
|
-
f as default
|
|
288
|
-
};
|
package/column-slot/index.mjs
DELETED
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { d as h } from "../chunks/detail.6e46de33.mjs";
|
|
2
|
-
import { o as f, u as b, i as g, D as p, b as y, d as _ } from "../chunks/util.505913d9.mjs";
|
|
3
|
-
import { s as C } from "../chunks/dic.7f13b573.mjs";
|
|
4
|
-
import { isBlank as i } from "@web-utils/core";
|
|
5
|
-
import { n as $ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
6
|
-
var v = function() {
|
|
7
|
-
var e = this, t = e.$createElement, l = e._self._c || t;
|
|
8
|
-
return e.getColumnProp(e.column, "hide") ? l("ElTableColumn", {
|
|
9
|
-
key: e.column.prop,
|
|
10
|
-
attrs: {
|
|
11
|
-
prop: e.column.prop,
|
|
12
|
-
label: e.column.label,
|
|
13
|
-
"column-key": e.column.prop,
|
|
14
|
-
"filter-placement": "bottom-end",
|
|
15
|
-
filters: e.getColumnProp(e.column, "filters"),
|
|
16
|
-
"filter-method": e.getColumnProp(e.column, "filterMethod") ? e.handleFilterMethod : void 0,
|
|
17
|
-
"filter-multiple": e.optVal(e.column.filterMultiple, !0),
|
|
18
|
-
"show-overflow-tooltip": e.column.overHidden,
|
|
19
|
-
"min-width": e.column.minWidth,
|
|
20
|
-
sortable: e.getColumnProp(e.column, "sortable"),
|
|
21
|
-
"sort-method": e.column.sortMethod,
|
|
22
|
-
"sort-orders": e.column.sortOrders,
|
|
23
|
-
"sort-by": e.column.sortBy,
|
|
24
|
-
resizable: e.column.resizable,
|
|
25
|
-
"render-header": e.column.renderHeader,
|
|
26
|
-
align: e.column.align || e.crud.tableOption.align,
|
|
27
|
-
"header-align": e.column.headerAlign || e.crud.tableOption.headerAlign,
|
|
28
|
-
width: e.getColumnProp(e.column, "width"),
|
|
29
|
-
fixed: e.getColumnProp(e.column, "fixed")
|
|
30
|
-
},
|
|
31
|
-
scopedSlots: e._u([{
|
|
32
|
-
key: "header",
|
|
33
|
-
fn: function(n) {
|
|
34
|
-
var o = n.$index;
|
|
35
|
-
return [e.crud.getSlotName(e.column, "H", e.crud.$scopedSlots) ? e._t(e.crud.getSlotName(e.column, "H"), null, null, {
|
|
36
|
-
column: e.column,
|
|
37
|
-
$index: o
|
|
38
|
-
}) : l("span", [e._v(e._s(e.column.label))])];
|
|
39
|
-
}
|
|
40
|
-
}, {
|
|
41
|
-
key: "default",
|
|
42
|
-
fn: function(n) {
|
|
43
|
-
var o = n.row, a = n.$index;
|
|
44
|
-
return [o.$cellEdit && e.column.cell ? l("ElFormItem", {
|
|
45
|
-
attrs: {
|
|
46
|
-
prop: e.crud.isTree ? "" : `list.${a}.${e.column.prop}`,
|
|
47
|
-
label: e.vaildLabel(e.column, o, " "),
|
|
48
|
-
"label-width": e.vaildLabel(e.column, o, "1px"),
|
|
49
|
-
rules: e.column.rules
|
|
50
|
-
}
|
|
51
|
-
}, [l("ElTooltip", {
|
|
52
|
-
attrs: {
|
|
53
|
-
content: (e.crud.listError[`list.${a}.${e.column.prop}`] || {}).msg,
|
|
54
|
-
disabled: !(e.crud.listError[`list.${a}.${e.column.prop}`] || {}).valid,
|
|
55
|
-
placement: "top"
|
|
56
|
-
}
|
|
57
|
-
}, [e.crud.getSlotName(e.column, "F", e.crud.$scopedSlots) ? e._t(e.crud.getSlotName(e.column, "F"), null, null, {
|
|
58
|
-
row: o,
|
|
59
|
-
dic: e.crud.DIC[e.column.prop],
|
|
60
|
-
size: e.crud.isMediumSize,
|
|
61
|
-
index: a,
|
|
62
|
-
disabled: e.crud.btnDisabledList[a],
|
|
63
|
-
label: e.handleDetail(o, e.column),
|
|
64
|
-
$cell: o.$cellEdit
|
|
65
|
-
}) : l("FormTemp", e._b({
|
|
66
|
-
attrs: {
|
|
67
|
-
column: e.column,
|
|
68
|
-
size: e.crud.isMediumSize,
|
|
69
|
-
"table-data": {
|
|
70
|
-
index: a,
|
|
71
|
-
row: o,
|
|
72
|
-
label: e.handleDetail(o, e.column)
|
|
73
|
-
},
|
|
74
|
-
dic: (e.crud.cascaderDIC[a] || {})[e.column.prop] || e.crud.DIC[e.column.prop],
|
|
75
|
-
props: e.column.props || e.crud.tableOption.props,
|
|
76
|
-
readonly: e.column.readonly,
|
|
77
|
-
disabled: e.crud.disabled || e.crud.tableOption.disabled || e.column.disabled || e.crud.btnDisabledList[a],
|
|
78
|
-
clearable: e.optVal(e.column.clearable, !1),
|
|
79
|
-
"column-slot": e.crud.mainSlot
|
|
80
|
-
},
|
|
81
|
-
on: {
|
|
82
|
-
change: function(r) {
|
|
83
|
-
return e.columnChange(o, e.column, a);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
scopedSlots: e._u([e._l(e.crud.mainSlot, function(r) {
|
|
87
|
-
return {
|
|
88
|
-
key: r,
|
|
89
|
-
fn: function(c) {
|
|
90
|
-
return [e._t(r, null, null, c)];
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
})], null, !0),
|
|
94
|
-
model: {
|
|
95
|
-
value: o[e.column.prop],
|
|
96
|
-
callback: function(r) {
|
|
97
|
-
e.$set(o, e.column.prop, r);
|
|
98
|
-
},
|
|
99
|
-
expression: "row[column.prop]"
|
|
100
|
-
}
|
|
101
|
-
}, "FormTemp", e.uploadFun(e.column, e.crud), !1))], 2)], 1) : e.crud.$scopedSlots[e.column.prop] ? e._t(e.column.prop, null, {
|
|
102
|
-
row: o,
|
|
103
|
-
index: a,
|
|
104
|
-
dic: e.crud.DIC[e.column.prop],
|
|
105
|
-
size: e.crud.isMediumSize,
|
|
106
|
-
label: e.handleDetail(o, e.column)
|
|
107
|
-
}) : [["img", "upload"].includes(e.column.type) ? l("span", {
|
|
108
|
-
staticClass: "avue-crud__img "
|
|
109
|
-
}, [e._l(e.getImgList(o, e.column), function(r, c) {
|
|
110
|
-
return [e.isMediaType(r, e.column.fileType) ? l(e.isMediaType(r, e.column.fileType), {
|
|
111
|
-
key: c,
|
|
112
|
-
tag: "Component",
|
|
113
|
-
attrs: {
|
|
114
|
-
src: r
|
|
115
|
-
},
|
|
116
|
-
on: {
|
|
117
|
-
click: function(s) {
|
|
118
|
-
return s.stopPropagation(), e.openImg(o, e.column, c);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}) : l("i", {
|
|
122
|
-
key: c,
|
|
123
|
-
staticClass: "el-icon-document",
|
|
124
|
-
attrs: {
|
|
125
|
-
src: r
|
|
126
|
-
},
|
|
127
|
-
on: {
|
|
128
|
-
click: function(s) {
|
|
129
|
-
return s.stopPropagation(), e.openImg(o, e.column, c);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
})];
|
|
133
|
-
})], 2) : e.column.type === "url" ? l("span", e._l(e.corArray(o, e.column), function(r, c) {
|
|
134
|
-
return l("ElLink", {
|
|
135
|
-
key: c,
|
|
136
|
-
attrs: {
|
|
137
|
-
type: "primary",
|
|
138
|
-
href: r,
|
|
139
|
-
target: e.column.target || "_blank"
|
|
140
|
-
}
|
|
141
|
-
}, [e._v(e._s(r))]);
|
|
142
|
-
}), 1) : e.column.type === "rate" ? l("span", [l("FyRate", {
|
|
143
|
-
attrs: {
|
|
144
|
-
disabled: ""
|
|
145
|
-
},
|
|
146
|
-
model: {
|
|
147
|
-
value: o[e.column.prop],
|
|
148
|
-
callback: function(r) {
|
|
149
|
-
e.$set(o, e.column.prop, r);
|
|
150
|
-
},
|
|
151
|
-
expression: "row[column.prop]"
|
|
152
|
-
}
|
|
153
|
-
})], 1) : e.column.type === "color" ? l("i", {
|
|
154
|
-
staticClass: "avue-crud__color",
|
|
155
|
-
style: {
|
|
156
|
-
backgroundColor: o[e.column.prop]
|
|
157
|
-
}
|
|
158
|
-
}) : e.column.type === "icon" ? l("IconTemp", {
|
|
159
|
-
attrs: {
|
|
160
|
-
text: o[e.column.prop]
|
|
161
|
-
}
|
|
162
|
-
}) : e.column.html ? l("span", {
|
|
163
|
-
domProps: {
|
|
164
|
-
innerHTML: e._s(e.handleDetail(o, e.column))
|
|
165
|
-
}
|
|
166
|
-
}) : l("span", {
|
|
167
|
-
domProps: {
|
|
168
|
-
textContent: e._s(e.handleDetail(o, e.column))
|
|
169
|
-
}
|
|
170
|
-
})]];
|
|
171
|
-
}
|
|
172
|
-
}], null, !0)
|
|
173
|
-
}) : e._e();
|
|
174
|
-
}, I = [];
|
|
175
|
-
const d = {}, D = {
|
|
176
|
-
name: "ColumnSlot",
|
|
177
|
-
inject: ["dynamic", "crud"],
|
|
178
|
-
props: {
|
|
179
|
-
column: Object,
|
|
180
|
-
columnOption: Array
|
|
181
|
-
},
|
|
182
|
-
created() {
|
|
183
|
-
const e = [
|
|
184
|
-
"getColumnProp",
|
|
185
|
-
"handleFilterMethod",
|
|
186
|
-
"handleFilters"
|
|
187
|
-
];
|
|
188
|
-
Object.keys(this.dynamic).forEach((t) => {
|
|
189
|
-
e.includes(t) && (this[t] = this.dynamic[t]);
|
|
190
|
-
});
|
|
191
|
-
},
|
|
192
|
-
methods: {
|
|
193
|
-
isBlank: i,
|
|
194
|
-
optVal: f,
|
|
195
|
-
uploadFun: b,
|
|
196
|
-
isMediaType(e, t) {
|
|
197
|
-
return g(e, t);
|
|
198
|
-
},
|
|
199
|
-
vaildLabel(e, t, l) {
|
|
200
|
-
if (e.rules && t.$cellEdit)
|
|
201
|
-
return l;
|
|
202
|
-
},
|
|
203
|
-
columnChange(e, t, l) {
|
|
204
|
-
const n = `${l}-${t.prop}`;
|
|
205
|
-
d[n] || (this.handleChange(t, e), typeof t.change == "function" && t.cell === !0 && t.change({ row: e, column: t, index: l, value: e[t.prop] })), d[n] = !0, this.$nextTick(() => {
|
|
206
|
-
d[n] = !1;
|
|
207
|
-
});
|
|
208
|
-
},
|
|
209
|
-
handleChange(e, t) {
|
|
210
|
-
e.cascader && this.$nextTick(() => {
|
|
211
|
-
const l = e.cascader;
|
|
212
|
-
l.forEach((n) => {
|
|
213
|
-
const o = n, a = t[e.prop], r = t.$index, c = this.findObject(this.columnOption, o);
|
|
214
|
-
i(c) || (i(this.crud.cascaderDIC[r]) && this.$set(this.crud.cascaderDIC, r, {}), this.crud.cascaderIndexList.includes(r) && l.forEach((s) => {
|
|
215
|
-
this.$set(this.crud.cascaderDIC[r], s.prop, []), l.forEach((u) => t[u] = "");
|
|
216
|
-
}), !(i(l) || i(a) || i(c)) && C({
|
|
217
|
-
column: c,
|
|
218
|
-
value: a,
|
|
219
|
-
form: t
|
|
220
|
-
}).then((s) => {
|
|
221
|
-
const u = s || [];
|
|
222
|
-
this.crud.cascaderIndexList.includes(r) || this.crud.cascaderIndexList.push(r), this.crud.cascaderDicList[r] || this.$set(this.crud.cascaderDicList, r, {}), this.crud.cascaderDicList[r][o] || this.$set(this.crud.cascaderDicList[r], o, u), this.$set(this.crud.cascaderDIC[r], o, u), !i(u[c.cascaderIndex]) && !i(u) && !i(c.cascaderIndex) && (t[o] = u[c.cascaderIndex][(c.props || {}).value || p.value]);
|
|
223
|
-
}));
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
},
|
|
227
|
-
handleDetail(e, t) {
|
|
228
|
-
const l = t.parentProp ? (this.crud.cascaderDIC[e.$index] || {})[t.prop] : this.crud.DIC[t.prop], n = h(e, t, this.crud.tableOption, l);
|
|
229
|
-
return !i(l) && this.crud.tableOption.filterDic !== !0 && (e[`$${t.prop}`] = n), n;
|
|
230
|
-
},
|
|
231
|
-
corArray(e, t) {
|
|
232
|
-
let l = this.handleDetail(e, t);
|
|
233
|
-
return Array.isArray(l) || (l = i(l) ? [] : l.split(y)), _(l);
|
|
234
|
-
},
|
|
235
|
-
openImg(e, t, l) {
|
|
236
|
-
let n = this.getImgList(e, t);
|
|
237
|
-
n = n.map((o) => ({ thumbUrl: o, url: o, type: t.fileType })), this.$ImagePreview(n, l);
|
|
238
|
-
},
|
|
239
|
-
getImgList(e, t) {
|
|
240
|
-
var a, r;
|
|
241
|
-
const l = ((a = t.propsHttp) == null ? void 0 : a.home) || "", n = ((r = t.props) == null ? void 0 : r.value) || p.value, o = this.corArray(e, t);
|
|
242
|
-
return o.forEach((c, s) => {
|
|
243
|
-
o[s] = l + (c[n] ? c[n] : c);
|
|
244
|
-
}), o;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}, m = {};
|
|
248
|
-
var x = /* @__PURE__ */ $(
|
|
249
|
-
D,
|
|
250
|
-
v,
|
|
251
|
-
I,
|
|
252
|
-
!1,
|
|
253
|
-
k,
|
|
254
|
-
null,
|
|
255
|
-
null,
|
|
256
|
-
null
|
|
257
|
-
);
|
|
258
|
-
function k(e) {
|
|
259
|
-
for (let t in m)
|
|
260
|
-
this[t] = m[t];
|
|
261
|
-
}
|
|
262
|
-
const M = /* @__PURE__ */ function() {
|
|
263
|
-
return x.exports;
|
|
264
|
-
}();
|
|
265
|
-
export {
|
|
266
|
-
M as default
|
|
267
|
-
};
|
package/dialog-column/index.mjs
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { c as u } from "../chunks/config.46422d7f.mjs";
|
|
2
|
-
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
-
var d = function() {
|
|
4
|
-
var e = this, l = e.$createElement, r = e._self._c || l;
|
|
5
|
-
return e.columnBox ? r("div", [r("ElDrawer", {
|
|
6
|
-
staticClass: "avue-crud__dialog avue-crud__column avue-dialog",
|
|
7
|
-
attrs: {
|
|
8
|
-
"lock-scroll": "",
|
|
9
|
-
"append-to-body": "",
|
|
10
|
-
title: "列显隐",
|
|
11
|
-
size: e.crud.isMobile ? "100%" : "40%",
|
|
12
|
-
visible: e.columnBox
|
|
13
|
-
},
|
|
14
|
-
on: {
|
|
15
|
-
"update:visible": function(o) {
|
|
16
|
-
e.columnBox = o;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}, [r("ElTable", {
|
|
20
|
-
ref: "table",
|
|
21
|
-
attrs: {
|
|
22
|
-
data: e.data,
|
|
23
|
-
height: "100%",
|
|
24
|
-
size: "small",
|
|
25
|
-
border: ""
|
|
26
|
-
}
|
|
27
|
-
}, [r("ElTableColumn", {
|
|
28
|
-
key: "label",
|
|
29
|
-
attrs: {
|
|
30
|
-
align: "center",
|
|
31
|
-
width: "100",
|
|
32
|
-
"header-align": "center",
|
|
33
|
-
prop: "label",
|
|
34
|
-
label: "列名"
|
|
35
|
-
}
|
|
36
|
-
}), e._l(e.defaultColumn, function(o, i) {
|
|
37
|
-
return [o.hide !== !0 ? r("ElTableColumn", {
|
|
38
|
-
key: i,
|
|
39
|
-
attrs: {
|
|
40
|
-
label: o.label,
|
|
41
|
-
prop: o.prop,
|
|
42
|
-
align: "center",
|
|
43
|
-
"header-align": "center"
|
|
44
|
-
},
|
|
45
|
-
scopedSlots: e._u([{
|
|
46
|
-
key: "default",
|
|
47
|
-
fn: function(s) {
|
|
48
|
-
var t = s.row;
|
|
49
|
-
return [r("ElCheckbox", {
|
|
50
|
-
on: {
|
|
51
|
-
change: function(n) {
|
|
52
|
-
return e.handleChange(o.prop);
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
model: {
|
|
56
|
-
value: e.crud.objectOption[t.prop][o.prop],
|
|
57
|
-
callback: function(n) {
|
|
58
|
-
e.$set(e.crud.objectOption[t.prop], o.prop, n);
|
|
59
|
-
},
|
|
60
|
-
expression: "crud.objectOption[row.prop][item.prop]"
|
|
61
|
-
}
|
|
62
|
-
})];
|
|
63
|
-
}
|
|
64
|
-
}], null, !0)
|
|
65
|
-
}) : e._e()];
|
|
66
|
-
})], 2)], 1)], 1) : e._e();
|
|
67
|
-
}, p = [];
|
|
68
|
-
const h = {
|
|
69
|
-
name: "DialogColumn",
|
|
70
|
-
inject: ["crud"],
|
|
71
|
-
data() {
|
|
72
|
-
return {
|
|
73
|
-
data: [],
|
|
74
|
-
columnBox: !1
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
computed: {
|
|
78
|
-
defaultColumn() {
|
|
79
|
-
return [{
|
|
80
|
-
label: "隐藏",
|
|
81
|
-
prop: "hide"
|
|
82
|
-
}, {
|
|
83
|
-
label: "冻结",
|
|
84
|
-
prop: "fixed"
|
|
85
|
-
}, {
|
|
86
|
-
label: "过滤",
|
|
87
|
-
prop: "filters"
|
|
88
|
-
}, {
|
|
89
|
-
label: "潘旭",
|
|
90
|
-
prop: "sortable"
|
|
91
|
-
}, {
|
|
92
|
-
label: "序号",
|
|
93
|
-
prop: "index",
|
|
94
|
-
hide: !0
|
|
95
|
-
}, {
|
|
96
|
-
label: "宽度",
|
|
97
|
-
prop: "width",
|
|
98
|
-
hide: !0
|
|
99
|
-
}];
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
methods: {
|
|
103
|
-
handleShow() {
|
|
104
|
-
this.data = [], this.crud.propOption.forEach((e) => {
|
|
105
|
-
e.showColumn !== !1 && this.data.push(e);
|
|
106
|
-
}), this.columnBox = !0, this.$nextTick(() => this.rowDrop());
|
|
107
|
-
},
|
|
108
|
-
handleChange(e) {
|
|
109
|
-
["hide", "filters"].includes(e) && this.crud.refreshTable();
|
|
110
|
-
},
|
|
111
|
-
rowDrop() {
|
|
112
|
-
const e = this.$refs.table.$el.querySelectorAll(u.dropRowClass)[0];
|
|
113
|
-
this.crud.tableDrop("column", e, (l) => {
|
|
114
|
-
const r = l.oldIndex, o = l.newIndex;
|
|
115
|
-
this.crud.headerSort(r, o), this.crud.refreshTable(() => this.rowDrop());
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}, a = {};
|
|
120
|
-
var f = /* @__PURE__ */ c(
|
|
121
|
-
h,
|
|
122
|
-
d,
|
|
123
|
-
p,
|
|
124
|
-
!1,
|
|
125
|
-
b,
|
|
126
|
-
null,
|
|
127
|
-
null,
|
|
128
|
-
null
|
|
129
|
-
);
|
|
130
|
-
function b(e) {
|
|
131
|
-
for (let l in a)
|
|
132
|
-
this[l] = a[l];
|
|
133
|
-
}
|
|
134
|
-
const v = /* @__PURE__ */ function() {
|
|
135
|
-
return f.exports;
|
|
136
|
-
}();
|
|
137
|
-
export {
|
|
138
|
-
v as default
|
|
139
|
-
};
|