sctj-components 1.1.21 → 1.1.22

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$w = {
130
130
  };
131
131
  const index$2 = "";
132
132
  const index$1 = "";
133
- const index_vue_vue_type_style_index_0_scoped_9fdf9efd_lang = "";
133
+ const index_vue_vue_type_style_index_0_scoped_f2c603ea_lang = "";
134
134
  const index_vue_vue_type_style_index_1_lang = "";
135
135
  const _hoisted_1$n = { class: "upload-file" };
136
136
  const _hoisted_2$g = { class: "el-upload__tip" };
@@ -138,13 +138,17 @@ const _hoisted_3$c = { style: { "color": "#f56c6c" } };
138
138
  const _hoisted_4$b = { style: { "color": "#f56c6c" } };
139
139
  const _hoisted_5$8 = ["title"];
140
140
  const _hoisted_6$6 = { class: "ele-upload-list__item-content-action" };
141
- const _hoisted_7$4 = { style: { "display": "flex", "justify-content": "space-between" } };
142
- const _hoisted_8$4 = ["id"];
143
- const _hoisted_9$3 = {
141
+ const _hoisted_7$4 = {
142
+ key: 2,
143
+ class: "upload-file-list upload-file-list--empty"
144
+ };
145
+ const _hoisted_8$4 = { style: { "display": "flex", "justify-content": "space-between" } };
146
+ const _hoisted_9$3 = ["id"];
147
+ const _hoisted_10$3 = {
144
148
  key: 0,
145
149
  class: "preview-toolbar"
146
150
  };
147
- const _hoisted_10$3 = { class: "previewDialogContent" };
151
+ const _hoisted_11$2 = { class: "previewDialogContent" };
148
152
  const _sfc_main$v = {
149
153
  __name: "index",
150
154
  props: {
@@ -498,7 +502,7 @@ const _sfc_main$v = {
498
502
  key: "0"
499
503
  } : void 0
500
504
  ]), 1040, ["action", "http-request", "file-list", "limit", "drag", "headers"])) : createCommentVNode("", true),
501
- __props.showFiles ? (openBlock(), createBlock(TransitionGroup, {
505
+ __props.showFiles && fileList.value.length > 0 ? (openBlock(), createBlock(TransitionGroup, {
502
506
  key: 1,
503
507
  class: "upload-file-list el-upload-list el-upload-list--text",
504
508
  name: "el-fade-in-linear",
@@ -551,7 +555,7 @@ const _sfc_main$v = {
551
555
  }), 128))
552
556
  ]),
553
557
  _: 1
554
- })) : createCommentVNode("", true),
558
+ })) : __props.showFiles ? (openBlock(), createElementBlock("div", _hoisted_7$4, " \u6682\u65E0\u9644\u4EF6 ")) : createCommentVNode("", true),
555
559
  createVNode(_component_el_dialog, {
556
560
  modelValue: previewVisible.value,
557
561
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => previewVisible.value = $event),
@@ -562,12 +566,12 @@ const _sfc_main$v = {
562
566
  "before-close": handlePreviewClose
563
567
  }, {
564
568
  header: withCtx(({ close, titleId, titleClass }) => [
565
- createElementVNode("div", _hoisted_7$4, [
569
+ createElementVNode("div", _hoisted_8$4, [
566
570
  createElementVNode("div", {
567
571
  id: titleId,
568
572
  class: normalizeClass(titleClass)
569
- }, "\u6587\u4EF6\u9884\u89C8", 10, _hoisted_8$4),
570
- previewType.value === "pdf" || previewType.value === "docx" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
573
+ }, "\u6587\u4EF6\u9884\u89C8", 10, _hoisted_9$3),
574
+ previewType.value === "pdf" || previewType.value === "docx" ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
571
575
  createVNode(_component_el_button, {
572
576
  onClick: _cache[0] || (_cache[0] = ($event) => saclc(-0.1)),
573
577
  title: "\u7F29\u5C0F",
@@ -593,7 +597,7 @@ const _sfc_main$v = {
593
597
  ])
594
598
  ]),
595
599
  default: withCtx(() => [
596
- createElementVNode("div", _hoisted_10$3, [
600
+ createElementVNode("div", _hoisted_11$2, [
597
601
  previewType.value === "pdf" ? (openBlock(), createBlock(unref(VueOfficePdf), {
598
602
  key: 0,
599
603
  src: previewUrl.value,
@@ -613,7 +617,7 @@ const _sfc_main$v = {
613
617
  _: 1
614
618
  }, 8, ["modelValue"]),
615
619
  previewVisibleImg.value ? (openBlock(), createBlock(_component_el_image_viewer, {
616
- key: 2,
620
+ key: 3,
617
621
  "url-list": previewUrl.value,
618
622
  "show-progress": "",
619
623
  onClose: _cache[3] || (_cache[3] = ($event) => previewVisibleImg.value = false)
@@ -622,7 +626,7 @@ const _sfc_main$v = {
622
626
  };
623
627
  }
624
628
  };
625
- const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-9fdf9efd"]]);
629
+ const SCTJFileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f2c603ea"]]);
626
630
  const index_vue_vue_type_style_index_0_scoped_672e5149_lang = "";
627
631
  const _hoisted_1$m = { class: "component-upload-image" };
628
632
  const _hoisted_2$f = {