qsyx-element 1.0.11 → 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-Dm-jHN-I.js → Table-Dpl403Yx.js} +3 -3
- 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
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-
|
|
3
|
-
import {
|
|
4
|
-
import { w as A } from "./utils-
|
|
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",
|
|
@@ -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]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as A, openBlock as c, createElementBlock as y, createElementVNode as e, resolveComponent as v, createVNode as h, withCtx as w, createTextVNode as g, withDirectives as m, vModelText as f, Fragment as O, renderList as D, renderSlot as W } from "vue";
|
|
2
|
-
import { J as U, P as S,
|
|
3
|
-
import { w as V } from "./utils-
|
|
4
|
-
import { _ as k } from "./Form-
|
|
2
|
+
import { J as U, P as S, r as C, F as E, s as B, I, u as _ } from "./vendor-Bp1uerJ6.js";
|
|
3
|
+
import { w as V } from "./utils-DQydeJ_U.js";
|
|
4
|
+
import { _ as k } from "./Form-DMYcLvsE.js";
|
|
5
5
|
const N = /* @__PURE__ */ A({
|
|
6
6
|
name: "QsyxExportWord",
|
|
7
7
|
__name: "index",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { v as t } from "./vendor-Bp1uerJ6.js";
|
|
2
2
|
import { openBlock as i, createElementBlock as r, createElementVNode as n } from "vue";
|
|
3
|
-
import { _ as c } from "./Form-
|
|
4
|
-
import { w as m } from "./utils-
|
|
3
|
+
import { _ as c } from "./Form-DMYcLvsE.js";
|
|
4
|
+
import { w as m } from "./utils-DQydeJ_U.js";
|
|
5
5
|
const e = t.createWorker({
|
|
6
6
|
// logger: m => console.log(m),
|
|
7
7
|
}), g = {
|
|
@@ -23,7 +23,7 @@ const e = t.createWorker({
|
|
|
23
23
|
this.recognize();
|
|
24
24
|
}
|
|
25
25
|
}, _ = { id: "app" }, d = ["src"];
|
|
26
|
-
function l(o, s, a, x,
|
|
26
|
+
function l(o, s, a, x, f, h) {
|
|
27
27
|
return i(), r("div", _, [
|
|
28
28
|
n("img", {
|
|
29
29
|
id: "text-img",
|
package/dist/es/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { w as s, m as o } from "./utils-
|
|
2
|
-
import { Q as a } from "./Button-
|
|
3
|
-
import { a as t, b as r, c as m, d as x, e as Q, f as n, Q as c, g as e, h as i } from "./Form-
|
|
4
|
-
import { Q as y } from "./Dialog-
|
|
5
|
-
import { Q as f } from "./Table-
|
|
6
|
-
import { Q as p } from "./wordSee-
|
|
7
|
-
import { Q as l } from "./excelSee-
|
|
8
|
-
import { Q as _ } from "./pdfSee-
|
|
9
|
-
import { Q as E, a as I, b as d } from "./exportWord-
|
|
10
|
-
import { Q as $ } from "./insertExcel-
|
|
11
|
-
import { Q as g } from "./exportExcel-
|
|
12
|
-
import { Q as h } from "./imToText-
|
|
13
|
-
import { Q as u } from "./onlineExcel-
|
|
1
|
+
import { w as s, m as o } from "./utils-DQydeJ_U.js";
|
|
2
|
+
import { Q as a } from "./Button-BYspHtkd.js";
|
|
3
|
+
import { a as t, b as r, c as m, d as x, e as Q, f as n, Q as c, g as e, h as i } from "./Form-DMYcLvsE.js";
|
|
4
|
+
import { Q as y } from "./Dialog-BXouvy_S.js";
|
|
5
|
+
import { Q as f } from "./Table-Dpl403Yx.js";
|
|
6
|
+
import { Q as p } from "./wordSee-vA7AhFrV.js";
|
|
7
|
+
import { Q as l } from "./excelSee-BsHrKjKK.js";
|
|
8
|
+
import { Q as _ } from "./pdfSee-BK6kkbPt.js";
|
|
9
|
+
import { Q as E, a as I, b as d } from "./exportWord-BrQeKkug.js";
|
|
10
|
+
import { Q as $ } from "./insertExcel-C7evqQnm.js";
|
|
11
|
+
import { Q as g } from "./exportExcel-CD37fdLB.js";
|
|
12
|
+
import { Q as h } from "./imToText-DJdXaLaa.js";
|
|
13
|
+
import { Q as u } from "./onlineExcel-KhEZI16h.js";
|
|
14
14
|
const R = s(t), j = s(r), q = s(m), z = s(x), A = s(Q), G = s(n), H = s(c), J = s(e), D = [a, y, f, i, p, _, l, E, $, I, d, g, h, u], K = o(D);
|
|
15
15
|
export {
|
|
16
16
|
a as QsyxButton,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as r_, ref as o0, reactive as t_, onMounted as a_, openBlock as pi, createElementBlock as Xc, createTextVNode as zc, toDisplayString as n_, createVNode as K0, unref as l0, withCtx as j0, Fragment as i_, renderList as s_, createBlock as f_ } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { w as x_ } from "./utils-
|
|
2
|
+
import { w as c_, m as o_, x as l_, k as u_, l as h_ } from "./vendor-Bp1uerJ6.js";
|
|
3
|
+
import { w as x_ } from "./utils-DQydeJ_U.js";
|
|
4
4
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
5
5
|
var Mt = {};
|
|
6
6
|
function Y0($e) {
|