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.
@@ -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-BFYGwXom.js";
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-BB4u_L5j.js";
3
- import { E as w } from "./vendor-DfydgTBg.js";
4
- import { w as y } from "./utils-BFYGwXom.js";
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 ElCol, k as ElFormItem } from "./vendor-DfydgTBg.js";
3
- import { w as withInstall } from "./utils-BFYGwXom.js";
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, n) {
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, n) => (openBlock(), createBlock(unref(ElCheckbox), {
48
- key: n,
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, n) {
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, n) {
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, n) {
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, n) {
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, n) {
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, n) => (openBlock(), createBlock(unref(ElRadio), {
291
- key: n,
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, n) {
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, n) => (openBlock(), createBlock(unref(ElOption), {
357
- key: n,
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, n) => (openBlock(), createBlock(unref(ElOption), {
361
- key: n,
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 [n, c] of e)
373
- o[n] = c;
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, n) {
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 n = ref(), c = async () => {
436
+ const i = ref(), c = async () => {
436
437
  let a = ref(!0);
437
- if (n.value)
438
- return await n.value.validate((i) => {
439
- i ? (console.log("submit!"), a.value = !0) : (console.log("error submit!"), a.value = !1);
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, s = t;
442
- computed(() => s), watch(() => s.form, () => {
443
- m = s.form;
444
- }), ref(""), ref("");
442
+ }, f = o, l = t;
443
+ computed(() => l), watch(() => l.form, () => {
444
+ m = l.form;
445
+ });
445
446
  let h = {
446
- get: function(a, i, r) {
447
- if (i !== "__v_isRef")
448
- return a[i];
447
+ get: function(a, n, r) {
448
+ if (n !== "__v_isRef")
449
+ return a[n];
449
450
  },
450
- set: function(a, i, r, u) {
451
- return a[i] = r, !0;
451
+ set: function(a, n, r, u) {
452
+ return a[n] = r, !0;
452
453
  }
453
454
  };
454
- var m = new Proxy(s.form, h);
455
- const p = (a, i) => {
456
- m.data[a] = i, f("changeFormValue", a, i);
457
- }, d = (a, i) => {
458
- if (i)
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 = i);
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, i) => (openBlock(), createElementBlock("div", null, [
466
+ }), (a, n) => (openBlock(), createElementBlock("div", null, [
466
467
  createVNode(unref(ElForm), {
467
468
  inline: !0,
468
469
  class: "flex",
469
- model: s.form.data,
470
+ model: l.form.data,
471
+ "label-width": l.labelWidth || defaultLabelWidth,
470
472
  ref_key: "formRef",
471
- ref: n
473
+ ref: i
472
474
  }, {
473
475
  default: withCtx(() => [
474
- (openBlock(!0), createElementBlock(Fragment, null, renderList(s.form.items, (r, u) => (openBlock(), createElementBlock(Fragment, { key: u }, [
475
- r.type === "text" ? (openBlock(), createBlock(unref(ElCol), {
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
- span: 8
479
+ label: r.label,
480
+ prop: r.code,
481
+ rules: r.rules,
482
+ style: { width: "30%" }
478
483
  }, {
479
484
  default: withCtx(() => [
480
- createVNode(unref(ElFormItem), {
481
- "label-width": "120px",
482
- label: r.label,
483
- prop: r.code,
484
- rules: r.rules
485
- }, {
486
- default: withCtx(() => [
487
- createVNode(_sfc_main$5, {
488
- disabled: a.disabled,
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
- }, 1024)) : createCommentVNode("", !0),
502
- r.type === "textarea" ? (openBlock(), createBlock(unref(ElCol), {
496
+ }, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
497
+ r.type === "textarea" ? (openBlock(), createBlock(unref(ElFormItem), {
503
498
  key: 1,
504
- span: 24,
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(unref(ElFormItem), {
509
- "label-width": "120px",
510
- label: r.label,
511
- prop: r.code,
512
- rules: r.rules,
513
- style: { width: "100%" }
514
- }, {
515
- default: withCtx(() => [
516
- createVNode(_sfc_main$1, {
517
- disabled: a.disabled,
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
- }, 1024)) : createCommentVNode("", !0),
532
- r.type === "checkBox" ? (openBlock(), createBlock(unref(ElCol), {
517
+ }, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
518
+ r.type === "checkBox" ? (openBlock(), createBlock(unref(ElFormItem), {
533
519
  key: 2,
534
- span: 24
520
+ label: r.label,
521
+ prop: r.code,
522
+ rules: r.rules,
523
+ style: { width: "100%" }
535
524
  }, {
536
525
  default: withCtx(() => [
537
- createVNode(unref(ElFormItem), {
538
- "label-width": "120px",
539
- label: r.label,
540
- prop: r.code,
541
- rules: r.rules
542
- }, {
543
- default: withCtx(() => [
544
- createVNode(_sfc_main$8, {
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
- }, 1024)) : createCommentVNode("", !0),
558
- r.type === "dateInterval" ? (openBlock(), createBlock(unref(ElCol), {
536
+ }, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
537
+ r.type === "dateInterval" ? (openBlock(), createBlock(unref(ElFormItem), {
559
538
  key: 3,
560
- span: 8
539
+ label: r.label,
540
+ prop: r.code,
541
+ rules: r.rules,
542
+ style: { width: "30%" }
561
543
  }, {
562
544
  default: withCtx(() => [
563
- createVNode(unref(ElFormItem), {
564
- "label-width": "120px",
565
- label: r.label,
566
- prop: r.code,
567
- rules: r.rules
568
- }, {
569
- default: withCtx(() => [
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
- }, 1024)) : createCommentVNode("", !0),
583
- r.type === "money" ? (openBlock(), createBlock(unref(ElCol), {
554
+ }, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
555
+ r.type === "money" ? (openBlock(), createBlock(unref(ElFormItem), {
584
556
  key: 4,
585
- span: 8
557
+ label: r.label,
558
+ prop: r.code,
559
+ rules: r.rules,
560
+ style: { width: "30%" }
586
561
  }, {
587
562
  default: withCtx(() => [
588
- createVNode(unref(ElFormItem), {
589
- "label-width": "120px",
590
- label: r.label,
591
- prop: r.code,
592
- rules: r.rules
593
- }, {
594
- default: withCtx(() => [
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
- }, 1024)) : createCommentVNode("", !0),
608
- r.type === "radio" ? (openBlock(), createBlock(unref(ElCol), {
572
+ }, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
573
+ r.type === "radio" ? (openBlock(), createBlock(unref(ElFormItem), {
609
574
  key: 5,
610
- span: 8
575
+ label: r.label,
576
+ prop: r.code,
577
+ rules: r.rules,
578
+ style: { width: "30%" }
611
579
  }, {
612
580
  default: withCtx(() => [
613
- createVNode(unref(ElFormItem), {
614
- "label-width": "120px",
615
- label: r.label,
616
- prop: r.code,
617
- rules: r.rules
618
- }, {
619
- default: withCtx(() => [
620
- createVNode(_sfc_main$3, {
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
- }, 1024)) : createCommentVNode("", !0),
634
- r.type === "select" ? (openBlock(), createBlock(unref(ElCol), {
591
+ }, 1032, ["label", "prop", "rules"])) : createCommentVNode("", !0),
592
+ r.type === "select" ? (openBlock(), createBlock(unref(ElFormItem), {
635
593
  key: 6,
636
- span: 8
594
+ label: r.label,
595
+ prop: r.code,
596
+ rules: r.rules,
597
+ style: { width: "30%" }
637
598
  }, {
638
599
  default: withCtx(() => [
639
- createVNode(unref(ElFormItem), {
640
- "label-width": "120px",
641
- label: r.label,
642
- prop: r.code,
643
- rules: r.rules
644
- }, {
645
- default: withCtx(() => [
646
- createVNode(QsyxSelect, {
647
- disabled: a.disabled,
648
- valueText: a.form.data[r.code],
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
- }, 1024)) : createCommentVNode("", !0)
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-f899e90d"]]), QsyxForm = withInstall(Form);
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 a, 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-B0OvoS7J.js";
3
- import { l as q, m as I, n as y } from "./vendor-DfydgTBg.js";
4
- import { w as A } from "./utils-BFYGwXom.js";
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 o = Q, i = k(!1), C = M(), m = k(NaN), p = T([]), f = T([]), c = k(!1), V = () => {
13
- for (let l in o.table.data)
14
- for (let e = 0; e < o.table.items.length; e++)
15
- l === o.table.items[e].code && (o.table.items[e].type === "select" ? f.push({ prop: l + "Label", label: o.table.items[e].label }) : f.push({ prop: l, label: o.table.items[e].label }));
16
- p.push(o.table.data);
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(a(q), {
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(a(I), {
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
- a(C)[t.prop] ? g(l.$slots, t.prop, {
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(a(I), { label: "操作" }, {
51
+ r(o(I), { label: "操作" }, {
50
52
  default: n(({ row: t, $index: s }) => [
51
- a(C).opreate ? g(l.$slots, "opreate", {
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(a(y), {
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(a(y), {
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(a(y), {
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: o.table,
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 { o as ne, _ as ae, p, q as G, t as le, S as se } from "./vendor-DfydgTBg.js";
3
- import { _ as ie } from "./Form-BB4u_L5j.js";
4
- import { w as fe } from "./utils-BFYGwXom.js";
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 { r as m } from "./vendor-DfydgTBg.js";
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-BB4u_L5j.js";
4
- import { w as V } from "./utils-BFYGwXom.js";
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]