qy-vue-plugins 1.0.2-beta → 1.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 (246) hide show
  1. package/dist/apply-element-plus-theme.cjs +1 -0
  2. package/dist/apply-element-plus-theme.mjs +22 -0
  3. package/dist/beijihua-map-icon/hiper-map-icon-1.png +0 -0
  4. package/dist/beijihua-map-icon/hiper-map-icon-10.png +0 -0
  5. package/dist/beijihua-map-icon/hiper-map-icon-11.png +0 -0
  6. package/dist/beijihua-map-icon/hiper-map-icon-12.png +0 -0
  7. package/dist/beijihua-map-icon/hiper-map-icon-13.png +0 -0
  8. package/dist/beijihua-map-icon/hiper-map-icon-14.png +0 -0
  9. package/dist/beijihua-map-icon/hiper-map-icon-15.png +0 -0
  10. package/dist/beijihua-map-icon/hiper-map-icon-16.png +0 -0
  11. package/dist/beijihua-map-icon/hiper-map-icon-17.png +0 -0
  12. package/dist/beijihua-map-icon/hiper-map-icon-18.png +0 -0
  13. package/dist/beijihua-map-icon/hiper-map-icon-19.png +0 -0
  14. package/dist/beijihua-map-icon/hiper-map-icon-2.png +0 -0
  15. package/dist/beijihua-map-icon/hiper-map-icon-20.png +0 -0
  16. package/dist/beijihua-map-icon/hiper-map-icon-21.png +0 -0
  17. package/dist/beijihua-map-icon/hiper-map-icon-22.png +0 -0
  18. package/dist/beijihua-map-icon/hiper-map-icon-23.png +0 -0
  19. package/dist/beijihua-map-icon/hiper-map-icon-24.png +0 -0
  20. package/dist/beijihua-map-icon/hiper-map-icon-25.png +0 -0
  21. package/dist/beijihua-map-icon/hiper-map-icon-26.png +0 -0
  22. package/dist/beijihua-map-icon/hiper-map-icon-27.png +0 -0
  23. package/dist/beijihua-map-icon/hiper-map-icon-28.png +0 -0
  24. package/dist/beijihua-map-icon/hiper-map-icon-29.png +0 -0
  25. package/dist/beijihua-map-icon/hiper-map-icon-3.png +0 -0
  26. package/dist/beijihua-map-icon/hiper-map-icon-30.png +0 -0
  27. package/dist/beijihua-map-icon/hiper-map-icon-31.png +0 -0
  28. package/dist/beijihua-map-icon/hiper-map-icon-32.png +0 -0
  29. package/dist/beijihua-map-icon/hiper-map-icon-33.png +0 -0
  30. package/dist/beijihua-map-icon/hiper-map-icon-34.png +0 -0
  31. package/dist/beijihua-map-icon/hiper-map-icon-35.png +0 -0
  32. package/dist/beijihua-map-icon/hiper-map-icon-36.png +0 -0
  33. package/dist/beijihua-map-icon/hiper-map-icon-37.png +0 -0
  34. package/dist/beijihua-map-icon/hiper-map-icon-38.png +0 -0
  35. package/dist/beijihua-map-icon/hiper-map-icon-39.png +0 -0
  36. package/dist/beijihua-map-icon/hiper-map-icon-4.png +0 -0
  37. package/dist/beijihua-map-icon/hiper-map-icon-40.png +0 -0
  38. package/dist/beijihua-map-icon/hiper-map-icon-41.png +0 -0
  39. package/dist/beijihua-map-icon/hiper-map-icon-42.png +0 -0
  40. package/dist/beijihua-map-icon/hiper-map-icon-43.png +0 -0
  41. package/dist/beijihua-map-icon/hiper-map-icon-44.png +0 -0
  42. package/dist/beijihua-map-icon/hiper-map-icon-45.png +0 -0
  43. package/dist/beijihua-map-icon/hiper-map-icon-46.png +0 -0
  44. package/dist/beijihua-map-icon/hiper-map-icon-47.png +0 -0
  45. package/dist/beijihua-map-icon/hiper-map-icon-48.png +0 -0
  46. package/dist/beijihua-map-icon/hiper-map-icon-49.png +0 -0
  47. package/dist/beijihua-map-icon/hiper-map-icon-5.png +0 -0
  48. package/dist/beijihua-map-icon/hiper-map-icon-50.png +0 -0
  49. package/dist/beijihua-map-icon/hiper-map-icon-51.png +0 -0
  50. package/dist/beijihua-map-icon/hiper-map-icon-52.png +0 -0
  51. package/dist/beijihua-map-icon/hiper-map-icon-53.png +0 -0
  52. package/dist/beijihua-map-icon/hiper-map-icon-54.png +0 -0
  53. package/dist/beijihua-map-icon/hiper-map-icon-55.png +0 -0
  54. package/dist/beijihua-map-icon/hiper-map-icon-56.png +0 -0
  55. package/dist/beijihua-map-icon/hiper-map-icon-57.png +0 -0
  56. package/dist/beijihua-map-icon/hiper-map-icon-58.png +0 -0
  57. package/dist/beijihua-map-icon/hiper-map-icon-59.png +0 -0
  58. package/dist/beijihua-map-icon/hiper-map-icon-6.png +0 -0
  59. package/dist/beijihua-map-icon/hiper-map-icon-60.png +0 -0
  60. package/dist/beijihua-map-icon/hiper-map-icon-61.png +0 -0
  61. package/dist/beijihua-map-icon/hiper-map-icon-62.png +0 -0
  62. package/dist/beijihua-map-icon/hiper-map-icon-63.png +0 -0
  63. package/dist/beijihua-map-icon/hiper-map-icon-64.png +0 -0
  64. package/dist/beijihua-map-icon/hiper-map-icon-65.png +0 -0
  65. package/dist/beijihua-map-icon/hiper-map-icon-7.png +0 -0
  66. package/dist/beijihua-map-icon/hiper-map-icon-8.png +0 -0
  67. package/dist/beijihua-map-icon/hiper-map-icon-9.png +0 -0
  68. package/dist/chunks/{EventKeys-1aL9cgT0.js → EventKeys-DZ_Hahro.js} +4 -4
  69. package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-C3__NQXN.js → MapTools.vue_vue_type_style_index_0_lang-C0C9opKY.js} +1 -1
  70. package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-BJi8BdV8.js → MapTools.vue_vue_type_style_index_0_lang-CZ_dEmHg.js} +2 -2
  71. package/dist/chunks/{ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C8wD6gZS.js → ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CjJ3e53H.js} +12 -13
  72. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-m9hkScAC.js +1 -0
  73. package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
  74. package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
  75. package/dist/chunks/aria-B5rZ0WFy.js +5 -0
  76. package/dist/chunks/aria-BEkkcjlH.js +115 -0
  77. package/dist/chunks/constant-Bq4ASE9Q.js +1 -0
  78. package/dist/chunks/{constant-BqK1UnfT.js → constant-E83OJqPQ.js} +17 -36
  79. package/dist/chunks/debounce-CHS-N31c.js +1 -0
  80. package/dist/chunks/debounce-DBq5TVsN.js +55 -0
  81. package/dist/chunks/{el-loading-CBXyo6la.js → directive-C-4KkhaM.js} +2 -2
  82. package/dist/chunks/directive-DRO4tFsQ.js +1 -0
  83. package/dist/chunks/index-03UF6hCZ.js +14 -0
  84. package/dist/chunks/index-B6SD5IcP.js +1 -0
  85. package/dist/chunks/{index-DHO_7w-5.js → index-BCQYbM-I.js} +22 -22
  86. package/dist/chunks/{el-input-DCpRXscw.js → index-BdloQTv1.js} +171 -175
  87. package/dist/chunks/{el-overlay-BJQjrf5W.js → index-BeskO4C8.js} +76 -75
  88. package/dist/chunks/index-BoFuR9-k.js +2 -0
  89. package/dist/chunks/index-Bs9zhLlD.js +1 -0
  90. package/dist/chunks/index-C-WIOEu8.js +1 -0
  91. package/dist/chunks/index-CD-vLVPt.js +1 -0
  92. package/dist/chunks/index-CD4bijv7.js +1 -0
  93. package/dist/chunks/index-CHRyd-8X.js +1 -0
  94. package/dist/chunks/{el-button-Dh7ROB0R.js → index-CgKiWbxR.js} +110 -117
  95. package/dist/chunks/{el-popper-zUql4Vp-.js → index-Cv_K9rbv.js} +47 -46
  96. package/dist/chunks/{el-select-Dil0JEvg.js → index-Cyrc4mj-.js} +467 -492
  97. package/dist/chunks/index-DLBjU25P.js +3 -0
  98. package/dist/chunks/index-DgwQEHlD.js +12 -0
  99. package/dist/chunks/index-LWCtnbZP.js +13 -0
  100. package/dist/chunks/index-OtE8c8y9.js +1 -0
  101. package/dist/chunks/index-Qzqd5jTh.js +1 -0
  102. package/dist/chunks/index-VbRYJz2E.js +1 -0
  103. package/dist/chunks/index-YiSmXvH8.js +975 -0
  104. package/dist/chunks/{index-Dq3Y5qiS.js → index-_At9ftZd.js} +35 -35
  105. package/dist/chunks/{index-Cw_w6CLf.js → index-ieQ_IULW.js} +11 -11
  106. package/dist/chunks/{el-form-item-CXLLocXw.js → index-mDs-Bipv.js} +151 -150
  107. package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
  108. package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
  109. package/dist/chunks/{base-DfCoKyyG.js → style-COMeMpO8.js} +81 -80
  110. package/dist/chunks/{base-DK_JFP90.js → style-DiDWGUIe.js} +1 -1
  111. package/dist/chunks/toNumber-CCcOx5KD.js +1 -0
  112. package/dist/chunks/toNumber-CDwzVyqL.js +30 -0
  113. package/dist/chunks/use-form-common-props-BQtZKazE.js +66 -0
  114. package/dist/chunks/use-form-common-props-SdGVhyVk.js +1 -0
  115. package/dist/chunks/{use-global-config-DXAWJFeA.js → use-global-config-Ba3i7fKX.js} +18 -17
  116. package/dist/chunks/use-global-config-PaSl-b_9.js +1 -0
  117. package/dist/chunks/utils-BJ8Lu8TY.js +516 -0
  118. package/dist/chunks/utils-CrwGKkIz.js +1 -0
  119. package/dist/chunks/vnode-CvqQoLhR.js +1 -0
  120. package/dist/chunks/vnode-DpjFDm4v.js +70 -0
  121. package/dist/element-plus-style.cjs +1 -0
  122. package/dist/element-plus-style.mjs +1 -0
  123. package/dist/index.cjs +1 -1
  124. package/dist/index.mjs +13 -10
  125. package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
  126. package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
  127. package/dist/manageTable/index.cjs +1 -1
  128. package/dist/manageTable/index.mjs +10 -8
  129. package/dist/manageTable/manageTable.cjs +1 -1
  130. package/dist/manageTable/manageTable.mjs +1 -1
  131. package/dist/mapbox/components/VideoDialog.cjs +1 -1
  132. package/dist/mapbox/components/VideoDialog.mjs +16 -17
  133. package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -1
  134. package/dist/mapbox/widgets/LayerAttributeDialog.mjs +30 -31
  135. package/dist/mapbox.cjs +1 -1
  136. package/dist/mapbox.mjs +22 -20
  137. package/dist/mapboxV2/MapView.cjs +1 -1
  138. package/dist/mapboxV2/MapView.mjs +3728 -1256
  139. package/dist/mapboxV2/components/MapLegend.cjs +1 -1
  140. package/dist/mapboxV2/components/MapLegend.mjs +51 -167
  141. package/dist/mapboxV2/components/MapTools.cjs +1 -1
  142. package/dist/mapboxV2/components/MapTools.mjs +1 -1
  143. package/dist/mapboxV2/components/VideoDialog.cjs +1 -1
  144. package/dist/mapboxV2/components/VideoDialog.mjs +12 -13
  145. package/dist/mapboxV2/components/mapSetting.cjs +1 -1
  146. package/dist/mapboxV2/components/mapSetting.mjs +1 -1
  147. package/dist/mapboxV2/components/mapTopic.cjs +1 -1
  148. package/dist/mapboxV2/components/mapTopic.mjs +349 -446
  149. package/dist/mapboxV2/constant.cjs +1 -1
  150. package/dist/mapboxV2/constant.mjs +13 -17
  151. package/dist/mapboxV2/useTif.cjs +1 -1
  152. package/dist/mapboxV2/useTif.mjs +86 -86
  153. package/dist/mapboxV2/utils.cjs +1 -1
  154. package/dist/mapboxV2/utils.mjs +362 -279
  155. package/dist/mapboxV2/widgets/CustomShapeDialog.cjs +1 -1
  156. package/dist/mapboxV2/widgets/CustomShapeDialog.mjs +87 -67
  157. package/dist/mapboxV2/widgets/IconPicker.cjs +1 -1
  158. package/dist/mapboxV2/widgets/IconPicker.mjs +59 -48
  159. package/dist/mapboxV2/widgets/LayerAttributeDialog.cjs +1 -1
  160. package/dist/mapboxV2/widgets/LayerAttributeDialog.mjs +17 -18
  161. package/dist/mapboxV2/widgets/LayerDialog.cjs +1 -1
  162. package/dist/mapboxV2/widgets/LayerDialog.mjs +94 -86
  163. package/dist/mapboxV2/widgets/LegendDialogLine.cjs +1 -1
  164. package/dist/mapboxV2/widgets/LegendDialogLine.mjs +95 -90
  165. package/dist/mapboxV2/widgets/LegendDialogPoint.cjs +1 -1
  166. package/dist/mapboxV2/widgets/LegendDialogPoint.mjs +90 -85
  167. package/dist/mapboxV2/widgets/LegendLine.cjs +1 -1
  168. package/dist/mapboxV2/widgets/LegendLine.mjs +28 -61
  169. package/dist/mapboxV2/widgets/LegendPoint.cjs +1 -1
  170. package/dist/mapboxV2/widgets/LegendPoint.mjs +52 -66
  171. package/dist/mapboxV2/widgets/LegendPopInterestPoint.cjs +1 -1
  172. package/dist/mapboxV2/widgets/LegendPopInterestPoint.mjs +16 -18
  173. package/dist/mapboxV2/widgets/LegendPopLine.cjs +1 -1
  174. package/dist/mapboxV2/widgets/LegendPopLine.mjs +72 -73
  175. package/dist/mapboxV2/widgets/LegendPopPoint.cjs +1 -1
  176. package/dist/mapboxV2/widgets/LegendPopPoint.mjs +113 -112
  177. package/dist/mapboxV2/widgets/LegendShape.cjs +1 -1
  178. package/dist/mapboxV2/widgets/LegendShape.mjs +17 -14
  179. package/dist/mapboxV2/widgets/LegendSymbol.cjs +1 -1
  180. package/dist/mapboxV2/widgets/LegendSymbol.mjs +5 -5
  181. package/dist/mapboxV2/widgets/ShapeDialog.cjs +1 -1
  182. package/dist/mapboxV2/widgets/ShapeDialog.mjs +1663 -1422
  183. package/dist/mapboxV2/widgets/TopicItemPop.cjs +1 -1
  184. package/dist/mapboxV2/widgets/TopicItemPop.mjs +2 -2
  185. package/dist/mapboxV2/widgets/TopicPop.mjs +1 -1
  186. package/dist/mapboxV2.cjs +3 -3
  187. package/dist/mapboxV2.mjs +673 -824
  188. package/dist/qy-vue-plugins.css +1 -1
  189. package/dist/types/apply-element-plus-theme.d.ts +1 -0
  190. package/dist/types/element-plus-style.d.ts +0 -0
  191. package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
  192. package/dist/types/mapboxV2/MapView.vue.d.ts +130 -3
  193. package/dist/types/mapboxV2/components/mapTopic.vue.d.ts +10 -591
  194. package/dist/types/mapboxV2/types/map-layer.d.ts +185 -3
  195. package/dist/types/mapboxV2/useTif.d.ts +2 -2
  196. package/dist/types/mapboxV2/utils/geojsonRenderer.d.ts +123 -0
  197. package/dist/types/mapboxV2/utils.d.ts +5 -0
  198. package/dist/types/mapboxV2/widgets/IconPicker.vue.d.ts +8 -10
  199. package/dist/types/mapboxV2/widgets/index.d.ts +3 -0
  200. package/dist/types/mapboxV2/widgets/track/TrackImageDialog.vue.d.ts +11 -0
  201. package/dist/types/mapboxV2/widgets/track/TrackTextDialog.vue.d.ts +11 -0
  202. package/dist/types/mapboxV2/widgets/track/TrackVoiceDialog.vue.d.ts +11 -0
  203. package/dist/types/mapboxV2/widgets/track/index.d.ts +3 -0
  204. package/dist/types/store/mapStore.d.ts +122 -0
  205. package/dist/types/types/map.d.ts +111 -7
  206. package/package/apply-element-plus-theme.ts +23 -0
  207. package/package/css/common.scss +33 -0
  208. package/package/css/element-plus-theme.scss +30 -0
  209. package/package/css/map.scss +42 -0
  210. package/package/element-plus-style.ts +48 -0
  211. package/package/manageTable/index.ts +5 -0
  212. package/package/mapbox/index.ts +5 -0
  213. package/package/mapboxV2/constant.ts +4 -12
  214. package/package/mapboxV2/index.ts +5 -0
  215. package/package/mapboxV2/useTif.ts +18 -13
  216. package/package/mapboxV2/utils.ts +303 -143
  217. package/package/mapboxV2/widgets/index.ts +5 -0
  218. package/package/types/map.ts +129 -32
  219. package/package.json +27 -3
  220. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DnYed7Kh.js +0 -1
  221. package/dist/chunks/aria-B-Cm8P6h.js +0 -5
  222. package/dist/chunks/aria-GiGFrmP1.js +0 -175
  223. package/dist/chunks/constant-mXEWtcQf.js +0 -1
  224. package/dist/chunks/el-button-w9UOZkmd.js +0 -3
  225. package/dist/chunks/el-color-picker-panel-BWjyXHBz.js +0 -1
  226. package/dist/chunks/el-color-picker-panel-BfOVWDkH.js +0 -1024
  227. package/dist/chunks/el-form-item-ECXS8pAs.js +0 -12
  228. package/dist/chunks/el-input-tAiZBp5N.js +0 -1
  229. package/dist/chunks/el-loading-BDhLUhme.js +0 -1
  230. package/dist/chunks/el-overlay-BEd31jh6.js +0 -1
  231. package/dist/chunks/el-popper-C6hJmTeX.js +0 -1
  232. package/dist/chunks/el-select-BXP0YqqB.js +0 -1
  233. package/dist/chunks/index-BIPr63lF.js +0 -1
  234. package/dist/chunks/index-BIaoqnN4.js +0 -1
  235. package/dist/chunks/index-D9eecDRK.js +0 -2
  236. package/dist/chunks/mapSetting-BRasGCqk.js +0 -597
  237. package/dist/chunks/mapSetting-CfE-5SCc.js +0 -1
  238. package/dist/chunks/use-global-config-y6gk28OO.js +0 -1
  239. package/dist/chunks/utils-CZxmwfl_.js +0 -1
  240. package/dist/chunks/utils-n1i0zWzc.js +0 -454
  241. package/dist/chunks/vnode-CyTnPoXJ.js +0 -47
  242. package/dist/chunks/vnode-eKMqbqaC.js +0 -1
  243. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-BRUTHTNe.js +0 -12
  244. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-CksusXxb.js +0 -28
  245. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-DchJeGnp.js +0 -1
  246. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-yXKDlNvO.js +0 -17
