@fangzhongya/fang-ui 0.0.48 → 0.0.50
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/dist/components/array/src/index2.cjs +9 -6
- package/dist/components/array/src/index2.js +9 -6
- package/dist/components/box-teleport/src/index2.cjs +1 -1
- package/dist/components/box-teleport/src/index2.js +1 -1
- package/dist/components/checks/src/index2.cjs +4 -4
- package/dist/components/checks/src/index2.js +4 -4
- package/dist/components/common/list.cjs +3 -2
- package/dist/components/common/list.js +3 -2
- package/dist/components/common/use.cjs +11 -11
- package/dist/components/common/use.js +11 -11
- package/dist/components/forms/src/index2.cjs +2 -2
- package/dist/components/forms/src/index2.js +2 -2
- package/dist/components/forms/src/setup.cjs +8 -5
- package/dist/components/forms/src/setup.js +8 -5
- package/dist/components/forms/src/util.cjs +2 -1
- package/dist/components/forms/src/util.js +2 -1
- package/dist/components/forms-drag/src/index2.cjs +2 -2
- package/dist/components/forms-drag/src/index2.js +2 -2
- package/dist/components/forms-item/src/index2.cjs +1 -1
- package/dist/components/forms-item/src/index2.js +1 -1
- package/dist/components/forms-items/src/index2.cjs +2 -2
- package/dist/components/forms-items/src/index2.js +2 -2
- package/dist/components/global-config/src/index.cjs +1 -1
- package/dist/components/global-config/src/index.js +1 -1
- package/dist/components/icon-picker/src/index2.cjs +6 -4
- package/dist/components/icon-picker/src/index2.js +6 -4
- package/dist/components/index.cjs +82 -80
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.scss +1 -0
- package/dist/components/index2.scss +1 -0
- package/dist/components/input-select/src/index2.cjs +1 -1
- package/dist/components/input-select/src/index2.js +1 -1
- package/dist/components/keep-com/index.cjs +9 -0
- package/dist/components/keep-com/index.d.ts +2 -0
- package/dist/components/keep-com/index.js +9 -0
- package/dist/components/keep-com/index.scss +5 -0
- package/dist/components/keep-com/src/data.cjs +42 -0
- package/dist/components/keep-com/src/data.d.ts +71 -0
- package/dist/components/keep-com/src/data.js +42 -0
- package/dist/components/keep-com/src/index.cjs +4 -0
- package/dist/components/keep-com/src/index.js +4 -0
- package/dist/components/keep-com/src/index2.cjs +77 -0
- package/dist/components/keep-com/src/index2.js +77 -0
- package/dist/components/labels/src/index2.cjs +2 -1
- package/dist/components/labels/src/index2.js +2 -1
- package/dist/components/menus/src/menu-ll2.cjs +1 -1
- package/dist/components/menus/src/menu-ll2.js +1 -1
- package/dist/components/page/src/index2.cjs +85 -65
- package/dist/components/page/src/index2.js +85 -65
- package/dist/components/paging/src/index2.cjs +8 -4
- package/dist/components/paging/src/index2.js +8 -4
- package/dist/components/seamless-scroll/src/index2.cjs +2 -2
- package/dist/components/seamless-scroll/src/index2.js +2 -2
- package/dist/components/selects/src/index2.cjs +1 -1
- package/dist/components/selects/src/index2.js +1 -1
- package/dist/components/stick-window/src/index2.cjs +1 -1
- package/dist/components/stick-window/src/index2.js +1 -1
- package/dist/components/switchs/src/index2.cjs +4 -4
- package/dist/components/switchs/src/index2.js +4 -4
- package/dist/components/tables/common/pagin.cjs +57 -40
- package/dist/components/tables/common/pagin.js +57 -40
- package/dist/components/tables/common/table-but2.cjs +2 -1
- package/dist/components/tables/common/table-but2.js +2 -1
- package/dist/components/tables/common/table-color2.cjs +5 -4
- package/dist/components/tables/common/table-color2.js +5 -4
- package/dist/components/tables/common/table-list2.cjs +2 -1
- package/dist/components/tables/common/table-list2.js +2 -1
- package/dist/components/tables/common/util.cjs +3 -2
- package/dist/components/tables/common/util.js +3 -2
- package/dist/components/tables/src/columns3.cjs +1 -1
- package/dist/components/tables/src/columns3.js +1 -1
- package/dist/components/tables/src/index2.cjs +3 -2
- package/dist/components/tables/src/index2.js +3 -2
- package/dist/components/tablesp/src/index2.cjs +4 -3
- package/dist/components/tablesp/src/index2.js +4 -3
- package/dist/components/tabless/src/index2.cjs +5 -4
- package/dist/components/tabless/src/index2.js +5 -4
- package/dist/components/tablesv/src/columns3.cjs +1 -1
- package/dist/components/tablesv/src/columns3.js +1 -1
- package/dist/components/tablesv/src/index2.cjs +3 -2
- package/dist/components/tablesv/src/index2.js +3 -2
- package/dist/components/tablesvp/src/index2.cjs +3 -2
- package/dist/components/tablesvp/src/index2.js +3 -2
- package/dist/directives/adjust/index.cjs +2 -1
- package/dist/directives/adjust/index.js +2 -1
- package/dist/expand/{chunk-CHIAKFM2.cjs → chunk-LSKJOV4K.cjs} +2 -0
- package/dist/expand/{chunk-R2KDOEN3.js → chunk-ZS2GF6MH.js} +2 -0
- package/dist/expand/components.cjs +5 -5
- package/dist/expand/components.js +1 -1
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/hooks/event-aliass/index.cjs +2 -1
- package/dist/hooks/event-aliass/index.js +2 -1
- package/dist/hooks/global-config/index.cjs +6 -3
- package/dist/hooks/global-config/index.js +6 -3
- package/dist/icons/index.css +35 -35
- package/dist/icons/index.json +10 -10
- package/dist/index.cjs +100 -98
- package/dist/index.js +2 -0
- package/dist/utils/vues/common.cjs +2 -1
- package/dist/utils/vues/common.js +2 -1
- package/package.json +6 -6
- /package/dist/components/{option-group → form-item}/index.css +0 -0
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{option-group.css → form-item.css} +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -109,7 +109,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
const query = ref(props.value);
|
|
110
110
|
const isSenior = ref(false);
|
|
111
111
|
const getListQuery = () => {
|
|
112
|
-
|
|
112
|
+
var _a;
|
|
113
|
+
const v = (_a = props.config.query) == null ? void 0 : _a.list;
|
|
113
114
|
if (v && Array.isArray(v) && v.length > 0) {
|
|
114
115
|
return getColumnList(v);
|
|
115
116
|
} else {
|
|
@@ -122,8 +123,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
123
|
};
|
|
123
124
|
const listQuery = ref([]);
|
|
124
125
|
const setListQuery = () => {
|
|
126
|
+
var _a;
|
|
125
127
|
const list2 = getListQuery();
|
|
126
|
-
if (props.config.query
|
|
128
|
+
if ((_a = props.config.query) == null ? void 0 : _a.senior) {
|
|
127
129
|
let i = 0;
|
|
128
130
|
list2.forEach((obj) => {
|
|
129
131
|
if (obj.querybasis) {
|
|
@@ -141,7 +143,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
143
|
listQuery.value = list2;
|
|
142
144
|
};
|
|
143
145
|
const onRefresh = () => {
|
|
144
|
-
|
|
146
|
+
var _a;
|
|
147
|
+
(_a = tableRef.value) == null ? void 0 : _a.getList();
|
|
145
148
|
};
|
|
146
149
|
const onQuery = (data) => {
|
|
147
150
|
console.log("onQuery", data);
|
|
@@ -149,8 +152,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
152
|
onRefresh();
|
|
150
153
|
};
|
|
151
154
|
const onReset = (data) => {
|
|
155
|
+
var _a;
|
|
152
156
|
console.log("onReset", data);
|
|
153
|
-
if (props.config.query
|
|
157
|
+
if ((_a = props.config.query) == null ? void 0 : _a.reset) {
|
|
154
158
|
query.value = data;
|
|
155
159
|
onRefresh();
|
|
156
160
|
}
|
|
@@ -166,6 +170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
166
170
|
};
|
|
167
171
|
const butQuery = ref([]);
|
|
168
172
|
const getButQuery = () => {
|
|
173
|
+
var _a;
|
|
169
174
|
const arr = [
|
|
170
175
|
{
|
|
171
176
|
_id: "1",
|
|
@@ -178,7 +183,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
178
183
|
type: "default"
|
|
179
184
|
}
|
|
180
185
|
];
|
|
181
|
-
if (props.config.query
|
|
186
|
+
if ((_a = props.config.query) == null ? void 0 : _a.senior) {
|
|
182
187
|
const obj = {
|
|
183
188
|
_id: "3",
|
|
184
189
|
label: "高级",
|
|
@@ -214,8 +219,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
214
219
|
setList.value = getList();
|
|
215
220
|
};
|
|
216
221
|
const tableList = computed(() => {
|
|
222
|
+
var _a;
|
|
217
223
|
const arr = [];
|
|
218
|
-
if (props.config.table
|
|
224
|
+
if (((_a = props.config.table) == null ? void 0 : _a.operation) !== false) {
|
|
219
225
|
arr.push({
|
|
220
226
|
prop: "operation",
|
|
221
227
|
label: "操作",
|
|
@@ -228,8 +234,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
228
234
|
});
|
|
229
235
|
let operationColumn = [];
|
|
230
236
|
const getOperationColumn = () => {
|
|
237
|
+
var _a, _b, _c;
|
|
231
238
|
const array = [];
|
|
232
|
-
if (props.config.edit
|
|
239
|
+
if (((_a = props.config.edit) == null ? void 0 : _a.is) !== false) {
|
|
233
240
|
array.push({
|
|
234
241
|
prop: 2,
|
|
235
242
|
label: "编辑",
|
|
@@ -237,7 +244,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
237
244
|
text: true
|
|
238
245
|
});
|
|
239
246
|
}
|
|
240
|
-
if (props.config.delete
|
|
247
|
+
if (((_b = props.config.delete) == null ? void 0 : _b.is) !== false) {
|
|
241
248
|
array.push({
|
|
242
249
|
prop: 4,
|
|
243
250
|
label: "删除",
|
|
@@ -245,7 +252,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
245
252
|
text: true
|
|
246
253
|
});
|
|
247
254
|
}
|
|
248
|
-
if (props.config.details
|
|
255
|
+
if (((_c = props.config.details) == null ? void 0 : _c.is) !== false) {
|
|
249
256
|
array.push({
|
|
250
257
|
prop: 9,
|
|
251
258
|
label: "详情",
|
|
@@ -257,15 +264,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
257
264
|
};
|
|
258
265
|
let operationTop = [];
|
|
259
266
|
const getOperationTop = () => {
|
|
267
|
+
var _a, _b, _c;
|
|
260
268
|
const array = [];
|
|
261
|
-
if (props.config.add
|
|
269
|
+
if (((_a = props.config.add) == null ? void 0 : _a.is) !== false) {
|
|
262
270
|
array.push({
|
|
263
271
|
prop: 1,
|
|
264
272
|
label: "添加",
|
|
265
273
|
type: "primary"
|
|
266
274
|
});
|
|
267
275
|
}
|
|
268
|
-
if (props.config.delete
|
|
276
|
+
if (((_b = props.config.delete) == null ? void 0 : _b.is) !== false && ((_c = tableConfig.value.config) == null ? void 0 : _c.ischecked)) {
|
|
269
277
|
array.push({
|
|
270
278
|
prop: 8,
|
|
271
279
|
label: "批量删除",
|
|
@@ -275,10 +283,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
275
283
|
return array;
|
|
276
284
|
};
|
|
277
285
|
const onDelete = (array) => {
|
|
286
|
+
var _a, _b, _c;
|
|
278
287
|
const ts = ["是否删除所选" + props.config.name + "?"];
|
|
279
|
-
const label = props.config.delete
|
|
280
|
-
const prop = props.config.delete
|
|
281
|
-
const name = listObj[label]
|
|
288
|
+
const label = ((_a = props.config.delete) == null ? void 0 : _a.label) || "name";
|
|
289
|
+
const prop = ((_b = props.config.delete) == null ? void 0 : _b.prop) || "id";
|
|
290
|
+
const name = ((_c = listObj[label]) == null ? void 0 : _c.label) || "内容";
|
|
282
291
|
array.forEach((obj) => {
|
|
283
292
|
ts.push(name + ":" + (obj[label] ?? ""));
|
|
284
293
|
});
|
|
@@ -288,19 +297,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
288
297
|
type: "warning",
|
|
289
298
|
dangerouslyUseHTMLString: true
|
|
290
299
|
}).then(() => {
|
|
291
|
-
|
|
300
|
+
var _a2, _b2;
|
|
301
|
+
const name2 = ((_a2 = props.config.delete) == null ? void 0 : _a2.name) || "ids";
|
|
292
302
|
const value = { [name2]: array.map((o) => o[prop]) };
|
|
293
303
|
console.log("onDelete", value);
|
|
294
|
-
const ajax = props.config.delete
|
|
304
|
+
const ajax = (_b2 = props.config.delete) == null ? void 0 : _b2.ajax;
|
|
295
305
|
if (ajax) {
|
|
296
306
|
const param = {
|
|
297
307
|
param: props.value
|
|
298
308
|
};
|
|
299
309
|
if (typeof ajax === "object") {
|
|
300
|
-
param.onRequestBefore = ajax
|
|
301
|
-
param.onRequestAfter = ajax
|
|
302
|
-
param.ajax = ajax
|
|
303
|
-
param.ajaxConfig = ajax
|
|
310
|
+
param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
|
|
311
|
+
param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
|
|
312
|
+
param.ajax = ajax == null ? void 0 : ajax.url;
|
|
313
|
+
param.ajaxConfig = ajax == null ? void 0 : ajax.config;
|
|
304
314
|
} else {
|
|
305
315
|
param.ajax = ajax;
|
|
306
316
|
}
|
|
@@ -323,9 +333,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
323
333
|
});
|
|
324
334
|
};
|
|
325
335
|
const onOperation = (item, row = {}) => {
|
|
336
|
+
var _a, _b;
|
|
326
337
|
if (item.prop === 1) {
|
|
327
338
|
dialog.value = {
|
|
328
|
-
...props.config.add
|
|
339
|
+
...(_a = props.config.add) == null ? void 0 : _a.value
|
|
329
340
|
};
|
|
330
341
|
dialog.type = "add";
|
|
331
342
|
dialog.visible = true;
|
|
@@ -346,16 +357,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
346
357
|
} else if (item.prop === 9) {
|
|
347
358
|
details.value = row;
|
|
348
359
|
details.visible = true;
|
|
349
|
-
const ajax = props.config.details
|
|
360
|
+
const ajax = (_b = props.config.details) == null ? void 0 : _b.ajax;
|
|
350
361
|
if (ajax) {
|
|
351
362
|
const param = {
|
|
352
363
|
param: props.value
|
|
353
364
|
};
|
|
354
365
|
if (typeof ajax === "object") {
|
|
355
|
-
param.onRequestBefore = ajax
|
|
356
|
-
param.onRequestAfter = ajax
|
|
357
|
-
param.ajax = ajax
|
|
358
|
-
param.ajaxConfig = ajax
|
|
366
|
+
param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
|
|
367
|
+
param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
|
|
368
|
+
param.ajax = ajax == null ? void 0 : ajax.url;
|
|
369
|
+
param.ajaxConfig = ajax == null ? void 0 : ajax.config;
|
|
359
370
|
} else {
|
|
360
371
|
param.ajax = ajax;
|
|
361
372
|
}
|
|
@@ -422,18 +433,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
422
433
|
const onConfirm = () => {
|
|
423
434
|
if (formRef.value) {
|
|
424
435
|
formRef.value.validate().then((data) => {
|
|
436
|
+
var _a, _b;
|
|
425
437
|
if (dialog.type === "add") {
|
|
426
438
|
console.log("添加", data);
|
|
427
|
-
const ajax = props.config.add
|
|
439
|
+
const ajax = (_a = props.config.add) == null ? void 0 : _a.ajax;
|
|
428
440
|
if (ajax) {
|
|
429
441
|
const param = {
|
|
430
442
|
param: props.value
|
|
431
443
|
};
|
|
432
444
|
if (typeof ajax === "object") {
|
|
433
|
-
param.onRequestBefore = ajax
|
|
434
|
-
param.onRequestAfter = ajax
|
|
435
|
-
param.ajax = ajax
|
|
436
|
-
param.ajaxConfig = ajax
|
|
445
|
+
param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
|
|
446
|
+
param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
|
|
447
|
+
param.ajax = ajax == null ? void 0 : ajax.url;
|
|
448
|
+
param.ajaxConfig = ajax == null ? void 0 : ajax.config;
|
|
437
449
|
} else {
|
|
438
450
|
param.ajax = ajax;
|
|
439
451
|
}
|
|
@@ -458,16 +470,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
458
470
|
}
|
|
459
471
|
} else if (dialog.type === "edit") {
|
|
460
472
|
console.log("编辑", data);
|
|
461
|
-
const ajax = props.config.edit
|
|
473
|
+
const ajax = (_b = props.config.edit) == null ? void 0 : _b.ajax;
|
|
462
474
|
if (ajax) {
|
|
463
475
|
const param = {
|
|
464
476
|
param: props.value
|
|
465
477
|
};
|
|
466
478
|
if (typeof ajax === "object") {
|
|
467
|
-
param.onRequestBefore = ajax
|
|
468
|
-
param.onRequestAfter = ajax
|
|
469
|
-
param.ajax = ajax
|
|
470
|
-
param.ajaxConfig = ajax
|
|
479
|
+
param.onRequestBefore = ajax == null ? void 0 : ajax.onRequestBefore;
|
|
480
|
+
param.onRequestAfter = ajax == null ? void 0 : ajax.onRequestAfter;
|
|
481
|
+
param.ajax = ajax == null ? void 0 : ajax.url;
|
|
482
|
+
param.ajaxConfig = ajax == null ? void 0 : ajax.config;
|
|
471
483
|
} else {
|
|
472
484
|
param.ajax = ajax;
|
|
473
485
|
}
|
|
@@ -497,8 +509,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
497
509
|
}
|
|
498
510
|
};
|
|
499
511
|
const getListForm = () => {
|
|
512
|
+
var _a, _b;
|
|
500
513
|
if (dialog.type === "edit") {
|
|
501
|
-
const v = props.config.edit
|
|
514
|
+
const v = (_a = props.config.edit) == null ? void 0 : _a.list;
|
|
502
515
|
if (v && Array.isArray(v) && v.length > 0) {
|
|
503
516
|
return getColumnList(v);
|
|
504
517
|
} else {
|
|
@@ -507,7 +520,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
507
520
|
});
|
|
508
521
|
}
|
|
509
522
|
} else {
|
|
510
|
-
const v = props.config.add
|
|
523
|
+
const v = (_b = props.config.add) == null ? void 0 : _b.list;
|
|
511
524
|
if (v && Array.isArray(v) && v.length > 0) {
|
|
512
525
|
return getColumnList(v);
|
|
513
526
|
} else {
|
|
@@ -526,7 +539,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
526
539
|
value: {}
|
|
527
540
|
});
|
|
528
541
|
const getListDetails = () => {
|
|
529
|
-
|
|
542
|
+
var _a;
|
|
543
|
+
const v = (_a = props.config.details) == null ? void 0 : _a.list;
|
|
530
544
|
if (v && Array.isArray(v) && v.length > 0) {
|
|
531
545
|
return getColumnList(v);
|
|
532
546
|
} else {
|
|
@@ -540,18 +554,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
540
554
|
watch(
|
|
541
555
|
() => props.config,
|
|
542
556
|
(newValue) => {
|
|
557
|
+
var _a, _b, _c, _d;
|
|
543
558
|
if (newValue) {
|
|
544
559
|
if (props.config.table) {
|
|
545
560
|
tableConfig.value = getTableConfig();
|
|
546
561
|
}
|
|
547
|
-
if (props.config.query
|
|
562
|
+
if (((_a = props.config.query) == null ? void 0 : _a.is) !== false) {
|
|
548
563
|
setListQuery();
|
|
549
564
|
butQuery.value = getButQuery();
|
|
550
565
|
}
|
|
551
|
-
if (props.config.details
|
|
566
|
+
if (((_b = props.config.details) == null ? void 0 : _b.is) !== false) {
|
|
552
567
|
setListDetails();
|
|
553
568
|
}
|
|
554
|
-
if (props.config.add
|
|
569
|
+
if (((_c = props.config.add) == null ? void 0 : _c.is) !== false || ((_d = props.config.edit) == null ? void 0 : _d.is) !== false) {
|
|
555
570
|
setListForm();
|
|
556
571
|
}
|
|
557
572
|
operationColumn = getOperationColumn();
|
|
@@ -566,15 +581,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
566
581
|
watch(
|
|
567
582
|
() => props.list,
|
|
568
583
|
() => {
|
|
584
|
+
var _a, _b, _c, _d;
|
|
569
585
|
listObj = getListObj();
|
|
570
586
|
setSetList();
|
|
571
|
-
if (props.config.query
|
|
587
|
+
if (((_a = props.config.query) == null ? void 0 : _a.is) !== false) {
|
|
572
588
|
setListQuery();
|
|
573
589
|
}
|
|
574
|
-
if (props.config.details
|
|
590
|
+
if (((_b = props.config.details) == null ? void 0 : _b.is) !== false) {
|
|
575
591
|
setListDetails();
|
|
576
592
|
}
|
|
577
|
-
if (props.config.add
|
|
593
|
+
if (((_c = props.config.add) == null ? void 0 : _c.is) !== false || ((_d = props.config.edit) == null ? void 0 : _d.is) !== false) {
|
|
578
594
|
setListForm();
|
|
579
595
|
}
|
|
580
596
|
},
|
|
@@ -584,6 +600,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
584
600
|
}
|
|
585
601
|
);
|
|
586
602
|
return (_ctx, _cache) => {
|
|
603
|
+
var _a, _b, _c;
|
|
587
604
|
return openBlock(), createElementBlock("div", {
|
|
588
605
|
class: normalizeClass(unref(cs).z())
|
|
589
606
|
}, [
|
|
@@ -622,34 +639,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
622
639
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => details.visible = $event),
|
|
623
640
|
"no-footer": ""
|
|
624
641
|
}, {
|
|
625
|
-
default: withCtx(() =>
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
+
default: withCtx(() => {
|
|
643
|
+
var _a2;
|
|
644
|
+
return [
|
|
645
|
+
createVNode(unref(Lists), mergeProps((_a2 = props.config.details) == null ? void 0 : _a2.config, {
|
|
646
|
+
value: details.value,
|
|
647
|
+
options: props.options,
|
|
648
|
+
compons: props.compons,
|
|
649
|
+
list: list.value
|
|
650
|
+
}), createSlots({ _: 2 }, [
|
|
651
|
+
renderList(listSlots, (k) => {
|
|
652
|
+
return {
|
|
653
|
+
name: k,
|
|
654
|
+
fn: withCtx((scope) => [
|
|
655
|
+
unref(slots)["list-" + k] ? renderSlot(_ctx.$slots, "list-" + k, normalizeProps(mergeProps({ key: 0 }, scope))) : renderSlot(_ctx.$slots, k, normalizeProps(mergeProps({ key: 1 }, scope)))
|
|
656
|
+
])
|
|
657
|
+
};
|
|
658
|
+
})
|
|
659
|
+
]), 1040, ["value", "options", "compons", "list"])
|
|
660
|
+
];
|
|
661
|
+
}),
|
|
642
662
|
_: 3
|
|
643
663
|
}, 8, ["title", "modelValue"]),
|
|
644
664
|
createElementVNode("div", {
|
|
645
665
|
class: normalizeClass(unref(cs).z("header"))
|
|
646
666
|
}, [
|
|
647
667
|
renderSlot(_ctx.$slots, dataSlot.header),
|
|
648
|
-
props.config.query
|
|
668
|
+
((_a = props.config.query) == null ? void 0 : _a.is) !== false ? (openBlock(), createElementBlock("div", {
|
|
649
669
|
key: 0,
|
|
650
670
|
class: normalizeClass(unref(cs).z("query"))
|
|
651
671
|
}, [
|
|
652
|
-
createVNode(unref(Forms), mergeProps(props.config.query
|
|
672
|
+
createVNode(unref(Forms), mergeProps((_b = props.config.query) == null ? void 0 : _b.config, {
|
|
653
673
|
query: "",
|
|
654
674
|
"label-position": "auto",
|
|
655
675
|
"model-value": props.value,
|
|
@@ -708,7 +728,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
708
728
|
createVNode(unref(Tablesp), {
|
|
709
729
|
ref_key: "tableRef",
|
|
710
730
|
ref: tableRef,
|
|
711
|
-
load: props.config.query
|
|
731
|
+
load: ((_c = props.config.query) == null ? void 0 : _c.is) === false,
|
|
712
732
|
config: tableConfig.value,
|
|
713
733
|
param: query.value,
|
|
714
734
|
options: props.options,
|
|
@@ -23,13 +23,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
23
23
|
const layout2 = props.layout || attrs.assem.layout;
|
|
24
24
|
return layout2;
|
|
25
25
|
});
|
|
26
|
-
const
|
|
26
|
+
const ysalue = vue.computed(() => {
|
|
27
27
|
let v = 1;
|
|
28
28
|
if (props.total && props.paginat.pageSize) {
|
|
29
29
|
v = Math.ceil(props.total / props.paginat.pageSize);
|
|
30
30
|
}
|
|
31
|
-
return
|
|
32
|
-
};
|
|
31
|
+
return v;
|
|
32
|
+
});
|
|
33
33
|
const onCurrentChange = (v) => {
|
|
34
34
|
console.log("current", v);
|
|
35
35
|
props.paginat.current = v;
|
|
@@ -55,7 +55,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
55
|
default: vue.withCtx(() => [
|
|
56
56
|
vue.createElementVNode("span", {
|
|
57
57
|
class: vue.normalizeClass(vue.unref(cs).z("slot"))
|
|
58
|
-
},
|
|
58
|
+
}, [
|
|
59
|
+
vue.createElementVNode("span", null, "当前第" + vue.toDisplayString(props.paginat.current) + "页", 1),
|
|
60
|
+
vue.createElementVNode("span", null, "共" + vue.toDisplayString(ysalue.value) + " 页", 1),
|
|
61
|
+
vue.createElementVNode("span", null, "每页" + vue.toDisplayString(props.paginat.pageSize) + "条记录", 1)
|
|
62
|
+
], 2)
|
|
59
63
|
]),
|
|
60
64
|
_: 1
|
|
61
65
|
}, 16, ["class", "current-page", "page-size", "layout", "total"]);
|
|
@@ -21,13 +21,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const layout2 = props.layout || attrs.assem.layout;
|
|
22
22
|
return layout2;
|
|
23
23
|
});
|
|
24
|
-
const
|
|
24
|
+
const ysalue = computed(() => {
|
|
25
25
|
let v = 1;
|
|
26
26
|
if (props.total && props.paginat.pageSize) {
|
|
27
27
|
v = Math.ceil(props.total / props.paginat.pageSize);
|
|
28
28
|
}
|
|
29
|
-
return
|
|
30
|
-
};
|
|
29
|
+
return v;
|
|
30
|
+
});
|
|
31
31
|
const onCurrentChange = (v) => {
|
|
32
32
|
console.log("current", v);
|
|
33
33
|
props.paginat.current = v;
|
|
@@ -53,7 +53,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
default: withCtx(() => [
|
|
54
54
|
createElementVNode("span", {
|
|
55
55
|
class: normalizeClass(unref(cs).z("slot"))
|
|
56
|
-
},
|
|
56
|
+
}, [
|
|
57
|
+
createElementVNode("span", null, "当前第" + toDisplayString(props.paginat.current) + "页", 1),
|
|
58
|
+
createElementVNode("span", null, "共" + toDisplayString(ysalue.value) + " 页", 1),
|
|
59
|
+
createElementVNode("span", null, "每页" + toDisplayString(props.paginat.pageSize) + "条记录", 1)
|
|
60
|
+
], 2)
|
|
57
61
|
]),
|
|
58
62
|
_: 1
|
|
59
63
|
}, 16, ["class", "current-page", "page-size", "layout", "total"]);
|
|
@@ -107,8 +107,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
107
|
});
|
|
108
108
|
});
|
|
109
109
|
vue.onUnmounted(() => {
|
|
110
|
-
ties
|
|
111
|
-
tWatch
|
|
110
|
+
ties == null ? void 0 : ties.stop();
|
|
111
|
+
tWatch == null ? void 0 : tWatch.stop();
|
|
112
112
|
if (refDom.value) {
|
|
113
113
|
refDom.value.removeEventListener("mouseover", onStop);
|
|
114
114
|
refDom.value.removeEventListener("mouseout", onPlay);
|
|
@@ -105,8 +105,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
onUnmounted(() => {
|
|
108
|
-
ties
|
|
109
|
-
tWatch
|
|
108
|
+
ties == null ? void 0 : ties.stop();
|
|
109
|
+
tWatch == null ? void 0 : tWatch.stop();
|
|
110
110
|
if (refDom.value) {
|
|
111
111
|
refDom.value.removeEventListener("mouseover", onStop);
|
|
112
112
|
refDom.value.removeEventListener("mouseout", onPlay);
|
|
@@ -51,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
51
51
|
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElOption), {
|
|
52
52
|
label: vue.unref(use.useVueValue)(item, props.label),
|
|
53
53
|
value: vue.unref(use.useVueValue)(item, props.prop),
|
|
54
|
-
disabled: item
|
|
54
|
+
disabled: item == null ? void 0 : item.disabled
|
|
55
55
|
}, null, 8, ["label", "value", "disabled"]);
|
|
56
56
|
}), 256))
|
|
57
57
|
]),
|
|
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
return openBlock(), createBlock(unref(ElOption), {
|
|
50
50
|
label: unref(useVueValue)(item, props.label),
|
|
51
51
|
value: unref(useVueValue)(item, props.prop),
|
|
52
|
-
disabled: item
|
|
52
|
+
disabled: item == null ? void 0 : item.disabled
|
|
53
53
|
}, null, 8, ["label", "value", "disabled"]);
|
|
54
54
|
}), 256))
|
|
55
55
|
]),
|
|
@@ -26,13 +26,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
const i = props.options[0];
|
|
27
27
|
inactive.value.text = use.useVueValue(i, props.label);
|
|
28
28
|
inactive.value.value = use.useVueValue(i, props.prop);
|
|
29
|
-
inactive.value.icon = i
|
|
30
|
-
inactive.value.color = i
|
|
29
|
+
inactive.value.icon = i == null ? void 0 : i.icon;
|
|
30
|
+
inactive.value.color = i == null ? void 0 : i.color;
|
|
31
31
|
const a = props.options[1];
|
|
32
32
|
active.value.text = use.useVueValue(a, props.label);
|
|
33
33
|
active.value.value = use.useVueValue(a, props.prop);
|
|
34
|
-
active.value.icon = a
|
|
35
|
-
active.value.color = a
|
|
34
|
+
active.value.icon = a == null ? void 0 : a.icon;
|
|
35
|
+
active.value.color = a == null ? void 0 : a.color;
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
{ immediate: true, deep: true }
|
|
@@ -24,13 +24,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const i = props.options[0];
|
|
25
25
|
inactive.value.text = useVueValue(i, props.label);
|
|
26
26
|
inactive.value.value = useVueValue(i, props.prop);
|
|
27
|
-
inactive.value.icon = i
|
|
28
|
-
inactive.value.color = i
|
|
27
|
+
inactive.value.icon = i == null ? void 0 : i.icon;
|
|
28
|
+
inactive.value.color = i == null ? void 0 : i.color;
|
|
29
29
|
const a = props.options[1];
|
|
30
30
|
active.value.text = useVueValue(a, props.label);
|
|
31
31
|
active.value.value = useVueValue(a, props.prop);
|
|
32
|
-
active.value.icon = a
|
|
33
|
-
active.value.color = a
|
|
32
|
+
active.value.icon = a == null ? void 0 : a.icon;
|
|
33
|
+
active.value.color = a == null ? void 0 : a.color;
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
{ immediate: true, deep: true }
|