hzzt-kfb-slide 0.0.1 → 0.0.2

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.
Files changed (180) hide show
  1. package/dist/components/{annotateCVLkqudX.js → annotateBVEx-rya.js} +1 -1
  2. package/dist/components/{annotateCYZEG4by.js → annotateBqmjdjvz.js} +47 -47
  3. package/dist/components/{annotateDDGAeaL1.js → annotateCnEsVKZh.js} +1 -1
  4. package/dist/components/annotateSkfOL59Z.js +1 -0
  5. package/dist/components/arrowDownB5-0ALxZ.js +18 -0
  6. package/dist/components/arrowDownCPhRTVmw.js +1 -0
  7. package/dist/components/{arrowDOQZx-5i.js → arrowDu4kVbgE.js} +1 -1
  8. package/dist/components/{arrow6aTSOsV2.js → arrowK6nDwd7R.js} +1 -1
  9. package/dist/components/arrowLeftBpJAKYIU.js +18 -0
  10. package/dist/components/arrowLeftCU3T3r30.js +1 -0
  11. package/dist/components/arrowRightClWKIUuS.js +19 -0
  12. package/dist/components/arrowRightmZqySSay.js +1 -0
  13. package/dist/components/arrowUpBou4eMQV.js +18 -0
  14. package/dist/components/arrowUpt5FuC3FU.js +1 -0
  15. package/dist/components/channelC2Ri97Of.js +1 -0
  16. package/dist/components/channelCwUVeFpV.js +35 -0
  17. package/dist/components/{checkDT-yvng0.js → check0RJobaJ4.js} +1 -1
  18. package/dist/components/{checkCazbS-c6.js → checkDfZPSwE6.js} +1 -1
  19. package/dist/components/{configB5XxbCMh.js → configC6FKsyN9.js} +3 -3
  20. package/dist/components/{configOyvUhGVP.js → configCgTZWYHR.js} +1 -1
  21. package/dist/components/customB30kJ3DX.js +40 -0
  22. package/dist/components/customDiZEAr4q.js +1 -0
  23. package/dist/components/deleteBXoB6UTd.js +25 -0
  24. package/dist/components/deleteBaA_lSdx.js +1 -0
  25. package/dist/components/{dot1kt2iBMi.js → dotB8_2mIMY.js} +1 -1
  26. package/dist/components/{dotDKLgWFRD.js → dotCQaSpfEa.js} +29 -29
  27. package/dist/components/{dotBzY_NqlA.js → dotR12-Fs6I.js} +1 -1
  28. package/dist/components/dot_nBePo5G.js +1 -0
  29. package/dist/components/downloadDIRWuAsZ.js +1 -0
  30. package/dist/components/{downloadDmK-mUW4.js → downloadDSy6Lx_1.js} +19 -19
  31. package/dist/components/{downloadCshCNWAW.js → downloadL7bwn8r7.js} +1 -1
  32. package/dist/components/{downloadBWFjb3Fj.js → downloadZXx1by-2.js} +1 -1
  33. package/dist/components/{flipDA2I3h_e.js → flipBWJDgBtU.js} +1 -1
  34. package/dist/components/{flipDUjW55Vh.js → flipzeRs4WK2.js} +5 -5
  35. package/dist/components/{fullscreenDyMv4lzQ.js → fullscreenBHPtTX2M.js} +1 -1
  36. package/dist/components/fullscreenBNpKNuBF.js +1 -0
  37. package/dist/components/{fullscreenDUzPX17n.js → fullscreenBdMJB4PD.js} +1 -1
  38. package/dist/components/{fullscreenQqpG_OS1.js → fullscreenCNn3z9l_.js} +13 -13
  39. package/dist/components/indexBI9sOqLg.js +30 -0
  40. package/dist/components/indexCJCVhkFm.js +11137 -0
  41. package/dist/components/{infoBJj_CFzD.js → infoBltXncgb.js} +3 -3
  42. package/dist/components/{infoB_-hN7Fr.js → infoDtaFyr6c.js} +1 -1
  43. package/dist/components/level0fz2ixaa.js +35 -0
  44. package/dist/components/levelCdq1V4Yc.js +1 -0
  45. package/dist/components/{microscopeCJwTonZV.js → microscope4jUbJj-C.js} +1 -1
  46. package/dist/components/microscope6R__I7ur.js +1 -0
  47. package/dist/components/{microscopeBsAciWA9.js → microscope8r-_ZsCK.js} +1 -1
  48. package/dist/components/{microscopeQHJ_dU_L.js → microscopeCJSAsiIQ.js} +5 -5
  49. package/dist/components/moveCXbqdVKV.js +1 -0
  50. package/dist/components/{moveUEjGdGB8.js → moveDg8vDZ98.js} +1 -1
  51. package/dist/components/{moveDxSu5JyS.js → moveJ_q2x0EZ.js} +1 -1
  52. package/dist/components/movelpGiPnJ5.js +74 -0
  53. package/dist/components/{nextXkdsQP9z.js → nextC0vHwAp5.js} +3 -3
  54. package/dist/components/{nextUojG6t-0.js → nextCMCmaDTi.js} +1 -1
  55. package/dist/components/{prevhOkmcBJ2.js → prevBzXgP68U.js} +1 -1
  56. package/dist/components/{prevBjMmvSpY.js → prevuRCPUsG0.js} +3 -3
  57. package/dist/components/{processCigaxNDK.js → processBpBLPw3-.js} +1 -1
  58. package/dist/components/processC0vYuwue.js +1 -0
  59. package/dist/components/{processRSLucFP3.js → processD1EQvj3k.js} +1 -1
  60. package/dist/components/{processCaqwpK4F.js → processFuA_wiCf.js} +18 -18
  61. package/dist/components/{rotateBgPHUO92.js → rotateBb7eL6EN.js} +1 -1
  62. package/dist/components/rotateBtvqvLPE.js +1 -0
  63. package/dist/components/rotateEKM-FQDQ.js +130 -0
  64. package/dist/components/{rotateCIEP8gXK.js → rotatea8JeBygQ.js} +1 -1
  65. package/dist/components/{settingBwRgwtCV.js → settingBOwtgZSJ.js} +1 -1
  66. package/dist/components/{settingDEgu1o7Z.js → settingBf-9h3FW.js} +1 -1
  67. package/dist/components/settingC-mv7W3Q.js +1 -0
  68. package/dist/components/settingCPNMWWj9.js +147 -0
  69. package/dist/components/{tailor0e5PmiKv.js → tailorCwnyDUsI.js} +1 -1
  70. package/dist/components/{tailorA3InL_3L.js → tailorDGEwHYjf.js} +1 -1
  71. package/dist/components/useCommonCBKfFiqW.js +17 -0
  72. package/dist/components/useCommoney7551no.js +1 -0
  73. package/dist/components/{zoomCOaNFEUh.js → zoomDRrzKbUt.js} +2 -2
  74. package/dist/components/{zoomD7pWi-kc.js → zoomDc8tU8Zx.js} +1 -1
  75. package/dist/components/zoomInBD6Lg2YX.js +1 -0
  76. package/dist/components/zoomInCJguF0C1.js +30 -0
  77. package/dist/components/zoomOutDV9dPg1z.js +1 -0
  78. package/dist/components/zoomOutVGTP5fYm.js +32 -0
  79. package/dist/index.cjs.js +1 -1
  80. package/dist/index.css +1 -1
  81. package/dist/index.es.js +1 -1
  82. package/package.json +4 -2
  83. package/types/components/KfbIcon.vue.d.ts +12 -0
  84. package/types/components/KfbImage.vue.d.ts +47 -0
  85. package/types/components/KfbSlideList.vue.d.ts +24 -0
  86. package/types/components/KfbToolConfig.vue.d.ts +13 -0
  87. package/types/components/KfbToolbox.vue.d.ts +22 -0
  88. package/types/components/KfbView/KfbChannel.vue.d.ts +16 -0
  89. package/types/components/KfbView/KfbKeyword.vue.d.ts +2 -0
  90. package/types/components/KfbView/KfbLabel.vue.d.ts +13 -0
  91. package/types/components/KfbView/KfbLevel.vue.d.ts +14 -0
  92. package/types/components/KfbView/KfbMenu.vue.d.ts +10 -0
  93. package/types/components/KfbView/KfbMicroscope.vue.d.ts +14 -0
  94. package/types/components/KfbView/index.d.ts +233 -0
  95. package/types/components/KfbView/index.vue.d.ts +270 -0
  96. package/types/components/KfbView/useDot.d.ts +3 -0
  97. package/types/components/KfbView/useHotmap.d.ts +38 -0
  98. package/types/components/KfbView/useImageProcess.d.ts +16 -0
  99. package/types/components/KfbView/useLabel.d.ts +85 -0
  100. package/types/components/KfbView/useMove.d.ts +9 -0
  101. package/types/components/KfbView/usePointer.d.ts +12 -0
  102. package/types/components/KfbView/useSync.d.ts +5 -0
  103. package/types/components/KfbView/useTailor.d.ts +7 -0
  104. package/types/components/ai/list.vue.d.ts +13 -0
  105. package/types/components/ai/useAi.d.ts +87 -0
  106. package/types/components/icon/annotate.vue.d.ts +2 -0
  107. package/types/components/icon/arrow.vue.d.ts +2 -0
  108. package/types/components/icon/arrowDown.vue.d.ts +2 -0
  109. package/types/components/icon/arrowLeft.vue.d.ts +2 -0
  110. package/types/components/icon/arrowRight.vue.d.ts +2 -0
  111. package/types/components/icon/arrowUp.vue.d.ts +2 -0
  112. package/types/components/icon/channel.vue.d.ts +2 -0
  113. package/types/components/icon/check.vue.d.ts +2 -0
  114. package/types/components/icon/config.vue.d.ts +2 -0
  115. package/types/components/icon/delete.vue.d.ts +2 -0
  116. package/types/components/icon/dot.vue.d.ts +2 -0
  117. package/types/components/icon/download.vue.d.ts +2 -0
  118. package/types/components/icon/flip.vue.d.ts +2 -0
  119. package/types/components/icon/fullscreen.vue.d.ts +2 -0
  120. package/types/components/icon/index.d.ts +5 -0
  121. package/types/components/icon/info.vue.d.ts +2 -0
  122. package/types/components/icon/level.vue.d.ts +2 -0
  123. package/types/components/icon/list.vue.d.ts +2 -0
  124. package/types/components/icon/menu.vue.d.ts +2 -0
  125. package/types/components/icon/microscope.vue.d.ts +2 -0
  126. package/types/components/icon/move.vue.d.ts +2 -0
  127. package/types/components/icon/next.vue.d.ts +2 -0
  128. package/types/components/icon/prev.vue.d.ts +2 -0
  129. package/types/components/icon/process.vue.d.ts +2 -0
  130. package/types/components/icon/rotate.vue.d.ts +2 -0
  131. package/types/components/icon/setting.vue.d.ts +2 -0
  132. package/types/components/icon/tailor.vue.d.ts +2 -0
  133. package/types/components/icon/zoomIn.vue.d.ts +2 -0
  134. package/types/components/toolbox/annotate.vue.d.ts +10 -0
  135. package/types/components/toolbox/custom.vue.d.ts +20 -0
  136. package/types/components/toolbox/dot.vue.d.ts +10 -0
  137. package/types/components/toolbox/download.vue.d.ts +10 -0
  138. package/types/components/toolbox/fullscreen.vue.d.ts +10 -0
  139. package/types/components/toolbox/instances.d.ts +26 -0
  140. package/types/components/toolbox/microscope.vue.d.ts +15 -0
  141. package/types/components/toolbox/move.vue.d.ts +10 -0
  142. package/types/components/toolbox/process.vue.d.ts +11 -0
  143. package/types/components/toolbox/rotate.vue.d.ts +6 -0
  144. package/types/components/toolbox/setting.vue.d.ts +10 -0
  145. package/types/components/toolbox/useCommon.d.ts +9 -0
  146. package/types/components/toolbox/zoom.vue.d.ts +6 -0
  147. package/types/index.d.ts +13 -0
  148. package/types/index.vue.d.ts +48 -0
  149. package/types/instances.d.ts +67 -0
  150. package/types/plugins/i18n.d.ts +6 -0
  151. package/dist/components/annotateCX9GkmOg.js +0 -1
  152. package/dist/components/configB7FH_Li-.js +0 -1
  153. package/dist/components/configCPI2rG9d.js +0 -40
  154. package/dist/components/custom-mCr5M_c.js +0 -1
  155. package/dist/components/customc4LeZve5.js +0 -40
  156. package/dist/components/dotB1Nn2uO0.js +0 -1
  157. package/dist/components/download_UT5bsTk.js +0 -1
  158. package/dist/components/flipCbiBH_o3.js +0 -1
  159. package/dist/components/flipDUZT4wIY.js +0 -40
  160. package/dist/components/fullscreenD6c_uo6X.js +0 -1
  161. package/dist/components/indexDvexHnyj.js +0 -10651
  162. package/dist/components/indexNnjbVZ_m.js +0 -30
  163. package/dist/components/infoBNm69fP0.js +0 -41
  164. package/dist/components/infoDvOItrdO.js +0 -1
  165. package/dist/components/microscopeDQl6TocT.js +0 -1
  166. package/dist/components/moveBzYl-c4_.js +0 -1
  167. package/dist/components/moveCe8MSGn0.js +0 -74
  168. package/dist/components/nextCGxHdIok.js +0 -1
  169. package/dist/components/nextDeuoTRY7.js +0 -40
  170. package/dist/components/prevBrrsxCoK.js +0 -40
  171. package/dist/components/prevDCKFCMZw.js +0 -1
  172. package/dist/components/processCUjiU4DT.js +0 -1
  173. package/dist/components/rotateCt5rJEBm.js +0 -1
  174. package/dist/components/rotateWiDuyX22.js +0 -130
  175. package/dist/components/setting8L58q_d4.js +0 -134
  176. package/dist/components/settingCgwUdss3.js +0 -1
  177. package/dist/components/tailorBB_gVLzK.js +0 -40
  178. package/dist/components/tailorCeILe_eG.js +0 -1
  179. package/dist/components/useCommonDK4IjSxd.js +0 -17
  180. package/dist/components/useCommon_CFgwTZy.js +0 -1
