qsyx-element 1.0.1
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-OBW9FK8V.js +13 -0
- package/dist/es/Dialog-lE9CYwyT.js +67 -0
- package/dist/es/Form-GllMGZ5L.js +658 -0
- package/dist/es/Table-BrzOxcFz.js +122 -0
- package/dist/es/cdn/iconfont.css +457 -0
- package/dist/es/cdn/luckysheet.css +1 -0
- package/dist/es/cdn/luckysheet.umd.js +27 -0
- package/dist/es/cdn/plugin.js +1 -0
- package/dist/es/cdn/plugins.css +10 -0
- package/dist/es/cdn/pluginsCss.css +1 -0
- package/dist/es/excelSee-DNbR9hdn.js +346 -0
- package/dist/es/exportExcel-rMHaYDUw.js +326 -0
- package/dist/es/exportWord-zS-yn0r2.js +615 -0
- package/dist/es/imToText-nJqaYhI_.js +38 -0
- package/dist/es/index.js +39 -0
- package/dist/es/insertExcel-BYsef8on.js +23155 -0
- package/dist/es/onlineExcel-DJeuDI97.js +371 -0
- package/dist/es/pdfSee-BJvVkNxS.js +113 -0
- package/dist/es/utils-DsWIZ76j.js +14 -0
- package/dist/es/vendor-P2JMGdqH.js +157444 -0
- package/dist/es/wordSee-oMFtPj-S.js +73 -0
- package/dist/index.css +1 -0
- package/dist/types/components/Button/Button.vue.d.ts +2 -0
- package/dist/types/components/Button/index.d.ts +13 -0
- package/dist/types/components/Dialog/Dialog.vue.d.ts +35 -0
- package/dist/types/components/Dialog/index.d.ts +60 -0
- package/dist/types/components/Form/Form.vue.d.ts +34 -0
- package/dist/types/components/Table/Table.vue.d.ts +30 -0
- package/dist/types/components/Table/index.d.ts +43 -0
- package/dist/types/components/excelSee/color.d.ts +2 -0
- package/dist/types/components/excelSee/excel.d.ts +7 -0
- package/dist/types/components/excelSee/hack.d.ts +1 -0
- package/dist/types/components/excelSee/index.d.ts +1 -0
- package/dist/types/components/excelSee/media.d.ts +2 -0
- package/dist/types/components/exportExcel/index.d.ts +53 -0
- package/dist/types/components/exportExcel/index.vue.d.ts +22 -0
- package/dist/types/components/exportWord/index.d.ts +86 -0
- package/dist/types/components/exportWord/index.vue.d.ts +37 -0
- package/dist/types/components/exportWordEcharts/index.d.ts +1 -0
- package/dist/types/components/exportWordImage/index.d.ts +1 -0
- package/dist/types/components/foundationComponents/qsyxCheckBox/index.d.ts +83 -0
- package/dist/types/components/foundationComponents/qsyxCheckBox/index.vue.d.ts +25 -0
- package/dist/types/components/foundationComponents/qsyxDate/index.d.ts +67 -0
- package/dist/types/components/foundationComponents/qsyxDate/index.vue.d.ts +23 -0
- package/dist/types/components/foundationComponents/qsyxDateInterval/index.d.ts +67 -0
- package/dist/types/components/foundationComponents/qsyxDateInterval/index.vue.d.ts +23 -0
- package/dist/types/components/foundationComponents/qsyxInput/index.d.ts +83 -0
- package/dist/types/components/foundationComponents/qsyxInput/index.vue.d.ts +25 -0
- package/dist/types/components/foundationComponents/qsyxInputMoney/index.d.ts +67 -0
- package/dist/types/components/foundationComponents/qsyxInputMoney/index.vue.d.ts +23 -0
- package/dist/types/components/foundationComponents/qsyxRadio/index.d.ts +83 -0
- package/dist/types/components/foundationComponents/qsyxRadio/index.vue.d.ts +25 -0
- package/dist/types/components/foundationComponents/qsyxSelect/index.d.ts +99 -0
- package/dist/types/components/foundationComponents/qsyxSelect/index.vue.d.ts +27 -0
- package/dist/types/components/foundationComponents/qsyxTextArea/index.d.ts +83 -0
- package/dist/types/components/foundationComponents/qsyxTextArea/index.vue.d.ts +25 -0
- package/dist/types/components/imToText/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +22 -0
- package/dist/types/components/insertExcel/index.d.ts +39 -0
- package/dist/types/components/insertExcel/index.vue.d.ts +14 -0
- package/dist/types/components/onlineExcel/export.d.ts +2 -0
- package/dist/types/components/onlineExcel/index.d.ts +1 -0
- package/dist/types/components/onlineExcel/is.d.ts +2 -0
- package/dist/types/components/pdfSee/index.d.ts +1 -0
- package/dist/types/components/pdfSee/pdf.d.ts +1 -0
- package/dist/types/components/pdfSee/worker.d.ts +1 -0
- package/dist/types/components/utils/baseToFile.d.ts +6 -0
- package/dist/types/components/utils/debounceRef.d.ts +1 -0
- package/dist/types/components/utils/downloadFile.d.ts +2 -0
- package/dist/types/components/utils/exportWord.d.ts +14 -0
- package/dist/types/components/utils/htmlToPdf.d.ts +4 -0
- package/dist/types/components/utils/index.d.ts +0 -0
- package/dist/types/components/utils/showMsg.d.ts +2 -0
- package/dist/types/components/utils/test.d.ts +1 -0
- package/dist/types/components/utils/url.d.ts +2 -0
- package/dist/types/components/wordSee/docx.d.ts +7 -0
- package/dist/types/components/wordSee/index.d.ts +1 -0
- package/dist/types/core/index.d.ts +4 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/install.d.ts +6 -0
- package/dist/umd/index.css +1 -0
- package/dist/umd/index.umd.cjs +668 -0
- package/package.json +45 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { ref as y, onMounted as S, openBlock as g, createElementBlock as b, Fragment as k, createElementVNode as p, withDirectives as w, renderList as T, toDisplayString as A, vModelSelect as _, vShow as j } from "vue";
|
|
2
|
+
import { z as L, A as B, L as D } from "./vendor-P2JMGdqH.js";
|
|
3
|
+
import { _ as O } from "./Form-GllMGZ5L.js";
|
|
4
|
+
import { w as M } from "./utils-DsWIZ76j.js";
|
|
5
|
+
const F = function(t, s) {
|
|
6
|
+
const r = new L.Workbook();
|
|
7
|
+
return Object.prototype.toString.call(t) === "[object Object]" && (t = [t]), t.forEach(function(e) {
|
|
8
|
+
if (e.data.length === 0)
|
|
9
|
+
return !0;
|
|
10
|
+
const n = r.addWorksheet(e.name), c = e.config && e.config.merge || {}, a = e.config && e.config.borderInfo || {};
|
|
11
|
+
return z(e.data, n), R(c, n), I(a, n), !0;
|
|
12
|
+
}), r.xlsx.writeBuffer().then((e) => {
|
|
13
|
+
const n = new Blob([e], {
|
|
14
|
+
type: "application/vnd.ms-excel;charset=utf-8"
|
|
15
|
+
});
|
|
16
|
+
console.log("导出成功!"), B.saveAs(n, `${s}.xlsx`);
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var R = function(t = {}, s) {
|
|
20
|
+
Object.values(t).forEach(function(o) {
|
|
21
|
+
s.mergeCells(
|
|
22
|
+
o.r + 1,
|
|
23
|
+
o.c + 1,
|
|
24
|
+
o.r + o.rs,
|
|
25
|
+
o.c + o.cs
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
}, I = function(t, s) {
|
|
29
|
+
Array.isArray(t) && t.forEach(function(r) {
|
|
30
|
+
if (r.rangeType === "range") {
|
|
31
|
+
let o = H(r.borderType, r.style, r.color), e = r.range[0], n = e.row, c = e.column;
|
|
32
|
+
for (let a = n[0] + 1; a < n[1] + 2; a++)
|
|
33
|
+
for (let h = c[0] + 1; h < c[1] + 2; h++)
|
|
34
|
+
s.getCell(a, h).border = o;
|
|
35
|
+
}
|
|
36
|
+
if (r.rangeType === "cell") {
|
|
37
|
+
const { col_index: o, row_index: e } = r.value, n = Object.assign({}, r.value);
|
|
38
|
+
delete n.col_index, delete n.row_index;
|
|
39
|
+
let c = P(n);
|
|
40
|
+
s.getCell(e + 1, o + 1).border = c;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}, z = function(t, s) {
|
|
44
|
+
Array.isArray(t) && t.forEach(function(r, o) {
|
|
45
|
+
r.every(function(e, n) {
|
|
46
|
+
if (!e)
|
|
47
|
+
return !0;
|
|
48
|
+
let c = U(e.bg), a = N(
|
|
49
|
+
e.ff,
|
|
50
|
+
e.fc,
|
|
51
|
+
e.bl,
|
|
52
|
+
e.it,
|
|
53
|
+
e.fs,
|
|
54
|
+
e.cl,
|
|
55
|
+
e.ul
|
|
56
|
+
), h = V(e.vt, e.ht, e.tb, e.tr), m = "";
|
|
57
|
+
e.f ? m = { formula: e.f, result: e.v } : !e.v && e.ct && e.ct.s ? e.ct.s.forEach((l) => {
|
|
58
|
+
m += l.v;
|
|
59
|
+
}) : m = e.v;
|
|
60
|
+
let x = Q(n), u = s.getCell(x + (o + 1));
|
|
61
|
+
for (const l in c) {
|
|
62
|
+
u.fill = c;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
return u.font = a, u.alignment = h, u.value = m, !0;
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
}, U = function(t) {
|
|
69
|
+
return t ? {
|
|
70
|
+
type: "pattern",
|
|
71
|
+
pattern: "solid",
|
|
72
|
+
fgColor: { argb: t.replace("#", "") }
|
|
73
|
+
} : {};
|
|
74
|
+
}, N = function(t = 0, s = "#000000", r = 0, o = 0, e = 10, n = 0, c = 0) {
|
|
75
|
+
const a = {
|
|
76
|
+
0: "微软雅黑",
|
|
77
|
+
1: "宋体(Song)",
|
|
78
|
+
2: "黑体(ST Heiti)",
|
|
79
|
+
3: "楷体(ST Kaiti)",
|
|
80
|
+
4: "仿宋(ST FangSong)",
|
|
81
|
+
5: "新宋体(ST Song)",
|
|
82
|
+
6: "华文新魏",
|
|
83
|
+
7: "华文行楷",
|
|
84
|
+
8: "华文隶书",
|
|
85
|
+
9: "Arial",
|
|
86
|
+
10: "Times New Roman ",
|
|
87
|
+
11: "Tahoma ",
|
|
88
|
+
12: "Verdana",
|
|
89
|
+
num2bl: function(m) {
|
|
90
|
+
return m !== 0;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return {
|
|
94
|
+
name: typeof t == "number" ? a[t] : t,
|
|
95
|
+
family: 1,
|
|
96
|
+
size: e,
|
|
97
|
+
color: { argb: s.replace("#", "") },
|
|
98
|
+
bold: a.num2bl(r),
|
|
99
|
+
italic: a.num2bl(o),
|
|
100
|
+
underline: a.num2bl(c),
|
|
101
|
+
strike: a.num2bl(n)
|
|
102
|
+
};
|
|
103
|
+
}, V = function(t = "default", s = "default", r = "default", o = "default") {
|
|
104
|
+
const e = {
|
|
105
|
+
vertical: {
|
|
106
|
+
0: "middle",
|
|
107
|
+
1: "top",
|
|
108
|
+
2: "bottom",
|
|
109
|
+
default: "top"
|
|
110
|
+
},
|
|
111
|
+
horizontal: {
|
|
112
|
+
0: "center",
|
|
113
|
+
1: "left",
|
|
114
|
+
2: "right",
|
|
115
|
+
default: "left"
|
|
116
|
+
},
|
|
117
|
+
wrapText: {
|
|
118
|
+
0: !1,
|
|
119
|
+
1: !1,
|
|
120
|
+
2: !0,
|
|
121
|
+
default: !1
|
|
122
|
+
},
|
|
123
|
+
textRotation: {
|
|
124
|
+
0: 0,
|
|
125
|
+
1: 45,
|
|
126
|
+
2: -45,
|
|
127
|
+
3: "vertical",
|
|
128
|
+
4: 90,
|
|
129
|
+
5: -90,
|
|
130
|
+
default: 0
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
return {
|
|
134
|
+
vertical: e.vertical[t],
|
|
135
|
+
horizontal: e.horizontal[s],
|
|
136
|
+
wrapText: e.wrapText[r],
|
|
137
|
+
textRotation: e.textRotation[o]
|
|
138
|
+
};
|
|
139
|
+
}, H = function(t, s = 1, r = "#000") {
|
|
140
|
+
if (!t)
|
|
141
|
+
return {};
|
|
142
|
+
const o = {
|
|
143
|
+
type: {
|
|
144
|
+
"border-all": "all",
|
|
145
|
+
"border-top": "top",
|
|
146
|
+
"border-right": "right",
|
|
147
|
+
"border-bottom": "bottom",
|
|
148
|
+
"border-left": "left"
|
|
149
|
+
},
|
|
150
|
+
style: {
|
|
151
|
+
0: "none",
|
|
152
|
+
1: "thin",
|
|
153
|
+
2: "hair",
|
|
154
|
+
3: "dotted",
|
|
155
|
+
4: "dashDot",
|
|
156
|
+
// 'Dashed',
|
|
157
|
+
5: "dashDot",
|
|
158
|
+
6: "dashDotDot",
|
|
159
|
+
7: "double",
|
|
160
|
+
8: "medium",
|
|
161
|
+
9: "mediumDashed",
|
|
162
|
+
10: "mediumDashDot",
|
|
163
|
+
11: "mediumDashDotDot",
|
|
164
|
+
12: "slantDashDot",
|
|
165
|
+
13: "thick"
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
let e = {
|
|
169
|
+
style: o.style[s],
|
|
170
|
+
color: { argb: r.replace("#", "") }
|
|
171
|
+
}, n = {};
|
|
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
|
+
};
|
|
174
|
+
function P(t, s, r) {
|
|
175
|
+
let o = {};
|
|
176
|
+
const e = {
|
|
177
|
+
type: {
|
|
178
|
+
l: "left",
|
|
179
|
+
r: "right",
|
|
180
|
+
b: "bottom",
|
|
181
|
+
t: "top"
|
|
182
|
+
},
|
|
183
|
+
style: {
|
|
184
|
+
0: "none",
|
|
185
|
+
1: "thin",
|
|
186
|
+
2: "hair",
|
|
187
|
+
3: "dotted",
|
|
188
|
+
4: "dashDot",
|
|
189
|
+
// 'Dashed',
|
|
190
|
+
5: "dashDot",
|
|
191
|
+
6: "dashDotDot",
|
|
192
|
+
7: "double",
|
|
193
|
+
8: "medium",
|
|
194
|
+
9: "mediumDashed",
|
|
195
|
+
10: "mediumDashDot",
|
|
196
|
+
11: "mediumDashDotDot",
|
|
197
|
+
12: "slantDashDot",
|
|
198
|
+
13: "thick"
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
for (const n in t)
|
|
202
|
+
t[n].color.indexOf("rgb") === -1 ? o[e.type[n]] = {
|
|
203
|
+
style: e.style[t[n].style],
|
|
204
|
+
color: { argb: t[n].color.replace("#", "") }
|
|
205
|
+
} : o[e.type[n]] = {
|
|
206
|
+
style: e.style[t[n].style],
|
|
207
|
+
color: { argb: t[n].color }
|
|
208
|
+
};
|
|
209
|
+
return o;
|
|
210
|
+
}
|
|
211
|
+
function Q(t) {
|
|
212
|
+
let s = 65, o = 90 - s + 1, e = "";
|
|
213
|
+
for (; t >= 0; )
|
|
214
|
+
e = String.fromCharCode(t % o + s) + e, t = Math.floor(t / o) - 1;
|
|
215
|
+
return e;
|
|
216
|
+
}
|
|
217
|
+
function Z(t) {
|
|
218
|
+
return Object.prototype.toString.call(t).slice(8, -1);
|
|
219
|
+
}
|
|
220
|
+
function C(t) {
|
|
221
|
+
return Z(t) === "Function";
|
|
222
|
+
}
|
|
223
|
+
const W = { style: { position: "absolute", top: "0" } }, K = ["value"], $ = { id: "tip" }, q = /* @__PURE__ */ Object.assign({
|
|
224
|
+
name: "QsyxOnlineExcel"
|
|
225
|
+
}, {
|
|
226
|
+
__name: "index",
|
|
227
|
+
props: {
|
|
228
|
+
jsList: {
|
|
229
|
+
type: Array
|
|
230
|
+
},
|
|
231
|
+
cssList: {
|
|
232
|
+
type: Array
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
setup(t) {
|
|
236
|
+
const s = y(!1), r = y(""), o = y({}), e = y([
|
|
237
|
+
{ text: "Money Manager.xlsx", value: "https://minio.cnbabylon.com/public/luckysheet/money-manager-2.xlsx" },
|
|
238
|
+
{
|
|
239
|
+
text: "Activity costs tracker.xlsx",
|
|
240
|
+
value: "https://minio.cnbabylon.com/public/luckysheet/Activity%20costs%20tracker.xlsx"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
text: "House cleaning checklist.xlsx",
|
|
244
|
+
value: "https://minio.cnbabylon.com/public/luckysheet/House%20cleaning%20checklist.xlsx"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
text: "Student assignment planner.xlsx",
|
|
248
|
+
value: "https://minio.cnbabylon.com/public/luckysheet/Student%20assignment%20planner.xlsx"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
text: "Credit card tracker.xlsx",
|
|
252
|
+
value: "https://minio.cnbabylon.com/public/luckysheet/Credit%20card%20tracker.xlsx"
|
|
253
|
+
},
|
|
254
|
+
{ text: "Blue timesheet.xlsx", value: "https://minio.cnbabylon.com/public/luckysheet/Blue%20timesheet.xlsx" },
|
|
255
|
+
{
|
|
256
|
+
text: "Student calendar (Mon).xlsx",
|
|
257
|
+
value: "https://minio.cnbabylon.com/public/luckysheet/Student%20calendar%20%28Mon%29.xlsx"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
text: "Blue mileage and expense report.xlsx",
|
|
261
|
+
value: "https://minio.cnbabylon.com/public/luckysheet/Blue%20mileage%20and%20expense%20report.xlsx"
|
|
262
|
+
}
|
|
263
|
+
]), n = [
|
|
264
|
+
"./cdn/plugin.js",
|
|
265
|
+
"./cdn/luckysheet.umd.js"
|
|
266
|
+
], c = [
|
|
267
|
+
"./cdn/pluginsCss.css",
|
|
268
|
+
"./cdn/plugins.css",
|
|
269
|
+
"./cdn/luckysheet.css",
|
|
270
|
+
"./cdn/iconfont.css"
|
|
271
|
+
], a = (u) => {
|
|
272
|
+
const l = u.target.files;
|
|
273
|
+
if (l == null || l.length == 0) {
|
|
274
|
+
alert("No files wait for import");
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
let d = l[0].name.split(".");
|
|
278
|
+
if (d[d.length - 1] != "xlsx") {
|
|
279
|
+
alert("Currently only supports the import of xlsx files");
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
D.transformExcelToLucky(l[0], function(f, X) {
|
|
283
|
+
var v;
|
|
284
|
+
if (f.sheets == null || f.sheets.length == 0) {
|
|
285
|
+
alert("Failed to read the content of the excel file, currently does not support xls files!");
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
console.log("exportJson", f), o.value = f, C((v = window == null ? void 0 : window.luckysheet) == null ? void 0 : v.destroy) && window.luckysheet.destroy(), window.luckysheet.create({
|
|
289
|
+
container: "luckysheet",
|
|
290
|
+
//luckysheet is the container id
|
|
291
|
+
showinfobar: !1,
|
|
292
|
+
data: f.sheets,
|
|
293
|
+
title: f.info.name,
|
|
294
|
+
userInfo: f.info.name.creator
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
}, h = (u) => {
|
|
298
|
+
const l = r.value, i = u.target.options[u.target.selectedIndex].innerText;
|
|
299
|
+
l != "" && (s.value = !0, D.transformExcelToLuckyByUrl(l, i, (d, E) => {
|
|
300
|
+
var f;
|
|
301
|
+
if (d.sheets == null || d.sheets.length == 0) {
|
|
302
|
+
alert("Failed to read the content of the excel file, currently does not support xls files!");
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
console.log("exportJson", d), o.value = d, s.value = !1, C((f = window == null ? void 0 : window.luckysheet) == null ? void 0 : f.destroy) && window.luckysheet.destroy(), window.luckysheet.create({
|
|
306
|
+
container: "luckysheet",
|
|
307
|
+
//luckysheet is the container id
|
|
308
|
+
showinfobar: !1,
|
|
309
|
+
data: d.sheets,
|
|
310
|
+
title: d.info.name,
|
|
311
|
+
userInfo: d.info.name.creator
|
|
312
|
+
});
|
|
313
|
+
}));
|
|
314
|
+
}, m = () => {
|
|
315
|
+
F(luckysheet.getAllSheets(), "下载");
|
|
316
|
+
}, x = y(0);
|
|
317
|
+
return S(() => {
|
|
318
|
+
if (typeof window.ThirdPartyLib > "u") {
|
|
319
|
+
for (let l = 0; l < c.length; l++) {
|
|
320
|
+
const i = document.createElement("link");
|
|
321
|
+
i.setAttribute("rel", "stylesheet"), i.setAttribute("type", "text/css"), i.setAttribute("href", new URL(c[l], import.meta.url).href);
|
|
322
|
+
var u = document.getElementsByTagName("head");
|
|
323
|
+
u.length ? u[0].appendChild(i) : document.documentElement.appendChild(i);
|
|
324
|
+
}
|
|
325
|
+
for (let l = 0; l < n.length; l++) {
|
|
326
|
+
const i = document.createElement("script");
|
|
327
|
+
console.log(new URL(n[l], import.meta.url).href), i.src = new URL(n[l], import.meta.url).href, i.onload = () => {
|
|
328
|
+
x.value++, console.log("Third Party Library loaded!"), x.value >= 1 && luckysheet.create({
|
|
329
|
+
container: "luckysheet"
|
|
330
|
+
});
|
|
331
|
+
}, document.head.appendChild(i);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}), (u, l) => (g(), b(k, null, [
|
|
335
|
+
p("div", W, [
|
|
336
|
+
p("input", {
|
|
337
|
+
id: "uploadBtn",
|
|
338
|
+
type: "file",
|
|
339
|
+
onChange: a
|
|
340
|
+
}, null, 32),
|
|
341
|
+
l[2] || (l[2] = p("span", null, "Or Load remote xlsx file:", -1)),
|
|
342
|
+
w(p("select", {
|
|
343
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
|
|
344
|
+
onChange: h
|
|
345
|
+
}, [
|
|
346
|
+
l[1] || (l[1] = p("option", {
|
|
347
|
+
disabled: "",
|
|
348
|
+
value: ""
|
|
349
|
+
}, "Choose", -1)),
|
|
350
|
+
(g(!0), b(k, null, T(e.value, (i) => (g(), b("option", {
|
|
351
|
+
key: i.text,
|
|
352
|
+
value: i.value
|
|
353
|
+
}, A(i.text), 9, K))), 128))
|
|
354
|
+
], 544), [
|
|
355
|
+
[_, r.value]
|
|
356
|
+
]),
|
|
357
|
+
p("a", {
|
|
358
|
+
href: "javascript:void(0)",
|
|
359
|
+
onClick: m
|
|
360
|
+
}, "Download source xlsx file")
|
|
361
|
+
]),
|
|
362
|
+
l[3] || (l[3] = p("div", { id: "luckysheet" }, null, -1)),
|
|
363
|
+
w(p("div", $, "Downloading", 512), [
|
|
364
|
+
[j, s.value]
|
|
365
|
+
])
|
|
366
|
+
], 64));
|
|
367
|
+
}
|
|
368
|
+
}), G = /* @__PURE__ */ O(q, [["__scopeId", "data-v-0492bad7"]]), ne = M(G);
|
|
369
|
+
export {
|
|
370
|
+
ne as Q
|
|
371
|
+
};
|