mrxy-yk 0.0.1-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +34 -0
  3. package/dist/@type/components/a-map-canvas/index.d.ts +1 -0
  4. package/dist/@type/components/adaptive-box/AdaptiveBox.d.ts +42 -0
  5. package/dist/@type/components/coordinate-pickup/CoordinatePickup.d.ts +29 -0
  6. package/dist/@type/components/drag-drop-box/DragDropBox.d.ts +33 -0
  7. package/dist/@type/components/drag-drop-container/DragDropContainer.d.ts +39 -0
  8. package/dist/@type/components/drag-drop-container/type.d.ts +3 -0
  9. package/dist/@type/components/echarts-canvas/EChartsCanvas.d.ts +21 -0
  10. package/dist/@type/components/in-body/InBody.d.ts +22 -0
  11. package/dist/@type/components/index.d.ts +12 -0
  12. package/dist/@type/components/position-anchor/PositionAnchor.d.ts +23 -0
  13. package/dist/@type/components/progress-bar/ProgressBar.d.ts +35 -0
  14. package/dist/@type/components/progress-bar/type.d.ts +5 -0
  15. package/dist/@type/components/progress-ring/ProgressRing.d.ts +22 -0
  16. package/dist/@type/components/scroll-container/ScrollContainer.d.ts +35 -0
  17. package/dist/@type/components/show-log/ShowLog.d.ts +25 -0
  18. package/dist/@type/components/ys-video/@type/index.d.ts +151 -0
  19. package/dist/@type/components/ys-video/YsVideo.d.ts +18 -0
  20. package/dist/@type/components/ys-video/components/BtnLineRec.d.ts +7 -0
  21. package/dist/@type/components/ys-video/type.d.ts +9 -0
  22. package/dist/@type/config/index.d.ts +26 -0
  23. package/dist/@type/directive/index.d.ts +1 -0
  24. package/dist/@type/directive/ref-height/index.d.ts +3 -0
  25. package/dist/@type/directive/ref-height/type.d.ts +11 -0
  26. package/dist/@type/directive/table-scroll-carousel/index.d.ts +3 -0
  27. package/dist/@type/element-plus/components/attrs.d.ts +2 -0
  28. package/dist/@type/element-plus/components/date-picker/DatePicker.d.ts +16 -0
  29. package/dist/@type/element-plus/components/date-picker/index.d.ts +22 -0
  30. package/dist/@type/element-plus/components/date-picker/type.d.ts +17 -0
  31. package/dist/@type/element-plus/components/empty/Empty.d.ts +31 -0
  32. package/dist/@type/element-plus/components/empty/config.d.ts +24 -0
  33. package/dist/@type/element-plus/components/empty/hooks/index.d.ts +2 -0
  34. package/dist/@type/element-plus/components/empty/hooks/type.d.ts +12 -0
  35. package/dist/@type/element-plus/components/empty/type.d.ts +9 -0
  36. package/dist/@type/element-plus/components/form-dialog/FormDialog.d.ts +400 -0
  37. package/dist/@type/element-plus/components/form-dialog/type.d.ts +4 -0
  38. package/dist/@type/element-plus/components/images/Images.d.ts +16 -0
  39. package/dist/@type/element-plus/components/images/index.d.ts +9 -0
  40. package/dist/@type/element-plus/components/index.d.ts +9 -0
  41. package/dist/@type/element-plus/components/pagination/Pagination.d.ts +18 -0
  42. package/dist/@type/element-plus/components/table-column/TableColumn.d.ts +27 -0
  43. package/dist/@type/element-plus/components/upload/accept/index.d.ts +1 -0
  44. package/dist/@type/element-plus/components/upload/index.d.ts +42 -0
  45. package/dist/@type/element-plus/components/upload/select-file/SelectFile.d.ts +822 -0
  46. package/dist/@type/element-plus/components/upload/upload-files/UploadFiles.d.ts +844 -0
  47. package/dist/@type/element-plus/components/upload/upload-images/UploadImages.d.ts +842 -0
  48. package/dist/@type/element-plus/hooks/dialog/index.d.ts +2 -0
  49. package/dist/@type/element-plus/hooks/dialog/type.d.ts +20 -0
  50. package/dist/@type/element-plus/hooks/form/index.d.ts +2 -0
  51. package/dist/@type/element-plus/hooks/form/type.d.ts +45 -0
  52. package/dist/@type/element-plus/hooks/form-dialog/index.d.ts +2 -0
  53. package/dist/@type/element-plus/hooks/form-dialog/type.d.ts +70 -0
  54. package/dist/@type/element-plus/hooks/index.d.ts +5 -0
  55. package/dist/@type/element-plus/hooks/table-sort/index.d.ts +20 -0
  56. package/dist/@type/element-plus/hooks/table-sort/type.d.ts +21 -0
  57. package/dist/@type/element-plus/index.d.ts +3 -0
  58. package/dist/@type/element-plus/type.d.ts +15 -0
  59. package/dist/@type/element-plus/utils/form-rule/index.d.ts +4 -0
  60. package/dist/@type/element-plus/utils/form-rule/rule.d.ts +22 -0
  61. package/dist/@type/element-plus/utils/form-rule/type.d.ts +14 -0
  62. package/dist/@type/element-plus/utils/index.d.ts +2 -0
  63. package/dist/@type/element-plus/utils/table-util/index.d.ts +25 -0
  64. package/dist/@type/entity/BigFloat.d.ts +48 -0
  65. package/dist/@type/entity/Pages.d.ts +9 -0
  66. package/dist/@type/entity/RejectError.d.ts +24 -0
  67. package/dist/@type/entity/index.d.ts +3 -0
  68. package/dist/@type/hooks/index.d.ts +1 -0
  69. package/dist/@type/hooks/table-search/index.d.ts +3 -0
  70. package/dist/@type/hooks/table-search/type.d.ts +54 -0
  71. package/dist/@type/icons/index.d.ts +2 -0
  72. package/dist/@type/index.d.ts +14 -0
  73. package/dist/@type/resolver/index.d.ts +3 -0
  74. package/dist/@type/type.d.ts +11 -0
  75. package/dist/@type/typings.d.ts +20 -0
  76. package/dist/@type/utils/amap/@type/AMap.d.ts +24 -0
  77. package/dist/@type/utils/amap/@type/Bounds.d.ts +18 -0
  78. package/dist/@type/utils/amap/@type/Control.d.ts +19 -0
  79. package/dist/@type/utils/amap/@type/Event.d.ts +11 -0
  80. package/dist/@type/utils/amap/@type/Icon.d.ts +12 -0
  81. package/dist/@type/utils/amap/@type/InfoWindow.d.ts +40 -0
  82. package/dist/@type/utils/amap/@type/LngLat.d.ts +34 -0
  83. package/dist/@type/utils/amap/@type/Map.d.ts +218 -0
  84. package/dist/@type/utils/amap/@type/Marker.d.ts +137 -0
  85. package/dist/@type/utils/amap/@type/MarkerCluster.d.ts +65 -0
  86. package/dist/@type/utils/amap/@type/MoveAnimation.d.ts +33 -0
  87. package/dist/@type/utils/amap/@type/Pixel.d.ts +11 -0
  88. package/dist/@type/utils/amap/@type/Polyline.d.ts +80 -0
  89. package/dist/@type/utils/amap/@type/Size.d.ts +9 -0
  90. package/dist/@type/utils/amap/@type/index.d.ts +23 -0
  91. package/dist/@type/utils/amap/@type/other.d.ts +11 -0
  92. package/dist/@type/utils/amap/index.d.ts +3 -0
  93. package/dist/@type/utils/amap/type.d.ts +21 -0
  94. package/dist/@type/utils/amap/utils/coordinates.d.ts +24 -0
  95. package/dist/@type/utils/amap/utils/index.d.ts +12 -0
  96. package/dist/@type/utils/amap/utils/type.d.ts +4 -0
  97. package/dist/@type/utils/echarts/hooks/index.d.ts +76 -0
  98. package/dist/@type/utils/echarts/index.d.ts +3 -0
  99. package/dist/@type/utils/echarts/modules/coordinate/basic.d.ts +27 -0
  100. package/dist/@type/utils/echarts/modules/coordinate/cartesian.d.ts +25 -0
  101. package/dist/@type/utils/echarts/modules/coordinate/polar.d.ts +14 -0
  102. package/dist/@type/utils/echarts/modules/index.d.ts +5 -0
  103. package/dist/@type/utils/echarts/modules/series/bar.d.ts +16 -0
  104. package/dist/@type/utils/echarts/modules/series/line.d.ts +16 -0
  105. package/dist/@type/utils/echarts/modules/series/pie.d.ts +28 -0
  106. package/dist/@type/utils/echarts/modules/type.d.ts +83 -0
  107. package/dist/@type/utils/echarts/type.d.ts +8 -0
  108. package/dist/@type/utils/echarts/utils/assignOption.d.ts +7 -0
  109. package/dist/@type/utils/echarts/utils/index.d.ts +27 -0
  110. package/dist/@type/utils/fn-periodically/FnBatchPeriodically.d.ts +32 -0
  111. package/dist/@type/utils/fn-periodically/FnPeriodically.d.ts +37 -0
  112. package/dist/@type/utils/fn-periodically/index.d.ts +2 -0
  113. package/dist/@type/utils/fn-periodically/type.d.ts +30 -0
  114. package/dist/@type/utils/index.d.ts +6 -0
  115. package/dist/@type/utils/match-unit/dataset.d.ts +8 -0
  116. package/dist/@type/utils/match-unit/index.d.ts +10 -0
  117. package/dist/@type/utils/match-unit/type.d.ts +39 -0
  118. package/dist/@type/utils/mitt/hooks/inject-events/index.d.ts +7 -0
  119. package/dist/@type/utils/mitt/hooks/inject-events/type.d.ts +9 -0
  120. package/dist/@type/utils/prototype/index.d.ts +5 -0
  121. package/dist/@type/utils/prototype/lib/ArrayUtil.d.ts +87 -0
  122. package/dist/@type/utils/prototype/lib/ComponentUtil.d.ts +18 -0
  123. package/dist/@type/utils/prototype/lib/FileUtil.d.ts +19 -0
  124. package/dist/@type/utils/prototype/lib/NumberUtil.d.ts +9 -0
  125. package/dist/@type/utils/prototype/lib/ObjectUtil.d.ts +152 -0
  126. package/dist/@type/utils/prototype/lib/PromiseUtil.d.ts +7 -0
  127. package/dist/@type/utils/prototype/type.d.ts +28 -0
  128. package/dist/@type/utils/sandbox/Sandbox.d.ts +25 -0
  129. package/dist/@type/utils/transition-fade/index.d.ts +32 -0
  130. package/dist/@type/utils/transition-fade/type.d.ts +6 -0
  131. package/dist/_virtual/_plugin-vue_export-helper.es.js +10 -0
  132. package/dist/components/adaptive-box/AdaptiveBox.vue.es.js +7 -0
  133. package/dist/components/adaptive-box/AdaptiveBox.vue.es2.js +170 -0
  134. package/dist/components/coordinate-pickup/CoordinatePickup.vue.es.js +10 -0
  135. package/dist/components/coordinate-pickup/CoordinatePickup.vue.es2.js +302 -0
  136. package/dist/components/drag-drop-box/DragDropBox.vue.es.js +7 -0
  137. package/dist/components/drag-drop-box/DragDropBox.vue.es2.js +59 -0
  138. package/dist/components/drag-drop-container/DragDropContainer.vue.es.js +7 -0
  139. package/dist/components/drag-drop-container/DragDropContainer.vue.es2.js +113 -0
  140. package/dist/components/echarts-canvas/EChartsCanvas.vue.es.js +7 -0
  141. package/dist/components/echarts-canvas/EChartsCanvas.vue.es2.js +73 -0
  142. package/dist/components/in-body/InBody.vue.es.js +24 -0
  143. package/dist/components/in-body/InBody.vue.es2.js +4 -0
  144. package/dist/components/index.es.js +26 -0
  145. package/dist/components/position-anchor/PositionAnchor.vue.es.js +7 -0
  146. package/dist/components/position-anchor/PositionAnchor.vue.es2.js +22 -0
  147. package/dist/components/progress-bar/ProgressBar.vue.es.js +7 -0
  148. package/dist/components/progress-bar/ProgressBar.vue.es2.js +126 -0
  149. package/dist/components/progress-ring/ProgressRing.vue.es.js +7 -0
  150. package/dist/components/progress-ring/ProgressRing.vue.es2.js +87 -0
  151. package/dist/components/scroll-container/ScrollContainer.vue.es.js +7 -0
  152. package/dist/components/scroll-container/ScrollContainer.vue.es2.js +89 -0
  153. package/dist/components/show-log/ShowLog.vue.es.js +7 -0
  154. package/dist/components/show-log/ShowLog.vue.es2.js +61 -0
  155. package/dist/components/ys-video/YsVideo.vue.es.js +7 -0
  156. package/dist/components/ys-video/YsVideo.vue.es2.js +122 -0
  157. package/dist/components/ys-video/components/BtnLineRec.vue.es.js +7 -0
  158. package/dist/components/ys-video/components/BtnLineRec.vue.es2.js +57 -0
  159. package/dist/components/ys-video/images/btn-play.png.es.js +4 -0
  160. package/dist/config/index.es.js +20 -0
  161. package/dist/directive/index.es.js +4 -0
  162. package/dist/directive/ref-height/index.es.js +49 -0
  163. package/dist/element-plus/components/date-picker/DatePicker.vue.es.js +107 -0
  164. package/dist/element-plus/components/date-picker/DatePicker.vue.es2.js +4 -0
  165. package/dist/element-plus/components/date-picker/index.es.js +213 -0
  166. package/dist/element-plus/components/empty/Empty.vue.es.js +92 -0
  167. package/dist/element-plus/components/empty/Empty.vue.es3.js +5 -0
  168. package/dist/element-plus/components/empty/config.es.js +10 -0
  169. package/dist/element-plus/components/empty/hooks/index.es.js +24 -0
  170. package/dist/element-plus/components/form-dialog/FormDialog.vue.es.js +135 -0
  171. package/dist/element-plus/components/form-dialog/FormDialog.vue.es2.js +4 -0
  172. package/dist/element-plus/components/images/Images.vue.es.js +7 -0
  173. package/dist/element-plus/components/images/Images.vue.es2.js +93 -0
  174. package/dist/element-plus/components/images/index.es.js +10 -0
  175. package/dist/element-plus/components/index.es.js +21 -0
  176. package/dist/element-plus/components/pagination/Pagination.vue.es.js +7 -0
  177. package/dist/element-plus/components/pagination/Pagination.vue.es2.js +66 -0
  178. package/dist/element-plus/components/table-column/TableColumn.vue.es.js +34 -0
  179. package/dist/element-plus/components/table-column/TableColumn.vue.es2.js +4 -0
  180. package/dist/element-plus/components/upload/accept/index.es.js +12 -0
  181. package/dist/element-plus/components/upload/index.es.js +35 -0
  182. package/dist/element-plus/components/upload/select-file/SelectFile.vue.es.js +7 -0
  183. package/dist/element-plus/components/upload/select-file/SelectFile.vue.es2.js +66 -0
  184. package/dist/element-plus/components/upload/upload-files/UploadFiles.vue.es.js +7 -0
  185. package/dist/element-plus/components/upload/upload-files/UploadFiles.vue.es2.js +204 -0
  186. package/dist/element-plus/components/upload/upload-images/UploadImages.vue.es.js +7 -0
  187. package/dist/element-plus/components/upload/upload-images/UploadImages.vue.es2.js +211 -0
  188. package/dist/element-plus/hooks/dialog/index.es.js +44 -0
  189. package/dist/element-plus/hooks/form/index.es.js +45 -0
  190. package/dist/element-plus/hooks/form-dialog/index.es.js +53 -0
  191. package/dist/element-plus/hooks/table-sort/index.es.js +30 -0
  192. package/dist/element-plus/index.es.js +70 -0
  193. package/dist/element-plus/utils/form-rule/rule.es.js +107 -0
  194. package/dist/element-plus/utils/table-util/index.es.js +56 -0
  195. package/dist/entity/BigFloat.es.js +102 -0
  196. package/dist/entity/Pages.es.js +11 -0
  197. package/dist/entity/RejectError.es.js +35 -0
  198. package/dist/entity/index.es.js +8 -0
  199. package/dist/hooks/index.es.js +4 -0
  200. package/dist/hooks/table-search/index.es.js +72 -0
  201. package/dist/icons/images/Image.svg.es.js +4 -0
  202. package/dist/icons/images/ImageError.svg.es.js +4 -0
  203. package/dist/icons/index.es.js +12 -0
  204. package/dist/index.es.js +156 -0
  205. package/dist/resolver/index.es.js +21 -0
  206. package/dist/styles/index.css +1 -0
  207. package/dist/styles/plugins/colors/index.scss +52 -0
  208. package/dist/styles/plugins/colors/var.scss +77 -0
  209. package/dist/styles/plugins/template.scss +37 -0
  210. package/dist/utils/amap/index.es.js +21 -0
  211. package/dist/utils/amap/utils/coordinates.es.js +61 -0
  212. package/dist/utils/amap/utils/index.es.js +39 -0
  213. package/dist/utils/echarts/hooks/index.es.js +32 -0
  214. package/dist/utils/echarts/modules/coordinate/basic.es.js +103 -0
  215. package/dist/utils/echarts/modules/coordinate/cartesian.es.js +79 -0
  216. package/dist/utils/echarts/modules/series/bar.es.js +43 -0
  217. package/dist/utils/echarts/modules/series/line.es.js +47 -0
  218. package/dist/utils/echarts/modules/series/pie.es.js +126 -0
  219. package/dist/utils/echarts/utils/assignOption.es.js +40 -0
  220. package/dist/utils/echarts/utils/index.es.js +99 -0
  221. package/dist/utils/fn-periodically/FnBatchPeriodically.es.js +70 -0
  222. package/dist/utils/fn-periodically/FnPeriodically.es.js +85 -0
  223. package/dist/utils/index.es.js +49 -0
  224. package/dist/utils/match-unit/dataset.es.js +143 -0
  225. package/dist/utils/match-unit/index.es.js +56 -0
  226. package/dist/utils/mitt/hooks/inject-events/index.es.js +27 -0
  227. package/dist/utils/prototype/lib/ArrayUtil.es.js +115 -0
  228. package/dist/utils/prototype/lib/ComponentUtil.es.js +45 -0
  229. package/dist/utils/prototype/lib/NumberUtil.es.js +17 -0
  230. package/dist/utils/prototype/lib/ObjectUtil.es.js +277 -0
  231. package/dist/utils/prototype/lib/PromiseUtil.es.js +18 -0
  232. package/dist/utils/transition-fade/index.es.js +79 -0
  233. package/global.d.ts +33 -0
  234. package/package.json +117 -0
  235. package/web-types.json +902 -0
