qsyx-element 1.0.24 → 1.0.26
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-CY-LzkbQ.js → Button-DZweRDAW.js} +1 -1
- package/dist/es/{Dialog-CckCLAtF.js → Dialog-DMrXH7kD.js} +3 -3
- package/dist/es/{Form-sjCW5qrR.js → Form-X4N0U-Gi.js} +2 -2
- package/dist/es/{Table-DCcLVthx.js → Table-BsHCQ4xP.js} +3 -3
- package/dist/es/{excelSee-BtixnZQs.js → excelSee-1Qzdzwg1.js} +3 -3
- package/dist/es/{exportExcel-DSc_tUCI.js → exportExcel-UNp4O7PX.js} +3 -3
- package/dist/es/{exportWord-DPKW5Nyh.js → exportWord-BIONTB7j.js} +3 -3
- package/dist/es/imToText-BmYJcsAL.js +41 -0
- package/dist/es/index.js +14 -14
- package/dist/es/{insertExcel-YDQdiLi1.js → insertExcel-BXMzqiXR.js} +3 -3
- package/dist/es/{onlineExcel-4ggybKld.js → onlineExcel-BaKanh8m.js} +3 -3
- package/dist/es/{pdfSee-Ci6jhB9h.js → pdfSee-CWtq4fKO.js} +4 -4
- package/dist/es/{utils-B1qoKEZu.js → utils-Dl1GcTAW.js} +1 -1
- package/dist/es/{vendor-_o5V4Y5M.js → vendor-Dm-zbZAk.js} +14566 -14559
- package/dist/es/{wordSee-BpyL5TCN.js → wordSee-COKHDJ4p.js} +3 -3
- package/dist/umd/index.umd.cjs +4 -4
- package/package.json +1 -1
- package/dist/es/imToText-CLLldel2.js +0 -40
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as o, openBlock as e } from "vue";
|
|
2
|
-
import { w as n } from "./utils-
|
|
2
|
+
import { w as n } from "./utils-Dl1GcTAW.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 B, ref as D, reactive as V, onMounted as I, createElementBlock as _, openBlock as c, createBlock as u, createCommentVNode as b, unref as p, withCtx as i, createVNode as g, createTextVNode as y, renderSlot as E } from "vue";
|
|
2
|
-
import { F as j } from "./Form-
|
|
3
|
-
import { E as F, a as w } from "./vendor-
|
|
4
|
-
import { w as N } from "./utils-
|
|
2
|
+
import { F as j } from "./Form-X4N0U-Gi.js";
|
|
3
|
+
import { E as F, a as w } from "./vendor-Dm-zbZAk.js";
|
|
4
|
+
import { w as N } from "./utils-Dl1GcTAW.js";
|
|
5
5
|
let C = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function h(o) {
|
|
7
7
|
if (typeof o != "object" || o === null)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, watch, createElementBlock, openBlock, createVNode, unref, normalizeStyle, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createCommentVNode, normalizeClass } from "vue";
|
|
2
|
-
import { b as ElCheckboxGroup, c as ElCheckbox, d as axios$1, e as ElDatePicker, f as ElInput, g as ElRadioGroup, h as ElRadio, i as ElSelect, j as ElOption, k as ElForm, l as ElRow, m as ElCol, n as ElFormItem } from "./vendor-
|
|
3
|
-
import { w as withInstall } from "./utils-
|
|
2
|
+
import { b as ElCheckboxGroup, c as ElCheckbox, d as axios$1, e as ElDatePicker, f as ElInput, g as ElRadioGroup, h as ElRadio, i as ElSelect, j as ElOption, k as ElForm, l as ElRow, m as ElCol, n as ElFormItem } from "./vendor-Dm-zbZAk.js";
|
|
3
|
+
import { w as withInstall } from "./utils-Dl1GcTAW.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 A, ref as u, useSlots as G, reactive as $, onMounted as J, createElementBlock as S, openBlock as n, createElementVNode as B, createBlock as c, createCommentVNode as p, renderSlot as d, unref as o, withModifiers as D, withCtx as s, createTextVNode as f, createVNode as y, Fragment as E, renderList as K, toDisplayString as P } from "vue";
|
|
2
|
-
import { _ as U } from "./Dialog-
|
|
3
|
-
import { a as k, o as W, p as T } from "./vendor-
|
|
4
|
-
import { w as X } from "./utils-
|
|
2
|
+
import { _ as U } from "./Dialog-DMrXH7kD.js";
|
|
3
|
+
import { a as k, o as W, p as T } from "./vendor-Dm-zbZAk.js";
|
|
4
|
+
import { w as X } from "./utils-Dl1GcTAW.js";
|
|
5
5
|
const Y = { style: { float: "right" } }, Z = /* @__PURE__ */ A({
|
|
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, createElementBlock as te, openBlock as re, createElementVNode as oe } from "vue";
|
|
2
|
-
import { q as ne, _ as ae, r as _, s 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 { q as ne, _ as ae, r as _, s as G, t as le, S as se } from "./vendor-Dm-zbZAk.js";
|
|
3
|
+
import { _ as ie } from "./Form-X4N0U-Gi.js";
|
|
4
|
+
import { w as fe } from "./utils-Dl1GcTAW.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 { u as m } from "./vendor-
|
|
1
|
+
import { u as m } from "./vendor-Dm-zbZAk.js";
|
|
2
2
|
import { createElementBlock as x, openBlock as d, renderSlot as y, createTextVNode as h, toDisplayString as g, defineComponent as b, ref as w, reactive as p, resolveComponent as _, createBlock as k, 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-X4N0U-Gi.js";
|
|
4
|
+
import { w as V } from "./utils-Dl1GcTAW.js";
|
|
5
5
|
const C = {
|
|
6
6
|
props: {
|
|
7
7
|
// mime type [xls, csv]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as A, createElementBlock as c, openBlock as y, createElementVNode as e, resolveComponent as b, createVNode as w, withCtx as h, createTextVNode as g, withDirectives as m, vModelText as f, Fragment as k, renderList as D, renderSlot as W } from "vue";
|
|
2
|
-
import { J as v, P as U, v as C, F as S, w as B, I, x as O } from "./vendor-
|
|
3
|
-
import { w as _ } from "./utils-
|
|
4
|
-
import { _ as E } from "./Form-
|
|
2
|
+
import { J as v, P as U, v as C, F as S, w as B, I, x as O } from "./vendor-Dm-zbZAk.js";
|
|
3
|
+
import { w as _ } from "./utils-Dl1GcTAW.js";
|
|
4
|
+
import { _ as E } from "./Form-X4N0U-Gi.js";
|
|
5
5
|
const T = /* @__PURE__ */ A({
|
|
6
6
|
name: "QsyxExportWord",
|
|
7
7
|
__name: "index",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ref as l, onMounted as g, onUnmounted as m, createElementBlock as d, openBlock as p, createElementVNode as _ } from "vue";
|
|
2
|
+
import { y as o } from "./vendor-Dm-zbZAk.js";
|
|
3
|
+
import { w as u } from "./utils-Dl1GcTAW.js";
|
|
4
|
+
const x = { id: "app" }, f = ["src"], w = /* @__PURE__ */ Object.assign({
|
|
5
|
+
name: "QsyxImgToText"
|
|
6
|
+
}, {
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: {
|
|
9
|
+
src: String
|
|
10
|
+
},
|
|
11
|
+
emits: ["getText"],
|
|
12
|
+
setup(s, { emit: c }) {
|
|
13
|
+
const i = c, t = s, n = l(null), e = o.createWorker({
|
|
14
|
+
// logger: m => console.log(m),
|
|
15
|
+
}), r = async () => {
|
|
16
|
+
if (console.log("props.src.includes('http://')", t.src.includes("http://")), await e.load(), console.log(1), await e.loadLanguage("chi_sim+eng"), console.log(2), await e.initialize("chi_sim+eng", o.OEM.LSTM_ONLY), console.log(3), await e.setParameters({
|
|
17
|
+
tessedit_pageseg_mode: o.PSM.SINGLE_BLOCK
|
|
18
|
+
}), console.log(4), t.src.includes("http://")) {
|
|
19
|
+
const { data: { text: a } } = await e.recognize(t.src);
|
|
20
|
+
} else {
|
|
21
|
+
const { data: { text: a } } = await e.recognize(n.value);
|
|
22
|
+
}
|
|
23
|
+
i("getText", text), console.log("识别结果:", text);
|
|
24
|
+
};
|
|
25
|
+
return g(() => {
|
|
26
|
+
r();
|
|
27
|
+
}), m(async () => {
|
|
28
|
+
await e.terminate();
|
|
29
|
+
}), (a, h) => (p(), d("div", x, [
|
|
30
|
+
_("img", {
|
|
31
|
+
ref_key: "imageRef",
|
|
32
|
+
ref: n,
|
|
33
|
+
alt: "Vue logo",
|
|
34
|
+
src: s.src
|
|
35
|
+
}, null, 8, f)
|
|
36
|
+
]));
|
|
37
|
+
}
|
|
38
|
+
}), L = u(w);
|
|
39
|
+
export {
|
|
40
|
+
L as Q
|
|
41
|
+
};
|
package/dist/es/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { w as o, m as x } from "./utils-
|
|
2
|
-
import { Q as p } from "./Button-
|
|
3
|
-
import { a as d, b as Q, c as f, d as y, e as _, f as u, Q as k, g as w, _ as E, h as v } from "./Form-
|
|
4
|
-
import { Q as h } from "./Dialog-
|
|
5
|
-
import { Q as T } from "./Table-
|
|
6
|
-
import { Q as I } from "./wordSee-
|
|
7
|
-
import { Q as M } from "./excelSee-
|
|
8
|
-
import { Q as b } from "./pdfSee-
|
|
9
|
-
import { Q as D, a as $, b as g } from "./exportWord-
|
|
10
|
-
import { Q as B, a as C } from "./insertExcel-
|
|
1
|
+
import { w as o, m as x } from "./utils-Dl1GcTAW.js";
|
|
2
|
+
import { Q as p } from "./Button-DZweRDAW.js";
|
|
3
|
+
import { a as d, b as Q, c as f, d as y, e as _, f as u, Q as k, g as w, _ as E, h as v } from "./Form-X4N0U-Gi.js";
|
|
4
|
+
import { Q as h } from "./Dialog-DMrXH7kD.js";
|
|
5
|
+
import { Q as T } from "./Table-BsHCQ4xP.js";
|
|
6
|
+
import { Q as I } from "./wordSee-COKHDJ4p.js";
|
|
7
|
+
import { Q as M } from "./excelSee-1Qzdzwg1.js";
|
|
8
|
+
import { Q as b } from "./pdfSee-CWtq4fKO.js";
|
|
9
|
+
import { Q as D, a as $, b as g } from "./exportWord-BIONTB7j.js";
|
|
10
|
+
import { Q as B, a as C } from "./insertExcel-BXMzqiXR.js";
|
|
11
11
|
import { defineComponent as L, ref as R, computed as U, createElementBlock as W, openBlock as F, createElementVNode as n, withDirectives as N, vModelText as H } from "vue";
|
|
12
|
-
import { N as O } from "./vendor-
|
|
13
|
-
import { Q as P } from "./exportExcel-
|
|
14
|
-
import { Q as S } from "./imToText-
|
|
15
|
-
import { Q as V } from "./onlineExcel-
|
|
12
|
+
import { N as O } from "./vendor-Dm-zbZAk.js";
|
|
13
|
+
import { Q as P } from "./exportExcel-UNp4O7PX.js";
|
|
14
|
+
import { Q as S } from "./imToText-BmYJcsAL.js";
|
|
15
|
+
import { Q as V } from "./onlineExcel-BaKanh8m.js";
|
|
16
16
|
const pe = o(d), de = o(Q), Qe = o(f), fe = o(y), ye = o(_), _e = o(u), ue = o(k), ke = o(w), j = { class: "markdown-app" }, A = ["innerHTML"], q = /* @__PURE__ */ L({
|
|
17
17
|
name: "QsyxMarkDownText",
|
|
18
18
|
__name: "index",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as M, ref as o, reactive as H, onMounted as K, createElementBlock as x, openBlock as d, createTextVNode as F, createVNode as f, toDisplayString as $, unref as s, withCtx as m, Fragment as I, renderList as J, createBlock as L, createElementVNode as q } from "vue";
|
|
2
|
-
import { z as G, a as P, A as W, o as Q, p as R, B as T, C as U } from "./vendor-
|
|
3
|
-
import { w as D } from "./utils-
|
|
4
|
-
import { _ as X } from "./Form-
|
|
2
|
+
import { z as G, a as P, A as W, o as Q, p as R, B as T, C as U } from "./vendor-Dm-zbZAk.js";
|
|
3
|
+
import { w as D } from "./utils-Dl1GcTAW.js";
|
|
4
|
+
import { _ as X } from "./Form-X4N0U-Gi.js";
|
|
5
5
|
const Y = /* @__PURE__ */ M({
|
|
6
6
|
name: "QsyxInsertExcel",
|
|
7
7
|
__name: "index",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as y, onMounted as S, createElementBlock as g, openBlock as b, Fragment as k, createElementVNode as m, withDirectives as w, renderList as j, toDisplayString as T, vModelSelect as A, vShow as _ } from "vue";
|
|
2
|
-
import { D as B, G as O, L as D } from "./vendor-
|
|
3
|
-
import { _ as L } from "./Form-
|
|
4
|
-
import { w as M } from "./utils-
|
|
2
|
+
import { D as B, G as O, L as D } from "./vendor-Dm-zbZAk.js";
|
|
3
|
+
import { _ as L } from "./Form-X4N0U-Gi.js";
|
|
4
|
+
import { w as M } from "./utils-Dl1GcTAW.js";
|
|
5
5
|
const F = function(t, s) {
|
|
6
6
|
const r = new B.Workbook();
|
|
7
7
|
return Object.prototype.toString.call(t) === "[object Object]" && (t = [t]), t.forEach(function(e) {
|