matrix_components 2.0.360 → 2.0.362

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.
@@ -5472,9 +5472,9 @@ const ElementPlusIconsVue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
5472
5472
  ZoomIn: zoom_in_default,
5473
5473
  ZoomOut: zoom_out_default
5474
5474
  }, Symbol.toStringTag, { value: "Module" }));
5475
- const _hoisted_1$a = { class: "right-box-2" };
5476
- const _hoisted_2$8 = ["onClick"];
5477
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
5475
+ const _hoisted_1$c = { class: "right-box-2" };
5476
+ const _hoisted_2$a = ["onClick"];
5477
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
5478
5478
  __name: "videoRightMenu",
5479
5479
  props: {
5480
5480
  rightMenus: {
@@ -5539,7 +5539,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
5539
5539
  tabindex: "-1",
5540
5540
  onBlur: _cache[0] || (_cache[0] = ($event) => right_closeMenu2())
5541
5541
  }, [
5542
- createElementVNode("div", _hoisted_1$a, [
5542
+ createElementVNode("div", _hoisted_1$c, [
5543
5543
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.rightMenus, (item, index2) => {
5544
5544
  return openBlock(), createElementBlock("div", {
5545
5545
  key: index2,
@@ -5547,7 +5547,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
5547
5547
  right_closeMenu();
5548
5548
  rightHandler(item);
5549
5549
  }
5550
- }, toDisplayString(item == null ? void 0 : item.name), 9, _hoisted_2$8);
5550
+ }, toDisplayString(item == null ? void 0 : item.name), 9, _hoisted_2$a);
5551
5551
  }), 128))
5552
5552
  ])
5553
5553
  ], 36)), [
@@ -5563,11 +5563,11 @@ const _export_sfc = (sfc, props) => {
5563
5563
  }
5564
5564
  return target;
5565
5565
  };
5566
- const ComRightMenu = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-644f5340"]]);
5567
- const _hoisted_1$9 = { class: "split-icon-container" };
5568
- const _hoisted_2$7 = ["onClick"];
5569
- const _hoisted_3$6 = { class: "video-view-bg" };
5570
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
5566
+ const ComRightMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-644f5340"]]);
5567
+ const _hoisted_1$b = { class: "split-icon-container" };
5568
+ const _hoisted_2$9 = ["onClick"];
5569
+ const _hoisted_3$7 = { class: "video-view-bg" };
5570
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
5571
5571
  __name: "SplitIcon",
5572
5572
  props: {
5573
5573
  type: {
@@ -5656,7 +5656,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5656
5656
  }
5657
5657
  });
5658
5658
  return (_ctx, _cache) => {
5659
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
5659
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
5660
5660
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.isVideo ? unref(videoInfos) : count.value, (videoInfo) => {
5661
5661
  return openBlock(), createElementBlock("div", {
5662
5662
  key: videoInfo,
@@ -5670,7 +5670,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5670
5670
  ]),
5671
5671
  onClick: ($event) => iconClick(videoInfo.index)
5672
5672
  }, [
5673
- createElementVNode("div", _hoisted_3$6, [
5673
+ createElementVNode("div", _hoisted_3$7, [
5674
5674
  __props.isVideo ? renderSlot(_ctx.$slots, "video-view-slot", {
5675
5675
  key: 0,
5676
5676
  index: videoInfo.index,
@@ -5678,16 +5678,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5678
5678
  info: videoInfo == null ? void 0 : videoInfo.info
5679
5679
  }, void 0, true) : createCommentVNode("", true)
5680
5680
  ])
5681
- ], 10, _hoisted_2$7);
5681
+ ], 10, _hoisted_2$9);
5682
5682
  }), 128))
5683
5683
  ]);
5684
5684
  };
5685
5685
  }
5686
5686
  });
5687
- const SplitIcon = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5efe1bd4"]]);
5688
- const _hoisted_1$8 = { class: "split-box" };
5689
- const _hoisted_2$6 = ["onClick"];
5690
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
5687
+ const SplitIcon = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-5efe1bd4"]]);
5688
+ const _hoisted_1$a = { class: "split-box" };
5689
+ const _hoisted_2$8 = ["onClick"];
5690
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
5691
5691
  __name: "index",
5692
5692
  props: {
5693
5693
  videoSplitUseIcon: {
@@ -5713,7 +5713,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
5713
5713
  const splitIconCount = ref$1(3);
5714
5714
  const activeIndex = inject("activeIndex");
5715
5715
  return (_ctx, _cache) => {
5716
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
5716
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
5717
5717
  _cache[1] || (_cache[1] = createElementVNode("span", { class: "split-text" }, "分屏:", -1)),
5718
5718
  !__props.videoSplitUseIcon ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(splitIconCount.value, (item) => {
5719
5719
  return openBlock(), createBlock(SplitIcon, {
@@ -5727,14 +5727,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
5727
5727
  key: index2,
5728
5728
  class: normalizeClass(["martrix_iconfont", getIconClass(index2, unref(activeIndex))]),
5729
5729
  onClick: ($event) => activeIndex.value = index2 + 1
5730
- }, null, 10, _hoisted_2$6);
5730
+ }, null, 10, _hoisted_2$8);
5731
5731
  }), 64))
5732
5732
  ]);
5733
5733
  };
5734
5734
  }
5735
5735
  });
5736
- const SplitIconGroup = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-e9d24ad3"]]);
5737
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
5736
+ const SplitIconGroup = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-e9d24ad3"]]);
5737
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
5738
5738
  __name: "EasyPlay",
5739
5739
  props: {
5740
5740
  videoUrl: {
@@ -5948,7 +5948,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
5948
5948
  };
5949
5949
  }
5950
5950
  });
5951
- const EasyPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-1a2b8584"]]);
5951
+ const EasyPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-1a2b8584"]]);
5952
5952
  class hkVideo {
5953
5953
  constructor(options) {
5954
5954
  this.hkVideoInfo = reactive({
@@ -6083,13 +6083,13 @@ class hkVideo {
6083
6083
  this.hkVideoInfo.player.JS_Resize(width, height);
6084
6084
  }
6085
6085
  }
6086
- const _hoisted_1$7 = ["id"];
6087
- const _hoisted_2$5 = ["id"];
6088
- const _hoisted_3$5 = {
6086
+ const _hoisted_1$9 = ["id"];
6087
+ const _hoisted_2$7 = ["id"];
6088
+ const _hoisted_3$6 = {
6089
6089
  class: "video-mask",
6090
6090
  "element-loading-text": "加载中..."
6091
6091
  };
6092
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
6092
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6093
6093
  __name: "HKPlay",
6094
6094
  props: {
6095
6095
  // divId: {
@@ -6263,8 +6263,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6263
6263
  createElementVNode("div", {
6264
6264
  class: "video-container",
6265
6265
  id: `hk-${unref(videoRandomId)}`
6266
- }, null, 8, _hoisted_2$5),
6267
- withDirectives(createElementVNode("div", _hoisted_3$5, null, 512), [
6266
+ }, null, 8, _hoisted_2$7),
6267
+ withDirectives(createElementVNode("div", _hoisted_3$6, null, 512), [
6268
6268
  [_directive_loading, videoLoading.value]
6269
6269
  ]),
6270
6270
  withDirectives(createElementVNode("div", {
@@ -6283,25 +6283,25 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6283
6283
  ], 512), [
6284
6284
  [vShow, showBtn.value]
6285
6285
  ])
6286
- ], 40, _hoisted_1$7);
6286
+ ], 40, _hoisted_1$9);
6287
6287
  };
6288
6288
  }
6289
6289
  });