@@ -0,0 +1,302 @@
1
+ import { ElDialog, ElForm, ElFormItem, ElAutocomplete, ElInput, ElButton, ElCheckbox } from "element-plus/es";
2
+ import { defineComponent, onMounted, watch, nextTick, computed, ref, onUnmounted, createBlock, openBlock, withCtx, createVNode, createElementVNode, toDisplayString, createElementBlock, createCommentVNode, createTextVNode } from "vue";
3
+ import { ElMessage } from "element-plus";
4
+ import { AMapLoader } from "../../utils/amap/index.es.js";
5
+ import { AMapConfig } from "../../config/index.es.js";
6
+ const _hoisted_1 = { class: "autocomplete-subtitle" };
7
+ const _hoisted_2 = { key: 0 };
8
+ const _hoisted_3 = { key: 1 };
9
+ var _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "CoordinatePickup",
11
+ props: {
12
+ modelValue: { type: Boolean },
13
+ lnglat: {},
14
+ address: {},
15
+ regeocodeRequired: { type: Boolean, default: false },
16
+ mapKey: {},
17
+ mapSecret: {},
18
+ modal: { type: Boolean },
19
+ mapStyle: {}
20
+ },
21
+ emits: ["change", "update:modelValue", "update:lnglat", "update:address", "open"],
22
+ setup(__props, { emit: __emit }) {
23
+ const props = __props;
24
+ const emits = __emit;
25
+ onMounted(() => {
26
+ if (props.modelValue) {
27
+ loadAMap();
28
+ }
29
+ });
30
+ const mapKey = props.mapKey || AMapConfig.mapKey;
31
+ const mapSecret = props.mapSecret || AMapConfig.mapSecret;
32
+ watch(() => props.modelValue, (nv) => {
33
+ if (nv && !map) {
34
+ nextTick(() => {
35
+ loadAMap();
36
+ });
37
+ } else {
38
+ placeSearch.clear();
39
+ showMarker(props.lnglat, props.address);
40
+ emits("open", map);
41
+ }
42
+ });
43
+ const changeDialogCustomer = computed({
44
+ get() {
45
+ return props.modelValue;
46
+ },
47
+ set(val) {
48
+ emits("update:modelValue", val);
49
+ }
50
+ });
51
+ const searchParam = ref("");
52
+ const pickupForm = ref({
53
+ lnglat: "",
54
+ address: ""
55
+ });
56
+ const submitHandler = async () => {
57
+ if (regeocode && regeocode.lnglat !== pickupForm.value.lnglat) regeocode = null;
58
+ if (props.regeocodeRequired && !regeocode && pickupForm.value.lnglat) {
59
+ await getAddressBylnglat(pickupForm.value.lnglat);
60
+ }
61
+ emits("change", { value: pickupForm.value, regeocode });
62
+ emits("update:lnglat", pickupForm.value.lnglat);
63
+ emits("update:address", pickupForm.value.address);
64
+ emits("update:modelValue", false);
65
+ };
66
+ let AMap = null;
67
+ let map = null;
68
+ const coordinatePickupRef = ref();
69
+ function loadAMap() {
70
+ AMapLoader({
71
+ key: mapKey,
72
+ secret: mapSecret,
73
+ el: coordinatePickupRef.value,
74
+ plugins: ["AMap.PlaceSearch", "AMap.AutoComplete", "AMap.Geocoder"],
75
+ mapStyle: props.mapStyle
76
+ }).then((res) => {
77
+ AMap = res.AMap;
78
+ map = res.map;
79
+ satelliteLayer = new AMap["TileLayer"].Satellite();
80
+ map.on("click", clickHandler);
81
+ autoComplete = new AMap["Autocomplete"]({ city: "全国" });
82
+ placeSearch = new AMap["PlaceSearch"]({ map, city: "全国", autoFitView: true });
83
+ placeSearch.on("markerClick", placeMarkerClick);
84
+ geocoder = new AMap["Geocoder"]();
85
+ showMarker(props.lnglat, props.address);
86
+ emits("open", { map, AMap });
87
+ });
88
+ }
89
+ const clickHandler = async (e) => {
90
+ const { lng, lat } = e.lnglat;
91
+ const lnglat = `${lng},${lat}`;
92
+ const address = await getAddressBylnglat(lnglat);
93
+ showMarker(lnglat, address);
94
+ };
95
+ onUnmounted(function() {
96
+ if (map) {
97
+ map.off("click", clickHandler);
98
+ map.destroy();
99
+ }
100
+ });
101
+ let autoComplete = null;
102
+ const searchComplete = (queryString, cb) => {
103
+ const empty = [];
104
+ if (queryString.length === 0) {
105
+ cb(empty);
106
+ } else {
107
+ autoComplete.search(queryString, function(status, result) {
108
+ if (result.info === "OK") {
109
+ result.tips.unshift({ name: queryString });
110
+ cb(result.tips);
111
+ } else {
112
+ cb(empty);
113
+ }
114
+ });
115
+ }
116
+ };
117
+ function handleSelect(item) {
118
+ if (!item.address || !item.location) {
119
+ placeSearchHandler(item.name);
120
+ } else {
121
+ placeSearch.clear();
122
+ const { lng, lat } = item.location;
123
+ const lnglat = [lng, lat].join(",");
124
+ let address = item.district;
125
+ if (item.district.includes(item.name)) {
126
+ address += item.name;
127
+ }
128
+ showMarker(lnglat, address);
129
+ }
130
+ }
131
+ let placeSearch = null;
132
+ function placeSearchHandler(queryString) {
133
+ placeSearch.search(queryString, function(status, result) {
134
+ if (result.info === "TIP_CITIES") {
135
+ ElMessage.info("条件内结果过多请精确搜索");
136
+ }
137
+ });
138
+ }
139
+ function placeMarkerClick(e) {
140
+ const { lng, lat } = e.data.location;
141
+ pickupForm.value.lnglat = `${lng},${lat}`;
142
+ const data = e.data;
143
+ let _address = data.pname;
144
+ if (data.pname !== data.cityname) {
145
+ _address += data.cityname;
146
+ }
147
+ _address += data.adname + data.name;
148
+ pickupForm.value.address = _address;
149
+ }
150
+ let geocoder = null;
151
+ let regeocode = null;
152
+ function getAddressBylnglat(lnglat) {
153
+ const position = lnglat.split(",");
154
+ return new Promise(function(resolve) {
155
+ geocoder.getAddress(position, function(status, result) {
156
+ if (status === "complete" && result.regeocode) {
157
+ result.regeocode.lnglat = lnglat;
158
+ regeocode = result.regeocode;
159
+ resolve(result.regeocode.formattedAddress);
160
+ } else {
161
+ regeocode = null;
162
+ resolve("");
163
+ }
164
+ });
165
+ });
166
+ }
167
+ let marker = null;
168
+ function showMarker(lnglat, address) {
169
+ if (lnglat) {
170
+ const position = lnglat.split(",");
171
+ if (marker) {
172
+ marker.setPosition(position);
173
+ marker.setTitle(address || "-");
174
+ } else {
175
+ marker = new AMap.Marker({
176
+ map,
177
+ position,
178
+ title: address
179
+ });
180
+ }
181
+ map.setCenter(position);
182
+ pickupForm.value = { lnglat, address };
183
+ }
184
+ }
185
+ let satelliteLayer = null;
186
+ const isSatelliteLayer = ref(false);
187
+ function setSatelliteLayer() {
188
+ if (isSatelliteLayer.value) {
189
+ map.add(satelliteLayer);
190
+ } else {
191
+ map.remove(satelliteLayer);
192
+ }
193
+ }
194
+ return (_ctx, _cache) => {
195
+ const _component_el_autocomplete = ElAutocomplete;
196
+ const _component_el_form_item = ElFormItem;
197
+ const _component_el_input = ElInput;
198
+ const _component_el_button = ElButton;
199
+ const _component_el_checkbox = ElCheckbox;
200
+ const _component_el_form = ElForm;
201
+ const _component_el_dialog = ElDialog;
202
+ return openBlock(), createBlock(_component_el_dialog, {
203
+ modelValue: changeDialogCustomer.value,
204
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => changeDialogCustomer.value = $event),
205
+ title: "坐标拾取",
206
+ "close-on-click-modal": false,
207
+ draggable: "",
208
+ modal: props.modal
209
+ }, {
210
+ default: withCtx(() => [
211
+ createVNode(_component_el_form, {
212
+ class: "coordinate-pickup-form",
213
+ inline: true
214
+ }, {
215
+ default: withCtx(() => [
216
+ createVNode(_component_el_form_item, null, {
217
+ default: withCtx(() => [
218
+ createVNode(_component_el_autocomplete, {
219
+ modelValue: searchParam.value,
220
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchParam.value = $event),
221
+ "fetch-suggestions": searchComplete,
222
+ "value-key": "name",
223
+ placeholder: "请输入搜索内容",
224
+ "popper-class": "coordinate-pickup-autocomplete",
225
+ onSelect: handleSelect
226
+ }, {
227
+ default: withCtx((scope) => [
228
+ createElementVNode("div", null, toDisplayString(scope.item.name), 1),
229
+ createElementVNode("div", _hoisted_1, [
230
+ scope.item.district ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(scope.item.district), 1)) : createCommentVNode("", true),
231
+ scope.item.address && scope.item.address.length > 0 ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(scope.item.address), 1)) : createCommentVNode("", true)
232
+ ])
233
+ ]),
234
+ _: 1
235
+ }, 8, ["modelValue"])
236
+ ]),
237
+ _: 1
238
+ }),
239
+ createVNode(_component_el_form_item, null, {
240
+ default: withCtx(() => [
241
+ createVNode(_component_el_input, {
242
+ modelValue: pickupForm.value.lnglat,
243
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => pickupForm.value.lnglat = $event),
244
+ placeholder: "拾取坐标"
245
+ }, null, 8, ["modelValue"])
246
+ ]),
247
+ _: 1
248
+ }),
249
+ createVNode(_component_el_form_item, null, {
250
+ default: withCtx(() => [
251
+ createVNode(_component_el_input, {
252
+ modelValue: pickupForm.value.address,
253
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => pickupForm.value.address = $event),
254
+ placeholder: "地址",
255
+ style: { "width": "300px" }
256
+ }, null, 8, ["modelValue"])
257
+ ]),
258
+ _: 1
259
+ }),
260
+ createVNode(_component_el_form_item, null, {
261
+ default: withCtx(() => [
262
+ createVNode(_component_el_button, {
263
+ disabled: !pickupForm.value.lnglat,
264
+ type: "primary",
265
+ onClick: submitHandler
266
+ }, {
267
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
268
+ createTextVNode("确认", -1)
269
+ ])]),
270
+ _: 1
271
+ }, 8, ["disabled"])
272
+ ]),
273
+ _: 1
274
+ }),
275
+ createVNode(_component_el_form_item, null, {
276
+ default: withCtx(() => [
277
+ createVNode(_component_el_checkbox, {
278
+ modelValue: isSatelliteLayer.value,
279
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isSatelliteLayer.value = $event),
280
+ label: "卫星图",
281
+ onChange: setSatelliteLayer
282
+ }, null, 8, ["modelValue"])
283
+ ]),
284
+ _: 1
285
+ })
286
+ ]),
287
+ _: 1
288
+ }),
289
+ createElementVNode("div", {
290
+ ref_key: "coordinatePickupRef",
291
+ ref: coordinatePickupRef,
292
+ class: "coordinate-pickup"
293
+ }, null, 512)
294
+ ]),
295
+ _: 1
296
+ }, 8, ["modelValue", "modal"]);
297
+ };
298
+ }
299
+ });
300
+ export {
301
+ _sfc_main as default
302
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./DragDropBox.vue.es2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.es.js";
4
+ var DragDropBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d1a01b58"]]);
5
+ export {
6
+ DragDropBox as default
7
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent, ref, watchEffect, computed, createElementBlock, openBlock, normalizeStyle, unref, renderSlot } from "vue";
2
+ import { ObjectUtil } from "../../utils/prototype/lib/ObjectUtil.es.js";
3
+ var _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "DragDropBox",
5
+ props: {
6
+ top: { default: "0" },
7
+ left: { default: "0" },
8
+ disabled: { type: Boolean, default: false }
9
+ },
10
+ emits: ["update:top", "update:left"],
11
+ setup(__props, { emit: __emit }) {
12
+ const props = __props;
13
+ const emits = __emit;
14
+ let downPoint = null;
15
+ let downRefPoint = null;
16
+ const translate = ref({ x: 0, y: 0 });
17
+ watchEffect(() => {
18
+ if (props.top) translate.value.y = Number(props.top.replace("px", ""));
19
+ if (props.left) translate.value.x = Number(props.left.replace("px", ""));
20
+ });
21
+ const translateStyle = computed(() => {
22
+ return { left: translate.value.x + "px", top: translate.value.y + "px" };
23
+ });
24
+ const mousedown = (e) => {
25
+ if (props.disabled) return;
26
+ downPoint = { x: e.x, y: e.y };
27
+ downRefPoint = ObjectUtil.toJSON(translate.value);
28
+ document.addEventListener("mousemove", mousemove);
29
+ document.addEventListener("mouseup", mouseup);
30
+ };
31
+ const mousemove = (e) => {
32
+ const offsetPoint = {
33
+ x: e.x - downPoint.x,
34
+ y: e.y - downPoint.y
35
+ };
36
+ translate.value.x = downRefPoint.x + offsetPoint.x;
37
+ translate.value.y = downRefPoint.y + offsetPoint.y;
38
+ };
39
+ const mouseup = () => {
40
+ document.removeEventListener("mousemove", mousemove);
41
+ document.removeEventListener("mouseup", mouseup);
42
+ emits("update:top", translate.value.y + "px");
43
+ emits("update:left", translate.value.x + "px");
44
+ };
45
+ return (_ctx, _cache) => {
46
+ return openBlock(), createElementBlock("div", {
47
+ class: "drag-drop-box",
48
+ ondragstart: "return false",
49
+ style: normalizeStyle(unref(translateStyle)),
50
+ onMousedown: mousedown
51
+ }, [
52
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
53
+ ], 36);
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ _sfc_main as default
59
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./DragDropContainer.vue.es2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.es.js";
4
+ var DragDropContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ebe862bb"]]);
5
+ export {
6
+ DragDropContainer as default
7
+ };
@@ -0,0 +1,113 @@
1
+ import { defineComponent, ref, createElementBlock, openBlock, createElementVNode, normalizeStyle, renderSlot } from "vue";
2
+ import { ObjectUtil } from "../../utils/prototype/lib/ObjectUtil.es.js";
3
+ var _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "DragDropContainer",
5
+ props: {
6
+ step: { default: 0.1 },
7
+ scale: { type: Boolean, default: true }
8
+ },
9
+ setup(__props, { expose: __expose }) {
10
+ const props = __props;
11
+ let downPoint = null;
12
+ let downRefPoint = null;
13
+ const translate = ref({ x: 0, y: 0 });
14
+ const _scale = ref(1);
15
+ const mousedown = (e) => {
16
+ downPoint = {
17
+ x: e.x,
18
+ y: e.y
19
+ };
20
+ downRefPoint = ObjectUtil.toJSON(translate.value);
21
+ document.addEventListener("mousemove", mousemove);
22
+ document.addEventListener("mouseup", mouseup);
23
+ };
24
+ const mousemove = (e) => {
25
+ const offsetPoint = {
26
+ x: e.x - downPoint.x,
27
+ y: e.y - downPoint.y
28
+ };
29
+ translate.value.x = downRefPoint.x + offsetPoint.x;
30
+ translate.value.y = downRefPoint.y + offsetPoint.y;
31
+ };
32
+ const mouseup = () => {
33
+ document.removeEventListener("mousemove", mousemove);
34
+ document.removeEventListener("mouseup", mouseup);
35
+ };
36
+ const mouseover = () => {
37
+ if (props.scale) {
38
+ document.addEventListener("mousewheel", mousewheel, { passive: false });
39
+ }
40
+ };
41
+ const mouseout = () => {
42
+ document.removeEventListener("mousewheel", mousewheel);
43
+ };
44
+ const mousewheel = (e) => {
45
+ e.preventDefault();
46
+ if (e.deltaY > 0) {
47
+ if (_scale.value - props.step >= 0) {
48
+ _scale.value = _scale.value - props.step;
49
+ }
50
+ } else {
51
+ _scale.value = _scale.value + props.step;
52
+ }
53
+ };
54
+ const reset = () => {
55
+ translate.value.x = 0;
56
+ translate.value.y = 0;
57
+ _scale.value = 1;
58
+ };
59
+ const dragDropRef = ref();
60
+ const dragDropContentRef = ref();
61
+ const autoSize = () => {
62
+ if (dragDropRef.value && dragDropContentRef.value) {
63
+ const width = dragDropRef.value?.offsetWidth;
64
+ const height = dragDropRef.value?.offsetHeight;
65
+ const cWidth = dragDropContentRef.value?.offsetWidth;
66
+ const cHeight = dragDropContentRef.value?.offsetHeight;
67
+ const hScale = height / cHeight;
68
+ const wScale = width / cWidth;
69
+ _scale.value = hScale * cWidth <= width ? hScale : wScale;
70
+ translate.value.y = -(cHeight - cHeight * hScale) / 2;
71
+ translate.value.x = -(cWidth - cWidth * wScale) / 2;
72
+ }
73
+ };
74
+ function getOption() {
75
+ return {
76
+ translate: translate.value,
77
+ scale: _scale.value
78
+ };
79
+ }
80
+ function setOption(option) {
81
+ translate.value = option.translate;
82
+ _scale.value = option.scale;
83
+ }
84
+ __expose({
85
+ reset,
86
+ autoSize,
87
+ getOption,
88
+ setOption
89
+ });
90
+ return (_ctx, _cache) => {
91
+ return openBlock(), createElementBlock("div", {
92
+ ref_key: "dragDropRef",
93
+ ref: dragDropRef,
94
+ ondragstart: "return false",
95
+ onMousedown: mousedown,
96
+ onMouseout: mouseout,
97
+ onMouseover: mouseover
98
+ }, [
99
+ createElementVNode("div", {
100
+ ref_key: "dragDropContentRef",
101
+ ref: dragDropContentRef,
102
+ class: "drag-drop-content",
103
+ style: normalizeStyle({ transform: `translate(${translate.value.x}px,${translate.value.y}px) scale(${_scale.value})` })
104
+ }, [
105
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
106
+ ], 4)
107
+ ], 544);
108
+ };
109
+ }
110
+ });
111
+ export {
112
+ _sfc_main as default
113
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./EChartsCanvas.vue.es2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.es.js";
4
+ var EChartsCanvas = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ec5e13a9"]]);
5
+ export {
6
+ EChartsCanvas as default
7
+ };
@@ -0,0 +1,73 @@
1
+ import { defineComponent, shallowRef, onMounted, createElementBlock, openBlock, createBlock, createCommentVNode, createElementVNode, normalizeClass } from "vue";
2
+ import * as echarts from "echarts";
3
+ import { EChartsUtil } from "../../utils/echarts/utils/index.es.js";
4
+ import _sfc_main$1 from "../../element-plus/components/empty/Empty.vue.es.js";
5
+ /* empty css */
6
+ import { EcBasicOption } from "../../utils/echarts/modules/coordinate/basic.es.js";
7
+ const _hoisted_1 = { class: "echarts-canvas" };
8
+ var _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "EChartsCanvas",
10
+ props: {
11
+ emptyHook: {},
12
+ resize: { type: Boolean, default: true },
13
+ theme: { default: "auto" },
14
+ option: {}
15
+ },
16
+ setup(__props, { expose: __expose }) {
17
+ const props = __props;
18
+ const chartRef = shallowRef();
19
+ const chartEc = shallowRef();
20
+ onMounted(() => {
21
+ chartEc.value = echarts.init(chartRef.value, getChartTheme());
22
+ if (props.option) {
23
+ const propsOption = props.option;
24
+ if (propsOption instanceof EcBasicOption) {
25
+ propsOption.ec = chartEc.value;
26
+ chartEc.value.setOption(propsOption.valueOf());
27
+ } else {
28
+ chartEc.value.setOption(propsOption);
29
+ }
30
+ }
31
+ if (props.resize) {
32
+ EChartsUtil.addResizeListener(chartEc.value);
33
+ }
34
+ });
35
+ function getChartTheme() {
36
+ let chartTheme = props.theme;
37
+ if (props.theme === "auto") {
38
+ const classList = [...document.documentElement.classList.values()];
39
+ if (classList.includes("dark")) {
40
+ chartTheme = "dark";
41
+ }
42
+ }
43
+ if (chartTheme === "default") chartTheme = void 0;
44
+ return chartTheme;
45
+ }
46
+ function setOption(option) {
47
+ chartEc.value.setOption(option);
48
+ }
49
+ __expose({
50
+ setOption,
51
+ get ec() {
52
+ return chartEc.value;
53
+ }
54
+ });
55
+ return (_ctx, _cache) => {
56
+ return openBlock(), createElementBlock("div", _hoisted_1, [
57
+ props.emptyHook ? (openBlock(), createBlock(_sfc_main$1, {
58
+ key: 0,
59
+ class: "position-absolute wh-100",
60
+ hook: props.emptyHook
61
+ }, null, 8, ["hook"])) : createCommentVNode("", true),
62
+ createElementVNode("div", {
63
+ ref_key: "chartRef",
64
+ ref: chartRef,
65
+ class: normalizeClass(["echarts-canvas__inner", { "is-empty": !props.emptyHook?.isSUCCESS }])
66
+ }, null, 2)
67
+ ]);
68
+ };
69
+ }
70
+ });
71
+ export {
72
+ _sfc_main as default
73
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent, ref, onMounted, onBeforeUnmount, createElementBlock, openBlock, renderSlot } from "vue";
2
+ var _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "InBody",
4
+ setup(__props) {
5
+ const currentDomRef = ref();
6
+ onMounted(function() {
7
+ document.body.append(currentDomRef.value);
8
+ });
9
+ onBeforeUnmount(function() {
10
+ currentDomRef.value.remove();
11
+ });
12
+ return (_ctx, _cache) => {
13
+ return openBlock(), createElementBlock("div", {
14
+ ref_key: "currentDomRef",
15
+ ref: currentDomRef
16
+ }, [
17
+ renderSlot(_ctx.$slots, "default")
18
+ ], 512);
19
+ };
20
+ }
21
+ });
22
+ export {
23
+ _sfc_main as default
24
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./InBody.vue.es.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,26 @@
1
+ import { default as default2 } from "./position-anchor/PositionAnchor.vue.es.js";
2
+ import { default as default3 } from "./progress-ring/ProgressRing.vue.es.js";
3
+ import { default as default4 } from "./adaptive-box/AdaptiveBox.vue.es.js";
4
+ import { default as default5 } from "./coordinate-pickup/CoordinatePickup.vue.es.js";
5
+ import { default as default6 } from "./in-body/InBody.vue.es.js";
6
+ import { default as default7 } from "./drag-drop-box/DragDropBox.vue.es.js";
7
+ import { default as default8 } from "./drag-drop-container/DragDropContainer.vue.es.js";
8
+ import { default as default9 } from "./progress-bar/ProgressBar.vue.es.js";
9
+ import { default as default10 } from "./ys-video/YsVideo.vue.es.js";
10
+ import { default as default11 } from "./show-log/ShowLog.vue.es.js";
11
+ import { default as default12 } from "./echarts-canvas/EChartsCanvas.vue.es.js";
12
+ import { default as default13 } from "./scroll-container/ScrollContainer.vue.es.js";
13
+ export {
14
+ default4 as YkAdaptiveBox,
15
+ default5 as YkCoordinatePickup,
16
+ default7 as YkDragDropBox,
17
+ default8 as YkDragDropContainer,
18
+ default12 as YkEChartsCanvas,
19
+ default6 as YkInBody,
20
+ default2 as YkPositionAnchor,
21
+ default9 as YkProgressBar,
22
+ default3 as YkProgressRing,
23
+ default13 as YkScrollContainer,
24
+ default11 as YkShowLog,
25
+ default10 as YkYsVideo
26
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./PositionAnchor.vue.es2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.es.js";
4
+ var PositionAnchor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b1fd5468"]]);
5
+ export {
6
+ PositionAnchor as default
7
+ };
@@ -0,0 +1,22 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot } from "vue";
2
+ var _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "PositionAnchor",
4
+ props: {
5
+ anchor: { default: "top-left" }
6
+ },
7
+ setup(__props) {
8
+ const props = __props;
9
+ return (_ctx, _cache) => {
10
+ return openBlock(), createElementBlock("div", {
11
+ class: normalizeClass(["position-anchor", ["position-anchor--" + props.anchor]])
12
+ }, [
13
+ createElementVNode("div", null, [
14
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
15
+ ])
16
+ ], 2);
17
+ };
18
+ }
19
+ });
20
+ export {
21
+ _sfc_main as default
22
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./ProgressBar.vue.es2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../_virtual/_plugin-vue_export-helper.es.js";
4
+ var ProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a7a9d9ba"]]);
5
+ export {
6
+ ProgressBar as default
7
+ };