qsyx-element 1.0.10 → 1.0.12
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/es/{Button-DwFNqnO-.js → Button-BYspHtkd.js} +1 -1
- package/dist/es/{Dialog-B0OvoS7J.js → Dialog-BXouvy_S.js} +3 -3
- package/dist/es/{Form-BB4u_L5j.js → Form-DMYcLvsE.js} +149 -198
- package/dist/es/{Table-B0cHfaB7.js → Table-Dpl403Yx.js} +21 -19
- package/dist/es/{excelSee-Blf1y7aY.js → excelSee-BsHrKjKK.js} +3 -3
- package/dist/es/{exportExcel-BUK4KuLT.js → exportExcel-CD37fdLB.js} +3 -3
- package/dist/es/{exportWord-BwEj0S5C.js → exportWord-BrQeKkug.js} +3 -3
- package/dist/es/{imToText-BY0usGWJ.js → imToText-DJdXaLaa.js} +4 -4
- package/dist/es/index.js +13 -13
- package/dist/es/{insertExcel-ALGkzeug.js → insertExcel-C7evqQnm.js} +2 -2
- package/dist/es/{onlineExcel-BW8Ry3sO.js → onlineExcel-KhEZI16h.js} +3 -3
- package/dist/es/{pdfSee-Bt2kUOLa.js → pdfSee-BK6kkbPt.js} +4 -4
- package/dist/es/{utils-BFYGwXom.js → utils-DQydeJ_U.js} +1 -1
- package/dist/es/{vendor-DfydgTBg.js → vendor-Bp1uerJ6.js} +10061 -10135
- package/dist/es/{wordSee-Bg6XeDsu.js → wordSee-vA7AhFrV.js} +6 -6
- package/dist/index.css +1 -1
- package/dist/types/components/Form/Form.vue.d.ts +2 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +6 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as o, createElementBlock as n } from "vue";
|
|
2
|
-
import { w as e } from "./utils-
|
|
2
|
+
import { w as e } from "./utils-DQydeJ_U.js";
|
|
3
3
|
const s = { style: { color: "red" } }, r = /* @__PURE__ */ t({
|
|
4
4
|
name: "QsyxButton",
|
|
5
5
|
__name: "Button",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, reactive as f, openBlock as g, createElementBlock as u, createVNode as r, unref as b, withCtx as t, renderSlot as n } from "vue";
|
|
2
|
-
import { F as h } from "./Form-
|
|
3
|
-
import { E as w } from "./vendor-
|
|
4
|
-
import { w as y } from "./utils-
|
|
2
|
+
import { F as h } from "./Form-DMYcLvsE.js";
|
|
3
|
+
import { E as w } from "./vendor-Bp1uerJ6.js";
|
|
4
|
+
import { w as y } from "./utils-DQydeJ_U.js";
|
|
5
5
|
const C = /* @__PURE__ */ c({
|
|
6
6
|
name: "QsyxDialog",
|
|
7
7
|
__name: "Dialog",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, onMounted, createCommentVNode } from "vue";
|
|
2
|
-
import { a as ElCheckboxGroup, b as ElCheckbox, c as ElDatePicker, d as ElInput, e as ElRadioGroup, f as ElRadio, g as ElSelect, h as ElOption, i as ElForm, j as
|
|
3
|
-
import { w as withInstall } from "./utils-
|
|
2
|
+
import { a as ElCheckboxGroup, b as ElCheckbox, c as ElDatePicker, d as ElInput, e as ElRadioGroup, f as ElRadio, g as ElSelect, h as ElOption, i as ElForm, j as ElFormItem } from "./vendor-Bp1uerJ6.js";
|
|
3
|
+
import { w as withInstall } from "./utils-DQydeJ_U.js";
|
|
4
4
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
5
5
|
name: "QsyxCheckBox",
|
|
6
6
|
__name: "index",
|
|
@@ -27,7 +27,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
if (e !== "__v_isRef")
|
|
28
28
|
return t[e];
|
|
29
29
|
},
|
|
30
|
-
set: function(t, e, o,
|
|
30
|
+
set: function(t, e, o, i) {
|
|
31
31
|
return t[e] = o, !0;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -44,8 +44,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
44
44
|
disabled: t.disabled
|
|
45
45
|
}, {
|
|
46
46
|
default: withCtx(() => [
|
|
47
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(props.items, (o,
|
|
48
|
-
key:
|
|
47
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(props.items, (o, i) => (openBlock(), createBlock(unref(ElCheckbox), {
|
|
48
|
+
key: i,
|
|
49
49
|
label: o.label,
|
|
50
50
|
value: o.value,
|
|
51
51
|
onChange: changeProps
|
|
@@ -80,7 +80,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
if (e !== "__v_isRef")
|
|
81
81
|
return t[e];
|
|
82
82
|
},
|
|
83
|
-
set: function(t, e, o,
|
|
83
|
+
set: function(t, e, o, i) {
|
|
84
84
|
return t[e] = o, !0;
|
|
85
85
|
}
|
|
86
86
|
};
|
|
@@ -131,7 +131,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
131
131
|
if (e !== "__v_isRef")
|
|
132
132
|
return t[e];
|
|
133
133
|
},
|
|
134
|
-
set: function(t, e, o,
|
|
134
|
+
set: function(t, e, o, i) {
|
|
135
135
|
return t[e] = o, !0;
|
|
136
136
|
}
|
|
137
137
|
};
|
|
@@ -180,7 +180,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
180
180
|
if (e !== "__v_isRef")
|
|
181
181
|
return t[e];
|
|
182
182
|
},
|
|
183
|
-
set: function(t, e, o,
|
|
183
|
+
set: function(t, e, o, i) {
|
|
184
184
|
return t[e] = o, !0;
|
|
185
185
|
}
|
|
186
186
|
};
|
|
@@ -224,7 +224,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
224
224
|
if (e !== "__v_isRef")
|
|
225
225
|
return t[e];
|
|
226
226
|
},
|
|
227
|
-
set: function(t, e, o,
|
|
227
|
+
set: function(t, e, o, i) {
|
|
228
228
|
return t[e] = o, !0;
|
|
229
229
|
}
|
|
230
230
|
};
|
|
@@ -270,7 +270,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
270
270
|
if (e !== "__v_isRef")
|
|
271
271
|
return t[e];
|
|
272
272
|
},
|
|
273
|
-
set: function(t, e, o,
|
|
273
|
+
set: function(t, e, o, i) {
|
|
274
274
|
return t[e] = o, !0;
|
|
275
275
|
}
|
|
276
276
|
};
|
|
@@ -287,8 +287,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
287
287
|
disabled: t.disabled
|
|
288
288
|
}, {
|
|
289
289
|
default: withCtx(() => [
|
|
290
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(props.items, (o,
|
|
291
|
-
key:
|
|
290
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(props.items, (o, i) => (openBlock(), createBlock(unref(ElRadio), {
|
|
291
|
+
key: i,
|
|
292
292
|
value: o.value
|
|
293
293
|
}, {
|
|
294
294
|
default: withCtx(() => [
|
|
@@ -334,7 +334,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
334
334
|
if (e !== "__v_isRef")
|
|
335
335
|
return t[e];
|
|
336
336
|
},
|
|
337
|
-
set: function(t, e, o,
|
|
337
|
+
set: function(t, e, o, i) {
|
|
338
338
|
return t[e] = o, !0;
|
|
339
339
|
}
|
|
340
340
|
};
|
|
@@ -353,12 +353,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
353
353
|
class: "width"
|
|
354
354
|
}, {
|
|
355
355
|
default: withCtx(() => [
|
|
356
|
-
props.items ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(props.items, (o,
|
|
357
|
-
key:
|
|
356
|
+
props.items ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(props.items, (o, i) => (openBlock(), createBlock(unref(ElOption), {
|
|
357
|
+
key: i,
|
|
358
358
|
value: o.value,
|
|
359
359
|
label: o.label
|
|
360
|
-
}, null, 8, ["value", "label"]))), 128)) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(props.items, (o,
|
|
361
|
-
key:
|
|
360
|
+
}, null, 8, ["value", "label"]))), 128)) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(props.items, (o, i) => (openBlock(), createBlock(unref(ElOption), {
|
|
361
|
+
key: i,
|
|
362
362
|
value: o.value,
|
|
363
363
|
label: o.label
|
|
364
364
|
}, null, 8, ["value", "label"]))), 128))
|
|
@@ -369,8 +369,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
369
369
|
}
|
|
370
370
|
}), _export_sfc = (t, e) => {
|
|
371
371
|
const o = t.__vccOpts || t;
|
|
372
|
-
for (const [
|
|
373
|
-
o[
|
|
372
|
+
for (const [i, c] of e)
|
|
373
|
+
o[i] = c;
|
|
374
374
|
return o;
|
|
375
375
|
}, QsyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-ae11e120"]]), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
376
376
|
name: "QsyxTextarea",
|
|
@@ -398,7 +398,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
398
398
|
if (e !== "__v_isRef")
|
|
399
399
|
return t[e];
|
|
400
400
|
},
|
|
401
|
-
set: function(t, e, o,
|
|
401
|
+
set: function(t, e, o, i) {
|
|
402
402
|
return t[e] = o, !0;
|
|
403
403
|
}
|
|
404
404
|
};
|
|
@@ -422,250 +422,201 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
422
422
|
}, null, 8, ["modelValue", "maxlength", "disabled", "style"])
|
|
423
423
|
]));
|
|
424
424
|
}
|
|
425
|
-
}), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
425
|
+
}), defaultLabelWidth = "120px", _sfc_main = /* @__PURE__ */ defineComponent({
|
|
426
426
|
name: "QsyxForm",
|
|
427
427
|
__name: "Form",
|
|
428
428
|
props: {
|
|
429
429
|
form: {},
|
|
430
430
|
item: {},
|
|
431
|
-
disabled: {}
|
|
431
|
+
disabled: {},
|
|
432
|
+
labelWidth: {}
|
|
432
433
|
},
|
|
433
434
|
emits: ["changeFormValue"],
|
|
434
435
|
setup(t, { expose: e, emit: o }) {
|
|
435
|
-
const
|
|
436
|
+
const i = ref(), c = async () => {
|
|
436
437
|
let a = ref(!0);
|
|
437
|
-
if (
|
|
438
|
-
return await
|
|
439
|
-
|
|
438
|
+
if (i.value)
|
|
439
|
+
return await i.value.validate((n) => {
|
|
440
|
+
n ? (console.log("submit!"), a.value = !0) : (console.log("error submit!"), a.value = !1);
|
|
440
441
|
}), a.value;
|
|
441
|
-
}, f = o,
|
|
442
|
-
computed(() =>
|
|
443
|
-
m =
|
|
444
|
-
})
|
|
442
|
+
}, f = o, l = t;
|
|
443
|
+
computed(() => l), watch(() => l.form, () => {
|
|
444
|
+
m = l.form;
|
|
445
|
+
});
|
|
445
446
|
let h = {
|
|
446
|
-
get: function(a,
|
|
447
|
-
if (
|
|
448
|
-
return a[
|
|
447
|
+
get: function(a, n, r) {
|
|
448
|
+
if (n !== "__v_isRef")
|
|
449
|
+
return a[n];
|
|
449
450
|
},
|
|
450
|
-
set: function(a,
|
|
451
|
-
return a[
|
|
451
|
+
set: function(a, n, r, u) {
|
|
452
|
+
return a[n] = r, !0;
|
|
452
453
|
}
|
|
453
454
|
};
|
|
454
|
-
var m = new Proxy(
|
|
455
|
-
const p = (a,
|
|
456
|
-
m.data[a] =
|
|
457
|
-
}, d = (a,
|
|
458
|
-
if (
|
|
455
|
+
var m = new Proxy(l.form, h);
|
|
456
|
+
const p = (a, n) => {
|
|
457
|
+
m.data[a] = n, f("changeFormValue", a, n);
|
|
458
|
+
}, d = (a, n) => {
|
|
459
|
+
if (n)
|
|
459
460
|
for (let r = 0; r < m.items.length; r++)
|
|
460
|
-
m.items[r].code === a && (m.items[r].items =
|
|
461
|
+
m.items[r].code === a && (m.items[r].items = n);
|
|
461
462
|
};
|
|
462
463
|
return e({
|
|
463
464
|
valid: c
|
|
464
465
|
}), onMounted(() => {
|
|
465
|
-
}), (a,
|
|
466
|
+
}), (a, n) => (openBlock(), createElementBlock("div", null, [
|
|
466
467
|
createVNode(unref(ElForm), {
|
|
467
468
|
inline: !0,
|
|
468
469
|
class: "flex",
|
|
469
|
-
model:
|
|
470
|
+
model: l.form.data,
|
|
471
|
+
"label-width": l.labelWidth || defaultLabelWidth,
|
|
470
472
|
ref_key: "formRef",
|
|
471
|
-
ref:
|
|
473
|
+
ref: i
|
|
472
474
|
}, {
|
|
473
475
|
default: withCtx(() => [
|
|
474
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
475
|
-
r.type === "text" ? (openBlock(), createBlock(unref(
|
|
476
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(l.form.items, (r, u) => (openBlock(), createElementBlock(Fragment, { key: u }, [
|
|
477
|
+
r.type === "text" ? (openBlock(), createBlock(unref(ElFormItem), {
|
|
476
478
|
key: 0,
|
|
477
|
-
|
|
479
|
+
label: r.label,
|
|
480
|
+
prop: r.code,
|
|
481
|
+
rules: r.rules,
|
|
482
|
+
style: { width: "30%" }
|
|
478
483
|
}, {
|
|
479
484
|
default: withCtx(() => [
|
|
480
|
-
createVNode(
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
valueText: a.form.data[r.code],
|
|
490
|
-
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
491
|
-
form: s.form,
|
|
492
|
-
item: r,
|
|
493
|
-
onChangeFormValue: p,
|
|
494
|
-
onChangeFormItems: d
|
|
495
|
-
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "form", "item"])
|
|
496
|
-
]),
|
|
497
|
-
_: 2
|
|
498
|
-
}, 1032, ["label", "prop", "rules"])
|
|
485
|
+
createVNode(_sfc_main$5, {
|
|
486
|
+
disabled: a.disabled,
|
|
487
|
+
valueText: a.form.data[r.code],
|
|
488
|
+
"onUpdate:valueText": (s) => a.form.data[r.code] = s,
|
|
489
|
+
form: l.form,
|
|
490
|
+
item: r,
|
|
491
|
+
onChangeFormValue: p,
|
|
492
|
+
onChangeFormItems: d
|
|
493
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "form", "item"])
|
|
499
494
|
]),
|
|
500
495
|
_: 2
|
|
501
|
-
},
|
|
502
|
-
r.type === "textarea" ? (openBlock(), createBlock(unref(
|
|
496
|
+
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
|
|
497
|
+
r.type === "textarea" ? (openBlock(), createBlock(unref(ElFormItem), {
|
|
503
498
|
key: 1,
|
|
504
|
-
|
|
499
|
+
label: r.label,
|
|
500
|
+
prop: r.code,
|
|
501
|
+
rules: r.rules,
|
|
505
502
|
style: { width: "100%" }
|
|
506
503
|
}, {
|
|
507
504
|
default: withCtx(() => [
|
|
508
|
-
createVNode(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
valueText: a.form.data[r.code],
|
|
519
|
-
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
520
|
-
form: s.form,
|
|
521
|
-
item: r,
|
|
522
|
-
onChangeFormValue: p,
|
|
523
|
-
style: { width: "100%" },
|
|
524
|
-
style1: r.style
|
|
525
|
-
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "form", "item", "style1"])
|
|
526
|
-
]),
|
|
527
|
-
_: 2
|
|
528
|
-
}, 1032, ["label", "prop", "rules"])
|
|
505
|
+
createVNode(_sfc_main$1, {
|
|
506
|
+
disabled: a.disabled,
|
|
507
|
+
valueText: a.form.data[r.code],
|
|
508
|
+
"onUpdate:valueText": (s) => a.form.data[r.code] = s,
|
|
509
|
+
form: l.form,
|
|
510
|
+
item: r,
|
|
511
|
+
onChangeFormValue: p,
|
|
512
|
+
style: { width: "100%" },
|
|
513
|
+
style1: r.style
|
|
514
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "form", "item", "style1"])
|
|
529
515
|
]),
|
|
530
516
|
_: 2
|
|
531
|
-
},
|
|
532
|
-
r.type === "checkBox" ? (openBlock(), createBlock(unref(
|
|
517
|
+
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
|
|
518
|
+
r.type === "checkBox" ? (openBlock(), createBlock(unref(ElFormItem), {
|
|
533
519
|
key: 2,
|
|
534
|
-
|
|
520
|
+
label: r.label,
|
|
521
|
+
prop: r.code,
|
|
522
|
+
rules: r.rules,
|
|
523
|
+
style: { width: "100%" }
|
|
535
524
|
}, {
|
|
536
525
|
default: withCtx(() => [
|
|
537
|
-
createVNode(
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
disabled: a.disabled,
|
|
546
|
-
valueText: a.form.data[r.code],
|
|
547
|
-
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
548
|
-
item: r,
|
|
549
|
-
onChangeFormValue: p,
|
|
550
|
-
items: r.items
|
|
551
|
-
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items"])
|
|
552
|
-
]),
|
|
553
|
-
_: 2
|
|
554
|
-
}, 1032, ["label", "prop", "rules"])
|
|
526
|
+
createVNode(_sfc_main$8, {
|
|
527
|
+
disabled: a.disabled,
|
|
528
|
+
valueText: a.form.data[r.code],
|
|
529
|
+
"onUpdate:valueText": (s) => a.form.data[r.code] = s,
|
|
530
|
+
item: r,
|
|
531
|
+
onChangeFormValue: p,
|
|
532
|
+
items: r.items
|
|
533
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items"])
|
|
555
534
|
]),
|
|
556
535
|
_: 2
|
|
557
|
-
},
|
|
558
|
-
r.type === "dateInterval" ? (openBlock(), createBlock(unref(
|
|
536
|
+
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
|
|
537
|
+
r.type === "dateInterval" ? (openBlock(), createBlock(unref(ElFormItem), {
|
|
559
538
|
key: 3,
|
|
560
|
-
|
|
539
|
+
label: r.label,
|
|
540
|
+
prop: r.code,
|
|
541
|
+
rules: r.rules,
|
|
542
|
+
style: { width: "30%" }
|
|
561
543
|
}, {
|
|
562
544
|
default: withCtx(() => [
|
|
563
|
-
createVNode(
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
createVNode(_sfc_main$6, {
|
|
571
|
-
disabled: a.disabled,
|
|
572
|
-
valueText: a.form.data[r.code],
|
|
573
|
-
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
574
|
-
item: r,
|
|
575
|
-
onChangeFormValue: p
|
|
576
|
-
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item"])
|
|
577
|
-
]),
|
|
578
|
-
_: 2
|
|
579
|
-
}, 1032, ["label", "prop", "rules"])
|
|
545
|
+
createVNode(_sfc_main$6, {
|
|
546
|
+
disabled: a.disabled,
|
|
547
|
+
valueText: a.form.data[r.code],
|
|
548
|
+
"onUpdate:valueText": (s) => a.form.data[r.code] = s,
|
|
549
|
+
item: r,
|
|
550
|
+
onChangeFormValue: p
|
|
551
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item"])
|
|
580
552
|
]),
|
|
581
553
|
_: 2
|
|
582
|
-
},
|
|
583
|
-
r.type === "money" ? (openBlock(), createBlock(unref(
|
|
554
|
+
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
|
|
555
|
+
r.type === "money" ? (openBlock(), createBlock(unref(ElFormItem), {
|
|
584
556
|
key: 4,
|
|
585
|
-
|
|
557
|
+
label: r.label,
|
|
558
|
+
prop: r.code,
|
|
559
|
+
rules: r.rules,
|
|
560
|
+
style: { width: "30%" }
|
|
586
561
|
}, {
|
|
587
562
|
default: withCtx(() => [
|
|
588
|
-
createVNode(
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
createVNode(_sfc_main$4, {
|
|
596
|
-
disabled: a.disabled,
|
|
597
|
-
valueText: a.form.data[r.code],
|
|
598
|
-
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
599
|
-
item: r,
|
|
600
|
-
onChangeFormValue: p
|
|
601
|
-
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item"])
|
|
602
|
-
]),
|
|
603
|
-
_: 2
|
|
604
|
-
}, 1032, ["label", "prop", "rules"])
|
|
563
|
+
createVNode(_sfc_main$4, {
|
|
564
|
+
disabled: a.disabled,
|
|
565
|
+
valueText: a.form.data[r.code],
|
|
566
|
+
"onUpdate:valueText": (s) => a.form.data[r.code] = s,
|
|
567
|
+
item: r,
|
|
568
|
+
onChangeFormValue: p
|
|
569
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item"])
|
|
605
570
|
]),
|
|
606
571
|
_: 2
|
|
607
|
-
},
|
|
608
|
-
r.type === "radio" ? (openBlock(), createBlock(unref(
|
|
572
|
+
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
|
|
573
|
+
r.type === "radio" ? (openBlock(), createBlock(unref(ElFormItem), {
|
|
609
574
|
key: 5,
|
|
610
|
-
|
|
575
|
+
label: r.label,
|
|
576
|
+
prop: r.code,
|
|
577
|
+
rules: r.rules,
|
|
578
|
+
style: { width: "30%" }
|
|
611
579
|
}, {
|
|
612
580
|
default: withCtx(() => [
|
|
613
|
-
createVNode(
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
disabled: a.disabled,
|
|
622
|
-
valueText: a.form.data[r.code],
|
|
623
|
-
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
624
|
-
item: r,
|
|
625
|
-
onChangeFormValue: p,
|
|
626
|
-
items: r.items
|
|
627
|
-
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items"])
|
|
628
|
-
]),
|
|
629
|
-
_: 2
|
|
630
|
-
}, 1032, ["label", "prop", "rules"])
|
|
581
|
+
createVNode(_sfc_main$3, {
|
|
582
|
+
disabled: a.disabled,
|
|
583
|
+
valueText: a.form.data[r.code],
|
|
584
|
+
"onUpdate:valueText": (s) => a.form.data[r.code] = s,
|
|
585
|
+
item: r,
|
|
586
|
+
onChangeFormValue: p,
|
|
587
|
+
items: r.items
|
|
588
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items"])
|
|
631
589
|
]),
|
|
632
590
|
_: 2
|
|
633
|
-
},
|
|
634
|
-
r.type === "select" ? (openBlock(), createBlock(unref(
|
|
591
|
+
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
|
|
592
|
+
r.type === "select" ? (openBlock(), createBlock(unref(ElFormItem), {
|
|
635
593
|
key: 6,
|
|
636
|
-
|
|
594
|
+
label: r.label,
|
|
595
|
+
prop: r.code,
|
|
596
|
+
rules: r.rules,
|
|
597
|
+
style: { width: "30%" }
|
|
637
598
|
}, {
|
|
638
599
|
default: withCtx(() => [
|
|
639
|
-
createVNode(
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
650
|
-
item: r,
|
|
651
|
-
onChangeFormValue: p,
|
|
652
|
-
items: r.items,
|
|
653
|
-
style1: r.style,
|
|
654
|
-
onChangeFormItems: d
|
|
655
|
-
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items", "style1"])
|
|
656
|
-
]),
|
|
657
|
-
_: 2
|
|
658
|
-
}, 1032, ["label", "prop", "rules"])
|
|
600
|
+
createVNode(QsyxSelect, {
|
|
601
|
+
disabled: a.disabled,
|
|
602
|
+
valueText: a.form.data[r.code],
|
|
603
|
+
"onUpdate:valueText": (s) => a.form.data[r.code] = s,
|
|
604
|
+
item: r,
|
|
605
|
+
onChangeFormValue: p,
|
|
606
|
+
items: r.items,
|
|
607
|
+
style1: r.style,
|
|
608
|
+
onChangeFormItems: d
|
|
609
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items", "style1"])
|
|
659
610
|
]),
|
|
660
611
|
_: 2
|
|
661
|
-
},
|
|
612
|
+
}, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0)
|
|
662
613
|
], 64))), 128))
|
|
663
614
|
]),
|
|
664
615
|
_: 1
|
|
665
|
-
}, 8, ["model"])
|
|
616
|
+
}, 8, ["model", "label-width"])
|
|
666
617
|
]));
|
|
667
618
|
}
|
|
668
|
-
}), Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
619
|
+
}), Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b43fdf2"]]), QsyxForm = withInstall(Form);
|
|
669
620
|
console.log("QsyxForm", QsyxForm);
|
|
670
621
|
export {
|
|
671
622
|
Form as F,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as L, ref as k, useSlots as M, reactive as T, onMounted as D, openBlock as u, createElementBlock as N, createVNode as r, unref as
|
|
2
|
-
import { _ as j } from "./Dialog-
|
|
3
|
-
import {
|
|
4
|
-
import { w as A } from "./utils-
|
|
1
|
+
import { defineComponent as L, ref as k, useSlots as M, reactive as T, onMounted as D, openBlock as u, createElementBlock as N, createVNode as r, unref as o, withCtx as n, Fragment as F, renderList as O, createBlock as E, renderSlot as g, createCommentVNode as v, createElementVNode as d, withModifiers as B, createTextVNode as b } from "vue";
|
|
2
|
+
import { _ as j } from "./Dialog-BXouvy_S.js";
|
|
3
|
+
import { k as q, l as I, m as y } from "./vendor-Bp1uerJ6.js";
|
|
4
|
+
import { w as A } from "./utils-DQydeJ_U.js";
|
|
5
5
|
const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
6
6
|
name: "QsyxTable",
|
|
7
7
|
__name: "Table",
|
|
@@ -9,11 +9,13 @@ const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
|
9
9
|
table: {}
|
|
10
10
|
},
|
|
11
11
|
setup(Q) {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const a = Q, i = k(!1), C = M(), m = k(NaN);
|
|
13
|
+
let p = T([]);
|
|
14
|
+
const f = T([]), c = k(!1), V = () => {
|
|
15
|
+
for (let l in a.table.data)
|
|
16
|
+
for (let e = 0; e < a.table.items.length; e++)
|
|
17
|
+
l === a.table.items[e].code && (a.table.items[e].type === "select" ? f.push({ prop: l + "Label", label: a.table.items[e].label }) : f.push({ prop: l, label: a.table.items[e].label }));
|
|
18
|
+
p.push(a.table.data);
|
|
17
19
|
}, $ = (l, e) => {
|
|
18
20
|
p = p.splice(e, 1);
|
|
19
21
|
}, x = (l, e) => {
|
|
@@ -27,18 +29,18 @@ const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
|
27
29
|
return D(() => {
|
|
28
30
|
V();
|
|
29
31
|
}), (l, e) => (u(), N("div", null, [
|
|
30
|
-
r(
|
|
31
|
-
data: p,
|
|
32
|
+
r(o(q), {
|
|
33
|
+
data: o(p),
|
|
32
34
|
style: { width: "100%" }
|
|
33
35
|
}, {
|
|
34
36
|
default: n(() => [
|
|
35
|
-
(u(!0), N(F, null, O(f, (t, s) => (u(), E(
|
|
37
|
+
(u(!0), N(F, null, O(f, (t, s) => (u(), E(o(I), {
|
|
36
38
|
prop: t.prop,
|
|
37
39
|
label: t.label,
|
|
38
40
|
key: s
|
|
39
41
|
}, {
|
|
40
42
|
default: n(() => [
|
|
41
|
-
|
|
43
|
+
o(C)[t.prop] ? g(l.$slots, t.prop, {
|
|
42
44
|
key: 0,
|
|
43
45
|
index: l.$index,
|
|
44
46
|
row: l.row
|
|
@@ -46,15 +48,15 @@ const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
|
46
48
|
]),
|
|
47
49
|
_: 2
|
|
48
50
|
}, 1032, ["prop", "label"]))), 128)),
|
|
49
|
-
r(
|
|
51
|
+
r(o(I), { label: "操作" }, {
|
|
50
52
|
default: n(({ row: t, $index: s }) => [
|
|
51
|
-
|
|
53
|
+
o(C).opreate ? g(l.$slots, "opreate", {
|
|
52
54
|
key: 0,
|
|
53
55
|
index: s,
|
|
54
56
|
row: t
|
|
55
57
|
}) : v("", !0),
|
|
56
58
|
d("div", null, [
|
|
57
|
-
r(
|
|
59
|
+
r(o(y), {
|
|
58
60
|
link: "",
|
|
59
61
|
type: "primary",
|
|
60
62
|
size: "small",
|
|
@@ -65,7 +67,7 @@ const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
|
65
67
|
])),
|
|
66
68
|
_: 2
|
|
67
69
|
}, 1032, ["onClick"]),
|
|
68
|
-
r(
|
|
70
|
+
r(o(y), {
|
|
69
71
|
link: "",
|
|
70
72
|
type: "primary",
|
|
71
73
|
size: "small",
|
|
@@ -76,7 +78,7 @@ const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
|
76
78
|
])),
|
|
77
79
|
_: 2
|
|
78
80
|
}, 1032, ["onClick"]),
|
|
79
|
-
r(
|
|
81
|
+
r(o(y), {
|
|
80
82
|
link: "",
|
|
81
83
|
type: "primary",
|
|
82
84
|
size: "small",
|
|
@@ -96,7 +98,7 @@ const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
|
96
98
|
}, 8, ["data"]),
|
|
97
99
|
i.value ? (u(), E(j, {
|
|
98
100
|
key: 0,
|
|
99
|
-
form:
|
|
101
|
+
form: a.table,
|
|
100
102
|
activeIndex: m.value,
|
|
101
103
|
onOpen: S,
|
|
102
104
|
onClose: R,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as J, ref as X, onMounted as K, onBeforeUnmount as Z, watch as ee, openBlock as te, createElementBlock as re, createElementVNode as oe } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as ie } from "./Form-
|
|
4
|
-
import { w as fe } from "./utils-
|
|
2
|
+
import { n as ne, _ as ae, o as p, p as G, t as le, S as se } from "./vendor-Bp1uerJ6.js";
|
|
3
|
+
import { _ as ie } from "./Form-DMYcLvsE.js";
|
|
4
|
+
import { w as fe } from "./utils-DQydeJ_U.js";
|
|
5
5
|
function ce(e) {
|
|
6
6
|
return typeof e == "string" ? e : e instanceof Blob ? URL.createObjectURL(e) : e instanceof ArrayBuffer ? URL.createObjectURL(new Blob([e])) : e instanceof Response ? URL.createObjectURL(e.blob()) : e;
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as m } from "./vendor-Bp1uerJ6.js";
|
|
2
2
|
import { openBlock as d, createElementBlock as x, renderSlot as y, createTextVNode as h, toDisplayString as g, defineComponent as b, ref as w, reactive as p, resolveComponent as k, createBlock as _, withCtx as f, createVNode as E } from "vue";
|
|
3
|
-
import { _ as c } from "./Form-
|
|
4
|
-
import { w as V } from "./utils-
|
|
3
|
+
import { _ as c } from "./Form-DMYcLvsE.js";
|
|
4
|
+
import { w as V } from "./utils-DQydeJ_U.js";
|
|
5
5
|
const C = {
|
|
6
6
|
props: {
|
|
7
7
|
// mime type [xls, csv]
|