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.
- package/dist/apply-element-plus-theme.cjs +1 -0
- package/dist/apply-element-plus-theme.mjs +22 -0
- package/dist/beijihua-map-icon/hiper-map-icon-1.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-10.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-11.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-12.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-13.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-14.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-15.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-16.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-17.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-18.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-19.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-2.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-20.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-21.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-22.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-23.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-24.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-25.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-26.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-27.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-28.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-29.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-3.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-30.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-31.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-32.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-33.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-34.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-35.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-36.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-37.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-38.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-39.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-4.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-40.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-41.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-42.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-43.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-44.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-45.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-46.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-47.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-48.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-49.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-5.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-50.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-51.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-52.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-53.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-54.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-55.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-56.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-57.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-58.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-59.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-6.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-60.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-61.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-62.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-63.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-64.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-65.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-7.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-8.png +0 -0
- package/dist/beijihua-map-icon/hiper-map-icon-9.png +0 -0
- package/dist/chunks/{EventKeys-1aL9cgT0.js → EventKeys-DZ_Hahro.js} +4 -4
- 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
- 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
- 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
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-m9hkScAC.js +1 -0
- package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
- package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
- package/dist/chunks/aria-B5rZ0WFy.js +5 -0
- package/dist/chunks/aria-BEkkcjlH.js +115 -0
- package/dist/chunks/constant-Bq4ASE9Q.js +1 -0
- package/dist/chunks/{constant-BqK1UnfT.js → constant-E83OJqPQ.js} +17 -36
- package/dist/chunks/debounce-CHS-N31c.js +1 -0
- package/dist/chunks/debounce-DBq5TVsN.js +55 -0
- package/dist/chunks/{el-loading-CBXyo6la.js → directive-C-4KkhaM.js} +2 -2
- package/dist/chunks/directive-DRO4tFsQ.js +1 -0
- package/dist/chunks/index-03UF6hCZ.js +14 -0
- package/dist/chunks/index-B6SD5IcP.js +1 -0
- package/dist/chunks/{index-DHO_7w-5.js → index-BCQYbM-I.js} +22 -22
- package/dist/chunks/{el-input-DCpRXscw.js → index-BdloQTv1.js} +171 -175
- package/dist/chunks/{el-overlay-BJQjrf5W.js → index-BeskO4C8.js} +76 -75
- package/dist/chunks/index-BoFuR9-k.js +2 -0
- package/dist/chunks/index-Bs9zhLlD.js +1 -0
- package/dist/chunks/index-C-WIOEu8.js +1 -0
- package/dist/chunks/index-CD-vLVPt.js +1 -0
- package/dist/chunks/index-CD4bijv7.js +1 -0
- package/dist/chunks/index-CHRyd-8X.js +1 -0
- package/dist/chunks/{el-button-Dh7ROB0R.js → index-CgKiWbxR.js} +110 -117
- package/dist/chunks/{el-popper-zUql4Vp-.js → index-Cv_K9rbv.js} +47 -46
- package/dist/chunks/{el-select-Dil0JEvg.js → index-Cyrc4mj-.js} +467 -492
- package/dist/chunks/index-DLBjU25P.js +3 -0
- package/dist/chunks/index-DgwQEHlD.js +12 -0
- package/dist/chunks/index-LWCtnbZP.js +13 -0
- package/dist/chunks/index-OtE8c8y9.js +1 -0
- package/dist/chunks/index-Qzqd5jTh.js +1 -0
- package/dist/chunks/index-VbRYJz2E.js +1 -0
- package/dist/chunks/index-YiSmXvH8.js +975 -0
- package/dist/chunks/{index-Dq3Y5qiS.js → index-_At9ftZd.js} +35 -35
- package/dist/chunks/{index-Cw_w6CLf.js → index-ieQ_IULW.js} +11 -11
- package/dist/chunks/{el-form-item-CXLLocXw.js → index-mDs-Bipv.js} +151 -150
- package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
- package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
- package/dist/chunks/{base-DfCoKyyG.js → style-COMeMpO8.js} +81 -80
- package/dist/chunks/{base-DK_JFP90.js → style-DiDWGUIe.js} +1 -1
- package/dist/chunks/toNumber-CCcOx5KD.js +1 -0
- package/dist/chunks/toNumber-CDwzVyqL.js +30 -0
- package/dist/chunks/use-form-common-props-BQtZKazE.js +66 -0
- package/dist/chunks/use-form-common-props-SdGVhyVk.js +1 -0
- package/dist/chunks/{use-global-config-DXAWJFeA.js → use-global-config-Ba3i7fKX.js} +18 -17
- package/dist/chunks/use-global-config-PaSl-b_9.js +1 -0
- package/dist/chunks/utils-BJ8Lu8TY.js +516 -0
- package/dist/chunks/utils-CrwGKkIz.js +1 -0
- package/dist/chunks/vnode-CvqQoLhR.js +1 -0
- package/dist/chunks/vnode-DpjFDm4v.js +70 -0
- package/dist/element-plus-style.cjs +1 -0
- package/dist/element-plus-style.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +13 -10
- package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
- package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
- package/dist/manageTable/index.cjs +1 -1
- package/dist/manageTable/index.mjs +10 -8
- package/dist/manageTable/manageTable.cjs +1 -1
- package/dist/manageTable/manageTable.mjs +1 -1
- package/dist/mapbox/components/VideoDialog.cjs +1 -1
- package/dist/mapbox/components/VideoDialog.mjs +16 -17
- package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapbox/widgets/LayerAttributeDialog.mjs +30 -31
- package/dist/mapbox.cjs +1 -1
- package/dist/mapbox.mjs +22 -20
- package/dist/mapboxV2/MapView.cjs +1 -1
- package/dist/mapboxV2/MapView.mjs +3728 -1256
- package/dist/mapboxV2/components/MapLegend.cjs +1 -1
- package/dist/mapboxV2/components/MapLegend.mjs +51 -167
- package/dist/mapboxV2/components/MapTools.cjs +1 -1
- package/dist/mapboxV2/components/MapTools.mjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.cjs +1 -1
- package/dist/mapboxV2/components/VideoDialog.mjs +12 -13
- package/dist/mapboxV2/components/mapSetting.cjs +1 -1
- package/dist/mapboxV2/components/mapSetting.mjs +1 -1
- package/dist/mapboxV2/components/mapTopic.cjs +1 -1
- package/dist/mapboxV2/components/mapTopic.mjs +349 -446
- package/dist/mapboxV2/constant.cjs +1 -1
- package/dist/mapboxV2/constant.mjs +13 -17
- package/dist/mapboxV2/useTif.cjs +1 -1
- package/dist/mapboxV2/useTif.mjs +86 -86
- package/dist/mapboxV2/utils.cjs +1 -1
- package/dist/mapboxV2/utils.mjs +362 -279
- package/dist/mapboxV2/widgets/CustomShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/CustomShapeDialog.mjs +87 -67
- package/dist/mapboxV2/widgets/IconPicker.cjs +1 -1
- package/dist/mapboxV2/widgets/IconPicker.mjs +59 -48
- package/dist/mapboxV2/widgets/LayerAttributeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerAttributeDialog.mjs +17 -18
- package/dist/mapboxV2/widgets/LayerDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/LayerDialog.mjs +94 -86
- package/dist/mapboxV2/widgets/LegendDialogLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogLine.mjs +95 -90
- package/dist/mapboxV2/widgets/LegendDialogPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendDialogPoint.mjs +90 -85
- package/dist/mapboxV2/widgets/LegendLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendLine.mjs +28 -61
- package/dist/mapboxV2/widgets/LegendPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPoint.mjs +52 -66
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopInterestPoint.mjs +16 -18
- package/dist/mapboxV2/widgets/LegendPopLine.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopLine.mjs +72 -73
- package/dist/mapboxV2/widgets/LegendPopPoint.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendPopPoint.mjs +113 -112
- package/dist/mapboxV2/widgets/LegendShape.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendShape.mjs +17 -14
- package/dist/mapboxV2/widgets/LegendSymbol.cjs +1 -1
- package/dist/mapboxV2/widgets/LegendSymbol.mjs +5 -5
- package/dist/mapboxV2/widgets/ShapeDialog.cjs +1 -1
- package/dist/mapboxV2/widgets/ShapeDialog.mjs +1663 -1422
- package/dist/mapboxV2/widgets/TopicItemPop.cjs +1 -1
- package/dist/mapboxV2/widgets/TopicItemPop.mjs +2 -2
- package/dist/mapboxV2/widgets/TopicPop.mjs +1 -1
- package/dist/mapboxV2.cjs +3 -3
- package/dist/mapboxV2.mjs +673 -824
- package/dist/qy-vue-plugins.css +1 -1
- package/dist/types/apply-element-plus-theme.d.ts +1 -0
- package/dist/types/element-plus-style.d.ts +0 -0
- package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
- package/dist/types/mapboxV2/MapView.vue.d.ts +130 -3
- package/dist/types/mapboxV2/components/mapTopic.vue.d.ts +10 -591
- package/dist/types/mapboxV2/types/map-layer.d.ts +185 -3
- package/dist/types/mapboxV2/useTif.d.ts +2 -2
- package/dist/types/mapboxV2/utils/geojsonRenderer.d.ts +123 -0
- package/dist/types/mapboxV2/utils.d.ts +5 -0
- package/dist/types/mapboxV2/widgets/IconPicker.vue.d.ts +8 -10
- package/dist/types/mapboxV2/widgets/index.d.ts +3 -0
- package/dist/types/mapboxV2/widgets/track/TrackImageDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackTextDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/TrackVoiceDialog.vue.d.ts +11 -0
- package/dist/types/mapboxV2/widgets/track/index.d.ts +3 -0
- package/dist/types/store/mapStore.d.ts +122 -0
- package/dist/types/types/map.d.ts +111 -7
- package/package/apply-element-plus-theme.ts +23 -0
- package/package/css/common.scss +33 -0
- package/package/css/element-plus-theme.scss +30 -0
- package/package/css/map.scss +42 -0
- package/package/element-plus-style.ts +48 -0
- package/package/manageTable/index.ts +5 -0
- package/package/mapbox/index.ts +5 -0
- package/package/mapboxV2/constant.ts +4 -12
- package/package/mapboxV2/index.ts +5 -0
- package/package/mapboxV2/useTif.ts +18 -13
- package/package/mapboxV2/utils.ts +303 -143
- package/package/mapboxV2/widgets/index.ts +5 -0
- package/package/types/map.ts +129 -32
- package/package.json +27 -3
- package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DnYed7Kh.js +0 -1
- package/dist/chunks/aria-B-Cm8P6h.js +0 -5
- package/dist/chunks/aria-GiGFrmP1.js +0 -175
- package/dist/chunks/constant-mXEWtcQf.js +0 -1
- package/dist/chunks/el-button-w9UOZkmd.js +0 -3
- package/dist/chunks/el-color-picker-panel-BWjyXHBz.js +0 -1
- package/dist/chunks/el-color-picker-panel-BfOVWDkH.js +0 -1024
- package/dist/chunks/el-form-item-ECXS8pAs.js +0 -12
- package/dist/chunks/el-input-tAiZBp5N.js +0 -1
- package/dist/chunks/el-loading-BDhLUhme.js +0 -1
- package/dist/chunks/el-overlay-BEd31jh6.js +0 -1
- package/dist/chunks/el-popper-C6hJmTeX.js +0 -1
- package/dist/chunks/el-select-BXP0YqqB.js +0 -1
- package/dist/chunks/index-BIPr63lF.js +0 -1
- package/dist/chunks/index-BIaoqnN4.js +0 -1
- package/dist/chunks/index-D9eecDRK.js +0 -2
- package/dist/chunks/mapSetting-BRasGCqk.js +0 -597
- package/dist/chunks/mapSetting-CfE-5SCc.js +0 -1
- package/dist/chunks/use-global-config-y6gk28OO.js +0 -1
- package/dist/chunks/utils-CZxmwfl_.js +0 -1
- package/dist/chunks/utils-n1i0zWzc.js +0 -454
- package/dist/chunks/vnode-CyTnPoXJ.js +0 -47
- package/dist/chunks/vnode-eKMqbqaC.js +0 -1
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-BRUTHTNe.js +0 -12
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-CksusXxb.js +0 -28
- package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-DchJeGnp.js +0 -1
- 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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { u as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
34
|
+
l[Ye] = { start: E, clear: A }, l.addEventListener("mousedown", E);
|
|
34
35
|
},
|
|
35
|
-
unmounted(
|
|
36
|
-
if (!
|
|
36
|
+
unmounted(l) {
|
|
37
|
+
if (!l[Ye])
|
|
37
38
|
return;
|
|
38
|
-
const { start: d, clear:
|
|
39
|
-
d &&
|
|
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
|
-
},
|
|
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:
|
|
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: (
|
|
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: (
|
|
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
|
-
...
|
|
93
|
+
...Ll(["ariaLabel"]),
|
|
93
94
|
inputmode: {
|
|
94
|
-
type:
|
|
95
|
+
type: xe(String),
|
|
95
96
|
default: void 0
|
|
96
97
|
},
|
|
97
98
|
align: {
|
|
98
|
-
type:
|
|
99
|
+
type: xe(String),
|
|
99
100
|
default: "center"
|
|
100
101
|
},
|
|
101
102
|
disabledScientific: Boolean
|
|
102
|
-
}),
|
|
103
|
-
[
|
|
104
|
-
blur: (
|
|
105
|
-
focus: (
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
},
|
|
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
|
-
}),
|
|
111
|
-
...
|
|
112
|
-
props:
|
|
113
|
-
emits:
|
|
114
|
-
setup(
|
|
115
|
-
const
|
|
116
|
-
currentValue:
|
|
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:
|
|
119
|
-
const
|
|
120
|
-
return
|
|
121
|
-
}),
|
|
122
|
-
if (
|
|
123
|
-
return
|
|
124
|
-
let
|
|
125
|
-
if (
|
|
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 (
|
|
128
|
-
if (Number.isNaN(
|
|
128
|
+
if (me(s)) {
|
|
129
|
+
if (Number.isNaN(s))
|
|
129
130
|
return "";
|
|
130
|
-
|
|
131
|
+
Xe(f.precision) || (s = s.toFixed(f.precision));
|
|
131
132
|
}
|
|
132
|
-
return
|
|
133
|
-
}),
|
|
134
|
-
if (
|
|
135
|
-
return Math.round(
|
|
136
|
-
let
|
|
137
|
-
const
|
|
138
|
-
if (
|
|
139
|
-
return
|
|
140
|
-
const
|
|
141
|
-
return
|
|
142
|
-
},
|
|
143
|
-
if (
|
|
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
|
|
146
|
-
let
|
|
147
|
-
return
|
|
148
|
-
},
|
|
149
|
-
const
|
|
150
|
-
if (
|
|
151
|
-
|
|
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 (
|
|
155
|
-
case
|
|
156
|
-
|
|
155
|
+
switch (b) {
|
|
156
|
+
case Ve.up: {
|
|
157
|
+
s.preventDefault(), J();
|
|
157
158
|
break;
|
|
158
159
|
}
|
|
159
|
-
case
|
|
160
|
-
|
|
160
|
+
case Ve.down: {
|
|
161
|
+
s.preventDefault(), P();
|
|
161
162
|
break;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
},
|
|
165
|
-
if (
|
|
165
|
+
}, J = () => {
|
|
166
|
+
if (f.readonly || Y.value || V.value)
|
|
166
167
|
return;
|
|
167
|
-
const
|
|
168
|
-
|
|
168
|
+
const s = Number(W.value) || 0, b = oe(s);
|
|
169
|
+
se(b), y(Ue, k.currentValue), ge();
|
|
169
170
|
}, P = () => {
|
|
170
|
-
if (
|
|
171
|
+
if (f.readonly || Y.value || E.value)
|
|
171
172
|
return;
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
const { max:
|
|
176
|
-
|
|
177
|
-
let
|
|
178
|
-
if (
|
|
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 (
|
|
181
|
-
if (
|
|
181
|
+
if (s === "") {
|
|
182
|
+
if (x === null)
|
|
182
183
|
return null;
|
|
183
|
-
|
|
184
|
+
U = sl(x) ? { min: R, max: F }[x] : x;
|
|
184
185
|
}
|
|
185
|
-
return
|
|
186
|
-
},
|
|
187
|
-
var
|
|
188
|
-
const
|
|
189
|
-
if (!
|
|
190
|
-
|
|
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
|
-
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
const
|
|
200
|
-
(
|
|
201
|
-
},
|
|
202
|
-
var
|
|
203
|
-
(
|
|
204
|
-
},
|
|
205
|
-
var
|
|
206
|
-
(
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
},
|
|
210
|
-
var
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
document.activeElement ===
|
|
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
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
}, { immediate: !0 }),
|
|
221
|
-
|
|
222
|
-
}),
|
|
223
|
-
var
|
|
224
|
-
const { min:
|
|
225
|
-
if (
|
|
226
|
-
let
|
|
227
|
-
Number.isNaN(
|
|
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
|
-
|
|
230
|
-
}),
|
|
231
|
-
var
|
|
232
|
-
const
|
|
233
|
-
|
|
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:
|
|
236
|
-
blur:
|
|
237
|
-
}), (
|
|
238
|
-
class:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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:
|
|
247
|
+
onDragstart: Sl(() => {
|
|
247
248
|
}, ["prevent"])
|
|
248
249
|
}, [
|
|
249
|
-
|
|
250
|
+
s.controls ? Oe((c(), h("span", {
|
|
250
251
|
key: 0,
|
|
251
252
|
role: "button",
|
|
252
|
-
"aria-label":
|
|
253
|
-
class:
|
|
254
|
-
onKeydown:
|
|
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
|
-
|
|
257
|
-
|
|
258
|
-
default:
|
|
259
|
-
|
|
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
|
-
[
|
|
266
|
-
]) :
|
|
267
|
-
|
|
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":
|
|
271
|
-
class:
|
|
272
|
-
onKeydown:
|
|
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
|
-
|
|
275
|
-
|
|
276
|
-
default:
|
|
277
|
-
|
|
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
|
-
[
|
|
284
|
-
]) :
|
|
285
|
-
|
|
286
|
-
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:
|
|
289
|
+
ref: w,
|
|
289
290
|
type: "number",
|
|
290
|
-
step:
|
|
291
|
-
"model-value":
|
|
292
|
-
placeholder:
|
|
293
|
-
readonly:
|
|
294
|
-
disabled:
|
|
295
|
-
size:
|
|
296
|
-
max:
|
|
297
|
-
min:
|
|
298
|
-
name:
|
|
299
|
-
"aria-label":
|
|
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:
|
|
302
|
-
onKeydown:
|
|
303
|
-
onBlur:
|
|
304
|
-
onFocus:
|
|
305
|
-
onInput:
|
|
306
|
-
onChange:
|
|
307
|
-
},
|
|
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
|
-
|
|
311
|
+
s.$slots.prefix ? {
|
|
311
312
|
name: "prefix",
|
|
312
|
-
fn:
|
|
313
|
-
|
|
313
|
+
fn: O(() => [
|
|
314
|
+
Ke(s.$slots, "prefix")
|
|
314
315
|
])
|
|
315
316
|
} : void 0,
|
|
316
|
-
|
|
317
|
+
s.$slots.suffix ? {
|
|
317
318
|
name: "suffix",
|
|
318
|
-
fn:
|
|
319
|
-
|
|
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
|
|
327
|
-
const
|
|
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:
|
|
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:
|
|
354
|
-
inputSize:
|
|
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:
|
|
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:
|
|
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:
|
|
390
|
+
values: El,
|
|
390
391
|
default: "top"
|
|
391
392
|
},
|
|
392
393
|
marks: {
|
|
393
|
-
type:
|
|
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
|
-
...
|
|
404
|
-
}),
|
|
405
|
-
[
|
|
406
|
-
[
|
|
407
|
-
[
|
|
408
|
-
},
|
|
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:
|
|
418
|
+
values: El,
|
|
418
419
|
default: "top"
|
|
419
420
|
}
|
|
420
|
-
}),
|
|
421
|
-
[
|
|
422
|
-
},
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
}, 50),
|
|
426
|
-
|
|
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:
|
|
430
|
-
tooltipVisible:
|
|
431
|
-
formatValue:
|
|
432
|
-
displayTooltip:
|
|
433
|
-
hideTooltip:
|
|
430
|
+
tooltip: f,
|
|
431
|
+
tooltipVisible: g,
|
|
432
|
+
formatValue: w,
|
|
433
|
+
displayTooltip: k,
|
|
434
|
+
hideTooltip: A
|
|
434
435
|
};
|
|
435
|
-
},
|
|
436
|
+
}, No = (l, d, y) => {
|
|
436
437
|
const {
|
|
437
|
-
disabled:
|
|
438
|
-
min:
|
|
439
|
-
max:
|
|
440
|
-
step:
|
|
441
|
-
showTooltip:
|
|
442
|
-
persistent:
|
|
443
|
-
precision:
|
|
444
|
-
sliderSize:
|
|
445
|
-
formatTooltip:
|
|
446
|
-
emitChange:
|
|
447
|
-
resetSize:
|
|
448
|
-
updateDragging:
|
|
449
|
-
} =
|
|
450
|
-
d.hovering = !0,
|
|
451
|
-
},
|
|
452
|
-
d.hovering = !1, d.dragging ||
|
|
453
|
-
},
|
|
454
|
-
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
},
|
|
458
|
-
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
},
|
|
466
|
-
|
|
467
|
-
},
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
const
|
|
471
|
-
let
|
|
472
|
-
switch (
|
|
473
|
-
case
|
|
474
|
-
case
|
|
475
|
-
|
|
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
|
|
478
|
-
case
|
|
479
|
-
|
|
478
|
+
case Ve.right:
|
|
479
|
+
case Ve.up:
|
|
480
|
+
j();
|
|
480
481
|
break;
|
|
481
|
-
case
|
|
482
|
-
|
|
482
|
+
case Ve.home:
|
|
483
|
+
Ce();
|
|
483
484
|
break;
|
|
484
|
-
case
|
|
485
|
-
|
|
485
|
+
case Ve.end:
|
|
486
|
+
s();
|
|
486
487
|
break;
|
|
487
|
-
case
|
|
488
|
-
|
|
488
|
+
case Ve.pageDown:
|
|
489
|
+
re();
|
|
489
490
|
break;
|
|
490
|
-
case
|
|
491
|
-
|
|
491
|
+
case Ve.pageUp:
|
|
492
|
+
ge();
|
|
492
493
|
break;
|
|
493
494
|
default:
|
|
494
|
-
|
|
495
|
+
te = !1;
|
|
495
496
|
break;
|
|
496
497
|
}
|
|
497
|
-
|
|
498
|
-
},
|
|
499
|
-
let
|
|
500
|
-
return
|
|
501
|
-
clientX:
|
|
502
|
-
clientY:
|
|
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
|
-
},
|
|
505
|
+
}, R = (x) => {
|
|
505
506
|
d.dragging = !0, d.isClick = !0;
|
|
506
|
-
const { clientX:
|
|
507
|
-
|
|
508
|
-
},
|
|
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,
|
|
511
|
-
let
|
|
512
|
-
const { clientX:
|
|
513
|
-
|
|
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
|
-
},
|
|
516
|
+
}, q = () => {
|
|
516
517
|
d.dragging && (setTimeout(() => {
|
|
517
|
-
d.dragging = !1, d.hovering ||
|
|
518
|
-
}, 0), window.removeEventListener("mousemove",
|
|
519
|
-
},
|
|
520
|
-
if (
|
|
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
|
-
|
|
523
|
-
const
|
|
524
|
-
let
|
|
525
|
-
if (
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
} else
|
|
529
|
-
|
|
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
|
|
532
|
-
|
|
533
|
-
}),
|
|
534
|
-
disabled:
|
|
535
|
-
button:
|
|
536
|
-
tooltip:
|
|
537
|
-
tooltipVisible:
|
|
538
|
-
showTooltip:
|
|
539
|
-
persistent:
|
|
540
|
-
wrapperStyle:
|
|
541
|
-
formatValue:
|
|
542
|
-
handleMouseEnter:
|
|
543
|
-
handleMouseLeave:
|
|
544
|
-
onButtonDown:
|
|
545
|
-
onKeyDown:
|
|
546
|
-
setPosition:
|
|
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
|
-
},
|
|
549
|
+
}, zo = Fe({
|
|
549
550
|
name: "ElSliderButton"
|
|
550
|
-
}),
|
|
551
|
-
...
|
|
552
|
-
props:
|
|
553
|
-
emits:
|
|
554
|
-
setup(
|
|
555
|
-
const
|
|
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:
|
|
566
|
-
}),
|
|
567
|
-
disabled:
|
|
568
|
-
button:
|
|
569
|
-
tooltip:
|
|
570
|
-
showTooltip:
|
|
571
|
-
persistent:
|
|
572
|
-
tooltipVisible:
|
|
573
|
-
wrapperStyle:
|
|
574
|
-
formatValue:
|
|
575
|
-
handleMouseEnter:
|
|
576
|
-
handleMouseLeave:
|
|
577
|
-
onButtonDown:
|
|
578
|
-
onKeyDown:
|
|
579
|
-
setPosition:
|
|
580
|
-
} =
|
|
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:
|
|
583
|
-
onKeyDown:
|
|
584
|
-
setPosition:
|
|
585
|
-
hovering:
|
|
583
|
+
onButtonDown: Q,
|
|
584
|
+
onKeyDown: oe,
|
|
585
|
+
setPosition: ue,
|
|
586
|
+
hovering: J,
|
|
586
587
|
dragging: P
|
|
587
|
-
}), (
|
|
588
|
+
}), (Z, se) => (c(), h("div", {
|
|
588
589
|
ref_key: "button",
|
|
589
|
-
ref:
|
|
590
|
-
class:
|
|
591
|
-
style:
|
|
592
|
-
tabindex:
|
|
593
|
-
onMouseenter:
|
|
594
|
-
onMouseleave:
|
|
595
|
-
onMousedown:
|
|
596
|
-
onFocus:
|
|
597
|
-
onBlur:
|
|
598
|
-
onKeydown:
|
|
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
|
-
|
|
601
|
+
r(i(vo), {
|
|
601
602
|
ref_key: "tooltip",
|
|
602
|
-
ref:
|
|
603
|
-
visible:
|
|
604
|
-
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":
|
|
608
|
-
disabled: !
|
|
609
|
-
persistent:
|
|
608
|
+
"popper-class": Z.tooltipClass,
|
|
609
|
+
disabled: !i(V),
|
|
610
|
+
persistent: i(w)
|
|
610
611
|
}, {
|
|
611
|
-
content:
|
|
612
|
-
|
|
612
|
+
content: O(() => [
|
|
613
|
+
u("span", null, je(i(Y)), 1)
|
|
613
614
|
]),
|
|
614
|
-
default:
|
|
615
|
-
|
|
616
|
-
class:
|
|
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
|
|
625
|
-
const
|
|
625
|
+
var yl = /* @__PURE__ */ dl(Eo, [["__file", "button.vue"]]);
|
|
626
|
+
const _o = Qe({
|
|
626
627
|
mark: {
|
|
627
|
-
type:
|
|
628
|
+
type: xe([String, Object]),
|
|
628
629
|
default: void 0
|
|
629
630
|
}
|
|
630
631
|
});
|
|
631
|
-
var
|
|
632
|
+
var xo = Fe({
|
|
632
633
|
name: "ElSliderMarker",
|
|
633
|
-
props:
|
|
634
|
-
setup(
|
|
635
|
-
const d =
|
|
636
|
-
return () =>
|
|
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:
|
|
639
|
-
},
|
|
639
|
+
style: f.value
|
|
640
|
+
}, y.value);
|
|
640
641
|
}
|
|
641
642
|
});
|
|
642
|
-
const
|
|
643
|
-
const { formItem:
|
|
644
|
-
firstButton:
|
|
645
|
-
secondButton:
|
|
646
|
-
},
|
|
647
|
-
height:
|
|
648
|
-
bottom:
|
|
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:
|
|
651
|
-
left:
|
|
652
|
-
}),
|
|
653
|
-
if (
|
|
654
|
-
const
|
|
655
|
-
d.sliderSize =
|
|
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
|
-
},
|
|
658
|
-
const
|
|
659
|
-
if (!
|
|
660
|
-
return
|
|
661
|
-
let
|
|
662
|
-
return Math.abs(
|
|
663
|
-
},
|
|
664
|
-
const
|
|
665
|
-
return
|
|
666
|
-
},
|
|
667
|
-
d.firstValue =
|
|
668
|
-
},
|
|
669
|
-
d.secondValue =
|
|
670
|
-
},
|
|
671
|
-
|
|
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
|
|
674
|
-
},
|
|
675
|
-
var
|
|
676
|
-
if (
|
|
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
|
-
|
|
679
|
-
let
|
|
680
|
-
if (
|
|
681
|
-
const
|
|
682
|
-
|
|
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
|
|
685
|
-
|
|
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 (!(
|
|
688
|
-
return
|
|
688
|
+
if (!(F < 0 || F > 100))
|
|
689
|
+
return Q(F);
|
|
689
690
|
};
|
|
690
691
|
return {
|
|
691
|
-
elFormItem:
|
|
692
|
-
slider:
|
|
693
|
-
firstButton:
|
|
694
|
-
secondButton:
|
|
695
|
-
sliderDisabled:
|
|
696
|
-
minValue:
|
|
697
|
-
maxValue:
|
|
698
|
-
runwayStyle:
|
|
699
|
-
barStyle:
|
|
700
|
-
resetSize:
|
|
701
|
-
setPosition:
|
|
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: (
|
|
704
|
-
var
|
|
705
|
-
((
|
|
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: (
|
|
708
|
-
|
|
708
|
+
onSliderClick: (_) => {
|
|
709
|
+
Z(_) && P();
|
|
709
710
|
},
|
|
710
|
-
onSliderDown: async (
|
|
711
|
-
const
|
|
712
|
-
|
|
711
|
+
onSliderDown: async (_) => {
|
|
712
|
+
const j = Z(_);
|
|
713
|
+
j && (await De(), j.value.onButtonDown(_));
|
|
713
714
|
},
|
|
714
|
-
onSliderMarkerDown: (
|
|
715
|
-
if (
|
|
715
|
+
onSliderMarkerDown: (_) => {
|
|
716
|
+
if (A.value || d.dragging)
|
|
716
717
|
return;
|
|
717
|
-
|
|
718
|
+
Q(_) && P();
|
|
718
719
|
},
|
|
719
|
-
setFirstValue:
|
|
720
|
-
setSecondValue:
|
|
720
|
+
setFirstValue: oe,
|
|
721
|
+
setSecondValue: ue
|
|
721
722
|
};
|
|
722
|
-
},
|
|
723
|
+
}, Io = (l, d, y, f) => ({
|
|
723
724
|
stops: I(() => {
|
|
724
|
-
if (!
|
|
725
|
+
if (!l.showStops || l.min > l.max)
|
|
725
726
|
return [];
|
|
726
|
-
if (
|
|
727
|
-
return
|
|
728
|
-
const
|
|
729
|
-
return
|
|
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: (
|
|
732
|
-
}),
|
|
733
|
-
point:
|
|
734
|
-
position: (
|
|
735
|
-
mark:
|
|
736
|
-
})) : []),
|
|
737
|
-
const
|
|
738
|
-
|
|
739
|
-
},
|
|
740
|
-
var
|
|
741
|
-
|
|
742
|
-
const
|
|
743
|
-
|
|
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
|
-
|
|
746
|
-
|
|
747
|
-
}),
|
|
748
|
-
d.dragging ||
|
|
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
|
-
}),
|
|
752
|
-
|
|
752
|
+
}), Pe(() => [l.min, l.max], () => {
|
|
753
|
+
A();
|
|
753
754
|
});
|
|
754
|
-
},
|
|
755
|
-
const
|
|
756
|
-
return
|
|
757
|
-
|
|
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:
|
|
760
|
+
sliderWrapper: f
|
|
760
761
|
};
|
|
761
|
-
},
|
|
762
|
+
}, Mo = Fe({
|
|
762
763
|
name: "ElSlider"
|
|
763
|
-
}),
|
|
764
|
-
...
|
|
765
|
-
props:
|
|
766
|
-
emits:
|
|
767
|
-
setup(
|
|
768
|
-
const
|
|
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:
|
|
776
|
-
slider:
|
|
777
|
-
firstButton:
|
|
778
|
-
secondButton:
|
|
779
|
-
sliderDisabled:
|
|
780
|
-
minValue:
|
|
781
|
-
maxValue:
|
|
782
|
-
runwayStyle:
|
|
783
|
-
barStyle:
|
|
784
|
-
resetSize:
|
|
785
|
-
emitChange:
|
|
786
|
-
onSliderWrapperPrevent:
|
|
787
|
-
onSliderClick:
|
|
788
|
-
onSliderDown:
|
|
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:
|
|
791
|
-
setSecondValue:
|
|
792
|
-
} =
|
|
793
|
-
formItemContext:
|
|
794
|
-
}),
|
|
795
|
-
min:
|
|
796
|
-
max:
|
|
797
|
-
})),
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
{ [
|
|
802
|
-
]),
|
|
803
|
-
|
|
804
|
-
const
|
|
805
|
-
const
|
|
806
|
-
const
|
|
807
|
-
return
|
|
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,
|
|
810
|
-
}), { sliderWrapper:
|
|
811
|
-
|
|
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
|
|
814
|
+
return He(ae, "touchstart", oe, {
|
|
814
815
|
passive: !1
|
|
815
|
-
}),
|
|
816
|
+
}), He(ae, "touchmove", oe, {
|
|
816
817
|
passive: !1
|
|
817
|
-
}),
|
|
818
|
-
...
|
|
819
|
-
sliderSize:
|
|
820
|
-
disabled:
|
|
821
|
-
precision:
|
|
822
|
-
emitChange:
|
|
823
|
-
resetSize:
|
|
824
|
-
updateDragging:
|
|
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:
|
|
827
|
-
}), (
|
|
828
|
-
var
|
|
829
|
-
return
|
|
830
|
-
id:
|
|
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:
|
|
833
|
-
class:
|
|
834
|
-
role:
|
|
835
|
-
"aria-label":
|
|
836
|
-
"aria-labelledby":
|
|
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
|
-
|
|
839
|
+
u("div", {
|
|
839
840
|
ref_key: "slider",
|
|
840
|
-
ref:
|
|
841
|
-
class:
|
|
842
|
-
|
|
843
|
-
{ "show-input":
|
|
844
|
-
|
|
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:
|
|
847
|
-
onMousedown:
|
|
848
|
-
onTouchstartPassive:
|
|
847
|
+
style: Te(i(Y)),
|
|
848
|
+
onMousedown: i(J),
|
|
849
|
+
onTouchstartPassive: i(J)
|
|
849
850
|
}, [
|
|
850
|
-
|
|
851
|
-
class:
|
|
852
|
-
style:
|
|
851
|
+
u("div", {
|
|
852
|
+
class: ve(i(g).e("bar")),
|
|
853
|
+
style: Te(i(W))
|
|
853
854
|
}, null, 6),
|
|
854
|
-
|
|
855
|
-
id:
|
|
855
|
+
r(yl, {
|
|
856
|
+
id: L.range ? void 0 : i(ce),
|
|
856
857
|
ref_key: "firstButton",
|
|
857
|
-
ref:
|
|
858
|
-
"model-value":
|
|
859
|
-
vertical:
|
|
860
|
-
"tooltip-class":
|
|
861
|
-
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":
|
|
864
|
-
"aria-labelledby": !
|
|
865
|
-
"aria-valuemin":
|
|
866
|
-
"aria-valuemax":
|
|
867
|
-
"aria-valuenow":
|
|
868
|
-
"aria-valuetext":
|
|
869
|
-
"aria-orientation":
|
|
870
|
-
"aria-disabled":
|
|
871
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
874
|
+
L.range ? (c(), fe(yl, {
|
|
874
875
|
key: 0,
|
|
875
876
|
ref_key: "secondButton",
|
|
876
|
-
ref:
|
|
877
|
-
"model-value":
|
|
878
|
-
vertical:
|
|
879
|
-
"tooltip-class":
|
|
880
|
-
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":
|
|
883
|
-
"aria-valuemin":
|
|
884
|
-
"aria-valuemax":
|
|
885
|
-
"aria-valuenow":
|
|
886
|
-
"aria-valuetext":
|
|
887
|
-
"aria-orientation":
|
|
888
|
-
"aria-disabled":
|
|
889
|
-
"onUpdate:modelValue":
|
|
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"])) :
|
|
891
|
-
|
|
892
|
-
(
|
|
893
|
-
key:
|
|
894
|
-
class:
|
|
895
|
-
style:
|
|
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
|
-
])) :
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
(
|
|
901
|
-
key:
|
|
902
|
-
style:
|
|
903
|
-
class:
|
|
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
|
-
|
|
907
|
-
class:
|
|
907
|
+
u("div", {
|
|
908
|
+
class: ve(i(g).e("marks"))
|
|
908
909
|
}, [
|
|
909
|
-
(
|
|
910
|
-
key:
|
|
911
|
-
mark:
|
|
912
|
-
style:
|
|
913
|
-
onMousedown:
|
|
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)) :
|
|
917
|
+
], 64)) : D("v-if", !0)
|
|
917
918
|
], 46, ["onMousedown", "onTouchstartPassive"]),
|
|
918
|
-
|
|
919
|
+
L.showInput && !L.range ? (c(), fe(i(ho), {
|
|
919
920
|
key: 0,
|
|
920
921
|
ref: "input",
|
|
921
|
-
"model-value":
|
|
922
|
-
class:
|
|
923
|
-
step:
|
|
924
|
-
disabled:
|
|
925
|
-
controls:
|
|
926
|
-
min:
|
|
927
|
-
max:
|
|
928
|
-
precision:
|
|
929
|
-
size:
|
|
930
|
-
"onUpdate:modelValue":
|
|
931
|
-
onChange:
|
|
932
|
-
}, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "size", "onUpdate:modelValue", "onChange"])) :
|
|
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
|
|
938
|
-
const
|
|
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
|
-
},
|
|
942
|
-
key:
|
|
942
|
+
}, Go = { class: "condition-text" }, Do = {
|
|
943
|
+
key: 0,
|
|
943
944
|
class: "config-item"
|
|
944
|
-
},
|
|
945
|
+
}, Ho = { class: "config-list" }, qo = { class: "config-item" }, Qo = {
|
|
945
946
|
key: 0,
|
|
946
947
|
class: "config-item"
|
|
947
|
-
},
|
|
948
|
+
}, Zo = {
|
|
948
949
|
key: 1,
|
|
949
950
|
class: "config-item"
|
|
950
|
-
},
|
|
951
|
+
}, et = {
|
|
951
952
|
key: 2,
|
|
952
953
|
class: "config-item"
|
|
953
|
-
},
|
|
954
|
+
}, lt = {
|
|
954
955
|
key: 3,
|
|
955
956
|
class: "config-item"
|
|
956
|
-
},
|
|
957
|
+
}, ot = { class: "line-config" }, tt = { class: "field-selector" }, at = { class: "config-list" }, nt = {
|
|
957
958
|
key: 0,
|
|
958
959
|
class: "config-box"
|
|
959
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
966
|
+
}, yt = {
|
|
966
967
|
key: 1,
|
|
967
968
|
class: "config-item"
|
|
968
|
-
},
|
|
969
|
+
}, Ct = {
|
|
969
970
|
key: 2,
|
|
970
971
|
class: "config-item"
|
|
971
|
-
},
|
|
972
|
+
}, St = {
|
|
972
973
|
key: 3,
|
|
973
974
|
class: "config-item"
|
|
974
|
-
},
|
|
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
|
-
},
|
|
978
|
+
}, Dt = {
|
|
978
979
|
key: 1,
|
|
979
980
|
class: "config-item"
|
|
980
|
-
},
|
|
981
|
+
}, Ht = {
|
|
981
982
|
key: 2,
|
|
982
983
|
class: "config-item"
|
|
983
|
-
},
|
|
984
|
+
}, qt = {
|
|
984
985
|
key: 3,
|
|
985
986
|
class: "config-item"
|
|
986
|
-
},
|
|
987
|
+
}, Qt = { class: "footer" }, ie = "FID", be = "_FTYPE_", Zt = /* @__PURE__ */ Fe({
|
|
987
988
|
__name: "ShapeDialog",
|
|
988
|
-
setup(
|
|
989
|
-
const
|
|
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:
|
|
1099
|
+
labelField: ie,
|
|
992
1100
|
fontSize: 14,
|
|
993
|
-
fontColor: "
|
|
1101
|
+
fontColor: "rgba(0, 0, 0, 1)",
|
|
994
1102
|
fontFamily: "SimSun"
|
|
995
|
-
}),
|
|
1103
|
+
}), T = H({
|
|
996
1104
|
showLabel: !1,
|
|
997
|
-
labelField:
|
|
1105
|
+
labelField: ie,
|
|
998
1106
|
fontSize: 14,
|
|
999
|
-
fontColor: "
|
|
1107
|
+
fontColor: "rgba(0, 0, 0, 1)",
|
|
1000
1108
|
fontFamily: "SimSun"
|
|
1001
|
-
}),
|
|
1109
|
+
}), $ = H({
|
|
1002
1110
|
showLabel: !1,
|
|
1003
|
-
labelField:
|
|
1111
|
+
labelField: ie,
|
|
1004
1112
|
fontSize: 14,
|
|
1005
|
-
fontColor: "
|
|
1113
|
+
fontColor: "rgba(0, 0, 0, 1)",
|
|
1006
1114
|
fontFamily: "SimSun"
|
|
1007
|
-
}),
|
|
1008
|
-
if (
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
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
|
-
|
|
1206
|
+
Y.value.push(g.value.columnSet), Y.value.push(...S);
|
|
1031
1207
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
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
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
S
|
|
1064
|
-
|
|
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
|
-
(
|
|
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:
|
|
1072
|
-
outlineWidth: 1
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
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
|
-
|
|
1266
|
+
ne.renderMode === "icon" ? ne.pointStyle = B.pointStyle || el() : ne.pointStyle = B.pointStyle || Ie(), o.value?.circleConfigList.splice(
|
|
1267
|
+
K,
|
|
1086
1268
|
1,
|
|
1087
|
-
|
|
1269
|
+
ne
|
|
1088
1270
|
);
|
|
1089
1271
|
}
|
|
1090
|
-
}), o.value?.fillConfig ?
|
|
1272
|
+
}), o.value?.fillConfig ? X.value = {
|
|
1091
1273
|
showLabel: o.value.fillConfig.displayLabel === "true",
|
|
1092
|
-
labelField: o.value.fillConfig.labelField ||
|
|
1274
|
+
labelField: o.value.fillConfig.labelField || ie,
|
|
1093
1275
|
fontSize: o.value.fillConfig.labelSize || 14,
|
|
1094
|
-
fontColor: o.value.fillConfig.labelColor || "
|
|
1276
|
+
fontColor: o.value.fillConfig.labelColor || "rgba(0, 0, 0, 1)",
|
|
1095
1277
|
fontFamily: o.value.fillConfig.labelFont || "SimSun"
|
|
1096
|
-
} :
|
|
1278
|
+
} : X.value = {
|
|
1097
1279
|
showLabel: !1,
|
|
1098
|
-
labelField:
|
|
1280
|
+
labelField: ie,
|
|
1099
1281
|
fontSize: 14,
|
|
1100
|
-
fontColor: "
|
|
1282
|
+
fontColor: "rgba(0, 0, 0, 1)",
|
|
1101
1283
|
fontFamily: "SimSun"
|
|
1102
|
-
}, o.value?.outlineConfig ?
|
|
1284
|
+
}, o.value?.outlineConfig ? T.value = {
|
|
1103
1285
|
showLabel: o.value.outlineConfig.displayLabel === "true",
|
|
1104
|
-
labelField: o.value.outlineConfig.labelField ||
|
|
1286
|
+
labelField: o.value.outlineConfig.labelField || ie,
|
|
1105
1287
|
fontSize: o.value.outlineConfig.labelSize || 14,
|
|
1106
|
-
fontColor: o.value.outlineConfig.labelColor || "
|
|
1288
|
+
fontColor: o.value.outlineConfig.labelColor || "rgba(0, 0, 0, 1)",
|
|
1107
1289
|
fontFamily: o.value.outlineConfig.labelFont || "SimSun"
|
|
1108
|
-
} :
|
|
1290
|
+
} : T.value = {
|
|
1109
1291
|
showLabel: !1,
|
|
1110
|
-
labelField:
|
|
1292
|
+
labelField: ie,
|
|
1111
1293
|
fontSize: 14,
|
|
1112
|
-
fontColor: "
|
|
1294
|
+
fontColor: "rgba(0, 0, 0, 1)",
|
|
1113
1295
|
fontFamily: "SimSun"
|
|
1114
|
-
}, o.value?.symbolConfig ?
|
|
1296
|
+
}, o.value?.symbolConfig ? $.value = {
|
|
1115
1297
|
showLabel: o.value.symbolConfig.displayLabel === "true",
|
|
1116
|
-
labelField: o.value.symbolConfig.labelField ||
|
|
1298
|
+
labelField: o.value.symbolConfig.labelField || ie,
|
|
1117
1299
|
fontSize: o.value.symbolConfig.labelSize || 14,
|
|
1118
|
-
fontColor: o.value.symbolConfig.labelColor || "
|
|
1300
|
+
fontColor: o.value.symbolConfig.labelColor || "rgba(0, 0, 0, 1)",
|
|
1119
1301
|
fontFamily: o.value.symbolConfig.labelFont || "SimSun"
|
|
1120
|
-
} :
|
|
1302
|
+
} : $.value = {
|
|
1121
1303
|
showLabel: !1,
|
|
1122
|
-
labelField:
|
|
1304
|
+
labelField: ie,
|
|
1123
1305
|
fontSize: 14,
|
|
1124
|
-
fontColor: "
|
|
1306
|
+
fontColor: "rgba(0, 0, 0, 1)",
|
|
1125
1307
|
fontFamily: "SimSun"
|
|
1126
1308
|
};
|
|
1127
|
-
else if (
|
|
1128
|
-
const
|
|
1129
|
-
(
|
|
1309
|
+
} else if (t.layerType == "symbol") {
|
|
1310
|
+
const v = o.value?.circleConfigList?.find(
|
|
1311
|
+
(S) => S.type === "custom"
|
|
1130
1312
|
);
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
"
|
|
1167
|
-
o.value
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
})
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
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 =
|
|
1183
|
-
(
|
|
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
|
-
|
|
1400
|
+
_e.error("请先选择最新一条自定义配置的值");
|
|
1186
1401
|
return;
|
|
1187
1402
|
}
|
|
1188
1403
|
o.value.fillColorList.unshift({
|
|
1189
1404
|
type: "custom",
|
|
1190
|
-
color:
|
|
1191
|
-
key:
|
|
1192
|
-
|
|
1193
|
-
value: "",
|
|
1194
|
-
opacity: 1
|
|
1405
|
+
color: Ee,
|
|
1406
|
+
key: V.value,
|
|
1407
|
+
value: ""
|
|
1195
1408
|
});
|
|
1196
|
-
},
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1409
|
+
}, Ol = () => {
|
|
1410
|
+
if (C.value == null || C.value === "") {
|
|
1411
|
+
_e.error("请先选择目标字段");
|
|
1199
1412
|
return;
|
|
1200
1413
|
}
|
|
1201
|
-
if (o.value || (o.value =
|
|
1202
|
-
(
|
|
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
|
-
|
|
1434
|
+
_e.error("请先选择最新一条自定义配置的值");
|
|
1205
1435
|
return;
|
|
1206
1436
|
}
|
|
1207
1437
|
o.value.circleConfigList.unshift({
|
|
1208
1438
|
type: "custom",
|
|
1209
|
-
key:
|
|
1439
|
+
key: C.value,
|
|
1210
1440
|
value: "",
|
|
1211
1441
|
renderMode: "color",
|
|
1212
|
-
pointStyle:
|
|
1213
|
-
pointTintColor: "
|
|
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
|
-
},
|
|
1218
|
-
!o.value || !o.value.fillColorList || o.value.fillColorList.splice(
|
|
1219
|
-
},
|
|
1220
|
-
!o.value || !o.value.circleConfigList || o.value.circleConfigList.splice(
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
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 =
|
|
1250
|
-
JSON.stringify(
|
|
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
|
-
(
|
|
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
|
-
|
|
1494
|
+
_e.error("请先选择最新一条自定义配置的值");
|
|
1255
1495
|
return;
|
|
1256
1496
|
}
|
|
1257
1497
|
o.value.outlineConfigList.unshift({
|
|
1258
1498
|
type: "custom",
|
|
1259
|
-
key:
|
|
1499
|
+
key: N.value,
|
|
1260
1500
|
value: "",
|
|
1261
1501
|
lineStyle: "solid",
|
|
1262
|
-
outlineColor:
|
|
1502
|
+
outlineColor: Ee,
|
|
1263
1503
|
outlineWidth: 1,
|
|
1264
|
-
outlineOpacity: 1,
|
|
1265
1504
|
zoom: 0
|
|
1266
1505
|
});
|
|
1267
|
-
},
|
|
1268
|
-
!o.value || !o.value.outlineConfigList || o.value.outlineConfigList.splice(
|
|
1269
|
-
},
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
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:
|
|
1311
|
-
open:
|
|
1577
|
+
show: fl,
|
|
1578
|
+
open: fl
|
|
1312
1579
|
// 保持向后兼容
|
|
1313
|
-
}), (
|
|
1314
|
-
const
|
|
1315
|
-
return
|
|
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:
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
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:
|
|
1592
|
+
onClick: vl
|
|
1326
1593
|
}, "X")
|
|
1327
1594
|
]),
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
class:
|
|
1331
|
-
active:
|
|
1332
|
-
disabled: !
|
|
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:
|
|
1601
|
+
onClick: e[0] || (e[0] = (a) => f.value !== "polygon" && W.value.includes("polygon") && (f.value = "polygon"))
|
|
1335
1602
|
}, " 面配置 ", 2),
|
|
1336
|
-
|
|
1337
|
-
class:
|
|
1338
|
-
active:
|
|
1339
|
-
disabled: !
|
|
1603
|
+
u("div", {
|
|
1604
|
+
class: ve(["tab-item", {
|
|
1605
|
+
active: f.value === "line",
|
|
1606
|
+
disabled: !Q()
|
|
1340
1607
|
}]),
|
|
1341
|
-
onClick:
|
|
1608
|
+
onClick: e[1] || (e[1] = (a) => f.value !== "line" && Q() && (f.value = "line"))
|
|
1342
1609
|
}, " 线配置 ", 2),
|
|
1343
|
-
|
|
1344
|
-
class:
|
|
1345
|
-
active:
|
|
1346
|
-
disabled: !
|
|
1610
|
+
u("div", {
|
|
1611
|
+
class: ve(["tab-item", {
|
|
1612
|
+
active: f.value === "point",
|
|
1613
|
+
disabled: !W.value.includes("point")
|
|
1347
1614
|
}]),
|
|
1348
|
-
onClick:
|
|
1615
|
+
onClick: e[2] || (e[2] = (a) => f.value !== "point" && W.value.includes("point") && (f.value = "point"))
|
|
1349
1616
|
}, " 点配置 ", 2)
|
|
1350
1617
|
]),
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
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
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
modelValue:
|
|
1360
|
-
"onUpdate:modelValue":
|
|
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:
|
|
1632
|
+
onChange: Al
|
|
1366
1633
|
}, {
|
|
1367
|
-
default:
|
|
1368
|
-
(
|
|
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
|
-
|
|
1644
|
+
r(v, {
|
|
1378
1645
|
size: "small",
|
|
1379
|
-
onClick:
|
|
1380
|
-
icon:
|
|
1646
|
+
onClick: Tl,
|
|
1647
|
+
icon: i(Ge),
|
|
1381
1648
|
style: { width: "100%", margin: "10px 0" }
|
|
1382
1649
|
}, {
|
|
1383
|
-
default:
|
|
1384
|
-
|
|
1650
|
+
default: O(() => [...e[24] || (e[24] = [
|
|
1651
|
+
Me(" 添加自定义配置 ", -1)
|
|
1385
1652
|
])]),
|
|
1386
1653
|
_: 1
|
|
1387
1654
|
}, 8, ["icon"]),
|
|
1388
|
-
|
|
1389
|
-
(
|
|
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" ? (
|
|
1393
|
-
|
|
1394
|
-
|
|
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": (
|
|
1663
|
+
"onUpdate:modelValue": (p) => a.value = p,
|
|
1397
1664
|
size: "small",
|
|
1398
1665
|
placeholder: "请选择值",
|
|
1399
1666
|
clearable: "",
|
|
1400
1667
|
filterable: ""
|
|
1401
1668
|
}, {
|
|
1402
|
-
default:
|
|
1403
|
-
(
|
|
1404
|
-
key:
|
|
1405
|
-
label:
|
|
1406
|
-
value:
|
|
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
|
-
|
|
1678
|
+
r(S, {
|
|
1412
1679
|
modelValue: a.color,
|
|
1413
|
-
"onUpdate:modelValue": (
|
|
1680
|
+
"onUpdate:modelValue": (p) => a.color = p,
|
|
1414
1681
|
"show-alpha": "",
|
|
1415
|
-
|
|
1682
|
+
"color-format": "rgb",
|
|
1683
|
+
predefine: i(Le)
|
|
1416
1684
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"]),
|
|
1417
|
-
|
|
1685
|
+
r(B, {
|
|
1418
1686
|
class: "delete-icon",
|
|
1419
|
-
onClick: (
|
|
1687
|
+
onClick: (p) => Pl(F(a))
|
|
1420
1688
|
}, {
|
|
1421
|
-
default:
|
|
1422
|
-
|
|
1689
|
+
default: O(() => [
|
|
1690
|
+
r(i(ol))
|
|
1423
1691
|
]),
|
|
1424
1692
|
_: 1
|
|
1425
1693
|
}, 8, ["onClick"])
|
|
1426
|
-
])) :
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
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
|
-
|
|
1707
|
+
e[32] || (e[32] = u("div", {
|
|
1438
1708
|
class: "section-header",
|
|
1439
1709
|
style: { "margin-top": "20px" }
|
|
1440
1710
|
}, [
|
|
1441
|
-
|
|
1711
|
+
u("span", null, "标注配置")
|
|
1442
1712
|
], -1)),
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
modelValue:
|
|
1448
|
-
"onUpdate:modelValue":
|
|
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:
|
|
1453
|
-
|
|
1722
|
+
default: O(() => [
|
|
1723
|
+
r(n, {
|
|
1454
1724
|
label: "显示",
|
|
1455
1725
|
value: !0
|
|
1456
1726
|
}),
|
|
1457
|
-
|
|
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
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
modelValue:
|
|
1469
|
-
"onUpdate:modelValue":
|
|
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:
|
|
1474
|
-
|
|
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
|
-
])) :
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
modelValue:
|
|
1491
|
-
"onUpdate:modelValue":
|
|
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:
|
|
1496
|
-
|
|
1761
|
+
default: O(() => [
|
|
1762
|
+
r(n, {
|
|
1497
1763
|
label: "12",
|
|
1498
1764
|
value: 12
|
|
1499
1765
|
}),
|
|
1500
|
-
|
|
1766
|
+
r(n, {
|
|
1501
1767
|
label: "14",
|
|
1502
1768
|
value: 14
|
|
1503
1769
|
}),
|
|
1504
|
-
|
|
1770
|
+
r(n, {
|
|
1505
1771
|
label: "16",
|
|
1506
1772
|
value: 16
|
|
1507
1773
|
}),
|
|
1508
|
-
|
|
1774
|
+
r(n, {
|
|
1509
1775
|
label: "18",
|
|
1510
1776
|
value: 18
|
|
1511
1777
|
}),
|
|
1512
|
-
|
|
1778
|
+
r(n, {
|
|
1513
1779
|
label: "20",
|
|
1514
1780
|
value: 20
|
|
1515
1781
|
}),
|
|
1516
|
-
|
|
1782
|
+
r(n, {
|
|
1517
1783
|
label: "22",
|
|
1518
1784
|
value: 22
|
|
1519
1785
|
}),
|
|
1520
|
-
|
|
1786
|
+
r(n, {
|
|
1521
1787
|
label: "24",
|
|
1522
1788
|
value: 24
|
|
1523
1789
|
})
|
|
1524
1790
|
]),
|
|
1525
1791
|
_: 1
|
|
1526
1792
|
}, 8, ["modelValue"])
|
|
1527
|
-
])) :
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
modelValue:
|
|
1532
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
1800
|
+
"color-format": "rgb",
|
|
1801
|
+
predefine: i(Le)
|
|
1535
1802
|
}, null, 8, ["modelValue", "predefine"])
|
|
1536
|
-
])) :
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
modelValue:
|
|
1541
|
-
"onUpdate:modelValue":
|
|
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:
|
|
1546
|
-
|
|
1812
|
+
default: O(() => [
|
|
1813
|
+
r(n, {
|
|
1547
1814
|
label: "宋体",
|
|
1548
1815
|
value: "SimSun"
|
|
1549
1816
|
}),
|
|
1550
|
-
|
|
1817
|
+
r(n, {
|
|
1551
1818
|
label: "黑体",
|
|
1552
1819
|
value: "SimHei"
|
|
1553
1820
|
}),
|
|
1554
|
-
|
|
1821
|
+
r(n, {
|
|
1555
1822
|
label: "等线",
|
|
1556
1823
|
value: "DengXian"
|
|
1557
1824
|
})
|
|
1558
1825
|
]),
|
|
1559
1826
|
_: 1
|
|
1560
1827
|
}, 8, ["modelValue"])
|
|
1561
|
-
])) :
|
|
1828
|
+
])) : D("", !0)
|
|
1562
1829
|
])
|
|
1563
1830
|
], 512), [
|
|
1564
|
-
[
|
|
1831
|
+
[We, f.value === "polygon"]
|
|
1565
1832
|
]),
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
modelValue:
|
|
1571
|
-
"onUpdate:modelValue":
|
|
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:
|
|
1843
|
+
onChange: Kl
|
|
1577
1844
|
}, {
|
|
1578
|
-
default:
|
|
1579
|
-
(
|
|
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
|
-
|
|
1855
|
+
r(v, {
|
|
1589
1856
|
size: "small",
|
|
1590
|
-
onClick:
|
|
1591
|
-
icon:
|
|
1857
|
+
onClick: Rl,
|
|
1858
|
+
icon: i(Ge),
|
|
1592
1859
|
style: { width: "100%", margin: "10px 0" }
|
|
1593
1860
|
}, {
|
|
1594
|
-
default:
|
|
1595
|
-
|
|
1861
|
+
default: O(() => [...e[34] || (e[34] = [
|
|
1862
|
+
Me(" 添加自定义配置 ", -1)
|
|
1596
1863
|
])]),
|
|
1597
1864
|
_: 1
|
|
1598
1865
|
}, 8, ["icon"]),
|
|
1599
|
-
|
|
1600
|
-
(
|
|
1601
|
-
a.type === "custom" ? (
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
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": (
|
|
1873
|
+
"onUpdate:modelValue": (p) => a.value = p,
|
|
1607
1874
|
size: "small",
|
|
1608
1875
|
placeholder: "请选择值",
|
|
1609
1876
|
clearable: "",
|
|
1610
1877
|
filterable: ""
|
|
1611
1878
|
}, {
|
|
1612
|
-
default:
|
|
1613
|
-
(
|
|
1614
|
-
key:
|
|
1615
|
-
label:
|
|
1616
|
-
value:
|
|
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
|
-
|
|
1888
|
+
r(B, {
|
|
1622
1889
|
class: "delete-icon",
|
|
1623
|
-
onClick: (
|
|
1890
|
+
onClick: (p) => $l(ne)
|
|
1624
1891
|
}, {
|
|
1625
|
-
default:
|
|
1626
|
-
|
|
1892
|
+
default: O(() => [
|
|
1893
|
+
r(i(ol))
|
|
1627
1894
|
]),
|
|
1628
1895
|
_: 1
|
|
1629
1896
|
}, 8, ["onClick"])
|
|
1630
1897
|
]),
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1898
|
+
u("div", st, [
|
|
1899
|
+
e[35] || (e[35] = u("span", null, "线形", -1)),
|
|
1900
|
+
r(m, {
|
|
1634
1901
|
modelValue: a.lineStyle,
|
|
1635
|
-
"onUpdate:modelValue": (
|
|
1902
|
+
"onUpdate:modelValue": (p) => a.lineStyle = p,
|
|
1636
1903
|
size: "small",
|
|
1637
1904
|
placeholder: "请选择线形"
|
|
1638
1905
|
}, {
|
|
1639
|
-
default:
|
|
1640
|
-
|
|
1906
|
+
default: O(() => [
|
|
1907
|
+
r(n, {
|
|
1641
1908
|
label: "虚线",
|
|
1642
1909
|
value: "dash"
|
|
1643
1910
|
}),
|
|
1644
|
-
|
|
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
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1919
|
+
u("div", rt, [
|
|
1920
|
+
e[36] || (e[36] = u("span", null, "颜色", -1)),
|
|
1921
|
+
r(S, {
|
|
1655
1922
|
modelValue: a.outlineColor,
|
|
1656
|
-
"onUpdate:modelValue": (
|
|
1923
|
+
"onUpdate:modelValue": (p) => a.outlineColor = p,
|
|
1657
1924
|
"show-alpha": "",
|
|
1658
|
-
|
|
1925
|
+
"color-format": "rgb",
|
|
1926
|
+
predefine: i(Le)
|
|
1659
1927
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
|
|
1660
1928
|
]),
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1929
|
+
u("div", dt, [
|
|
1930
|
+
e[37] || (e[37] = u("span", null, "线宽", -1)),
|
|
1931
|
+
r(K, {
|
|
1664
1932
|
modelValue: a.outlineWidth,
|
|
1665
|
-
"onUpdate:modelValue": (
|
|
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" ? (
|
|
1683
|
-
|
|
1684
|
-
|
|
1939
|
+
])) : a.type === "default" ? (c(), h("div", ft, [
|
|
1940
|
+
e[41] || (e[41] = u("div", null, [
|
|
1941
|
+
u("h5", null, "默认配置")
|
|
1685
1942
|
], -1)),
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1943
|
+
u("div", vt, [
|
|
1944
|
+
e[38] || (e[38] = u("span", null, "线形", -1)),
|
|
1945
|
+
r(m, {
|
|
1689
1946
|
modelValue: a.lineStyle,
|
|
1690
|
-
"onUpdate:modelValue": (
|
|
1947
|
+
"onUpdate:modelValue": (p) => a.lineStyle = p,
|
|
1691
1948
|
size: "small",
|
|
1692
1949
|
placeholder: "请选择线形"
|
|
1693
1950
|
}, {
|
|
1694
|
-
default:
|
|
1695
|
-
|
|
1951
|
+
default: O(() => [
|
|
1952
|
+
r(n, {
|
|
1696
1953
|
label: "虚线",
|
|
1697
1954
|
value: "dash"
|
|
1698
1955
|
}),
|
|
1699
|
-
|
|
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
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1964
|
+
u("div", ct, [
|
|
1965
|
+
e[39] || (e[39] = u("span", null, "颜色", -1)),
|
|
1966
|
+
r(S, {
|
|
1710
1967
|
modelValue: a.outlineColor,
|
|
1711
|
-
"onUpdate:modelValue": (
|
|
1968
|
+
"onUpdate:modelValue": (p) => a.outlineColor = p,
|
|
1712
1969
|
"show-alpha": "",
|
|
1713
|
-
|
|
1970
|
+
"color-format": "rgb",
|
|
1971
|
+
predefine: i(Le)
|
|
1714
1972
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
|
|
1715
1973
|
]),
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1974
|
+
u("div", mt, [
|
|
1975
|
+
e[40] || (e[40] = u("span", null, "线宽", -1)),
|
|
1976
|
+
r(K, {
|
|
1719
1977
|
modelValue: a.outlineWidth,
|
|
1720
|
-
"onUpdate:modelValue": (
|
|
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
|
-
])) :
|
|
1984
|
+
])) : D("", !0)
|
|
1738
1985
|
], 64))), 128))
|
|
1739
1986
|
]),
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
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
|
-
[
|
|
2111
|
+
[We, f.value === "line"]
|
|
1870
2112
|
]),
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
modelValue:
|
|
1877
|
-
"onUpdate:modelValue":
|
|
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:
|
|
2124
|
+
onChange: Bl
|
|
1883
2125
|
}, {
|
|
1884
|
-
default:
|
|
1885
|
-
(
|
|
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
|
-
|
|
2136
|
+
r(v, {
|
|
1895
2137
|
size: "small",
|
|
1896
|
-
onClick:
|
|
1897
|
-
icon:
|
|
2138
|
+
onClick: Ol,
|
|
2139
|
+
icon: i(Ge),
|
|
1898
2140
|
style: { width: "100%", margin: "10px 0" }
|
|
1899
2141
|
}, {
|
|
1900
|
-
default:
|
|
1901
|
-
|
|
2142
|
+
default: O(() => [...e[49] || (e[49] = [
|
|
2143
|
+
Me(" 添加自定义配置 ", -1)
|
|
1902
2144
|
])]),
|
|
1903
2145
|
_: 1
|
|
1904
2146
|
}, 8, ["icon"]),
|
|
1905
|
-
|
|
1906
|
-
(
|
|
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" ? (
|
|
1911
|
-
|
|
1912
|
-
|
|
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
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
2156
|
+
u("div", kt, [
|
|
2157
|
+
u("span", Ft, "若 " + je(C.value) + " =", 1),
|
|
2158
|
+
r(m, {
|
|
1917
2159
|
"model-value": a.value,
|
|
1918
|
-
"onUpdate:modelValue": (
|
|
2160
|
+
"onUpdate:modelValue": (p) => a.value = p,
|
|
1919
2161
|
size: "small",
|
|
1920
2162
|
placeholder: "请选择值",
|
|
1921
2163
|
clearable: "",
|
|
1922
2164
|
filterable: ""
|
|
1923
2165
|
}, {
|
|
1924
|
-
default:
|
|
1925
|
-
(
|
|
1926
|
-
key: String(
|
|
1927
|
-
label: String(
|
|
1928
|
-
value:
|
|
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
|
-
|
|
2175
|
+
r(B, {
|
|
1934
2176
|
class: "delete-icon",
|
|
1935
|
-
onClick: (
|
|
2177
|
+
onClick: (p) => Ml(ne)
|
|
1936
2178
|
}, {
|
|
1937
|
-
default:
|
|
1938
|
-
|
|
2179
|
+
default: O(() => [
|
|
2180
|
+
r(i(ol))
|
|
1939
2181
|
]),
|
|
1940
2182
|
_: 1
|
|
1941
2183
|
}, 8, ["onClick"])
|
|
1942
2184
|
]),
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
2185
|
+
u("div", Nt, [
|
|
2186
|
+
e[50] || (e[50] = u("span", null, "渲染方式", -1)),
|
|
2187
|
+
r(m, {
|
|
1946
2188
|
modelValue: a.renderMode,
|
|
1947
|
-
"onUpdate:modelValue": (
|
|
2189
|
+
"onUpdate:modelValue": (p) => a.renderMode = p,
|
|
1948
2190
|
size: "small",
|
|
1949
2191
|
placeholder: "请选择渲染方式"
|
|
1950
2192
|
}, {
|
|
1951
|
-
default:
|
|
1952
|
-
|
|
2193
|
+
default: O(() => [
|
|
2194
|
+
r(n, {
|
|
1953
2195
|
label: "纯色点",
|
|
1954
2196
|
value: "color"
|
|
1955
2197
|
}),
|
|
1956
|
-
|
|
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" ? (
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
(
|
|
1969
|
-
key:
|
|
1970
|
-
class:
|
|
1971
|
-
selected: a.pointStyle ===
|
|
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: (
|
|
2215
|
+
onClick: (Xl) => a.pointStyle = p.id
|
|
1974
2216
|
}, [
|
|
1975
|
-
|
|
1976
|
-
src:
|
|
2217
|
+
u("img", {
|
|
2218
|
+
src: p.url,
|
|
1977
2219
|
alt: ""
|
|
1978
|
-
}, null, 8,
|
|
1979
|
-
], 10,
|
|
2220
|
+
}, null, 8, xt)
|
|
2221
|
+
], 10, _t))), 128))
|
|
1980
2222
|
])
|
|
1981
2223
|
]),
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
2224
|
+
u("div", Ut, [
|
|
2225
|
+
e[52] || (e[52] = u("span", null, "点位颜色", -1)),
|
|
2226
|
+
r(S, {
|
|
1985
2227
|
modelValue: a.pointTintColor,
|
|
1986
|
-
"onUpdate:modelValue": (
|
|
2228
|
+
"onUpdate:modelValue": (p) => a.pointTintColor = p,
|
|
1987
2229
|
"show-alpha": "",
|
|
1988
|
-
|
|
2230
|
+
"color-format": "rgb",
|
|
2231
|
+
predefine: i(Le)
|
|
1989
2232
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
|
|
1990
2233
|
]),
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2234
|
+
u("div", It, [
|
|
2235
|
+
e[53] || (e[53] = u("span", null, "点位大小", -1)),
|
|
2236
|
+
r(K, {
|
|
1994
2237
|
modelValue: a.pointSize,
|
|
1995
|
-
"onUpdate:modelValue": (
|
|
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)) :
|
|
2002
|
-
a.renderMode === "icon" ? (
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
modelValue: a.
|
|
2007
|
-
"onUpdate:modelValue": (
|
|
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
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2254
|
+
u("div", Ot, [
|
|
2255
|
+
e[55] || (e[55] = u("span", null, "点位大小", -1)),
|
|
2256
|
+
r(K, {
|
|
2014
2257
|
modelValue: a.pointSize,
|
|
2015
|
-
"onUpdate:modelValue": (
|
|
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)) :
|
|
2022
|
-
], 64)) : a.type == "default" ? (
|
|
2023
|
-
|
|
2024
|
-
|
|
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
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2269
|
+
u("div", Pt, [
|
|
2270
|
+
e[57] || (e[57] = u("span", null, "渲染方式", -1)),
|
|
2271
|
+
r(m, {
|
|
2029
2272
|
modelValue: a.renderMode,
|
|
2030
|
-
"onUpdate:modelValue": (
|
|
2273
|
+
"onUpdate:modelValue": (p) => a.renderMode = p,
|
|
2031
2274
|
size: "small",
|
|
2032
2275
|
placeholder: "请选择渲染方式"
|
|
2033
2276
|
}, {
|
|
2034
|
-
default:
|
|
2035
|
-
|
|
2277
|
+
default: O(() => [
|
|
2278
|
+
r(n, {
|
|
2036
2279
|
label: "纯色点",
|
|
2037
2280
|
value: "color"
|
|
2038
2281
|
}),
|
|
2039
|
-
|
|
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" ? (
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
(
|
|
2052
|
-
key:
|
|
2053
|
-
class:
|
|
2054
|
-
selected: a.pointStyle ===
|
|
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: (
|
|
2299
|
+
onClick: (Xl) => a.pointStyle = p.id
|
|
2057
2300
|
}, [
|
|
2058
|
-
|
|
2059
|
-
src:
|
|
2301
|
+
u("img", {
|
|
2302
|
+
src: p.url,
|
|
2060
2303
|
alt: ""
|
|
2061
|
-
}, null, 8,
|
|
2062
|
-
], 10,
|
|
2304
|
+
}, null, 8, Jt)
|
|
2305
|
+
], 10, At))), 128))
|
|
2063
2306
|
])
|
|
2064
2307
|
]),
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2308
|
+
u("div", Rt, [
|
|
2309
|
+
e[59] || (e[59] = u("span", null, "点位颜色", -1)),
|
|
2310
|
+
r(S, {
|
|
2068
2311
|
modelValue: a.pointTintColor,
|
|
2069
|
-
"onUpdate:modelValue": (
|
|
2312
|
+
"onUpdate:modelValue": (p) => a.pointTintColor = p,
|
|
2070
2313
|
"show-alpha": "",
|
|
2071
|
-
|
|
2314
|
+
"color-format": "rgb",
|
|
2315
|
+
predefine: i(Le)
|
|
2072
2316
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "predefine"])
|
|
2073
2317
|
]),
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2318
|
+
u("div", $t, [
|
|
2319
|
+
e[60] || (e[60] = u("span", null, "点位大小", -1)),
|
|
2320
|
+
r(K, {
|
|
2077
2321
|
modelValue: a.pointSize,
|
|
2078
|
-
"onUpdate:modelValue": (
|
|
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)) :
|
|
2085
|
-
a.renderMode === "icon" ? (
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
modelValue: a.
|
|
2090
|
-
"onUpdate:modelValue": (
|
|
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
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2338
|
+
u("div", Wt, [
|
|
2339
|
+
e[62] || (e[62] = u("span", null, "点位大小", -1)),
|
|
2340
|
+
r(K, {
|
|
2097
2341
|
modelValue: a.pointSize,
|
|
2098
|
-
"onUpdate:modelValue": (
|
|
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)) :
|
|
2105
|
-
], 64)) :
|
|
2348
|
+
], 64)) : D("", !0)
|
|
2349
|
+
], 64)) : D("", !0)
|
|
2106
2350
|
]))), 128))
|
|
2107
2351
|
])
|
|
2108
2352
|
]),
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2353
|
+
u("div", Xt, [
|
|
2354
|
+
e[69] || (e[69] = u("div", { class: "section-header" }, [
|
|
2355
|
+
u("span", null, "标注配置")
|
|
2112
2356
|
], -1)),
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
modelValue:
|
|
2118
|
-
"onUpdate:modelValue":
|
|
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:
|
|
2123
|
-
|
|
2366
|
+
default: O(() => [
|
|
2367
|
+
r(n, {
|
|
2124
2368
|
label: "显示",
|
|
2125
2369
|
value: !0
|
|
2126
2370
|
}),
|
|
2127
|
-
|
|
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
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
modelValue:
|
|
2139
|
-
"onUpdate:modelValue":
|
|
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:
|
|
2144
|
-
|
|
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
|
-
])) :
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
modelValue:
|
|
2161
|
-
"onUpdate:modelValue":
|
|
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:
|
|
2166
|
-
|
|
2405
|
+
default: O(() => [
|
|
2406
|
+
r(n, {
|
|
2167
2407
|
label: "12",
|
|
2168
2408
|
value: 12
|
|
2169
2409
|
}),
|
|
2170
|
-
|
|
2410
|
+
r(n, {
|
|
2171
2411
|
label: "14",
|
|
2172
2412
|
value: 14
|
|
2173
2413
|
}),
|
|
2174
|
-
|
|
2414
|
+
r(n, {
|
|
2175
2415
|
label: "16",
|
|
2176
2416
|
value: 16
|
|
2177
2417
|
}),
|
|
2178
|
-
|
|
2418
|
+
r(n, {
|
|
2179
2419
|
label: "18",
|
|
2180
2420
|
value: 18
|
|
2181
2421
|
}),
|
|
2182
|
-
|
|
2422
|
+
r(n, {
|
|
2183
2423
|
label: "20",
|
|
2184
2424
|
value: 20
|
|
2185
2425
|
}),
|
|
2186
|
-
|
|
2426
|
+
r(n, {
|
|
2187
2427
|
label: "22",
|
|
2188
2428
|
value: 22
|
|
2189
2429
|
}),
|
|
2190
|
-
|
|
2430
|
+
r(n, {
|
|
2191
2431
|
label: "24",
|
|
2192
2432
|
value: 24
|
|
2193
2433
|
})
|
|
2194
2434
|
]),
|
|
2195
2435
|
_: 1
|
|
2196
2436
|
}, 8, ["modelValue"])
|
|
2197
|
-
])) :
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
modelValue:
|
|
2202
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
2444
|
+
"color-format": "rgb",
|
|
2445
|
+
predefine: i(Le)
|
|
2205
2446
|
}, null, 8, ["modelValue", "predefine"])
|
|
2206
|
-
])) :
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
modelValue:
|
|
2211
|
-
"onUpdate:modelValue":
|
|
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:
|
|
2216
|
-
|
|
2456
|
+
default: O(() => [
|
|
2457
|
+
r(n, {
|
|
2217
2458
|
label: "宋体",
|
|
2218
2459
|
value: "SimSun"
|
|
2219
2460
|
}),
|
|
2220
|
-
|
|
2461
|
+
r(n, {
|
|
2221
2462
|
label: "黑体",
|
|
2222
2463
|
value: "SimHei"
|
|
2223
2464
|
}),
|
|
2224
|
-
|
|
2465
|
+
r(n, {
|
|
2225
2466
|
label: "等线",
|
|
2226
2467
|
value: "DengXian"
|
|
2227
2468
|
})
|
|
2228
2469
|
]),
|
|
2229
2470
|
_: 1
|
|
2230
2471
|
}, 8, ["modelValue"])
|
|
2231
|
-
])) :
|
|
2472
|
+
])) : D("", !0)
|
|
2232
2473
|
])
|
|
2233
2474
|
])
|
|
2234
2475
|
], 512), [
|
|
2235
|
-
[
|
|
2476
|
+
[We, f.value === "point"]
|
|
2236
2477
|
])
|
|
2237
2478
|
]),
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
default:
|
|
2241
|
-
|
|
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
|
-
|
|
2486
|
+
r(v, {
|
|
2246
2487
|
type: "primary",
|
|
2247
|
-
onClick:
|
|
2488
|
+
onClick: Wl
|
|
2248
2489
|
}, {
|
|
2249
|
-
default:
|
|
2250
|
-
|
|
2490
|
+
default: O(() => [...e[71] || (e[71] = [
|
|
2491
|
+
Me("确定", -1)
|
|
2251
2492
|
])]),
|
|
2252
2493
|
_: 1
|
|
2253
2494
|
})
|
|
2254
2495
|
])
|
|
2255
2496
|
], 512), [
|
|
2256
|
-
[
|
|
2497
|
+
[We, y.value]
|
|
2257
2498
|
])
|
|
2258
2499
|
]),
|
|
2259
2500
|
_: 1
|
|
2260
2501
|
});
|
|
2261
2502
|
};
|
|
2262
2503
|
}
|
|
2263
|
-
}),
|
|
2504
|
+
}), Sa = /* @__PURE__ */ co(Zt, [["__scopeId", "data-v-f4e5c2aa"]]);
|
|
2264
2505
|
export {
|
|
2265
|
-
|
|
2506
|
+
Sa as default
|
|
2266
2507
|
};
|