@zhangqingcq/vgce 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
package/dist/vgce.js CHANGED
@@ -631,7 +631,7 @@ const t$q = {
631
631
  val: [
632
632
  {
633
633
  prop: "date",
634
- label: "第一列",
634
+ label: "序号",
635
635
  width: "120px",
636
636
  fixed: !1,
637
637
  sortable: !1,
@@ -639,7 +639,7 @@ const t$q = {
639
639
  },
640
640
  {
641
641
  prop: "name",
642
- label: "第二列",
642
+ label: "名字",
643
643
  width: "120px",
644
644
  fixed: !1,
645
645
  sortable: !1,
@@ -647,7 +647,7 @@ const t$q = {
647
647
  },
648
648
  {
649
649
  prop: "address",
650
- label: "第三列测试",
650
+ label: "年龄",
651
651
  width: "280px",
652
652
  fixed: !1,
653
653
  sortable: !1,
@@ -660,31 +660,31 @@ const t$q = {
660
660
  type: EConfigItemPropsType.JsonEdit,
661
661
  val: [
662
662
  {
663
- date: "2016-05-03",
664
- name: "Tom",
665
- address: "No. 189, Grove St, Los Angeles"
663
+ date: "1",
664
+ name: "Jack",
665
+ address: "34"
666
666
  },
667
667
  {
668
- date: "2016-05-02",
669
- name: "Tom",
670
- address: "No. 189, Grove St, Los Angeles"
668
+ date: "2",
669
+ name: "Marry",
670
+ address: "18"
671
671
  },
672
672
  {
673
- date: "2016-05-04",
674
- name: "Tom",
675
- address: "No. 189, Grove St, Los Angeles"
673
+ date: "3",
674
+ name: "Lee",
675
+ address: "23"
676
676
  },
677
677
  {
678
- date: "2016-05-01",
679
- name: "Tom",
680
- address: "No. 189, Grove St, Los Angeles"
678
+ date: "4",
679
+ name: "Steve",
680
+ address: "31"
681
681
  }
682
682
  ]
683
683
  },
684
684
  width: {
685
685
  title: "宽度",
686
686
  type: EConfigItemPropsType.InputNumber,
687
- val: 500
687
+ val: 350
688
688
  },
689
689
  height: {
690
690
  title: "高度",
@@ -955,24 +955,24 @@ const t$q = {
955
955
  type: EConfigItemPropsType.JsonEdit,
956
956
  val: [
957
957
  {
958
- value: 1048,
959
- name: "办公楼A"
958
+ value: 998,
959
+ name: "20岁以下"
960
960
  },
961
961
  {
962
- value: 735,
963
- name: "办公楼B"
962
+ value: 546,
963
+ name: "20-40岁"
964
964
  },
965
965
  {
966
- value: 580,
967
- name: "保安室"
966
+ value: 354,
967
+ name: "40-60岁"
968
968
  },
969
969
  {
970
- value: 484,
971
- name: "地下车库"
970
+ value: 421,
971
+ name: "60-70岁"
972
972
  },
973
973
  {
974
- value: 300,
975
- name: "食堂"
974
+ value: 607,
975
+ name: "70岁以上"
976
976
  }
977
977
  ]
978
978
  }
@@ -20324,13 +20324,13 @@ const useEditPrivateStore = defineStore("edit-private-store", {
20324
20324
  },
20325
20325
  actions: {
20326
20326
  topUndoBtnClick() {
20327
- if (console.log("撤销"), this.history_now_index < 1)
20327
+ if (this.history_now_index < 1)
20328
20328
  return;
20329
20329
  const i = useGlobalStore();
20330
20330
  this.is_record_history = !1, this.history_now_index -= 1, i.setDoneJson(this.history_doneComponent[this.history_now_index]);
20331
20331
  },
20332
20332
  topRedoBtnClick() {
20333
- if (console.log("重做"), this.history_now_index + 1 == this.history_doneComponent.length)
20333
+ if (this.history_now_index + 1 == this.history_doneComponent.length)
20334
20334
  return;
20335
20335
  const i = useGlobalStore();
20336
20336
  this.is_record_history = !1, this.history_now_index += 1, i.setDoneJson(this.history_doneComponent[this.history_now_index]);
@@ -20921,7 +20921,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-e813974f"), i = i(), popScope
20921
20921
  },
20922
20922
  setup(i) {
20923
20923
  useCssVars((g) => ({
20924
- "5c831aea": unref(c)
20924
+ f075dd6c: unref(c)
20925
20925
  }));
20926
20926
  const r = i, n = useGlobalStore(pinia), o = useConfigStore(pinia), a = useSvgEditLayoutStore(pinia), u = ref(4), c = ref("#ab712e"), d = [
20927
20927
  {
@@ -20973,7 +20973,6 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-e813974f"), i = i(), popScope
20973
20973
  type: EScaleInfoType.BottomRight
20974
20974
  }
20975
20975
  ], f = computed(() => r.itemInfo.config.can_zoom), p = (g, y) => {
20976
- console.log("handMousedown", y);
20977
20976
  const { clientX: b, clientY: A } = y;
20978
20977
  y.stopPropagation(), n.intention = EGlobalStoreIntention.Zoom;
20979
20978
  const w = Math.round(
@@ -21160,7 +21159,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-e813974f"), i = i(), popScope
21160
21159
  ])
21161
21160
  ]));
21162
21161
  }
21163
- }), handlePanel_vue_vue_type_style_index_0_scoped_e6622df8_lang = "", HandlePanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-e6622df8"]]), _hoisted_1$a = ["fill"], _hoisted_2$8 = ["cx", "cy", "r"], _hoisted_3$7 = ["cx", "cy", "r"], _hoisted_4$6 = ["cx", "cy", "r"], _hoisted_5$4 = ["cx", "cy", "r"], _hoisted_6$3 = ["cx", "cy", "r"], _hoisted_7$3 = ["cx", "cy", "r"], _hoisted_8$3 = ["cx", "cy", "r"], _hoisted_9$2 = ["cx", "cy", "r"], _sfc_main$A = /* @__PURE__ */ defineComponent({
21162
+ }), handlePanel_vue_vue_type_style_index_0_scoped_521db5d2_lang = "", HandlePanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$B, [["__scopeId", "data-v-521db5d2"]]), _hoisted_1$a = ["fill"], _hoisted_2$8 = ["cx", "cy", "r"], _hoisted_3$7 = ["cx", "cy", "r"], _hoisted_4$6 = ["cx", "cy", "r"], _hoisted_5$4 = ["cx", "cy", "r"], _hoisted_6$3 = ["cx", "cy", "r"], _hoisted_7$3 = ["cx", "cy", "r"], _hoisted_8$3 = ["cx", "cy", "r"], _hoisted_9$2 = ["cx", "cy", "r"], _sfc_main$A = /* @__PURE__ */ defineComponent({
21164
21163
  __name: "connection-panel",
21165
21164
  props: {
21166
21165
  itemInfo: {}
@@ -21195,7 +21194,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-e813974f"), i = i(), popScope
21195
21194
  })));