@@ -1,44 +1,45 @@
1
- import { y as Ye, l as q, q as Se, j as Ue, m as ve, o as Ae, u as Ie, K as we, f as ie, w as Qe, a as $e, i as Ce } from "../../chunks/base-DfCoKyyG.js";
2
- import { E as dl } from "../../chunks/el-input-DCpRXscw.js";
3
- import { b as Ze, E as vl } from "../../chunks/el-popper-zUql4Vp-.js";
4
- import { d as je, E as ml } from "../../chunks/el-color-picker-panel-BfOVWDkH.js";
5
- import { E as fl } from "../../chunks/el-button-Dh7ROB0R.js";
6
- import { c as cl, E as pl, a as bl } from "../../chunks/el-select-Dil0JEvg.js";
7
- import { _ as gl, a as yl, b as Vl, c as Sl, d as Cl, e as hl, f as wl, g as Ll, h as _l, i as kl, j as Nl, k as Fl, l as El, m as zl } from "../../chunks/正三角形-yXKDlNvO.js";
8
- import { defineComponent as ue, ref as $, reactive as Je, computed as I, watch as be, onMounted as el, onUpdated as xl, createElementBlock as V, openBlock as f, withModifiers as ll, normalizeClass as Y, unref as n, withDirectives as pe, createCommentVNode as M, createVNode as s, withKeys as De, renderSlot as Le, withCtx as z, createBlock as W, createSlots as Ul, inject as Il, nextTick as ze, toRefs as Re, normalizeStyle as ce, createElementVNode as i, toDisplayString as Fe, h as Ol, shallowRef as Ml, provide as Tl, Fragment as O, renderList as X, Transition as Pl, createTextVNode as Ve, vShow as _e } from "vue";
9
- import { e as oe, c as Me, d as de, o as Te, b as ke } from "../../chunks/constant-BqK1UnfT.js";
10
- import { ArrowDown as Bl, Minus as Al, ArrowUp as $l, Plus as Ee, Close as Pe } from "@element-plus/icons-vue";
11
- import { ElMessage as fe } from "element-plus";
12
- import { c as Rl } from "../../chunks/EventKeys-1aL9cgT0.js";
13
- import Ge from "./IconPicker.mjs";
14
- import { U as te, I as me, C as Oe, _ as Xe, d as tl, b as al, c as ol, E as Ke, w as nl, e as Kl } from "../../chunks/aria-GiGFrmP1.js";
15
- import { useEventListener as xe } from "@vueuse/core";
16
- import { u as il } from "../../chunks/index-DHO_7w-5.js";
17
- import { g as ul, c as Jl, E as ae } from "../../chunks/index-Cw_w6CLf.js";
18
- import { u as sl } from "../../chunks/index-Dq3Y5qiS.js";
19
- import { _ as Xl } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
20
- const Wl = 100, Yl = 600, Ne = "_RepeatClick", He = {
21
- beforeMount(t, d) {
22
- const p = d.value, { interval: v = Wl, delay: c = Yl } = Ye(p) ? {} : p;
23
- let S, b;
24
- const g = () => Ye(p) ? p() : p.handler(), o = () => {
25
- b && (clearTimeout(b), b = void 0), S && (clearInterval(S), S = void 0);
26
- }, h = (N) => {
27
- N.button === 0 && (o(), g(), document.addEventListener("mouseup", o, { once: !0 }), b = setTimeout(() => {
28
- S = setInterval(() => {
29
- g();
30
- }, v);
31
- }, c));
1
+ import { defineComponent as Fe, ref as H, reactive as rl, computed as I, watch as Pe, onMounted as Cl, onUpdated as Yl, createElementBlock as h, openBlock as c, withModifiers as Sl, normalizeClass as ve, unref as i, withDirectives as Oe, createCommentVNode as D, createVNode as r, withKeys as cl, renderSlot as Ke, withCtx as O, createBlock as fe, createSlots as jl, inject as al, nextTick as De, toRefs as nl, normalizeStyle as Te, createElementVNode as u, toDisplayString as je, h as Gl, shallowRef as Dl, provide as Hl, Fragment as G, renderList as de, Transition as ql, createTextVNode as Me, vShow as We } from "vue";
2
+ import { m as Le, d as ze, f as ll, o as Be, c as Ql, b as Ee } from "../../chunks/constant-E83OJqPQ.js";
3
+ import { ArrowDown as Zl, Minus as eo, ArrowUp as lo, Plus as Ge, Close as ol } from "@element-plus/icons-vue";
4
+ import { ElMessage as _e } from "element-plus";
5
+ import { c as oo } from "../../chunks/EventKeys-DZ_Hahro.js";
6
+ import ml from "./IconPicker.mjs";
7
+ import { c as to, E as ao, a as no } from "../../chunks/index-Cyrc4mj-.js";
8
+ import { E as io } from "../../chunks/index-CgKiWbxR.js";
9
+ import { E as uo } from "../../chunks/index-YiSmXvH8.js";
10
+ import { U as ye, I as Ue, C as qe, _ as dl, E as il, w as hl } from "../../chunks/aria-BEkkcjlH.js";
11
+ import { useEventListener as He } from "@vueuse/core";
12
+ import { E as so } from "../../chunks/index-BdloQTv1.js";
13
+ import { B as pl, p as me, v as Ae, q as Qe, s as xe, t as ul, u as Ze, C as Xe, d as ke, z as Vl, c as sl, i as Je } from "../../chunks/style-COMeMpO8.js";
14
+ import { u as Ll } from "../../chunks/index-BCQYbM-I.js";
15
+ import { g as wl, c as ro, E as Ve } from "../../chunks/index-ieQ_IULW.js";
16
+ import { u as kl } from "../../chunks/index-_At9ftZd.js";
17
+ import { b as Fl, u as Nl, a as zl, c as fo } from "../../chunks/use-form-common-props-BQtZKazE.js";
18
+ import { b as El, E as vo } from "../../chunks/index-Cv_K9rbv.js";
19
+ import { d as gl } from "../../chunks/debounce-DBq5TVsN.js";
20
+ import { _ as co } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
21
+ const mo = 100, po = 600, Ye = "_RepeatClick", bl = {
22
+ beforeMount(l, d) {
23
+ const y = d.value, { interval: f = mo, delay: g = po } = pl(y) ? {} : y;
24
+ let z, w;
25
+ const k = () => pl(y) ? y() : y.handler(), A = () => {
26
+ w && (clearTimeout(w), w = void 0), z && (clearInterval(z), z = void 0);
27
+ }, E = (V) => {
28
+ V.button === 0 && (A(), k(), document.addEventListener("mouseup", A, { once: !0 }), w = setTimeout(() => {
29
+ z = setInterval(() => {
30
+ k();
31
+ }, f);
32
+ }, g));
32
33
  };
33
- t[Ne] = { start: h, clear: o }, t.addEventListener("mousedown", h);
34
+ l[Ye] = { start: E, clear: A }, l.addEventListener("mousedown", E);
34
35
  },
35
- unmounted(t) {
36
- if (!t[Ne])
36
+ unmounted(l) {
37
+ if (!l[Ye])
37
38
  return;
38
- const { start: d, clear: p } = t[Ne];
39
- d && t.removeEventListener("mousedown", d), p && (p(), document.removeEventListener("mouseup", p)), t[Ne] = null;
39
+ const { start: d, clear: y } = l[Ye];
40
+ d && l.removeEventListener("mousedown", d), y && (y(), document.removeEventListener("mouseup", y)), l[Ye] = null;
40
41
  }
41
- }, jl = Ue({
42
+ }, go = Qe({
42
43
  id: {
43
44
  type: String,
44
45
  default: void 0
@@ -64,7 +65,7 @@ const Wl = 100, Yl = 600, Ne = "_RepeatClick", He = {
64
65
  type: Boolean,
65
66
  default: void 0
66
67
  },
67
- size: Ae,
68
+ size: ul,
68
69
  controls: {
69
70
  type: Boolean,
70
71
  default: !0
@@ -76,257 +77,257 @@ const Wl = 100, Yl = 600, Ne = "_RepeatClick", He = {
76
77
  },
77
78
  valueOnClear: {
78
79
  type: [String, Number, null],
79
- validator: (t) => t === null || q(t) || ["min", "max"].includes(t),
80
+ validator: (l) => l === null || me(l) || ["min", "max"].includes(l),
80
81
  default: null
81
82
  },
82
83
  name: String,
83
84
  placeholder: String,
84
85
  precision: {
85
86
  type: Number,
86
- validator: (t) => t >= 0 && t === Number.parseInt(`${t}`, 10)
87
+ validator: (l) => l >= 0 && l === Number.parseInt(`${l}`, 10)
87
88
  },
88
89
  validateEvent: {
89
90
  type: Boolean,
90
91
  default: !0
91
92
  },
92
- ...il(["ariaLabel"]),
93
+ ...Ll(["ariaLabel"]),
93
94
  inputmode: {
94
- type: ve(String),
95
+ type: xe(String),
95
96
  default: void 0
96
97
  },
97
98
  align: {
98
- type: ve(String),
99
+ type: xe(String),
99
100
  default: "center"
100
101
  },
101
102
  disabledScientific: Boolean
102
- }), Dl = {
103
- [Oe]: (t, d) => d !== t,
104
- blur: (t) => t instanceof FocusEvent,
105
- focus: (t) => t instanceof FocusEvent,
106
- [me]: (t) => q(t) || Se(t),
107
- [te]: (t) => q(t) || Se(t)
108
- }, Gl = ue({
103
+ }), bo = {
104
+ [qe]: (l, d) => d !== l,
105
+ blur: (l) => l instanceof FocusEvent,
106
+ focus: (l) => l instanceof FocusEvent,
107
+ [Ue]: (l) => me(l) || Ae(l),
108
+ [ye]: (l) => me(l) || Ae(l)
109
+ }, yo = Fe({
109
110
  name: "ElInputNumber"
110
- }), Hl = /* @__PURE__ */ ue({
111
- ...Gl,
112
- props: jl,
113
- emits: Dl,
114
- setup(t, { expose: d, emit: p }) {
115
- const v = t, { t: c } = sl(), S = Ie("input-number"), b = $(), g = Je({
116
- currentValue: v.modelValue,
111
+ }), Co = /* @__PURE__ */ Fe({
112
+ ...yo,
113
+ props: go,
114
+ emits: bo,
115
+ setup(l, { expose: d, emit: y }) {
116
+ const f = l, { t: g } = kl(), z = Ze("input-number"), w = H(), k = rl({
117
+ currentValue: f.modelValue,
117
118
  userInput: null
118
- }), { formItem: o } = tl(), h = I(() => q(v.modelValue) && v.modelValue <= v.min), N = I(() => q(v.modelValue) && v.modelValue >= v.max), y = I(() => {
119
- const e = D(v.step);
120
- return we(v.precision) ? Math.max(D(v.modelValue), e) : (e > v.precision && ie("InputNumber", "precision should not be less than the decimal places of step"), v.precision);
121
- }), w = I(() => v.controls && v.controlsPosition === "right"), x = al(), j = ol(), R = I(() => {
122
- if (g.userInput !== null)
123
- return g.userInput;
124
- let e = g.currentValue;
125
- if (Se(e))
119
+ }), { formItem: A } = Fl(), E = I(() => me(f.modelValue) && f.modelValue <= f.min), V = I(() => me(f.modelValue) && f.modelValue >= f.max), C = I(() => {
120
+ const s = Q(f.step);
121
+ return Xe(f.precision) ? Math.max(Q(f.modelValue), s) : (s > f.precision && ke("InputNumber", "precision should not be less than the decimal places of step"), f.precision);
122
+ }), N = I(() => f.controls && f.controlsPosition === "right"), o = Nl(), Y = zl(), W = I(() => {
123
+ if (k.userInput !== null)
124
+ return k.userInput;
125
+ let s = k.currentValue;
126
+ if (Ae(s))
126
127
  return "";
127
- if (q(e)) {
128
- if (Number.isNaN(e))
128
+ if (me(s)) {
129
+ if (Number.isNaN(s))
129
130
  return "";
130
- we(v.precision) || (e = e.toFixed(v.precision));
131
+ Xe(f.precision) || (s = s.toFixed(f.precision));
131
132
  }
132
- return e;
133
- }), K = (e, r) => {
134
- if (we(r) && (r = y.value), r === 0)
135
- return Math.round(e);
136
- let m = String(e);
137
- const L = m.indexOf(".");
138
- if (L === -1 || !m.replace(".", "").split("")[L + r])
139
- return e;
140
- const a = m.length;
141
- return m.charAt(a - 1) === "5" && (m = `${m.slice(0, Math.max(0, a - 1))}6`), Number.parseFloat(Number(m).toFixed(r));
142
- }, D = (e) => {
143
- if (Se(e))
133
+ return s;
134
+ }), le = (s, b) => {
135
+ if (Xe(b) && (b = C.value), b === 0)
136
+ return Math.round(s);
137
+ let F = String(s);
138
+ const R = F.indexOf(".");
139
+ if (R === -1 || !F.replace(".", "").split("")[R + b])
140
+ return s;
141
+ const ae = F.length;
142
+ return F.charAt(ae - 1) === "5" && (F = `${F.slice(0, Math.max(0, ae - 1))}6`), Number.parseFloat(Number(F).toFixed(b));
143
+ }, Q = (s) => {
144
+ if (Ae(s))
144
145
  return 0;
145
- const r = e.toString(), m = r.indexOf(".");
146
- let L = 0;
147
- return m !== -1 && (L = r.length - m - 1), L;
148
- }, G = (e, r = 1) => q(e) ? e >= Number.MAX_SAFE_INTEGER && r === 1 ? (ie("InputNumber", "The value has reached the maximum safe integer limit."), e) : e <= Number.MIN_SAFE_INTEGER && r === -1 ? (ie("InputNumber", "The value has reached the minimum safe integer limit."), e) : K(e + v.step * r) : g.currentValue, Q = (e) => {
149
- const r = ul(e), m = Jl(e);
150
- if (v.disabledScientific && ["e", "E"].includes(m)) {
151
- e.preventDefault();
146
+ const b = s.toString(), F = b.indexOf(".");
147
+ let R = 0;
148
+ return F !== -1 && (R = b.length - F - 1), R;
149
+ }, oe = (s, b = 1) => me(s) ? s >= Number.MAX_SAFE_INTEGER && b === 1 ? (ke("InputNumber", "The value has reached the maximum safe integer limit."), s) : s <= Number.MIN_SAFE_INTEGER && b === -1 ? (ke("InputNumber", "The value has reached the minimum safe integer limit."), s) : le(s + f.step * b) : k.currentValue, ue = (s) => {
150
+ const b = wl(s), F = ro(s);
151
+ if (f.disabledScientific && ["e", "E"].includes(F)) {
152
+ s.preventDefault();
152
153
  return;
153
154
  }
154
- switch (r) {
155
- case ae.up: {
156
- e.preventDefault(), B();
155
+ switch (b) {
156
+ case Ve.up: {
157
+ s.preventDefault(), J();
157
158
  break;
158
159
  }
159
- case ae.down: {
160
- e.preventDefault(), P();
160
+ case Ve.down: {
161
+ s.preventDefault(), P();
161
162
  break;
162
163
  }
163
164
  }
164
- }, B = () => {
165
- if (v.readonly || j.value || N.value)
165
+ }, J = () => {
166
+ if (f.readonly || Y.value || V.value)
166
167
  return;
167
- const e = Number(R.value) || 0, r = G(e);
168
- Z(r), p(me, g.currentValue), C();
168
+ const s = Number(W.value) || 0, b = oe(s);
169
+ se(b), y(Ue, k.currentValue), ge();
169
170
  }, P = () => {
170
- if (v.readonly || j.value || h.value)
171
+ if (f.readonly || Y.value || E.value)
171
172
  return;
172
- const e = Number(R.value) || 0, r = G(e, -1);
173
- Z(r), p(me, g.currentValue), C();
174
- }, H = (e, r) => {
175
- const { max: m, min: L, step: _, precision: U, stepStrictly: a, valueOnClear: k } = v;
176
- m < L && Qe("InputNumber", "min should not be greater than max.");
177
- let u = Number(e);
178
- if (Se(e) || Number.isNaN(u))
173
+ const s = Number(W.value) || 0, b = oe(s, -1);
174
+ se(b), y(Ue, k.currentValue), ge();
175
+ }, Z = (s, b) => {
176
+ const { max: F, min: R, step: M, precision: q, stepStrictly: ae, valueOnClear: x } = f;
177
+ F < R && Vl("InputNumber", "min should not be greater than max.");
178
+ let U = Number(s);
179
+ if (Ae(s) || Number.isNaN(U))
179
180
  return null;
180
- if (e === "") {
181
- if (k === null)
181
+ if (s === "") {
182
+ if (x === null)
182
183
  return null;
183
- u = $e(k) ? { min: L, max: m }[k] : k;
184
+ U = sl(x) ? { min: R, max: F }[x] : x;
184
185
  }
185
- return a && (u = K(Math.round(K(u / _)) * _, U), u !== e && r && p(te, u)), we(U) || (u = K(u, U)), (u > m || u < L) && (u = u > m ? m : L, r && p(te, u)), u;
186
- }, Z = (e, r = !0) => {
187
- var m;
188
- const L = g.currentValue, _ = H(e);
189
- if (!r) {
190
- p(te, _);
186
+ return ae && (U = le(Math.round(le(U / M)) * M, q), U !== s && b && y(ye, U)), Xe(q) || (U = le(U, q)), (U > F || U < R) && (U = U > F ? F : R, b && y(ye, U)), U;
187
+ }, se = (s, b = !0) => {
188
+ var F;
189
+ const R = k.currentValue, M = Z(s);
190
+ if (!b) {
191
+ y(ye, M);
191
192
  return;
192
193
  }
193
- g.userInput = null, !(L === _ && e) && (p(te, _), L !== _ && p(Oe, _, L), v.validateEvent && ((m = o?.validate) == null || m.call(o, "change").catch((U) => ie(U))), g.currentValue = _);
194
- }, ne = (e) => {
195
- g.userInput = e;
196
- const r = e === "" ? null : Number(e);
197
- p(me, r), Z(r, !1);
198
- }, le = (e) => {
199
- const r = e !== "" ? Number(e) : "";
200
- (q(r) && !Number.isNaN(r) || e === "") && Z(r), C(), g.userInput = null;
201
- }, ee = () => {
202
- var e, r;
203
- (r = (e = b.value) == null ? void 0 : e.focus) == null || r.call(e);
204
- }, F = () => {
205
- var e, r;
206
- (r = (e = b.value) == null ? void 0 : e.blur) == null || r.call(e);
207
- }, T = (e) => {
208
- p("focus", e);
209
- }, J = (e) => {
210
- var r, m;
211
- g.userInput = null, g.currentValue === null && ((r = b.value) != null && r.input) && (b.value.input.value = ""), p("blur", e), v.validateEvent && ((m = o?.validate) == null || m.call(o, "blur").catch((L) => ie(L)));
212
- }, C = () => {
213
- g.currentValue !== v.modelValue && (g.currentValue = v.modelValue);
214
- }, l = (e) => {
215
- document.activeElement === e.target && e.preventDefault();
194
+ k.userInput = null, !(R === M && s) && (y(ye, M), R !== M && y(qe, M, R), f.validateEvent && ((F = A?.validate) == null || F.call(A, "change").catch((q) => ke(q))), k.currentValue = M);
195
+ }, pe = (s) => {
196
+ k.userInput = s;
197
+ const b = s === "" ? null : Number(s);
198
+ y(Ue, b), se(b, !1);
199
+ }, ee = (s) => {
200
+ const b = s !== "" ? Number(s) : "";
201
+ (me(b) && !Number.isNaN(b) || s === "") && se(b), ge(), k.userInput = null;
202
+ }, ce = () => {
203
+ var s, b;
204
+ (b = (s = w.value) == null ? void 0 : s.focus) == null || b.call(s);
205
+ }, _ = () => {
206
+ var s, b;
207
+ (b = (s = w.value) == null ? void 0 : s.blur) == null || b.call(s);
208
+ }, j = (s) => {
209
+ y("focus", s);
210
+ }, re = (s) => {
211
+ var b, F;
212
+ k.userInput = null, k.currentValue === null && ((b = w.value) != null && b.input) && (w.value.input.value = ""), y("blur", s), f.validateEvent && ((F = A?.validate) == null || F.call(A, "blur").catch((R) => ke(R)));
213
+ }, ge = () => {
214
+ k.currentValue !== f.modelValue && (k.currentValue = f.modelValue);
215
+ }, Ce = (s) => {
216
+ document.activeElement === s.target && s.preventDefault();
216
217
  };
217
- return be(() => v.modelValue, (e, r) => {
218
- const m = H(e, !0);
219
- g.userInput === null && m !== r && (g.currentValue = m);
220
- }, { immediate: !0 }), be(() => v.precision, () => {
221
- g.currentValue = H(v.modelValue);
222
- }), el(() => {
223
- var e;
224
- const { min: r, max: m, modelValue: L } = v, _ = (e = b.value) == null ? void 0 : e.input;
225
- if (_.setAttribute("role", "spinbutton"), Number.isFinite(m) ? _.setAttribute("aria-valuemax", String(m)) : _.removeAttribute("aria-valuemax"), Number.isFinite(r) ? _.setAttribute("aria-valuemin", String(r)) : _.removeAttribute("aria-valuemin"), _.setAttribute("aria-valuenow", g.currentValue || g.currentValue === 0 ? String(g.currentValue) : ""), _.setAttribute("aria-disabled", String(j.value)), !q(L) && L != null) {
226
- let U = Number(L);
227
- Number.isNaN(U) && (U = null), p(te, U);
218
+ return Pe(() => f.modelValue, (s, b) => {
219
+ const F = Z(s, !0);
220
+ k.userInput === null && F !== b && (k.currentValue = F);
221
+ }, { immediate: !0 }), Pe(() => f.precision, () => {
222
+ k.currentValue = Z(f.modelValue);
223
+ }), Cl(() => {
224
+ var s;
225
+ const { min: b, max: F, modelValue: R } = f, M = (s = w.value) == null ? void 0 : s.input;
226
+ if (M.setAttribute("role", "spinbutton"), Number.isFinite(F) ? M.setAttribute("aria-valuemax", String(F)) : M.removeAttribute("aria-valuemax"), Number.isFinite(b) ? M.setAttribute("aria-valuemin", String(b)) : M.removeAttribute("aria-valuemin"), M.setAttribute("aria-valuenow", k.currentValue || k.currentValue === 0 ? String(k.currentValue) : ""), M.setAttribute("aria-disabled", String(Y.value)), !me(R) && R != null) {
227
+ let q = Number(R);
228
+ Number.isNaN(q) && (q = null), y(ye, q);
228
229
  }
229
- _.addEventListener("wheel", l, { passive: !1 });
230
- }), xl(() => {
231
- var e, r;
232
- const m = (e = b.value) == null ? void 0 : e.input;
233
- m?.setAttribute("aria-valuenow", `${(r = g.currentValue) != null ? r : ""}`);
230
+ M.addEventListener("wheel", Ce, { passive: !1 });
231
+ }), Yl(() => {
232
+ var s, b;
233
+ const F = (s = w.value) == null ? void 0 : s.input;
234
+ F?.setAttribute("aria-valuenow", `${(b = k.currentValue) != null ? b : ""}`);
234
235
  }), d({
235
- focus: ee,
236
- blur: F
237
- }), (e, r) => (f(), V("div", {
238
- class: Y([
239
- n(S).b(),
240
- n(S).m(n(x)),
241
- n(S).is("disabled", n(j)),
242
- n(S).is("without-controls", !e.controls),
243
- n(S).is("controls-right", n(w)),
244
- n(S).is(e.align, !!e.align)
236
+ focus: ce,
237
+ blur: _
238
+ }), (s, b) => (c(), h("div", {
239
+ class: ve([
240
+ i(z).b(),
241
+ i(z).m(i(o)),
242
+ i(z).is("disabled", i(Y)),
243
+ i(z).is("without-controls", !s.controls),
244
+ i(z).is("controls-right", i(N)),
245
+ i(z).is(s.align, !!s.align)
245
246
  ]),
246
- onDragstart: ll(() => {
247
+ onDragstart: Sl(() => {
247
248
  }, ["prevent"])
248
249
  }, [
249
- e.controls ? pe((f(), V("span", {
250
+ s.controls ? Oe((c(), h("span", {
250
251
  key: 0,
251
252
  role: "button",
252
- "aria-label": n(c)("el.inputNumber.decrease"),
253
- class: Y([n(S).e("decrease"), n(S).is("disabled", n(h))]),
254
- onKeydown: De(P, ["enter"])
253
+ "aria-label": i(g)("el.inputNumber.decrease"),
254
+ class: ve([i(z).e("decrease"), i(z).is("disabled", i(E))]),
255
+ onKeydown: cl(P, ["enter"])
255
256
  }, [
256
- Le(e.$slots, "decrease-icon", {}, () => [
257
- s(n(Ke), null, {
258
- default: z(() => [
259
- n(w) ? (f(), W(n(Bl), { key: 0 })) : (f(), W(n(Al), { key: 1 }))
257
+ Ke(s.$slots, "decrease-icon", {}, () => [
258
+ r(i(il), null, {
259
+ default: O(() => [
260
+ i(N) ? (c(), fe(i(Zl), { key: 0 })) : (c(), fe(i(eo), { key: 1 }))
260
261
  ]),
261
262
  _: 1
262
263
  })
263
264
  ])
264
265
  ], 42, ["aria-label", "onKeydown"])), [
265
- [n(He), P]
266
- ]) : M("v-if", !0),
267
- e.controls ? pe((f(), V("span", {
266
+ [i(bl), P]
267
+ ]) : D("v-if", !0),
268
+ s.controls ? Oe((c(), h("span", {
268
269
  key: 1,
269
270
  role: "button",
270
- "aria-label": n(c)("el.inputNumber.increase"),
271
- class: Y([n(S).e("increase"), n(S).is("disabled", n(N))]),
272
- onKeydown: De(B, ["enter"])
271
+ "aria-label": i(g)("el.inputNumber.increase"),
272
+ class: ve([i(z).e("increase"), i(z).is("disabled", i(V))]),
273
+ onKeydown: cl(J, ["enter"])
273
274
  }, [
274
- Le(e.$slots, "increase-icon", {}, () => [
275
- s(n(Ke), null, {
276
- default: z(() => [
277
- n(w) ? (f(), W(n($l), { key: 0 })) : (f(), W(n(Ee), { key: 1 }))
275
+ Ke(s.$slots, "increase-icon", {}, () => [
276
+ r(i(il), null, {
277
+ default: O(() => [
278
+ i(N) ? (c(), fe(i(lo), { key: 0 })) : (c(), fe(i(Ge), { key: 1 }))
278
279
  ]),
279
280
  _: 1
280
281
  })
281
282
  ])
282
283
  ], 42, ["aria-label", "onKeydown"])), [
283
- [n(He), B]
284
- ]) : M("v-if", !0),
285
- s(n(dl), {
286
- id: e.id,
284
+ [i(bl), J]
285
+ ]) : D("v-if", !0),
286
+ r(i(so), {
287
+ id: s.id,
287
288
  ref_key: "input",
288
- ref: b,
289
+ ref: w,
289
290
  type: "number",
290
- step: e.step,
291
- "model-value": n(R),
292
- placeholder: e.placeholder,
293
- readonly: e.readonly,
294
- disabled: n(j),
295
- size: n(x),
296
- max: e.max,
297
- min: e.min,
298
- name: e.name,
299
- "aria-label": e.ariaLabel,
291
+ step: s.step,
292
+ "model-value": i(W),
293
+ placeholder: s.placeholder,
294
+ readonly: s.readonly,
295
+ disabled: i(Y),
296
+ size: i(o),
297
+ max: s.max,
298
+ min: s.min,
299
+ name: s.name,
300
+ "aria-label": s.ariaLabel,
300
301
  "validate-event": !1,
301
- inputmode: e.inputmode,
302
- onKeydown: Q,
303
- onBlur: J,
304
- onFocus: T,
305
- onInput: ne,
306
- onChange: le
307
- }, Ul({
302
+ inputmode: s.inputmode,
303
+ onKeydown: ue,
304
+ onBlur: re,
305
+ onFocus: j,
306
+ onInput: pe,
307
+ onChange: ee
308
+ }, jl({
308
309
  _: 2
309
310
  }, [
310
- e.$slots.prefix ? {
311
+ s.$slots.prefix ? {
311
312
  name: "prefix",
312
- fn: z(() => [
313
- Le(e.$slots, "prefix")
313
+ fn: O(() => [
314
+ Ke(s.$slots, "prefix")
314
315
  ])
315
316
  } : void 0,
316
- e.$slots.suffix ? {
317
+ s.$slots.suffix ? {
317
318
  name: "suffix",
318
- fn: z(() => [
319
- Le(e.$slots, "suffix")
319
+ fn: O(() => [
320
+ Ke(s.$slots, "suffix")
320
321
  ])
321
322
  } : void 0
322
323
  ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "inputmode"])
323
324
  ], 42, ["onDragstart"]));
324
325
  }
325
326
  });
326
- var ql = /* @__PURE__ */ Xe(Hl, [["__file", "input-number.vue"]]);
327
- const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
327
+ var So = /* @__PURE__ */ dl(Co, [["__file", "input-number.vue"]]);
328
+ const ho = hl(So), _l = Symbol("sliderContextKey"), Vo = Qe({
328
329
  modelValue: {
329
- type: ve([Number, Array]),
330
+ type: xe([Number, Array]),
330
331
  default: 0
331
332
  },
332
333
  id: {
@@ -350,15 +351,15 @@ const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
350
351
  type: Boolean,
351
352
  default: !0
352
353
  },
353
- size: Ae,
354
- inputSize: Ae,
354
+ size: ul,
355
+ inputSize: ul,
355
356
  showStops: Boolean,
356
357
  showTooltip: {
357
358
  type: Boolean,
358
359
  default: !0
359
360
  },
360
361
  formatTooltip: {
361
- type: ve(Function),
362
+ type: xe(Function),
362
363
  default: void 0
363
364
  },
364
365
  disabled: {
@@ -377,7 +378,7 @@ const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
377
378
  default: void 0
378
379
  },
379
380
  formatValueText: {
380
- type: ve(Function),
381
+ type: xe(Function),
381
382
  default: void 0
382
383
  },
383
384
  tooltipClass: {
@@ -386,11 +387,11 @@ const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
386
387
  },
387
388
  placement: {
388
389
  type: String,
389
- values: Ze,
390
+ values: El,
390
391
  default: "top"
391
392
  },
392
393
  marks: {
393
- type: ve(Object)
394
+ type: xe(Object)
394
395
  },
395
396
  validateEvent: {
396
397
  type: Boolean,
@@ -400,12 +401,12 @@ const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
400
401
  type: Boolean,
401
402
  default: !0
402
403
  },
403
- ...il(["ariaLabel"])
404
- }), Be = (t) => q(t) || Ce(t) && t.every(q), et = {
405
- [te]: Be,
406
- [me]: Be,
407
- [Oe]: Be
408
- }, lt = Ue({
404
+ ...Ll(["ariaLabel"])
405
+ }), tl = (l) => me(l) || Je(l) && l.every(me), Lo = {
406
+ [ye]: tl,
407
+ [Ue]: tl,
408
+ [qe]: tl
409
+ }, wo = Qe({
409
410
  modelValue: {
410
411
  type: Number,
411
412
  default: 0
@@ -414,145 +415,145 @@ const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
414
415
  tooltipClass: String,
415
416
  placement: {
416
417
  type: String,
417
- values: Ze,
418
+ values: El,
418
419
  default: "top"
419
420
  }
420
- }), tt = {
421
- [te]: (t) => q(t)
422
- }, at = (t, d, p) => {
423
- const v = $(), c = $(!1), S = I(() => d.value instanceof Function), b = I(() => S.value && d.value(t.modelValue) || t.modelValue), g = je(() => {
424
- p.value && (c.value = !0);
425
- }, 50), o = je(() => {
426
- p.value && (c.value = !1);
421
+ }), ko = {
422
+ [ye]: (l) => me(l)
423
+ }, Fo = (l, d, y) => {
424
+ const f = H(), g = H(!1), z = I(() => d.value instanceof Function), w = I(() => z.value && d.value(l.modelValue) || l.modelValue), k = gl(() => {
425
+ y.value && (g.value = !0);
426
+ }, 50), A = gl(() => {
427
+ y.value && (g.value = !1);
427
428
  }, 50);
428
429
  return {
429
- tooltip: v,
430
- tooltipVisible: c,
431
- formatValue: b,
432
- displayTooltip: g,
433
- hideTooltip: o
430
+ tooltip: f,
431
+ tooltipVisible: g,
432
+ formatValue: w,
433
+ displayTooltip: k,
434
+ hideTooltip: A
434
435
  };
435
- }, ot = (t, d, p) => {
436
+ }, No = (l, d, y) => {
436
437
  const {
437
- disabled: v,
438
- min: c,
439
- max: S,
440
- step: b,
441
- showTooltip: g,
442
- persistent: o,
443
- precision: h,
444
- sliderSize: N,
445
- formatTooltip: y,
446
- emitChange: w,
447
- resetSize: x,
448
- updateDragging: j
449
- } = Il(rl), { tooltip: R, tooltipVisible: K, formatValue: D, displayTooltip: G, hideTooltip: Q } = at(t, y, g), B = $(), P = I(() => `${(t.modelValue - c.value) / (S.value - c.value) * 100}%`), H = I(() => t.vertical ? { bottom: P.value } : { left: P.value }), Z = () => {
450
- d.hovering = !0, G();
451
- }, ne = () => {
452
- d.hovering = !1, d.dragging || Q();
453
- }, le = (k) => {
454
- v.value || (k.preventDefault(), L(k), window.addEventListener("mousemove", _), window.addEventListener("touchmove", _), window.addEventListener("mouseup", U), window.addEventListener("touchend", U), window.addEventListener("contextmenu", U), B.value.focus());
455
- }, ee = (k) => {
456
- v.value || (d.newPosition = Number.parseFloat(P.value) + k / (S.value - c.value) * 100, a(d.newPosition), w());
457
- }, F = () => {
458
- ee(-b.value);
459
- }, T = () => {
460
- ee(b.value);
461
- }, J = () => {
462
- ee(-b.value * 4);
463
- }, C = () => {
464
- ee(b.value * 4);
465
- }, l = () => {
466
- v.value || (a(0), w());
467
- }, e = () => {
468
- v.value || (a(100), w());
469
- }, r = (k) => {
470
- const u = ul(k);
471
- let A = !0;
472
- switch (u) {
473
- case ae.left:
474
- case ae.down:
475
- F();
438
+ disabled: f,
439
+ min: g,
440
+ max: z,
441
+ step: w,
442
+ showTooltip: k,
443
+ persistent: A,
444
+ precision: E,
445
+ sliderSize: V,
446
+ formatTooltip: C,
447
+ emitChange: N,
448
+ resetSize: o,
449
+ updateDragging: Y
450
+ } = al(_l), { tooltip: W, tooltipVisible: le, formatValue: Q, displayTooltip: oe, hideTooltip: ue } = Fo(l, C, k), J = H(), P = I(() => `${(l.modelValue - g.value) / (z.value - g.value) * 100}%`), Z = I(() => l.vertical ? { bottom: P.value } : { left: P.value }), se = () => {
451
+ d.hovering = !0, oe();
452
+ }, pe = () => {
453
+ d.hovering = !1, d.dragging || ue();
454
+ }, ee = (x) => {
455
+ f.value || (x.preventDefault(), R(x), window.addEventListener("mousemove", M), window.addEventListener("touchmove", M), window.addEventListener("mouseup", q), window.addEventListener("touchend", q), window.addEventListener("contextmenu", q), J.value.focus());
456
+ }, ce = (x) => {
457
+ f.value || (d.newPosition = Number.parseFloat(P.value) + x / (z.value - g.value) * 100, ae(d.newPosition), N());
458
+ }, _ = () => {
459
+ ce(-w.value);
460
+ }, j = () => {
461
+ ce(w.value);
462
+ }, re = () => {
463
+ ce(-w.value * 4);
464
+ }, ge = () => {
465
+ ce(w.value * 4);
466
+ }, Ce = () => {
467
+ f.value || (ae(0), N());
468
+ }, s = () => {
469
+ f.value || (ae(100), N());
470
+ }, b = (x) => {
471
+ const U = wl(x);
472
+ let te = !0;
473
+ switch (U) {
474
+ case Ve.left:
475
+ case Ve.down:
476
+ _();
476
477
  break;
477
- case ae.right:
478
- case ae.up:
479
- T();
478
+ case Ve.right:
479
+ case Ve.up:
480
+ j();
480
481
  break;
481
- case ae.home:
482
- l();
482
+ case Ve.home:
483
+ Ce();
483
484
  break;
484
- case ae.end:
485
- e();
485
+ case Ve.end:
486
+ s();
486
487
  break;
487
- case ae.pageDown:
488
- J();
488
+ case Ve.pageDown:
489
+ re();
489
490
  break;
490
- case ae.pageUp:
491
- C();
491
+ case Ve.pageUp:
492
+ ge();
492
493
  break;
493
494
  default:
494
- A = !1;
495
+ te = !1;
495
496
  break;
496
497
  }
497
- A && k.preventDefault();
498
- }, m = (k) => {
499
- let u, A;
500
- return k.type.startsWith("touch") ? (A = k.touches[0].clientY, u = k.touches[0].clientX) : (A = k.clientY, u = k.clientX), {
501
- clientX: u,
502
- clientY: A
498
+ te && x.preventDefault();
499
+ }, F = (x) => {
500
+ let U, te;
501
+ return x.type.startsWith("touch") ? (te = x.touches[0].clientY, U = x.touches[0].clientX) : (te = x.clientY, U = x.clientX), {
502
+ clientX: U,
503
+ clientY: te
503
504
  };
504
- }, L = (k) => {
505
+ }, R = (x) => {
505
506
  d.dragging = !0, d.isClick = !0;
506
- const { clientX: u, clientY: A } = m(k);
507
- t.vertical ? d.startY = A : d.startX = u, d.startPosition = Number.parseFloat(P.value), d.newPosition = d.startPosition;
508
- }, _ = (k) => {
507
+ const { clientX: U, clientY: te } = F(x);
508
+ l.vertical ? d.startY = te : d.startX = U, d.startPosition = Number.parseFloat(P.value), d.newPosition = d.startPosition;
509
+ }, M = (x) => {
509
510
  if (d.dragging) {
510
- d.isClick = !1, G(), x();
511
- let u;
512
- const { clientX: A, clientY: ge } = m(k);
513
- t.vertical ? (d.currentY = ge, u = (d.startY - d.currentY) / N.value * 100) : (d.currentX = A, u = (d.currentX - d.startX) / N.value * 100), d.newPosition = d.startPosition + u, a(d.newPosition);
511
+ d.isClick = !1, oe(), o();
512
+ let U;
513
+ const { clientX: te, clientY: Ne } = F(x);
514
+ l.vertical ? (d.currentY = Ne, U = (d.startY - d.currentY) / V.value * 100) : (d.currentX = te, U = (d.currentX - d.startX) / V.value * 100), d.newPosition = d.startPosition + U, ae(d.newPosition);
514
515
  }
515
- }, U = () => {
516
+ }, q = () => {
516
517
  d.dragging && (setTimeout(() => {
517
- d.dragging = !1, d.hovering || Q(), d.isClick || a(d.newPosition), w();
518
- }, 0), window.removeEventListener("mousemove", _), window.removeEventListener("touchmove", _), window.removeEventListener("mouseup", U), window.removeEventListener("touchend", U), window.removeEventListener("contextmenu", U));
519
- }, a = async (k) => {
520
- if (k === null || Number.isNaN(+k))
518
+ d.dragging = !1, d.hovering || ue(), d.isClick || ae(d.newPosition), N();
519
+ }, 0), window.removeEventListener("mousemove", M), window.removeEventListener("touchmove", M), window.removeEventListener("mouseup", q), window.removeEventListener("touchend", q), window.removeEventListener("contextmenu", q));
520
+ }, ae = async (x) => {
521
+ if (x === null || Number.isNaN(+x))
521
522
  return;
522
- k = cl(k, 0, 100);
523
- const u = Math.floor((S.value - c.value) / b.value), A = u * b.value / (S.value - c.value) * 100, ge = A + (100 - A) / 2;
524
- let E;
525
- if (k < A) {
526
- const he = A / u, se = Math.round(k / he);
527
- E = c.value + se * b.value;
528
- } else k < ge ? E = c.value + u * b.value : E = S.value;
529
- E = Number.parseFloat(E.toFixed(h.value)), E !== t.modelValue && p(te, E), !d.dragging && t.modelValue !== d.oldValue && (d.oldValue = t.modelValue), await ze(), d.dragging && G(), R.value.updatePopper();
523
+ x = to(x, 0, 100);
524
+ const U = Math.floor((z.value - g.value) / w.value), te = U * w.value / (z.value - g.value) * 100, Ne = te + (100 - te) / 2;
525
+ let L;
526
+ if (x < te) {
527
+ const we = te / U, Se = Math.round(x / we);
528
+ L = g.value + Se * w.value;
529
+ } else x < Ne ? L = g.value + U * w.value : L = z.value;
530
+ L = Number.parseFloat(L.toFixed(E.value)), L !== l.modelValue && y(ye, L), !d.dragging && l.modelValue !== d.oldValue && (d.oldValue = l.modelValue), await De(), d.dragging && oe(), W.value.updatePopper();
530
531
  };
531
- return be(() => d.dragging, (k) => {
532
- j(k);
533
- }), xe(B, "touchstart", le, { passive: !1 }), {
534
- disabled: v,
535
- button: B,
536
- tooltip: R,
537
- tooltipVisible: K,
538
- showTooltip: g,
539
- persistent: o,
540
- wrapperStyle: H,
541
- formatValue: D,
542
- handleMouseEnter: Z,
543
- handleMouseLeave: ne,
544
- onButtonDown: le,
545
- onKeyDown: r,
546
- setPosition: a
532
+ return Pe(() => d.dragging, (x) => {
533
+ Y(x);
534
+ }), He(J, "touchstart", ee, { passive: !1 }), {
535
+ disabled: f,
536
+ button: J,
537
+ tooltip: W,
538
+ tooltipVisible: le,
539
+ showTooltip: k,
540
+ persistent: A,
541
+ wrapperStyle: Z,
542
+ formatValue: Q,
543
+ handleMouseEnter: se,
544
+ handleMouseLeave: pe,
545
+ onButtonDown: ee,
546
+ onKeyDown: b,
547
+ setPosition: ae
547
548
  };
548
- }, nt = ue({
549
+ }, zo = Fe({
549
550
  name: "ElSliderButton"
550
- }), it = /* @__PURE__ */ ue({
551
- ...nt,
552
- props: lt,
553
- emits: tt,
554
- setup(t, { expose: d, emit: p }) {
555
- const v = t, c = Ie("slider"), S = Je({
551
+ }), Eo = /* @__PURE__ */ Fe({
552
+ ...zo,
553
+ props: wo,
554
+ emits: ko,
555
+ setup(l, { expose: d, emit: y }) {
556
+ const f = l, g = Ze("slider"), z = rl({
556
557
  hovering: !1,
557
558
  dragging: !1,
558
559
  isClick: !1,
@@ -562,58 +563,58 @@ const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
562
563
  currentY: 0,
563
564
  startPosition: 0,
564
565
  newPosition: 0,
565
- oldValue: v.modelValue
566
- }), b = I(() => N.value ? y.value : !1), {
567
- disabled: g,
568
- button: o,
569
- tooltip: h,
570
- showTooltip: N,
571
- persistent: y,
572
- tooltipVisible: w,
573
- wrapperStyle: x,
574
- formatValue: j,
575
- handleMouseEnter: R,
576
- handleMouseLeave: K,
577
- onButtonDown: D,
578
- onKeyDown: G,
579
- setPosition: Q
580
- } = ot(v, S, p), { hovering: B, dragging: P } = Re(S);
566
+ oldValue: f.modelValue
567
+ }), w = I(() => V.value ? C.value : !1), {
568
+ disabled: k,
569
+ button: A,
570
+ tooltip: E,
571
+ showTooltip: V,
572
+ persistent: C,
573
+ tooltipVisible: N,
574
+ wrapperStyle: o,
575
+ formatValue: Y,
576
+ handleMouseEnter: W,
577
+ handleMouseLeave: le,
578
+ onButtonDown: Q,
579
+ onKeyDown: oe,
580
+ setPosition: ue
581
+ } = No(f, z, y), { hovering: J, dragging: P } = nl(z);
581
582
  return d({
582
- onButtonDown: D,
583
- onKeyDown: G,
584
- setPosition: Q,
585
- hovering: B,
583
+ onButtonDown: Q,
584
+ onKeyDown: oe,
585
+ setPosition: ue,
586
+ hovering: J,
586
587
  dragging: P
587
- }), (H, Z) => (f(), V("div", {
588
+ }), (Z, se) => (c(), h("div", {
588
589
  ref_key: "button",
589
- ref: o,
590
- class: Y([n(c).e("button-wrapper"), { hover: n(B), dragging: n(P) }]),
591
- style: ce(n(x)),
592
- tabindex: n(g) ? void 0 : 0,
593
- onMouseenter: n(R),
594
- onMouseleave: n(K),
595
- onMousedown: n(D),
596
- onFocus: n(R),
597
- onBlur: n(K),
598
- onKeydown: n(G)
590
+ ref: A,
591
+ class: ve([i(g).e("button-wrapper"), { hover: i(J), dragging: i(P) }]),
592
+ style: Te(i(o)),
593
+ tabindex: i(k) ? void 0 : 0,
594
+ onMouseenter: i(W),
595
+ onMouseleave: i(le),
596
+ onMousedown: i(Q),
597
+ onFocus: i(W),
598
+ onBlur: i(le),
599
+ onKeydown: i(oe)
599
600
  }, [
600
- s(n(vl), {
601
+ r(i(vo), {
601
602
  ref_key: "tooltip",
602
- ref: h,
603
- visible: n(w),
604
- placement: H.placement,
603
+ ref: E,
604
+ visible: i(N),
605
+ placement: Z.placement,
605
606
  "fallback-placements": ["top", "bottom", "right", "left"],
606
607
  "stop-popper-mouse-event": !1,
607
- "popper-class": H.tooltipClass,
608
- disabled: !n(N),
609
- persistent: n(b)
608
+ "popper-class": Z.tooltipClass,
609
+ disabled: !i(V),
610
+ persistent: i(w)
610
611
  }, {
611
- content: z(() => [
612
- i("span", null, Fe(n(j)), 1)
612
+ content: O(() => [
613
+ u("span", null, je(i(Y)), 1)
613
614
  ]),
614
- default: z(() => [
615
- i("div", {
616
- class: Y([n(c).e("button"), { hover: n(B), dragging: n(P) }])
615
+ default: O(() => [
616
+ u("div", {
617
+ class: ve([i(g).e("button"), { hover: i(J), dragging: i(P) }])
617
618
  }, null, 2)
618
619
  ]),
619
620
  _: 1
@@ -621,751 +622,1017 @@ const Ql = nl(ql), rl = Symbol("sliderContextKey"), Zl = Ue({
621
622
  ], 46, ["tabindex", "onMouseenter", "onMouseleave", "onMousedown", "onFocus", "onBlur", "onKeydown"]));
622
623
  }
623
624
  });
624
- var qe = /* @__PURE__ */ Xe(it, [["__file", "button.vue"]]);
625
- const ut = Ue({
625
+ var yl = /* @__PURE__ */ dl(Eo, [["__file", "button.vue"]]);
626
+ const _o = Qe({
626
627
  mark: {
627
- type: ve([String, Object]),
628
+ type: xe([String, Object]),
628
629
  default: void 0
629
630
  }
630
631
  });
631
- var st = ue({
632
+ var xo = Fe({
632
633
  name: "ElSliderMarker",
633
- props: ut,
634
- setup(t) {
635
- const d = Ie("slider"), p = I(() => $e(t.mark) ? t.mark : t.mark.label), v = I(() => $e(t.mark) ? void 0 : t.mark.style);
636
- return () => Ol("div", {
634
+ props: _o,
635
+ setup(l) {
636
+ const d = Ze("slider"), y = I(() => sl(l.mark) ? l.mark : l.mark.label), f = I(() => sl(l.mark) ? void 0 : l.mark.style);
637
+ return () => Gl("div", {
637
638
  class: d.e("marks-text"),
638
- style: v.value
639
- }, p.value);
639
+ style: f.value
640
+ }, y.value);
640
641
  }
641
642
  });
642
- const rt = (t, d, p) => {
643
- const { formItem: v } = tl(), c = Ml(), S = $(), b = $(), g = {
644
- firstButton: S,
645
- secondButton: b
646
- }, o = ol(), h = I(() => Math.min(d.firstValue, d.secondValue)), N = I(() => Math.max(d.firstValue, d.secondValue)), y = I(() => t.range ? `${100 * (N.value - h.value) / (t.max - t.min)}%` : `${100 * (d.firstValue - t.min) / (t.max - t.min)}%`), w = I(() => t.range ? `${100 * (h.value - t.min) / (t.max - t.min)}%` : "0%"), x = I(() => t.vertical ? { height: t.height } : {}), j = I(() => t.vertical ? {
647
- height: y.value,
648
- bottom: w.value
643
+ const Uo = (l, d, y) => {
644
+ const { formItem: f } = Fl(), g = Dl(), z = H(), w = H(), k = {
645
+ firstButton: z,
646
+ secondButton: w
647
+ }, A = zl(), E = I(() => Math.min(d.firstValue, d.secondValue)), V = I(() => Math.max(d.firstValue, d.secondValue)), C = I(() => l.range ? `${100 * (V.value - E.value) / (l.max - l.min)}%` : `${100 * (d.firstValue - l.min) / (l.max - l.min)}%`), N = I(() => l.range ? `${100 * (E.value - l.min) / (l.max - l.min)}%` : "0%"), o = I(() => l.vertical ? { height: l.height } : {}), Y = I(() => l.vertical ? {
648
+ height: C.value,
649
+ bottom: N.value
649
650
  } : {
650
- width: y.value,
651
- left: w.value
652
- }), R = () => {
653
- if (c.value) {
654
- const F = c.value.getBoundingClientRect();
655
- d.sliderSize = F[t.vertical ? "height" : "width"];
651
+ width: C.value,
652
+ left: N.value
653
+ }), W = () => {
654
+ if (g.value) {
655
+ const _ = g.value.getBoundingClientRect();
656
+ d.sliderSize = _[l.vertical ? "height" : "width"];
656
657
  }
657
- }, K = (F) => {
658
- const T = t.min + F * (t.max - t.min) / 100;
659
- if (!t.range)
660
- return S;
661
- let J;
662
- return Math.abs(h.value - T) < Math.abs(N.value - T) ? J = d.firstValue < d.secondValue ? "firstButton" : "secondButton" : J = d.firstValue > d.secondValue ? "firstButton" : "secondButton", g[J];
663
- }, D = (F) => {
664
- const T = K(F);
665
- return T.value.setPosition(F), T;
666
- }, G = (F) => {
667
- d.firstValue = F ?? t.min, B(t.range ? [h.value, N.value] : F ?? t.min);
668
- }, Q = (F) => {
669
- d.secondValue = F, t.range && B([h.value, N.value]);
670
- }, B = (F) => {
671
- p(te, F), p(me, F);
658
+ }, le = (_) => {
659
+ const j = l.min + _ * (l.max - l.min) / 100;
660
+ if (!l.range)
661
+ return z;
662
+ let re;
663
+ return Math.abs(E.value - j) < Math.abs(V.value - j) ? re = d.firstValue < d.secondValue ? "firstButton" : "secondButton" : re = d.firstValue > d.secondValue ? "firstButton" : "secondButton", k[re];
664
+ }, Q = (_) => {
665
+ const j = le(_);
666
+ return j.value.setPosition(_), j;
667
+ }, oe = (_) => {
668
+ d.firstValue = _ ?? l.min, J(l.range ? [E.value, V.value] : _ ?? l.min);
669
+ }, ue = (_) => {
670
+ d.secondValue = _, l.range && J([E.value, V.value]);
671
+ }, J = (_) => {
672
+ y(ye, _), y(Ue, _);
672
673
  }, P = async () => {
673
- await ze(), p(Oe, t.range ? [h.value, N.value] : t.modelValue);
674
- }, H = (F) => {
675
- var T, J, C, l, e, r;
676
- if (o.value || d.dragging)
674
+ await De(), y(qe, l.range ? [E.value, V.value] : l.modelValue);
675
+ }, Z = (_) => {
676
+ var j, re, ge, Ce, s, b;
677
+ if (A.value || d.dragging)
677
678
  return;
678
- R();
679
- let m = 0;
680
- if (t.vertical) {
681
- const L = (C = (J = (T = F.touches) == null ? void 0 : T.item(0)) == null ? void 0 : J.clientY) != null ? C : F.clientY;
682
- m = (c.value.getBoundingClientRect().bottom - L) / d.sliderSize * 100;
679
+ W();
680
+ let F = 0;
681
+ if (l.vertical) {
682
+ const R = (ge = (re = (j = _.touches) == null ? void 0 : j.item(0)) == null ? void 0 : re.clientY) != null ? ge : _.clientY;
683
+ F = (g.value.getBoundingClientRect().bottom - R) / d.sliderSize * 100;
683
684
  } else {
684
- const L = (r = (e = (l = F.touches) == null ? void 0 : l.item(0)) == null ? void 0 : e.clientX) != null ? r : F.clientX, _ = c.value.getBoundingClientRect().left;
685
- m = (L - _) / d.sliderSize * 100;
685
+ const R = (b = (s = (Ce = _.touches) == null ? void 0 : Ce.item(0)) == null ? void 0 : s.clientX) != null ? b : _.clientX, M = g.value.getBoundingClientRect().left;
686
+ F = (R - M) / d.sliderSize * 100;
686
687
  }
687
- if (!(m < 0 || m > 100))
688
- return D(m);
688
+ if (!(F < 0 || F > 100))
689
+ return Q(F);
689
690
  };
690
691
  return {
691
- elFormItem: v,
692
- slider: c,
693
- firstButton: S,
694
- secondButton: b,
695
- sliderDisabled: o,
696
- minValue: h,
697
- maxValue: N,
698
- runwayStyle: x,
699
- barStyle: j,
700
- resetSize: R,
701
- setPosition: D,
692
+ elFormItem: f,
693
+ slider: g,
694
+ firstButton: z,
695
+ secondButton: w,
696
+ sliderDisabled: A,
697
+ minValue: E,
698
+ maxValue: V,
699
+ runwayStyle: o,
700
+ barStyle: Y,
701
+ resetSize: W,
702
+ setPosition: Q,
702
703
  emitChange: P,
703
- onSliderWrapperPrevent: (F) => {
704
- var T, J;
705
- ((T = g.firstButton.value) != null && T.dragging || (J = g.secondButton.value) != null && J.dragging) && F.preventDefault();
704
+ onSliderWrapperPrevent: (_) => {
705
+ var j, re;
706
+ ((j = k.firstButton.value) != null && j.dragging || (re = k.secondButton.value) != null && re.dragging) && _.preventDefault();
706
707
  },
707
- onSliderClick: (F) => {
708
- H(F) && P();
708
+ onSliderClick: (_) => {
709
+ Z(_) && P();
709
710
  },
710
- onSliderDown: async (F) => {
711
- const T = H(F);
712
- T && (await ze(), T.value.onButtonDown(F));
711
+ onSliderDown: async (_) => {
712
+ const j = Z(_);
713
+ j && (await De(), j.value.onButtonDown(_));
713
714
  },
714
- onSliderMarkerDown: (F) => {
715
- if (o.value || d.dragging)
715
+ onSliderMarkerDown: (_) => {
716
+ if (A.value || d.dragging)
716
717
  return;
717
- D(F) && P();
718
+ Q(_) && P();
718
719
  },
719
- setFirstValue: G,
720
- setSecondValue: Q
720
+ setFirstValue: oe,
721
+ setSecondValue: ue
721
722
  };
722
- }, dt = (t, d, p, v) => ({
723
+ }, Io = (l, d, y, f) => ({
723
724
  stops: I(() => {
724
- if (!t.showStops || t.min > t.max)
725
+ if (!l.showStops || l.min > l.max)
725
726
  return [];
726
- if (t.step === 0)
727
- return ie("ElSlider", "step should not be 0."), [];
728
- const b = Math.ceil((t.max - t.min) / t.step), g = 100 * t.step / (t.max - t.min), o = Array.from({ length: b - 1 }).map((h, N) => (N + 1) * g);
729
- return t.range ? o.filter((h) => h < 100 * (p.value - t.min) / (t.max - t.min) || h > 100 * (v.value - t.min) / (t.max - t.min)) : o.filter((h) => h > 100 * (d.firstValue - t.min) / (t.max - t.min));
727
+ if (l.step === 0)
728
+ return ke("ElSlider", "step should not be 0."), [];
729
+ const w = Math.ceil((l.max - l.min) / l.step), k = 100 * l.step / (l.max - l.min), A = Array.from({ length: w - 1 }).map((E, V) => (V + 1) * k);
730
+ return l.range ? A.filter((E) => E < 100 * (y.value - l.min) / (l.max - l.min) || E > 100 * (f.value - l.min) / (l.max - l.min)) : A.filter((E) => E > 100 * (d.firstValue - l.min) / (l.max - l.min));
730
731
  }),
731
- getStopStyle: (b) => t.vertical ? { bottom: `${b}%` } : { left: `${b}%` }
732
- }), vt = (t) => I(() => t.marks ? Object.keys(t.marks).map(Number.parseFloat).sort((p, v) => p - v).filter((p) => p <= t.max && p >= t.min).map((p) => ({
733
- point: p,
734
- position: (p - t.min) * 100 / (t.max - t.min),
735
- mark: t.marks[p]
736
- })) : []), mt = (t, d, p, v, c, S) => {
737
- const b = (h) => {
738
- c(te, h), c(me, h);
739
- }, g = () => t.range ? ![p.value, v.value].every((h, N) => h === d.oldValue[N]) : t.modelValue !== d.oldValue, o = () => {
740
- var h, N;
741
- t.min > t.max && Qe("Slider", "min should not be greater than max.");
742
- const y = t.modelValue;
743
- t.range && Ce(y) ? y[1] < t.min ? b([t.min, t.min]) : y[0] > t.max ? b([t.max, t.max]) : y[0] < t.min ? b([t.min, y[1]]) : y[1] > t.max ? b([y[0], t.max]) : (d.firstValue = y[0], d.secondValue = y[1], g() && (t.validateEvent && ((h = S?.validate) == null || h.call(S, "change").catch((w) => ie(w))), d.oldValue = y.slice())) : !t.range && q(y) && !Number.isNaN(y) && (y < t.min ? b(t.min) : y > t.max ? b(t.max) : (d.firstValue = y, g() && (t.validateEvent && ((N = S?.validate) == null || N.call(S, "change").catch((w) => ie(w))), d.oldValue = y)));
732
+ getStopStyle: (w) => l.vertical ? { bottom: `${w}%` } : { left: `${w}%` }
733
+ }), To = (l) => I(() => l.marks ? Object.keys(l.marks).map(Number.parseFloat).sort((y, f) => y - f).filter((y) => y <= l.max && y >= l.min).map((y) => ({
734
+ point: y,
735
+ position: (y - l.min) * 100 / (l.max - l.min),
736
+ mark: l.marks[y]
737
+ })) : []), Oo = (l, d, y, f, g, z) => {
738
+ const w = (E) => {
739
+ g(ye, E), g(Ue, E);
740
+ }, k = () => l.range ? ![y.value, f.value].every((E, V) => E === d.oldValue[V]) : l.modelValue !== d.oldValue, A = () => {
741
+ var E, V;
742
+ l.min > l.max && Vl("Slider", "min should not be greater than max.");
743
+ const C = l.modelValue;
744
+ l.range && Je(C) ? C[1] < l.min ? w([l.min, l.min]) : C[0] > l.max ? w([l.max, l.max]) : C[0] < l.min ? w([l.min, C[1]]) : C[1] > l.max ? w([C[0], l.max]) : (d.firstValue = C[0], d.secondValue = C[1], k() && (l.validateEvent && ((E = z?.validate) == null || E.call(z, "change").catch((N) => ke(N))), d.oldValue = C.slice())) : !l.range && me(C) && !Number.isNaN(C) && (C < l.min ? w(l.min) : C > l.max ? w(l.max) : (d.firstValue = C, k() && (l.validateEvent && ((V = z?.validate) == null || V.call(z, "change").catch((N) => ke(N))), d.oldValue = C)));
744
745
  };
745
- o(), be(() => d.dragging, (h) => {
746
- h || o();
747
- }), be(() => t.modelValue, (h, N) => {
748
- d.dragging || Ce(h) && Ce(N) && h.every((y, w) => y === N[w]) && d.firstValue === h[0] && d.secondValue === h[1] || o();
746
+ A(), Pe(() => d.dragging, (E) => {
747
+ E || A();
748
+ }), Pe(() => l.modelValue, (E, V) => {
749
+ d.dragging || Je(E) && Je(V) && E.every((C, N) => C === V[N]) && d.firstValue === E[0] && d.secondValue === E[1] || A();
749
750
  }, {
750
751
  deep: !0
751
- }), be(() => [t.min, t.max], () => {
752
- o();
752
+ }), Pe(() => [l.min, l.max], () => {
753
+ A();
753
754
  });
754
- }, ft = (t, d, p) => {
755
- const v = $();
756
- return el(async () => {
757
- t.range ? (Ce(t.modelValue) ? (d.firstValue = Math.max(t.min, t.modelValue[0]), d.secondValue = Math.min(t.max, t.modelValue[1])) : (d.firstValue = t.min, d.secondValue = t.max), d.oldValue = [d.firstValue, d.secondValue]) : (!q(t.modelValue) || Number.isNaN(t.modelValue) ? d.firstValue = t.min : d.firstValue = Math.min(t.max, Math.max(t.min, t.modelValue)), d.oldValue = d.firstValue), xe(window, "resize", p), await ze(), p();
755
+ }, Po = (l, d, y) => {
756
+ const f = H();
757
+ return Cl(async () => {
758
+ l.range ? (Je(l.modelValue) ? (d.firstValue = Math.max(l.min, l.modelValue[0]), d.secondValue = Math.min(l.max, l.modelValue[1])) : (d.firstValue = l.min, d.secondValue = l.max), d.oldValue = [d.firstValue, d.secondValue]) : (!me(l.modelValue) || Number.isNaN(l.modelValue) ? d.firstValue = l.min : d.firstValue = Math.min(l.max, Math.max(l.min, l.modelValue)), d.oldValue = d.firstValue), He(window, "resize", y), await De(), y();
758
759
  }), {
759
- sliderWrapper: v
760
+ sliderWrapper: f
760
761
  };
761
- }, ct = ue({
762
+ }, Mo = Fe({
762
763
  name: "ElSlider"
763
- }), pt = /* @__PURE__ */ ue({
764
- ...ct,
765
- props: Zl,
766
- emits: et,
767
- setup(t, { expose: d, emit: p }) {
768
- const v = t, c = Ie("slider"), { t: S } = sl(), b = Je({
764
+ }), Bo = /* @__PURE__ */ Fe({
765
+ ...Mo,
766
+ props: Vo,
767
+ emits: Lo,
768
+ setup(l, { expose: d, emit: y }) {
769
+ const f = l, g = Ze("slider"), { t: z } = kl(), w = rl({
769
770
  firstValue: 0,
770
771
  secondValue: 0,
771
772
  oldValue: 0,
772
773
  dragging: !1,
773
774
  sliderSize: 1
774
775
  }), {
775
- elFormItem: g,
776
- slider: o,
777
- firstButton: h,
778
- secondButton: N,
779
- sliderDisabled: y,
780
- minValue: w,
781
- maxValue: x,
782
- runwayStyle: j,
783
- barStyle: R,
784
- resetSize: K,
785
- emitChange: D,
786
- onSliderWrapperPrevent: G,
787
- onSliderClick: Q,
788
- onSliderDown: B,
776
+ elFormItem: k,
777
+ slider: A,
778
+ firstButton: E,
779
+ secondButton: V,
780
+ sliderDisabled: C,
781
+ minValue: N,
782
+ maxValue: o,
783
+ runwayStyle: Y,
784
+ barStyle: W,
785
+ resetSize: le,
786
+ emitChange: Q,
787
+ onSliderWrapperPrevent: oe,
788
+ onSliderClick: ue,
789
+ onSliderDown: J,
789
790
  onSliderMarkerDown: P,
790
- setFirstValue: H,
791
- setSecondValue: Z
792
- } = rt(v, b, p), { stops: ne, getStopStyle: le } = dt(v, b, w, x), { inputId: ee, isLabeledByFormItem: F } = Kl(v, {
793
- formItemContext: g
794
- }), T = al(), J = I(() => v.inputSize || T.value), C = I(() => v.ariaLabel || S("el.slider.defaultLabel", {
795
- min: v.min,
796
- max: v.max
797
- })), l = I(() => v.range ? v.rangeStartLabel || S("el.slider.defaultRangeStartLabel") : C.value), e = I(() => v.formatValueText ? v.formatValueText(k.value) : `${k.value}`), r = I(() => v.rangeEndLabel || S("el.slider.defaultRangeEndLabel")), m = I(() => v.formatValueText ? v.formatValueText(u.value) : `${u.value}`), L = I(() => [
798
- c.b(),
799
- c.m(T.value),
800
- c.is("vertical", v.vertical),
801
- { [c.m("with-input")]: v.showInput }
802
- ]), _ = vt(v);
803
- mt(v, b, w, x, p, g);
804
- const U = I(() => {
805
- const E = [v.min, v.max, v.step].map((he) => {
806
- const se = `${he}`.split(".")[1];
807
- return se ? se.length : 0;
791
+ setFirstValue: Z,
792
+ setSecondValue: se
793
+ } = Uo(f, w, y), { stops: pe, getStopStyle: ee } = Io(f, w, N, o), { inputId: ce, isLabeledByFormItem: _ } = fo(f, {
794
+ formItemContext: k
795
+ }), j = Nl(), re = I(() => f.inputSize || j.value), ge = I(() => f.ariaLabel || z("el.slider.defaultLabel", {
796
+ min: f.min,
797
+ max: f.max
798
+ })), Ce = I(() => f.range ? f.rangeStartLabel || z("el.slider.defaultRangeStartLabel") : ge.value), s = I(() => f.formatValueText ? f.formatValueText(x.value) : `${x.value}`), b = I(() => f.rangeEndLabel || z("el.slider.defaultRangeEndLabel")), F = I(() => f.formatValueText ? f.formatValueText(U.value) : `${U.value}`), R = I(() => [
799
+ g.b(),
800
+ g.m(j.value),
801
+ g.is("vertical", f.vertical),
802
+ { [g.m("with-input")]: f.showInput }
803
+ ]), M = To(f);
804
+ Oo(f, w, N, o, y, k);
805
+ const q = I(() => {
806
+ const L = [f.min, f.max, f.step].map((we) => {
807
+ const Se = `${we}`.split(".")[1];
808
+ return Se ? Se.length : 0;
808
809
  });
809
- return Math.max.apply(null, E);
810
- }), { sliderWrapper: a } = ft(v, b, K), { firstValue: k, secondValue: u, sliderSize: A } = Re(b), ge = (E) => {
811
- b.dragging = E;
810
+ return Math.max.apply(null, L);
811
+ }), { sliderWrapper: ae } = Po(f, w, le), { firstValue: x, secondValue: U, sliderSize: te } = nl(w), Ne = (L) => {
812
+ w.dragging = L;
812
813
  };
813
- return xe(a, "touchstart", G, {
814
+ return He(ae, "touchstart", oe, {
814
815
  passive: !1
815
- }), xe(a, "touchmove", G, {
816
+ }), He(ae, "touchmove", oe, {
816
817
  passive: !1
817
- }), Tl(rl, {
818
- ...Re(v),
819
- sliderSize: A,
820
- disabled: y,
821
- precision: U,
822
- emitChange: D,
823
- resetSize: K,
824
- updateDragging: ge
818
+ }), Hl(_l, {
819
+ ...nl(f),
820
+ sliderSize: te,
821
+ disabled: C,
822
+ precision: q,
823
+ emitChange: Q,
824
+ resetSize: le,
825
+ updateDragging: Ne
825
826
  }), d({
826
- onSliderClick: Q
827
- }), (E, he) => {
828
- var se, We;
829
- return f(), V("div", {
830
- id: E.range ? n(ee) : void 0,
827
+ onSliderClick: ue
828
+ }), (L, we) => {
829
+ var Se, X;
830
+ return c(), h("div", {
831
+ id: L.range ? i(ce) : void 0,
831
832
  ref_key: "sliderWrapper",
832
- ref: a,
833
- class: Y(n(L)),
834
- role: E.range ? "group" : void 0,
835
- "aria-label": E.range && !n(F) ? n(C) : void 0,
836
- "aria-labelledby": E.range && n(F) ? (se = n(g)) == null ? void 0 : se.labelId : void 0
833
+ ref: ae,
834
+ class: ve(i(R)),
835
+ role: L.range ? "group" : void 0,
836
+ "aria-label": L.range && !i(_) ? i(ge) : void 0,
837
+ "aria-labelledby": L.range && i(_) ? (Se = i(k)) == null ? void 0 : Se.labelId : void 0
837
838
  }, [
838
- i("div", {
839
+ u("div", {
839
840
  ref_key: "slider",
840
- ref: o,
841
- class: Y([
842
- n(c).e("runway"),
843
- { "show-input": E.showInput && !E.range },
844
- n(c).is("disabled", n(y))
841
+ ref: A,
842
+ class: ve([
843
+ i(g).e("runway"),
844
+ { "show-input": L.showInput && !L.range },
845
+ i(g).is("disabled", i(C))
845
846
  ]),
846
- style: ce(n(j)),
847
- onMousedown: n(B),
848
- onTouchstartPassive: n(B)
847
+ style: Te(i(Y)),
848
+ onMousedown: i(J),
849
+ onTouchstartPassive: i(J)
849
850
  }, [
850
- i("div", {
851
- class: Y(n(c).e("bar")),
852
- style: ce(n(R))
851
+ u("div", {
852
+ class: ve(i(g).e("bar")),
853
+ style: Te(i(W))
853
854
  }, null, 6),
854
- s(qe, {
855
- id: E.range ? void 0 : n(ee),
855
+ r(yl, {
856
+ id: L.range ? void 0 : i(ce),
856
857
  ref_key: "firstButton",
857
- ref: h,
858
- "model-value": n(k),
859
- vertical: E.vertical,
860
- "tooltip-class": E.tooltipClass,
861
- placement: E.placement,
858
+ ref: E,
859
+ "model-value": i(x),
860
+ vertical: L.vertical,
861
+ "tooltip-class": L.tooltipClass,
862
+ placement: L.placement,
862
863
  role: "slider",
863
- "aria-label": E.range || !n(F) ? n(l) : void 0,
864
- "aria-labelledby": !E.range && n(F) ? (We = n(g)) == null ? void 0 : We.labelId : void 0,
865
- "aria-valuemin": E.min,
866
- "aria-valuemax": E.range ? n(u) : E.max,
867
- "aria-valuenow": n(k),
868
- "aria-valuetext": n(e),
869
- "aria-orientation": E.vertical ? "vertical" : "horizontal",
870
- "aria-disabled": n(y),
871
- "onUpdate:modelValue": n(H)
864
+ "aria-label": L.range || !i(_) ? i(Ce) : void 0,
865
+ "aria-labelledby": !L.range && i(_) ? (X = i(k)) == null ? void 0 : X.labelId : void 0,
866
+ "aria-valuemin": L.min,
867
+ "aria-valuemax": L.range ? i(U) : L.max,
868
+ "aria-valuenow": i(x),
869
+ "aria-valuetext": i(s),
870
+ "aria-orientation": L.vertical ? "vertical" : "horizontal",
871
+ "aria-disabled": i(C),
872
+ "onUpdate:modelValue": i(Z)
872
873
  }, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
873
- E.range ? (f(), W(qe, {
874
+ L.range ? (c(), fe(yl, {
874
875
  key: 0,
875
876
  ref_key: "secondButton",
876
- ref: N,
877
- "model-value": n(u),
878
- vertical: E.vertical,
879
- "tooltip-class": E.tooltipClass,
880
- placement: E.placement,
877
+ ref: V,
878
+ "model-value": i(U),
879
+ vertical: L.vertical,
880
+ "tooltip-class": L.tooltipClass,
881
+ placement: L.placement,
881
882
  role: "slider",
882
- "aria-label": n(r),
883
- "aria-valuemin": n(k),
884
- "aria-valuemax": E.max,
885
- "aria-valuenow": n(u),
886
- "aria-valuetext": n(m),
887
- "aria-orientation": E.vertical ? "vertical" : "horizontal",
888
- "aria-disabled": n(y),
889
- "onUpdate:modelValue": n(Z)
890
- }, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : M("v-if", !0),
891
- E.showStops ? (f(), V("div", { key: 1 }, [
892
- (f(!0), V(O, null, X(n(ne), (re, ye) => (f(), V("div", {
893
- key: ye,
894
- class: Y(n(c).e("stop")),
895
- style: ce(n(le)(re))
883
+ "aria-label": i(b),
884
+ "aria-valuemin": i(x),
885
+ "aria-valuemax": L.max,
886
+ "aria-valuenow": i(U),
887
+ "aria-valuetext": i(F),
888
+ "aria-orientation": L.vertical ? "vertical" : "horizontal",
889
+ "aria-disabled": i(C),
890
+ "onUpdate:modelValue": i(se)
891
+ }, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : D("v-if", !0),
892
+ L.showStops ? (c(), h("div", { key: 1 }, [
893
+ (c(!0), h(G, null, de(i(pe), (T, $) => (c(), h("div", {
894
+ key: $,
895
+ class: ve(i(g).e("stop")),
896
+ style: Te(i(ee)(T))
896
897
  }, null, 6))), 128))
897
- ])) : M("v-if", !0),
898
- n(_).length > 0 ? (f(), V(O, { key: 2 }, [
899
- i("div", null, [
900
- (f(!0), V(O, null, X(n(_), (re, ye) => (f(), V("div", {
901
- key: ye,
902
- style: ce(n(le)(re.position)),
903
- class: Y([n(c).e("stop"), n(c).e("marks-stop")])
898
+ ])) : D("v-if", !0),
899
+ i(M).length > 0 ? (c(), h(G, { key: 2 }, [
900
+ u("div", null, [
901
+ (c(!0), h(G, null, de(i(M), (T, $) => (c(), h("div", {
902
+ key: $,
903
+ style: Te(i(ee)(T.position)),
904
+ class: ve([i(g).e("stop"), i(g).e("marks-stop")])
904
905
  }, null, 6))), 128))
905
906
  ]),
906
- i("div", {
907
- class: Y(n(c).e("marks"))
907
+ u("div", {
908
+ class: ve(i(g).e("marks"))
908
909
  }, [
909
- (f(!0), V(O, null, X(n(_), (re, ye) => (f(), W(n(st), {
910
- key: ye,
911
- mark: re.mark,
912
- style: ce(n(le)(re.position)),
913
- onMousedown: ll((Ia) => n(P)(re.position), ["stop"])
910
+ (c(!0), h(G, null, de(i(M), (T, $) => (c(), fe(i(xo), {
911
+ key: $,
912
+ mark: T.mark,
913
+ style: Te(i(ee)(T.position)),
914
+ onMousedown: Sl((he) => i(P)(T.position), ["stop"])
914
915
  }, null, 8, ["mark", "style", "onMousedown"]))), 128))
915
916
  ], 2)
916
- ], 64)) : M("v-if", !0)
917
+ ], 64)) : D("v-if", !0)
917
918
  ], 46, ["onMousedown", "onTouchstartPassive"]),
918
- E.showInput && !E.range ? (f(), W(n(Ql), {
919
+ L.showInput && !L.range ? (c(), fe(i(ho), {
919
920
  key: 0,
920
921
  ref: "input",
921
- "model-value": n(k),
922
- class: Y(n(c).e("input")),
923
- step: E.step,
924
- disabled: n(y),
925
- controls: E.showInputControls,
926
- min: E.min,
927
- max: E.max,
928
- precision: n(U),
929
- size: n(J),
930
- "onUpdate:modelValue": n(H),
931
- onChange: n(D)
932
- }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "size", "onUpdate:modelValue", "onChange"])) : M("v-if", !0)
922
+ "model-value": i(x),
923
+ class: ve(i(g).e("input")),
924
+ step: L.step,
925
+ disabled: i(C),
926
+ controls: L.showInputControls,
927
+ min: L.min,
928
+ max: L.max,
929
+ precision: i(q),
930
+ size: i(re),
931
+ "onUpdate:modelValue": i(Z),
932
+ onChange: i(Q)
933
+ }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "size", "onUpdate:modelValue", "onChange"])) : D("v-if", !0)
933
934
  ], 10, ["id", "role", "aria-label", "aria-labelledby"]);
934
935
  };
935
936
  }
936
937
  });
937
- var bt = /* @__PURE__ */ Xe(pt, [["__file", "slider.vue"]]);
938
- const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs" }, St = { class: "content" }, Ct = { class: "shape-config" }, ht = { class: "field-selector" }, wt = { class: "config-list" }, Lt = {
938
+ var Ao = /* @__PURE__ */ dl(Bo, [["__file", "slider.vue"]]);
939
+ const Jo = hl(Ao), Ro = { class: "shape-pop qy-flex-col" }, $o = { class: "tabs" }, Ko = { class: "content" }, Wo = { class: "shape-config" }, Xo = { class: "field-selector" }, Yo = { class: "config-list" }, jo = {
939
940
  key: 0,
940
941
  class: "config-item"
941
- }, _t = { class: "condition-text" }, kt = {
942
- key: 1,
942
+ }, Go = { class: "condition-text" }, Do = {
943
+ key: 0,
943
944
  class: "config-item"
944
- }, Nt = { class: "config-list" }, Ft = { class: "config-item" }, Et = {
945
+ }, Ho = { class: "config-list" }, qo = { class: "config-item" }, Qo = {
945
946
  key: 0,
946
947
  class: "config-item"
947
- }, zt = {
948
+ }, Zo = {
948
949
  key: 1,
949
950
  class: "config-item"
950
- }, xt = {
951
+ }, et = {
951
952
  key: 2,
952
953
  class: "config-item"
953
- }, Ut = {
954
+ }, lt = {
954
955
  key: 3,
955
956
  class: "config-item"
956
- }, It = { class: "line-config" }, Ot = { class: "field-selector" }, Mt = { class: "config-list" }, Tt = {
957
+ }, ot = { class: "line-config" }, tt = { class: "field-selector" }, at = { class: "config-list" }, nt = {
957
958
  key: 0,
958
959
  class: "config-box"
959
- }, Pt = { class: "config-item" }, Bt = { class: "condition-text" }, At = { class: "config-item" }, $t = { class: "config-item" }, Rt = { class: "config-item" }, Kt = { class: "config-item" }, Jt = {
960
+ }, it = { class: "config-item" }, ut = { class: "condition-text" }, st = { class: "config-item" }, rt = { class: "config-item" }, dt = { class: "config-item" }, ft = {
960
961
  key: 1,
961
962
  class: "config-box"
962
- }, Xt = { class: "config-item" }, Wt = { class: "config-item" }, Yt = { class: "config-item" }, jt = { class: "config-item" }, Dt = { class: "config-list" }, Gt = { class: "config-item" }, Ht = {
963
+ }, vt = { class: "config-item" }, ct = { class: "config-item" }, mt = { class: "config-item" }, pt = { class: "config-list" }, gt = { class: "config-item" }, bt = {
963
964
  key: 0,
964
965
  class: "config-item"
965
- }, qt = {
966
+ }, yt = {
966
967
  key: 1,
967
968
  class: "config-item"
968
- }, Qt = {
969
+ }, Ct = {
969
970
  key: 2,
970
971
  class: "config-item"
971
- }, Zt = {
972
+ }, St = {
972
973
  key: 3,
973
974
  class: "config-item"
974
- }, ea = { class: "point-config-wrapper" }, la = { class: "point-config-scroll" }, ta = { class: "field-selector" }, aa = { class: "config-list" }, oa = { class: "config-item" }, na = { class: "condition-text" }, ia = { class: "config-item" }, ua = { class: "config-item" }, sa = { class: "shape-selector-inline" }, ra = ["onClick"], da = ["src"], va = { class: "config-item" }, ma = { class: "config-item" }, fa = { class: "config-item" }, ca = { class: "config-item" }, pa = { class: "config-item" }, ba = { class: "config-item" }, ga = { class: "shape-selector-inline" }, ya = ["onClick"], Va = ["src"], Sa = { class: "config-item" }, Ca = { class: "config-item" }, ha = { class: "config-item" }, wa = { class: "config-item" }, La = { class: "point-label-config-fixed" }, _a = { class: "config-list" }, ka = { class: "config-item" }, Na = {
975
+ }, ht = { class: "point-config-wrapper" }, Vt = { class: "point-config-scroll" }, Lt = { class: "field-selector" }, wt = { class: "config-list" }, kt = { class: "config-item" }, Ft = { class: "condition-text" }, Nt = { class: "config-item" }, zt = { class: "config-item" }, Et = { class: "shape-selector-inline" }, _t = ["onClick"], xt = ["src"], Ut = { class: "config-item" }, It = { class: "config-item" }, Tt = { class: "config-item" }, Ot = { class: "config-item" }, Pt = { class: "config-item" }, Mt = { class: "config-item" }, Bt = { class: "shape-selector-inline" }, At = ["onClick"], Jt = ["src"], Rt = { class: "config-item" }, $t = { class: "config-item" }, Kt = { class: "config-item" }, Wt = { class: "config-item" }, Xt = { class: "point-label-config-fixed" }, Yt = { class: "config-list" }, jt = { class: "config-item" }, Gt = {
975
976
  key: 0,
976
977
  class: "config-item"
977
- }, Fa = {
978
+ }, Dt = {
978
979
  key: 1,
979
980
  class: "config-item"
980
- }, Ea = {
981
+ }, Ht = {
981
982
  key: 2,
982
983
  class: "config-item"
983
- }, za = {
984
+ }, qt = {
984
985
  key: 3,
985
986
  class: "config-item"
986
- }, xa = { class: "footer" }, Ua = /* @__PURE__ */ ue({
987
+ }, Qt = { class: "footer" }, ie = "FID", be = "_FTYPE_", Zt = /* @__PURE__ */ Fe({
987
988
  __name: "ShapeDialog",
988
- setup(t, { expose: d }) {
989
- const p = $(!1), v = $("polygon"), c = $(null), S = $(), b = $(), g = $(), o = $(), h = $([]), N = $([]), y = $({
989
+ setup(l, { expose: d }) {
990
+ const y = H(!1), f = H("polygon"), g = H(null), z = al("shapeOptions", H([])), w = al("iconOptions", H([])), k = (t) => {
991
+ const e = i(t);
992
+ return Array.isArray(e) ? e : [];
993
+ }, A = I(() => {
994
+ const t = k(z);
995
+ return t.length > 0 ? t : [];
996
+ }), E = I(() => {
997
+ const t = k(w);
998
+ return t.length > 0 ? t : [];
999
+ }), V = H(), C = H(), N = H(), o = H(), Y = H([]), W = H([]), le = () => W.value.includes("polygon"), Q = () => W.value.includes("line") || W.value.includes("polygon"), oe = () => W.value.includes("point"), ue = ie, J = H(null), P = H([]), Z = H({}), se = H({}), pe = H({}), ee = I(() => g.value?.layerType === "geojson"), ce = I(() => ee.value ? P.value.filter(
1000
+ (t) => t !== be
1001
+ ) : P.value), _ = I(() => ee.value ? P.value.filter(
1002
+ (t) => t !== be
1003
+ ) : P.value), j = I(() => ee.value ? P.value.filter(
1004
+ (t) => t !== be
1005
+ ) : P.value), re = I(() => ee.value ? P.value.filter(
1006
+ (t) => t !== be
1007
+ ) : P.value), ge = I(() => ee.value ? P.value.filter(
1008
+ (t) => t !== be
1009
+ ) : P.value), Ce = I(() => ee.value ? P.value.filter(
1010
+ (t) => t !== be
1011
+ ) : P.value), s = I(() => o.value?.fillColorList?.filter(
1012
+ (t) => t.type === "custom"
1013
+ ) || []), b = I({
1014
+ get: () => o.value?.fillColorList?.find(
1015
+ (t) => t.type === "default"
1016
+ ),
1017
+ set: (t) => {
1018
+ if (!o.value || !t) return;
1019
+ const e = o.value.fillColorList.findIndex(
1020
+ (n) => n.type === "default"
1021
+ );
1022
+ if (e >= 0) {
1023
+ o.value.fillColorList[e] = t;
1024
+ return;
1025
+ }
1026
+ o.value.fillColorList.push(t);
1027
+ }
1028
+ }), F = (t) => o.value?.fillColorList?.indexOf(t) ?? -1, R = (t = []) => {
1029
+ const e = t.filter(Boolean).filter((n, m, v) => v.indexOf(n) === m);
1030
+ return e.includes(ue) ? e : [ue, ...e];
1031
+ }, M = (t) => !ee.value || t !== be ? t || ie : ce.value[0] || ie, q = () => J.value ? J.value.type === "FeatureCollection" && Array.isArray(J.value.features) ? J.value.features : J.value.type === "Feature" ? [J.value] : [] : [], ae = () => {
1032
+ const t = /* @__PURE__ */ new Set();
1033
+ return q().forEach((e) => {
1034
+ const n = e?.properties || {};
1035
+ Object.keys(n).forEach((m) => t.add(m));
1036
+ }), Array.from(t);
1037
+ }, x = (t) => t === "line" ? ["line", "polygon"] : [t], U = (t, e) => {
1038
+ const n = Array.from(t);
1039
+ return e === ue ? n.sort((m, v) => Number(m) - Number(v)) : n.sort((m, v) => m.localeCompare(v, "zh-CN"));
1040
+ }, te = (t, e) => {
1041
+ if (!Y.value.length || !Array.isArray(Y.value[0]))
1042
+ return [];
1043
+ const n = Y.value[0].map((K) => String(K)), m = n.findIndex((K) => K === t), v = n.findIndex(
1044
+ (K) => K === be
1045
+ ), S = e ? x(e) : [], B = /* @__PURE__ */ new Set();
1046
+ for (let K = 1; K < Y.value.length; K++) {
1047
+ const a = Y.value[K];
1048
+ if (!Array.isArray(a) || e && ee.value && v !== -1 && !S.includes(String(a[v] ?? "")))
1049
+ continue;
1050
+ let ne;
1051
+ if (t === ue && m === -1)
1052
+ ne = K - 1;
1053
+ else if (m !== -1)
1054
+ ne = a[m];
1055
+ else
1056
+ continue;
1057
+ ne == null || ne === "" || B.add(String(ne));
1058
+ }
1059
+ return U(B, t);
1060
+ }, Ne = (t, e) => {
1061
+ const n = q();
1062
+ if (!n.length) return [];
1063
+ const m = e ? x(e) : [], v = /* @__PURE__ */ new Set();
1064
+ return n.forEach((S, B) => {
1065
+ if (e && ee.value) {
1066
+ const a = String(
1067
+ S?.properties?.[be] ?? ""
1068
+ );
1069
+ if (!m.includes(a))
1070
+ return;
1071
+ }
1072
+ const K = t === ue ? S?.properties?.[ue] ?? B : S?.properties?.[t];
1073
+ K == null || K === "" || v.add(String(K));
1074
+ }), U(v, t);
1075
+ }, L = (t, e) => {
1076
+ if (!t) return [];
1077
+ const n = te(t, e);
1078
+ return n.length > 0 ? n : Ne(t, e);
1079
+ }, we = (t, e, n) => {
1080
+ const m = new Set(
1081
+ e.filter(
1082
+ (S) => S != null && S !== "" && S !== n
1083
+ ).map((S) => String(S))
1084
+ ), v = t.filter((S) => !m.has(String(S)));
1085
+ return n && !v.includes(n) && v.push(n), v;
1086
+ }, Se = () => {
1087
+ V.value && (Z.value[V.value] = L(
1088
+ V.value,
1089
+ "polygon"
1090
+ )), N.value && (se.value[N.value] = L(
1091
+ N.value,
1092
+ "line"
1093
+ )), C.value && (pe.value[C.value] = L(
1094
+ C.value,
1095
+ "point"
1096
+ ));
1097
+ }, X = H({
990
1098
  showLabel: !1,
991
- labelField: "FID",
1099
+ labelField: ie,
992
1100
  fontSize: 14,
993
- fontColor: "#000000",
1101
+ fontColor: "rgba(0, 0, 0, 1)",
994
1102
  fontFamily: "SimSun"
995
- }), w = $({
1103
+ }), T = H({
996
1104
  showLabel: !1,
997
- labelField: "FID",
1105
+ labelField: ie,
998
1106
  fontSize: 14,
999
- fontColor: "#000000",
1107
+ fontColor: "rgba(0, 0, 0, 1)",
1000
1108
  fontFamily: "SimSun"
1001
- }), x = $({
1109
+ }), $ = H({
1002
1110
  showLabel: !1,
1003
- labelField: "FID",
1111
+ labelField: ie,
1004
1112
  fontSize: 14,
1005
- fontColor: "#000000",
1113
+ fontColor: "rgba(0, 0, 0, 1)",
1006
1114
  fontFamily: "SimSun"
1007
- }), j = (C) => new URL((/* @__PURE__ */ Object.assign({ "./svg/24gf-square.svg": zl, "./svg/hexagon-fill.svg": El, "./svg/人-地图点位2x.svg": Fl, "./svg/地图点 (1).svg": Nl, "./svg/地图点 (2).svg": kl, "./svg/地图点 (3).svg": _l, "./svg/地图点 (4).svg": Ll, "./svg/地图点-红.svg": wl, "./svg/地图点.svg": hl, "./svg/地图点位 (1).svg": Cl, "./svg/地图点位.svg": Sl, "./svg/实五角星.svg": Vl, "./svg/标记地图点位.svg": yl, "./svg/正三角形.svg": gl }))[`./svg/${C}`], import.meta.url).href, R = (C, l) => {
1008
- if (p.value = !0, c.value = JSON.parse(JSON.stringify(C)), C.layerPaintConfig ? o.value = JSON.parse(C.layerPaintConfig) : o.value = JSON.parse(JSON.stringify(de)), h.value = [], l.length > 0 && l.forEach((e) => {
1009
- h.value.push(JSON.parse(e.data));
1010
- }), h.value.length === 0)
1011
- if (C.geoJSON)
1012
- try {
1013
- const e = JSON.parse(C.geoJSON);
1014
- if (e.features && e.features.length > 0 && c.value?.columnSet) {
1015
- const r = e.features.map((m) => {
1016
- const L = m.properties || {};
1017
- return c.value.columnSet.map((_) => L[_]);
1018
- });
1019
- h.value.push(c.value.columnSet), h.value.push(...r);
1020
- }
1021
- } catch (e) {
1022
- console.warn("[ShapeDialog] 解析 GeoJSON 失败:", e);
1023
- }
1024
- else C.url && fetch(C.url).then((e) => e.json()).then((e) => {
1025
- if (e.features && e.features.length > 0 && c.value?.columnSet) {
1026
- const r = e.features.map((m) => {
1027
- const L = m.properties || {};
1028
- return c.value.columnSet.map((_) => L[_]);
1115
+ }), he = (t) => {
1116
+ if (!Array.isArray(t)) return [];
1117
+ const e = t.find((m) => m.type === "default"), n = t.filter((m) => m.type === "custom");
1118
+ return e ? [...n, e] : [...n];
1119
+ }, Ie = () => A.value[0]?.id || "", el = () => E.value[0]?.id || "", Re = (t) => {
1120
+ const e = t?.renderMode === "icon" || !t?.renderMode && t?.iconImageName ? "icon" : "color", n = t?.pointTintColor || t?.circleColor || Ee, m = typeof t?.pointSize == "number" ? t.pointSize : 10, v = t?.pointStyle || t?.iconImageName || "";
1121
+ return {
1122
+ type: t?.type === "custom" ? "custom" : "default",
1123
+ key: typeof t?.key == "string" ? t.key : "",
1124
+ value: t?.value == null ? "" : String(t.value),
1125
+ zoom: typeof t?.zoom == "number" ? t.zoom : 0,
1126
+ circleType: t?.circleType || "circle",
1127
+ circleColor: t?.circleColor || n,
1128
+ circleRadius: typeof t?.circleRadius == "number" ? t.circleRadius : 6,
1129
+ circleStrokeColor: t?.circleStrokeColor || "rgba(0,0,0,0)",
1130
+ circleStrokeWidth: typeof t?.circleStrokeWidth == "number" ? t.circleStrokeWidth : 0,
1131
+ iconImageUrl: t?.iconImageUrl || "",
1132
+ renderMode: e,
1133
+ pointStyle: v || (e === "icon" ? el() : Ie()),
1134
+ pointTintColor: n,
1135
+ pointSize: m
1136
+ };
1137
+ }, $e = (t) => {
1138
+ if (!t) return;
1139
+ const e = t.symbolConfigList, n = t.circleConfigList, m = (Array.isArray(e) && e.length > 0 ? e : n) || [], v = m.length ? m.map((B) => Re(B)) : [Re({ type: "default" })], S = he(v);
1140
+ t.circleConfigList = S, t.symbolConfigList = JSON.parse(
1141
+ JSON.stringify(S)
1142
+ );
1143
+ }, xl = (t, e = {
1144
+ hasPolygon: !1,
1145
+ hasLine: !1,
1146
+ hasPoint: !1
1147
+ }) => {
1148
+ if (!t) return {};
1149
+ const n = JSON.parse(JSON.stringify(t)), m = {};
1150
+ if (e.hasPolygon) {
1151
+ const v = Array.isArray(n.fillColorList) ? n.fillColorList : [];
1152
+ m.fillColorList = he(v), n.fillConfig && (m.fillConfig = n.fillConfig);
1153
+ }
1154
+ if (e.hasLine) {
1155
+ const v = Array.isArray(n.outlineConfigList) ? n.outlineConfigList : [];
1156
+ m.outlineConfigList = he(v), n.outlineConfig && (m.outlineConfig = n.outlineConfig);
1157
+ }
1158
+ if (e.hasPoint) {
1159
+ const v = Array.isArray(n.circleConfigList) ? n.circleConfigList : Array.isArray(n.symbolConfigList) ? n.symbolConfigList : [];
1160
+ m.symbolConfigList = he(
1161
+ v.map(
1162
+ (S) => Re(S)
1163
+ )
1164
+ ), n.symbolConfig && (m.symbolConfig = n.symbolConfig);
1165
+ }
1166
+ return m;
1167
+ }, fl = (t, e) => {
1168
+ if (y.value = !0, g.value = JSON.parse(JSON.stringify(t)), J.value = null, P.value = [], Z.value = {}, se.value = {}, pe.value = {}, t.geoJSON)
1169
+ try {
1170
+ J.value = JSON.parse(t.geoJSON);
1171
+ } catch (v) {
1172
+ console.warn("[ShapeDialog] 解析 GeoJSON 失败:", v);
1173
+ }
1174
+ if (t.layerPaintConfig)
1175
+ o.value = JSON.parse(t.layerPaintConfig), $e(o.value), console.log(
1176
+ "[ShapeDialog] 解析的配置:",
1177
+ JSON.parse(t.layerPaintConfig)
1178
+ ), o.value?.fillColorList && (o.value.fillColorList = he(
1179
+ o.value.fillColorList
1180
+ )), o.value?.outlineConfigList && (o.value.outlineConfigList = he(
1181
+ o.value.outlineConfigList
1182
+ )), console.log(
1183
+ "[ShapeDialog] fillColorList (重新排序后):",
1184
+ o.value?.fillColorList
1185
+ );
1186
+ else {
1187
+ o.value = JSON.parse(JSON.stringify(ze)), $e(o.value);
1188
+ const v = o.value;
1189
+ (!v.fillColorList || v.fillColorList.length === 0) && (v.fillColorList = JSON.parse(JSON.stringify(ll))), (!v.outlineConfigList || v.outlineConfigList.length === 0) && (v.outlineConfigList = JSON.parse(JSON.stringify(Be))), (!v.circleConfigList || v.circleConfigList.length === 0) && (v.circleConfigList = JSON.parse(JSON.stringify(Ql))), console.log("[ShapeDialog] 使用默认配置:", o.value);
1190
+ }
1191
+ if (Y.value = [], e.length > 0 && e.forEach((v) => {
1192
+ Y.value.push(JSON.parse(v.data));
1193
+ }), Y.value.length === 0)
1194
+ if (J.value?.features && J.value.features.length > 0 && g.value?.columnSet) {
1195
+ const v = J.value.features.map((S) => {
1196
+ const B = S.properties || {};
1197
+ return g.value.columnSet.map((K) => B[K]);
1198
+ });
1199
+ Y.value.push(g.value.columnSet), Y.value.push(...v);
1200
+ } else !J.value && t.url && fetch(t.url).then((v) => v.json()).then((v) => {
1201
+ if (J.value = v, v.features && v.features.length > 0 && g.value?.columnSet) {
1202
+ const S = v.features.map((B) => {
1203
+ const K = B.properties || {};
1204
+ return g.value.columnSet.map((a) => K[a]);
1029
1205
  });
1030
- h.value.push(c.value.columnSet), h.value.push(...r);
1206
+ Y.value.push(g.value.columnSet), Y.value.push(...S);
1031
1207
  }
1032
- }).catch((e) => {
1033
- console.warn("[ShapeDialog] URL 加载 GeoJSON 失败:", e);
1208
+ if (!P.value.length) {
1209
+ const S = ae();
1210
+ P.value = R(S);
1211
+ }
1212
+ Se();
1213
+ }).catch((v) => {
1214
+ console.warn("[ShapeDialog] 从 URL 加载 GeoJSON 失败:", v);
1034
1215
  });
1035
- if (N.value = C.layerShapes?.split(",") || [], N.value?.length === 1 ? v.value = N.value[0] : N.value?.length > 1 && (v.value = "polygon"), C.layerType == "line")
1036
- g.value = o.value?.outlineConfigList?.[0]?.key || "", o.value?.outlineConfigList || (o.value || (o.value = JSON.parse(
1037
- JSON.stringify(de)
1038
- )), o.value && (o.value.outlineConfigList = JSON.parse(
1039
- JSON.stringify(Te)
1040
- ))), o.value?.outlineConfigList && (o.value.outlineConfigList.some(
1041
- (r) => r.type === "default"
1042
- ) || o.value.outlineConfigList.push({
1043
- type: "default",
1044
- zoom: 0,
1045
- lineStyle: "solid",
1046
- outlineColor: ke,
1047
- outlineWidth: 1,
1048
- outlineOpacity: 1
1049
- })), o.value?.outlineConfig ? w.value = {
1050
- showLabel: o.value.outlineConfig.displayLabel === "true",
1051
- labelField: o.value.outlineConfig.labelField || "FID",
1052
- fontSize: o.value.outlineConfig.labelSize || 14,
1053
- fontColor: o.value.outlineConfig.labelColor || "#000000",
1054
- fontFamily: o.value.outlineConfig.labelFont || "SimSun"
1055
- } : w.value = {
1056
- showLabel: !1,
1057
- labelField: "FID",
1058
- fontSize: 14,
1059
- fontColor: "#000000",
1060
- fontFamily: "SimSun"
1061
- };
1062
- else if (C.layerType == "shp")
1063
- S.value = o.value?.fillColorList?.[0]?.key || "", g.value = o.value?.outlineConfigList?.[0]?.key || "", o.value?.outlineConfigList || o.value && (o.value.outlineConfigList = JSON.parse(
1064
- JSON.stringify(Te)
1216
+ const n = g.value?.columnSet && g.value.columnSet.length > 0 ? g.value.columnSet : ae();
1217
+ P.value = R(n), W.value = t.layerShapes?.split(",").map((v) => v.trim()) || [], console.log("[ShapeDialog] layerShapes:", W.value), W.value?.length === 1 ? f.value = W.value[0] : (W.value?.length > 1, f.value = "polygon"), o.value || (o.value = JSON.parse(JSON.stringify(ze)));
1218
+ const m = o.value;
1219
+ if ((!m.fillColorList || m.fillColorList.length === 0) && (m.fillColorList = JSON.parse(JSON.stringify(ll))), (!m.outlineConfigList || m.outlineConfigList.length === 0) && (m.outlineConfigList = JSON.parse(JSON.stringify(Be))), $e(m), m.fillColorList.some((v) => v.type === "default") || m.fillColorList.push(JSON.parse(JSON.stringify(ll[0]))), m.outlineConfigList.some((v) => v.type === "default") || m.outlineConfigList.push(
1220
+ JSON.parse(JSON.stringify(Be[0]))
1221
+ ), $e(m), le()) {
1222
+ const v = o.value?.fillColorList?.find(
1223
+ (S) => S.type === "custom"
1224
+ );
1225
+ V.value = v?.key || "";
1226
+ }
1227
+ if (Q()) {
1228
+ const v = o.value?.outlineConfigList?.find(
1229
+ (S) => S.type === "custom"
1230
+ );
1231
+ N.value = v?.key || "";
1232
+ }
1233
+ if (oe()) {
1234
+ const v = o.value?.circleConfigList?.find(
1235
+ (S) => S.type === "custom"
1236
+ );
1237
+ C.value = v?.key || "";
1238
+ }
1239
+ if (t.layerType == "line") {
1240
+ const v = o.value?.fillColorList?.find(
1241
+ (B) => B.type === "custom"
1242
+ );
1243
+ V.value = v?.key || "";
1244
+ const S = o.value?.outlineConfigList?.find(
1245
+ (B) => B.type === "custom"
1246
+ );
1247
+ N.value = S?.key || "", o.value?.outlineConfigList || o.value && (o.value.outlineConfigList = JSON.parse(
1248
+ JSON.stringify(Be)
1065
1249
  )), o.value?.outlineConfigList && (o.value.outlineConfigList.some(
1066
- (r) => r.type === "default"
1250
+ (K) => K.type === "default"
1067
1251
  ) || o.value.outlineConfigList.push({
1068
1252
  type: "default",
1069
1253
  zoom: 0,
1070
1254
  lineStyle: "solid",
1071
- outlineColor: ke,
1072
- outlineWidth: 1,
1073
- outlineOpacity: 1
1074
- })), b.value = o.value?.circleConfigList?.[0]?.key || "", o.value?.circleConfigList && o.value.circleConfigList.forEach((e, r) => {
1075
- if (!e.renderMode || !e.pointStyle || !e.pointTintColor || !e.pointSize || !e.iconImageName) {
1076
- const L = {
1077
- ...e,
1078
- renderMode: e.renderMode || "color",
1079
- pointStyle: e.pointStyle || "地图点.svg",
1080
- pointTintColor: e.pointTintColor || e.circleColor || "#67c23a",
1081
- pointSize: e.pointSize || 10,
1082
- iconImageName: e.iconImageName || "hiper-map-icon-1.png"
1255
+ outlineColor: Ee,
1256
+ outlineWidth: 1
1257
+ })), C.value = o.value?.circleConfigList?.[0]?.key || "", o.value?.circleConfigList && o.value.circleConfigList.forEach((B, K) => {
1258
+ if (!B.renderMode || !B.pointStyle || !B.pointTintColor || !B.pointSize) {
1259
+ const ne = {
1260
+ ...B,
1261
+ renderMode: B.renderMode || "color",
1262
+ pointStyle: B.pointStyle || Ie(),
1263
+ pointTintColor: B.pointTintColor || B.circleColor || "rgba(103, 194, 58, 1)",
1264
+ pointSize: B.pointSize || 10
1083
1265
  };
1084
- o.value?.circleConfigList.splice(
1085
- r,
1266
+ ne.renderMode === "icon" ? ne.pointStyle = B.pointStyle || el() : ne.pointStyle = B.pointStyle || Ie(), o.value?.circleConfigList.splice(
1267
+ K,
1086
1268
  1,
1087
- L
1269
+ ne
1088
1270
  );
1089
1271
  }
1090
- }), o.value?.fillConfig ? y.value = {
1272
+ }), o.value?.fillConfig ? X.value = {
1091
1273
  showLabel: o.value.fillConfig.displayLabel === "true",
1092
- labelField: o.value.fillConfig.labelField || "FID",
1274
+ labelField: o.value.fillConfig.labelField || ie,
1093
1275
  fontSize: o.value.fillConfig.labelSize || 14,
1094
- fontColor: o.value.fillConfig.labelColor || "#000000",
1276
+ fontColor: o.value.fillConfig.labelColor || "rgba(0, 0, 0, 1)",
1095
1277
  fontFamily: o.value.fillConfig.labelFont || "SimSun"
1096
- } : y.value = {
1278
+ } : X.value = {
1097
1279
  showLabel: !1,
1098
- labelField: "FID",
1280
+ labelField: ie,
1099
1281
  fontSize: 14,
1100
- fontColor: "#000000",
1282
+ fontColor: "rgba(0, 0, 0, 1)",
1101
1283
  fontFamily: "SimSun"
1102
- }, o.value?.outlineConfig ? w.value = {
1284
+ }, o.value?.outlineConfig ? T.value = {
1103
1285
  showLabel: o.value.outlineConfig.displayLabel === "true",
1104
- labelField: o.value.outlineConfig.labelField || "FID",
1286
+ labelField: o.value.outlineConfig.labelField || ie,
1105
1287
  fontSize: o.value.outlineConfig.labelSize || 14,
1106
- fontColor: o.value.outlineConfig.labelColor || "#000000",
1288
+ fontColor: o.value.outlineConfig.labelColor || "rgba(0, 0, 0, 1)",
1107
1289
  fontFamily: o.value.outlineConfig.labelFont || "SimSun"
1108
- } : w.value = {
1290
+ } : T.value = {
1109
1291
  showLabel: !1,
1110
- labelField: "FID",
1292
+ labelField: ie,
1111
1293
  fontSize: 14,
1112
- fontColor: "#000000",
1294
+ fontColor: "rgba(0, 0, 0, 1)",
1113
1295
  fontFamily: "SimSun"
1114
- }, o.value?.symbolConfig ? x.value = {
1296
+ }, o.value?.symbolConfig ? $.value = {
1115
1297
  showLabel: o.value.symbolConfig.displayLabel === "true",
1116
- labelField: o.value.symbolConfig.labelField || "FID",
1298
+ labelField: o.value.symbolConfig.labelField || ie,
1117
1299
  fontSize: o.value.symbolConfig.labelSize || 14,
1118
- fontColor: o.value.symbolConfig.labelColor || "#000000",
1300
+ fontColor: o.value.symbolConfig.labelColor || "rgba(0, 0, 0, 1)",
1119
1301
  fontFamily: o.value.symbolConfig.labelFont || "SimSun"
1120
- } : x.value = {
1302
+ } : $.value = {
1121
1303
  showLabel: !1,
1122
- labelField: "FID",
1304
+ labelField: ie,
1123
1305
  fontSize: 14,
1124
- fontColor: "#000000",
1306
+ fontColor: "rgba(0, 0, 0, 1)",
1125
1307
  fontFamily: "SimSun"
1126
1308
  };
1127
- else if (C.layerType == "symbol" && (b.value = o.value?.circleConfigList?.[0]?.key || "", o.value?.circleConfigList)) {
1128
- const e = o.value.circleConfigList.find(
1129
- (r) => r.key === "default" || r.type === "default"
1309
+ } else if (t.layerType == "symbol") {
1310
+ const v = o.value?.circleConfigList?.find(
1311
+ (S) => S.type === "custom"
1130
1312
  );
1131
- e && (e.renderMode || (e.renderMode = "icon"), e.pointStyle || (e.pointStyle = Me[0]?.fileName || "人-地图点位2x.svg"), e.pointTintColor || (e.pointTintColor = "#b016beff"), e.pointSize || (e.pointSize = 10), e.iconImageName || (e.iconImageName = "hiper-map-icon-1.png"));
1132
- }
1133
- }, K = () => {
1134
- p.value = !1;
1135
- }, D = (C) => {
1136
- if (S.value && c.value?.columnSet) {
1137
- let e = c.value?.columnSet.indexOf(
1138
- S.value || ""
1139
- );
1140
- if (e === -1)
1141
- return [];
1142
- const r = o.value?.fillColorList.filter(
1143
- (m) => m.type === "custom" && m.value !== "" && m.value !== null && m.value !== void 0 && m.value !== C
1144
- ).map((m) => String(m.value));
1145
- console.log("[getShapeOptions] currentValue:", C), console.log(
1146
- "[getShapeOptions] fillColorList:",
1147
- o.value?.fillColorList
1148
- ), console.log("[getShapeOptions] selectedValues:", r);
1149
- var l = /* @__PURE__ */ new Set();
1150
- return h.value.forEach((m, L) => {
1151
- if (L == 0) return;
1152
- const _ = String(m[e]);
1153
- r?.includes(_) || l.add(_);
1154
- }), console.log("[getShapeOptions] result options:", Array.from(l)), Array.from(l);
1155
- }
1156
- return [];
1157
- }, G = (C) => {
1158
- if (b.value && c.value?.columnSet) {
1159
- let e = c.value?.columnSet.indexOf(b.value || "");
1160
- if (e === -1)
1161
- return [];
1162
- const r = o.value?.circleConfigList.filter(
1163
- (m) => m.type === "custom" && m.value !== "" && m.value !== null && m.value !== void 0 && m.value !== C
1164
- ).map((m) => String(m.value));
1165
- console.log("[getCircleOptions] currentValue:", C), console.log(
1166
- "[getCircleOptions] circleConfigList:",
1167
- o.value?.circleConfigList
1168
- ), console.log("[getCircleOptions] selectedValues:", r);
1169
- var l = /* @__PURE__ */ new Set();
1170
- return h.value.forEach((m, L) => {
1171
- if (L == 0) return;
1172
- const _ = String(m[e]);
1173
- r?.includes(_) || l.add(_);
1174
- }), console.log("[getCircleOptions] result options:", Array.from(l)), Array.from(l);
1175
- }
1176
- return [];
1177
- }, Q = () => {
1178
- if (S.value == null || S.value === "") {
1179
- fe.error("请先选择目标字段");
1313
+ if (C.value = v?.key || "", o.value?.circleConfigList) {
1314
+ const S = o.value.circleConfigList.find(
1315
+ (B) => B.key === "default" || B.type === "default"
1316
+ );
1317
+ S && (S.renderMode || (S.renderMode = "icon"), S.pointStyle || (S.pointStyle = S.renderMode === "icon" ? el() : Ie()), S.pointTintColor || (S.pointTintColor = "#b016beff"), S.pointSize || (S.pointSize = 10));
1318
+ }
1319
+ } else
1320
+ le() && (o.value?.fillConfig ? X.value = {
1321
+ showLabel: o.value.fillConfig.displayLabel === "true",
1322
+ labelField: o.value.fillConfig.labelField || ie,
1323
+ fontSize: o.value.fillConfig.labelSize || 14,
1324
+ fontColor: o.value.fillConfig.labelColor || "rgba(0, 0, 0, 1)",
1325
+ fontFamily: o.value.fillConfig.labelFont || "SimSun"
1326
+ } : X.value = {
1327
+ showLabel: !1,
1328
+ labelField: ie,
1329
+ fontSize: 14,
1330
+ fontColor: "rgba(0, 0, 0, 1)",
1331
+ fontFamily: "SimSun"
1332
+ }), Q() && (o.value?.outlineConfig ? T.value = {
1333
+ showLabel: o.value.outlineConfig.displayLabel === "true",
1334
+ labelField: o.value.outlineConfig.labelField || ie,
1335
+ fontSize: o.value.outlineConfig.labelSize || 14,
1336
+ fontColor: o.value.outlineConfig.labelColor || "rgba(0, 0, 0, 1)",
1337
+ fontFamily: o.value.outlineConfig.labelFont || "SimSun"
1338
+ } : T.value = {
1339
+ showLabel: !1,
1340
+ labelField: ie,
1341
+ fontSize: 14,
1342
+ fontColor: "rgba(0, 0, 0, 1)",
1343
+ fontFamily: "SimSun"
1344
+ }), oe() && (o.value?.symbolConfig ? $.value = {
1345
+ showLabel: o.value.symbolConfig.displayLabel === "true",
1346
+ labelField: o.value.symbolConfig.labelField || ie,
1347
+ fontSize: o.value.symbolConfig.labelSize || 14,
1348
+ fontColor: o.value.symbolConfig.labelColor || "rgba(0, 0, 0, 1)",
1349
+ fontFamily: o.value.symbolConfig.labelFont || "SimSun"
1350
+ } : $.value = {
1351
+ showLabel: !1,
1352
+ labelField: ie,
1353
+ fontSize: 14,
1354
+ fontColor: "rgba(0, 0, 0, 1)",
1355
+ fontFamily: "SimSun"
1356
+ });
1357
+ X.value.labelField = M(
1358
+ X.value.labelField
1359
+ ), T.value.labelField = M(
1360
+ T.value.labelField
1361
+ ), $.value.labelField = M(
1362
+ $.value.labelField
1363
+ ), ee.value && (V.value === be && (V.value = ce.value[0] || ""), N.value === be && (N.value = _.value[0] || ""), C.value === be && (C.value = j.value[0] || "")), Se();
1364
+ }, vl = () => {
1365
+ y.value = !1;
1366
+ }, Ul = (t) => V.value ? (Z.value[V.value] || (Z.value[V.value] = L(
1367
+ V.value,
1368
+ "polygon"
1369
+ )), we(
1370
+ Z.value[V.value] || [],
1371
+ s.value.map((e) => e.value),
1372
+ t
1373
+ )) : [], Il = (t) => {
1374
+ if (!C.value) return [];
1375
+ pe.value[C.value] || (pe.value[C.value] = L(
1376
+ C.value,
1377
+ "point"
1378
+ ));
1379
+ const e = o.value?.circleConfigList?.filter((n) => n.type === "custom").map((n) => n.value) || [];
1380
+ return we(
1381
+ pe.value[C.value] || [],
1382
+ e,
1383
+ t != null ? String(t) : void 0
1384
+ );
1385
+ }, Tl = () => {
1386
+ if (V.value == null || V.value === "") {
1387
+ _e.error("请先选择目标字段");
1180
1388
  return;
1181
1389
  }
1182
- if (o.value || (o.value = de), o.value.fillColorList || (o.value.fillColorList = []), o.value.fillColorList.some(
1183
- (l) => l.type == "custom" && l.value === ""
1390
+ if (o.value || (o.value = ze), o.value.fillColorList || (o.value.fillColorList = []), o.value.fillColorList.some(
1391
+ (n) => n.type == "default"
1392
+ ) || o.value.fillColorList.push({
1393
+ type: "default",
1394
+ key: "",
1395
+ value: "",
1396
+ color: Ee
1397
+ }), o.value.fillColorList.some(
1398
+ (n) => n.type == "custom" && n.value === ""
1184
1399
  )) {
1185
- fe.error("请先选择最新一条自定义配置的值");
1400
+ _e.error("请先选择最新一条自定义配置的值");
1186
1401
  return;
1187
1402
  }
1188
1403
  o.value.fillColorList.unshift({
1189
1404
  type: "custom",
1190
- color: ke,
1191
- key: S.value,
1192
- rgb: "rgba(0, 0, 0, 1)",
1193
- value: "",
1194
- opacity: 1
1405
+ color: Ee,
1406
+ key: V.value,
1407
+ value: ""
1195
1408
  });
1196
- }, B = () => {
1197
- if (b.value == null || b.value === "") {
1198
- fe.error("请先选择目标字段");
1409
+ }, Ol = () => {
1410
+ if (C.value == null || C.value === "") {
1411
+ _e.error("请先选择目标字段");
1199
1412
  return;
1200
1413
  }
1201
- if (o.value || (o.value = de), o.value.circleConfigList || (o.value.circleConfigList = []), o.value.circleConfigList.some(
1202
- (l) => l.type == "custom" && l.value === ""
1414
+ if (o.value || (o.value = ze), o.value.circleConfigList || (o.value.circleConfigList = []), o.value.circleConfigList.some(
1415
+ (n) => n.type == "default"
1416
+ ) || o.value.circleConfigList.push({
1417
+ type: "default",
1418
+ key: "",
1419
+ value: "",
1420
+ circleType: "circle",
1421
+ circleStrokeColor: "rgba(0,0,0,1)",
1422
+ circleColor: Ee,
1423
+ iconImageUrl: "hiper-map-icon-1.png",
1424
+ zoom: 0,
1425
+ circleRadius: 6,
1426
+ circleStrokeWidth: 0,
1427
+ renderMode: "color",
1428
+ pointStyle: Ie(),
1429
+ pointTintColor: Ee,
1430
+ pointSize: 6
1431
+ }), o.value.circleConfigList.some(
1432
+ (n) => n.type == "custom" && n.value === ""
1203
1433
  )) {
1204
- fe.error("请先选择最新一条自定义配置的值");
1434
+ _e.error("请先选择最新一条自定义配置的值");
1205
1435
  return;
1206
1436
  }
1207
1437
  o.value.circleConfigList.unshift({
1208
1438
  type: "custom",
1209
- key: b.value,
1439
+ key: C.value,
1210
1440
  value: "",
1211
1441
  renderMode: "color",
1212
- pointStyle: "地图点.svg",
1213
- pointTintColor: "#67c23a",
1214
- pointSize: 10,
1215
- iconImageName: "hiper-map-icon-1.png"
1442
+ pointStyle: Ie(),
1443
+ pointTintColor: "rgba(103, 194, 58, 1)",
1444
+ pointSize: 10
1216
1445
  });
1217
- }, P = (C) => {
1218
- !o.value || !o.value.fillColorList || o.value.fillColorList.splice(C, 1);
1219
- }, H = (C) => {
1220
- !o.value || !o.value.circleConfigList || o.value.circleConfigList.splice(C, 1);
1221
- }, Z = () => {
1222
- o.value?.circleConfigList && (o.value.circleConfigList = o.value?.circleConfigList.slice(-1));
1223
- }, ne = () => {
1224
- o.value?.fillColorList && (o.value.fillColorList = o.value?.fillColorList.slice(-1));
1225
- }, le = (C) => {
1226
- if (!g.value || !c.value?.columnSet)
1227
- return [];
1228
- let l = c.value?.columnSet.indexOf(g.value || "");
1229
- if (l === -1)
1230
- return [];
1231
- const e = o.value?.outlineConfigList?.filter(
1232
- (m) => m.type === "custom" && m.value !== "" && m.value !== null && m.value !== void 0 && m.value !== C
1233
- ).map((m) => String(m.value));
1234
- console.log("[getLineOptions] currentValue:", C), console.log(
1235
- "[getLineOptions] outlineConfigList:",
1236
- o.value?.outlineConfigList
1237
- ), console.log("[getLineOptions] selectedValues:", e);
1238
- var r = /* @__PURE__ */ new Set();
1239
- return h.value.forEach((m, L) => {
1240
- if (L == 0) return;
1241
- const _ = String(m[l]);
1242
- e?.includes(_) || r.add(_);
1243
- }), console.log("[getLineOptions] result options:", Array.from(r)), Array.from(r);
1244
- }, ee = () => {
1245
- if (g.value == null || g.value === "") {
1246
- fe.error("请先选择目标字段");
1446
+ }, Pl = (t) => {
1447
+ !o.value || !o.value.fillColorList || o.value.fillColorList.splice(t, 1);
1448
+ }, Ml = (t) => {
1449
+ !o.value || !o.value.circleConfigList || o.value.circleConfigList.splice(t, 1);
1450
+ }, Bl = () => {
1451
+ C.value && (pe.value[C.value] = L(
1452
+ C.value,
1453
+ "point"
1454
+ )), o.value?.circleConfigList && o.value.circleConfigList.forEach((t) => {
1455
+ t.type === "custom" && (t.key = C.value || "", t.value = "");
1456
+ });
1457
+ }, Al = () => {
1458
+ V.value && (Z.value[V.value] = L(
1459
+ V.value,
1460
+ "polygon"
1461
+ )), o.value?.fillColorList && o.value.fillColorList.forEach((t) => {
1462
+ t.type === "custom" && (t.key = V.value || "", t.value = "");
1463
+ });
1464
+ }, Jl = (t) => {
1465
+ if (!N.value) return [];
1466
+ se.value[N.value] || (se.value[N.value] = L(
1467
+ N.value,
1468
+ "line"
1469
+ ));
1470
+ const e = o.value?.outlineConfigList?.filter((n) => n.type === "custom").map((n) => n.value) || [];
1471
+ return we(
1472
+ se.value[N.value] || [],
1473
+ e,
1474
+ t
1475
+ );
1476
+ }, Rl = () => {
1477
+ if (N.value == null || N.value === "") {
1478
+ _e.error("请先选择目标字段");
1247
1479
  return;
1248
1480
  }
1249
- if (o.value || (o.value = de), o.value.outlineConfigList || (o.value.outlineConfigList = JSON.parse(
1250
- JSON.stringify(Te)
1481
+ if (o.value || (o.value = ze), o.value.outlineConfigList || (o.value.outlineConfigList = JSON.parse(
1482
+ JSON.stringify(Be)
1251
1483
  )), o.value.outlineConfigList.some(
1252
- (l) => l.type == "custom" && l.value === ""
1484
+ (n) => n.type == "default"
1485
+ ) || o.value.outlineConfigList.push({
1486
+ type: "default",
1487
+ outlineColor: "rgba(103, 194, 58, 1)",
1488
+ outlineWidth: 2,
1489
+ zoom: 0,
1490
+ lineStyle: "solid"
1491
+ }), o.value.outlineConfigList.some(
1492
+ (n) => n.type == "custom" && n.value === ""
1253
1493
  )) {
1254
- fe.error("请先选择最新一条自定义配置的值");
1494
+ _e.error("请先选择最新一条自定义配置的值");
1255
1495
  return;
1256
1496
  }
1257
1497
  o.value.outlineConfigList.unshift({
1258
1498
  type: "custom",
1259
- key: g.value,
1499
+ key: N.value,
1260
1500
  value: "",
1261
1501
  lineStyle: "solid",
1262
- outlineColor: ke,
1502
+ outlineColor: Ee,
1263
1503
  outlineWidth: 1,
1264
- outlineOpacity: 1,
1265
1504
  zoom: 0
1266
1505
  });
1267
- }, F = (C) => {
1268
- !o.value || !o.value.outlineConfigList || o.value.outlineConfigList.splice(C, 1);
1269
- }, T = () => {
1270
- o.value?.outlineConfigList && (o.value.outlineConfigList = o.value.outlineConfigList.filter(
1271
- (C) => C.type === "default"
1272
- ));
1273
- }, J = () => {
1274
- if (c.value?.layerType == "shp" ? (o.value || (o.value = de), o.value.fillConfig = {
1275
- displayLabel: y.value.showLabel ? "true" : "false",
1276
- labelSize: y.value.fontSize,
1277
- labelColor: y.value.fontColor,
1278
- labelFont: y.value.fontFamily,
1279
- labelField: y.value.labelField
1280
- }, N.value.includes("line") && (o.value.outlineConfig = {
1281
- displayLabel: w.value.showLabel ? "true" : "false",
1282
- labelSize: w.value.fontSize,
1283
- labelColor: w.value.fontColor,
1284
- labelFont: w.value.fontFamily,
1285
- labelField: w.value.labelField
1286
- }), N.value.includes("point") && (o.value.symbolConfig = {
1287
- displayLabel: x.value.showLabel ? "true" : "false",
1288
- labelSize: x.value.fontSize,
1289
- labelColor: x.value.fontColor,
1290
- labelFont: x.value.fontFamily,
1291
- labelField: x.value.labelField
1292
- })) : c.value?.layerType == "line" && (o.value || (o.value = de), o.value.outlineConfig = {
1293
- displayLabel: w.value.showLabel ? "true" : "false",
1294
- labelSize: w.value.fontSize,
1295
- labelColor: w.value.fontColor,
1296
- labelFont: w.value.fontFamily,
1297
- labelField: w.value.labelField
1298
- }), c.value) {
1299
- const C = {
1300
- layerType: c.value.layerType,
1301
- layerName: c.value?.layerName || "",
1302
- id: c.value.id,
1303
- projectId: ""
1304
- };
1305
- Object.assign(C, JSON.parse(JSON.stringify(c.value))), C.layerPaintConfig = JSON.stringify(o.value), c.value.layerPaintConfig = C.layerPaintConfig, console.log("更新图层实体", C), Rl.emit(C);
1506
+ }, $l = (t) => {
1507
+ !o.value || !o.value.outlineConfigList || o.value.outlineConfigList.splice(t, 1);
1508
+ }, Kl = () => {
1509
+ N.value && (se.value[N.value] = L(
1510
+ N.value,
1511
+ "line"
1512
+ )), o.value?.outlineConfigList && o.value.outlineConfigList.forEach((t) => {
1513
+ t.type === "custom" && (t.key = N.value || "", t.value = "");
1514
+ });
1515
+ }, Wl = () => {
1516
+ try {
1517
+ if (g.value?.layerType == "shp" || g.value?.layerType == "geojson" ? (o.value || (o.value = ze), le() && (o.value.fillConfig = {
1518
+ displayLabel: X.value.showLabel ? "true" : "false",
1519
+ labelSize: X.value.fontSize,
1520
+ labelColor: X.value.fontColor,
1521
+ labelFont: X.value.fontFamily,
1522
+ labelField: X.value.labelField
1523
+ }), Q() && (o.value.outlineConfig = {
1524
+ displayLabel: T.value.showLabel ? "true" : "false",
1525
+ labelSize: T.value.fontSize,
1526
+ labelColor: T.value.fontColor,
1527
+ labelFont: T.value.fontFamily,
1528
+ labelField: T.value.labelField
1529
+ }), oe() && (o.value.symbolConfig = {
1530
+ displayLabel: $.value.showLabel ? "true" : "false",
1531
+ labelSize: $.value.fontSize,
1532
+ labelColor: $.value.fontColor,
1533
+ labelFont: $.value.fontFamily,
1534
+ labelField: $.value.labelField
1535
+ })) : g.value?.layerType == "line" && (o.value || (o.value = ze), o.value.outlineConfig = {
1536
+ displayLabel: T.value.showLabel ? "true" : "false",
1537
+ labelSize: T.value.fontSize,
1538
+ labelColor: T.value.fontColor,
1539
+ labelFont: T.value.fontFamily,
1540
+ labelField: T.value.labelField
1541
+ }), g.value) {
1542
+ const t = {
1543
+ layerType: g.value.layerType,
1544
+ layerName: g.value?.layerName || "",
1545
+ id: g.value.id,
1546
+ projectId: ""
1547
+ };
1548
+ Object.assign(t, JSON.parse(JSON.stringify(g.value))), o.value?.fillColorList && (o.value.fillColorList = he(
1549
+ o.value.fillColorList
1550
+ ), console.log(
1551
+ "[ShapeDialog] fillColorList (保存前):",
1552
+ o.value.fillColorList
1553
+ )), o.value?.outlineConfigList && (o.value.outlineConfigList = he(
1554
+ o.value.outlineConfigList
1555
+ )), o.value?.circleConfigList && (o.value.circleConfigList = he(
1556
+ o.value.circleConfigList.map(
1557
+ (n) => Re(n)
1558
+ )
1559
+ ));
1560
+ const e = xl(
1561
+ o.value,
1562
+ {
1563
+ hasPolygon: le(),
1564
+ hasLine: Q(),
1565
+ hasPoint: oe()
1566
+ }
1567
+ );
1568
+ t.layerPaintConfig = JSON.stringify(e), g.value.layerPaintConfig = t.layerPaintConfig, console.log("[ShapeDialog] 更新图层实体:", t), oo.emit(t);
1569
+ }
1570
+ } catch (t) {
1571
+ console.error("[ShapeDialog] confirm failed:", t), _e.error("保存配置失败,请重试");
1572
+ } finally {
1573
+ y.value = !1;
1306
1574
  }
1307
- p.value = !1;
1308
1575
  };
1309
1576
  return d({
1310
- show: R,
1311
- open: R
1577
+ show: fl,
1578
+ open: fl
1312
1579
  // 保持向后兼容
1313
- }), (C, l) => {
1314
- const e = bl, r = pl, m = fl, L = ml, _ = Ke, U = gt;
1315
- return f(), W(Pl, {
1580
+ }), (t, e) => {
1581
+ const n = no, m = ao, v = io, S = uo, B = il, K = Jo;
1582
+ return c(), fe(ql, {
1316
1583
  name: "fade",
1317
1584
  mode: "out-in"
1318
1585
  }, {
1319
- default: z(() => [
1320
- pe(i("div", yt, [
1321
- i("div", { class: "header" }, [
1322
- l[21] || (l[21] = i("div", null, "显示设置", -1)),
1323
- i("div", {
1586
+ default: O(() => [
1587
+ Oe(u("div", Ro, [
1588
+ u("div", { class: "header" }, [
1589
+ e[22] || (e[22] = u("div", null, "显示设置", -1)),
1590
+ u("div", {
1324
1591
  class: "close-btn",
1325
- onClick: K
1592
+ onClick: vl
1326
1593
  }, "X")
1327
1594
  ]),
1328
- i("div", Vt, [
1329
- i("div", {
1330
- class: Y(["tab-item", {
1331
- active: v.value === "polygon",
1332
- disabled: !N.value.includes("polygon")
1595
+ u("div", $o, [
1596
+ u("div", {
1597
+ class: ve(["tab-item", {
1598
+ active: f.value === "polygon",
1599
+ disabled: !W.value.includes("polygon")
1333
1600
  }]),
1334
- onClick: l[0] || (l[0] = (a) => v.value !== "polygon" && N.value.includes("polygon") && (v.value = "polygon"))
1601
+ onClick: e[0] || (e[0] = (a) => f.value !== "polygon" && W.value.includes("polygon") && (f.value = "polygon"))
1335
1602
  }, " 面配置 ", 2),
1336
- i("div", {
1337
- class: Y(["tab-item", {
1338
- active: v.value === "line",
1339
- disabled: !N.value.includes("line")
1603
+ u("div", {
1604
+ class: ve(["tab-item", {
1605
+ active: f.value === "line",
1606
+ disabled: !Q()
1340
1607
  }]),
1341
- onClick: l[1] || (l[1] = (a) => v.value !== "line" && N.value.includes("line") && (v.value = "line"))
1608
+ onClick: e[1] || (e[1] = (a) => f.value !== "line" && Q() && (f.value = "line"))
1342
1609
  }, " 线配置 ", 2),
1343
- i("div", {
1344
- class: Y(["tab-item", {
1345
- active: v.value === "point",
1346
- disabled: !N.value.includes("point")
1610
+ u("div", {
1611
+ class: ve(["tab-item", {
1612
+ active: f.value === "point",
1613
+ disabled: !W.value.includes("point")
1347
1614
  }]),
1348
- onClick: l[2] || (l[2] = (a) => v.value !== "point" && N.value.includes("point") && (v.value = "point"))
1615
+ onClick: e[2] || (e[2] = (a) => f.value !== "point" && W.value.includes("point") && (f.value = "point"))
1349
1616
  }, " 点配置 ", 2)
1350
1617
  ]),
1351
- i("div", St, [
1352
- pe(i("div", Ct, [
1353
- l[30] || (l[30] = i("div", { class: "section-header" }, [
1354
- i("span", null, "填充配置")
1618
+ u("div", Ko, [
1619
+ Oe(u("div", Wo, [
1620
+ e[31] || (e[31] = u("div", { class: "section-header" }, [
1621
+ u("span", null, "填充配置")
1355
1622
  ], -1)),
1356
- i("div", ht, [
1357
- l[22] || (l[22] = i("span", null, "目标字段", -1)),
1358
- s(r, {
1359
- modelValue: S.value,
1360
- "onUpdate:modelValue": l[3] || (l[3] = (a) => S.value = a),
1623
+ u("div", Xo, [
1624
+ e[23] || (e[23] = u("span", null, "目标字段", -1)),
1625
+ r(m, {
1626
+ modelValue: V.value,
1627
+ "onUpdate:modelValue": e[3] || (e[3] = (a) => V.value = a),
1361
1628
  size: "small",
1362
1629
  placeholder: "请选择目标字段",
1363
1630
  clearable: "",
1364
1631
  filterable: "",
1365
- onChange: ne
1632
+ onChange: Al
1366
1633
  }, {
1367
- default: z(() => [
1368
- (f(!0), V(O, null, X(c.value?.columnSet, (a) => (f(), W(e, {
1634
+ default: O(() => [
1635
+ (c(!0), h(G, null, de(ce.value, (a) => (c(), fe(n, {
1369
1636
  key: a,
1370
1637
  label: a,
1371
1638
  value: a
@@ -1374,87 +1641,90 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1374
1641
  _: 1
1375
1642
  }, 8, ["modelValue"])
1376
1643
  ]),
1377
- s(m, {
1644
+ r(v, {
1378
1645
  size: "small",
1379
- onClick: Q,
1380
- icon: n(Ee),
1646
+ onClick: Tl,
1647
+ icon: i(Ge),
1381
1648
  style: { width: "100%", margin: "10px 0" }
1382
1649
  }, {
1383
- default: z(() => [...l[23] || (l[23] = [
1384
- Ve(" 添加自定义配置 ", -1)
1650
+ default: O(() => [...e[24] || (e[24] = [
1651
+ Me(" 添加自定义配置 ", -1)
1385
1652
  ])]),
1386
1653
  _: 1
1387
1654
  }, 8, ["icon"]),
1388
- i("div", wt, [
1389
- (f(!0), V(O, null, X(o.value?.fillColorList, (a, k) => (f(), V(O, {
1390
- key: a.key
1655
+ u("div", Yo, [
1656
+ (c(!0), h(G, null, de(s.value, (a, ne) => (c(), h(G, {
1657
+ key: a.key || ne
1391
1658
  }, [
1392
- a.type == "custom" ? (f(), V("div", Lt, [
1393
- i("span", _t, "若 " + Fe(S.value) + " =", 1),
1394
- s(r, {
1659
+ a.type == "custom" ? (c(), h("div", jo, [
1660
+ u("span", Go, "若 " + je(V.value) + " =", 1),
1661
+ r(m, {
1395
1662
  modelValue: a.value,
1396
- "onUpdate:modelValue": (u) => a.value = u,
1663
+ "onUpdate:modelValue": (p) => a.value = p,
1397
1664
  size: "small",
1398
1665
  placeholder: "请选择值",
1399
1666
  clearable: "",
1400
1667
  filterable: ""
1401
1668
  }, {
1402
- default: z(() => [
1403
- (f(!0), V(O, null, X(D(a.value), (u) => (f(), W(e, {
1404
- key: u,
1405
- label: u,
1406
- value: u
1669
+ default: O(() => [
1670
+ (c(!0), h(G, null, de(Ul(a.value), (p) => (c(), fe(n, {
1671
+ key: p,
1672
+ label: p,
1673
+ value: p
1407
1674
  }, null, 8, ["label", "value"]))), 128))
1408
1675
  ]),
1409
1676
  _: 2
1410
1677
  }, 1032, ["modelValue", "onUpdate:modelValue"]),
1411
- s(L, {
1678
+ r(S, {
1412
1679
  modelValue: a.color,
1413
- "onUpdate:modelValue": (u) => a.color = u,
1680
+ "onUpdate:modelValue": (p) => a.color = p,
1414
1681
  "show-alpha": "",
1415
- predefine: n(oe)
1682
+ "color-format": "rgb",
1683
+ predefine: i(Le)
1416
1684
  }, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"]),
1417
- s(_, {
1685
+ r(B, {
1418
1686
  class: "delete-icon",
1419
- onClick: (u) => P(k)
1687
+ onClick: (p) => Pl(F(a))
1420
1688
  }, {
1421
- default: z(() => [
1422
- s(n(Pe))
1689
+ default: O(() => [
1690
+ r(i(ol))
1423
1691
  ]),
1424
1692
  _: 1
1425
1693
  }, 8, ["onClick"])
1426
- ])) : a.type == "default" ? (f(), V("div", kt, [
1427
- l[24] || (l[24] = i("span", { class: "condition-text" }, "默认填充色", -1)),
1428
- s(L, {
1429
- modelValue: a.color,
1430
- "onUpdate:modelValue": (u) => a.color = u,
1431
- "show-alpha": "",
1432
- predefine: n(oe)
1433
- }, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
1434
- ])) : M("", !0)
1435
- ], 64))), 128))
1694
+ ])) : D("", !0)
1695
+ ], 64))), 128)),
1696
+ b.value ? (c(), h("div", Do, [
1697
+ e[25] || (e[25] = u("span", { class: "condition-text" }, "默认填充色", -1)),
1698
+ r(S, {
1699
+ modelValue: b.value.color,
1700
+ "onUpdate:modelValue": e[4] || (e[4] = (a) => b.value.color = a),
1701
+ "show-alpha": "",
1702
+ "color-format": "rgb",
1703
+ predefine: i(Le)
1704
+ }, null, 8, ["modelValue", "predefine"])
1705
+ ])) : D("", !0)
1436
1706
  ]),
1437
- l[31] || (l[31] = i("div", {
1707
+ e[32] || (e[32] = u("div", {
1438
1708
  class: "section-header",
1439
1709
  style: { "margin-top": "20px" }
1440
1710
  }, [
1441
- i("span", null, "标注配置")
1711
+ u("span", null, "标注配置")
1442
1712
  ], -1)),
1443
- i("div", Nt, [
1444
- i("div", Ft, [
1445
- l[25] || (l[25] = i("span", null, "标注", -1)),
1446
- s(r, {
1447
- modelValue: y.value.showLabel,
1448
- "onUpdate:modelValue": l[4] || (l[4] = (a) => y.value.showLabel = a),
1713
+ u("div", Ho, [
1714
+ u("div", qo, [
1715
+ e[26] || (e[26] = u("span", null, "标注", -1)),
1716
+ r(m, {
1717
+ modelValue: X.value.showLabel,
1718
+ "onUpdate:modelValue": e[5] || (e[5] = (a) => X.value.showLabel = a),
1449
1719
  size: "small",
1450
1720
  placeholder: "请选择"
1451
1721
  }, {
1452
- default: z(() => [
1453
- s(e, {
1722
+ default: O(() => [
1723
+ r(n, {
1454
1724
  label: "显示",
1455
1725
  value: !0
1456
1726
  }),
1457
- s(e, {
1727
+ r(n, {
1458
1728
  label: "不显示",
1459
1729
  value: !1
1460
1730
  })
@@ -1462,20 +1732,16 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1462
1732
  _: 1
1463
1733
  }, 8, ["modelValue"])
1464
1734
  ]),
1465
- y.value.showLabel ? (f(), V("div", Et, [
1466
- l[26] || (l[26] = i("span", null, "选择属性", -1)),
1467
- s(r, {
1468
- modelValue: y.value.labelField,
1469
- "onUpdate:modelValue": l[5] || (l[5] = (a) => y.value.labelField = a),
1735
+ X.value.showLabel ? (c(), h("div", Qo, [
1736
+ e[27] || (e[27] = u("span", null, "选择属性", -1)),
1737
+ r(m, {
1738
+ modelValue: X.value.labelField,
1739
+ "onUpdate:modelValue": e[6] || (e[6] = (a) => X.value.labelField = a),
1470
1740
  size: "small",
1471
1741
  placeholder: "请选择属性"
1472
1742
  }, {
1473
- default: z(() => [
1474
- s(e, {
1475
- label: "FID",
1476
- value: "FID"
1477
- }),
1478
- (f(!0), V(O, null, X(c.value?.columnSet, (a) => (f(), W(e, {
1743
+ default: O(() => [
1744
+ (c(!0), h(G, null, de(re.value, (a) => (c(), fe(n, {
1479
1745
  key: a,
1480
1746
  label: a,
1481
1747
  value: a
@@ -1483,100 +1749,101 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1483
1749
  ]),
1484
1750
  _: 1
1485
1751
  }, 8, ["modelValue"])
1486
- ])) : M("", !0),
1487
- y.value.showLabel ? (f(), V("div", zt, [
1488
- l[27] || (l[27] = i("span", null, "字体大小", -1)),
1489
- s(r, {
1490
- modelValue: y.value.fontSize,
1491
- "onUpdate:modelValue": l[6] || (l[6] = (a) => y.value.fontSize = a),
1752
+ ])) : D("", !0),
1753
+ X.value.showLabel ? (c(), h("div", Zo, [
1754
+ e[28] || (e[28] = u("span", null, "字体大小", -1)),
1755
+ r(m, {
1756
+ modelValue: X.value.fontSize,
1757
+ "onUpdate:modelValue": e[7] || (e[7] = (a) => X.value.fontSize = a),
1492
1758
  size: "small",
1493
1759
  placeholder: "请选择字体大小"
1494
1760
  }, {
1495
- default: z(() => [
1496
- s(e, {
1761
+ default: O(() => [
1762
+ r(n, {
1497
1763
  label: "12",
1498
1764
  value: 12
1499
1765
  }),
1500
- s(e, {
1766
+ r(n, {
1501
1767
  label: "14",
1502
1768
  value: 14
1503
1769
  }),
1504
- s(e, {
1770
+ r(n, {
1505
1771
  label: "16",
1506
1772
  value: 16
1507
1773
  }),
1508
- s(e, {
1774
+ r(n, {
1509
1775
  label: "18",
1510
1776
  value: 18
1511
1777
  }),
1512
- s(e, {
1778
+ r(n, {
1513
1779
  label: "20",
1514
1780
  value: 20
1515
1781
  }),
1516
- s(e, {
1782
+ r(n, {
1517
1783
  label: "22",
1518
1784
  value: 22
1519
1785
  }),
1520
- s(e, {
1786
+ r(n, {
1521
1787
  label: "24",
1522
1788
  value: 24
1523
1789
  })
1524
1790
  ]),
1525
1791
  _: 1
1526
1792
  }, 8, ["modelValue"])
1527
- ])) : M("", !0),
1528
- y.value.showLabel ? (f(), V("div", xt, [
1529
- l[28] || (l[28] = i("span", null, "字体颜色", -1)),
1530
- s(L, {
1531
- modelValue: y.value.fontColor,
1532
- "onUpdate:modelValue": l[7] || (l[7] = (a) => y.value.fontColor = a),
1793
+ ])) : D("", !0),
1794
+ X.value.showLabel ? (c(), h("div", et, [
1795
+ e[29] || (e[29] = u("span", null, "字体颜色", -1)),
1796
+ r(S, {
1797
+ modelValue: X.value.fontColor,
1798
+ "onUpdate:modelValue": e[8] || (e[8] = (a) => X.value.fontColor = a),
1533
1799
  "show-alpha": "",
1534
- predefine: n(oe)
1800
+ "color-format": "rgb",
1801
+ predefine: i(Le)
1535
1802
  }, null, 8, ["modelValue", "predefine"])
1536
- ])) : M("", !0),
1537
- y.value.showLabel ? (f(), V("div", Ut, [
1538
- l[29] || (l[29] = i("span", null, "字体类型", -1)),
1539
- s(r, {
1540
- modelValue: y.value.fontFamily,
1541
- "onUpdate:modelValue": l[8] || (l[8] = (a) => y.value.fontFamily = a),
1803
+ ])) : D("", !0),
1804
+ X.value.showLabel ? (c(), h("div", lt, [
1805
+ e[30] || (e[30] = u("span", null, "字体类型", -1)),
1806
+ r(m, {
1807
+ modelValue: X.value.fontFamily,
1808
+ "onUpdate:modelValue": e[9] || (e[9] = (a) => X.value.fontFamily = a),
1542
1809
  size: "small",
1543
1810
  placeholder: "请选择字体类型"
1544
1811
  }, {
1545
- default: z(() => [
1546
- s(e, {
1812
+ default: O(() => [
1813
+ r(n, {
1547
1814
  label: "宋体",
1548
1815
  value: "SimSun"
1549
1816
  }),
1550
- s(e, {
1817
+ r(n, {
1551
1818
  label: "黑体",
1552
1819
  value: "SimHei"
1553
1820
  }),
1554
- s(e, {
1821
+ r(n, {
1555
1822
  label: "等线",
1556
1823
  value: "DengXian"
1557
1824
  })
1558
1825
  ]),
1559
1826
  _: 1
1560
1827
  }, 8, ["modelValue"])
1561
- ])) : M("", !0)
1828
+ ])) : D("", !0)
1562
1829
  ])
1563
1830
  ], 512), [
1564
- [_e, v.value === "polygon"]
1831
+ [We, f.value === "polygon"]
1565
1832
  ]),
1566
- pe(i("div", It, [
1567
- i("div", Ot, [
1568
- l[32] || (l[32] = i("span", null, "目标字段", -1)),
1569
- s(r, {
1570
- modelValue: g.value,
1571
- "onUpdate:modelValue": l[9] || (l[9] = (a) => g.value = a),
1833
+ Oe(u("div", ot, [
1834
+ u("div", tt, [
1835
+ e[33] || (e[33] = u("span", null, "目标字段", -1)),
1836
+ r(m, {
1837
+ modelValue: N.value,
1838
+ "onUpdate:modelValue": e[10] || (e[10] = (a) => N.value = a),
1572
1839
  size: "small",
1573
1840
  placeholder: "请选择目标字段",
1574
1841
  clearable: "",
1575
1842
  filterable: "",
1576
- onChange: T
1843
+ onChange: Kl
1577
1844
  }, {
1578
- default: z(() => [
1579
- (f(!0), V(O, null, X(c.value?.columnSet, (a) => (f(), W(e, {
1845
+ default: O(() => [
1846
+ (c(!0), h(G, null, de(_.value, (a) => (c(), fe(n, {
1580
1847
  key: a,
1581
1848
  label: a,
1582
1849
  value: a
@@ -1585,63 +1852,63 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1585
1852
  _: 1
1586
1853
  }, 8, ["modelValue"])
1587
1854
  ]),
1588
- s(m, {
1855
+ r(v, {
1589
1856
  size: "small",
1590
- onClick: ee,
1591
- icon: n(Ee),
1857
+ onClick: Rl,
1858
+ icon: i(Ge),
1592
1859
  style: { width: "100%", margin: "10px 0" }
1593
1860
  }, {
1594
- default: z(() => [...l[33] || (l[33] = [
1595
- Ve(" 添加自定义配置 ", -1)
1861
+ default: O(() => [...e[34] || (e[34] = [
1862
+ Me(" 添加自定义配置 ", -1)
1596
1863
  ])]),
1597
1864
  _: 1
1598
1865
  }, 8, ["icon"]),
1599
- i("div", Mt, [
1600
- (f(!0), V(O, null, X(o.value?.outlineConfigList, (a, k) => (f(), V(O, { key: k }, [
1601
- a.type === "custom" ? (f(), V("div", Tt, [
1602
- i("div", Pt, [
1603
- i("span", Bt, "若 " + Fe(g.value) + " =", 1),
1604
- s(r, {
1866
+ u("div", at, [
1867
+ (c(!0), h(G, null, de(o.value?.outlineConfigList, (a, ne) => (c(), h(G, { key: ne }, [
1868
+ a.type === "custom" ? (c(), h("div", nt, [
1869
+ u("div", it, [
1870
+ u("span", ut, "若 " + je(N.value) + " =", 1),
1871
+ r(m, {
1605
1872
  modelValue: a.value,
1606
- "onUpdate:modelValue": (u) => a.value = u,
1873
+ "onUpdate:modelValue": (p) => a.value = p,
1607
1874
  size: "small",
1608
1875
  placeholder: "请选择值",
1609
1876
  clearable: "",
1610
1877
  filterable: ""
1611
1878
  }, {
1612
- default: z(() => [
1613
- (f(!0), V(O, null, X(le(a.value), (u) => (f(), W(e, {
1614
- key: u,
1615
- label: u,
1616
- value: u
1879
+ default: O(() => [
1880
+ (c(!0), h(G, null, de(Jl(a.value), (p) => (c(), fe(n, {
1881
+ key: p,
1882
+ label: p,
1883
+ value: p
1617
1884
  }, null, 8, ["label", "value"]))), 128))
1618
1885
  ]),
1619
1886
  _: 2
1620
1887
  }, 1032, ["modelValue", "onUpdate:modelValue"]),
1621
- s(_, {
1888
+ r(B, {
1622
1889
  class: "delete-icon",
1623
- onClick: (u) => F(k)
1890
+ onClick: (p) => $l(ne)
1624
1891
  }, {
1625
- default: z(() => [
1626
- s(n(Pe))
1892
+ default: O(() => [
1893
+ r(i(ol))
1627
1894
  ]),
1628
1895
  _: 1
1629
1896
  }, 8, ["onClick"])
1630
1897
  ]),
1631
- i("div", At, [
1632
- l[34] || (l[34] = i("span", null, "线形", -1)),
1633
- s(r, {
1898
+ u("div", st, [
1899
+ e[35] || (e[35] = u("span", null, "线形", -1)),
1900
+ r(m, {
1634
1901
  modelValue: a.lineStyle,
1635
- "onUpdate:modelValue": (u) => a.lineStyle = u,
1902
+ "onUpdate:modelValue": (p) => a.lineStyle = p,
1636
1903
  size: "small",
1637
1904
  placeholder: "请选择线形"
1638
1905
  }, {
1639
- default: z(() => [
1640
- s(e, {
1906
+ default: O(() => [
1907
+ r(n, {
1641
1908
  label: "虚线",
1642
1909
  value: "dash"
1643
1910
  }),
1644
- s(e, {
1911
+ r(n, {
1645
1912
  label: "实线",
1646
1913
  value: "solid"
1647
1914
  })
@@ -1649,54 +1916,44 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1649
1916
  _: 1
1650
1917
  }, 8, ["modelValue", "onUpdate:modelValue"])
1651
1918
  ]),
1652
- i("div", $t, [
1653
- l[35] || (l[35] = i("span", null, "颜色", -1)),
1654
- s(L, {
1919
+ u("div", rt, [
1920
+ e[36] || (e[36] = u("span", null, "颜色", -1)),
1921
+ r(S, {
1655
1922
  modelValue: a.outlineColor,
1656
- "onUpdate:modelValue": (u) => a.outlineColor = u,
1923
+ "onUpdate:modelValue": (p) => a.outlineColor = p,
1657
1924
  "show-alpha": "",
1658
- predefine: n(oe)
1925
+ "color-format": "rgb",
1926
+ predefine: i(Le)
1659
1927
  }, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
1660
1928
  ]),
1661
- i("div", Rt, [
1662
- l[36] || (l[36] = i("span", null, "线宽", -1)),
1663
- s(U, {
1929
+ u("div", dt, [
1930
+ e[37] || (e[37] = u("span", null, "线宽", -1)),
1931
+ r(K, {
1664
1932
  modelValue: a.outlineWidth,
1665
- "onUpdate:modelValue": (u) => a.outlineWidth = u,
1933
+ "onUpdate:modelValue": (p) => a.outlineWidth = p,
1666
1934
  min: 1,
1667
1935
  max: 20,
1668
1936
  style: { width: "120px" }
1669
1937
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1670
- ]),
1671
- i("div", Kt, [
1672
- l[37] || (l[37] = i("span", null, "透明度", -1)),
1673
- s(U, {
1674
- modelValue: a.outlineOpacity,
1675
- "onUpdate:modelValue": (u) => a.outlineOpacity = u,
1676
- min: 0,
1677
- max: 1,
1678
- step: 0.1,
1679
- style: { width: "120px" }
1680
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
1681
1938
  ])
1682
- ])) : a.type === "default" ? (f(), V("div", Jt, [
1683
- l[42] || (l[42] = i("div", null, [
1684
- i("h5", null, "默认配置")
1939
+ ])) : a.type === "default" ? (c(), h("div", ft, [
1940
+ e[41] || (e[41] = u("div", null, [
1941
+ u("h5", null, "默认配置")
1685
1942
  ], -1)),
1686
- i("div", Xt, [
1687
- l[38] || (l[38] = i("span", null, "线形", -1)),
1688
- s(r, {
1943
+ u("div", vt, [
1944
+ e[38] || (e[38] = u("span", null, "线形", -1)),
1945
+ r(m, {
1689
1946
  modelValue: a.lineStyle,
1690
- "onUpdate:modelValue": (u) => a.lineStyle = u,
1947
+ "onUpdate:modelValue": (p) => a.lineStyle = p,
1691
1948
  size: "small",
1692
1949
  placeholder: "请选择线形"
1693
1950
  }, {
1694
- default: z(() => [
1695
- s(e, {
1951
+ default: O(() => [
1952
+ r(n, {
1696
1953
  label: "虚线",
1697
1954
  value: "dash"
1698
1955
  }),
1699
- s(e, {
1956
+ r(n, {
1700
1957
  label: "实线",
1701
1958
  value: "solid"
1702
1959
  })
@@ -1704,185 +1961,170 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1704
1961
  _: 1
1705
1962
  }, 8, ["modelValue", "onUpdate:modelValue"])
1706
1963
  ]),
1707
- i("div", Wt, [
1708
- l[39] || (l[39] = i("span", null, "颜色", -1)),
1709
- s(L, {
1964
+ u("div", ct, [
1965
+ e[39] || (e[39] = u("span", null, "颜色", -1)),
1966
+ r(S, {
1710
1967
  modelValue: a.outlineColor,
1711
- "onUpdate:modelValue": (u) => a.outlineColor = u,
1968
+ "onUpdate:modelValue": (p) => a.outlineColor = p,
1712
1969
  "show-alpha": "",
1713
- predefine: n(oe)
1970
+ "color-format": "rgb",
1971
+ predefine: i(Le)
1714
1972
  }, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
1715
1973
  ]),
1716
- i("div", Yt, [
1717
- l[40] || (l[40] = i("span", null, "线宽", -1)),
1718
- s(U, {
1974
+ u("div", mt, [
1975
+ e[40] || (e[40] = u("span", null, "线宽", -1)),
1976
+ r(K, {
1719
1977
  modelValue: a.outlineWidth,
1720
- "onUpdate:modelValue": (u) => a.outlineWidth = u,
1978
+ "onUpdate:modelValue": (p) => a.outlineWidth = p,
1721
1979
  min: 1,
1722
1980
  max: 20,
1723
1981
  style: { width: "120px" }
1724
1982
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
1725
- ]),
1726
- i("div", jt, [
1727
- l[41] || (l[41] = i("span", null, "透明度", -1)),
1728
- s(U, {
1729
- modelValue: a.outlineOpacity,
1730
- "onUpdate:modelValue": (u) => a.outlineOpacity = u,
1731
- min: 0,
1732
- max: 1,
1733
- step: 0.1,
1734
- style: { width: "120px" }
1735
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
1736
1983
  ])
1737
- ])) : M("", !0)
1984
+ ])) : D("", !0)
1738
1985
  ], 64))), 128))
1739
1986
  ]),
1740
- N.value.includes("polygon") ? M("", !0) : (f(), V(O, { key: 0 }, [
1741
- l[48] || (l[48] = i("div", {
1742
- class: "section-header",
1743
- style: { "margin-top": "20px" }
1744
- }, [
1745
- i("span", null, "标注配置")
1746
- ], -1)),
1747
- i("div", Dt, [
1748
- i("div", Gt, [
1749
- l[43] || (l[43] = i("span", null, "标注", -1)),
1750
- s(r, {
1751
- modelValue: w.value.showLabel,
1752
- "onUpdate:modelValue": l[10] || (l[10] = (a) => w.value.showLabel = a),
1753
- size: "small",
1754
- placeholder: "请选择"
1755
- }, {
1756
- default: z(() => [
1757
- s(e, {
1758
- label: "显示",
1759
- value: !0
1760
- }),
1761
- s(e, {
1762
- label: "不显示",
1763
- value: !1
1764
- })
1765
- ]),
1766
- _: 1
1767
- }, 8, ["modelValue"])
1768
- ]),
1769
- w.value.showLabel ? (f(), V("div", Ht, [
1770
- l[44] || (l[44] = i("span", null, "选择属性", -1)),
1771
- s(r, {
1772
- modelValue: w.value.labelField,
1773
- "onUpdate:modelValue": l[11] || (l[11] = (a) => w.value.labelField = a),
1774
- size: "small",
1775
- placeholder: "请选择属性"
1776
- }, {
1777
- default: z(() => [
1778
- s(e, {
1779
- label: "FID",
1780
- value: "FID"
1781
- }),
1782
- (f(!0), V(O, null, X(c.value?.columnSet, (a) => (f(), W(e, {
1783
- key: a,
1784
- label: a,
1785
- value: a
1786
- }, null, 8, ["label", "value"]))), 128))
1787
- ]),
1788
- _: 1
1789
- }, 8, ["modelValue"])
1790
- ])) : M("", !0),
1791
- w.value.showLabel ? (f(), V("div", qt, [
1792
- l[45] || (l[45] = i("span", null, "字体大小", -1)),
1793
- s(r, {
1794
- modelValue: w.value.fontSize,
1795
- "onUpdate:modelValue": l[12] || (l[12] = (a) => w.value.fontSize = a),
1796
- size: "small",
1797
- placeholder: "请选择字体大小"
1798
- }, {
1799
- default: z(() => [
1800
- s(e, {
1801
- label: "12",
1802
- value: 12
1803
- }),
1804
- s(e, {
1805
- label: "14",
1806
- value: 14
1807
- }),
1808
- s(e, {
1809
- label: "16",
1810
- value: 16
1811
- }),
1812
- s(e, {
1813
- label: "18",
1814
- value: 18
1815
- }),
1816
- s(e, {
1817
- label: "20",
1818
- value: 20
1819
- }),
1820
- s(e, {
1821
- label: "22",
1822
- value: 22
1823
- }),
1824
- s(e, {
1825
- label: "24",
1826
- value: 24
1827
- })
1828
- ]),
1829
- _: 1
1830
- }, 8, ["modelValue"])
1831
- ])) : M("", !0),
1832
- w.value.showLabel ? (f(), V("div", Qt, [
1833
- l[46] || (l[46] = i("span", null, "字体颜色", -1)),
1834
- s(L, {
1835
- modelValue: w.value.fontColor,
1836
- "onUpdate:modelValue": l[13] || (l[13] = (a) => w.value.fontColor = a),
1837
- "show-alpha": "",
1838
- predefine: n(oe)
1839
- }, null, 8, ["modelValue", "predefine"])
1840
- ])) : M("", !0),
1841
- w.value.showLabel ? (f(), V("div", Zt, [
1842
- l[47] || (l[47] = i("span", null, "字体类型", -1)),
1843
- s(r, {
1844
- modelValue: w.value.fontFamily,
1845
- "onUpdate:modelValue": l[14] || (l[14] = (a) => w.value.fontFamily = a),
1846
- size: "small",
1847
- placeholder: "请选择字体类型"
1848
- }, {
1849
- default: z(() => [
1850
- s(e, {
1851
- label: "宋体",
1852
- value: "SimSun"
1853
- }),
1854
- s(e, {
1855
- label: "黑体",
1856
- value: "SimHei"
1857
- }),
1858
- s(e, {
1859
- label: "等线",
1860
- value: "DengXian"
1861
- })
1862
- ]),
1863
- _: 1
1864
- }, 8, ["modelValue"])
1865
- ])) : M("", !0)
1866
- ])
1867
- ], 64))
1987
+ e[47] || (e[47] = u("div", {
1988
+ class: "section-header",
1989
+ style: { "margin-top": "20px" }
1990
+ }, [
1991
+ u("span", null, "标注配置")
1992
+ ], -1)),
1993
+ u("div", pt, [
1994
+ u("div", gt, [
1995
+ e[42] || (e[42] = u("span", null, "标注", -1)),
1996
+ r(m, {
1997
+ modelValue: T.value.showLabel,
1998
+ "onUpdate:modelValue": e[11] || (e[11] = (a) => T.value.showLabel = a),
1999
+ size: "small",
2000
+ placeholder: "请选择"
2001
+ }, {
2002
+ default: O(() => [
2003
+ r(n, {
2004
+ label: "显示",
2005
+ value: !0
2006
+ }),
2007
+ r(n, {
2008
+ label: "不显示",
2009
+ value: !1
2010
+ })
2011
+ ]),
2012
+ _: 1
2013
+ }, 8, ["modelValue"])
2014
+ ]),
2015
+ T.value.showLabel ? (c(), h("div", bt, [
2016
+ e[43] || (e[43] = u("span", null, "选择属性", -1)),
2017
+ r(m, {
2018
+ modelValue: T.value.labelField,
2019
+ "onUpdate:modelValue": e[12] || (e[12] = (a) => T.value.labelField = a),
2020
+ size: "small",
2021
+ placeholder: "请选择属性"
2022
+ }, {
2023
+ default: O(() => [
2024
+ (c(!0), h(G, null, de(ge.value, (a) => (c(), fe(n, {
2025
+ key: a,
2026
+ label: a,
2027
+ value: a
2028
+ }, null, 8, ["label", "value"]))), 128))
2029
+ ]),
2030
+ _: 1
2031
+ }, 8, ["modelValue"])
2032
+ ])) : D("", !0),
2033
+ T.value.showLabel ? (c(), h("div", yt, [
2034
+ e[44] || (e[44] = u("span", null, "字体大小", -1)),
2035
+ r(m, {
2036
+ modelValue: T.value.fontSize,
2037
+ "onUpdate:modelValue": e[13] || (e[13] = (a) => T.value.fontSize = a),
2038
+ size: "small",
2039
+ placeholder: "请选择字体大小"
2040
+ }, {
2041
+ default: O(() => [
2042
+ r(n, {
2043
+ label: "12",
2044
+ value: 12
2045
+ }),
2046
+ r(n, {
2047
+ label: "14",
2048
+ value: 14
2049
+ }),
2050
+ r(n, {
2051
+ label: "16",
2052
+ value: 16
2053
+ }),
2054
+ r(n, {
2055
+ label: "18",
2056
+ value: 18
2057
+ }),
2058
+ r(n, {
2059
+ label: "20",
2060
+ value: 20
2061
+ }),
2062
+ r(n, {
2063
+ label: "22",
2064
+ value: 22
2065
+ }),
2066
+ r(n, {
2067
+ label: "24",
2068
+ value: 24
2069
+ })
2070
+ ]),
2071
+ _: 1
2072
+ }, 8, ["modelValue"])
2073
+ ])) : D("", !0),
2074
+ T.value.showLabel ? (c(), h("div", Ct, [
2075
+ e[45] || (e[45] = u("span", null, "字体颜色", -1)),
2076
+ r(S, {
2077
+ modelValue: T.value.fontColor,
2078
+ "onUpdate:modelValue": e[14] || (e[14] = (a) => T.value.fontColor = a),
2079
+ "show-alpha": "",
2080
+ "color-format": "rgb",
2081
+ predefine: i(Le)
2082
+ }, null, 8, ["modelValue", "predefine"])
2083
+ ])) : D("", !0),
2084
+ T.value.showLabel ? (c(), h("div", St, [
2085
+ e[46] || (e[46] = u("span", null, "字体类型", -1)),
2086
+ r(m, {
2087
+ modelValue: T.value.fontFamily,
2088
+ "onUpdate:modelValue": e[15] || (e[15] = (a) => T.value.fontFamily = a),
2089
+ size: "small",
2090
+ placeholder: "请选择字体类型"
2091
+ }, {
2092
+ default: O(() => [
2093
+ r(n, {
2094
+ label: "宋体",
2095
+ value: "SimSun"
2096
+ }),
2097
+ r(n, {
2098
+ label: "黑体",
2099
+ value: "SimHei"
2100
+ }),
2101
+ r(n, {
2102
+ label: "等线",
2103
+ value: "DengXian"
2104
+ })
2105
+ ]),
2106
+ _: 1
2107
+ }, 8, ["modelValue"])
2108
+ ])) : D("", !0)
2109
+ ])
1868
2110
  ], 512), [
1869
- [_e, v.value === "line"]
2111
+ [We, f.value === "line"]
1870
2112
  ]),
1871
- pe(i("div", ea, [
1872
- i("div", la, [
1873
- i("div", ta, [
1874
- l[49] || (l[49] = i("span", null, "目标字段", -1)),
1875
- s(r, {
1876
- modelValue: b.value,
1877
- "onUpdate:modelValue": l[15] || (l[15] = (a) => b.value = a),
2113
+ Oe(u("div", ht, [
2114
+ u("div", Vt, [
2115
+ u("div", Lt, [
2116
+ e[48] || (e[48] = u("span", null, "目标字段", -1)),
2117
+ r(m, {
2118
+ modelValue: C.value,
2119
+ "onUpdate:modelValue": e[16] || (e[16] = (a) => C.value = a),
1878
2120
  size: "small",
1879
2121
  placeholder: "请选择目标字段",
1880
2122
  clearable: "",
1881
2123
  filterable: "",
1882
- onChange: Z
2124
+ onChange: Bl
1883
2125
  }, {
1884
- default: z(() => [
1885
- (f(!0), V(O, null, X(c.value?.columnSet, (a) => (f(), W(e, {
2126
+ default: O(() => [
2127
+ (c(!0), h(G, null, de(j.value, (a) => (c(), fe(n, {
1886
2128
  key: a,
1887
2129
  label: a,
1888
2130
  value: a
@@ -1891,69 +2133,69 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1891
2133
  _: 1
1892
2134
  }, 8, ["modelValue"])
1893
2135
  ]),
1894
- s(m, {
2136
+ r(v, {
1895
2137
  size: "small",
1896
- onClick: B,
1897
- icon: n(Ee),
2138
+ onClick: Ol,
2139
+ icon: i(Ge),
1898
2140
  style: { width: "100%", margin: "10px 0" }
1899
2141
  }, {
1900
- default: z(() => [...l[50] || (l[50] = [
1901
- Ve(" 添加自定义配置 ", -1)
2142
+ default: O(() => [...e[49] || (e[49] = [
2143
+ Me(" 添加自定义配置 ", -1)
1902
2144
  ])]),
1903
2145
  _: 1
1904
2146
  }, 8, ["icon"]),
1905
- i("div", aa, [
1906
- (f(!0), V(O, null, X(o.value?.circleConfigList, (a, k) => (f(), V("div", {
2147
+ u("div", wt, [
2148
+ (c(!0), h(G, null, de(o.value?.circleConfigList, (a, ne) => (c(), h("div", {
1907
2149
  key: a.key,
1908
2150
  class: "config-box"
1909
2151
  }, [
1910
- a.type == "custom" ? (f(), V(O, { key: 0 }, [
1911
- l[57] || (l[57] = i("div", null, [
1912
- i("h5", null, "自定义配置")
2152
+ a.type == "custom" ? (c(), h(G, { key: 0 }, [
2153
+ e[56] || (e[56] = u("div", null, [
2154
+ u("h5", null, "自定义配置")
1913
2155
  ], -1)),
1914
- i("div", oa, [
1915
- i("span", na, "若 " + Fe(b.value) + " =", 1),
1916
- s(r, {
2156
+ u("div", kt, [
2157
+ u("span", Ft, "若 " + je(C.value) + " =", 1),
2158
+ r(m, {
1917
2159
  "model-value": a.value,
1918
- "onUpdate:modelValue": (u) => a.value = u,
2160
+ "onUpdate:modelValue": (p) => a.value = p,
1919
2161
  size: "small",
1920
2162
  placeholder: "请选择值",
1921
2163
  clearable: "",
1922
2164
  filterable: ""
1923
2165
  }, {
1924
- default: z(() => [
1925
- (f(!0), V(O, null, X(G(a.value), (u) => (f(), W(e, {
1926
- key: String(u),
1927
- label: String(u),
1928
- value: u
2166
+ default: O(() => [
2167
+ (c(!0), h(G, null, de(Il(a.value), (p) => (c(), fe(n, {
2168
+ key: String(p),
2169
+ label: String(p),
2170
+ value: p
1929
2171
  }, null, 8, ["label", "value"]))), 128))
1930
2172
  ]),
1931
2173
  _: 2
1932
2174
  }, 1032, ["model-value", "onUpdate:modelValue"]),
1933
- s(_, {
2175
+ r(B, {
1934
2176
  class: "delete-icon",
1935
- onClick: (u) => H(k)
2177
+ onClick: (p) => Ml(ne)
1936
2178
  }, {
1937
- default: z(() => [
1938
- s(n(Pe))
2179
+ default: O(() => [
2180
+ r(i(ol))
1939
2181
  ]),
1940
2182
  _: 1
1941
2183
  }, 8, ["onClick"])
1942
2184
  ]),
1943
- i("div", ia, [
1944
- l[51] || (l[51] = i("span", null, "渲染方式", -1)),
1945
- s(r, {
2185
+ u("div", Nt, [
2186
+ e[50] || (e[50] = u("span", null, "渲染方式", -1)),
2187
+ r(m, {
1946
2188
  modelValue: a.renderMode,
1947
- "onUpdate:modelValue": (u) => a.renderMode = u,
2189
+ "onUpdate:modelValue": (p) => a.renderMode = p,
1948
2190
  size: "small",
1949
2191
  placeholder: "请选择渲染方式"
1950
2192
  }, {
1951
- default: z(() => [
1952
- s(e, {
2193
+ default: O(() => [
2194
+ r(n, {
1953
2195
  label: "纯色点",
1954
2196
  value: "color"
1955
2197
  }),
1956
- s(e, {
2198
+ r(n, {
1957
2199
  label: "图标",
1958
2200
  value: "icon"
1959
2201
  })
@@ -1961,82 +2203,83 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
1961
2203
  _: 1
1962
2204
  }, 8, ["modelValue", "onUpdate:modelValue"])
1963
2205
  ]),
1964
- a.renderMode === "color" ? (f(), V(O, { key: 0 }, [
1965
- i("div", ua, [
1966
- l[52] || (l[52] = i("span", null, "点位样式", -1)),
1967
- i("div", sa, [
1968
- (f(!0), V(O, null, X(n(Me), (u) => (f(), V("div", {
1969
- key: u.fileName,
1970
- class: Y(["shape-item-inline", {
1971
- selected: a.pointStyle === u.fileName
2206
+ a.renderMode === "color" ? (c(), h(G, { key: 0 }, [
2207
+ u("div", zt, [
2208
+ e[51] || (e[51] = u("span", null, "点位样式", -1)),
2209
+ u("div", Et, [
2210
+ (c(!0), h(G, null, de(A.value, (p) => (c(), h("div", {
2211
+ key: p.id,
2212
+ class: ve(["shape-item-inline", {
2213
+ selected: a.pointStyle === p.id
1972
2214
  }]),
1973
- onClick: (A) => a.pointStyle = u.fileName
2215
+ onClick: (Xl) => a.pointStyle = p.id
1974
2216
  }, [
1975
- i("img", {
1976
- src: j(u.fileName),
2217
+ u("img", {
2218
+ src: p.url,
1977
2219
  alt: ""
1978
- }, null, 8, da)
1979
- ], 10, ra))), 128))
2220
+ }, null, 8, xt)
2221
+ ], 10, _t))), 128))
1980
2222
  ])
1981
2223
  ]),
1982
- i("div", va, [
1983
- l[53] || (l[53] = i("span", null, "点位颜色", -1)),
1984
- s(L, {
2224
+ u("div", Ut, [
2225
+ e[52] || (e[52] = u("span", null, "点位颜色", -1)),
2226
+ r(S, {
1985
2227
  modelValue: a.pointTintColor,
1986
- "onUpdate:modelValue": (u) => a.pointTintColor = u,
2228
+ "onUpdate:modelValue": (p) => a.pointTintColor = p,
1987
2229
  "show-alpha": "",
1988
- predefine: n(oe)
2230
+ "color-format": "rgb",
2231
+ predefine: i(Le)
1989
2232
  }, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
1990
2233
  ]),
1991
- i("div", ma, [
1992
- l[54] || (l[54] = i("span", null, "点位大小", -1)),
1993
- s(U, {
2234
+ u("div", It, [
2235
+ e[53] || (e[53] = u("span", null, "点位大小", -1)),
2236
+ r(K, {
1994
2237
  modelValue: a.pointSize,
1995
- "onUpdate:modelValue": (u) => a.pointSize = u,
2238
+ "onUpdate:modelValue": (p) => a.pointSize = p,
1996
2239
  min: 1,
1997
2240
  max: 20,
1998
2241
  style: { width: "120px" }
1999
2242
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
2000
2243
  ])
2001
- ], 64)) : M("", !0),
2002
- a.renderMode === "icon" ? (f(), V(O, { key: 1 }, [
2003
- i("div", fa, [
2004
- l[55] || (l[55] = i("span", null, "点位样式", -1)),
2005
- s(Ge, {
2006
- modelValue: a.iconImageName,
2007
- "onUpdate:modelValue": (u) => a.iconImageName = u,
2244
+ ], 64)) : D("", !0),
2245
+ a.renderMode === "icon" ? (c(), h(G, { key: 1 }, [
2246
+ u("div", Tt, [
2247
+ e[54] || (e[54] = u("span", null, "点位样式1", -1)),
2248
+ r(ml, {
2249
+ modelValue: a.pointStyle,
2250
+ "onUpdate:modelValue": (p) => a.pointStyle = p,
2008
2251
  placeholder: "选择图标"
2009
2252
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
2010
2253
  ]),
2011
- i("div", ca, [
2012
- l[56] || (l[56] = i("span", null, "点位大小", -1)),
2013
- s(U, {
2254
+ u("div", Ot, [
2255
+ e[55] || (e[55] = u("span", null, "点位大小", -1)),
2256
+ r(K, {
2014
2257
  modelValue: a.pointSize,
2015
- "onUpdate:modelValue": (u) => a.pointSize = u,
2258
+ "onUpdate:modelValue": (p) => a.pointSize = p,
2016
2259
  min: 1,
2017
2260
  max: 20,
2018
2261
  style: { width: "120px" }
2019
2262
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
2020
2263
  ])
2021
- ], 64)) : M("", !0)
2022
- ], 64)) : a.type == "default" ? (f(), V(O, { key: 1 }, [
2023
- l[64] || (l[64] = i("div", null, [
2024
- i("h5", null, "默认配置")
2264
+ ], 64)) : D("", !0)
2265
+ ], 64)) : a.type == "default" ? (c(), h(G, { key: 1 }, [
2266
+ e[63] || (e[63] = u("div", null, [
2267
+ u("h5", null, "默认配置")
2025
2268
  ], -1)),
2026
- i("div", pa, [
2027
- l[58] || (l[58] = i("span", null, "渲染方式", -1)),
2028
- s(r, {
2269
+ u("div", Pt, [
2270
+ e[57] || (e[57] = u("span", null, "渲染方式", -1)),
2271
+ r(m, {
2029
2272
  modelValue: a.renderMode,
2030
- "onUpdate:modelValue": (u) => a.renderMode = u,
2273
+ "onUpdate:modelValue": (p) => a.renderMode = p,
2031
2274
  size: "small",
2032
2275
  placeholder: "请选择渲染方式"
2033
2276
  }, {
2034
- default: z(() => [
2035
- s(e, {
2277
+ default: O(() => [
2278
+ r(n, {
2036
2279
  label: "纯色点",
2037
2280
  value: "color"
2038
2281
  }),
2039
- s(e, {
2282
+ r(n, {
2040
2283
  label: "图标",
2041
2284
  value: "icon"
2042
2285
  })
@@ -2044,87 +2287,88 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
2044
2287
  _: 1
2045
2288
  }, 8, ["modelValue", "onUpdate:modelValue"])
2046
2289
  ]),
2047
- a.renderMode === "color" ? (f(), V(O, { key: 0 }, [
2048
- i("div", ba, [
2049
- l[59] || (l[59] = i("span", null, "点位样式", -1)),
2050
- i("div", ga, [
2051
- (f(!0), V(O, null, X(n(Me), (u) => (f(), V("div", {
2052
- key: u.fileName,
2053
- class: Y(["shape-item-inline", {
2054
- selected: a.pointStyle === u.fileName
2290
+ a.renderMode === "color" ? (c(), h(G, { key: 0 }, [
2291
+ u("div", Mt, [
2292
+ e[58] || (e[58] = u("span", null, "点位样式", -1)),
2293
+ u("div", Bt, [
2294
+ (c(!0), h(G, null, de(A.value, (p) => (c(), h("div", {
2295
+ key: p.id,
2296
+ class: ve(["shape-item-inline", {
2297
+ selected: a.pointStyle === p.id
2055
2298
  }]),
2056
- onClick: (A) => a.pointStyle = u.fileName
2299
+ onClick: (Xl) => a.pointStyle = p.id
2057
2300
  }, [
2058
- i("img", {
2059
- src: j(u.fileName),
2301
+ u("img", {
2302
+ src: p.url,
2060
2303
  alt: ""
2061
- }, null, 8, Va)
2062
- ], 10, ya))), 128))
2304
+ }, null, 8, Jt)
2305
+ ], 10, At))), 128))
2063
2306
  ])
2064
2307
  ]),
2065
- i("div", Sa, [
2066
- l[60] || (l[60] = i("span", null, "点位颜色", -1)),
2067
- s(L, {
2308
+ u("div", Rt, [
2309
+ e[59] || (e[59] = u("span", null, "点位颜色", -1)),
2310
+ r(S, {
2068
2311
  modelValue: a.pointTintColor,
2069
- "onUpdate:modelValue": (u) => a.pointTintColor = u,
2312
+ "onUpdate:modelValue": (p) => a.pointTintColor = p,
2070
2313
  "show-alpha": "",
2071
- predefine: n(oe)
2314
+ "color-format": "rgb",
2315
+ predefine: i(Le)
2072
2316
  }, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
2073
2317
  ]),
2074
- i("div", Ca, [
2075
- l[61] || (l[61] = i("span", null, "点位大小", -1)),
2076
- s(U, {
2318
+ u("div", $t, [
2319
+ e[60] || (e[60] = u("span", null, "点位大小", -1)),
2320
+ r(K, {
2077
2321
  modelValue: a.pointSize,
2078
- "onUpdate:modelValue": (u) => a.pointSize = u,
2322
+ "onUpdate:modelValue": (p) => a.pointSize = p,
2079
2323
  min: 1,
2080
2324
  max: 20,
2081
2325
  style: { width: "120px" }
2082
2326
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
2083
2327
  ])
2084
- ], 64)) : M("", !0),
2085
- a.renderMode === "icon" ? (f(), V(O, { key: 1 }, [
2086
- i("div", ha, [
2087
- l[62] || (l[62] = i("span", null, "点位样式", -1)),
2088
- s(Ge, {
2089
- modelValue: a.iconImageName,
2090
- "onUpdate:modelValue": (u) => a.iconImageName = u,
2328
+ ], 64)) : D("", !0),
2329
+ a.renderMode === "icon" ? (c(), h(G, { key: 1 }, [
2330
+ u("div", Kt, [
2331
+ e[61] || (e[61] = u("span", null, "点位样式", -1)),
2332
+ r(ml, {
2333
+ modelValue: a.pointStyle,
2334
+ "onUpdate:modelValue": (p) => a.pointStyle = p,
2091
2335
  placeholder: "选择图标"
2092
2336
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
2093
2337
  ]),
2094
- i("div", wa, [
2095
- l[63] || (l[63] = i("span", null, "点位大小", -1)),
2096
- s(U, {
2338
+ u("div", Wt, [
2339
+ e[62] || (e[62] = u("span", null, "点位大小", -1)),
2340
+ r(K, {
2097
2341
  modelValue: a.pointSize,
2098
- "onUpdate:modelValue": (u) => a.pointSize = u,
2342
+ "onUpdate:modelValue": (p) => a.pointSize = p,
2099
2343
  min: 1,
2100
2344
  max: 20,
2101
2345
  style: { width: "120px" }
2102
2346
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
2103
2347
  ])
2104
- ], 64)) : M("", !0)
2105
- ], 64)) : M("", !0)
2348
+ ], 64)) : D("", !0)
2349
+ ], 64)) : D("", !0)
2106
2350
  ]))), 128))
2107
2351
  ])
2108
2352
  ]),
2109
- i("div", La, [
2110
- l[70] || (l[70] = i("div", { class: "section-header" }, [
2111
- i("span", null, "标注配置")
2353
+ u("div", Xt, [
2354
+ e[69] || (e[69] = u("div", { class: "section-header" }, [
2355
+ u("span", null, "标注配置")
2112
2356
  ], -1)),
2113
- i("div", _a, [
2114
- i("div", ka, [
2115
- l[65] || (l[65] = i("span", null, "标注", -1)),
2116
- s(r, {
2117
- modelValue: x.value.showLabel,
2118
- "onUpdate:modelValue": l[16] || (l[16] = (a) => x.value.showLabel = a),
2357
+ u("div", Yt, [
2358
+ u("div", jt, [
2359
+ e[64] || (e[64] = u("span", null, "标注", -1)),
2360
+ r(m, {
2361
+ modelValue: $.value.showLabel,
2362
+ "onUpdate:modelValue": e[17] || (e[17] = (a) => $.value.showLabel = a),
2119
2363
  size: "small",
2120
2364
  placeholder: "请选择"
2121
2365
  }, {
2122
- default: z(() => [
2123
- s(e, {
2366
+ default: O(() => [
2367
+ r(n, {
2124
2368
  label: "显示",
2125
2369
  value: !0
2126
2370
  }),
2127
- s(e, {
2371
+ r(n, {
2128
2372
  label: "不显示",
2129
2373
  value: !1
2130
2374
  })
@@ -2132,20 +2376,16 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
2132
2376
  _: 1
2133
2377
  }, 8, ["modelValue"])
2134
2378
  ]),
2135
- x.value.showLabel ? (f(), V("div", Na, [
2136
- l[66] || (l[66] = i("span", null, "选择属性", -1)),
2137
- s(r, {
2138
- modelValue: x.value.labelField,
2139
- "onUpdate:modelValue": l[17] || (l[17] = (a) => x.value.labelField = a),
2379
+ $.value.showLabel ? (c(), h("div", Gt, [
2380
+ e[65] || (e[65] = u("span", null, "选择属性", -1)),
2381
+ r(m, {
2382
+ modelValue: $.value.labelField,
2383
+ "onUpdate:modelValue": e[18] || (e[18] = (a) => $.value.labelField = a),
2140
2384
  size: "small",
2141
2385
  placeholder: "请选择属性"
2142
2386
  }, {
2143
- default: z(() => [
2144
- s(e, {
2145
- label: "FID",
2146
- value: "FID"
2147
- }),
2148
- (f(!0), V(O, null, X(c.value?.columnSet, (a) => (f(), W(e, {
2387
+ default: O(() => [
2388
+ (c(!0), h(G, null, de(Ce.value, (a) => (c(), fe(n, {
2149
2389
  key: a,
2150
2390
  label: a,
2151
2391
  value: a
@@ -2153,114 +2393,115 @@ const gt = nl(bt), yt = { class: "shape-pop qy-flex-col" }, Vt = { class: "tabs"
2153
2393
  ]),
2154
2394
  _: 1
2155
2395
  }, 8, ["modelValue"])
2156
- ])) : M("", !0),
2157
- x.value.showLabel ? (f(), V("div", Fa, [
2158
- l[67] || (l[67] = i("span", null, "字体大小", -1)),
2159
- s(r, {
2160
- modelValue: x.value.fontSize,
2161
- "onUpdate:modelValue": l[18] || (l[18] = (a) => x.value.fontSize = a),
2396
+ ])) : D("", !0),
2397
+ $.value.showLabel ? (c(), h("div", Dt, [
2398
+ e[66] || (e[66] = u("span", null, "字体大小", -1)),
2399
+ r(m, {
2400
+ modelValue: $.value.fontSize,
2401
+ "onUpdate:modelValue": e[19] || (e[19] = (a) => $.value.fontSize = a),
2162
2402
  size: "small",
2163
2403
  placeholder: "请选择字体大小"
2164
2404
  }, {
2165
- default: z(() => [
2166
- s(e, {
2405
+ default: O(() => [
2406
+ r(n, {
2167
2407
  label: "12",
2168
2408
  value: 12
2169
2409
  }),
2170
- s(e, {
2410
+ r(n, {
2171
2411
  label: "14",
2172
2412
  value: 14
2173
2413
  }),
2174
- s(e, {
2414
+ r(n, {
2175
2415
  label: "16",
2176
2416
  value: 16
2177
2417
  }),
2178
- s(e, {
2418
+ r(n, {
2179
2419
  label: "18",
2180
2420
  value: 18
2181
2421
  }),
2182
- s(e, {
2422
+ r(n, {
2183
2423
  label: "20",
2184
2424
  value: 20
2185
2425
  }),
2186
- s(e, {
2426
+ r(n, {
2187
2427
  label: "22",
2188
2428
  value: 22
2189
2429
  }),
2190
- s(e, {
2430
+ r(n, {
2191
2431
  label: "24",
2192
2432
  value: 24
2193
2433
  })
2194
2434
  ]),
2195
2435
  _: 1
2196
2436
  }, 8, ["modelValue"])
2197
- ])) : M("", !0),
2198
- x.value.showLabel ? (f(), V("div", Ea, [
2199
- l[68] || (l[68] = i("span", null, "字体颜色", -1)),
2200
- s(L, {
2201
- modelValue: x.value.fontColor,
2202
- "onUpdate:modelValue": l[19] || (l[19] = (a) => x.value.fontColor = a),
2437
+ ])) : D("", !0),
2438
+ $.value.showLabel ? (c(), h("div", Ht, [
2439
+ e[67] || (e[67] = u("span", null, "字体颜色", -1)),
2440
+ r(S, {
2441
+ modelValue: $.value.fontColor,
2442
+ "onUpdate:modelValue": e[20] || (e[20] = (a) => $.value.fontColor = a),
2203
2443
  "show-alpha": "",
2204
- predefine: n(oe)
2444
+ "color-format": "rgb",
2445
+ predefine: i(Le)
2205
2446
  }, null, 8, ["modelValue", "predefine"])
2206
- ])) : M("", !0),
2207
- x.value.showLabel ? (f(), V("div", za, [
2208
- l[69] || (l[69] = i("span", null, "字体类型", -1)),
2209
- s(r, {
2210
- modelValue: x.value.fontFamily,
2211
- "onUpdate:modelValue": l[20] || (l[20] = (a) => x.value.fontFamily = a),
2447
+ ])) : D("", !0),
2448
+ $.value.showLabel ? (c(), h("div", qt, [
2449
+ e[68] || (e[68] = u("span", null, "字体类型", -1)),
2450
+ r(m, {
2451
+ modelValue: $.value.fontFamily,
2452
+ "onUpdate:modelValue": e[21] || (e[21] = (a) => $.value.fontFamily = a),
2212
2453
  size: "small",
2213
2454
  placeholder: "请选择字体类型"
2214
2455
  }, {
2215
- default: z(() => [
2216
- s(e, {
2456
+ default: O(() => [
2457
+ r(n, {
2217
2458
  label: "宋体",
2218
2459
  value: "SimSun"
2219
2460
  }),
2220
- s(e, {
2461
+ r(n, {
2221
2462
  label: "黑体",
2222
2463
  value: "SimHei"
2223
2464
  }),
2224
- s(e, {
2465
+ r(n, {
2225
2466
  label: "等线",
2226
2467
  value: "DengXian"
2227
2468
  })
2228
2469
  ]),
2229
2470
  _: 1
2230
2471
  }, 8, ["modelValue"])
2231
- ])) : M("", !0)
2472
+ ])) : D("", !0)
2232
2473
  ])
2233
2474
  ])
2234
2475
  ], 512), [
2235
- [_e, v.value === "point"]
2476
+ [We, f.value === "point"]
2236
2477
  ])
2237
2478
  ]),
2238
- i("div", xa, [
2239
- s(m, { onClick: K }, {
2240
- default: z(() => [...l[71] || (l[71] = [
2241
- Ve("取消", -1)
2479
+ u("div", Qt, [
2480
+ r(v, { onClick: vl }, {
2481
+ default: O(() => [...e[70] || (e[70] = [
2482
+ Me("取消", -1)
2242
2483
  ])]),
2243
2484
  _: 1
2244
2485
  }),
2245
- s(m, {
2486
+ r(v, {
2246
2487
  type: "primary",
2247
- onClick: J
2488
+ onClick: Wl
2248
2489
  }, {
2249
- default: z(() => [...l[72] || (l[72] = [
2250
- Ve("确定", -1)
2490
+ default: O(() => [...e[71] || (e[71] = [
2491
+ Me("确定", -1)
2251
2492
  ])]),
2252
2493
  _: 1
2253
2494
  })
2254
2495
  ])
2255
2496
  ], 512), [
2256
- [_e, p.value]
2497
+ [We, y.value]
2257
2498
  ])
2258
2499
  ]),
2259
2500
  _: 1
2260
2501
  });
2261
2502
  };
2262
2503
  }
2263
- }), Za = /* @__PURE__ */ Xl(Ua, [["__scopeId", "data-v-27f84e89"]]);
2504
+ }), Sa = /* @__PURE__ */ co(Zt, [["__scopeId", "data-v-f4e5c2aa"]]);
2264
2505
  export {
2265
- Za as default
2506
+ Sa as default
2266
2507
  };