@vunk/form 1.1.29 → 1.1.31

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.
@@ -1,35 +1,37 @@
1
1
 
2
- .vkf-esri-input-geojson__map{
2
+ .vkf-esri-input-geojson__map {
3
3
  height: 350px;
4
4
  }
5
5
 
6
- .vkf-esri-input-geojson-dialog .el-dialog.is-fullscreen{
6
+ .vkf-esri-input-geojson-dialog .el-dialog.is-fullscreen {
7
7
  height: 100%;
8
8
  }
9
- .vkf-esri-input-geojson-dialog .el-dialog{
9
+
10
+ .vkf-esri-input-geojson-dialog .el-dialog {
10
11
  display: flex;
11
12
  flex-direction: column;
12
13
  min-height: 50%;
13
14
  }
14
- .vkf-esri-input-geojson-dialog .el-dialog__body{
15
+
16
+ .vkf-esri-input-geojson-dialog .el-dialog__body {
15
17
  display: flex;
16
18
  flex-direction: column;
17
19
  flex: 1;
18
20
  overflow: hidden;
19
21
  padding: 0;
20
22
  }
21
- .vkf-esri-input-geojson-dialog__map{
23
+
24
+ .vkf-esri-input-geojson-dialog__map {
22
25
  flex: 1;
23
26
  display: flex;
24
27
  flex-direction: column;
25
28
  overflow: hidden;
26
29
  }
27
30
 
28
- .vkf-esri-input-geojson-dialog__map > .va-map-view{
31
+ .vkf-esri-input-geojson-dialog__map>.va-map-view {
29
32
  flex: 1;
30
33
  }
31
34
 
32
-
33
35
  .el-button.vkf-esri-input-geojson__upload{
34
36
  border-color: transparent;
35
37
  background-color: transparent;
@@ -1,4 +1,4 @@
1
- import { openBlock, createElementBlock, createElementVNode, defineComponent, resolveComponent, createBlock, withCtx, createVNode, createCommentVNode, provide, renderSlot, shallowRef, computed, ref, watch, onMounted, nextTick, mergeProps, toHandlers, withDirectives, vShow } from 'vue';
1
+ import { openBlock, createElementBlock, createElementVNode, defineComponent, resolveComponent, createBlock, withCtx, createVNode, createCommentVNode, provide, renderSlot, ref, shallowRef, computed, watch, onMounted, nextTick, mergeProps, toHandlers, withDirectives, vShow } from 'vue';
2
2
  import { _VkfInputCtx, VkfInput } from '@vunk/form/components/input';
3
3
  import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
4
4
  import { ElButton, ElIcon, ElButtonGroup, ElUpload, ElMessage } from 'element-plus';
@@ -128,7 +128,9 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
128
128
  bindPropsFactory(props);
129
129
  const emits = __spreadProps(__spreadValues({}, _VkfInputCtx.emits), {
130
130
  "update:modelValue": (e) => e,
131
- "update:flying": null
131
+ "update:flying": null,
132
+ "appendFly": null,
133
+ appendEdit: null
132
134
  });
133
135
  onEmitsFactory(emits);
134
136
 
@@ -335,8 +337,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
335
337
  }, 8, ["on-change", "disabled", "onClick"])) : createCommentVNode("v-if", true),
336
338
  _ctx.dialog ? (openBlock(), createBlock(_component_ElButton, {
337
339
  key: 1,
338
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("edit")),
339
- disabled: _ctx.disabled
340
+ disabled: _ctx.disabled,
341
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("edit"))
340
342
  }, {
341
343
  default: withCtx(() => [
342
344
  createVNode(_component_ElIcon, { color: "var(--el-color-primary)" }, {
@@ -374,7 +376,8 @@ const _sfc_main$1 = defineComponent({
374
376
  },
375
377
  props: {
376
378
  view: {
377
- type: Object
379
+ type: Object,
380
+ default: void 0
378
381
  }
379
382
  },
380
383
  setup(props) {
@@ -1341,14 +1344,15 @@ var _sfc_main = defineComponent({
1341
1344
  DocumentChecked: document_checked_default,
1342
1345
  VaGraphicsLayer
1343
1346
  },
1344
- emits,
1345
1347
  props,
1348
+ emits,
1346
1349
  setup(props2, {
1347
1350
  emit
1348
1351
  }) {
1349
1352
  const inputBindProps = _VkfInputCtx.createBindProps(props2, ["inputSlots", "readonly", "modelValue"]);
1350
1353
  const inputOnEmits = _VkfInputCtx.createOnEmits(emit, ["update:modelValue"]);
1351
1354
  const readonly = useComputedReadonly(props2);
1355
+ const sketchIf = ref(!props2.view);
1352
1356
  const sketchRef = shallowRef();
1353
1357
  const shetchPanel = computed(() => {
1354
1358
  var _a;
@@ -1356,15 +1360,18 @@ var _sfc_main = defineComponent({
1356
1360
  return container == null ? void 0 : container.querySelector(".esri-sketch__panel");
1357
1361
  });
1358
1362
  const viewDef = new Deferred();
1363
+ const layerRef = shallowRef();
1359
1364
  const sketchLoad = async (e) => {
1360
1365
  await e.sketch.when();
1361
1366
  sketchRef.value = e.sketch;
1362
1367
  viewDef.resolve(sketchRef.value.view);
1363
1368
  };
1364
1369
  const layerLoad = async ({
1365
- view
1370
+ view,
1371
+ layer
1366
1372
  }) => {
1367
1373
  viewDef.resolve(view);
1374
+ layerRef.value = layer;
1368
1375
  };
1369
1376
  const availableCreatureTools = computed(() => {
1370
1377
  if (Array.isArray(props2.editTypes)) {
@@ -1400,6 +1407,9 @@ var _sfc_main = defineComponent({
1400
1407
  mapTo.value = normalMapRef.value;
1401
1408
  });
1402
1409
  const dialogShow = ref(false);
1410
+ const setDialogShow = (v) => {
1411
+ dialogShow.value = v;
1412
+ };
1403
1413
  const dialogOnOpen = async () => {
1404
1414
  mapTo.value = dialogMapRef.value;
1405
1415
  };
@@ -1413,14 +1423,23 @@ var _sfc_main = defineComponent({
1413
1423
  type: "success"
1414
1424
  });
1415
1425
  dialogShow.value = false;
1426
+ if (props2.view) {
1427
+ sketchIf.value = false;
1428
+ }
1416
1429
  };
1417
1430
  const append = () => createVNode(AppendVue, {
1418
- "dialog": props2.dialogEdit,
1431
+ "dialog": !readonly.value && props2.dialogEdit,
1419
1432
  "upload": !readonly.value,
1420
1433
  "disabled": props2.disabled,
1421
1434
  "onUpload": onUpload,
1422
1435
  "onEdit": onEdit,
1423
- "onFly": fly
1436
+ "onFly": () => {
1437
+ if (!props2.showMap && !props2.view) {
1438
+ dialogShow.value = true;
1439
+ }
1440
+ emit("appendFly");
1441
+ fly();
1442
+ }
1424
1443
  }, null);
1425
1444
  async function onUpload(e) {
1426
1445
  if (!e.raw)
@@ -1432,7 +1451,12 @@ var _sfc_main = defineComponent({
1432
1451
  }).then(fly);
1433
1452
  }
1434
1453
  function onEdit() {
1435
- dialogShow.value = true;
1454
+ if (!props2.view) {
1455
+ dialogShow.value = true;
1456
+ } else {
1457
+ sketchIf.value = true;
1458
+ }
1459
+ emit("appendEdit");
1436
1460
  }
1437
1461
  function u() {
1438
1462
  sketchValueUpdating.value = true;
@@ -1489,6 +1513,7 @@ var _sfc_main = defineComponent({
1489
1513
  sketchLoad,
1490
1514
  shetchPanel,
1491
1515
  dialogShow,
1516
+ setDialogShow,
1492
1517
  normalMapRef,
1493
1518
  dialogMapRef,
1494
1519
  dialogOnOpen,
@@ -1496,15 +1521,18 @@ var _sfc_main = defineComponent({
1496
1521
  mapTo,
1497
1522
  doSave,
1498
1523
  readonly,
1499
- layerLoad
1524
+ layerLoad,
1525
+ sketchIf,
1526
+ fly,
1527
+ layerRef
1500
1528
  };
1501
1529
  }
1502
1530
  });
1503
1531
 
1504
1532
  const _hoisted_1 = { class: "vkf-form-item" };
1505
1533
  const _hoisted_2 = {
1506
- class: "vkf-esri-input-geojson__map",
1507
- ref: "normalMapRef"
1534
+ ref: "normalMapRef",
1535
+ class: "vkf-esri-input-geojson__map"
1508
1536
  };
1509
1537
  const _hoisted_3 = {
1510
1538
  ref: "dialogMapRef",
@@ -1513,67 +1541,79 @@ const _hoisted_3 = {
1513
1541
 
1514
1542
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1515
1543
  const _component_VkfInput = resolveComponent("VkfInput");
1516
- const _component_VaGraphicsLayer = resolveComponent("VaGraphicsLayer");
1517
1544
  const _component_DocumentChecked = resolveComponent("DocumentChecked");
1518
1545
  const _component_ElIcon = resolveComponent("ElIcon");
1519
1546
  const _component_VkAsyncTeleport = resolveComponent("VkAsyncTeleport");
1520
1547
  const _component_VaSketch = resolveComponent("VaSketch");
1548
+ const _component_VaGraphicsLayer = resolveComponent("VaGraphicsLayer");
1521
1549
  const _component_ViewerVue = resolveComponent("ViewerVue");
1522
1550
  const _component_ElDialog = resolveComponent("ElDialog");
1523
1551
 
1524
1552
  return (openBlock(), createElementBlock("div", _hoisted_1, [
1525
- createVNode(_component_VkfInput, mergeProps({
1526
- readonly: true,
1527
- modelValue: JSON.stringify(_ctx.modelValue)
1528
- }, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits), {
1529
- inputSlots: {
1553
+ renderSlot(_ctx.$slots, "custom", {
1554
+ modelValue: _ctx.modelValue,
1555
+ fly: _ctx.fly,
1556
+ setDialogShow: _ctx.setDialogShow,
1557
+ layer: _ctx.layerRef,
1558
+ showMap: _ctx.showMap
1559
+ }, () => [
1560
+ createVNode(_component_VkfInput, mergeProps({
1561
+ readonly: true,
1562
+ "model-value": JSON.stringify(_ctx.modelValue)
1563
+ }, _ctx.inputBindProps, {
1564
+ "input-slots": {
1530
1565
  append: _ctx.append
1531
1566
  }
1532
- }), null, 16 /* FULL_PROPS */, ["modelValue", "inputSlots"]),
1567
+ }, toHandlers(_ctx.inputOnEmits)), null, 16 /* FULL_PROPS */, ["model-value", "input-slots"])
1568
+ ]),
1533
1569
  createVNode(_component_VkAsyncTeleport, { to: _ctx.mapTo }, {
1534
1570
  default: withCtx(() => [
1535
1571
  createVNode(_component_ViewerVue, { view: _ctx.view }, {
1536
1572
  default: withCtx(() => [
1537
- (_ctx.readonly)
1538
- ? (openBlock(), createBlock(_component_VaGraphicsLayer, {
1539
- key: 0,
1540
- graphics: _ctx.sketchValue,
1541
- onLoad: _ctx.layerLoad
1542
- }, null, 8 /* PROPS */, ["graphics", "onLoad"]))
1543
- : (openBlock(), createBlock(_component_VaSketch, {
1544
- key: 1,
1545
- viewModelActiveFillSymbol: _ctx.viewModelActiveFillSymbol,
1546
- viewModelActiveLineSymbol: _ctx.viewModelActiveLineSymbol,
1547
- viewModelActivePointSymbol: _ctx.viewModelActivePointSymbol,
1548
- multiple: _ctx.multiple,
1549
- availableCreatureTools: _ctx.availableCreatureTools,
1550
- modelValue: _ctx.sketchValue,
1551
- "onUpdate:modelValue": _ctx.handleUpdateSketchValue,
1552
- onLoad: _ctx.sketchLoad
1553
- }, {
1554
- default: withCtx(() => [
1555
- (!_ctx.skipSave && _ctx.shetchPanel)
1556
- ? (openBlock(), createBlock(_component_VkAsyncTeleport, {
1557
- key: 0,
1558
- to: _ctx.shetchPanel
1559
- }, {
1560
- default: withCtx(() => [
1561
- createVNode(_component_ElIcon, {
1562
- class: "esri-sketch-ui-save esri-widget--button",
1563
- onClick: _ctx.doSave
1573
+ createVNode(_component_VaGraphicsLayer, {
1574
+ graphics: _ctx.sketchValue,
1575
+ onLoad: _ctx.layerLoad
1576
+ }, {
1577
+ default: withCtx(() => [
1578
+ (!(_ctx.readonly || !_ctx.sketchIf))
1579
+ ? (openBlock(), createBlock(_component_VaSketch, {
1580
+ key: 0,
1581
+ "view-model-active-fill-symbol": _ctx.viewModelActiveFillSymbol,
1582
+ "view-model-active-line-symbol": _ctx.viewModelActiveLineSymbol,
1583
+ "view-model-active-point-symbol": _ctx.viewModelActivePointSymbol,
1584
+ multiple: _ctx.multiple,
1585
+ "available-creature-tools": _ctx.availableCreatureTools,
1586
+ "model-value": _ctx.sketchValue,
1587
+ "onUpdate:modelValue": _ctx.handleUpdateSketchValue,
1588
+ onLoad: _ctx.sketchLoad
1589
+ }, {
1590
+ default: withCtx(() => [
1591
+ (!_ctx.skipSave && _ctx.shetchPanel)
1592
+ ? (openBlock(), createBlock(_component_VkAsyncTeleport, {
1593
+ key: 0,
1594
+ to: _ctx.shetchPanel
1564
1595
  }, {
1565
1596
  default: withCtx(() => [
1566
- createVNode(_component_DocumentChecked)
1597
+ createVNode(_component_ElIcon, {
1598
+ class: "esri-sketch-ui-save esri-widget--button",
1599
+ onClick: _ctx.doSave
1600
+ }, {
1601
+ default: withCtx(() => [
1602
+ createVNode(_component_DocumentChecked)
1603
+ ]),
1604
+ _: 1 /* STABLE */
1605
+ }, 8 /* PROPS */, ["onClick"])
1567
1606
  ]),
1568
1607
  _: 1 /* STABLE */
1569
- }, 8 /* PROPS */, ["onClick"])
1570
- ]),
1571
- _: 1 /* STABLE */
1572
- }, 8 /* PROPS */, ["to"]))
1573
- : createCommentVNode("v-if", true)
1574
- ]),
1575
- _: 1 /* STABLE */
1576
- }, 8 /* PROPS */, ["viewModelActiveFillSymbol", "viewModelActiveLineSymbol", "viewModelActivePointSymbol", "multiple", "availableCreatureTools", "modelValue", "onUpdate:modelValue", "onLoad"]))
1608
+ }, 8 /* PROPS */, ["to"]))
1609
+ : createCommentVNode("v-if", true)
1610
+ ]),
1611
+ _: 1 /* STABLE */
1612
+ }, 8 /* PROPS */, ["view-model-active-fill-symbol", "view-model-active-line-symbol", "view-model-active-point-symbol", "multiple", "available-creature-tools", "model-value", "onUpdate:modelValue", "onLoad"]))
1613
+ : createCommentVNode("v-if", true)
1614
+ ]),
1615
+ _: 1 /* STABLE */
1616
+ }, 8 /* PROPS */, ["graphics", "onLoad"])
1577
1617
  ]),
1578
1618
  _: 1 /* STABLE */
1579
1619
  }, 8 /* PROPS */, ["view"])
@@ -1588,12 +1628,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1588
1628
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.dialogShow) = $event)),
1589
1629
  title: _ctx.dialogEditTitle,
1590
1630
  fullscreen: _ctx.dialogEditFullscreen,
1591
- modalClass: "vkf-esri-input-geojson-dialog",
1592
- appendToBody: true,
1631
+ "modal-class": "vkf-esri-input-geojson-dialog",
1632
+ "append-to-body": true,
1633
+ "close-on-click-modal": false,
1634
+ draggable: true,
1593
1635
  onOpen: _ctx.dialogOnOpen,
1594
- onClose: _ctx.dialogOnClose,
1595
- closeOnClickModal: false,
1596
- draggable: true
1636
+ onClose: _ctx.dialogOnClose
1597
1637
  }, {
1598
1638
  default: withCtx(() => [
1599
1639
  createElementVNode("div", _hoisted_3, null, 512 /* NEED_PATCH */)
@@ -193,6 +193,11 @@ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObj
193
193
  export declare const emits: {
194
194
  'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, import("geojson").GeoJsonProperties>;
195
195
  'update:flying': null;
196
+ /**
197
+ * 点击地图定位按钮
198
+ */
199
+ appendFly: null;
200
+ appendEdit: null;
196
201
  input: (value: string) => boolean;
197
202
  change: (value: string) => boolean;
198
203
  focus: (evt: FocusEvent) => boolean;
@@ -205,9 +210,11 @@ export declare const emits: {
205
210
  compositionupdate: (evt: CompositionEvent) => boolean;
206
211
  compositionend: (evt: CompositionEvent) => boolean;
207
212
  };
208
- export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change" | "focus" | "blur" | "clear" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"input", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"clear", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"keydown", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> | Exclude<"update:flying", KE> : "update:modelValue" | "input" | "change" | "focus" | "blur" | "clear" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying"]: {
213
+ export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change" | "focus" | "blur" | "clear" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying" | "appendFly" | "appendEdit")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"input", KE> | Exclude<"change", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"clear", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"keydown", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> | Exclude<"update:flying", KE> | Exclude<"appendFly", KE> | Exclude<"appendEdit", KE> : "update:modelValue" | "input" | "change" | "focus" | "blur" | "clear" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying" | "appendFly" | "appendEdit"]: {
209
214
  'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
210
215
  'update:flying': (...e: import("@vunk/core").RestParameters<T2>) => void;
216
+ appendFly: (...e: import("@vunk/core").RestParameters<T2>) => void;
217
+ appendEdit: (...e: import("@vunk/core").RestParameters<T2>) => void;
211
218
  input: (...e: import("@vunk/core").RestParameters<T2>) => void;
212
219
  change: (...e: import("@vunk/core").RestParameters<T2>) => void;
213
220
  focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
@@ -113,7 +113,9 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
113
113
  const createBindProps = bindPropsFactory(props);
114
114
  const emits = __spreadProps(__spreadValues({}, _VkfInputCtx.emits), {
115
115
  "update:modelValue": (e) => e,
116
- "update:flying": null
116
+ "update:flying": null,
117
+ "appendFly": null,
118
+ appendEdit: null
117
119
  });
118
120
  const createOnEmits = onEmitsFactory(emits);
119
121
 
@@ -250,6 +250,7 @@ declare const _default: import("vue").DefineComponent<{
250
250
  sketchLoad: __VaSketch.OnLoad;
251
251
  shetchPanel: import("vue").ComputedRef<Element | null>;
252
252
  dialogShow: Ref<boolean>;
253
+ setDialogShow: (v: boolean) => void;
253
254
  normalMapRef: Ref<HTMLDivElement>;
254
255
  dialogMapRef: Ref<HTMLDivElement>;
255
256
  dialogOnOpen: () => Promise<void>;
@@ -258,9 +259,14 @@ declare const _default: import("vue").DefineComponent<{
258
259
  doSave: () => void;
259
260
  readonly: import("vue").ComputedRef<boolean>;
260
261
  layerLoad: __VaGraphicsLayer.OnLoad;
262
+ sketchIf: Ref<boolean>;
263
+ fly: () => Promise<void>;
264
+ layerRef: Ref<__esri.GraphicsLayer>;
261
265
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
262
266
  'update:modelValue': (e: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>) => import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
263
267
  'update:flying': null;
268
+ appendFly: null;
269
+ appendEdit: null;
264
270
  input: (value: string) => boolean;
265
271
  change: (value: string) => boolean;
266
272
  focus: (evt: FocusEvent) => boolean;
@@ -473,6 +479,8 @@ declare const _default: import("vue").DefineComponent<{
473
479
  onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
474
480
  onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
475
481
  "onUpdate:flying"?: ((...args: any[]) => any) | undefined;
482
+ onAppendFly?: ((...args: any[]) => any) | undefined;
483
+ onAppendEdit?: ((...args: any[]) => any) | undefined;
476
484
  }, {
477
485
  required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
478
486
  type: string;
@@ -1,8 +1,10 @@
1
1
  import { __VaSketch } from '@vuesri/core';
2
- import { Media, VueComponentPropsType } from '@vunk/core';
2
+ import { AnyFunc, Media, VueComponentPropsType } from '@vunk/core';
3
3
  import { EDIT_TYPE } from './const';
4
4
  import type { VkfEsriInputGeojson } from '@vunk/form/components/esri-input-geojson';
5
5
  import { BasicSource } from '@vunk/form/shared';
6
+ import type { FeatureCollection } from 'geojson';
7
+ import GraphicsLayer from '@arcgis/core/layers/GraphicsLayer';
6
8
  export interface EditTypeMedia extends Media {
7
9
  value: EDIT_TYPE;
8
10
  availableCreatureTools: __VaSketch.AvailableCreatureTool[];
@@ -11,3 +13,10 @@ export interface Source<P extends string = string> extends VueComponentPropsType
11
13
  prop?: P;
12
14
  templateType: 'VkfEsriInputGeojson';
13
15
  }
16
+ export interface CustomSlotProps {
17
+ setDialogShow: (show: boolean) => void;
18
+ fly: AnyFunc;
19
+ modelValue: FeatureCollection<any, any>;
20
+ layer: GraphicsLayer;
21
+ showMap: boolean;
22
+ }
@@ -3,10 +3,14 @@ import MapView from '@arcgis/core/views/MapView';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  view: {
5
5
  type: PropType<MapView>;
6
+ default: undefined;
6
7
  };
7
8
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
9
  view: {
9
10
  type: PropType<MapView>;
11
+ default: undefined;
10
12
  };
11
- }>>, {}>;
13
+ }>>, {
14
+ view: MapView;
15
+ }>;
12
16
  export default _default;
package/index.css CHANGED
@@ -49,37 +49,39 @@
49
49
  }
50
50
 
51
51
 
52
- .vkf-esri-input-geojson__map{
52
+ .vkf-esri-input-geojson__map {
53
53
  height: 350px;
54
54
  }
55
55
 
56
- .vkf-esri-input-geojson-dialog .el-dialog.is-fullscreen{
56
+ .vkf-esri-input-geojson-dialog .el-dialog.is-fullscreen {
57
57
  height: 100%;
58
58
  }
59
- .vkf-esri-input-geojson-dialog .el-dialog{
59
+
60
+ .vkf-esri-input-geojson-dialog .el-dialog {
60
61
  display: flex;
61
62
  flex-direction: column;
62
63
  min-height: 50%;
63
64
  }
64
- .vkf-esri-input-geojson-dialog .el-dialog__body{
65
+
66
+ .vkf-esri-input-geojson-dialog .el-dialog__body {
65
67
  display: flex;
66
68
  flex-direction: column;
67
69
  flex: 1;
68
70
  overflow: hidden;
69
71
  padding: 0;
70
72
  }
71
- .vkf-esri-input-geojson-dialog__map{
73
+
74
+ .vkf-esri-input-geojson-dialog__map {
72
75
  flex: 1;
73
76
  display: flex;
74
77
  flex-direction: column;
75
78
  overflow: hidden;
76
79
  }
77
80
 
78
- .vkf-esri-input-geojson-dialog__map > .va-map-view{
81
+ .vkf-esri-input-geojson-dialog__map>.va-map-view {
79
82
  flex: 1;
80
83
  }
81
84
 
82
-
83
85
  .el-button.vkf-esri-input-geojson__upload{
84
86
  border-color: transparent;
85
87
  background-color: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "1.1.29",
3
+ "version": "1.1.31",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {