sctj-components 1.0.82 → 1.0.84

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.
@@ -130,7 +130,7 @@ const _sfc_main$v = {
130
130
  };
131
131
  const index$2 = "";
132
132
  const index$1 = "";
133
- const index_vue_vue_type_style_index_0_scoped_006fbc77_lang = "";
133
+ const index_vue_vue_type_style_index_0_scoped_3ae88961_lang = "";
134
134
  const index_vue_vue_type_style_index_1_lang = "";
135
135
  const _hoisted_1$m = { class: "upload-file" };
136
136
  const _hoisted_2$f = { class: "el-upload__tip" };
@@ -217,6 +217,7 @@ const _sfc_main$u = {
217
217
  const uploadList = ref$1([]);
218
218
  const fileList = ref$1([]);
219
219
  const previewVisible = ref$1(false);
220
+ const previewVisibleImg = ref$1(false);
220
221
  const previewUrl = ref$1("");
221
222
  const previewType = ref$1("");
222
223
  const loadingInstance = ref$1(null);
@@ -357,6 +358,11 @@ const _sfc_main$u = {
357
358
  ElMessage.error(`\u6682\u4E0D\u652F\u6301${fileExt}\u6587\u4EF6\u7C7B\u578B\u7684\u5728\u7EBF\u9884\u89C8,\u8BF7\u4E0B\u8F7D\u540E\u67E5\u770B\uFF01`);
358
359
  return;
359
360
  }
361
+ if (previewType.value === "image") {
362
+ previewUrl.value = [file.url];
363
+ previewVisibleImg.value = true;
364
+ return;
365
+ }
360
366
  previewUrl.value = file.url;
361
367
  previewVisible.value = true;
362
368
  };
@@ -369,8 +375,8 @@ const _sfc_main$u = {
369
375
  const _component_el_button = resolveComponent("el-button");
370
376
  const _component_el_upload = resolveComponent("el-upload");
371
377
  const _component_el_icon = resolveComponent("el-icon");
372
- const _component_el_image = resolveComponent("el-image");
373
378
  const _component_el_dialog = resolveComponent("el-dialog");
379
+ const _component_el_image_viewer = resolveComponent("el-image-viewer");
374
380
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
375
381
  !__props.disabled ? (openBlock(), createBlock(_component_el_upload, mergeProps({
376
382
  key: 0,
@@ -502,22 +508,22 @@ const _sfc_main$u = {
502
508
  previewType.value === "xlsx" ? (openBlock(), createBlock(unref(VueOfficeExcel), {
503
509
  key: 2,
504
510
  src: previewUrl.value
505
- }, null, 8, ["src"])) : createCommentVNode("", true),
506
- previewType.value === "image" ? (openBlock(), createBlock(_component_el_image, {
507
- key: 3,
508
- src: previewUrl.value,
509
- style: { "width": "100%", "height": "99%" },
510
- fit: "contain"
511
511
  }, null, 8, ["src"])) : createCommentVNode("", true)
512
512
  ])
513
513
  ]),
514
514
  _: 1
515
- }, 8, ["modelValue"])
515
+ }, 8, ["modelValue"]),
516
+ previewVisibleImg.value ? (openBlock(), createBlock(_component_el_image_viewer, {
517
+ key: 2,
518
+ "url-list": previewUrl.value,
519
+ "show-progress": "",
520
+ onClose: _cache[1] || (_cache[1] = ($event) => previewVisibleImg.value = false)
521
+ }, null, 8, ["url-list"])) : createCommentVNode("", true)
516
522
  ]);
517
523
  };
518
524
  }
519
525
  };
520
- const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-006fbc77"]]);
526
+ const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-3ae88961"]]);
521
527
  const index_vue_vue_type_style_index_0_scoped_672e5149_lang = "";
522
528
  const _hoisted_1$l = { class: "component-upload-image" };
523
529
  const _hoisted_2$e = {
@@ -2547,8 +2553,8 @@ const _sfc_main$i = {
2547
2553
  }
2548
2554
  };
2549
2555
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-056cfdde"]]);
2550
- const index_vue_vue_type_style_index_0_scoped_0a171bf0_lang = "";
2551
- const _withScopeId$7 = (n) => (pushScopeId("data-v-0a171bf0"), n = n(), popScopeId(), n);
2556
+ const index_vue_vue_type_style_index_0_scoped_b07303f6_lang = "";
2557
+ const _withScopeId$7 = (n) => (pushScopeId("data-v-b07303f6"), n = n(), popScopeId(), n);
2552
2558
  const _hoisted_1$d = {
2553
2559
  key: 0,
2554
2560
  class: "search-container"
@@ -2617,6 +2623,10 @@ const _sfc_main$h = {
2617
2623
  reserveSelection: true
2618
2624
  })
2619
2625
  },
2626
+ rowKey: {
2627
+ type: String,
2628
+ default: ""
2629
+ },
2620
2630
  treeProps: {
2621
2631
  type: Object,
2622
2632
  default: () => {
@@ -2967,7 +2977,7 @@ const _sfc_main$h = {
2967
2977
  "header-cell-class-name": !__props.selectOptions.multiple ? selectionClass : "",
2968
2978
  onSelectionChange: selectionChange,
2969
2979
  "row-class-name": handleRowClassName,
2970
- "row-key": __props.selectOptions.valueKey
2980
+ "row-key": __props.rowKey || __props.selectOptions.valueKey
2971
2981
  }, {
2972
2982
  default: withCtx(() => [
2973
2983
  __props.selectOptions.show ? (openBlock(), createBlock(_component_el_table_column, {
@@ -3094,7 +3104,7 @@ const _sfc_main$h = {
3094
3104
  };
3095
3105
  }
3096
3106
  };
3097
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-0a171bf0"]]);
3107
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b07303f6"]]);
3098
3108
  const index_vue_vue_type_style_index_0_scoped_d4cb1fae_lang = "";
3099
3109
  const _sfc_main$g = {
3100
3110
  __name: "index",