@das-fed/web-components 6.4.0-test.5.1 → 6.4.0-test.51
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/das-web-app/index.js +648 -521
- package/das-web-app/index.js.gz +0 -0
- package/das-web-app/style.css +1 -1
- package/das-web-app/style.css.gz +0 -0
- package/{index-BkZpRztU.js → index-0q4QeBNh.js} +2 -2
- package/{index-CC_FIRyt.js → index-38GCiGnw.js} +5 -5
- package/{index-BJyiyCFS.js → index-7k79yuvO.js} +5 -5
- package/{index-CzGZXPEg.js → index-B0HIj3uB.js} +5 -5
- package/{index-BcgIfO65.js → index-B2UvlZ9d.js} +3 -3
- package/{index-nR8Fb6sW.js → index-B5OjzHvr.js} +4 -4
- package/{index-YshJd2aX.js → index-B5uhgjcW.js} +4 -4
- package/index-BHHcizNW.js +43 -0
- package/{index-BCrILgSr.js → index-BTwQVkpG.js} +2 -2
- package/{index-BPyM0jCK.js → index-BVO-qT5U.js} +4 -4
- package/{index-DCyz9C9_.js → index-BWO5vcIT.js} +4 -4
- package/{index-CWOr_tF9.js → index-BYUsTbot.js} +2 -2
- package/{index-D0E_4ZKL.js → index-B_54IO0n.js} +2 -2
- package/{index-BnF6RiG6.js → index-Bbz2-9rk.js} +2 -2
- package/{index-DtqiNjsk.js → index-BekSdATW.js} +3 -3
- package/{index-fvPJcDRA.js → index-BhHV-pcv.js} +2 -2
- package/{index-CFr-84JL.js → index-BhaYSGbS.js} +4 -4
- package/{index-1_kjSXev.js → index-Bj8-TGpn.js} +3 -3
- package/{index-lUjKat3q.js → index-BlB5kHqM.js} +3 -3
- package/{index-C5o0CmdL.js → index-BtIFFI3A.js} +3 -3
- package/{index-DVizhf7y.js → index-BxmuYoAX.js} +4 -4
- package/{index-DAUXR2Xn.js → index-ByTVrIOm.js} +4 -4
- package/index-C-Dnbw9-.js +15 -0
- package/{index-C2PZtmUY.js → index-CAqKMMUi.js} +2 -2
- package/{index-5S1G6D5G.js → index-CLl-n3_E.js} +3 -3
- package/{index-CFSPlva9.js → index-CWfR7Ida.js} +2 -2
- package/{index--vlwXZ3c.js → index-CesHs3y5.js} +2 -2
- package/{index-DUDJYQv1.js → index-CfsPJeGp.js} +2 -2
- package/{index-1pqKmXRC.js → index-CnZZDE-z.js} +4 -4
- package/{index-DWChJJuC.js → index-Cq7GhqA4.js} +4 -4
- package/{index-qzzlXw6E.js → index-D0BubK6L.js} +1 -1
- package/{index-Bbpk2-6z.js → index-D4KzmkdP.js} +2 -2
- package/{index-bDAFZUJD.js → index-D8dFCEc6.js} +2 -2
- package/index-DA5bNha9.js +15 -0
- package/{index-CGPcNUQY.js → index-DTQKz2ed.js} +4 -4
- package/{index-Byo47DIq.js → index-DY2J29Gb.js} +4 -4
- package/{index-1b3W3HxO.js → index-Db4eCj2t.js} +3 -3
- package/index-Di0z3HeU.js +137 -0
- package/{index-BB2DoFm9.js → index-DjHLmr3F.js} +720 -600
- package/{index-P5OEYcXY.js → index-Doqq6OFT.js} +4 -4
- package/{index-BmhkVIVP.js → index-Dq431aka.js} +3 -3
- package/{index-CYXWFqLN.js → index-DsGPLhJA.js} +4 -4
- package/{index-XpDtkG2G.js → index-Dxq-M-aj.js} +4 -4
- package/{index-Cl9w0XcT.js → index-Oye5mx-Q.js} +2 -2
- package/{index-DInUXGO6.js → index-P8Hzgx0X.js} +5 -5
- package/{index-Bteln7BY.js → index-RVszc1Ve.js} +144795 -128925
- package/{index-CZuwwWb9.js → index-oU8oRh2d.js} +2 -2
- package/{index-D5xnA3CI.js → index-tAhNl-v1.js} +3 -3
- package/{index-nNDblelp.js → index-vzAOo18L.js} +4 -4
- package/{index-DcVP-KnW.js → index-xS4MvxZ2.js} +3 -3
- package/index.js +2 -2
- package/package.json +6 -6
- package/style.css +2 -2
- package/index-Btyj1Umu.js +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as t,
|
|
1
|
+
import { d as t, c as e, o, w as s, m as a, n as i, u as r, p as l } from "./index-RVszc1Ve.js";
|
|
2
2
|
const d = `<?xml version="1.0" encoding="UTF-8"?>\r
|
|
3
3
|
<svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r
|
|
4
4
|
<title>解锁</title>\r
|
|
@@ -19,7 +19,7 @@ const d = `<?xml version="1.0" encoding="UTF-8"?>\r
|
|
|
19
19
|
</svg>`, p = /* @__PURE__ */ t({
|
|
20
20
|
__name: "index",
|
|
21
21
|
setup(g) {
|
|
22
|
-
return (n, c) => (
|
|
22
|
+
return (n, c) => (o(), e(r(l), i({ icon: r(d) }, n.$attrs), {
|
|
23
23
|
default: s(() => [
|
|
24
24
|
a(n.$slots, "default")
|
|
25
25
|
]),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as t,
|
|
2
|
-
const
|
|
1
|
+
import { d as t, c as n, o, w as e, m as r, n as i, u as a, p } from "./index-RVszc1Ve.js";
|
|
2
|
+
const w = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1671693362926" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8862" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768 128a32 32 0 0 0-32 32v704a32 32 0 0 0 64 0V160a32 32 0 0 0-32-32z m-553.376 9.376a32 32 0 0 0-45.248 45.248L498.752 512 169.376 841.376a32 32 0 0 0 45.248 45.248l352-352a32 32 0 0 0 0-45.248z" p-id="8863"></path></svg>', m = /* @__PURE__ */ t({
|
|
3
3
|
__name: "index",
|
|
4
|
-
setup(
|
|
5
|
-
return (s, l) => (o(), n(a(
|
|
4
|
+
setup(c) {
|
|
5
|
+
return (s, l) => (o(), n(a(p), i({ icon: a(w) }, s.$attrs), {
|
|
6
6
|
default: e(() => [
|
|
7
7
|
r(s.$slots, "default")
|
|
8
8
|
]),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as o,
|
|
2
|
-
const
|
|
1
|
+
import { d as o, c as t, o as n, w as e, m as r, n as l, u as s, p as i } from "./index-RVszc1Ve.js";
|
|
2
|
+
const p = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1669606141766" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2973" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M540.416 138.496a35.84 35.84 0 0 0-2.976 47.296l2.976 3.392L873.44 522.24 540.416 855.296a35.84 35.84 0 0 0-2.976 47.296l2.976 3.392a35.84 35.84 0 0 0 47.296 2.976l3.392-2.976 358.4-358.4a35.84 35.84 0 0 0 2.976-47.296l-2.976-3.392-358.4-358.4a35.84 35.84 0 0 0-50.688 0z m-465.92 0a35.84 35.84 0 0 0-2.976 47.296l2.976 3.392L407.52 522.24 74.496 855.296a35.84 35.84 0 0 0-2.976 47.296l2.976 3.392a35.84 35.84 0 0 0 47.296 2.976l3.392-2.976 358.4-358.4a35.84 35.84 0 0 0 2.976-47.296l-2.976-3.392-358.4-358.4a35.84 35.84 0 0 0-50.688 0z" p-id="2974"></path></svg>', h = /* @__PURE__ */ o({
|
|
3
3
|
__name: "index",
|
|
4
|
-
setup(
|
|
5
|
-
return (a,
|
|
4
|
+
setup(w) {
|
|
5
|
+
return (a, c) => (n(), t(s(i), l({ icon: s(p) }, a.$attrs), {
|
|
6
6
|
default: e(() => [
|
|
7
7
|
r(a.$slots, "default")
|
|
8
8
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as o,
|
|
1
|
+
import { d as o, c as n, o as e, w as t, m as r, n as c, u as a, p as i } from "./index-RVszc1Ve.js";
|
|
2
2
|
const p = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M512 32A352 352 0 0 0 160 384c0 130.112 62.976 262.336 167.168 390.848a1256.768 1256.768 0 0 0 138.496 144.96l23.872 20.48 2.496 2.048a32 32 0 0 0 39.936 0l14.72-12.288a1256.768 1256.768 0 0 0 150.208-155.2C800.96 646.336 864 514.112 864 384A352 352 0 0 0 512 32z m0 64A288 288 0 0 1 800 384c0 112.576-57.024 232.32-152.832 350.528a1193.408 1193.408 0 0 1-107.136 115.2l-17.408 16.192-10.624 9.408-19.008-17.152a1193.408 1193.408 0 0 1-116.16-123.712C281.024 616.32 224 496.64 224 384A288 288 0 0 1 512 96zM512 224a160 160 0 1 0 0 320 160 160 0 0 0 0-320z m0 64a96 96 0 1 1 0 192 96 96 0 0 1 0-192z" /></svg>', d = /* @__PURE__ */ o({
|
|
3
3
|
__name: "index",
|
|
4
4
|
setup(l) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e,
|
|
1
|
+
import { d as e, c as t, o as i, w as o, m as l, n as a, u as n, p as s } from "./index-RVszc1Ve.js";
|
|
2
2
|
const C = `<?xml version="1.0" encoding="UTF-8"?>\r
|
|
3
3
|
<svg width="14px" height="12px" viewBox="0 0 14 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r
|
|
4
4
|
<title>图标/通用操作/全屏备份 8</title>\r
|
|
@@ -23,7 +23,7 @@ const C = `<?xml version="1.0" encoding="UTF-8"?>\r
|
|
|
23
23
|
</svg>`, g = /* @__PURE__ */ e({
|
|
24
24
|
__name: "index",
|
|
25
25
|
setup(f) {
|
|
26
|
-
return (r, d) => (
|
|
26
|
+
return (r, d) => (i(), t(n(s), a({ icon: n(C) }, r.$attrs), {
|
|
27
27
|
default: o(() => [
|
|
28
28
|
l(r.$slots, "default")
|
|
29
29
|
]),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as n,
|
|
1
|
+
import { d as n, c as t, o, w as e, m as r, n as i, u as s, p as l } from "./index-RVszc1Ve.js";
|
|
2
2
|
const c = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1672726479138" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8805" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M928 398.4a32 32 0 0 1 31.776 28.256l0.224 3.744v384a96 96 0 0 1-90.368 95.84L864 910.4H160a96 96 0 0 1-95.84-90.368L64 814.4v-384a32 32 0 0 1 63.776-3.744L128 430.4v384a32 32 0 0 0 28.256 31.776L160 846.4h704a32 32 0 0 0 31.776-28.288L896 814.4v-384a32 32 0 0 1 32-32zM531.84 134.88l2.784 2.496 158.4 158.4a32 32 0 0 1-42.464 47.744l-2.784-2.496L544 237.216V718.4a32 32 0 0 1-64 0V237.216l-103.776 103.808a32 32 0 0 1-42.464 2.496l-2.784-2.496a32 32 0 0 1-2.496-42.464l2.496-2.784 158.4-158.4a32 32 0 0 1 42.464-2.496z" p-id="8806"></path></svg>', d = /* @__PURE__ */ n({
|
|
3
3
|
__name: "index",
|
|
4
4
|
setup(p) {
|
|
5
|
-
return (a, w) => (
|
|
5
|
+
return (a, w) => (o(), t(s(l), i({ icon: s(c) }, a.$attrs), {
|
|
6
6
|
default: e(() => [
|
|
7
7
|
r(a.$slots, "default")
|
|
8
8
|
]),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { d as e, c as o, o as c, w as t, m as n, n as r, u as s, p as i } from "./index-RVszc1Ve.js";
|
|
2
|
+
const p = '<svg t="1686635384647" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10145" width="200" height="200"><path d="M512 64c247.424 0 448 200.576 448 448s-200.576 448-448 448S64 759.424 64 512 264.576 64 512 64z m6.208 192C373.44 256 256.224 370.304 256 511.68 255.84 653.184 373.28 768 518.208 768c113.216 0 209.696-70.08 246.4-168.32a4.864 4.864 0 0 0-3.104-6.272l-35.392-11.84a5.184 5.184 0 0 0-3.808 0.192 4.8 4.8 0 0 0-2.528 2.688c-1.312 3.52-2.752 7.04-4.256 10.464-21.632 49.12-62.24 88.64-113.664 110.272a216.8 216.8 0 0 1-83.52 16.48 216.352 216.352 0 0 1-83.52-16.48c-51.776-21.76-92.736-61.792-114.24-111.68A204.288 204.288 0 0 1 303.584 512c0-28.352 5.696-55.776 16.864-81.6 21.536-49.856 62.464-89.856 114.24-111.648a216.992 216.992 0 0 1 83.52-16.448c29.12 0 57.152 5.472 83.52 16.448a212.864 212.864 0 0 1 85.632 64.064l-37.568 28.704a4.8 4.8 0 0 0 1.92 8.544l109.6 26.24c1.504 0.32 3.072 0 4.288-0.928a4.736 4.736 0 0 0 1.92-3.744L768 331.36c0-4.064-4.832-6.304-8.064-3.84l-35.2 26.88C675.872 292.64 599.456 256.192 518.208 256z" p-id="10146"></path></svg>', _ = /* @__PURE__ */ e({
|
|
3
|
+
__name: "index",
|
|
4
|
+
setup(l) {
|
|
5
|
+
return (a, d) => (c(), o(s(i), r({ icon: s(p) }, a.$attrs), {
|
|
6
|
+
default: t(() => [
|
|
7
|
+
n(a.$slots, "default")
|
|
8
|
+
]),
|
|
9
|
+
_: 3
|
|
10
|
+
}, 16, ["icon"]));
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
_ as DasIconReload
|
|
15
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as t,
|
|
2
|
-
const
|
|
1
|
+
import { d as t, c as a, o, w as r, m as e, n as i, u as s, p } from "./index-RVszc1Ve.js";
|
|
2
|
+
const c = `<?xml version="1.0" standalone="no"?>\r
|
|
3
3
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1716346578169"\r
|
|
4
4
|
class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11033"\r
|
|
5
5
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\r
|
|
@@ -9,8 +9,8 @@ const p = `<?xml version="1.0" standalone="no"?>\r
|
|
|
9
9
|
</svg>`, d = /* @__PURE__ */ t({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(w) {
|
|
12
|
-
return (n, h) => (
|
|
13
|
-
default:
|
|
12
|
+
return (n, h) => (o(), a(s(p), i({ icon: s(c) }, n.$attrs), {
|
|
13
|
+
default: r(() => [
|
|
14
14
|
e(n.$slots, "default")
|
|
15
15
|
]),
|
|
16
16
|
_: 3
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as n, o,
|
|
2
|
-
const
|
|
1
|
+
import { d as n, c as o, o as a, w as e, m as i, n as r, u as t, p } from "./index-RVszc1Ve.js";
|
|
2
|
+
const c = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1668396781886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17035" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><path d="M297.376 182.624a32 32 0 1 1 45.248-45.248l352 352a32 32 0 0 1 0 45.248l-352 352a32 32 0 1 1-45.248-45.248L626.752 512 297.376 182.624z" p-id="17036"></path></svg>', h = /* @__PURE__ */ n({
|
|
3
3
|
__name: "index",
|
|
4
4
|
setup(w) {
|
|
5
|
-
return (s, l) => (
|
|
5
|
+
return (s, l) => (a(), o(t(p), r({ icon: t(c) }, s.$attrs), {
|
|
6
6
|
default: e(() => [
|
|
7
|
-
|
|
7
|
+
i(s.$slots, "default")
|
|
8
8
|
]),
|
|
9
9
|
_: 3
|
|
10
10
|
}, 16, ["icon"]));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
const p = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1680860877984" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11230" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M711.466667 464.512c2.816 2.56 5.376 5.504 7.68 8.661333 19.029333 26.197333 15.573333 64.853333-7.68 86.314667L381.44 863.872a50.773333 50.773333 0 0 1-34.432 13.824c-30.037333 0-54.4-27.434667-54.4-61.312V207.616c0-14.165333 4.352-27.861333 12.288-38.826667 19.029333-26.24 53.333333-30.08 76.544-8.661333l330.069333 304.384z" p-id="11231"></path></svg>', h = /* @__PURE__ */
|
|
1
|
+
import { d as t, c as o, o as a, w as e, m as r, n as i, u as n, p as c } from "./index-RVszc1Ve.js";
|
|
2
|
+
const p = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1680860877984" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11230" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M711.466667 464.512c2.816 2.56 5.376 5.504 7.68 8.661333 19.029333 26.197333 15.573333 64.853333-7.68 86.314667L381.44 863.872a50.773333 50.773333 0 0 1-34.432 13.824c-30.037333 0-54.4-27.434667-54.4-61.312V207.616c0-14.165333 4.352-27.861333 12.288-38.826667 19.029333-26.24 53.333333-30.08 76.544-8.661333l330.069333 304.384z" p-id="11231"></path></svg>', h = /* @__PURE__ */ t({
|
|
3
3
|
__name: "index",
|
|
4
4
|
setup(w) {
|
|
5
|
-
return (s, l) => (
|
|
5
|
+
return (s, l) => (a(), o(n(c), i({ icon: n(p) }, s.$attrs), {
|
|
6
6
|
default: e(() => [
|
|
7
7
|
r(s.$slots, "default")
|
|
8
8
|
]),
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { r as s, s as z, f as C, e as c, d as U, g as A, h as O, i as R, o as $, j as m, w as v, b as x, u as n, k as j, l as V, a as k, t as T, D as M, _ as P } from "./index-RVszc1Ve.js";
|
|
2
|
+
const q = (p) => (s(null), { saveKnow: async (o) => {
|
|
3
|
+
var i;
|
|
4
|
+
console.log("saveKnow", o);
|
|
5
|
+
const h = (i = o.dom.textContent) == null ? void 0 : i.replace(/^\s*[\r\n]/gm, ""), u = {
|
|
6
|
+
folderId: o.folderId,
|
|
7
|
+
// 文件夹id
|
|
8
|
+
title: o.sendVal,
|
|
9
|
+
// 标题20-50 第一次输入内容/语音转为文字的内容为标题(超出部分切断),
|
|
10
|
+
sourceType: 3,
|
|
11
|
+
// 来源类型 0:手动创建 3-为系统自动创建,
|
|
12
|
+
mainBody: h
|
|
13
|
+
// 正文
|
|
14
|
+
};
|
|
15
|
+
console.log("addInfoFn"), p.value = !0;
|
|
16
|
+
const [d, f] = await z(u).run();
|
|
17
|
+
return console.log("addInfoFn", d, f), p.value = !1, d ? !1 : (o.currentItem.saved = !0, C.success(c("保存成功")), !0);
|
|
18
|
+
} }), G = { class: "das-ai-folder-dialog" }, H = { class: "das-ai-folder-dialog-box" }, J = { class: "foot-btn-box" }, Q = {
|
|
19
|
+
name: "index"
|
|
20
|
+
}, W = /* @__PURE__ */ U({
|
|
21
|
+
...Q,
|
|
22
|
+
props: {
|
|
23
|
+
dialogShow: { type: Boolean, default: !1 },
|
|
24
|
+
content: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["submit", "cancel", "close"],
|
|
27
|
+
setup(p, { emit: b }) {
|
|
28
|
+
const o = p, h = s(c("选择文件夹")), u = b, d = s(!1), f = s([]), i = s(""), r = s(""), w = s(null), D = s(null), g = s(!1);
|
|
29
|
+
s(!1), A(
|
|
30
|
+
() => o.dialogShow,
|
|
31
|
+
(e) => {
|
|
32
|
+
e && (console.log("dialogShow", e, o.content), o.content, N()), d.value = e;
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
const { saveKnow: I } = q(g), N = async () => {
|
|
36
|
+
const e = {
|
|
37
|
+
folderName: "",
|
|
38
|
+
// 文件夹名称
|
|
39
|
+
// authority:true,//权限标识 true:有 false:无
|
|
40
|
+
excludeType: !0
|
|
41
|
+
// 是否排除内置文件夹 默认不排除
|
|
42
|
+
};
|
|
43
|
+
g.value = !0;
|
|
44
|
+
const [l, a] = await O(e).run();
|
|
45
|
+
if (g.value = !1, l)
|
|
46
|
+
return;
|
|
47
|
+
let t = a;
|
|
48
|
+
console.log("getTreeData", t), t && t.length && t.forEach((E) => {
|
|
49
|
+
_(E);
|
|
50
|
+
}), console.log("treedata", t), f.value = t;
|
|
51
|
+
}, _ = (e, l, a) => {
|
|
52
|
+
e.disabled = !e.authority, e.path = l ? l + `/${e.id}` : e.id, e.pathName = a ? a + `/${e.folderName}` : e.folderName, e.childFolderList && e.childFolderList.length && e.childFolderList.forEach((t) => {
|
|
53
|
+
_(t, e.path, e.pathName);
|
|
54
|
+
});
|
|
55
|
+
}, F = (e) => {
|
|
56
|
+
console.log("nodeClick", e), r.value = e.id, w.value = e;
|
|
57
|
+
}, y = () => {
|
|
58
|
+
i.value = "", w.value = null, r.value = "", f.value = [];
|
|
59
|
+
}, B = () => {
|
|
60
|
+
y(), u("cancel");
|
|
61
|
+
}, K = async () => {
|
|
62
|
+
if (!r.value) {
|
|
63
|
+
C.warning(c("请选择文件夹"));
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const e = await I({
|
|
67
|
+
...o.content,
|
|
68
|
+
folderId: r.value
|
|
69
|
+
});
|
|
70
|
+
console.log("submitDialog", e), e && (u("submit", e), y());
|
|
71
|
+
}, L = () => {
|
|
72
|
+
console.log("close"), u("close"), y();
|
|
73
|
+
};
|
|
74
|
+
return (e, l) => ($(), R("div", G, [
|
|
75
|
+
m(n(M), {
|
|
76
|
+
onClose: L,
|
|
77
|
+
size: "mini",
|
|
78
|
+
modelValue: d.value,
|
|
79
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => d.value = a),
|
|
80
|
+
title: h.value,
|
|
81
|
+
"destroy-on-close": "",
|
|
82
|
+
loading: g.value,
|
|
83
|
+
height: "500px",
|
|
84
|
+
width: "610px",
|
|
85
|
+
"append-to-body": "",
|
|
86
|
+
"body-style": { padding: 0 }
|
|
87
|
+
}, {
|
|
88
|
+
footer: v(() => [
|
|
89
|
+
x("div", J, [
|
|
90
|
+
m(n(V), {
|
|
91
|
+
size: "middle",
|
|
92
|
+
onClick: B
|
|
93
|
+
}, {
|
|
94
|
+
default: v(() => [
|
|
95
|
+
k(T(n(c)("取消")), 1)
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
m(n(V), {
|
|
100
|
+
btnType: "primary",
|
|
101
|
+
size: "middle",
|
|
102
|
+
onClick: K
|
|
103
|
+
}, {
|
|
104
|
+
default: v(() => [
|
|
105
|
+
k(T(n(c)("确定")), 1)
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
})
|
|
109
|
+
])
|
|
110
|
+
]),
|
|
111
|
+
default: v(() => [
|
|
112
|
+
x("div", H, [
|
|
113
|
+
m(n(j), {
|
|
114
|
+
ref_key: "folderTreeRef",
|
|
115
|
+
ref: D,
|
|
116
|
+
data: f.value,
|
|
117
|
+
isFilter: "",
|
|
118
|
+
"node-key": "id",
|
|
119
|
+
isEllipsis: "",
|
|
120
|
+
props: { label: "folderName", children: "childFolderList" },
|
|
121
|
+
inputOptions: { placeholder: n(c)("搜索文件夹名称") },
|
|
122
|
+
modelValue: r.value,
|
|
123
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => r.value = a),
|
|
124
|
+
"filter-value": i.value,
|
|
125
|
+
"onUpdate:filterValue": l[1] || (l[1] = (a) => i.value = a),
|
|
126
|
+
onNodeClick: F
|
|
127
|
+
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
128
|
+
])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["modelValue", "title", "loading"])
|
|
132
|
+
]));
|
|
133
|
+
}
|
|
134
|
+
}), Y = /* @__PURE__ */ P(W, [["__scopeId", "data-v-fbb9a949"]]);
|
|
135
|
+
export {
|
|
136
|
+
Y as default
|
|
137
|
+
};
|