21196
21195
  }, S = (T, x) => {
21197
21196
  var L;
21198
- c.intention === EGlobalStoreIntention.None ? (createLine(T, x, r.itemInfo), c.handle_svg_info && (c.handle_svg_info.info.props.point_position.val.length !== 1 ? c.handle_svg_info.info.props.point_position.val.push({
21197
+ T.stopPropagation(), c.intention === EGlobalStoreIntention.None ? (createLine(T, x, r.itemInfo), c.handle_svg_info && (c.handle_svg_info.info.props.point_position.val.length !== 1 ? c.handle_svg_info.info.props.point_position.val.push({
21199
21198
  x: c.mouse_info.new_position_x - c.mouse_info.position_x - d.center_offset.x,
21200
21199
  y: c.mouse_info.new_position_y - c.mouse_info.position_y - d.center_offset.y
21201
21200
  }) : c.handle_svg_info.info.props.point_position.val.push({
@@ -21294,7 +21293,7 @@ const _withScopeId$2 = (i) => (pushScopeId("data-v-e813974f"), i = i(), popScope
21294
21293
  ], 32)
21295
21294
  ], 8, _hoisted_1$a));
21296
21295
  }
21297
- }), connectionPanel_vue_vue_type_style_index_0_scoped_fb729c7a_lang = "", ConnectionPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-fb729c7a"]]), _hoisted_1$9 = ["d", "stroke-width"], _hoisted_2$7 = ["d", "stroke-width"], _hoisted_3$6 = ["id", "d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_4$5 = ["from", "to", "dur", "repeatCount"], _hoisted_5$3 = ["d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_6$2 = ["from", "to", "dur", "repeatCount"], _hoisted_7$2 = ["r", "fill"], _hoisted_8$2 = ["path", "dur", "repeatCount"], _hoisted_9$1 = ["cx", "cy", "r", "stroke-width"], _hoisted_10$1 = ["cx", "cy", "r", "stroke", "onMousedown"], _sfc_main$z = /* @__PURE__ */ defineComponent({
21296
+ }), connectionPanel_vue_vue_type_style_index_0_scoped_065d9ea1_lang = "", ConnectionPanel = /* @__PURE__ */ _export_sfc$1(_sfc_main$A, [["__scopeId", "data-v-065d9ea1"]]), _hoisted_1$9 = ["d", "stroke-width"], _hoisted_2$7 = ["d", "stroke-width"], _hoisted_3$6 = ["id", "d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_4$5 = ["from", "to", "dur", "repeatCount"], _hoisted_5$3 = ["d", "stroke", "stroke-width", "stroke-dasharray"], _hoisted_6$2 = ["from", "to", "dur", "repeatCount"], _hoisted_7$2 = ["r", "fill"], _hoisted_8$2 = ["path", "dur", "repeatCount"], _hoisted_9$1 = ["cx", "cy", "r", "stroke-width"], _hoisted_10$1 = ["cx", "cy", "r", "stroke", "onMousedown"], _sfc_main$z = /* @__PURE__ */ defineComponent({
21298
21297
  __name: "connection-line",
21299
21298
  props: {
21300
21299
  itemInfo: {},