matrix_components 2.0.375 → 2.0.377

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.
@@ -54753,13 +54753,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54753
54753
  },
54754
54754
  setup(__props, { expose: __expose }) {
54755
54755
  useCssVars((_ctx) => ({
54756
- "a06b9006": customBackgroundColor.value,
54757
- "v39443647": gapV.value,
54758
- "v604ac0a6": superLabelWidth.value,
54759
- "v4f4da12a": subLabelWidth.value,
54760
- "v0a0bd524": height.value,
54761
- "v6080fff9": labelWidth.value,
54762
- "v6b17198a": _ctx.$props.labelColor
54756
+ "v0e1b23a4": customBackgroundColor.value,
54757
+ "v4ce19814": gapV.value,
54758
+ "v609faf97": superLabelWidth.value,
54759
+ "v7e4f269c": subLabelWidth.value,
54760
+ "v97073946": height.value,
54761
+ "v59868330": labelWidth.value,
54762
+ "ac27df8a": _ctx.$props.labelColor
54763
54763
  }));
54764
54764
  const props = __props;
54765
54765
  const initialValues = ref$1(/* @__PURE__ */ new Map());
@@ -54882,10 +54882,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54882
54882
  return false;
54883
54883
  }
54884
54884
  }
54885
- function isUploadComponent(rowInfo) {
54886
- var _a3;
54887
- return ((((_a3 = rowInfo == null ? void 0 : rowInfo.component) == null ? void 0 : _a3.name) || "") + "").toLowerCase().indexOf("upload") !== -1;
54888
- }
54889
54885
  function getComponentParams(rowInfo) {
54890
54886
  const params = { ...rowInfo.params };
54891
54887
  delete params["v-length"];
@@ -55309,7 +55305,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55309
55305
  createVNode(_component_el_tooltip, {
55310
55306
  "hide-after": 0,
55311
55307
  "show-after": 500,
55312
- disabled: !(__props.readOnly && typeof rowInfo.value === "string"),
55308
+ disabled: !(__props.readOnly && !rowInfo.readOnlyUseComponent && typeof rowInfo.value === "string"),
55313
55309
  content: rowInfo.value || "",
55314
55310
  placement: "top-start",
55315
55311
  "popper-class": "detail-view-tooltip"
@@ -55317,7 +55313,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55317
55313
  default: withCtx(() => {
55318
55314
  var _a4;
55319
55315
  return [
55320
- !rowInfo.component || __props.readOnly && (!isUploadComponent(rowInfo) || checkIsElempentComponent(rowInfo) || !rowInfo.value) ? (openBlock(), createElementBlock("span", {
55316
+ !rowInfo.component || __props.readOnly && /* !isUploadComponent(rowInfo) || */
55317
+ (!rowInfo.readOnlyUseComponent || !rowInfo.value) ? (openBlock(), createElementBlock("span", {
55321
55318
  key: 0,
55322
55319
  class: normalizeClass([
55323
55320
  "detial-row-item-value",
@@ -55334,7 +55331,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55334
55331
  createVNode(_component_el_form_item, {
55335
55332
  class: normalizeClass([
55336
55333
  "component-form-item",
55337
- __props.readOnly && isUploadComponent(rowInfo) ? "hidden" : ""
55334
+ __props.readOnly && /* isUploadComponent(rowInfo) */
55335
+ rowInfo.readOnlyUseComponent ? "hidden" : ""
55338
55336
  ]),
55339
55337
  label: rowInfo.label,
55340
55338
  prop: `${props.formPropKey}.${index2}.${_index}.value`,
@@ -55454,7 +55452,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55454
55452
  };
55455
55453
  }
55456
55454
  });
55457
- const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a54111dd"]]);
55455
+ const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-bc0a65f5"]]);
55458
55456
  const _hoisted_1$1 = { class: "title-image-view" };
55459
55457
  const _hoisted_2 = { class: "content-model-title" };
55460
55458
  const _hoisted_3 = { class: "title-text" };
@@ -73425,6 +73423,16 @@ const DownFill = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7
73425
73423
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73426
73424
  __name: "index",
73427
73425
  props: {
73426
+ // 是否对x轴数据进行排序,默认true
73427
+ isSortX: {
73428
+ type: Boolean,
73429
+ default: true
73430
+ },
73431
+ fullData: {
73432
+ type: Object,
73433
+ default: () => {
73434
+ }
73435
+ },
73428
73436
  data: {
73429
73437
  type: Object,
73430
73438
  default: () => {
@@ -73463,6 +73471,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73463
73471
  var _a3, _b, _c2, _d, _e, _f, _g, _h2, _i, _j, _k, _l2, _m2, _n2, _o2, _p, _q, _r2, _s2, _t2, _u2, _v, _w, _x, _y, _z, _A, _B;
73464
73472
  const _className = `key_${parseInt(Math.random() * 1e6)}`;
73465
73473
  const props = __props;
73474
+ const data = ref$1(props.data);
73475
+ const waterLevel = ref$1(props.waterLevel);
73466
73476
  const noData = ref$1(false);
73467
73477
  const stage = ref$1();
73468
73478
  const stoneYOffset = ((_a3 = props.config) == null ? void 0 : _a3.stoneYOffset) || 20;
@@ -73685,17 +73695,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73685
73695
  });
73686
73696
  async function initChart() {
73687
73697
  var _a4, _b2, _c3, _d2, _e2, _f2, _g2, _h4, _i2, _j2, _k2, _l3, _m3, _n3, _o3;
73688
- yOffset.value = ((_a4 = props.data) == null ? void 0 : _a4.yStart) ? Number(props.data.yStart) : 0;
73698
+ yOffset.value = ((_a4 = data.value) == null ? void 0 : _a4.yStart) ? Number(data.value.yStart) : 0;
73689
73699
  const dam_x_points = [];
73690
73700
  const dam_y_points = [];
73691
73701
  const xPoints = [];
73692
73702
  const yPoints = [];
73693
73703
  const _w2 = stageSize.value.width;
73694
73704
  const _h3 = stageSize.value.height;
73695
- if (!((_b2 = props.data) == null ? void 0 : _b2.sectionTableList)) {
73705
+ if (!((_b2 = data.value) == null ? void 0 : _b2.sectionTableList)) {
73696
73706
  return;
73697
73707
  }
73698
- props.data.sectionTableList.forEach((item, index2) => {
73708
+ data.value.sectionTableList.forEach((item, index2) => {
73699
73709
  index2 === 0 ? xOffset.value = item.xPoint : null;
73700
73710
  const xValue = Number(item.xPoint) - Number(xOffset.value);
73701
73711
  const yValue = Number(item.yPoint) - Number(yOffset.value);
@@ -73822,15 +73832,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73822
73832
  yUnitTextConfig.value.y = 10 * y_right_percent.value;
73823
73833
  }
73824
73834
  {
73825
- if (props.data.isWall + "" === "1" && damTops.value.length === 2) {
73826
- wallConfig.value.x = changeX(originZeroX.value + Number(props.data.wallXpoint));
73835
+ if (data.value.isWall + "" === "1" && damTops.value.length === 2) {
73836
+ wallConfig.value.x = changeX(originZeroX.value + Number(data.value.wallXpoint));
73827
73837
  wallConfig.value.y = changeY(damTops.value[0][1]);
73828
73838
  wallConfig.value.height = damTops.value[0][1] * yScale.value;
73829
73839
  }
73830
73840
  }
73831
73841
  {
73832
- if ((_c3 = props.data.pipelineTableList) == null ? void 0 : _c3.length) {
73833
- pipeLines.value = (_d2 = props.data.pipelineTableList) == null ? void 0 : _d2.map((item) => {
73842
+ if ((_c3 = data.value.pipelineTableList) == null ? void 0 : _c3.length) {
73843
+ pipeLines.value = (_d2 = data.value.pipelineTableList) == null ? void 0 : _d2.map((item) => {
73834
73844
  const tmp = {
73835
73845
  x: changeX(originZeroX.value + Number(item.xPoint)),
73836
73846
  y: changeY(Number(item.yPoint), true),
@@ -73856,11 +73866,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73856
73866
  }
73857
73867
  await nextTick();
73858
73868
  try {
73859
- waterInfo.kssw = (_e2 = props.waterLevel) == null ? void 0 : _e2.kssw;
73860
- waterInfo.xxsw = (_f2 = props.waterLevel) == null ? void 0 : _f2.xxsw;
73861
- waterInfo.sjsw = (_g2 = props.waterLevel) == null ? void 0 : _g2.sjsw;
73862
- waterInfo.jhsw = (_h4 = props.waterLevel) == null ? void 0 : _h4.jhsw;
73863
- const oldSections = (_i2 = props.waterLevel) == null ? void 0 : _i2.map;
73869
+ waterInfo.kssw = (_e2 = waterLevel.value) == null ? void 0 : _e2.kssw;
73870
+ waterInfo.xxsw = (_f2 = waterLevel.value) == null ? void 0 : _f2.xxsw;
73871
+ waterInfo.sjsw = (_g2 = waterLevel.value) == null ? void 0 : _g2.sjsw;
73872
+ waterInfo.jhsw = (_h4 = waterLevel.value) == null ? void 0 : _h4.jhsw;
73873
+ const oldSections = (_i2 = waterLevel.value) == null ? void 0 : _i2.map;
73864
73874
  const sortArrayByOrder = (targetArray, orderArray, targetKey, orderKey) => {
73865
73875
  const orderMap = /* @__PURE__ */ new Map();
73866
73876
  orderArray.forEach((item, index2) => {
@@ -73875,11 +73885,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73875
73885
  });
73876
73886
  };
73877
73887
  let sections = oldSections;
73878
- if (oldSections && Array.isArray(oldSections) && ((_j2 = props.data) == null ? void 0 : _j2.pipelineTableList) && Array.isArray(props.data.pipelineTableList)) {
73888
+ if (oldSections && Array.isArray(oldSections) && ((_j2 = data.value) == null ? void 0 : _j2.pipelineTableList) && Array.isArray(data.value.pipelineTableList)) {
73879
73889
  sections = sortArrayByOrder(
73880
73890
  [...oldSections],
73881
73891
  // 使用浅拷贝避免修改原数组
73882
- props.data.pipelineTableList,
73892
+ data.value.pipelineTableList,
73883
73893
  "pointCode",
73884
73894
  "pointCode"
73885
73895
  );
@@ -73890,31 +73900,36 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73890
73900
  const waterLine1 = [xTrackOffset.value, changeY(0), xTrackOffset.value, changeY(waterInfo.kssw, true), ...intersections[0].canvasCoord];
73891
73901
  const waterLine2 = [];
73892
73902
  let isAddWall = false;
73903
+ await nextTick();
73893
73904
  for (let i = 0; i < sections.length; i++) {
73894
- const { pointCode, waterLevel } = sections[i];
73905
+ const { pointCode, waterLevel: waterLevel2 } = sections[i];
73895
73906
  const pipelineRect = getPipelineByPointCode(pointCode);
73907
+ if (!pipelineRect) {
73908
+ console.warn(`测压管 ${pointCode} 未找到对应的图形元素,可能是nextTick()并没有完成渲染,考虑改成setTimeout`);
73909
+ continue;
73910
+ }
73896
73911
  const children = pipelineRect.getNode().getChildren();
73897
73912
  const bkRect = children[0];
73898
73913
  const valueRect = children[1];
73899
73914
  const textRect = children[2];
73900
- const pipeLine = (_k2 = props.data.pipelineTableList) == null ? void 0 : _k2.find((item) => item.pointCode === pointCode);
73915
+ const pipeLine = (_k2 = data.value.pipelineTableList) == null ? void 0 : _k2.find((item) => item.pointCode === pointCode);
73901
73916
  if (pipeLine) {
73902
- const _y2 = (Number(pipeLine.yPoint) - Number(waterLevel)) * yScale.value;
73917
+ const _y2 = (Number(pipeLine.yPoint) - Number(waterLevel2)) * yScale.value;
73903
73918
  valueRect.setAttrs({
73904
73919
  y: _y2,
73905
- height: bkRect.height() - _y2,
73920
+ height: bkRect.height() - _y2 < 0 ? 0 : bkRect.height() - _y2,
73906
73921
  fill: "#0A7BFF"
73907
73922
  });
73908
73923
  textRect.setAttrs({
73909
73924
  x: 0,
73910
73925
  y: _y2,
73911
- text: `${parseFloat(Number(waterLevel + "").toFixed(2))}m`,
73926
+ text: `${parseFloat(Number(waterLevel2 + "").toFixed(2))}m`,
73912
73927
  align: "center",
73913
73928
  offsetX: 10,
73914
73929
  offsetY: 15
73915
73930
  });
73916
73931
  let afterWallNoWater = false;
73917
- if (!isAddWall && ((_l3 = props.data) == null ? void 0 : _l3.isWall) + "" === "1") {
73932
+ if (!isAddWall && ((_l3 = data.value) == null ? void 0 : _l3.isWall) + "" === "1") {
73918
73933
  if (layerWallRef.value.getNode().x() < pipelineRect.getNode().x()) {
73919
73934
  isAddWall = true;
73920
73935
  const wall = layerWallRef.value.getNode();
@@ -73962,7 +73977,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
73962
73977
  }
73963
73978
  }
73964
73979
  }
73965
- if (((_n3 = (_m3 = props.waterLevel) == null ? void 0 : _m3.map) == null ? void 0 : _n3.length) === 0) {
73980
+ if (((_n3 = (_m3 = waterLevel.value) == null ? void 0 : _m3.map) == null ? void 0 : _n3.length) === 0) {
73966
73981
  noWaterConfig.value.sceneFunc = (context, shape) => {
73967
73982
  context.beginPath();
73968
73983
  const points = [];
@@ -74103,6 +74118,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74103
74118
  function changeY(_y2, offset = false) {
74104
74119
  return (yMaxMin.value[1] - Number(_y2) + (offset ? Number(yOffset.value) : 0)) * yScale.value;
74105
74120
  }
74121
+ function handleDragstart() {
74122
+ console.log("预留:handleDragstart");
74123
+ }
74124
+ function handleDragend() {
74125
+ console.log("预留:handleDragend");
74126
+ }
74106
74127
  function setPipelineGroupRef(el2, pointCode) {
74107
74128
  if (el2 && pointCode) {
74108
74129
  pipelineGroupRefs.value.set(pointCode, el2);
@@ -74247,23 +74268,95 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74247
74268
  watch(
74248
74269
  [() => props.waterLevel, () => props.data],
74249
74270
  async (newValues) => {
74250
- var _a4, _b2;
74251
- resetCanvasState();
74252
- if (!!newValues[0] && !!((_b2 = (_a4 = newValues[1]) == null ? void 0 : _a4.sectionTableList) == null ? void 0 : _b2.length)) {
74253
- await nextTick();
74254
- stageSize.value = {
74255
- width: document.querySelector(`.${_className}`).clientWidth,
74256
- height: document.querySelector(`.${_className}`).clientHeight
74257
- };
74258
- await nextTick();
74259
- initChart();
74260
- noData.value = false;
74261
- } else {
74262
- noData.value = true;
74263
- }
74271
+ waterLevel.value = newValues[0];
74272
+ data.value = newValues[1];
74264
74273
  },
74265
74274
  { deep: true, immediate: true }
74266
74275
  );
74276
+ watch(
74277
+ [() => waterLevel.value, () => data.value],
74278
+ async (newValues) => {
74279
+ waterLevelOrDataChange(newValues);
74280
+ },
74281
+ { deep: true, immediate: true }
74282
+ );
74283
+ watch(
74284
+ () => props.fullData,
74285
+ (nv, ol2) => {
74286
+ var _a4, _b2, _c3, _d2;
74287
+ if (!nv || Object.keys(nv).length === 0) {
74288
+ try {
74289
+ if (!!ol2 && Object.keys(ol2).length) {
74290
+ data.value = {};
74291
+ waterLevel.value = {};
74292
+ }
74293
+ } catch (e6) {
74294
+ console.log(e6);
74295
+ }
74296
+ return;
74297
+ }
74298
+ const res = JSON.parse(JSON.stringify(nv));
74299
+ const waterLevelData = {
74300
+ "map": [],
74301
+ "kssw": (res == null ? void 0 : res.ksw) || "0",
74302
+ "xxsw": (res == null ? void 0 : res.xxsw) || "0",
74303
+ "sjsw": (res == null ? void 0 : res.sjsw) || "0",
74304
+ "jhsw": (res == null ? void 0 : res.jhsw) || "0"
74305
+ };
74306
+ if (props.isSortX) {
74307
+ (_a4 = res == null ? void 0 : res.pointList) == null ? void 0 : _a4.sort((a, b3) => Number(a.x || 0) - Number(b3.x || 0));
74308
+ }
74309
+ (_b2 = res == null ? void 0 : res.pointList) == null ? void 0 : _b2.forEach((item) => {
74310
+ var _a5;
74311
+ item.xPoint = item.x;
74312
+ item.yPoint = item.y;
74313
+ if (item.value) {
74314
+ (_a5 = waterLevelData.map) == null ? void 0 : _a5.push({
74315
+ id: item.id,
74316
+ pointCode: item.pointCode,
74317
+ waterLevel: item.value,
74318
+ date: item.time
74319
+ });
74320
+ }
74321
+ });
74322
+ if (props.isSortX) {
74323
+ (_c3 = res == null ? void 0 : res.sectionList) == null ? void 0 : _c3.sort((a, b3) => Number(a.x || 0) - Number(b3.x || 0));
74324
+ }
74325
+ (_d2 = res == null ? void 0 : res.sectionList) == null ? void 0 : _d2.forEach((item) => {
74326
+ item.tmpId = parseInt(Math.random() * 999999 + "");
74327
+ item.xPoint = item.x;
74328
+ item.yPoint = item.y;
74329
+ });
74330
+ data.value = {
74331
+ // 坝体
74332
+ "sectionTableList": (res == null ? void 0 : res.sectionList) || [],
74333
+ // 测压管
74334
+ "pipelineTableList": (res == null ? void 0 : res.pointList) || [],
74335
+ // y/x偏移
74336
+ "isWall": (res == null ? void 0 : res.isWall) + "" === "true" ? "1" : "0",
74337
+ "yStart": (res == null ? void 0 : res.y) || "0",
74338
+ "wallXpoint": (res == null ? void 0 : res.x) || "0"
74339
+ };
74340
+ waterLevel.value = waterLevelData || {};
74341
+ },
74342
+ { immediate: true, deep: true }
74343
+ );
74344
+ async function waterLevelOrDataChange(newValues) {
74345
+ var _a4, _b2;
74346
+ resetCanvasState();
74347
+ if (!!newValues[0] && !!((_b2 = (_a4 = newValues[1]) == null ? void 0 : _a4.sectionTableList) == null ? void 0 : _b2.length)) {
74348
+ await nextTick();
74349
+ stageSize.value = {
74350
+ width: document.querySelector(`.${_className}`).clientWidth,
74351
+ height: document.querySelector(`.${_className}`).clientHeight
74352
+ };
74353
+ await nextTick();
74354
+ initChart();
74355
+ noData.value = false;
74356
+ } else {
74357
+ noData.value = true;
74358
+ }
74359
+ }
74267
74360
  function resetCanvasState() {
74268
74361
  xOffset.value = 0;
74269
74362
  yOffset.value = 0;
@@ -74272,24 +74365,34 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74272
74365
  xScale.value = 1;
74273
74366
  yScale.value = 1;
74274
74367
  damTops.value = [];
74368
+ originZeroX.value = 0;
74369
+ stageSize.value = {
74370
+ width: 0,
74371
+ height: 0
74372
+ };
74275
74373
  xLabels.value = [];
74276
74374
  yLabels.value = [];
74277
74375
  pipeLines.value = [];
74278
74376
  pipelineGroupRefs.value.clear();
74279
74377
  textGroup.value = [];
74280
74378
  textGroupRefs.value.clear();
74379
+ textIconImage.value = null;
74281
74380
  damConfig.value.points = [];
74282
74381
  domBkConfig.value.points = [];
74283
74382
  xTrackConfig.value.points = [];
74284
74383
  yTrackConfig.value.points = [];
74285
74384
  waterStartConfig.value.points = [];
74385
+ waterStartConfig.value.fillLinearGradientStartPoint = { x: 0, y: 0 };
74286
74386
  waterStartConfig.value.fillLinearGradientEndPoint = { x: 0, y: 0 };
74387
+ delete waterStartConfig.value.sceneFunc;
74287
74388
  waterConfig.value.points = [];
74288
74389
  waterConfig.value.fillLinearGradientStartPoint = { x: 0, y: 0 };
74289
74390
  waterConfig.value.fillLinearGradientEndPoint = { x: 0, y: 0 };
74391
+ delete waterConfig.value.sceneFunc;
74290
74392
  noWaterConfig.value.points = [];
74291
74393
  noWaterConfig.value.fillLinearGradientStartPoint = { x: 0, y: 0 };
74292
74394
  noWaterConfig.value.fillLinearGradientEndPoint = { x: 0, y: 0 };
74395
+ delete noWaterConfig.value.sceneFunc;
74293
74396
  wallConfig.value.x = 0;
74294
74397
  wallConfig.value.y = 0;
74295
74398
  wallConfig.value.height = 0;
@@ -74297,6 +74400,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74297
74400
  stoneConfig.value.y = 0;
74298
74401
  stoneConfig.value.width = 0;
74299
74402
  stoneConfig.value.height = 0;
74403
+ delete stoneConfig.value.fillPatternImage;
74404
+ delete stoneConfig.value.fillPatternScale;
74300
74405
  xUnitTextConfig.value.x = -9999;
74301
74406
  xUnitTextConfig.value.y = -9999;
74302
74407
  yUnitTextConfig.value.x = -9999;
@@ -74324,15 +74429,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74324
74429
  ref_key: "stage",
74325
74430
  ref: stage,
74326
74431
  config: stageSize.value,
74327
- onDragstart: _ctx.handleDragstart,
74328
- onDragend: _ctx.handleDragend
74432
+ onDragstart: handleDragstart,
74433
+ onDragend: handleDragend
74329
74434
  }, {
74330
74435
  default: withCtx(() => [
74331
74436
  createVNode(_component_v_layer, { ref: "layerWater" }, {
74332
74437
  default: withCtx(() => {
74333
74438
  var _a4, _b2;
74334
74439
  return [
74335
- ((_b2 = (_a4 = props.waterLevel) == null ? void 0 : _a4.map) == null ? void 0 : _b2.length) === 0 ? (openBlock(), createBlock(_component_v_shape, {
74440
+ ((_b2 = (_a4 = waterLevel.value) == null ? void 0 : _a4.map) == null ? void 0 : _b2.length) === 0 ? (openBlock(), createBlock(_component_v_shape, {
74336
74441
  key: 0,
74337
74442
  config: noWaterConfig.value
74338
74443
  }, null, 8, ["config"])) : createCommentVNode("", true)
@@ -74413,7 +74518,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74413
74518
  default: withCtx(() => {
74414
74519
  var _a4, _b2;
74415
74520
  return [
74416
- ((_b2 = (_a4 = props.waterLevel) == null ? void 0 : _a4.map) == null ? void 0 : _b2.length) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
74521
+ ((_b2 = (_a4 = waterLevel.value) == null ? void 0 : _a4.map) == null ? void 0 : _b2.length) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
74417
74522
  createVNode(_component_v_shape, { config: waterStartConfig.value }, null, 8, ["config"]),
74418
74523
  createVNode(_component_v_shape, { config: waterConfig.value }, null, 8, ["config"])
74419
74524
  ], 64)) : createCommentVNode("", true)
@@ -74425,7 +74530,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74425
74530
  default: withCtx(() => {
74426
74531
  var _a4;
74427
74532
  return [
74428
- ((_a4 = __props.data) == null ? void 0 : _a4.isWall) + "" === "1" ? (openBlock(), createBlock(_component_v_rect, {
74533
+ ((_a4 = data.value) == null ? void 0 : _a4.isWall) + "" === "1" ? (openBlock(), createBlock(_component_v_rect, {
74429
74534
  key: 0,
74430
74535
  ref_key: "layerWallRef",
74431
74536
  ref: layerWallRef,
@@ -74460,16 +74565,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
74460
74565
  }, 512)
74461
74566
  ]),
74462
74567
  _: 1
74463
- }, 8, ["config", "onDragstart", "onDragend"])) : createCommentVNode("", true),
74464
- createVNode(_component_NoData, {
74465
- noData: noData.value,
74466
- height: "100px"
74467
- }, null, 8, ["noData"])
74568
+ }, 8, ["config"])) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
74569
+ createVNode(_component_NoData, {
74570
+ noData: noData.value,
74571
+ height: "100px"
74572
+ }, null, 8, ["noData"])
74573
+ ], true)
74468
74574
  ], 2);
74469
74575
  };
74470
74576
  }
74471
74577
  });
74472
- const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-51b573d9"]]);
74578
+ const NsSaturationLine = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-df3a1e4d"]]);
74473
74579
  NsSaturationLine.install = (app2) => {
74474
74580
  app2.component(NsSaturationLine.name, NsSaturationLine);
74475
74581
  };