qsyx-element 1.0.5 → 1.0.7
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-DmW_iZC6.js} +1 -1
- package/dist/es/{Dialog-D8tifW8O.js → Dialog-ZZtO_Ywj.js} +3 -3
- package/dist/es/{Form-cp3JXJsw.js → Form-DeGrxsM6.js} +2 -2
- package/dist/es/{Table-DqhQei0W.js → Table-up7Zads8.js} +3 -3
- package/dist/es/{excelSee-Ps2OG3KF.js → excelSee-DWZuph7I.js} +3 -3
- package/dist/es/{exportExcel-DU2azJp7.js → exportExcel-CXlHQJZp.js} +3 -3
- package/dist/es/{exportWord-C03NUEEo.js → exportWord-gEiKLbsI.js} +3 -3
- package/dist/es/{imToText-CNncGBqc.js → imToText-CLR2ttdy.js} +3 -3
- package/dist/es/index.js +13 -13
- package/dist/es/{insertExcel-ALGkzeug.js → insertExcel-Ce9yZjSt.js} +2 -2
- package/dist/es/{onlineExcel-C-8cWebG.js → onlineExcel-43otfZBC.js} +51 -51
- package/dist/es/{pdfSee-COBbevdQ.js → pdfSee-C_13JnJC.js} +4 -4
- package/dist/es/{utils-BFYGwXom.js → utils-CKYznC6J.js} +1 -1
- package/dist/es/{vendor-DfydgTBg.js → vendor-BME7_RZe.js} +11943 -11940
- package/dist/es/{wordSee-5b4i09aw.js → wordSee-BH4VL05F.js} +3 -3
- package/dist/index.css +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +5 -5
- package/package.json +1 -1
- package/dist/es/dist/LICENSE +0 -201
- package/dist/es/dist/cpexcel.full.mjs +0 -1502
- package/dist/es/dist/shim.min.js +0 -2
- package/dist/es/dist/xlsx.core.min.js +0 -15
- package/dist/es/dist/xlsx.core.min.map +0 -1
- package/dist/es/dist/xlsx.extendscript.js +0 -24642
- package/dist/es/dist/xlsx.full.min.js +0 -22
- package/dist/es/dist/xlsx.full.min.map +0 -1
- package/dist/es/dist/xlsx.mini.min.js +0 -9
- package/dist/es/dist/xlsx.mini.min.map +0 -1
- package/dist/es/dist/xlsx.zahl.js +0 -4
- package/dist/es/dist/xlsx.zahl.mjs +0 -2
|
@@ -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-CKYznC6J.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 h, withCtx as t, renderSlot as n } from "vue";
|
|
2
|
-
import { F as w } from "./Form-
|
|
3
|
-
import { E as y } from "./vendor-
|
|
4
|
-
import { w as b } from "./utils-
|
|
2
|
+
import { F as w } from "./Form-DeGrxsM6.js";
|
|
3
|
+
import { E as y } from "./vendor-BME7_RZe.js";
|
|
4
|
+
import { w as b } from "./utils-CKYznC6J.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-
|
|
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 ElCol, k as ElFormItem } from "./vendor-BME7_RZe.js";
|
|
3
|
+
import { w as withInstall } from "./utils-CKYznC6J.js";
|
|
4
4
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
5
5
|
name: "QsyxCheckBox",
|
|
6
6
|
__name: "index",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as z, ref as R, useSlots as S, reactive as C, onMounted as D, openBlock as i, createElementBlock as w, createVNode as s, unref as n, withCtx as a, Fragment as L, renderList as M, createBlock as T, renderSlot as g, createCommentVNode as f, createElementVNode as p, withModifiers as k, createTextVNode as u } from "vue";
|
|
2
|
-
import { _ as F } from "./Dialog-
|
|
3
|
-
import { l as I, m as E, n as c } from "./vendor-
|
|
4
|
-
import { w as O } from "./utils-
|
|
2
|
+
import { _ as F } from "./Dialog-ZZtO_Ywj.js";
|
|
3
|
+
import { l as I, m as E, n as c } from "./vendor-BME7_RZe.js";
|
|
4
|
+
import { w as O } from "./utils-CKYznC6J.js";
|
|
5
5
|
const j = { style: { "text-align": "center" } }, q = /* @__PURE__ */ z({
|
|
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 { o as ne, _ as ae, p, q as G, t as le, S as se } from "./vendor-
|
|
3
|
-
import { _ as ie } from "./Form-
|
|
4
|
-
import { w as fe } from "./utils-
|
|
2
|
+
import { o as ne, _ as ae, p, q as G, t as le, S as se } from "./vendor-BME7_RZe.js";
|
|
3
|
+
import { _ as ie } from "./Form-DeGrxsM6.js";
|
|
4
|
+
import { w as fe } from "./utils-CKYznC6J.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-
|
|
1
|
+
import { r as m } from "./vendor-BME7_RZe.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-DeGrxsM6.js";
|
|
4
|
+
import { w as V } from "./utils-CKYznC6J.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, s as C, F as E, u as B, I, v as _ } from "./vendor-
|
|
3
|
-
import { w as V } from "./utils-
|
|
4
|
-
import { _ as k } from "./Form-
|
|
2
|
+
import { J as U, P as S, s as C, F as E, u as B, I, v as _ } from "./vendor-BME7_RZe.js";
|
|
3
|
+
import { w as V } from "./utils-CKYznC6J.js";
|
|
4
|
+
import { _ as k } from "./Form-DeGrxsM6.js";
|
|
5
5
|
const N = /* @__PURE__ */ A({
|
|
6
6
|
name: "QsyxExportWord",
|
|
7
7
|
__name: "index",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { w as t } from "./vendor-
|
|
1
|
+
import { w as t } from "./vendor-BME7_RZe.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-DeGrxsM6.js";
|
|
4
|
+
import { w as m } from "./utils-CKYznC6J.js";
|
|
5
5
|
const e = t.createWorker({
|
|
6
6
|
// logger: m => console.log(m),
|
|
7
7
|
}), g = {
|
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-CKYznC6J.js";
|
|
2
|
+
import { Q as a } from "./Button-DmW_iZC6.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-DeGrxsM6.js";
|
|
4
|
+
import { Q as y } from "./Dialog-ZZtO_Ywj.js";
|
|
5
|
+
import { Q as f } from "./Table-up7Zads8.js";
|
|
6
|
+
import { Q as p } from "./wordSee-BH4VL05F.js";
|
|
7
|
+
import { Q as l } from "./excelSee-DWZuph7I.js";
|
|
8
|
+
import { Q as _ } from "./pdfSee-C_13JnJC.js";
|
|
9
|
+
import { Q as E, a as I, b as d } from "./exportWord-gEiKLbsI.js";
|
|
10
|
+
import { Q as $ } from "./insertExcel-Ce9yZjSt.js";
|
|
11
|
+
import { Q as g } from "./exportExcel-CXlHQJZp.js";
|
|
12
|
+
import { Q as h } from "./imToText-CLR2ttdy.js";
|
|
13
|
+
import { Q as u } from "./onlineExcel-43otfZBC.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 { x as c_, n as o_, y as l_, l as u_, m as h_ } from "./vendor-
|
|
3
|
-
import { w as x_ } from "./utils-
|
|
2
|
+
import { x as c_, n as o_, y as l_, l as u_, m as h_ } from "./vendor-BME7_RZe.js";
|
|
3
|
+
import { w as x_ } from "./utils-CKYznC6J.js";
|
|
4
4
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
5
5
|
var Mt = {};
|
|
6
6
|
function Y0($e) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as y, onMounted as S, openBlock as g, createElementBlock as b, Fragment as k, createElementVNode as
|
|
2
|
-
import { z as
|
|
3
|
-
import { _ as O } from "./Form-
|
|
4
|
-
import { w as M } from "./utils-
|
|
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
|
+
import { z as B, A as L, L as D } from "./vendor-BME7_RZe.js";
|
|
3
|
+
import { _ as O } from "./Form-DeGrxsM6.js";
|
|
4
|
+
import { w as M } from "./utils-CKYznC6J.js";
|
|
5
5
|
const F = function(t, s) {
|
|
6
|
-
const r = new
|
|
6
|
+
const r = new B.Workbook();
|
|
7
7
|
return Object.prototype.toString.call(t) === "[object Object]" && (t = [t]), t.forEach(function(e) {
|
|
8
8
|
if (e.data.length === 0)
|
|
9
9
|
return !0;
|
|
10
10
|
const n = r.addWorksheet(e.name), c = e.config && e.config.merge || {}, a = e.config && e.config.borderInfo || {};
|
|
11
|
-
return
|
|
11
|
+
return N(e.data, n), I(c, n), z(a, n), !0;
|
|
12
12
|
}), r.xlsx.writeBuffer().then((e) => {
|
|
13
13
|
const n = new Blob([e], {
|
|
14
14
|
type: "application/vnd.ms-excel;charset=utf-8"
|
|
15
15
|
});
|
|
16
|
-
console.log("导出成功!"),
|
|
16
|
+
console.log("导出成功!"), L.saveAs(n, `${s}.xlsx`);
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
-
var
|
|
19
|
+
var I = function(t = {}, s) {
|
|
20
20
|
Object.values(t).forEach(function(o) {
|
|
21
21
|
s.mergeCells(
|
|
22
22
|
o.r + 1,
|
|
@@ -25,10 +25,10 @@ var R = function(t = {}, s) {
|
|
|
25
25
|
o.c + o.cs
|
|
26
26
|
);
|
|
27
27
|
});
|
|
28
|
-
},
|
|
28
|
+
}, z = function(t, s) {
|
|
29
29
|
Array.isArray(t) && t.forEach(function(r) {
|
|
30
30
|
if (r.rangeType === "range") {
|
|
31
|
-
let o =
|
|
31
|
+
let o = P(r.borderType, r.style, r.color), e = r.range[0], n = e.row, c = e.column;
|
|
32
32
|
for (let a = n[0] + 1; a < n[1] + 2; a++)
|
|
33
33
|
for (let h = c[0] + 1; h < c[1] + 2; h++)
|
|
34
34
|
s.getCell(a, h).border = o;
|
|
@@ -36,16 +36,16 @@ var R = function(t = {}, s) {
|
|
|
36
36
|
if (r.rangeType === "cell") {
|
|
37
37
|
const { col_index: o, row_index: e } = r.value, n = Object.assign({}, r.value);
|
|
38
38
|
delete n.col_index, delete n.row_index;
|
|
39
|
-
let c =
|
|
39
|
+
let c = Q(n);
|
|
40
40
|
s.getCell(e + 1, o + 1).border = c;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
},
|
|
43
|
+
}, N = function(t, s) {
|
|
44
44
|
Array.isArray(t) && t.forEach(function(r, o) {
|
|
45
45
|
r.every(function(e, n) {
|
|
46
46
|
if (!e)
|
|
47
47
|
return !0;
|
|
48
|
-
let c =
|
|
48
|
+
let c = R(e.bg), a = V(
|
|
49
49
|
e.ff,
|
|
50
50
|
e.fc,
|
|
51
51
|
e.bl,
|
|
@@ -53,25 +53,25 @@ var R = function(t = {}, s) {
|
|
|
53
53
|
e.fs,
|
|
54
54
|
e.cl,
|
|
55
55
|
e.ul
|
|
56
|
-
), h =
|
|
57
|
-
e.f ?
|
|
58
|
-
|
|
59
|
-
}) :
|
|
60
|
-
let x =
|
|
56
|
+
), h = H(e.vt, e.ht, e.tb, e.tr), p = "";
|
|
57
|
+
e.f ? p = { formula: e.f, result: e.v } : !e.v && e.ct && e.ct.s ? e.ct.s.forEach((l) => {
|
|
58
|
+
p += l.v;
|
|
59
|
+
}) : p = e.v;
|
|
60
|
+
let x = Z(n), u = s.getCell(x + (o + 1));
|
|
61
61
|
for (const l in c) {
|
|
62
62
|
u.fill = c;
|
|
63
63
|
break;
|
|
64
64
|
}
|
|
65
|
-
return u.font = a, u.alignment = h, u.value =
|
|
65
|
+
return u.font = a, u.alignment = h, u.value = p, !0;
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
},
|
|
68
|
+
}, R = function(t) {
|
|
69
69
|
return t ? {
|
|
70
70
|
type: "pattern",
|
|
71
71
|
pattern: "solid",
|
|
72
72
|
fgColor: { argb: t.replace("#", "") }
|
|
73
73
|
} : {};
|
|
74
|
-
},
|
|
74
|
+
}, V = function(t = 0, s = "#000000", r = 0, o = 0, e = 10, n = 0, c = 0) {
|
|
75
75
|
const a = {
|
|
76
76
|
0: "微软雅黑",
|
|
77
77
|
1: "宋体(Song)",
|
|
@@ -86,8 +86,8 @@ var R = function(t = {}, s) {
|
|
|
86
86
|
10: "Times New Roman ",
|
|
87
87
|
11: "Tahoma ",
|
|
88
88
|
12: "Verdana",
|
|
89
|
-
num2bl: function(
|
|
90
|
-
return
|
|
89
|
+
num2bl: function(p) {
|
|
90
|
+
return p !== 0;
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
return {
|
|
@@ -100,7 +100,7 @@ var R = function(t = {}, s) {
|
|
|
100
100
|
underline: a.num2bl(c),
|
|
101
101
|
strike: a.num2bl(n)
|
|
102
102
|
};
|
|
103
|
-
},
|
|
103
|
+
}, H = function(t = "default", s = "default", r = "default", o = "default") {
|
|
104
104
|
const e = {
|
|
105
105
|
vertical: {
|
|
106
106
|
0: "middle",
|
|
@@ -136,7 +136,7 @@ var R = function(t = {}, s) {
|
|
|
136
136
|
wrapText: e.wrapText[r],
|
|
137
137
|
textRotation: e.textRotation[o]
|
|
138
138
|
};
|
|
139
|
-
},
|
|
139
|
+
}, P = function(t, s = 1, r = "#000") {
|
|
140
140
|
if (!t)
|
|
141
141
|
return {};
|
|
142
142
|
const o = {
|
|
@@ -171,7 +171,7 @@ var R = function(t = {}, s) {
|
|
|
171
171
|
}, n = {};
|
|
172
172
|
return o.type[t] === "all" ? (n.top = e, n.right = e, n.bottom = e, n.left = e) : n[o.type[t]] = e, n;
|
|
173
173
|
};
|
|
174
|
-
function
|
|
174
|
+
function Q(t, s, r) {
|
|
175
175
|
let o = {};
|
|
176
176
|
const e = {
|
|
177
177
|
type: {
|
|
@@ -208,17 +208,17 @@ function P(t, s, r) {
|
|
|
208
208
|
};
|
|
209
209
|
return o;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Z(t) {
|
|
212
212
|
let s = 65, o = 90 - s + 1, e = "";
|
|
213
213
|
for (; t >= 0; )
|
|
214
214
|
e = String.fromCharCode(t % o + s) + e, t = Math.floor(t / o) - 1;
|
|
215
215
|
return e;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function U(t) {
|
|
218
218
|
return Object.prototype.toString.call(t).slice(8, -1);
|
|
219
219
|
}
|
|
220
220
|
function C(t) {
|
|
221
|
-
return
|
|
221
|
+
return U(t) === "Function";
|
|
222
222
|
}
|
|
223
223
|
const W = { style: { position: "absolute", top: "0" } }, K = ["value"], $ = { id: "tip" }, q = /* @__PURE__ */ Object.assign({
|
|
224
224
|
name: "QsyxOnlineExcel"
|
|
@@ -261,13 +261,13 @@ const W = { style: { position: "absolute", top: "0" } }, K = ["value"], $ = { id
|
|
|
261
261
|
value: "https://minio.cnbabylon.com/public/luckysheet/Blue%20mileage%20and%20expense%20report.xlsx"
|
|
262
262
|
}
|
|
263
263
|
]), n = [
|
|
264
|
-
"
|
|
265
|
-
"
|
|
264
|
+
"https://cdn.jsdelivr.net/npm/luckysheet/dist/plugins/js/plugin.js",
|
|
265
|
+
"https://cdn.jsdelivr.net/npm/luckysheet/dist/luckysheet.umd.js"
|
|
266
266
|
], c = [
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
"
|
|
270
|
-
"
|
|
267
|
+
"https://cdn.jsdelivr.net/npm/luckysheet/dist/plugins/css/pluginsCss.css",
|
|
268
|
+
"https://cdn.jsdelivr.net/npm/luckysheet/dist/plugins/plugins.css",
|
|
269
|
+
"https://cdn.jsdelivr.net/npm/luckysheet/dist/css/luckysheet.css",
|
|
270
|
+
"https://cdn.jsdelivr.net/npm/luckysheet/dist/assets/iconfont/iconfont.css"
|
|
271
271
|
], a = (u) => {
|
|
272
272
|
const l = u.target.files;
|
|
273
273
|
if (l == null || l.length == 0) {
|
|
@@ -311,20 +311,20 @@ const W = { style: { position: "absolute", top: "0" } }, K = ["value"], $ = { id
|
|
|
311
311
|
userInfo: d.info.name.creator
|
|
312
312
|
});
|
|
313
313
|
}));
|
|
314
|
-
},
|
|
314
|
+
}, p = () => {
|
|
315
315
|
F(luckysheet.getAllSheets(), "下载");
|
|
316
316
|
}, x = y(0);
|
|
317
317
|
return S(() => {
|
|
318
318
|
if (typeof window.ThirdPartyLib > "u") {
|
|
319
319
|
for (let l = 0; l < c.length; l++) {
|
|
320
320
|
const i = document.createElement("link");
|
|
321
|
-
i.setAttribute("rel", "stylesheet"), i.setAttribute("type", "text/css"), i.setAttribute("href",
|
|
321
|
+
i.setAttribute("rel", "stylesheet"), i.setAttribute("type", "text/css"), i.setAttribute("href", c[l]);
|
|
322
322
|
var u = document.getElementsByTagName("head");
|
|
323
323
|
u.length ? u[0].appendChild(i) : document.documentElement.appendChild(i);
|
|
324
324
|
}
|
|
325
325
|
for (let l = 0; l < n.length; l++) {
|
|
326
326
|
const i = document.createElement("script");
|
|
327
|
-
console.log(
|
|
327
|
+
console.log(n[l]), i.src = n[l], i.onload = () => {
|
|
328
328
|
x.value++, console.log("Third Party Library loaded!"), x.value >= 1 && luckysheet.create({
|
|
329
329
|
container: "luckysheet"
|
|
330
330
|
});
|
|
@@ -332,40 +332,40 @@ const W = { style: { position: "absolute", top: "0" } }, K = ["value"], $ = { id
|
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
}), (u, l) => (g(), b(k, null, [
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
m("div", W, [
|
|
336
|
+
m("input", {
|
|
337
337
|
id: "uploadBtn",
|
|
338
338
|
type: "file",
|
|
339
339
|
onChange: a
|
|
340
340
|
}, null, 32),
|
|
341
|
-
l[2] || (l[2] =
|
|
342
|
-
w(
|
|
341
|
+
l[2] || (l[2] = m("span", null, "Or Load remote xlsx file:", -1)),
|
|
342
|
+
w(m("select", {
|
|
343
343
|
"onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
|
|
344
344
|
onChange: h
|
|
345
345
|
}, [
|
|
346
|
-
l[1] || (l[1] =
|
|
346
|
+
l[1] || (l[1] = m("option", {
|
|
347
347
|
disabled: "",
|
|
348
348
|
value: ""
|
|
349
349
|
}, "Choose", -1)),
|
|
350
350
|
(g(!0), b(k, null, T(e.value, (i) => (g(), b("option", {
|
|
351
351
|
key: i.text,
|
|
352
352
|
value: i.value
|
|
353
|
-
},
|
|
353
|
+
}, j(i.text), 9, K))), 128))
|
|
354
354
|
], 544), [
|
|
355
|
-
[
|
|
355
|
+
[A, r.value]
|
|
356
356
|
]),
|
|
357
|
-
|
|
357
|
+
m("a", {
|
|
358
358
|
href: "javascript:void(0)",
|
|
359
|
-
onClick:
|
|
359
|
+
onClick: p
|
|
360
360
|
}, "Download source xlsx file")
|
|
361
361
|
]),
|
|
362
|
-
l[3] || (l[3] =
|
|
363
|
-
w(
|
|
364
|
-
[
|
|
362
|
+
l[3] || (l[3] = m("div", { id: "luckysheet" }, null, -1)),
|
|
363
|
+
w(m("div", $, "Downloading", 512), [
|
|
364
|
+
[_, s.value]
|
|
365
365
|
])
|
|
366
366
|
], 64));
|
|
367
367
|
}
|
|
368
|
-
}), G = /* @__PURE__ */ O(q, [["__scopeId", "data-v-
|
|
368
|
+
}), G = /* @__PURE__ */ O(q, [["__scopeId", "data-v-b4f90095"]]), ne = M(G);
|
|
369
369
|
export {
|
|
370
370
|
ne as Q
|
|
371
371
|
};
|