hzzt-kfb-slide 0.0.8 → 0.0.9
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/components/{annotateR7c0LCw2.js → annotateBSN_N98d.js} +1 -1
- package/dist/components/annotateCskNt8uV.js +132 -0
- package/dist/components/{annotateFlT59Ud8.js → annotateDQQc3oYO.js} +1 -1
- package/dist/components/annotateWlJ-PlkO.js +1 -0
- package/dist/components/{arrowDHcko1dw.js → arrowCircleCLHjzy7J.js} +1 -1
- package/dist/components/{arrowDRio3eqx.js → arrowCircleDN2Qevn_.js} +9 -9
- package/dist/components/{arrowDownDRpTqVDK.js → arrowDownB5PEMVYP.js} +1 -1
- package/dist/components/{arrowDownByED8CSr.js → arrowDownztxcPDK2.js} +1 -1
- package/dist/components/{arrowLeftCl2XVnFB.js → arrowLeftBTScpoSq.js} +1 -1
- package/dist/components/{arrowLeftDjcuA_pb.js → arrowLeftC_h3QrNf.js} +1 -1
- package/dist/components/{arrowRightDSkHKM4y.js → arrowRightBAEhIIeD.js} +1 -1
- package/dist/components/{arrowRightClSGs6Mb.js → arrowRightDaLk5ye2.js} +1 -1
- package/dist/components/{arrowUpCgzq2L8A.js → arrowUpB_mDEoVE.js} +1 -1
- package/dist/components/{arrowUpQVIPK_NQ.js → arrowUpBuwILzVM.js} +1 -1
- package/dist/components/arrowq3GgyGtl.js +23 -0
- package/dist/components/arrowqeUXLexE.js +1 -0
- package/dist/components/bilateralC8BCqacM.js +1 -0
- package/dist/components/bilateralsYVc46ez.js +27 -0
- package/dist/components/{channelD-dojSaC.js → channelCm6WfZhE.js} +1 -1
- package/dist/components/{channelCTQgwZV_.js → channelCxhiBqFa.js} +1 -1
- package/dist/components/{checkCqCYDYr4.js → checkgqabT7oF.js} +1 -1
- package/dist/components/{checkCBxyasVc.js → checklhwJw6ij.js} +1 -1
- package/dist/components/{configGeQGhW9C.js → config8wBzwVWe.js} +1 -1
- package/dist/components/{configP_8ZVyfi.js → configCo2pzSSl.js} +1 -1
- package/dist/components/customDdRy3S9S.js +1 -0
- package/dist/components/{customBr26z068.js → customoXQbJYSP.js} +3 -2
- package/dist/components/{deleteBNIxfTCo.js → deleteDFVCacNy.js} +1 -1
- package/dist/components/{deleteuibq0KAI.js → deletegLcmbyGU.js} +1 -1
- package/dist/components/{dotBucEP5Z8.js → dotB2b_Bc58.js} +10 -9
- package/dist/components/dotBOQVdiVZ.js +1 -0
- package/dist/components/{dotDhjymv7s.js → dotBdyZ6Zs_.js} +1 -1
- package/dist/components/dotBjtFccSw.js +1 -0
- package/dist/components/{dotBJ-lSESE.js → dotBx_U-TRs.js} +1 -1
- package/dist/components/dotDVIxo3b0.js +25 -0
- package/dist/components/{downloadB5STpOaR.js → downloadCO9Cz6dr.js} +1 -1
- package/dist/components/downloadCq-yv4BU.js +1 -0
- package/dist/components/{downloadDnWeuVMn.js → downloadDYN6iKOq.js} +11 -10
- package/dist/components/{downloadBrpaJY3x.js → downloadDfTBHJ7d.js} +1 -1
- package/dist/components/ellipseDPdtULn7.js +23 -0
- package/dist/components/ellipseDxOwmrP-.js +1 -0
- package/dist/components/expandLeftBmr3uw-F.js +21 -0
- package/dist/components/expandLeftDgZEeCXR.js +1 -0
- package/dist/components/expandRightBPDxAHAT.js +21 -0
- package/dist/components/expandRightBvHDRlw9.js +1 -0
- package/dist/components/flagC_HXmW12.js +29 -0
- package/dist/components/flagDCxIuLfr.js +1 -0
- package/dist/components/{flipD7XBmACU.js → flipCNkGkJFc.js} +1 -1
- package/dist/components/{flipDlTFW9pO.js → flipK09gW4-M.js} +1 -1
- package/dist/components/fontBIHY17oy.js +1 -0
- package/dist/components/fontDXUcdfsw.js +23 -0
- package/dist/components/{fullscreenBGej63GA.js → fullscreenCEFKqV7l.js} +4 -3
- package/dist/components/{fullscreenoNyXD8h3.js → fullscreenDPi8Xahs.js} +1 -1
- package/dist/components/{fullscreenCxtySrDu.js → fullscreenDZYz-sfk.js} +1 -1
- package/dist/components/fullscreenDd3GiUQ4.js +1 -0
- package/dist/components/indexBMt2qfwG.js +3006 -0
- package/dist/components/indexCIVMES3X.js +4 -0
- package/dist/components/{infoBjk0dOPE.js → infoBWvCO9_7.js} +1 -1
- package/dist/components/{infoCA6EWNF3.js → infolJ1oViok.js} +1 -1
- package/dist/components/{levelbRjS_tcK.js → level3wMXDN6Y.js} +1 -1
- package/dist/components/{levelCG93ncZs.js → levelBeCwZgz9.js} +1 -1
- package/dist/components/lineBYCqffsD.js +1 -0
- package/dist/components/linerKZy_PBV.js +23 -0
- package/dist/components/{microscopeD-FrVKRB.js → microscopeB6_xwHWr.js} +1 -1
- package/dist/components/{microscopey8VfYeuX.js → microscopeB9wC5wRM.js} +5 -4
- package/dist/components/microscopeBm3v4wJv.js +1 -0
- package/dist/components/{microscopeD-EjOdf2.js → microscopeDsuJ4oWc.js} +1 -1
- package/dist/components/{moveCCkgUb-0.js → moveCCEIbSgO.js} +11 -10
- package/dist/components/{moveDYmvf7k8.js → moveDB4RR4wM.js} +1 -1
- package/dist/components/moveDU5gi3Hs.js +1 -0
- package/dist/components/{movebJvf1oPR.js → movel8WgST25.js} +1 -1
- package/dist/components/{nextC6ATDCIW.js → nextCU-KJqvj.js} +1 -1
- package/dist/components/{nextDdiDIgB2.js → next_hDHaXI8.js} +1 -1
- package/dist/components/polygonI_Zz93ii.js +23 -0
- package/dist/components/polygonidXC3FDF.js +1 -0
- package/dist/components/{prevC43MjkJW.js → prevBeyGPDD3.js} +1 -1
- package/dist/components/{prevD3zqAMQc.js → prevDVlS4e4B.js} +1 -1
- package/dist/components/{processDR1VlciH.js → processBUT2dQY5.js} +5 -4
- package/dist/components/{processCDMD34sa.js → processD0b1s4d4.js} +1 -1
- package/dist/components/{processDq-wdwXj.js → processDAd-rsJz.js} +1 -1
- package/dist/components/processpK6pP0DH.js +1 -0
- package/dist/components/rectangleD4mKwQvO.js +23 -0
- package/dist/components/rectangleD7n6Vvt6.js +1 -0
- package/dist/components/{rotateCVpCm-tK.js → rotateBgGcEeK6.js} +1 -1
- package/dist/components/{rotateB2TKrdOd.js → rotateDZ2LcDRk.js} +1 -1
- package/dist/components/rotateDh6-tIqc.js +1 -0
- package/dist/components/{rotateD_vW_yY0.js → rotatePTOj7NOR.js} +10 -9
- package/dist/components/{settingCqgEfv1i.js → settingB_4RabuF.js} +5 -4
- package/dist/components/{settingB6ugQHJp.js → settingDCw5DNWc.js} +1 -1
- package/dist/components/{settingDgfjjrts.js → settingDx9NClvs.js} +1 -1
- package/dist/components/settingsSpWOZGB.js +1 -0
- package/dist/components/starDBBLg7cl.js +1 -0
- package/dist/components/starZ-R1XM0P.js +25 -0
- package/dist/components/{tailorCBjKU02K.js → tailorBIcgkHyw.js} +1 -1
- package/dist/components/{tailorDzvy19FE.js → tailorvV9idwBq.js} +1 -1
- package/dist/components/{useCommonBD90FQd0.js → useCommonDOhNsd5o.js} +1 -1
- package/dist/components/{useCommonBD-xKHu3.js → useCommonSF_YB4y_.js} +1 -1
- package/dist/components/voice0zCcCgj_.js +25 -0
- package/dist/components/voiceoSSHyjHA.js +1 -0
- package/dist/components/{zoomB5HF8Hai.js → zoomDQAi2Vcg.js} +1 -1
- package/dist/components/{zoomInBrNwgimx.js → zoomInBW6dNl06.js} +1 -1
- package/dist/components/{zoomInC3EAqFg-.js → zoomInDtlrDlNR.js} +1 -1
- package/dist/components/{zoomOutDafuMDlQ.js → zoomOutBKc239cL.js} +1 -1
- package/dist/components/{zoomOutGi1JWbc1.js → zoomOut_jWy0Idj.js} +1 -1
- package/dist/components/{zoomBcO2XFbA.js → zoomluz7C-Dr.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +5 -5
- package/package.json +1 -1
- package/types/components/KfbView/KfbAnnotation.vue.d.ts +17 -0
- package/types/components/KfbView/index.vue.d.ts +2 -2
- package/types/components/KfbView/useLabel.d.ts +81 -0
- package/types/components/icon/expandLeft.vue.d.ts +2 -0
- package/types/components/icon/expandRight.vue.d.ts +2 -0
- package/types/components/icon/mark/arrow.vue.d.ts +2 -0
- package/types/components/icon/mark/bilateral.vue.d.ts +2 -0
- package/types/components/icon/mark/dot.vue.d.ts +2 -0
- package/types/components/icon/mark/ellipse.vue.d.ts +2 -0
- package/types/components/icon/mark/flag.vue.d.ts +2 -0
- package/types/components/icon/mark/font.vue.d.ts +2 -0
- package/types/components/icon/mark/line.vue.d.ts +2 -0
- package/types/components/icon/mark/polygon.vue.d.ts +2 -0
- package/types/components/icon/mark/rectangle.vue.d.ts +2 -0
- package/types/components/icon/mark/star.vue.d.ts +2 -0
- package/types/components/icon/mark/voice.vue.d.ts +2 -0
- package/types/components/toolbox/instances.d.ts +1 -0
- package/dist/components/annotateJzE3toJV.js +0 -1
- package/dist/components/annotatemJxZMVPO.js +0 -123
- package/dist/components/customB1-3lgH0.js +0 -1
- package/dist/components/dotDc-QmqaE.js +0 -1
- package/dist/components/downloadDh6wiado.js +0 -1
- package/dist/components/fullscreenOKvUhCk1.js +0 -1
- package/dist/components/indexB0v3MpmE.js +0 -2937
- package/dist/components/indexBkFttmTs.js +0 -4
- package/dist/components/microscopeDd_Bl9hM.js +0 -1
- package/dist/components/moveQ5bEeY1C.js +0 -1
- package/dist/components/processD1w3RPEQ.js +0 -1
- package/dist/components/rotateDEPrY9R8.js +0 -1
- package/dist/components/settingDCqhAo43.js +0 -1
- /package/types/components/icon/{arrow.vue.d.ts → arrowCircle.vue.d.ts} +0 -0
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, mergeDefaults as k, ref as y, createBlock as d, openBlock as i, unref as e, withCtx as o, createVNode as a, createElementVNode as s, createTextVNode as f, toDisplayString as c, createElementBlock as z, Fragment as E, renderList as w, normalizeClass as B } from "vue";
|
|
2
|
-
import { v as D, f as N, d as P, a as T, s as V, p as j, e as F, r as I, b as L, c as S, l as A, _ as O } from "./indexB0v3MpmE.js";
|
|
3
|
-
import { u as R, d as U } from "./useCommonBD-xKHu3.js";
|
|
4
|
-
import { ElPopover as $, ElCard as q, ElText as m, ElRow as G, ElCol as H, ElIcon as J } from "element-plus";
|
|
5
|
-
import K from "./annotateFlT59Ud8.js";
|
|
6
|
-
const M = ["onClick"], Q = ["src", "alt"], W = /* @__PURE__ */ h({
|
|
7
|
-
name: "ToolAnnotate",
|
|
8
|
-
__name: "annotate",
|
|
9
|
-
props: /* @__PURE__ */ k({
|
|
10
|
-
size: {},
|
|
11
|
-
text: {},
|
|
12
|
-
name: {},
|
|
13
|
-
component: {},
|
|
14
|
-
isPrevent: { type: Boolean },
|
|
15
|
-
callback: { type: Function }
|
|
16
|
-
}, U),
|
|
17
|
-
emits: ["tool"],
|
|
18
|
-
setup(X, { emit: u }) {
|
|
19
|
-
const _ = u, { t: l, textClass: v } = R(), p = {
|
|
20
|
-
line: A,
|
|
21
|
-
arrow: S,
|
|
22
|
-
bilateral: L,
|
|
23
|
-
rectangle: I,
|
|
24
|
-
ellipse: F,
|
|
25
|
-
polygon: j,
|
|
26
|
-
star: V,
|
|
27
|
-
flag: T,
|
|
28
|
-
dot: P,
|
|
29
|
-
font: N,
|
|
30
|
-
voice: D
|
|
31
|
-
}, g = Object.keys(p).map((t) => ({
|
|
32
|
-
name: t,
|
|
33
|
-
src: p[t]
|
|
34
|
-
})), n = y(!1);
|
|
35
|
-
function b(t) {
|
|
36
|
-
n.value = !1, _("tool", "annotate", {
|
|
37
|
-
tool: t.substring(0, 1).toLocaleUpperCase() + t.substring(1)
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function x() {
|
|
41
|
-
n.value = !n.value;
|
|
42
|
-
}
|
|
43
|
-
return (t, Y) => (i(), d(e($), {
|
|
44
|
-
visible: n.value,
|
|
45
|
-
"popper-class": "el-popover-padding-0",
|
|
46
|
-
placement: "bottom",
|
|
47
|
-
width: "220px",
|
|
48
|
-
trigger: "click"
|
|
49
|
-
}, {
|
|
50
|
-
reference: o(() => [
|
|
51
|
-
s("div", {
|
|
52
|
-
class: "hzzt-kfb-toolbox__icon",
|
|
53
|
-
onClick: x
|
|
54
|
-
}, [
|
|
55
|
-
a(e(J), { size: t.size }, {
|
|
56
|
-
default: o(() => [
|
|
57
|
-
a(K)
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
}, 8, ["size"]),
|
|
61
|
-
s("div", {
|
|
62
|
-
class: B(e(v))
|
|
63
|
-
}, c(e(l)(t.text || "标注")), 3)
|
|
64
|
-
])
|
|
65
|
-
]),
|
|
66
|
-
default: o(() => [
|
|
67
|
-
a(e(q), {
|
|
68
|
-
shadow: "never",
|
|
69
|
-
header: e(l)("标注工具"),
|
|
70
|
-
"body-style": { padding: "8px" }
|
|
71
|
-
}, {
|
|
72
|
-
default: o(() => [
|
|
73
|
-
s("div", null, [
|
|
74
|
-
a(e(m), { type: "danger" }, {
|
|
75
|
-
default: o(() => [
|
|
76
|
-
f(c(e(l)("按ESC可退出标注模式")), 1)
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
})
|
|
80
|
-
]),
|
|
81
|
-
s("div", null, [
|
|
82
|
-
a(e(m), { type: "danger" }, {
|
|
83
|
-
default: o(() => [
|
|
84
|
-
f(c(e(l)("点击标注按Delete键可删除标注")), 1)
|
|
85
|
-
]),
|
|
86
|
-
_: 1
|
|
87
|
-
})
|
|
88
|
-
]),
|
|
89
|
-
a(e(G), null, {
|
|
90
|
-
default: o(() => [
|
|
91
|
-
(i(!0), z(E, null, w(e(g), (r, C) => (i(), d(e(H), {
|
|
92
|
-
key: C,
|
|
93
|
-
class: "flex justify-content-center align-items-center",
|
|
94
|
-
span: 8
|
|
95
|
-
}, {
|
|
96
|
-
default: o(() => [
|
|
97
|
-
s("div", {
|
|
98
|
-
class: "hzzt-kfb-toolbox-annotate-img",
|
|
99
|
-
onClick: (Z) => b(r.name)
|
|
100
|
-
}, [
|
|
101
|
-
s("img", {
|
|
102
|
-
style: { width: "100%" },
|
|
103
|
-
src: r.src,
|
|
104
|
-
alt: r.name
|
|
105
|
-
}, null, 8, Q)
|
|
106
|
-
], 8, M)
|
|
107
|
-
]),
|
|
108
|
-
_: 2
|
|
109
|
-
}, 1024))), 128))
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
})
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 8, ["header"])
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 8, ["visible"]));
|
|
119
|
-
}
|
|
120
|
-
}), le = /* @__PURE__ */ O(W, [["__scopeId", "data-v-71f2944f"]]);
|
|
121
|
-
export {
|
|
122
|
-
le as default
|
|
123
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./useCommonBD90FQd0.js"),u=e.defineComponent({name:"ToolCustom",__name:"custom",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},n.defaultProps),emits:["tool"],setup(l,{emit:s}){const r=l,c=s,{t:a,textClass:i}=n.useCommon(),t=e.ref();function m(){c("tool",r.name||"",t.value)}return(o,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"toolRef",ref:t,class:"hzzt-kfb-toolbox__icon",onClick:m},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.component),{size:o.size},null,8,["size"])),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i))},[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(a)(o.text||" ")),1)])],2)],512))}});exports.default=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./useCommonBD90FQd0.js"),p=require("./dotDhjymv7s.js"),h=require("./checkCBxyasVc.js"),r=require("element-plus"),b=require("./indexBkFttmTs.js"),C={class:"margin-b-1"},_={class:"flex align-items-center"},E=["onClick"],g=e.defineComponent({name:"ToolDot",__name:"dot",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},d.defaultProps),emits:["tool"],setup(y,{emit:f}){const u=f,{t:i,textClass:v}=d.useCommon(),n=e.ref(!1),c=e.ref([{label:"#004BFF",value:0,checked:!1},{label:"#FF4B40",value:0,checked:!1},{label:"#FFAA00",value:0,checked:!1},{label:"#51C964",value:0,checked:!1},{label:"#00BEFF",value:0,checked:!1},{label:"#8C58CE",value:0,checked:!1},{label:"#F261A7",value:0,checked:!1}]),s=e.inject("kfbViewRef");e.watch(()=>{var l,t;return(t=(l=s==null?void 0:s.value)==null?void 0:l.kfbView)==null?void 0:t.labelList},l=>{c.value.forEach(t=>{var o;t.value=(o=(l||[]).filter(a=>(a==null?void 0:a.custom)&&(a==null?void 0:a.strokeStyle)===t.label&&(a==null?void 0:a.tool)==="Dot"))==null?void 0:o.length})});function k(l){c.value.forEach(t=>{t.checked=!1}),l.checked=!0,u("tool","annotate",{strokeStyle:l.label,tool:"Dot",once:!1,custom:!0,subType:"count"})}function m(){n.value=!n.value,n.value||c.value.forEach(l=>{l.checked=!1}),u("tool","endDraw")}return(l,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"300px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[0]||(t[0]=o=>m())},[e.createVNode(e.unref(r.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(p.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(v))},e.toDisplayString(e.unref(i)(l.text||"打点")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("按下ESC键结束打点操作")),1),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.label,class:"flex column align-items-center"},[e.createElementVNode("div",{style:e.normalizeStyle({"background-color":o.label}),class:"hzzt-kfb-toolbox-dot__box flex justify-content-center align-items-center",onClick:a=>k(o)},[e.createVNode(e.unref(r.ElIcon),{size:"16"},{default:e.withCtx(()=>[o.checked?(e.openBlock(),e.createBlock(h.default,{key:0})):e.createCommentVNode("",!0)]),_:2},1024)],12,E),e.createElementVNode("p",null,e.toDisplayString(o.value?o.value:" "),1)]))),128))])])]),_:1})]),_:1},8,["visible"]))}}),x=b._export_sfc(g,[["__scopeId","data-v-ca4687d6"]]);exports.default=x;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./useCommonBD90FQd0.js"),o=require("element-plus"),f=require("./downloadBrpaJY3x.js"),p=require("./indexBkFttmTs.js"),m={class:"flex column align-items-center"},v=e.defineComponent({name:"ToolDownload",__name:"download",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},s.defaultProps),emits:["tool"],setup(x,{emit:d}){const u=d,{t:r,textClass:c}=s.useCommon(),n=e.ref(!1);function i(l){u("tool","download",l),n.value=!1}return(l,t)=>(e.openBlock(),e.createBlock(e.unref(o.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:180,trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[2]||(t[2]=a=>n.value=!n.value)},[e.createVNode(e.unref(o.ElIcon),{size:l.size},{default:e.withCtx(()=>[e.createVNode(f.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(r)(l.text||"下载")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(o.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",m,[e.createVNode(e.unref(o.ElLink),{onClick:t[0]||(t[0]=a=>i("all"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("下载全部切片")),1)]),_:1}),e.createVNode(e.unref(o.ElLink),{type:"primary",class:"margin-t-2",onClick:t[1]||(t[1]=a=>i("single"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("下载当前切片")),1)]),_:1})])]),_:1})]),_:1},8,["visible"]))}}),C=p._export_sfc(v,[["__scopeId","data-v-b1632013"]]);exports.default=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),g=require("element-plus"),z=require("./fullscreenoNyXD8h3.js"),o=require("./useCommonBD90FQd0.js"),k=l.defineComponent({name:"ToolFullscreen",__name:"fullscreen",props:l.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},o.defaultProps),emits:["tool"],setup(i,{emit:m}){const a=i,f=m,s=l.ref(!1),{t:c,textClass:F}=o.useCommon(),e=document,n=document.documentElement,t=()=>{setTimeout(()=>{s.value=u()},500)},u=()=>!!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement),d=()=>{u()?E():v()},v=()=>{n.requestFullscreen?n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()},E=()=>{e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen()},h=()=>{f("tool","fullscreen",!s.value),a.isPrevent||d()};return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),l.onBeforeUnmount(()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}),(r,p)=>(l.openBlock(),l.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:h},[l.createVNode(l.unref(g.ElIcon),{size:r.size},{default:l.withCtx(()=>[l.createVNode(z.default)]),_:1},8,["size"]),l.createElementVNode("div",{class:l.normalizeClass(l.unref(F))},l.toDisplayString(s.value?l.unref(c)(r.text||"退出全屏"):l.unref(c)(r.text||"全屏")),3)]))}});exports.default=k;
|