qsyx-element 1.0.8 → 1.0.10
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/{Dialog-D8tifW8O.js → Dialog-B0OvoS7J.js} +16 -14
- package/dist/es/{Form-cp3JXJsw.js → Form-BB4u_L5j.js} +67 -43
- package/dist/es/Table-B0cHfaB7.js +128 -0
- package/dist/es/{excelSee-Ps2OG3KF.js → excelSee-Blf1y7aY.js} +1 -1
- package/dist/es/{exportExcel-DU2azJp7.js → exportExcel-BUK4KuLT.js} +1 -1
- package/dist/es/{exportWord-C03NUEEo.js → exportWord-BwEj0S5C.js} +1 -1
- package/dist/es/{imToText-CNncGBqc.js → imToText-BY0usGWJ.js} +1 -1
- package/dist/es/index.js +10 -10
- package/dist/es/{onlineExcel-DnAtP0S3.js → onlineExcel-BW8Ry3sO.js} +1 -1
- package/dist/es/{pdfSee-COBbevdQ.js → pdfSee-Bt2kUOLa.js} +2 -2
- package/dist/es/{wordSee-5b4i09aw.js → wordSee-Bg6XeDsu.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/types/components/Dialog/Dialog.vue.d.ts +2 -0
- package/dist/types/components/Dialog/index.d.ts +16 -0
- package/dist/types/components/Form/Form.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxCheckBox/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxCheckBox/index.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxDate/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxDate/index.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxDateInterval/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxDateInterval/index.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxInput/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxInput/index.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxInputMoney/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxInputMoney/index.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxRadio/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxRadio/index.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxSelect/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxSelect/index.vue.d.ts +2 -0
- package/dist/types/components/foundationComponents/qsyxTextArea/index.d.ts +16 -0
- package/dist/types/components/foundationComponents/qsyxTextArea/index.vue.d.ts +2 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/es/Table-BP59pE3p.js +0 -122
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as c, reactive as f, openBlock as g, createElementBlock as u, createVNode as r, unref as
|
|
2
|
-
import { F as
|
|
3
|
-
import { E as
|
|
4
|
-
import { w as
|
|
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";
|
|
5
5
|
const C = /* @__PURE__ */ c({
|
|
6
6
|
name: "QsyxDialog",
|
|
7
7
|
__name: "Dialog",
|
|
8
8
|
props: {
|
|
9
|
-
form: {}
|
|
9
|
+
form: {},
|
|
10
|
+
disabled: {}
|
|
10
11
|
},
|
|
11
12
|
emits: ["open", "close"],
|
|
12
13
|
setup(D, { emit: a }) {
|
|
13
|
-
const
|
|
14
|
+
const d = a, e = f({
|
|
14
15
|
visible: !0,
|
|
15
16
|
alignCenter: !0,
|
|
16
17
|
center: !0,
|
|
@@ -20,11 +21,11 @@ const C = /* @__PURE__ */ c({
|
|
|
20
21
|
title: "",
|
|
21
22
|
showClose: !0,
|
|
22
23
|
appendToBody: !1
|
|
23
|
-
}),
|
|
24
|
-
|
|
24
|
+
}), i = () => {
|
|
25
|
+
d("close");
|
|
25
26
|
};
|
|
26
27
|
return (o, s) => (g(), u("div", null, [
|
|
27
|
-
r(
|
|
28
|
+
r(b(w), {
|
|
28
29
|
modelValue: e.visible,
|
|
29
30
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.visible = l),
|
|
30
31
|
"append-to-body": e.appendToBody,
|
|
@@ -34,7 +35,7 @@ const C = /* @__PURE__ */ c({
|
|
|
34
35
|
center: e.center,
|
|
35
36
|
"align-center": e.alignCenter,
|
|
36
37
|
onOpend: o.opend,
|
|
37
|
-
onClose:
|
|
38
|
+
onClose: i,
|
|
38
39
|
"destroy-on-close": e.destroyOnClose,
|
|
39
40
|
draggable: e.draggable,
|
|
40
41
|
"close-on-click-modal": !1
|
|
@@ -50,16 +51,17 @@ const C = /* @__PURE__ */ c({
|
|
|
50
51
|
n(o.$slots, "footer")
|
|
51
52
|
]),
|
|
52
53
|
default: t(() => [
|
|
53
|
-
r(
|
|
54
|
+
r(h, {
|
|
54
55
|
ref: "formRef",
|
|
55
|
-
form: o.form
|
|
56
|
-
|
|
56
|
+
form: o.form,
|
|
57
|
+
disabled: o.disabled
|
|
58
|
+
}, null, 8, ["form", "disabled"])
|
|
57
59
|
]),
|
|
58
60
|
_: 3
|
|
59
61
|
}, 8, ["modelValue", "append-to-body", "title", "show-close", "width", "center", "align-center", "onOpend", "destroy-on-close", "draggable"])
|
|
60
62
|
]));
|
|
61
63
|
}
|
|
62
|
-
}), v =
|
|
64
|
+
}), v = y(C);
|
|
63
65
|
console.log("QsyxDialog", v);
|
|
64
66
|
export {
|
|
65
67
|
v as Q,
|
|
@@ -7,7 +7,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
7
7
|
props: {
|
|
8
8
|
valueText: {},
|
|
9
9
|
item: {},
|
|
10
|
-
items: {}
|
|
10
|
+
items: {},
|
|
11
|
+
disabled: {}
|
|
11
12
|
},
|
|
12
13
|
emits: ["changeFormValue", "changeFormItems`"],
|
|
13
14
|
setup(__props, { emit: __emit }) {
|
|
@@ -39,7 +40,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
39
40
|
createVNode(unref(ElCheckboxGroup), {
|
|
40
41
|
modelValue: attr.value,
|
|
41
42
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
42
|
-
style: normalizeStyle(props.item.style ? props.item.style : "width:100%")
|
|
43
|
+
style: normalizeStyle(props.item.style ? props.item.style : "width:100%"),
|
|
44
|
+
disabled: t.disabled
|
|
43
45
|
}, {
|
|
44
46
|
default: withCtx(() => [
|
|
45
47
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(props.items, (o, n) => (openBlock(), createBlock(unref(ElCheckbox), {
|
|
@@ -50,7 +52,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
50
52
|
}, null, 8, ["label", "value"]))), 128))
|
|
51
53
|
]),
|
|
52
54
|
_: 1
|
|
53
|
-
}, 8, ["modelValue", "style"])
|
|
55
|
+
}, 8, ["modelValue", "style", "disabled"])
|
|
54
56
|
]));
|
|
55
57
|
}
|
|
56
58
|
}), _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
@@ -58,7 +60,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
58
60
|
__name: "index",
|
|
59
61
|
props: {
|
|
60
62
|
valueText: {},
|
|
61
|
-
item: {}
|
|
63
|
+
item: {},
|
|
64
|
+
disabled: {}
|
|
62
65
|
},
|
|
63
66
|
emits: ["changeFormValue", "changeFormItems`"],
|
|
64
67
|
setup(__props, { emit: __emit }) {
|
|
@@ -91,12 +94,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
91
94
|
modelValue: attr.value,
|
|
92
95
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
93
96
|
type: props.type,
|
|
97
|
+
disabled: t.disabled,
|
|
94
98
|
placeholder: props.type,
|
|
95
99
|
size: props.size ? props.size : "medium",
|
|
96
100
|
onChange: changeProps,
|
|
97
101
|
format: props.format ? props.format : "",
|
|
98
102
|
"value-format": props.valueFormat ? props.valueFormat : "YYYYMMDDHHmmss"
|
|
99
|
-
}, null, 8, ["modelValue", "type", "placeholder", "size", "format", "value-format"])
|
|
103
|
+
}, null, 8, ["modelValue", "type", "disabled", "placeholder", "size", "format", "value-format"])
|
|
100
104
|
]));
|
|
101
105
|
}
|
|
102
106
|
}), _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
@@ -104,7 +108,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
104
108
|
__name: "index",
|
|
105
109
|
props: {
|
|
106
110
|
valueText: {},
|
|
107
|
-
item: {}
|
|
111
|
+
item: {},
|
|
112
|
+
disabled: {}
|
|
108
113
|
},
|
|
109
114
|
emits: ["changeFormValue", "changeFormItems`"],
|
|
110
115
|
setup(__props, { emit: __emit }) {
|
|
@@ -140,12 +145,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
140
145
|
modelValue: attr.value,
|
|
141
146
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
142
147
|
"default-time": defaultTime.value,
|
|
148
|
+
disabled: t.disabled,
|
|
143
149
|
"range-separator": "-",
|
|
144
150
|
"value-format": props.valueFormat ? props.valueFormat : "YYYYMMDDHHmmss",
|
|
145
151
|
type: "daterange",
|
|
146
152
|
placeholder: "",
|
|
147
153
|
onChange: changeProps
|
|
148
|
-
}, null, 8, ["modelValue", "default-time", "value-format"])
|
|
154
|
+
}, null, 8, ["modelValue", "default-time", "disabled", "value-format"])
|
|
149
155
|
]));
|
|
150
156
|
}
|
|
151
157
|
}), _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
@@ -154,7 +160,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
154
160
|
props: {
|
|
155
161
|
valueText: {},
|
|
156
162
|
item: {},
|
|
157
|
-
form: {}
|
|
163
|
+
form: {},
|
|
164
|
+
disabled: {}
|
|
158
165
|
},
|
|
159
166
|
emits: ["changeFormValue", "changeFormItems`"],
|
|
160
167
|
setup(__props, { emit: __emit }) {
|
|
@@ -187,8 +194,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
187
194
|
modelValue: attr.value,
|
|
188
195
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
189
196
|
placeholder: "",
|
|
190
|
-
onInput: changeProps
|
|
191
|
-
|
|
197
|
+
onInput: changeProps,
|
|
198
|
+
disabled: t.disabled
|
|
199
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
192
200
|
]));
|
|
193
201
|
}
|
|
194
202
|
}), _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
@@ -196,7 +204,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
196
204
|
__name: "index",
|
|
197
205
|
props: {
|
|
198
206
|
valueText: {},
|
|
199
|
-
item: {}
|
|
207
|
+
item: {},
|
|
208
|
+
disabled: {}
|
|
200
209
|
},
|
|
201
210
|
emits: ["changeFormValue", "changeFormItems`"],
|
|
202
211
|
setup(__props, { emit: __emit }) {
|
|
@@ -230,8 +239,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
230
239
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
231
240
|
placeholder: "",
|
|
232
241
|
type: "number",
|
|
242
|
+
disabled: t.disabled,
|
|
233
243
|
onInput: changeProps
|
|
234
|
-
}, null, 8, ["modelValue"])
|
|
244
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
235
245
|
]));
|
|
236
246
|
}
|
|
237
247
|
}), _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
@@ -240,7 +250,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
240
250
|
props: {
|
|
241
251
|
valueText: {},
|
|
242
252
|
item: {},
|
|
243
|
-
items: {}
|
|
253
|
+
items: {},
|
|
254
|
+
disabled: {}
|
|
244
255
|
},
|
|
245
256
|
emits: ["changeFormValue", "changeFormItems`"],
|
|
246
257
|
setup(__props, { emit: __emit }) {
|
|
@@ -272,7 +283,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
272
283
|
createVNode(unref(ElRadioGroup), {
|
|
273
284
|
modelValue: attr.value,
|
|
274
285
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
275
|
-
onChange: changeProps
|
|
286
|
+
onChange: changeProps,
|
|
287
|
+
disabled: t.disabled
|
|
276
288
|
}, {
|
|
277
289
|
default: withCtx(() => [
|
|
278
290
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(props.items, (o, n) => (openBlock(), createBlock(unref(ElRadio), {
|
|
@@ -286,7 +298,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
286
298
|
}, 1032, ["value"]))), 128))
|
|
287
299
|
]),
|
|
288
300
|
_: 1
|
|
289
|
-
}, 8, ["modelValue"])
|
|
301
|
+
}, 8, ["modelValue", "disabled"])
|
|
290
302
|
]));
|
|
291
303
|
}
|
|
292
304
|
}), _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
@@ -296,7 +308,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
296
308
|
valueText: {},
|
|
297
309
|
item: {},
|
|
298
310
|
items: {},
|
|
299
|
-
style1: {}
|
|
311
|
+
style1: {},
|
|
312
|
+
disabled: {}
|
|
300
313
|
},
|
|
301
314
|
emits: ["changeFormValue", "changeFormItems"],
|
|
302
315
|
setup(__props, { emit: __emit }) {
|
|
@@ -336,6 +349,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
336
349
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
337
350
|
onChange: changeProps,
|
|
338
351
|
style: normalizeStyle(props.style1 ? props.style1 : ""),
|
|
352
|
+
disabled: t.disabled,
|
|
339
353
|
class: "width"
|
|
340
354
|
}, {
|
|
341
355
|
default: withCtx(() => [
|
|
@@ -350,21 +364,22 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
350
364
|
}, null, 8, ["value", "label"]))), 128))
|
|
351
365
|
]),
|
|
352
366
|
_: 1
|
|
353
|
-
}, 8, ["modelValue", "style"])
|
|
367
|
+
}, 8, ["modelValue", "style", "disabled"])
|
|
354
368
|
]));
|
|
355
369
|
}
|
|
356
370
|
}), _export_sfc = (t, e) => {
|
|
357
371
|
const o = t.__vccOpts || t;
|
|
358
|
-
for (const [n,
|
|
359
|
-
o[n] =
|
|
372
|
+
for (const [n, c] of e)
|
|
373
|
+
o[n] = c;
|
|
360
374
|
return o;
|
|
361
|
-
}, QsyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
375
|
+
}, QsyxSelect = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-ae11e120"]]), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
362
376
|
name: "QsyxTextarea",
|
|
363
377
|
__name: "index",
|
|
364
378
|
props: {
|
|
365
379
|
valueText: {},
|
|
366
380
|
item: {},
|
|
367
|
-
style1: {}
|
|
381
|
+
style1: {},
|
|
382
|
+
disabled: {}
|
|
368
383
|
},
|
|
369
384
|
emits: ["changeFormValue", "changeFormItems`"],
|
|
370
385
|
setup(__props, { emit: __emit }) {
|
|
@@ -397,13 +412,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
397
412
|
modelValue: attr.value,
|
|
398
413
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => attr.value = o),
|
|
399
414
|
maxlength: props.maxLength ? props.maxLength : "100",
|
|
415
|
+
disabled: t.disabled,
|
|
400
416
|
resize: "none",
|
|
401
417
|
"show-word-limit": "",
|
|
402
418
|
type: "textarea",
|
|
403
419
|
placeholder: "",
|
|
404
420
|
onInput: changeProps,
|
|
405
421
|
style: normalizeStyle(props.style1 ? props.style1 : "width:100%")
|
|
406
|
-
}, null, 8, ["modelValue", "maxlength", "style"])
|
|
422
|
+
}, null, 8, ["modelValue", "maxlength", "disabled", "style"])
|
|
407
423
|
]));
|
|
408
424
|
}
|
|
409
425
|
}), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -411,11 +427,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
411
427
|
__name: "Form",
|
|
412
428
|
props: {
|
|
413
429
|
form: {},
|
|
414
|
-
item: {}
|
|
430
|
+
item: {},
|
|
431
|
+
disabled: {}
|
|
415
432
|
},
|
|
416
433
|
emits: ["changeFormValue"],
|
|
417
434
|
setup(t, { expose: e, emit: o }) {
|
|
418
|
-
const n = ref(),
|
|
435
|
+
const n = ref(), c = async () => {
|
|
419
436
|
let a = ref(!0);
|
|
420
437
|
if (n.value)
|
|
421
438
|
return await n.value.validate((i) => {
|
|
@@ -423,27 +440,27 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
423
440
|
}), a.value;
|
|
424
441
|
}, f = o, s = t;
|
|
425
442
|
computed(() => s), watch(() => s.form, () => {
|
|
426
|
-
|
|
443
|
+
m = s.form;
|
|
427
444
|
}), ref(""), ref("");
|
|
428
445
|
let h = {
|
|
429
446
|
get: function(a, i, r) {
|
|
430
447
|
if (i !== "__v_isRef")
|
|
431
448
|
return a[i];
|
|
432
449
|
},
|
|
433
|
-
set: function(a, i, r,
|
|
450
|
+
set: function(a, i, r, u) {
|
|
434
451
|
return a[i] = r, !0;
|
|
435
452
|
}
|
|
436
453
|
};
|
|
437
|
-
var
|
|
454
|
+
var m = new Proxy(s.form, h);
|
|
438
455
|
const p = (a, i) => {
|
|
439
|
-
|
|
440
|
-
},
|
|
456
|
+
m.data[a] = i, f("changeFormValue", a, i);
|
|
457
|
+
}, d = (a, i) => {
|
|
441
458
|
if (i)
|
|
442
|
-
for (let r = 0; r <
|
|
443
|
-
|
|
459
|
+
for (let r = 0; r < m.items.length; r++)
|
|
460
|
+
m.items[r].code === a && (m.items[r].items = i);
|
|
444
461
|
};
|
|
445
462
|
return e({
|
|
446
|
-
valid:
|
|
463
|
+
valid: c
|
|
447
464
|
}), onMounted(() => {
|
|
448
465
|
}), (a, i) => (openBlock(), createElementBlock("div", null, [
|
|
449
466
|
createVNode(unref(ElForm), {
|
|
@@ -454,7 +471,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
454
471
|
ref: n
|
|
455
472
|
}, {
|
|
456
473
|
default: withCtx(() => [
|
|
457
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.form.items, (r,
|
|
474
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.form.items, (r, u) => (openBlock(), createElementBlock(Fragment, { key: u }, [
|
|
458
475
|
r.type === "text" ? (openBlock(), createBlock(unref(ElCol), {
|
|
459
476
|
key: 0,
|
|
460
477
|
span: 8
|
|
@@ -468,13 +485,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
468
485
|
}, {
|
|
469
486
|
default: withCtx(() => [
|
|
470
487
|
createVNode(_sfc_main$5, {
|
|
488
|
+
disabled: a.disabled,
|
|
471
489
|
valueText: a.form.data[r.code],
|
|
472
490
|
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
473
491
|
form: s.form,
|
|
474
492
|
item: r,
|
|
475
493
|
onChangeFormValue: p,
|
|
476
|
-
onChangeFormItems:
|
|
477
|
-
}, null, 8, ["valueText", "onUpdate:valueText", "form", "item"])
|
|
494
|
+
onChangeFormItems: d
|
|
495
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "form", "item"])
|
|
478
496
|
]),
|
|
479
497
|
_: 2
|
|
480
498
|
}, 1032, ["label", "prop", "rules"])
|
|
@@ -496,6 +514,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
496
514
|
}, {
|
|
497
515
|
default: withCtx(() => [
|
|
498
516
|
createVNode(_sfc_main$1, {
|
|
517
|
+
disabled: a.disabled,
|
|
499
518
|
valueText: a.form.data[r.code],
|
|
500
519
|
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
501
520
|
form: s.form,
|
|
@@ -503,7 +522,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
503
522
|
onChangeFormValue: p,
|
|
504
523
|
style: { width: "100%" },
|
|
505
524
|
style1: r.style
|
|
506
|
-
}, null, 8, ["valueText", "onUpdate:valueText", "form", "item", "style1"])
|
|
525
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "form", "item", "style1"])
|
|
507
526
|
]),
|
|
508
527
|
_: 2
|
|
509
528
|
}, 1032, ["label", "prop", "rules"])
|
|
@@ -523,12 +542,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
523
542
|
}, {
|
|
524
543
|
default: withCtx(() => [
|
|
525
544
|
createVNode(_sfc_main$8, {
|
|
545
|
+
disabled: a.disabled,
|
|
526
546
|
valueText: a.form.data[r.code],
|
|
527
547
|
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
528
548
|
item: r,
|
|
529
549
|
onChangeFormValue: p,
|
|
530
550
|
items: r.items
|
|
531
|
-
}, null, 8, ["valueText", "onUpdate:valueText", "item", "items"])
|
|
551
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items"])
|
|
532
552
|
]),
|
|
533
553
|
_: 2
|
|
534
554
|
}, 1032, ["label", "prop", "rules"])
|
|
@@ -548,11 +568,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
548
568
|
}, {
|
|
549
569
|
default: withCtx(() => [
|
|
550
570
|
createVNode(_sfc_main$6, {
|
|
571
|
+
disabled: a.disabled,
|
|
551
572
|
valueText: a.form.data[r.code],
|
|
552
573
|
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
553
574
|
item: r,
|
|
554
575
|
onChangeFormValue: p
|
|
555
|
-
}, null, 8, ["valueText", "onUpdate:valueText", "item"])
|
|
576
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item"])
|
|
556
577
|
]),
|
|
557
578
|
_: 2
|
|
558
579
|
}, 1032, ["label", "prop", "rules"])
|
|
@@ -572,11 +593,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
572
593
|
}, {
|
|
573
594
|
default: withCtx(() => [
|
|
574
595
|
createVNode(_sfc_main$4, {
|
|
596
|
+
disabled: a.disabled,
|
|
575
597
|
valueText: a.form.data[r.code],
|
|
576
598
|
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
577
599
|
item: r,
|
|
578
600
|
onChangeFormValue: p
|
|
579
|
-
}, null, 8, ["valueText", "onUpdate:valueText", "item"])
|
|
601
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item"])
|
|
580
602
|
]),
|
|
581
603
|
_: 2
|
|
582
604
|
}, 1032, ["label", "prop", "rules"])
|
|
@@ -596,12 +618,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
596
618
|
}, {
|
|
597
619
|
default: withCtx(() => [
|
|
598
620
|
createVNode(_sfc_main$3, {
|
|
621
|
+
disabled: a.disabled,
|
|
599
622
|
valueText: a.form.data[r.code],
|
|
600
623
|
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
601
624
|
item: r,
|
|
602
625
|
onChangeFormValue: p,
|
|
603
626
|
items: r.items
|
|
604
|
-
}, null, 8, ["valueText", "onUpdate:valueText", "item", "items"])
|
|
627
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items"])
|
|
605
628
|
]),
|
|
606
629
|
_: 2
|
|
607
630
|
}, 1032, ["label", "prop", "rules"])
|
|
@@ -621,14 +644,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
621
644
|
}, {
|
|
622
645
|
default: withCtx(() => [
|
|
623
646
|
createVNode(QsyxSelect, {
|
|
647
|
+
disabled: a.disabled,
|
|
624
648
|
valueText: a.form.data[r.code],
|
|
625
649
|
"onUpdate:valueText": (l) => a.form.data[r.code] = l,
|
|
626
650
|
item: r,
|
|
627
651
|
onChangeFormValue: p,
|
|
628
652
|
items: r.items,
|
|
629
653
|
style1: r.style,
|
|
630
|
-
onChangeFormItems:
|
|
631
|
-
}, null, 8, ["valueText", "onUpdate:valueText", "item", "items", "style1"])
|
|
654
|
+
onChangeFormItems: d
|
|
655
|
+
}, null, 8, ["disabled", "valueText", "onUpdate:valueText", "item", "items", "style1"])
|
|
632
656
|
]),
|
|
633
657
|
_: 2
|
|
634
658
|
}, 1032, ["label", "prop", "rules"])
|
|
@@ -641,7 +665,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
641
665
|
}, 8, ["model"])
|
|
642
666
|
]));
|
|
643
667
|
}
|
|
644
|
-
}), Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
668
|
+
}), Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f899e90d"]]), QsyxForm = withInstall(Form);
|
|
645
669
|
console.log("QsyxForm", QsyxForm);
|
|
646
670
|
export {
|
|
647
671
|
Form as F,
|
|
@@ -0,0 +1,128 @@
|
|
|
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";
|
|
5
|
+
const G = { style: { "text-align": "center" } }, H = /* @__PURE__ */ L({
|
|
6
|
+
name: "QsyxTable",
|
|
7
|
+
__name: "Table",
|
|
8
|
+
props: {
|
|
9
|
+
table: {}
|
|
10
|
+
},
|
|
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);
|
|
17
|
+
}, $ = (l, e) => {
|
|
18
|
+
p = p.splice(e, 1);
|
|
19
|
+
}, x = (l, e) => {
|
|
20
|
+
c.value = !1, m.value = e, i.value = !0;
|
|
21
|
+
}, z = (l, e) => {
|
|
22
|
+
m.value = e, c.value = !0, i.value = !0;
|
|
23
|
+
}, R = () => {
|
|
24
|
+
i.value = !1;
|
|
25
|
+
}, S = () => {
|
|
26
|
+
};
|
|
27
|
+
return D(() => {
|
|
28
|
+
V();
|
|
29
|
+
}), (l, e) => (u(), N("div", null, [
|
|
30
|
+
r(a(q), {
|
|
31
|
+
data: p,
|
|
32
|
+
style: { width: "100%" }
|
|
33
|
+
}, {
|
|
34
|
+
default: n(() => [
|
|
35
|
+
(u(!0), N(F, null, O(f, (t, s) => (u(), E(a(I), {
|
|
36
|
+
prop: t.prop,
|
|
37
|
+
label: t.label,
|
|
38
|
+
key: s
|
|
39
|
+
}, {
|
|
40
|
+
default: n(() => [
|
|
41
|
+
a(C)[t.prop] ? g(l.$slots, t.prop, {
|
|
42
|
+
key: 0,
|
|
43
|
+
index: l.$index,
|
|
44
|
+
row: l.row
|
|
45
|
+
}) : v("", !0)
|
|
46
|
+
]),
|
|
47
|
+
_: 2
|
|
48
|
+
}, 1032, ["prop", "label"]))), 128)),
|
|
49
|
+
r(a(I), { label: "操作" }, {
|
|
50
|
+
default: n(({ row: t, $index: s }) => [
|
|
51
|
+
a(C).opreate ? g(l.$slots, "opreate", {
|
|
52
|
+
key: 0,
|
|
53
|
+
index: s,
|
|
54
|
+
row: t
|
|
55
|
+
}) : v("", !0),
|
|
56
|
+
d("div", null, [
|
|
57
|
+
r(a(y), {
|
|
58
|
+
link: "",
|
|
59
|
+
type: "primary",
|
|
60
|
+
size: "small",
|
|
61
|
+
onClick: B((w) => z(t, s), ["prevent"])
|
|
62
|
+
}, {
|
|
63
|
+
default: n(() => e[2] || (e[2] = [
|
|
64
|
+
b(" 查看 ")
|
|
65
|
+
])),
|
|
66
|
+
_: 2
|
|
67
|
+
}, 1032, ["onClick"]),
|
|
68
|
+
r(a(y), {
|
|
69
|
+
link: "",
|
|
70
|
+
type: "primary",
|
|
71
|
+
size: "small",
|
|
72
|
+
onClick: B((w) => x(t, s), ["prevent"])
|
|
73
|
+
}, {
|
|
74
|
+
default: n(() => e[3] || (e[3] = [
|
|
75
|
+
b(" 编辑 ")
|
|
76
|
+
])),
|
|
77
|
+
_: 2
|
|
78
|
+
}, 1032, ["onClick"]),
|
|
79
|
+
r(a(y), {
|
|
80
|
+
link: "",
|
|
81
|
+
type: "primary",
|
|
82
|
+
size: "small",
|
|
83
|
+
onClick: (w) => $(t, s)
|
|
84
|
+
}, {
|
|
85
|
+
default: n(() => e[4] || (e[4] = [
|
|
86
|
+
b(" 删除 ")
|
|
87
|
+
])),
|
|
88
|
+
_: 2
|
|
89
|
+
}, 1032, ["onClick"])
|
|
90
|
+
])
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
})
|
|
94
|
+
]),
|
|
95
|
+
_: 3
|
|
96
|
+
}, 8, ["data"]),
|
|
97
|
+
i.value ? (u(), E(j, {
|
|
98
|
+
key: 0,
|
|
99
|
+
form: o.table,
|
|
100
|
+
activeIndex: m.value,
|
|
101
|
+
onOpen: S,
|
|
102
|
+
onClose: R,
|
|
103
|
+
disabled: c.value
|
|
104
|
+
}, {
|
|
105
|
+
header: n(() => e[5] || (e[5] = [
|
|
106
|
+
b(" 123 ")
|
|
107
|
+
])),
|
|
108
|
+
footer: n(() => [
|
|
109
|
+
d("div", G, [
|
|
110
|
+
d("button", {
|
|
111
|
+
onClick: e[0] || (e[0] = //@ts-ignore
|
|
112
|
+
(...t) => l.click111 && l.click111(...t))
|
|
113
|
+
}, "点击"),
|
|
114
|
+
d("button", {
|
|
115
|
+
onClick: e[1] || (e[1] = //@ts-ignore
|
|
116
|
+
(...t) => l.click111 && l.click111(...t))
|
|
117
|
+
}, "点击")
|
|
118
|
+
])
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}, 8, ["form", "activeIndex", "disabled"])) : v("", !0)
|
|
122
|
+
]));
|
|
123
|
+
}
|
|
124
|
+
}), J = A(H);
|
|
125
|
+
console.log("QsyxTable", J);
|
|
126
|
+
export {
|
|
127
|
+
J as Q
|
|
128
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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
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-
|
|
3
|
+
import { _ as ie } from "./Form-BB4u_L5j.js";
|
|
4
4
|
import { w as fe } from "./utils-BFYGwXom.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as m } from "./vendor-DfydgTBg.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-
|
|
3
|
+
import { _ as c } from "./Form-BB4u_L5j.js";
|
|
4
4
|
import { w as V } from "./utils-BFYGwXom.js";
|
|
5
5
|
const C = {
|
|
6
6
|
props: {
|
|
@@ -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
2
|
import { J as U, P as S, s as C, F as E, u as B, I, v as _ } from "./vendor-DfydgTBg.js";
|
|
3
3
|
import { w as V } from "./utils-BFYGwXom.js";
|
|
4
|
-
import { _ as k } from "./Form-
|
|
4
|
+
import { _ as k } from "./Form-BB4u_L5j.js";
|
|
5
5
|
const N = /* @__PURE__ */ A({
|
|
6
6
|
name: "QsyxExportWord",
|
|
7
7
|
__name: "index",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { w as t } from "./vendor-DfydgTBg.js";
|
|
2
2
|
import { openBlock as i, createElementBlock as r, createElementVNode as n } from "vue";
|
|
3
|
-
import { _ as c } from "./Form-
|
|
3
|
+
import { _ as c } from "./Form-BB4u_L5j.js";
|
|
4
4
|
import { w as m } from "./utils-BFYGwXom.js";
|
|
5
5
|
const e = t.createWorker({
|
|
6
6
|
// logger: m => console.log(m),
|
package/dist/es/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { w as s, m as o } from "./utils-BFYGwXom.js";
|
|
2
2
|
import { Q as a } from "./Button-DwFNqnO-.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-
|
|
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-
|
|
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-BB4u_L5j.js";
|
|
4
|
+
import { Q as y } from "./Dialog-B0OvoS7J.js";
|
|
5
|
+
import { Q as f } from "./Table-B0cHfaB7.js";
|
|
6
|
+
import { Q as p } from "./wordSee-Bg6XeDsu.js";
|
|
7
|
+
import { Q as l } from "./excelSee-Blf1y7aY.js";
|
|
8
|
+
import { Q as _ } from "./pdfSee-Bt2kUOLa.js";
|
|
9
|
+
import { Q as E, a as I, b as d } from "./exportWord-BwEj0S5C.js";
|
|
10
10
|
import { Q as $ } from "./insertExcel-ALGkzeug.js";
|
|
11
|
-
import { Q as g } from "./exportExcel-
|
|
12
|
-
import { Q as h } from "./imToText-
|
|
13
|
-
import { Q as u } from "./onlineExcel-
|
|
11
|
+
import { Q as g } from "./exportExcel-BUK4KuLT.js";
|
|
12
|
+
import { Q as h } from "./imToText-BY0usGWJ.js";
|
|
13
|
+
import { Q as u } from "./onlineExcel-BW8Ry3sO.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 { ref as y, onMounted as S, openBlock as g, createElementBlock as b, Fragment as k, createElementVNode as m, withDirectives as w, renderList as T, toDisplayString as j, vModelSelect as A, vShow as _ } from "vue";
|
|
2
2
|
import { z as B, A as L, L as D } from "./vendor-DfydgTBg.js";
|
|
3
|
-
import { _ as O } from "./Form-
|
|
3
|
+
import { _ as O } from "./Form-BB4u_L5j.js";
|
|
4
4
|
import { w as M } from "./utils-BFYGwXom.js";
|
|
5
5
|
const F = function(t, s) {
|
|
6
6
|
const r = new B.Workbook();
|