@@ -1,41 +0,0 @@
1
- import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as o, withCtx as z, normalizeClass as _, toDisplayString as C } from "vue";
2
- import { ElIcon as k } from "element-plus";
3
- import x from "./infoBJj_CFzD.js";
4
- import { d as h } from "./indexDvexHnyj.js";
5
- import { u as b } from "./useCommonDK4IjSxd.js";
6
- const I = /* @__PURE__ */ c({
7
- name: "ToolInfo",
8
- __name: "info",
9
- props: /* @__PURE__ */ p({
10
- size: {},
11
- text: {},
12
- name: {},
13
- component: {},
14
- isPrevent: { type: Boolean },
15
- callback: { type: Function }
16
- }, h),
17
- emits: ["tool"],
18
- setup(n, { emit: s }) {
19
- const i = n, r = s, { t: a, textClass: l } = b(i);
20
- function m() {
21
- r("tool", "info");
22
- }
23
- return (e, v) => (u(), f("div", {
24
- class: "hzzt-kfb-toolbox__icon",
25
- onClick: m
26
- }, [
27
- t(o(k), { size: e.size }, {
28
- default: z(() => [
29
- t(x)
30
- ]),
31
- _: 1
32
- }, 8, ["size"]),
33
- d("div", {
34
- class: _(o(l))
35
- }, C(o(a)(e.text || "信息")), 3)
36
- ]));
37
- }
38
- });
39
- export {
40
- I as default
41
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("element-plus"),u=require("./infoB_-hN7Fr.js"),m=require("./indexNnjbVZ_m.js"),f=require("./useCommon_CFgwTZy.js"),d=e.defineComponent({name:"ToolInfo",__name:"info",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(t,{emit:n}){const s=t,i=n,{t:r,textClass:l}=f.useCommon(s);function c(){i("tool","info")}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:c},[e.createVNode(e.unref(a.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l))},e.toDisplayString(e.unref(r)(o.text||"信息")),3)]))}});exports.default=d;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./microscopeBsAciWA9.js"),n=require("element-plus"),d=require("./indexNnjbVZ_m.js"),V=require("./useCommon_CFgwTZy.js"),g={class:"flex align-items-center margin-t-2"},E={style:{"min-width":"120px"}},b={class:"flex align-items-center margin-t-2"},x={style:{"min-width":"120px"}},N={class:"flex align-items-center margin-t-2"},C={style:{"min-width":"120px"}},h=e.defineComponent({name:"ToolMicroscope",__name:"microscope",props:e.mergeDefaults({scope:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},{...d.defaultProps,scope:()=>({...d.DEFAULT_MICROSCOPE})}),emits:["tool"],setup(m,{emit:p}){const u=m,o=e.reactive({...d.DEFAULT_MICROSCOPE,...u.scope});e.watch(()=>u.scope,r=>{Object.assign(o,r)});const c=p,{t:i,textClass:f}=V.useCommon(u),s=e.ref(!1);function a(r,t){r==="visible"?(s.value=!s.value,c("tool","microscope",{name:r,value:s.value})):c("tool","microscope",{name:r,value:t})}return(r,t)=>(e.openBlock(),e.createBlock(e.unref(n.ElPopover),{visible:s.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[8]||(t[8]=l=>a("visible",s.value))},[e.createVNode(e.unref(n.ElIcon),{size:r.size},{default:e.withCtx(()=>[e.createVNode(v.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f))},e.toDisplayString(e.unref(i)(r.text||"镜下")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n.ElCard),{shadow:"never",header:e.unref(i)("镜下视野")},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(n.ElRadioGroup),{modelValue:o.shape,"onUpdate:modelValue":t[0]||(t[0]=l=>o.shape=l),onChange:t[1]||(t[1]=l=>a("change",o))},{default:e.withCtx(()=>[e.createVNode(e.unref(n.ElRadio),{value:"50%",label:e.unref(i)("圆形")},null,8,["label"]),e.createVNode(e.unref(n.ElRadio),{value:"0",label:e.unref(i)("矩形")},null,8,["label"])]),_:1},8,["modelValue"]),e.createElementVNode("div",g,[e.createElementVNode("p",E,e.toDisplayString(e.unref(i)("视野直径(mm)"))+": ",1),e.createVNode(e.unref(n.ElInputNumber),{class:"flex-1",modelValue:o.width,"onUpdate:modelValue":t[2]||(t[2]=l=>o.width=l),onInput:t[3]||(t[3]=l=>a("change",o))},null,8,["modelValue"])]),e.createElementVNode("div",b,[e.createElementVNode("p",x,e.toDisplayString(e.unref(i)("边框宽度"))+"(px): ",1),e.createVNode(e.unref(n.ElInputNumber),{class:"flex-1",modelValue:o.borderWidth,"onUpdate:modelValue":t[4]||(t[4]=l=>o.borderWidth=l),onInput:t[5]||(t[5]=l=>a("change",o))},null,8,["modelValue"])]),e.createElementVNode("div",N,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("边框颜色"))+": ",1),e.createVNode(e.unref(n.ElColorPicker),{modelValue:o.color,"onUpdate:modelValue":t[6]||(t[6]=l=>o.color=l),onChange:t[7]||(t[7]=l=>a("change",o))},null,8,["modelValue"])])])]),_:1},8,["header"])]),_:1},8,["visible"]))}}),w=d._export_sfc(h,[["__scopeId","data-v-af2f9405"]]);exports.default=w;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./indexNnjbVZ_m.js"),f=require("./useCommon_CFgwTZy.js"),b=require("./moveDxSu5JyS.js"),s=require("element-plus"),C={class:"margin-b-1"},g=e.defineComponent({name:"ToolMove",__name:"move",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},u.defaultProps),emits:["tool"],setup(m,{emit:d}){const v=m,c=d,{t:i,textClass:p}=f.useCommon(v),n=e.ref(!1),l=e.ref(1);function a(o,t){o==="visible"?n.value=!n.value:c("tool","move",{name:o,value:t})}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{visible:n.value,"popper-class":"el-popover-padding-0",placement:"bottom",width:"200px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"hzzt-kfb-toolbox__icon",onClick:t[3]||(t[3]=r=>a("visible",n.value))},[e.createVNode(e.unref(s.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(b.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p))},e.toDisplayString(e.unref(i)(o.text||"快速移动")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("p",C,e.toDisplayString(e.unref(i)("图像移动倍率"))+":",1),e.createVNode(e.unref(s.ElInputNumber),{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=r=>l.value=r),step:.2,min:1,max:10,onChange:t[1]||(t[1]=r=>a("ratio",l.value)),onInput:t[2]||(t[2]=r=>a("ratio",l.value))},null,8,["modelValue"])])]),_:1})]),_:1},8,["visible"]))}}),x=u._export_sfc(g,[["__scopeId","data-v-6778505d"]]);exports.default=x;
@@ -1,74 +0,0 @@
1
- import { defineComponent as g, mergeDefaults as x, ref as u, createBlock as _, openBlock as z, unref as o, withCtx as a, createVNode as i, createElementVNode as r, toDisplayString as v, normalizeClass as k } from "vue";
2
- import { d as E, _ as V } from "./indexDvexHnyj.js";
3
- import { u as I } from "./useCommonDK4IjSxd.js";
4
- import w from "./moveUEjGdGB8.js";
5
- import { ElPopover as B, ElCard as M, ElInputNumber as N, ElIcon as P } from "element-plus";
6
- const $ = { class: "margin-b-1" }, y = /* @__PURE__ */ g({
7
- name: "ToolMove",
8
- __name: "move",
9
- props: /* @__PURE__ */ x({
10
- size: {},
11
- text: {},
12
- name: {},
13
- component: {},
14
- isPrevent: { type: Boolean },
15
- callback: { type: Function }
16
- }, E),
17
- emits: ["tool"],
18
- setup(d, { emit: f }) {
19
- const c = d, b = f, { t: p, textClass: C } = I(c), l = u(!1), n = u(1);
20
- function m(t, e) {
21
- t === "visible" ? l.value = !l.value : b("tool", "move", {
22
- name: t,
23
- value: e
24
- });
25
- }
26
- return (t, e) => (z(), _(o(B), {
27
- visible: l.value,
28
- "popper-class": "el-popover-padding-0",
29
- placement: "bottom",
30
- width: "200px",
31
- trigger: "click"
32
- }, {
33
- reference: a(() => [
34
- r("div", {
35
- class: "hzzt-kfb-toolbox__icon",
36
- onClick: e[3] || (e[3] = (s) => m("visible", l.value))
37
- }, [
38
- i(o(P), { size: t.size }, {
39
- default: a(() => [
40
- i(w)
41
- ]),
42
- _: 1
43
- }, 8, ["size"]),
44
- r("div", {
45
- class: k(o(C))
46
- }, v(o(p)(t.text || "快速移动")), 3)
47
- ])
48
- ]),
49
- default: a(() => [
50
- i(o(M), { shadow: "never" }, {
51
- default: a(() => [
52
- r("div", null, [
53
- r("p", $, v(o(p)("图像移动倍率")) + ":", 1),
54
- i(o(N), {
55
- modelValue: n.value,
56
- "onUpdate:modelValue": e[0] || (e[0] = (s) => n.value = s),
57
- step: 0.2,
58
- min: 1,
59
- max: 10,
60
- onChange: e[1] || (e[1] = (s) => m("ratio", n.value)),
61
- onInput: e[2] || (e[2] = (s) => m("ratio", n.value))
62
- }, null, 8, ["modelValue"])
63
- ])
64
- ]),
65
- _: 1
66
- })
67
- ]),
68
- _: 1
69
- }, 8, ["visible"]));
70
- }
71
- }), U = /* @__PURE__ */ V(y, [["__scopeId", "data-v-6778505d"]]);
72
- export {
73
- U as default
74
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("element-plus"),u=require("./nextUojG6t-0.js"),m=require("./indexNnjbVZ_m.js"),d=require("./useCommon_CFgwTZy.js"),p=e.defineComponent({name:"ToolNext",__name:"next",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(o,{emit:n}){const s=o,r=n,{t:l,textClass:c}=d.useCommon(s),i=()=>{r("tool","next")};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:i},[e.createVNode(e.unref(a.ElIcon),{size:t.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(l)(t.text||"下一张")),3)]))}});exports.default=p;
@@ -1,40 +0,0 @@
1
- import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as e, withCtx as x, normalizeClass as z, toDisplayString as _ } from "vue";
2
- import { ElIcon as C } from "element-plus";
3
- import k from "./nextXkdsQP9z.js";
4
- import { d as h } from "./indexDvexHnyj.js";
5
- import { u as b } from "./useCommonDK4IjSxd.js";
6
- const D = /* @__PURE__ */ c({
7
- name: "ToolNext",
8
- __name: "next",
9
- props: /* @__PURE__ */ p({
10
- size: {},
11
- text: {},
12
- name: {},
13
- component: {},
14
- isPrevent: { type: Boolean },
15
- callback: { type: Function }
16
- }, h),
17
- emits: ["tool"],
18
- setup(n, { emit: s }) {
19
- const r = n, a = s, { t: i, textClass: l } = b(r), m = () => {
20
- a("tool", "next");
21
- };
22
- return (o, v) => (u(), f("div", {
23
- class: "hzzt-kfb-toolbox__icon",
24
- onClick: m
25
- }, [
26
- t(e(C), { size: o.size }, {
27
- default: x(() => [
28
- t(k)
29
- ]),
30
- _: 1
31
- }, 8, ["size"]),
32
- d("div", {
33
- class: z(e(l))
34
- }, _(e(i)(o.text || "下一张")), 3)
35
- ]));
36
- }
37
- });
38
- export {
39
- D as default
40
- };
@@ -1,40 +0,0 @@
1
- import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as e, withCtx as z, normalizeClass as _, toDisplayString as v } from "vue";
2
- import { ElIcon as C } from "element-plus";
3
- import k from "./prevBjMmvSpY.js";
4
- import { d as x } from "./indexDvexHnyj.js";
5
- import { u as h } from "./useCommonDK4IjSxd.js";
6
- const D = /* @__PURE__ */ c({
7
- name: "ToolPrev",
8
- __name: "prev",
9
- props: /* @__PURE__ */ p({
10
- size: {},
11
- text: {},
12
- name: {},
13
- component: {},
14
- isPrevent: { type: Boolean },
15
- callback: { type: Function }
16
- }, x),
17
- emits: ["tool"],
18
- setup(n, { emit: s }) {
19
- const r = n, a = s, { t: i, textClass: l } = h(r), m = () => {
20
- a("tool", "prev");
21
- };
22
- return (o, b) => (u(), f("div", {
23
- class: "hzzt-kfb-toolbox__icon",
24
- onClick: m
25
- }, [
26
- t(e(C), { size: o.size }, {
27
- default: z(() => [
28
- t(k)
29
- ]),
30
- _: 1
31
- }, 8, ["size"]),
32
- d("div", {
33
- class: _(e(l))
34
- }, v(e(i)(o.text || "上一张")), 3)
35
- ]));
36
- }
37
- });
38
- export {
39
- D as default
40
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("element-plus"),u=require("./prevhOkmcBJ2.js"),m=require("./indexNnjbVZ_m.js"),p=require("./useCommon_CFgwTZy.js"),d=e.defineComponent({name:"ToolPrev",__name:"prev",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(o,{emit:n}){const r=o,s=n,{t:l,textClass:c}=p.useCommon(r),i=()=>{s("tool","prev")};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:i},[e.createVNode(e.unref(a.ElIcon),{size:t.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(l)(t.text||"上一张")),3)]))}});exports.default=d;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./indexNnjbVZ_m.js"),C=require("./useCommon_CFgwTZy.js"),t=require("element-plus"),x=require("./processCigaxNDK.js"),E={class:"margin-l-4"},N={class:"margin-l-4"},g={class:"margin-l-4"},_={class:"margin-l-4"},h={class:"margin-l-4"},w={class:"margin-l-4"},b={class:"margin-l-4"},S={class:"flex justify-content-end"},y={class:"hzzt-kfb-toolbox__icon"},D=e.defineComponent({name:"ToolProcess",__name:"process",props:e.mergeDefaults({process:{},size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},{...s.defaultProps,process:()=>({...s.DEFAULT_PROCESS})}),emits:["tool"],setup(c,{emit:m}){const d=c,u=m,{t:n,textClass:f}=C.useCommon(d),l=e.reactive({...s.DEFAULT_PROCESS,...d.process});function r(){u("tool","process",l)}function p(){Object.assign(l,s.DEFAULT_PROCESS),r()}function V(){u("tool","save_process",l)}return(i,o)=>(e.openBlock(),e.createBlock(e.unref(t.ElPopover),{"popper-class":"el-popover-padding-0",placement:"bottom",width:"400px",trigger:"click"},{reference:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(e.unref(t.ElIcon),{size:i.size},{default:e.withCtx(()=>[e.createVNode(x.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f))},e.toDisplayString(e.unref(n)(i.text||"图像处理")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCard),{shadow:"never",header:e.unref(n)("图像处理")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElForm),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElRow),null,{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("红通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.r,"onUpdate:modelValue":o[0]||(o[0]=a=>l.r=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",E,e.toDisplayString(l.r*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("绿通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.g,"onUpdate:modelValue":o[1]||(o[1]=a=>l.g=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",N,e.toDisplayString(l.g*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("蓝通道")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.b,"onUpdate:modelValue":o[2]||(o[2]=a=>l.b=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",g,e.toDisplayString(l.b*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("gamma值")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.ga,"onUpdate:modelValue":o[3]||(o[3]=a=>l.ga=a),class:"flex-1",step:.01,min:-.05,max:2,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",_,e.toDisplayString(l.ga),1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("对比度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.c,"onUpdate:modelValue":o[4]||(o[4]=a=>l.c=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",h,e.toDisplayString(l.c*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("饱和度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.s,"onUpdate:modelValue":o[5]||(o[5]=a=>l.s=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",w,e.toDisplayString(l.s*100)+"%",1)]),_:1},8,["label"])]),_:1}),e.createVNode(e.unref(t.ElCol),{span:24},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElFormItem),{label:e.unref(n)("亮度")},{default:e.withCtx(()=>[e.createVNode(e.unref(t.ElSlider),{modelValue:l.l,"onUpdate:modelValue":o[6]||(o[6]=a=>l.l=a),class:"flex-1",step:.1,min:-1,max:1,onChange:r},null,8,["modelValue"]),e.createElementVNode("span",b,e.toDisplayString(l.l*100)+"%",1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),e.createElementVNode("div",S,[e.createVNode(e.unref(t.ElButton),{onClick:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("重置")),1)]),_:1}),e.createVNode(e.unref(t.ElButton),{type:"primary",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("保存")),1)]),_:1})])]),_:1},8,["header"])]),_:1}))}}),v=s._export_sfc(D,[["__scopeId","data-v-8859e97b"]]);exports.default=v;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./indexNnjbVZ_m.js"),N=require("./useCommon_CFgwTZy.js"),s=require("element-plus"),E=require("./rotateCIEP8gXK.js"),w=require("./arrow6aTSOsV2.js"),C={class:"flex align-items-center"},k={class:"flex column align-items-center flex-1"},h={class:"flex justify-content-center align-items-center"},y={class:"hzzt-kfb-toolbox-rotate__container"},P={class:"hzzt-kfb-toolbox-rotate__angle"},$={class:"hzzt-kfb-toolbox__icon"},q=e.defineComponent({name:"ToolRotate",__name:"rotate",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},i.defaultProps),setup(g){var v;const _=g,{t:b,textClass:V}=N.useCommon(_),n=e.inject("kfbViewRef"),c=e.ref(!1),a=e.ref(((v=n==null?void 0:n.value)==null?void 0:v.degrees)??0);e.watch(()=>{var o;return(o=n==null?void 0:n.value)==null?void 0:o.degrees},o=>{a.value=o});function r(o){var t;a.value=parseFloat(o.toFixed(2)),(t=n==null?void 0:n.value)!=null&&t.kfbView&&(n.value.degrees=a.value,n.value.kfbView.viewer.viewport.setRotation(a.value))}function m(o){const t=document.querySelector(".hzzt-kfb-toolbox-rotate__container");if(!t)return;const l=t.getBoundingClientRect(),u={x:32,y:32},p={x:o.clientX-l.left,y:o.clientY-l.top};if(i._KfbView$isPointInEllipse(p,u,32,32)){const x=i._KfbView$getAngle(u,{x:u.x,y:0},p);if(isNaN(x/Math.PI*180))return;let d=parseFloat((x/Math.PI*180).toFixed(2));d<0&&(d+=360),c.value=!0,r(d)}}function z(o){c.value&&m(o)}function f(){c.value=!1}return(o,t)=>(e.openBlock(),e.createBlock(e.unref(s.ElPopover),{placement:"bottom",width:"260px",trigger:"click","popper-class":"el-popover-padding-0"},{reference:e.withCtx(()=>[e.createElementVNode("div",$,[e.createVNode(e.unref(s.ElIcon),{size:o.size},{default:e.withCtx(()=>[e.createVNode(E.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(V))},e.toDisplayString(e.unref(b)(o.text||"旋转")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElCard),{shadow:"never","body-style":{padding:"12px 12px 12px 0"}},{default:e.withCtx(()=>[e.createElementVNode("div",C,[e.createElementVNode("div",k,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-b-1",onClick:t[0]||(t[0]=l=>r(0))}),e.createElementVNode("div",h,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-r-1",onClick:t[1]||(t[1]=l=>r(270))}),e.createElementVNode("div",y,[e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__img",style:e.normalizeStyle({transform:`rotate(${a.value}deg)`}),onMousedown:m,onMousemove:z,onMouseup:f,onMouseleave:f},[e.createVNode(w.default)],36)]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-l-1",onClick:t[2]||(t[2]=l=>r(90))})]),e.createElementVNode("div",{class:"hzzt-kfb-toolbox-rotate__btn margin-t-1",onClick:t[3]||(t[3]=l=>r(180))})]),e.createElementVNode("div",P,[e.createVNode(e.unref(s.ElInputNumber),{modelValue:a.value,"onUpdate:modelValue":t[4]||(t[4]=l=>a.value=l),min:0,max:360,step:5,onChange:t[5]||(t[5]=l=>r(a.value))},null,8,["modelValue"])])])]),_:1})]),_:1}))}}),M=i._export_sfc(q,[["__scopeId","data-v-a0497817"]]);exports.default=M;
@@ -1,130 +0,0 @@
1
- import { defineComponent as C, mergeDefaults as h, inject as V, ref as x, watch as $, createBlock as P, openBlock as E, unref as i, withCtx as c, createVNode as r, createElementVNode as o, normalizeStyle as I, normalizeClass as M, toDisplayString as F } from "vue";
2
- import { d as N, a as B, b as D, _ as R } from "./indexDvexHnyj.js";
3
- import { u as S } from "./useCommonDK4IjSxd.js";
4
- import { ElPopover as j, ElCard as A, ElInputNumber as K, ElIcon as q } from "element-plus";
5
- import T from "./rotateBgPHUO92.js";
6
- import U from "./arrowDOQZx-5i.js";
7
- const X = { class: "flex align-items-center" }, Y = { class: "flex column align-items-center flex-1" }, G = { class: "flex justify-content-center align-items-center" }, H = { class: "hzzt-kfb-toolbox-rotate__container" }, J = { class: "hzzt-kfb-toolbox-rotate__angle" }, L = { class: "hzzt-kfb-toolbox__icon" }, O = /* @__PURE__ */ C({
8
- name: "ToolRotate",
9
- __name: "rotate",
10
- props: /* @__PURE__ */ h({
11
- size: {},
12
- text: {},
13
- name: {},
14
- component: {},
15
- isPrevent: { type: Boolean },
16
- callback: { type: Function }
17
- }, N),
18
- setup(b) {
19
- var f;
20
- const z = b, { t: k, textClass: w } = S(z), n = V("kfbViewRef"), u = x(!1), s = x(((f = n == null ? void 0 : n.value) == null ? void 0 : f.degrees) ?? 0);
21
- $(() => {
22
- var t;
23
- return (t = n == null ? void 0 : n.value) == null ? void 0 : t.degrees;
24
- }, (t) => {
25
- s.value = t;
26
- });
27
- function a(t) {
28
- var e;
29
- s.value = parseFloat(t.toFixed(2)), (e = n == null ? void 0 : n.value) != null && e.kfbView && (n.value.degrees = s.value, n.value.kfbView.viewer.viewport.setRotation(s.value));
30
- }
31
- function p(t) {
32
- const e = document.querySelector(".hzzt-kfb-toolbox-rotate__container");
33
- if (!e) return;
34
- const l = e.getBoundingClientRect(), d = { x: 32, y: 32 }, _ = {
35
- x: t.clientX - l.left,
36
- y: t.clientY - l.top
37
- };
38
- if (B(_, d, 32, 32)) {
39
- const g = D(d, { x: d.x, y: 0 }, _);
40
- if (isNaN(g / Math.PI * 180)) return;
41
- let m = parseFloat((g / Math.PI * 180).toFixed(2));
42
- m < 0 && (m += 360), u.value = !0, a(m);
43
- }
44
- }
45
- function y(t) {
46
- u.value && p(t);
47
- }
48
- function v() {
49
- u.value = !1;
50
- }
51
- return (t, e) => (E(), P(i(j), {
52
- placement: "bottom",
53
- width: "260px",
54
- trigger: "click",
55
- "popper-class": "el-popover-padding-0"
56
- }, {
57
- reference: c(() => [
58
- o("div", L, [
59
- r(i(q), { size: t.size }, {
60
- default: c(() => [
61
- r(T)
62
- ]),
63
- _: 1
64
- }, 8, ["size"]),
65
- o("div", {
66
- class: M(i(w))
67
- }, F(i(k)(t.text || "旋转")), 3)
68
- ])
69
- ]),
70
- default: c(() => [
71
- r(i(A), {
72
- shadow: "never",
73
- "body-style": { padding: "12px 12px 12px 0" }
74
- }, {
75
- default: c(() => [
76
- o("div", X, [
77
- o("div", Y, [
78
- o("div", {
79
- class: "hzzt-kfb-toolbox-rotate__btn margin-b-1",
80
- onClick: e[0] || (e[0] = (l) => a(0))
81
- }),
82
- o("div", G, [
83
- o("div", {
84
- class: "hzzt-kfb-toolbox-rotate__btn margin-r-1",
85
- onClick: e[1] || (e[1] = (l) => a(270))
86
- }),
87
- o("div", H, [
88
- o("div", {
89
- class: "hzzt-kfb-toolbox-rotate__img",
90
- style: I({ transform: `rotate(${s.value}deg)` }),
91
- onMousedown: p,
92
- onMousemove: y,
93
- onMouseup: v,
94
- onMouseleave: v
95
- }, [
96
- r(U)
97
- ], 36)
98
- ]),
99
- o("div", {
100
- class: "hzzt-kfb-toolbox-rotate__btn margin-l-1",
101
- onClick: e[2] || (e[2] = (l) => a(90))
102
- })
103
- ]),
104
- o("div", {
105
- class: "hzzt-kfb-toolbox-rotate__btn margin-t-1",
106
- onClick: e[3] || (e[3] = (l) => a(180))
107
- })
108
- ]),
109
- o("div", J, [
110
- r(i(K), {
111
- modelValue: s.value,
112
- "onUpdate:modelValue": e[4] || (e[4] = (l) => s.value = l),
113
- min: 0,
114
- max: 360,
115
- step: 5,
116
- onChange: e[5] || (e[5] = (l) => a(s.value))
117
- }, null, 8, ["modelValue"])
118
- ])
119
- ])
120
- ]),
121
- _: 1
122
- })
123
- ]),
124
- _: 1
125
- }));
126
- }
127
- }), ne = /* @__PURE__ */ R(O, [["__scopeId", "data-v-a0497817"]]);
128
- export {
129
- ne as default
130
- };
@@ -1,134 +0,0 @@
1
- import { defineComponent as c, mergeDefaults as b, ref as V, createBlock as C, openBlock as w, unref as e, withCtx as n, createVNode as a, createElementVNode as v, normalizeClass as z, toDisplayString as E } from "vue";
2
- import { d as k, _ } from "./indexDvexHnyj.js";
3
- import { u as F } from "./useCommonDK4IjSxd.js";
4
- import { ElPopover as S, ElCard as U, ElForm as B, ElFormItem as s, ElSwitch as m, ElIcon as I } from "element-plus";
5
- import P from "./settingBwRgwtCV.js";
6
- const h = { class: "hzzt-kfb-toolbox__icon" }, D = /* @__PURE__ */ c({
7
- name: "ToolSetting",
8
- __name: "setting",
9
- props: /* @__PURE__ */ b({
10
- size: {},
11
- text: {},
12
- name: {},
13
- component: {},
14
- isPrevent: { type: Boolean },
15
- callback: { type: Function }
16
- }, k),
17
- emits: ["tool"],
18
- setup(p, { emit: g }) {
19
- const f = p, d = g, { t: o, textClass: x } = F(f), r = V({
20
- grid: !1,
21
- ruler: !1,
22
- navigator: !0,
23
- graduation: !0
24
- });
25
- function u(i, t) {
26
- i === "grid" ? d("tool", i, {
27
- show: t
28
- }) : i === "ruler" ? d("tool", i, {
29
- ruler: t
30
- }) : i === "navigator" ? d("tool", i, t) : i === "graduation" && d("tool", i, {
31
- show: t
32
- });
33
- }
34
- return (i, t) => (w(), C(e(S), {
35
- placement: "bottom",
36
- width: "230px",
37
- trigger: "click",
38
- "popper-class": "el-popover-padding-0"
39
- }, {
40
- reference: n(() => [
41
- v("div", h, [
42
- a(e(I), { size: i.size }, {
43
- default: n(() => [
44
- a(P)
45
- ]),
46
- _: 1
47
- }, 8, ["size"]),
48
- v("div", {
49
- class: z(e(x))
50
- }, E(e(o)(i.text || "工具")), 3)
51
- ])
52
- ]),
53
- default: n(() => [
54
- a(e(U), {
55
- shadow: "never",
56
- header: e(o)("工具"),
57
- "body-style": { padding: 0 }
58
- }, {
59
- default: n(() => [
60
- a(e(B), {
61
- "label-width": "85px",
62
- "label-position": "right"
63
- }, {
64
- default: n(() => [
65
- a(e(s), {
66
- label: e(o)("自动网格")
67
- }, {
68
- default: n(() => [
69
- a(e(m), {
70
- modelValue: r.value.grid,
71
- "onUpdate:modelValue": t[0] || (t[0] = (l) => r.value.grid = l),
72
- "active-text": e(o)("开"),
73
- "inactive-text": e(o)("关"),
74
- onChange: t[1] || (t[1] = (l) => u("grid", l))
75
- }, null, 8, ["modelValue", "active-text", "inactive-text"])
76
- ]),
77
- _: 1
78
- }, 8, ["label"]),
79
- a(e(s), {
80
- label: e(o)("自动标尺")
81
- }, {
82
- default: n(() => [
83
- a(e(m), {
84
- modelValue: r.value.ruler,
85
- "onUpdate:modelValue": t[2] || (t[2] = (l) => r.value.ruler = l),
86
- "active-text": e(o)("开"),
87
- "inactive-text": e(o)("关"),
88
- onChange: t[3] || (t[3] = (l) => u("ruler", l))
89
- }, null, 8, ["modelValue", "active-text", "inactive-text"])
90
- ]),
91
- _: 1
92
- }, 8, ["label"]),
93
- a(e(s), {
94
- label: e(o)("导航图")
95
- }, {
96
- default: n(() => [
97
- a(e(m), {
98
- modelValue: r.value.navigator,
99
- "onUpdate:modelValue": t[4] || (t[4] = (l) => r.value.navigator = l),
100
- "active-text": e(o)("开"),
101
- "inactive-text": e(o)("关"),
102
- onChange: t[5] || (t[5] = (l) => u("navigator", l))
103
- }, null, 8, ["modelValue", "active-text", "inactive-text"])
104
- ]),
105
- _: 1
106
- }, 8, ["label"]),
107
- a(e(s), {
108
- label: e(o)("比例尺")
109
- }, {
110
- default: n(() => [
111
- a(e(m), {
112
- modelValue: r.value.graduation,
113
- "onUpdate:modelValue": t[6] || (t[6] = (l) => r.value.graduation = l),
114
- "active-text": e(o)("开"),
115
- "inactive-text": e(o)("关"),
116
- onChange: t[7] || (t[7] = (l) => u("graduation", l))
117
- }, null, 8, ["modelValue", "active-text", "inactive-text"])
118
- ]),
119
- _: 1
120
- }, 8, ["label"])
121
- ]),
122
- _: 1
123
- })
124
- ]),
125
- _: 1
126
- }, 8, ["header"])
127
- ]),
128
- _: 1
129
- }));
130
- }
131
- }), G = /* @__PURE__ */ _(D, [["__scopeId", "data-v-471a2ecc"]]);
132
- export {
133
- G as default
134
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./indexNnjbVZ_m.js"),v=require("./useCommon_CFgwTZy.js"),r=require("element-plus"),x=require("./settingDEgu1o7Z.js"),g={class:"hzzt-kfb-toolbox__icon"},V=e.defineComponent({name:"ToolSetting",__name:"setting",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},d.defaultProps),emits:["tool"],setup(s,{emit:f}){const m=s,i=f,{t:o,textClass:c}=v.useCommon(m),a=e.ref({grid:!1,ruler:!1,navigator:!0,graduation:!0});function u(n,t){n==="grid"?i("tool",n,{show:t}):n==="ruler"?i("tool",n,{ruler:t}):n==="navigator"?i("tool",n,t):n==="graduation"&&i("tool",n,{show:t})}return(n,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElPopover),{placement:"bottom",width:"230px",trigger:"click","popper-class":"el-popover-padding-0"},{reference:e.withCtx(()=>[e.createElementVNode("div",g,[e.createVNode(e.unref(r.ElIcon),{size:n.size},{default:e.withCtx(()=>[e.createVNode(x.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c))},e.toDisplayString(e.unref(o)(n.text||"工具")),3)])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElCard),{shadow:"never",header:e.unref(o)("工具"),"body-style":{padding:0}},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElForm),{"label-width":"85px","label-position":"right"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("自动网格")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.grid,"onUpdate:modelValue":t[0]||(t[0]=l=>a.value.grid=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[1]||(t[1]=l=>u("grid",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("自动标尺")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.ruler,"onUpdate:modelValue":t[2]||(t[2]=l=>a.value.ruler=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[3]||(t[3]=l=>u("ruler",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("导航图")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.navigator,"onUpdate:modelValue":t[4]||(t[4]=l=>a.value.navigator=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[5]||(t[5]=l=>u("navigator",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"]),e.createVNode(e.unref(r.ElFormItem),{label:e.unref(o)("比例尺")},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSwitch),{modelValue:a.value.graduation,"onUpdate:modelValue":t[6]||(t[6]=l=>a.value.graduation=l),"active-text":e.unref(o)("开"),"inactive-text":e.unref(o)("关"),onChange:t[7]||(t[7]=l=>u("graduation",l))},null,8,["modelValue","active-text","inactive-text"])]),_:1},8,["label"])]),_:1})]),_:1},8,["header"])]),_:1}))}}),p=d._export_sfc(V,[["__scopeId","data-v-471a2ecc"]]);exports.default=p;
@@ -1,40 +0,0 @@
1
- import { defineComponent as c, mergeDefaults as p, createElementBlock as f, openBlock as u, createVNode as t, createElementVNode as d, unref as o, withCtx as z, normalizeClass as _, toDisplayString as C } from "vue";
2
- import { ElIcon as k } from "element-plus";
3
- import x from "./tailor0e5PmiKv.js";
4
- import { d as h } from "./indexDvexHnyj.js";
5
- import { u as b } from "./useCommonDK4IjSxd.js";
6
- const D = /* @__PURE__ */ c({
7
- name: "ToolTailor",
8
- __name: "tailor",
9
- props: /* @__PURE__ */ p({
10
- size: {},
11
- text: {},
12
- name: {},
13
- component: {},
14
- isPrevent: { type: Boolean },
15
- callback: { type: Function }
16
- }, h),
17
- emits: ["tool"],
18
- setup(n, { emit: r }) {
19
- const s = n, a = r, { t: i, textClass: l } = b(s), m = () => {
20
- a("tool", "tailor", !0);
21
- };
22
- return (e, v) => (u(), f("div", {
23
- class: "hzzt-kfb-toolbox__icon",
24
- onClick: m
25
- }, [
26
- t(o(k), { size: e.size }, {
27
- default: z(() => [
28
- t(x)
29
- ]),
30
- _: 1
31
- }, 8, ["size"]),
32
- d("div", {
33
- class: _(o(l))
34
- }, C(o(i)(e.text || "截图")), 3)
35
- ]));
36
- }
37
- });
38
- export {
39
- D as default
40
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("element-plus"),u=require("./tailorA3InL_3L.js"),m=require("./indexNnjbVZ_m.js"),d=require("./useCommon_CFgwTZy.js"),p=e.defineComponent({name:"ToolTailor",__name:"tailor",props:e.mergeDefaults({size:{},text:{},name:{},component:{},isPrevent:{type:Boolean},callback:{type:Function}},m.defaultProps),emits:["tool"],setup(o,{emit:n}){const r=o,s=n,{t:l,textClass:i}=d.useCommon(r),a=()=>{s("tool","tailor",!0)};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:"hzzt-kfb-toolbox__icon",onClick:a},[e.createVNode(e.unref(c.ElIcon),{size:t.size},{default:e.withCtx(()=>[e.createVNode(u.default)]),_:1},8,["size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i))},e.toDisplayString(e.unref(l)(t.text||"截图")),3)]))}});exports.default=p;
@@ -1,17 +0,0 @@
1
- import { inject as n, computed as u } from "vue";
2
- import { u as l } from "./indexDvexHnyj.js";
3
- function x(o) {
4
- const t = n("show-text", {
5
- value: !0
6
- }), { t: e } = l(), s = u(
7
- () => t.value ? "hzzt-kfb-toolbox__text" : "hzzt-kfb-toolbox__tooltip"
8
- );
9
- return console.log(o.text), {
10
- showText: t,
11
- t: e,
12
- textClass: s
13
- };
14
- }
15
- export {
16
- x as u
17
- };
@@ -1 +0,0 @@
1
- "use strict";const o=require("vue"),u=require("./indexNnjbVZ_m.js");function c(e){const t=o.inject("show-text",{value:!0}),{t:s}=u.useLocalI18n(),n=o.computed(()=>t.value?"hzzt-kfb-toolbox__text":"hzzt-kfb-toolbox__tooltip");return console.log(e.text),{showText:t,t:s,textClass:n}}exports.useCommon=c;