6290
- const HKPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-a962f649"]]);
6291
- const _hoisted_1$6 = { class: "split-box" };
6292
- const _hoisted_2$4 = ["onMouseover", "onMouseleave"];
6293
- const _hoisted_3$4 = {
6290
+ const HKPlayView = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-a962f649"]]);
6291
+ const _hoisted_1$8 = { class: "split-box" };
6292
+ const _hoisted_2$6 = ["onMouseover", "onMouseleave"];
6293
+ const _hoisted_3$5 = {
6294
6294
  key: 0,
6295
6295
  class: "no-signal"
6296
6296
  };
6297
- const _hoisted_4$2 = {
6297
+ const _hoisted_4$3 = {
6298
6298
  key: 2,
6299
6299
  class: "ctrl-box"
6300
6300
  };
6301
6301
  const _hoisted_5$2 = { class: "ctrl-left" };
6302
6302
  const _hoisted_6 = { class: "ctrl-btn-speed" };
6303
6303
  const _hoisted_7 = { class: "ctrl-right" };
6304
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
6304
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6305
6305
  __name: "index",
6306
6306
  props: {
6307
6307
  videoErrorMaxCount: {
@@ -6479,7 +6479,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6479
6479
  const _component_Files = resolveComponent("Files");
6480
6480
  const _component_MapLocation = resolveComponent("MapLocation");
6481
6481
  const _component_VideoCamera = resolveComponent("VideoCamera");
6482
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
6482
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
6483
6483
  createVNode(SplitIcon, {
6484
6484
  type: unref(activeIndex),
6485
6485
  activeIndex: unref(activeIndex),
@@ -6498,7 +6498,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6498
6498
  onMouseover: ($event) => showCloseBtnHandler(index2),
6499
6499
  onMouseleave: ($event) => hideCloseBtnHandler(index2)
6500
6500
  }, [
6501
- !url ? (openBlock(), createElementBlock("span", _hoisted_3$4, "无信号")) : (openBlock(), createBlock(resolveDynamicComponent(getVideoModel(info)), {
6501
+ !url ? (openBlock(), createElementBlock("span", _hoisted_3$5, "无信号")) : (openBlock(), createBlock(resolveDynamicComponent(getVideoModel(info)), {
6502
6502
  key: 1,
6503
6503
  ref: (el2) => videoPlayerRefHandler(el2, index2),
6504
6504
  videoUrl: url,
@@ -6529,7 +6529,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6529
6529
  }, 8, ["onClick"]), [
6530
6530
  [vShow, closeBtnStatusList.value[index2] && !!url && showClose]
6531
6531
  ]),
6532
- unref(showVideoCtrls) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_4$2, [
6532
+ unref(showVideoCtrls) ? withDirectives((openBlock(), createElementBlock("div", _hoisted_4$3, [
6533
6533
  createElementVNode("div", _hoisted_5$2, [
6534
6534
  createVNode(_component_el_icon, {
6535
6535
  class: "ctrl-btn left",
@@ -6640,7 +6640,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6640
6640
  [vShow, (unref(activeIndex) == 1 || isFullScreen.value) && closeBtnStatusList.value[index2] && !!url]
6641
6641
  ]) : createCommentVNode("", true),
6642
6642
  ((_a3 = unref(injectedSlots)) == null ? void 0 : _a3["video-player-cover"]) ? (openBlock(), createBlock(resolveDynamicComponent(unref(injectedSlots)["video-player-cover"]), { key: 3 })) : createCommentVNode("", true)
6643
- ], 40, _hoisted_2$4)
6643
+ ], 40, _hoisted_2$6)
6644
6644
  ];
6645
6645
  }),
6646
6646
  _: 1
@@ -6649,16 +6649,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6649
6649
  };
6650
6650
  }
6651
6651
  });
6652
- const SplitVideoGroup = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-7ea8a538"]]);
6652
+ const SplitVideoGroup = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-7ea8a538"]]);
6653
6653
  const ctrlApis = {
6654
6654
  fnUrl: "http://199.10.11.47:9091/videoTest/wvpFunction",
6655
6655
  commandUrl: "http://199.10.11.47:9091/videoTest/wvpMove",
6656
6656
  speakUrl: "http://199.10.11.47:19091/videoTest/wvpSpeak"
6657
6657
  };
6658
- const _hoisted_1$5 = { class: "video-player-view" };
6659
- const _hoisted_2$3 = { class: "video-tree" };
6660
- const _hoisted_3$3 = { class: "player-container" };
6661
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
6658
+ const _hoisted_1$7 = { class: "video-player-view" };
6659
+ const _hoisted_2$5 = { class: "video-tree" };
6660
+ const _hoisted_3$4 = { class: "player-container" };
6661
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
6662
6662
  __name: "index",
6663
6663
  props: {
6664
6664
  // 视频类型, easyplayer / hk
@@ -7178,9 +7178,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7178
7178
  return (_ctx, _cache) => {
7179
7179
  const _component_el_tree = resolveComponent("el-tree");
7180
7180
  const _directive_sline = resolveDirective("sline");
7181
- return openBlock(), createElementBlock("div", _hoisted_1$5, [
7181
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
7182
7182
  __props.showTree ? renderSlot(_ctx.$slots, "video-tree", { key: 0 }, () => [
7183
- createElementVNode("div", _hoisted_2$3, [
7183
+ createElementVNode("div", _hoisted_2$5, [
7184
7184
  createVNode(_component_el_tree, {
7185
7185
  class: "tree-view",
7186
7186
  ref_key: "treeRef",
@@ -7217,7 +7217,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7217
7217
  }, 8, ["node-key", "data", "props", "default-expanded-keys", "onNodeExpand"])
7218
7218
  ])
7219
7219
  ], true) : createCommentVNode("", true),
7220
- createElementVNode("div", _hoisted_3$3, [
7220
+ createElementVNode("div", _hoisted_3$4, [
7221
7221
  __props.showVideoSplit ? renderSlot(_ctx.$slots, "video-player-head", { key: 0 }, () => [
7222
7222
  createVNode(SplitIconGroup, {
7223
7223
  class: "video-player-head",
@@ -7254,7 +7254,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7254
7254
  };
7255
7255
  }
7256
7256
  });
7257
- const NsVideo = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-675ac530"]]);
7257
+ const NsVideo = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-675ac530"]]);
7258
7258
  function registerDirective(app2) {
7259
7259
  app2.directive("sline", {
7260
7260
  mounted(el2) {
@@ -7442,24 +7442,33 @@ function formatNumberInput(value, maxLength) {
7442
7442
  continue;
7443
7443
  }
7444
7444
  if (/^\d$/.test(char)) {
7445
+ const currentResult = hasMinus ? result.slice(1) : result;
7446
+ if (currentResult === "0" && char !== "0" && !hasDot) {
7447
+ result = hasMinus ? "-" : "";
7448
+ }
7445
7449
  result += char;
7446
7450
  }
7447
7451
  }
7448
7452
  return result.slice(0, maxLength);
7449
7453
  }
7450
- function formatIntegerInput(value, maxLength) {
7454
+ function formatIntegerInput(value, maxLength, config) {
7451
7455
  let result = "";
7452
7456
  let hasMinus = false;
7457
+ const allowNegative = config.min !== null && config.min < 0;
7453
7458
  for (let i = 0; i < value.length; i++) {
7454
7459
  const char = value[i];
7455
7460
  if (char === "-") {
7456
- if (i === 0 && !hasMinus) {
7461
+ if (allowNegative && i === 0 && !hasMinus) {
7457
7462
  result += char;
7458
7463
  hasMinus = true;
7459
7464
  }
7460
7465
  continue;
7461
7466
  }
7462
7467
  if (/^\d$/.test(char)) {
7468
+ const currentResult = hasMinus ? result.slice(1) : result;
7469
+ if (currentResult === "0" && char !== "0") {
7470
+ result = hasMinus ? "-" : "";
7471
+ }
7463
7472
  result += char;
7464
7473
  }
7465
7474
  }
@@ -7467,7 +7476,7 @@ function formatIntegerInput(value, maxLength) {
7467
7476
  }
7468
7477
  function formatRangeInput(value, config) {
7469
7478
  if (config.int) {
7470
- let result2 = formatIntegerInput(value, config.maxLength || 50);
7479
+ let result2 = formatIntegerInput(value, config.maxLength || 50, config);
7471
7480
  if (config.min === null && config.max === null) {
7472
7481
  return result2;
7473
7482
  }
@@ -46747,7 +46756,7 @@ var utils$2 = {
46747
46756
  SHEET_VERY_HIDDEN: 2
46748
46757
  }
46749
46758
  };
46750
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
46759
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
46751
46760
  __name: "ExcelComp",
46752
46761
  props: {
46753
46762
  // 文件对象或文件URL
@@ -47117,7 +47126,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47117
47126
  };
47118
47127
  }
47119
47128
  });
47120
- const ExcelComp = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-1aba0d50"]]);
47129
+ const ExcelComp = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-1aba0d50"]]);
47121
47130
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
47122
47131
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
47123
47132
  var root = freeGlobal || freeSelf || Function("return this")();
@@ -47161,15 +47170,15 @@ const loadCssVars = () => {
47161
47170
  ThemeVar.VARS = variables;
47162
47171
  return variables;
47163
47172
  };
47164
- const _hoisted_1$4 = { class: "dialog-content" };
47165
- const _hoisted_2$2 = { class: "dialog-header" };
47166
- const _hoisted_3$2 = { class: "dialog-title" };
47167
- const _hoisted_4$1 = { class: "dialog-controls" };
47173
+ const _hoisted_1$6 = { class: "dialog-content" };
47174
+ const _hoisted_2$4 = { class: "dialog-header" };
47175
+ const _hoisted_3$3 = { class: "dialog-title" };
47176
+ const _hoisted_4$2 = { class: "dialog-controls" };
47168
47177
  const _hoisted_5$1 = {
47169
47178
  key: 1,
47170
47179
  class: "dialog-footer"
47171
47180
  };
47172
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47181
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
47173
47182
  __name: "NsDialog",
47174
47183
  props: {
47175
47184
  class: {
@@ -47589,8 +47598,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47589
47598
  onClosed: dealClosed
47590
47599
  }, createSlots({
47591
47600
  header: withCtx(() => [
47592
- createElementVNode("div", _hoisted_2$2, [
47593
- createElementVNode("div", _hoisted_3$2, [
47601
+ createElementVNode("div", _hoisted_2$4, [
47602
+ createElementVNode("div", _hoisted_3$3, [
47594
47603
  __props.headerDom ? (openBlock(), createBlock(resolveDynamicComponent(asyncHeaderDom.value), mergeProps({ key: 0 }, props.headerOption, toHandlers({
47595
47604
  ...props.headerEvents,
47596
47605
  close: closeDialog
@@ -47598,7 +47607,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47598
47607
  createTextVNode(toDisplayString(currentTitle.value), 1)
47599
47608
  ], 64))
47600
47609
  ]),
47601
- createElementVNode("div", _hoisted_4$1, [
47610
+ createElementVNode("div", _hoisted_4$2, [
47602
47611
  showMaximizeButton.value ? (openBlock(), createBlock(_component_el_icon, {
47603
47612
  key: 0,
47604
47613
  class: "dialog-maximize",
@@ -47624,7 +47633,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47624
47633
  ])
47625
47634
  ]),
47626
47635
  default: withCtx(() => [
47627
- createElementVNode("div", _hoisted_1$4, [
47636
+ createElementVNode("div", _hoisted_1$6, [
47628
47637
  (openBlock(), createBlock(resolveDynamicComponent(asyncDom.value), mergeProps({
47629
47638
  ref_key: "componentRef",
47630
47639
  ref: componentRef
@@ -47711,7 +47720,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
47711
47720
  };
47712
47721
  window.__dialogInstances.push(instance);
47713
47722
  if (externalApp) {
47714
- const vnode = createVNode(_sfc_main$8, {
47723
+ const vnode = createVNode(_sfc_main$9, {
47715
47724
  ...superData,
47716
47725
  containerId,
47717
47726
  // 添加容器ID传递给组件
@@ -47735,7 +47744,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
47735
47744
  vnode.appContext = externalApp._context;
47736
47745
  render(vnode, container);
47737
47746
  } else {
47738
- const app2 = createApp(_sfc_main$8, {
47747
+ const app2 = createApp(_sfc_main$9, {
47739
47748
  ...superData,
47740
47749
  containerId,
47741
47750
  // 添加容器ID传递给组件
@@ -47756,7 +47765,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
47756
47765
  }
47757
47766
  }
47758
47767
  });
47759
- const vnode = createVNode(_sfc_main$8, {
47768
+ const vnode = createVNode(_sfc_main$9, {
47760
47769
  ...superData,
47761
47770
  containerId,
47762
47771
  dialogInstance: instance
@@ -47766,7 +47775,7 @@ const NsDialog = (data, modal = true, appendTo = "#app") => {
47766
47775
  }
47767
47776
  return instance;
47768
47777
  };
47769
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
47778
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
47770
47779
  __name: "index",
47771
47780
  props: {
47772
47781
  isShowDialog: {
@@ -47892,13 +47901,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
47892
47901
  };
47893
47902
  }
47894
47903
  });
47895
- _sfc_main$7.install = (app2) => {
47896
- app2.component(_sfc_main$7.name, _sfc_main$7);
47904
+ _sfc_main$8.install = (app2) => {
47905
+ app2.component(_sfc_main$8.name, _sfc_main$8);
47897
47906
  };
47898
- const _hoisted_1$3 = { class: "pdf-reader" };
47899
- const _hoisted_2$1 = { class: "pdf-tools" };
47900
- const _hoisted_3$1 = ["id"];
47901
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47907
+ const _hoisted_1$5 = { class: "pdf-reader" };
47908
+ const _hoisted_2$3 = { class: "pdf-tools" };
47909
+ const _hoisted_3$2 = ["id"];
47910
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
47902
47911
  ...{
47903
47912
  name: "ns-pdf"
47904
47913
  },
@@ -47984,8 +47993,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47984
47993
  return (_ctx, _cache) => {
47985
47994
  const _component_el_button = resolveComponent("el-button");
47986
47995
  const _component_el_empty = resolveComponent("el-empty");
47987
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
47988
- withDirectives(createElementVNode("div", _hoisted_2$1, [
47996
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
47997
+ withDirectives(createElementVNode("div", _hoisted_2$3, [
47989
47998
  createVNode(_component_el_button, {
47990
47999
  id: idConfig.value.previousPage
47991
48000
  }, {
@@ -47999,7 +48008,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
47999
48008
  class: "jump-input",
48000
48009
  id: idConfig.value.pageNumber,
48001
48010
  type: "number"
48002
- }, null, 8, _hoisted_3$1),
48011
+ }, null, 8, _hoisted_3$2),
48003
48012
  createElementVNode("span", null, "/" + toDisplayString(numPages.value) + "页", 1)
48004
48013
  ]),
48005
48014
  createVNode(_component_el_button, {
@@ -48049,7 +48058,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
48049
48058
  };
48050
48059
  }
48051
48060
  });
48052
- const NsPdf = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e08020c7"]]);
48061
+ const NsPdf = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-e08020c7"]]);
48053
48062
  NsPdf.install = (app2) => {
48054
48063
  app2.component(NsPdf.name, NsPdf);
48055
48064
  };
@@ -54406,15 +54415,15 @@ async function renderAsync(data, bodyContainer, styleContainer, userOptions) {
54406
54415
  await renderDocument(doc, bodyContainer, styleContainer, userOptions);
54407
54416
  return doc;
54408
54417
  }
54409
- const _hoisted_1$2 = { class: "word-reader" };
54410
- const _hoisted_2 = { class: "word-tools" };
54411
- const _hoisted_3 = { class: "zoom-info" };
54412
- const _hoisted_4 = { class: "word-container" };
54418
+ const _hoisted_1$4 = { class: "word-reader" };
54419
+ const _hoisted_2$2 = { class: "word-tools" };
54420
+ const _hoisted_3$1 = { class: "zoom-info" };
54421
+ const _hoisted_4$1 = { class: "word-container" };
54413
54422
  const _hoisted_5 = {
54414
54423
  key: 0,
54415
54424
  class: "loading-wrapper"
54416
54425
  };
54417
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54426
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
54418
54427
  ...{
54419
54428
  name: "ns-word"
54420
54429
  },
@@ -54547,8 +54556,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54547
54556
  });
54548
54557
  return (_ctx, _cache) => {
54549
54558
  const _component_el_button = resolveComponent("el-button");
54550
- return openBlock(), createElementBlock("div", _hoisted_1$2, [
54551
- withDirectives(createElementVNode("div", _hoisted_2, [
54559
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
54560
+ withDirectives(createElementVNode("div", _hoisted_2$2, [
54552
54561
  createVNode(_component_el_button, {
54553
54562
  onClick: zoomOut,
54554
54563
  disabled: zoom.value <= 0.5
@@ -54558,7 +54567,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54558
54567
  ])]),
54559
54568
  _: 1
54560
54569
  }, 8, ["disabled"]),
54561
- createElementVNode("span", _hoisted_3, toDisplayString(Math.round(zoom.value * 100)) + "%", 1),
54570
+ createElementVNode("span", _hoisted_3$1, toDisplayString(Math.round(zoom.value * 100)) + "%", 1),
54562
54571
  createVNode(_component_el_button, {
54563
54572
  onClick: zoomIn,
54564
54573
  disabled: zoom.value >= 3
@@ -54571,7 +54580,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54571
54580
  ], 512), [
54572
54581
  [vShow, __props.hasTool && !noData.value]
54573
54582
  ]),
54574
- withDirectives(createElementVNode("div", _hoisted_4, [
54583
+ withDirectives(createElementVNode("div", _hoisted_4$1, [
54575
54584
  loading.value ? (openBlock(), createElementBlock("div", _hoisted_5, [..._cache[2] || (_cache[2] = [
54576
54585
  createElementVNode("div", { style: { "height": "200px" } }, null, -1)
54577
54586
  ])])) : createCommentVNode("", true),
@@ -54589,12 +54598,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54589
54598
  };
54590
54599
  }
54591
54600
  });
54592
- const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-5777b155"]]);
54601
+ const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-5777b155"]]);
54593
54602
  NsWord.install = (app2) => {
54594
54603
  app2.component(NsWord.name, NsWord);
54595
54604
  };
54596
- const _hoisted_1$1 = { class: "ns-office" };
54597
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54605
+ const _hoisted_1$3 = { class: "ns-office" };
54606
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54598
54607
  ...{
54599
54608
  name: "ns-office"
54600
54609
  },
@@ -54644,8 +54653,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54644
54653
  });
54645
54654
  return (_ctx, _cache) => {
54646
54655
  const _component_NoData = resolveComponent("NoData");
54647
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
54648
- fileType.value === "excel" ? (openBlock(), createBlock(_sfc_main$7, mergeProps({ key: 0 }, _ctx.$attrs, {
54656
+ return openBlock(), createElementBlock("div", _hoisted_1$3, [
54657
+ fileType.value === "excel" ? (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 0 }, _ctx.$attrs, {
54649
54658
  isEdit: false,
54650
54659
  isShowDialog: false,
54651
54660
  file: __props.url,
@@ -54668,436 +54677,652 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54668
54677
  };
54669
54678
  }
54670
54679
  });
54671
- const NsOffice = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a4bc0168"]]);
54680
+ const NsOffice = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a4bc0168"]]);
54672
54681
  NsOffice.install = (app2) => {
54673
54682
  app2.component(NsOffice.name, NsOffice);
54674
54683
  };
54675
- const _sfc_main$3 = {
54676
- __name: "index",
54684
+ const _hoisted_1$2 = {
54685
+ key: 0,
54686
+ class: "sub-row"
54687
+ };
54688
+ const _hoisted_2$1 = {
54689
+ class: /* @__PURE__ */ normalizeClass(["sub-row-group"])
54690
+ };
54691
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54692
+ __name: "DynamicForm",
54677
54693
  props: {
54678
- // 表单配置项
54679
- formItems: {
54680
- type: Array,
54681
- required: true,
54682
- default: () => []
54683
- },
54684
- // 表单数据
54685
- modelValue: {
54686
- type: Object,
54687
- default: () => ({})
54694
+ // 可选table, vertical, 默认不带边框颜色
54695
+ model: {
54696
+ type: String,
54697
+ default: () => ""
54698
+ // 可选table, vertical
54688
54699
  },
54689
- // 表单验证规则
54690
- rules: {
54691
- type: Object,
54692
- default: () => ({})
54700
+ readOnly: {
54701
+ type: Boolean,
54702
+ default: () => false
54693
54703
  },
54694
- // 标签宽度
54704
+ // (父+子)文字宽度
54695
54705
  labelWidth: {
54696
54706
  type: String,
54697
- default: "100px"
54707
+ default: "80px"
54698
54708
  },
54699
- // 标签位置
54700
- labelPosition: {
54709
+ // 父文字宽度
54710
+ superLabelWidth: {
54701
54711
  type: String,
54702
- default: "right"
54712
+ default: "30px"
54703
54713
  },
54704
- // 表单尺寸
54705
- size: {
54714
+ // (父+子)文字颜色
54715
+ labelColor: {
54706
54716
  type: String,
54707
- default: "default"
54717
+ default: "#0A7BFF"
54708
54718
  },
54709
- // 是否禁用
54710
- disabled: {
54711
- type: Boolean,
54712
- default: false
54719
+ // 行中多个间隔(model: table无效)
54720
+ gapH: {
54721
+ type: String,
54722
+ default: "10px"
54713
54723
  },
54714
- // 栅格间隔
54715
- gutter: {
54716
- type: Number,
54717
- default: 20
54724
+ // 列间隔(model: table无效)
54725
+ gapV: {
54726
+ type: String,
54727
+ default: "10px"
54718
54728
  },
54719
- // 下拉框选项数据源
54720
- optionsData: {
54721
- type: Object,
54722
- default: () => ({})
54729
+ // 文字高度
54730
+ height: {
54731
+ type: String,
54732
+ default: "32px"
54723
54733
  },
54724
- // 初始化时是否清除验证状态
54725
- clearValidateOnInit: {
54726
- type: Boolean,
54727
- default: true
54734
+ // 列表
54735
+ rows: {
54736
+ type: Array,
54737
+ default: () => []
54738
+ },
54739
+ backgroundColor: {
54740
+ type: String,
54741
+ default: ""
54742
+ },
54743
+ // 没值时显示的内容,默认'--'
54744
+ valueEmptyTag: {
54745
+ type: String,
54746
+ default: () => "--"
54747
+ },
54748
+ // 表单校验路径前缀,用于支持多个DetailView
54749
+ formPropKey: {
54750
+ type: String,
54751
+ default: "rows"
54728
54752
  }
54729
54753
  },
54730
- emits: ["update:modelValue", "validate", "submit", "reset"],
54731
- setup(__props, { expose: __expose, emit: __emit }) {
54754
+ setup(__props, { expose: __expose }) {
54755
+ useCssVars((_ctx) => ({
54756
+ "v37afa004": customBackgroundColor.value,
54757
+ "v837cf940": gapV.value,
54758
+ "v0b770c26": superLabelWidth.value,
54759
+ "dba2e31c": subLabelWidth.value,
54760
+ "v35d88047": height.value,
54761
+ "v43e7535c": labelWidth.value,
54762
+ "v6d879d11": _ctx.$props.labelColor
54763
+ }));
54732
54764
  const props = __props;
54733
- const emit = __emit;
54734
- const formRef = ref$1();
54735
- const formData = reactive({});
54736
- const formRules = reactive({});
54737
- const initFormData = () => {
54738
- Object.keys(formData).forEach((key) => {
54739
- delete formData[key];
54740
- });
54741
- props.formItems.forEach((item) => {
54742
- if (item.prop) {
54743
- formData[item.prop] = props.modelValue[item.prop] || item.defaultValue || getDefaultValue(item.component);
54744
- }
54745
- });
54746
- };
54747
- const initFormRules = () => {
54748
- Object.keys(formRules).forEach((key) => {
54749
- delete formRules[key];
54750
- });
54751
- props.formItems.forEach((item) => {
54752
- if (item.prop && (item.rules || props.rules[item.prop])) {
54753
- formRules[item.prop] = [
54754
- ...props.rules[item.prop] || [],
54755
- ...item.rules || []
54756
- ];
54757
- }
54758
- });
54759
- };
54760
- const getComponentName = (component) => {
54761
- const componentMap = {
54762
- input: "el-input",
54763
- textarea: "el-input",
54764
- password: "el-input",
54765
- number: "el-input-number",
54766
- select: "el-select",
54767
- radio: "el-radio",
54768
- "radio-group": "el-radio-group",
54769
- checkbox: "el-checkbox",
54770
- "checkbox-group": "el-checkbox-group",
54771
- switch: "el-switch",
54772
- slider: "el-slider",
54773
- "time-picker": "el-time-picker",
54774
- "time-select": "el-time-select",
54775
- "date-picker": "el-date-picker",
54776
- "datetime-picker": "el-date-picker",
54777
- upload: "el-upload",
54778
- rate: "el-rate",
54779
- "color-picker": "el-color-picker",
54780
- transfer: "el-transfer",
54781
- cascader: "el-cascader",
54782
- "tree-select": "el-tree-select"
54783
- };
54784
- return componentMap[component] || component;
54785
- };
54786
- const getComponentProps = (item) => {
54787
- const props2 = { ...item.props || {} };
54788
- if (item.component === "cascader") {
54789
- const options = getItemOptions(item);
54790
- if (options) {
54791
- props2.options = options;
54765
+ const customBackgroundColor = computed(() => {
54766
+ if (props.model === "vertical") {
54767
+ return props.backgroundColor || "#eef4fb";
54768
+ }
54769
+ return "transparent";
54770
+ });
54771
+ function checkIsElempentComponent(rowInfo, name = "el") {
54772
+ if (rowInfo.component) {
54773
+ return (rowInfo.component.name + "").toLowerCase().startsWith(name);
54774
+ } else {
54775
+ return false;
54776
+ }
54777
+ }
54778
+ function isUploadComponent(rowInfo) {
54779
+ var _a3;
54780
+ return ((((_a3 = rowInfo == null ? void 0 : rowInfo.component) == null ? void 0 : _a3.name) || "") + "").toLowerCase().indexOf("upload") !== -1;
54781
+ }
54782
+ function getComponentParams(rowInfo) {
54783
+ const params = { ...rowInfo.params };
54784
+ delete params["v-length"];
54785
+ delete params["v-length.number"];
54786
+ delete params["v-length.regex"];
54787
+ delete params["v-length-modifier"];
54788
+ if (rowInfo.component) {
54789
+ const componentName = (rowInfo.component.name + "").replace("-", "").toLowerCase();
54790
+ if (componentName.indexOf("input") !== -1 || componentName === "elautocomplete") {
54791
+ params.placeholder = params.placeholder || "请输入";
54792
+ } else if (componentName === "elselect" || componentName === "eltimeselect" || componentName === "eltimepicker" || componentName === "eldatepicker") {
54793
+ params.placeholder = params.placeholder || "请选择";
54794
+ if (componentName === "elselect" && !(params == null ? void 0 : params.props)) {
54795
+ params.props = {
54796
+ value: "value",
54797
+ label: "label",
54798
+ options: "options",
54799
+ disabled: "disabled"
54800
+ };
54801
+ }
54792
54802
  }
54793
54803
  }
54794
- if (item.component === "textarea") {
54795
- props2.type = "textarea";
54804
+ return params;
54805
+ }
54806
+ function getDirectiveValue(rowInfo) {
54807
+ if (!rowInfo.params) {
54808
+ return void 0;
54796
54809
  }
54797
- if (item.component === "password") {
54798
- props2.type = "password";
54799
- props2.showPassword = true;
54810
+ if (rowInfo.params["v-length.number"] !== void 0) {
54811
+ return rowInfo.params["v-length.number"];
54800
54812
  }
54801
- if (item.component === "datetime-picker") {
54802
- props2.type = "datetime";
54813
+ if (rowInfo.params["v-length.range"] !== void 0) {
54814
+ return rowInfo.params["v-length.range"];
54803
54815
  }
54804
- return props2;
54805
- };
54806
- const getComponentEvents = (item) => {
54807
- const events = { ...item.events || {} };
54808
- if (item.dependsOn) {
54809
- events.change = (value) => {
54810
- var _a3;
54811
- handleDependentChange(item);
54812
- if ((_a3 = item.events) == null ? void 0 : _a3.change) {
54813
- item.events.change(value);
54814
- }
54815
- };
54816
+ if (rowInfo.params["v-length.regex"] !== void 0) {
54817
+ return rowInfo.params["v-length.regex"];
54816
54818
  }
54817
- return events;
54818
- };
54819
- const getItemOptions = (item) => {
54820
- if (item.dependsOn) {
54821
- return getDependentOptions(item);
54819
+ if (rowInfo.params["v-length"] === void 0) {
54820
+ return void 0;
54822
54821
  }
54823
- if (item.optionsKey && props.optionsData[item.optionsKey]) {
54824
- return props.optionsData[item.optionsKey];
54822
+ if (typeof rowInfo.params["v-length"] === "object") {
54823
+ return {
54824
+ maxLength: rowInfo.params["v-length"].value || rowInfo.params["v-length"].maxLength,
54825
+ pattern: rowInfo.params["v-length"].pattern
54826
+ };
54825
54827
  }
54826
- return item.options || [];
54827
- };
54828
- const getDependentOptions = (item) => {
54829
- if (!item.dependsOn || !item.dependsOn.field) {
54830
- return item.options || [];
54828
+ return rowInfo.params["v-length"];
54829
+ }
54830
+ function getDirectiveType(rowInfo) {
54831
+ if (!rowInfo.params) {
54832
+ return "none";
54831
54833
  }
54832
- const dependentValue = formData[item.dependsOn.field];
54833
- if (!dependentValue) {
54834
- return [];
54834
+ if (rowInfo.params["v-length.number"] !== void 0) {
54835
+ return "number";
54835
54836
  }
54836
- if (item.dependsOn.optionsKey && props.optionsData[item.dependsOn.optionsKey]) {
54837
- const dependentData = props.optionsData[item.dependsOn.optionsKey];
54838
- return dependentData[dependentValue] || [];
54837
+ if (rowInfo.params["v-length.range"] !== void 0) {
54838
+ return "range";
54839
54839
  }
54840
- if (item.dependsOn.options && item.dependsOn.options[dependentValue]) {
54841
- return item.dependsOn.options[dependentValue];
54840
+ if (rowInfo.params["v-length.regex"] !== void 0) {
54841
+ return "regex";
54842
54842
  }
54843
- return [];
54844
- };
54845
- const handleDependentChange = (item, value) => {
54846
- const dependentItems = props.formItems.filter(
54847
- (formItem) => formItem.dependsOn && formItem.dependsOn.field === item.prop
54848
- );
54849
- dependentItems.forEach((dependentItem) => {
54850
- if (dependentItem.prop && formData[dependentItem.prop] !== void 0) {
54851
- formData[dependentItem.prop] = getDefaultValue(
54852
- dependentItem.component
54853
- );
54843
+ if (rowInfo.params["v-length"] === void 0) {
54844
+ return "none";
54845
+ }
54846
+ if (typeof rowInfo.params["v-length"] === "object") {
54847
+ if (rowInfo.params["v-length"].modifier) {
54848
+ return rowInfo.params["v-length"].modifier;
54849
+ }
54850
+ if (rowInfo.params["v-length"].pattern) {
54851
+ return "regex";
54854
54852
  }
54855
- });
54856
- };
54857
- const getDefaultPlaceholder = (component, label) => {
54858
- const inputTypes = ["input", "textarea", "password", "number"];
54859
- const selectTypes = ["select", "cascader", "tree-select"];
54860
- const dateTypes = [
54861
- "date-picker",
54862
- "datetime-picker",
54863
- "time-picker",
54864
- "time-select"
54865
- ];
54866
- if (inputTypes.includes(component)) {
54867
- return `请输入${label}`;
54868
- } else if (selectTypes.includes(component)) {
54869
- return `请选择${label}`;
54870
- } else if (dateTypes.includes(component)) {
54871
- return `请选择${label}`;
54872
54853
  }
54873
- return "";
54874
- };
54875
- const getDefaultValue = (component) => {
54876
- const defaultValues = {
54877
- input: "",
54878
- textarea: "",
54879
- password: "",
54880
- number: null,
54881
- select: "",
54882
- "radio-group": "",
54883
- checkbox: false,
54884
- "checkbox-group": [],
54885
- switch: false,
54886
- slider: 0,
54887
- "date-picker": null,
54888
- "datetime-picker": null,
54889
- "time-picker": null,
54890
- "time-select": null,
54891
- upload: [],
54892
- rate: 0,
54893
- "color-picker": "",
54894
- transfer: [],
54895
- cascader: [],
54896
- "tree-select": null
54897
- };
54898
- return defaultValues[component] || null;
54899
- };
54900
- const validate = async (callback) => {
54901
- if (!formRef.value) return false;
54902
- try {
54903
- const valid = await formRef.value.validate();
54904
- emit("validate", valid, formData);
54905
- if (callback) callback(valid);
54906
- return valid;
54907
- } catch (error) {
54908
- emit("validate", false, formData);
54909
- if (callback) callback(false);
54910
- return false;
54854
+ return "basic";
54855
+ }
54856
+ const gapH = computed(() => {
54857
+ if (props.model.indexOf("table") > -1) {
54858
+ return 0;
54911
54859
  }
54912
- };
54913
- const validateField = (props2, callback) => {
54914
- if (!formRef.value) return;
54915
- formRef.value.validateField(props2, callback);
54916
- };
54917
- const resetFields = () => {
54918
- if (!formRef.value) return;
54919
- formRef.value.resetFields();
54920
- emit("reset", formData);
54921
- };
54922
- const clearValidate = (props2) => {
54923
- if (!formRef.value) return;
54924
- formRef.value.clearValidate(props2);
54925
- };
54926
- watch(
54927
- formData,
54928
- (newVal) => {
54929
- emit("update:modelValue", { ...newVal });
54930
- },
54931
- { deep: true }
54932
- );
54860
+ const _tmp = (props.gapH + "").replace("px", "").replace("%", "");
54861
+ if (isNaN(_tmp)) {
54862
+ return 0;
54863
+ } else {
54864
+ return Number(_tmp);
54865
+ }
54866
+ });
54867
+ const gapV = computed(() => {
54868
+ if (props.model.indexOf("table") > -1) {
54869
+ return 0;
54870
+ }
54871
+ const _tmp = (props.gapV + "").replace("px", "").replace("%", "");
54872
+ if (isNaN(_tmp)) {
54873
+ return 0;
54874
+ } else {
54875
+ return _tmp + "px";
54876
+ }
54877
+ });
54878
+ const height = computed(() => {
54879
+ const _tmp = (props.height + "").replace("px", "").replace("%", "");
54880
+ if (isNaN(_tmp)) {
54881
+ return 0;
54882
+ } else {
54883
+ return _tmp + "px";
54884
+ }
54885
+ });
54886
+ const labelWidth = computed(() => {
54887
+ if (props.labelWidth.indexOf("px") > -1 || props.labelWidth.indexOf("%") > -1 || isNaN(Number(props.labelWidth))) {
54888
+ return props.labelWidth;
54889
+ } else {
54890
+ return (props.labelWidth + "").replace("px", "") + "px";
54891
+ }
54892
+ });
54893
+ const superLabelWidth = ref$1("0");
54894
+ const subLabelWidth = ref$1(labelWidth.value);
54933
54895
  watch(
54934
- () => props.modelValue,
54896
+ () => props.superLabelWidth,
54935
54897
  (nv) => {
54936
- const newVal = JSON.parse(JSON.stringify(nv));
54937
- Object.keys(newVal).forEach((key) => {
54938
- if (formData[key] !== newVal[key]) {
54939
- formData[key] = newVal[key];
54940
- }
54941
- });
54898
+ if (nv.indexOf("px") > -1 || nv.indexOf("%") > -1 || isNaN(nv)) {
54899
+ superLabelWidth.value = nv;
54900
+ } else {
54901
+ superLabelWidth.value = (nv + "").replace("px", "") + "px";
54902
+ subLabelWidth.value = `calc(${labelWidth.value} - ${superLabelWidth.value})`;
54903
+ }
54942
54904
  },
54943
- { deep: true }
54905
+ { immediate: true }
54944
54906
  );
54945
- watch(
54946
- () => props.formItems,
54947
- () => {
54948
- nextTick(() => {
54949
- initFormData();
54950
- initFormRules();
54951
- if (props.clearValidateOnInit) {
54952
- nextTick(() => {
54953
- clearValidate();
54954
- });
54907
+ function getRowItemStyle(row, rowInfo, rowInfoIndex) {
54908
+ let _gapH = gapH.value;
54909
+ if (rowInfo.span && (rowInfo.span + "").indexOf("%") > -1) {
54910
+ return rowInfo.span;
54911
+ }
54912
+ let emptySpanCount = 0;
54913
+ let allWidth = 0;
54914
+ let customSpan = 0;
54915
+ row == null ? void 0 : row.map((item) => {
54916
+ if (!item.span && item.span + "" !== "0") {
54917
+ emptySpanCount += 1;
54918
+ } else {
54919
+ const _span = Number((item.span + "").replace("%", ""));
54920
+ allWidth += _span;
54921
+ customSpan += _span;
54922
+ }
54923
+ });
54924
+ if (allWidth > 24) {
54925
+ allWidth = 100;
54926
+ } else {
54927
+ allWidth = 24;
54928
+ }
54929
+ if (!rowInfo.span) {
54930
+ const _tmp = ((allWidth - customSpan) / emptySpanCount / allWidth * 100).toFixed(2) + "%";
54931
+ const margint = row.length == 1 ? 0 : Number(_gapH / 2);
54932
+ let marginLeft = margint * 0.75;
54933
+ let marginRight = margint * 0.75;
54934
+ if (rowInfoIndex == row.length - 1) {
54935
+ marginRight = 0;
54936
+ marginLeft = margint * 1.25;
54937
+ } else if (rowInfoIndex == 0) {
54938
+ marginLeft = 0;
54939
+ marginRight = margint * 1.25;
54940
+ }
54941
+ return {
54942
+ width: `calc(${_tmp} - ${marginLeft + marginRight}px)`,
54943
+ marginLeft: `${marginLeft}px`,
54944
+ marginRight: `${marginRight}px`
54945
+ };
54946
+ } else if (rowInfo.span == 0) {
54947
+ return { width: 0 };
54948
+ } else {
54949
+ const _tmp = Number(rowInfo.span) / allWidth * 100 + "%";
54950
+ const margint = row.length == 1 ? 0 : Number(_gapH / 2);
54951
+ let marginLeft = margint * 0.75;
54952
+ let marginRight = margint * 0.75;
54953
+ if (rowInfoIndex == row.length - 1) {
54954
+ marginRight = 0;
54955
+ marginLeft = margint * 1.25;
54956
+ } else if (rowInfoIndex == 0) {
54957
+ marginLeft = 0;
54958
+ marginRight = margint * 1.25;
54959
+ }
54960
+ return {
54961
+ width: `calc(${_tmp} - ${marginLeft + marginRight}px)`,
54962
+ marginLeft: `${marginLeft}px`,
54963
+ marginRight: `${marginRight}px`
54964
+ };
54965
+ }
54966
+ }
54967
+ function getNodeByKey(rows, key) {
54968
+ for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
54969
+ const row = rows[rowIndex];
54970
+ for (let colIndex = 0; colIndex < row.length; colIndex++) {
54971
+ const item = row[colIndex];
54972
+ if (item.key === key) {
54973
+ return item;
54955
54974
  }
54956
- });
54957
- },
54958
- { deep: true, immediate: true }
54959
- );
54960
- watch(
54961
- () => props.rules,
54962
- () => {
54963
- initFormRules();
54964
- },
54965
- { deep: true }
54966
- );
54975
+ if (item.children && Array.isArray(item.children)) {
54976
+ for (let childIndex = 0; childIndex < item.children.length; childIndex++) {
54977
+ const child = item.children[childIndex];
54978
+ if (child.key === key) {
54979
+ return child;
54980
+ }
54981
+ }
54982
+ }
54983
+ }
54984
+ }
54985
+ return null;
54986
+ }
54987
+ function getKeyValuePairs(rows) {
54988
+ const result = {};
54989
+ for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
54990
+ const row = rows[rowIndex];
54991
+ for (let colIndex = 0; colIndex < row.length; colIndex++) {
54992
+ const item = row[colIndex];
54993
+ if (item.key) {
54994
+ if ((item == null ? void 0 : item.value) && (item == null ? void 0 : item.delValue) && Array.isArray(item.value) && Array.isArray(item.delValue) && item.value.length && item.delValue.length) {
54995
+ result[item.key] = [...item.value, ...item.delValue];
54996
+ } else {
54997
+ result[item.key] = item.value || "";
54998
+ }
54999
+ }
55000
+ if (item.children && Array.isArray(item.children)) {
55001
+ for (let childIndex = 0; childIndex < item.children.length; childIndex++) {
55002
+ const child = item.children[childIndex];
55003
+ if (child.key) {
55004
+ if ((child == null ? void 0 : child.value) && (child == null ? void 0 : child.delValue) && Array.isArray(child.value) && Array.isArray(child.delValue) && child.value.length && child.delValue.length) {
55005
+ result[child.key] = [...child.value, ...child.delValue];
55006
+ } else {
55007
+ result[child.key] = child.value || "";
55008
+ }
55009
+ }
55010
+ }
55011
+ }
55012
+ }
55013
+ }
55014
+ return result;
55015
+ }
54967
55016
  __expose({
54968
- validate,
54969
- validateField,
54970
- resetFields,
54971
- clearValidate,
54972
- formData
55017
+ getKeyValuePairs,
55018
+ getNodeByKey
54973
55019
  });
54974
55020
  return (_ctx, _cache) => {
54975
- const _component_el_option = resolveComponent("el-option");
54976
- const _component_el_radio = resolveComponent("el-radio");
54977
- const _component_el_checkbox = resolveComponent("el-checkbox");
55021
+ const _component_el_tooltip = resolveComponent("el-tooltip");
54978
55022
  const _component_el_form_item = resolveComponent("el-form-item");
54979
- const _component_el_col = resolveComponent("el-col");
54980
- const _component_el_row = resolveComponent("el-row");
54981
- const _component_el_form = resolveComponent("el-form");
54982
- return openBlock(), createBlock(_component_el_form, mergeProps({
54983
- ref_key: "formRef",
54984
- ref: formRef,
54985
- model: formData,
54986
- rules: formRules,
54987
- "label-width": __props.labelWidth,
54988
- "label-position": __props.labelPosition,
54989
- size: __props.size,
54990
- disabled: __props.disabled
54991
- }, _ctx.$attrs), {
54992
- default: withCtx(() => [
54993
- createVNode(_component_el_row, { gutter: __props.gutter }, {
54994
- default: withCtx(() => [
54995
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.formItems, (item, index2) => {
54996
- return openBlock(), createBlock(_component_el_col, {
54997
- key: index2,
54998
- span: item.span || 24,
54999
- xs: item.xs,
55000
- sm: item.sm,
55001
- md: item.md,
55002
- lg: item.lg,
55003
- xl: item.xl
55004
- }, {
55005
- default: withCtx(() => [
55006
- createVNode(_component_el_form_item, {
55007
- label: item.label,
55008
- prop: item.prop,
55009
- required: item.required,
55010
- rules: item.rules,
55011
- "label-width": item.labelWidth,
55012
- error: item.error,
55013
- "show-message": item.showMessage !== false,
55014
- "inline-message": item.inlineMessage,
55015
- size: item.size || __props.size
55016
- }, {
55017
- default: withCtx(() => [
55018
- (openBlock(), createBlock(resolveDynamicComponent(getComponentName(item.component)), mergeProps({
55019
- modelValue: formData[item.prop],
55020
- "onUpdate:modelValue": ($event) => formData[item.prop] = $event
55021
- }, { ref_for: true }, getComponentProps(item), toHandlers(getComponentEvents(item)), {
55022
- placeholder: item.placeholder || getDefaultPlaceholder(item.component, item.label),
55023
- disabled: item.disabled || __props.disabled,
55024
- size: item.size || __props.size
55025
- }), createSlots({
55023
+ const _directive_sline = resolveDirective("sline");
55024
+ const _directive_length = resolveDirective("length");
55025
+ return props.rows.length ? (openBlock(), createElementBlock("div", {
55026
+ key: 0,
55027
+ class: normalizeClass([
55028
+ "detail-view",
55029
+ props.model.indexOf("table") > -1 ? "model-table" : "",
55030
+ props.model.indexOf("vertical") > -1 ? "vertical" : "horizontal"
55031
+ ])
55032
+ }, [
55033
+ (openBlock(true), createElementBlock(Fragment, null, renderList(props.rows, (row, index2) => {
55034
+ return openBlock(), createElementBlock("div", {
55035
+ key: index2,
55036
+ class: "detial-row"
55037
+ }, [
55038
+ (openBlock(true), createElementBlock(Fragment, null, renderList(row, (rowInfo, _index) => {
55039
+ var _a3;
55040
+ return openBlock(), createElementBlock("div", {
55041
+ class: normalizeClass([
55042
+ "detial-row-item",
55043
+ props.model.indexOf("vertical") > -1 ? "vertical" : "horizontal",
55044
+ (rowInfo == null ? void 0 : rowInfo.children) ? "has-child" : ""
55045
+ ]),
55046
+ key: _index,
55047
+ style: normalizeStyle(getRowItemStyle(row, rowInfo, _index))
55048
+ }, [
55049
+ ((_a3 = rowInfo == null ? void 0 : rowInfo.children) == null ? void 0 : _a3.length) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
55050
+ withDirectives((openBlock(), createElementBlock("span", {
55051
+ class: normalizeClass([
55052
+ "sub-row-title",
55053
+ "detial-row-item-label",
55054
+ props.model.indexOf("table") > -1 ? "model-table" : "",
55055
+ props.model.indexOf("vertical") > -1 ? "vertical" : "horizontal"
55056
+ ])
55057
+ }, [
55058
+ createTextVNode(toDisplayString(rowInfo.label || ""), 1)
55059
+ ], 2)), [
55060
+ [_directive_sline]
55061
+ ]),
55062
+ createElementVNode("div", _hoisted_2$1, [
55063
+ (openBlock(true), createElementBlock(Fragment, null, renderList(rowInfo.children, (subRowInfo, _subIndex) => {
55064
+ return openBlock(), createElementBlock("div", {
55065
+ class: normalizeClass(["sub-row-item"]),
55066
+ key: _subIndex
55067
+ }, [
55068
+ createVNode(_component_el_tooltip, {
55069
+ "hide-after": 0,
55070
+ "show-after": 500,
55071
+ content: subRowInfo.label || "",
55072
+ placement: "top-start",
55073
+ "popper-class": "detail-view-tooltip"
55074
+ }, {
55075
+ default: withCtx(() => [
55076
+ createElementVNode("span", {
55077
+ class: normalizeClass([
55078
+ "detial-row-item-label",
55079
+ props.model.indexOf("table") > -1 ? "model-table" : "",
55080
+ props.model.indexOf("vertical") > -1 ? "vertical" : "horizontal"
55081
+ ])
55082
+ }, toDisplayString(subRowInfo.label || ""), 3)
55083
+ ]),
55084
+ _: 2
55085
+ }, 1032, ["content"]),
55086
+ createVNode(_component_el_tooltip, {
55087
+ "hide-after": 0,
55088
+ "show-after": 500,
55089
+ disabled: subRowInfo.component,
55090
+ content: subRowInfo.value || "",
55091
+ placement: "top-start",
55092
+ "popper-class": "detail-view-tooltip"
55093
+ }, {
55026
55094
  default: withCtx(() => [
55027
- getItemOptions(item) && [
55028
- "select",
55029
- "radio-group",
55030
- "checkbox-group"
55031
- ].includes(item.component) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
55032
- item.component === "select" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(getItemOptions(item), (option) => {
55033
- return openBlock(), createBlock(_component_el_option, {
55034
- key: option.value,
55035
- label: option.label,
55036
- value: option.value,
55037
- disabled: option.disabled
55038
- }, null, 8, ["label", "value", "disabled"]);
55039
- }), 128)) : item.component === "radio-group" ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(getItemOptions(item), (option) => {
55040
- return openBlock(), createBlock(_component_el_radio, {
55041
- key: option.value,
55042
- label: option.value,
55043
- disabled: option.disabled
55044
- }, {
55045
- default: withCtx(() => [
55046
- createTextVNode(toDisplayString(option.label), 1)
55047
- ]),
55048
- _: 2
55049
- }, 1032, ["label", "disabled"]);
55050
- }), 128)) : item.component === "checkbox-group" ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(getItemOptions(item), (option) => {
55051
- return openBlock(), createBlock(_component_el_checkbox, {
55052
- key: option.value,
55053
- label: option.value,
55054
- disabled: option.disabled
55055
- }, {
55056
- default: withCtx(() => [
55057
- createTextVNode(toDisplayString(option.label), 1)
55058
- ]),
55059
- _: 2
55060
- }, 1032, ["label", "disabled"]);
55061
- }), 128)) : createCommentVNode("", true)
55062
- ], 64)) : createCommentVNode("", true)
55095
+ !subRowInfo.component ? (openBlock(), createElementBlock("span", {
55096
+ key: 0,
55097
+ class: normalizeClass([
55098
+ "detial-row-item-value",
55099
+ props.model.indexOf("table") > -1 ? "model-table" : "",
55100
+ props.model.indexOf("vertical") > -1 ? "vertical" : "horizontal"
55101
+ ])
55102
+ }, toDisplayString(subRowInfo.value || ""), 3)) : (openBlock(), createElementBlock("span", {
55103
+ key: 1,
55104
+ class: normalizeClass([
55105
+ "detial-row-item-value",
55106
+ props.model.indexOf("table") > -1 ? "model-table" : ""
55107
+ ])
55108
+ }, [
55109
+ (openBlock(), createBlock(resolveDynamicComponent(subRowInfo.component), mergeProps({ ref_for: true }, subRowInfo.params, { rowData: subRowInfo }), createSlots({ _: 2 }, [
55110
+ renderList(subRowInfo.slots || {}, (slot, slotName) => {
55111
+ return {
55112
+ name: slotName,
55113
+ fn: withCtx(() => [
55114
+ (openBlock(), createBlock(resolveDynamicComponent(typeof slot === "function" ? slot() : slot)))
55115
+ ])
55116
+ };
55117
+ })
55118
+ ]), 1040, ["rowData"]))
55119
+ ], 2))
55063
55120
  ]),
55064
55121
  _: 2
55122
+ }, 1032, ["disabled", "content"])
55123
+ ]);
55124
+ }), 128))
55125
+ ])
55126
+ ])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
55127
+ createVNode(_component_el_tooltip, {
55128
+ "hide-after": 0,
55129
+ "show-after": 500,
55130
+ content: rowInfo.label || "",
55131
+ placement: "top-start",
55132
+ "popper-class": "detail-view-tooltip"
55133
+ }, {
55134
+ default: withCtx(() => [
55135
+ /* !checkIsElempentComponent(rowInfo) || */
55136
+ __props.readOnly ? withDirectives((openBlock(), createElementBlock("span", {
55137
+ key: 0,
55138
+ class: normalizeClass([
55139
+ "detial-row-item-label",
55140
+ props.model.indexOf("table") > -1 ? "model-table" : "",
55141
+ props.model.indexOf("vertical") > -1 ? `vertical ${!checkIsElempentComponent(rowInfo) ? "custom-vertical" : ""}` : "horizontal"
55142
+ ])
55143
+ }, [
55144
+ createTextVNode(toDisplayString(rowInfo.label || ""), 1)
55145
+ ], 2)), [
55146
+ [_directive_sline]
55147
+ ]) : createCommentVNode("", true)
55148
+ ]),
55149
+ _: 2
55150
+ }, 1032, ["content"]),
55151
+ createVNode(_component_el_tooltip, {
55152
+ "hide-after": 0,
55153
+ "show-after": 500,
55154
+ disabled: !(__props.readOnly && typeof rowInfo.value === "string"),
55155
+ content: rowInfo.value || "",
55156
+ placement: "top-start",
55157
+ "popper-class": "detail-view-tooltip"
55158
+ }, {
55159
+ default: withCtx(() => {
55160
+ var _a4;
55161
+ return [
55162
+ !rowInfo.component || __props.readOnly && (!isUploadComponent(rowInfo) || !rowInfo.value) ? (openBlock(), createElementBlock("span", {
55163
+ key: 0,
55164
+ class: normalizeClass([
55165
+ "detial-row-item-value",
55166
+ props.model.indexOf("table") > -1 ? "model-table" : "",
55167
+ props.model.indexOf("vertical") > -1 ? "vertical" : "horizontal"
55168
+ ])
55169
+ }, toDisplayString(rowInfo.value || __props.valueEmptyTag || ""), 3)) : (openBlock(), createElementBlock("span", {
55170
+ key: 1,
55171
+ class: normalizeClass([
55172
+ "detial-row-item-value",
55173
+ props.model.indexOf("table") > -1 ? "model-table" : ""
55174
+ ])
55065
55175
  }, [
55066
- ["cascader"].includes(item.component) ? {
55067
- name: "default",
55068
- fn: withCtx(({ data }) => [
55069
- createElementVNode("span", null, toDisplayString(data[item.labelField || "label"]), 1)
55176
+ createVNode(_component_el_form_item, {
55177
+ class: normalizeClass(["component-form-item", __props.readOnly && isUploadComponent(rowInfo) ? "hidden" : ""]),
55178
+ label: rowInfo.label,
55179
+ prop: `${props.formPropKey}.${index2}.${_index}.value`,
55180
+ rules: ((_a4 = rowInfo == null ? void 0 : rowInfo.params) == null ? void 0 : _a4.rules) || []
55181
+ }, {
55182
+ default: withCtx(() => [
55183
+ getDirectiveType(rowInfo) === "number" ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(rowInfo.component), mergeProps({
55184
+ key: 0,
55185
+ ref_for: true
55186
+ }, getComponentParams(rowInfo), {
55187
+ modelValue: rowInfo.value,
55188
+ "onUpdate:modelValue": ($event) => rowInfo.value = $event
55189
+ }, toHandlers(rowInfo.events), {
55190
+ rowData: rowInfo,
55191
+ class: "elementplus-component-item"
55192
+ }), createSlots({ _: 2 }, [
55193
+ renderList(rowInfo.slots || {}, (slot, slotName) => {
55194
+ return {
55195
+ name: slotName,
55196
+ fn: withCtx(() => [
55197
+ (openBlock(), createBlock(resolveDynamicComponent(typeof slot === "function" ? slot() : slot)))
55198
+ ])
55199
+ };
55200
+ })
55201
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "rowData"])), [
55202
+ [
55203
+ _directive_length,
55204
+ getDirectiveValue(rowInfo),
55205
+ void 0,
55206
+ { number: true }
55207
+ ]
55208
+ ]) : getDirectiveType(rowInfo) === "regex" ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(rowInfo.component), mergeProps({
55209
+ key: 1,
55210
+ ref_for: true
55211
+ }, getComponentParams(rowInfo), {
55212
+ modelValue: rowInfo.value,
55213
+ "onUpdate:modelValue": ($event) => rowInfo.value = $event
55214
+ }, toHandlers(rowInfo.events), {
55215
+ rowData: rowInfo,
55216
+ class: "elementplus-component-item"
55217
+ }), createSlots({ _: 2 }, [
55218
+ renderList(rowInfo.slots || {}, (slot, slotName) => {
55219
+ return {
55220
+ name: slotName,
55221
+ fn: withCtx(() => [
55222
+ (openBlock(), createBlock(resolveDynamicComponent(typeof slot === "function" ? slot() : slot)))
55223
+ ])
55224
+ };
55225
+ })
55226
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "rowData"])), [
55227
+ [
55228
+ _directive_length,
55229
+ getDirectiveValue(rowInfo),
55230
+ void 0,
55231
+ { regex: true }
55232
+ ]
55233
+ ]) : getDirectiveType(rowInfo) === "range" ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(rowInfo.component), mergeProps({
55234
+ key: 2,
55235
+ ref_for: true
55236
+ }, getComponentParams(rowInfo), {
55237
+ modelValue: rowInfo.value,
55238
+ "onUpdate:modelValue": ($event) => rowInfo.value = $event
55239
+ }, toHandlers(rowInfo.events), {
55240
+ rowData: rowInfo,
55241
+ class: "elementplus-component-item"
55242
+ }), createSlots({ _: 2 }, [
55243
+ renderList(rowInfo.slots || {}, (slot, slotName) => {
55244
+ return {
55245
+ name: slotName,
55246
+ fn: withCtx(() => [
55247
+ (openBlock(), createBlock(resolveDynamicComponent(typeof slot === "function" ? slot() : slot)))
55248
+ ])
55249
+ };
55250
+ })
55251
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "rowData"])), [
55252
+ [
55253
+ _directive_length,
55254
+ getDirectiveValue(rowInfo),
55255
+ void 0,
55256
+ { range: true }
55257
+ ]
55258
+ ]) : withDirectives((openBlock(), createBlock(resolveDynamicComponent(rowInfo.component), mergeProps({
55259
+ key: 3,
55260
+ ref_for: true
55261
+ }, getComponentParams(rowInfo), {
55262
+ modelValue: rowInfo.value,
55263
+ "onUpdate:modelValue": ($event) => rowInfo.value = $event
55264
+ }, toHandlers(rowInfo.events), {
55265
+ rowData: rowInfo,
55266
+ class: "elementplus-component-item"
55267
+ }), createSlots({ _: 2 }, [
55268
+ renderList(rowInfo.slots || {}, (slot, slotName) => {
55269
+ return {
55270
+ name: slotName,
55271
+ fn: withCtx(() => [
55272
+ (openBlock(), createBlock(resolveDynamicComponent(typeof slot === "function" ? slot() : slot)))
55273
+ ])
55274
+ };
55275
+ })
55276
+ ]), 1040, ["modelValue", "onUpdate:modelValue", "rowData"])), [
55277
+ [_directive_length, getDirectiveValue(rowInfo) || 50]
55278
+ ])
55070
55279
  ]),
55071
- key: "0"
55072
- } : void 0
55073
- ]), 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled", "size"])),
55074
- item.slot ? renderSlot(_ctx.$slots, item.slot, {
55075
- key: 0,
55076
- item,
55077
- formData
55078
- }, void 0, true) : createCommentVNode("", true)
55079
- ]),
55080
- _: 2
55081
- }, 1032, ["label", "prop", "required", "rules", "label-width", "error", "show-message", "inline-message", "size"])
55082
- ]),
55083
- _: 2
55084
- }, 1032, ["span", "xs", "sm", "md", "lg", "xl"]);
55085
- }), 128))
55086
- ]),
55087
- _: 3
55088
- }, 8, ["gutter"]),
55089
- renderSlot(_ctx.$slots, "footer", {
55090
- formData,
55091
- validate,
55092
- resetFields
55093
- }, void 0, true)
55280
+ _: 2
55281
+ }, 1032, ["class", "label", "prop", "rules"])
55282
+ ], 2))
55283
+ ];
55284
+ }),
55285
+ _: 2
55286
+ }, 1032, ["disabled", "content"])
55287
+ ], 64))
55288
+ ], 6);
55289
+ }), 128))
55290
+ ]);
55291
+ }), 128))
55292
+ ], 2)) : createCommentVNode("", true);
55293
+ };
55294
+ }
55295
+ });
55296
+ const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-c2469310"]]);
55297
+ const _hoisted_1$1 = { class: "title-image-view" };
55298
+ const _hoisted_2 = { class: "content-model-title" };
55299
+ const _hoisted_3 = { class: "title-text" };
55300
+ const _hoisted_4 = { class: "content-ui" };
55301
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
55302
+ __name: "DynamicFormTitle",
55303
+ props: {
55304
+ title: {
55305
+ type: String,
55306
+ default: ""
55307
+ }
55308
+ },
55309
+ setup(__props) {
55310
+ return (_ctx, _cache) => {
55311
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
55312
+ createElementVNode("div", _hoisted_2, [
55313
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "title-icon" }, null, -1)),
55314
+ renderSlot(_ctx.$slots, "title", {}, () => [
55315
+ createElementVNode("span", _hoisted_3, toDisplayString(__props.title), 1)
55316
+ ], true)
55094
55317
  ]),
55095
- _: 3
55096
- }, 16, ["model", "rules", "label-width", "label-position", "size", "disabled"]);
55318
+ createElementVNode("div", _hoisted_4, [
55319
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
55320
+ ])
55321
+ ]);
55097
55322
  };
55098
55323
  }
55099
- };
55100
- const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-926ee012"]]);
55324
+ });
55325
+ const NsFormTitle = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a0ddcbf6"]]);
55101
55326
  NsForm.install = (app2) => {
55102
55327
  app2.component(NsForm.name, NsForm);
55103
55328
  try {
@@ -55106,6 +55331,9 @@ NsForm.install = (app2) => {
55106
55331
  console.warn("组件库注册指令失败:", error);
55107
55332
  }
55108
55333
  };
55334
+ NsFormTitle.install = (app2) => {
55335
+ app2.component(NsFormTitle.name, NsFormTitle);
55336
+ };
55109
55337
  const ir = Math.min, L0 = Math.max, Rr = Math.round, Ot = (e6) => ({
55110
55338
  x: e6,
55111
55339
  y: e6
@@ -91340,11 +91568,12 @@ async function getEncryptSm2(publicKey, originalArr = [], isAdd04 = false, ciphe
91340
91568
  }
91341
91569
  const components = {
91342
91570
  NsVideo,
91343
- NsExcel: _sfc_main$7,
91571
+ NsExcel: _sfc_main$8,
91344
91572
  NsPdf,
91345
91573
  NsWord,
91346
91574
  NsOffice,
91347
91575
  NsForm,
91576
+ NsFormTitle,
91348
91577
  NsSaturationline: NsSaturationLine,
91349
91578
  NsImage,
91350
91579
  NsImg: NsImage,
@@ -91390,8 +91619,9 @@ const index = {
91390
91619
  };
91391
91620
  export {
91392
91621
  NsDialog,
91393
- _sfc_main$7 as NsExcel,
91622
+ _sfc_main$8 as NsExcel,
91394
91623
  NsForm,
91624
+ NsFormTitle,
91395
91625
  NsImage,
91396
91626
  NsImage as NsImg,
91397
91627
  NsMD,