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