xyvcard-ste 0.0.1 → 0.0.2

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.
@@ -1,7 +1,7 @@
1
- var Oe = Object.defineProperty;
2
- var Ve = (h, e, l) => e in h ? Oe(h, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : h[e] = l;
3
- var X = (h, e, l) => Ve(h, typeof e != "symbol" ? e + "" : e, l);
4
- import { defineComponent as me, mergeModels as G, ref as x, useModel as fe, watch as Ce, nextTick as qe, onUnmounted as Se, resolveComponent as y, createBlock as P, openBlock as A, withCtx as r, createVNode as i, createElementBlock as N, createCommentVNode as ve, createElementVNode as b, createTextVNode as w, toDisplayString as E, reactive as ue, computed as de, Fragment as se, unref as f, renderList as Ie } from "vue";
1
+ var Ve = Object.defineProperty;
2
+ var Ce = (h, e, l) => e in h ? Ve(h, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : h[e] = l;
3
+ var X = (h, e, l) => Ce(h, typeof e != "symbol" ? e + "" : e, l);
4
+ import { defineComponent as me, mergeModels as G, ref as x, useModel as fe, watch as Oe, nextTick as qe, onUnmounted as Se, resolveComponent as y, createBlock as P, openBlock as A, withCtx as r, createVNode as i, createElementBlock as N, createCommentVNode as ve, createElementVNode as b, createTextVNode as w, toDisplayString as E, reactive as ue, computed as de, Fragment as se, unref as q, renderList as Ie } from "vue";
5
5
  import { ElMessageBox as pe, ElMessage as U, genFileId as ke } from "element-plus";
6
6
  import { useI18n as ge } from "vue-i18n";
7
7
  import { useUserStore as a, clearEmpty as m, request as u, fileApi as ie, EnumDict as ce, CustomBizDict as Ae } from "jmash-core";
@@ -165,10 +165,10 @@ const le = new Te(), xe = { class: "el-upload__text" }, Ee = {
165
165
  }),
166
166
  emits: /* @__PURE__ */ G(["filesResponse", "uploadFileList"], ["update:modelValue"]),
167
167
  setup(h, { expose: e, emit: l }) {
168
- const { t: s } = ge(), $ = x(ie.uploadUrl()), t = x(ie.authHeader()), V = x(), C = fe(h, "modelValue"), S = x([]), M = x("");
168
+ const { t: s } = ge(), $ = x(ie.uploadUrl()), t = x(ie.authHeader()), C = x(), O = fe(h, "modelValue"), S = x([]), M = x("");
169
169
  let L = null;
170
170
  const B = h, K = l, Q = () => {
171
- C.value = !1;
171
+ O.value = !1;
172
172
  }, Z = async (d) => {
173
173
  if (!d || d.status !== "ready") return;
174
174
  const p = d.raw, _ = [".mp4", ".flv", ".mov", ".avi", ".mkv"], n = p.name.toLowerCase();
@@ -179,7 +179,7 @@ const le = new Te(), xe = { class: "el-upload__text" }, Ee = {
179
179
  type: "warning"
180
180
  }).catch(() => {
181
181
  const v = S.value.findIndex(
182
- (O) => O.uid === d.uid
182
+ (V) => V.uid === d.uid
183
183
  );
184
184
  v !== -1 && S.value.splice(v, 1);
185
185
  });
@@ -206,7 +206,7 @@ const le = new Te(), xe = { class: "el-upload__text" }, Ee = {
206
206
  fileSize: p.size
207
207
  };
208
208
  U({ message: s("video.uploadSuccess"), type: "success" }), M.value = _.fileSrc, L = null, K("filesResponse", _), K("uploadFileList", p), setTimeout(() => {
209
- C.value = !1;
209
+ O.value = !1;
210
210
  }, 800);
211
211
  } catch (_) {
212
212
  console.error("处理上传结果失败:", _), U.error(
@@ -214,9 +214,9 @@ const le = new Te(), xe = { class: "el-upload__text" }, Ee = {
214
214
  ), k();
215
215
  }
216
216
  }, te = (d) => {
217
- V.value.clearFiles();
217
+ C.value.clearFiles();
218
218
  const p = d[0];
219
- p.uid = ke(), V.value.handleStart(p);
219
+ p.uid = ke(), C.value.handleStart(p);
220
220
  }, Y = () => {
221
221
  k();
222
222
  }, I = () => {
@@ -227,15 +227,15 @@ const le = new Te(), xe = { class: "el-upload__text" }, Ee = {
227
227
  U.warning(s("video.pleaseSelectVideo"));
228
228
  return;
229
229
  }
230
- V.value.submit();
230
+ C.value.submit();
231
231
  }
232
232
  const z = () => {
233
- V.value && (V.value.clearFiles(), S.value = []);
233
+ C.value && (C.value.clearFiles(), S.value = []);
234
234
  }, k = () => {
235
235
  L && URL.revokeObjectURL(L), M.value = "", L = null;
236
236
  };
237
- Ce(
238
- C,
237
+ Oe(
238
+ O,
239
239
  async (d, p) => {
240
240
  d && !p && (await qe(), k(), z());
241
241
  },
@@ -256,25 +256,25 @@ const le = new Te(), xe = { class: "el-upload__text" }, Ee = {
256
256
  });
257
257
  });
258
258
  return Se(() => {
259
- k(), z(), V.value && V.value.clearFiles();
259
+ k(), z(), C.value && C.value.clearFiles();
260
260
  }), e({ clearFileList: z, clearPreview: k }), (d, p) => {
261
- const _ = y("upload-filled"), n = y("el-icon"), o = y("el-upload"), q = y("el-button"), c = y("el-dialog");
261
+ const _ = y("upload-filled"), n = y("el-icon"), o = y("el-upload"), f = y("el-button"), c = y("el-dialog");
262
262
  return A(), P(c, {
263
- modelValue: C.value,
264
- "onUpdate:modelValue": p[1] || (p[1] = (v) => C.value = v),
263
+ modelValue: O.value,
264
+ "onUpdate:modelValue": p[1] || (p[1] = (v) => O.value = v),
265
265
  width: "700px",
266
266
  "close-on-click-modal": !1,
267
267
  onClose: I
268
268
  }, {
269
269
  footer: r(() => [
270
270
  b("div", $e, [
271
- i(q, { onClick: Q }, {
271
+ i(f, { onClick: Q }, {
272
272
  default: r(() => [
273
273
  w(E(d.$t("common.cancel")), 1)
274
274
  ]),
275
275
  _: 1
276
276
  }),
277
- i(q, {
277
+ i(f, {
278
278
  type: "primary",
279
279
  onClick: F
280
280
  }, {
@@ -288,7 +288,7 @@ const le = new Te(), xe = { class: "el-upload__text" }, Ee = {
288
288
  default: r(() => [
289
289
  i(o, {
290
290
  ref_key: "uploadRef",
291
- ref: V,
291
+ ref: C,
292
292
  "file-list": S.value,
293
293
  "onUpdate:fileList": p[0] || (p[0] = (v) => S.value = v),
294
294
  action: $.value,
@@ -506,7 +506,7 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
506
506
  updateMask: "",
507
507
  questionOptions: []
508
508
  });
509
- const V = ue({
509
+ const C = ue({
510
510
  quType: [
511
511
  {
512
512
  required: !0,
@@ -530,11 +530,11 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
530
530
  ]
531
531
  });
532
532
  console.log(j.quTypeEnum.values, "=>Dict.quTypeEnum ");
533
- const C = x(!1), S = () => {
534
- C.value = !0;
533
+ const O = x(!1), S = () => {
534
+ O.value = !0;
535
535
  };
536
536
  function M() {
537
- console.log(t.quVideoSrc, "=> form.quVideoSrc"), t.quVideoSrc = "", C.value = !0, qe(() => {
537
+ console.log(t.quVideoSrc, "=> form.quVideoSrc"), t.quVideoSrc = "", O.value = !0, qe(() => {
538
538
  const n = s.value;
539
539
  n && (n.clearPreview(), n.clearFileList());
540
540
  });
@@ -561,24 +561,32 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
561
561
  }
562
562
  t.questionOptions && t.questionOptions.length > n && t.questionOptions.splice(n, 1);
563
563
  }, Q = de(() => t.quType === j.quTypeEnum.values[0].key), Z = () => t.questionOptions ? t.questionOptions.filter((n) => n.correctAnswer).length : 0, ee = (n) => {
564
- t.questionOptions && (Q.value ? t.questionOptions.forEach((o, q) => {
565
- o.correctAnswer = q === n;
564
+ t.questionOptions && (Q.value ? t.questionOptions.forEach((o, f) => {
565
+ o.correctAnswer = f === n;
566
566
  }) : t.questionOptions[n].correctAnswer = !t.questionOptions[n].correctAnswer);
567
- }, te = (n, o, q) => {
567
+ }, te = (n, o, f) => {
568
568
  if (!o || !Array.isArray(o))
569
- return q(new Error("选项数据无效!"));
570
- if (o.some((O) => {
569
+ return f(new Error("选项数据无效!"));
570
+ if (o.some((V) => {
571
571
  var H;
572
- return !((H = O.optionContent) != null && H.trim());
572
+ return !((H = V.optionContent) != null && H.trim());
573
573
  }))
574
- return q(new Error("所有选项内容不能为空!"));
575
- if (!o.some((O) => O.correctAnswer))
576
- return q(new Error("请至少设置一个正确答案!"));
577
- q();
574
+ return f(new Error("所有选项内容不能为空!"));
575
+ if (!o.some((V) => V.correctAnswer))
576
+ return f(new Error("请至少设置一个正确答案!"));
577
+ f();
578
578
  }, Y = de({
579
- get: () => !t.questionOptions || t.questionOptions.length === 0 ? "" : t.questionOptions[0].correctAnswer ? "正确" : "错误",
579
+ get: () => {
580
+ var o;
581
+ return !!((o = t.questionOptions) == null ? void 0 : o.find(
582
+ (f) => f.correctAnswer
583
+ ));
584
+ },
580
585
  set: (n) => {
581
- t.questionOptions || (t.questionOptions = []), t.questionOptions.length === 0 && t.questionOptions.push({ optionContent: "", correctAnswer: !1 }), t.questionOptions[0].optionContent = n, t.questionOptions[0].correctAnswer = n === "正确";
586
+ n !== null && (t.questionOptions = [
587
+ { optionContent: "正确", correctAnswer: n, quId: t.quId },
588
+ { optionContent: "错误", correctAnswer: !n, quId: t.quId }
589
+ ]);
582
590
  }
583
591
  }), I = fe(h, "modelValue"), F = h;
584
592
  function z(n) {
@@ -589,13 +597,13 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
589
597
  Object.assign(t, n), je.findList({ quId: F.entityKey.quId }).then(({ data: o }) => {
590
598
  if (console.log(o, "=>optionsData "), t.quType === "judge_choice")
591
599
  if (o.results && o.results.length > 0) {
592
- const q = o.results[0];
600
+ const f = o.results[0];
593
601
  t.questionOptions = [
594
602
  {
595
- optionId: q.optionId,
596
- optionContent: q.optionContent,
597
- correctAnswer: q.correctAnswer,
598
- quId: q.quId
603
+ optionId: f.optionId,
604
+ optionContent: f.optionContent,
605
+ correctAnswer: f.correctAnswer,
606
+ quId: f.quId
599
607
  }
600
608
  ];
601
609
  } else
@@ -628,8 +636,8 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
628
636
  const p = async () => {
629
637
  var n;
630
638
  await ((n = $.value) == null ? void 0 : n.validate((o) => {
631
- var q;
632
- o && (t.quId && ((q = t.questionOptions) == null || q.forEach((c) => {
639
+ var f;
640
+ o && (t.quId && ((f = t.questionOptions) == null || f.forEach((c) => {
633
641
  c.quId = t.quId;
634
642
  })), d.value ? le.update({
635
643
  ...t,
@@ -654,7 +662,7 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
654
662
  I.value && (I.value = !1);
655
663
  }
656
664
  return (n, o) => {
657
- const q = y("jmash-select"), c = y("el-form-item"), v = y("el-col"), O = y("el-input"), H = y("jmash-single-image-upload"), R = y("el-button"), re = y("el-radio"), he = y("el-radio-group"), _e = y("el-row"), we = y("el-form"), be = y("el-dialog");
665
+ const f = y("jmash-select"), c = y("el-form-item"), v = y("el-col"), V = y("el-input"), H = y("jmash-single-image-upload"), R = y("el-button"), re = y("el-radio"), he = y("el-radio-group"), _e = y("el-row"), we = y("el-form"), be = y("el-dialog");
658
666
  return A(), N(se, null, [
659
667
  i(be, {
660
668
  modelValue: I.value,
@@ -686,9 +694,9 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
686
694
  i(we, {
687
695
  ref_key: "questionsFormRef",
688
696
  ref: $,
689
- model: f(t),
697
+ model: q(t),
690
698
  "label-width": "120px",
691
- rules: V
699
+ rules: C
692
700
  }, {
693
701
  default: r(() => [
694
702
  i(_e, null, {
@@ -700,10 +708,10 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
700
708
  prop: "quType"
701
709
  }, {
702
710
  default: r(() => [
703
- i(q, {
704
- modelValue: f(t).quType,
705
- "onUpdate:modelValue": o[0] || (o[0] = (g) => f(t).quType = g),
706
- data: f(j).quTypeEnum.values,
711
+ i(f, {
712
+ modelValue: q(t).quType,
713
+ "onUpdate:modelValue": o[0] || (o[0] = (g) => q(t).quType = g),
714
+ data: q(j).quTypeEnum.values,
707
715
  placeholder: n.$t("questions.quType"),
708
716
  clearable: "",
709
717
  class: "w-full"
@@ -721,10 +729,10 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
721
729
  prop: "complexity"
722
730
  }, {
723
731
  default: r(() => [
724
- i(q, {
725
- modelValue: f(t).complexity,
726
- "onUpdate:modelValue": o[1] || (o[1] = (g) => f(t).complexity = g),
727
- data: f(j).complexityEnum.values,
732
+ i(f, {
733
+ modelValue: q(t).complexity,
734
+ "onUpdate:modelValue": o[1] || (o[1] = (g) => q(t).complexity = g),
735
+ data: q(j).complexityEnum.values,
728
736
  placeholder: n.$t("questions.complexity"),
729
737
  clearable: "",
730
738
  class: "w-full"
@@ -742,9 +750,9 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
742
750
  prop: "categoryId"
743
751
  }, {
744
752
  default: r(() => [
745
- i(O, {
746
- modelValue: f(t).categoryId,
747
- "onUpdate:modelValue": o[2] || (o[2] = (g) => f(t).categoryId = g),
753
+ i(V, {
754
+ modelValue: q(t).categoryId,
755
+ "onUpdate:modelValue": o[2] || (o[2] = (g) => q(t).categoryId = g),
748
756
  modelModifiers: { number: !0 },
749
757
  placeholder: n.$t("questions.categoryId"),
750
758
  clearable: "",
@@ -763,9 +771,9 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
763
771
  prop: "knowledgePoint"
764
772
  }, {
765
773
  default: r(() => [
766
- i(O, {
767
- modelValue: f(t).knowledgePoint,
768
- "onUpdate:modelValue": o[3] || (o[3] = (g) => f(t).knowledgePoint = g),
774
+ i(V, {
775
+ modelValue: q(t).knowledgePoint,
776
+ "onUpdate:modelValue": o[3] || (o[3] = (g) => q(t).knowledgePoint = g),
769
777
  placeholder: n.$t("questions.knowledgePoint"),
770
778
  "enum-type": "jmash.rbac.protobuf.UserStatus",
771
779
  clearable: "",
@@ -784,9 +792,9 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
784
792
  prop: "quContent"
785
793
  }, {
786
794
  default: r(() => [
787
- i(O, {
788
- modelValue: f(t).quContent,
789
- "onUpdate:modelValue": o[4] || (o[4] = (g) => f(t).quContent = g),
795
+ i(V, {
796
+ modelValue: q(t).quContent,
797
+ "onUpdate:modelValue": o[4] || (o[4] = (g) => q(t).quContent = g),
790
798
  placeholder: n.$t("questions.quContent"),
791
799
  clearable: "",
792
800
  class: "w-full"
@@ -805,7 +813,7 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
805
813
  }, {
806
814
  default: r(() => [
807
815
  i(H, {
808
- "picture-url": f(t).quImgSrc,
816
+ "picture-url": q(t).quImgSrc,
809
817
  onImageSrc: z,
810
818
  width: 80,
811
819
  type: "trans"
@@ -824,9 +832,9 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
824
832
  }, {
825
833
  default: r(() => [
826
834
  b("div", null, [
827
- f(t).quVideoSrc ? (A(), N(se, { key: 0 }, [
835
+ q(t).quVideoSrc ? (A(), N(se, { key: 0 }, [
828
836
  b("video", {
829
- src: f(t).quVideoSrc,
837
+ src: q(t).quVideoSrc,
830
838
  controls: "",
831
839
  width: "400",
832
840
  height: "250",
@@ -864,7 +872,7 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
864
872
  ]),
865
873
  _: 1
866
874
  }),
867
- f(t).quType !== "judge_choice" ? (A(), P(v, {
875
+ q(t).quType !== "judge_choice" ? (A(), P(v, {
868
876
  key: 0,
869
877
  span: 24
870
878
  }, {
@@ -879,7 +887,7 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
879
887
  default: r(() => {
880
888
  var g;
881
889
  return [
882
- (A(!0), N(se, null, Ie(f(t).questionOptions, (T, W) => {
890
+ (A(!0), N(se, null, Ie(q(t).questionOptions, (T, W) => {
883
891
  var ae;
884
892
  return A(), N("div", {
885
893
  key: T.optionId || W,
@@ -887,7 +895,7 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
887
895
  }, [
888
896
  b("div", Fe, [
889
897
  b("span", De, E(String.fromCharCode(65 + W)), 1),
890
- i(O, {
898
+ i(V, {
891
899
  modelValue: T.optionContent,
892
900
  "onUpdate:modelValue": (ne) => T.optionContent = ne,
893
901
  placeholder: "请输入选项内容",
@@ -907,7 +915,7 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
907
915
  ]),
908
916
  _: 2
909
917
  }, 1032, ["onClick", "plain", "disabled"]),
910
- (((ae = f(t).questionOptions) == null ? void 0 : ae.length) || 0) > 2 ? (A(), P(R, {
918
+ (((ae = q(t).questionOptions) == null ? void 0 : ae.length) || 0) > 2 ? (A(), P(R, {
911
919
  key: 0,
912
920
  onClick: (ne) => K(W),
913
921
  type: "danger",
@@ -926,14 +934,14 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
926
934
  i(R, {
927
935
  type: "primary",
928
936
  onClick: B,
929
- disabled: (((g = f(t).questionOptions) == null ? void 0 : g.length) || 0) >= 8,
937
+ disabled: (((g = q(t).questionOptions) == null ? void 0 : g.length) || 0) >= 8,
930
938
  class: "add-option-btn",
931
939
  style: { "margin-top": "10px" }
932
940
  }, {
933
941
  default: r(() => {
934
942
  var T;
935
943
  return [
936
- w(" + 新增选项 (" + E(((T = f(t).questionOptions) == null ? void 0 : T.length) || 0) + " / 8) ", 1)
944
+ w(" + 新增选项 (" + E(((T = q(t).questionOptions) == null ? void 0 : T.length) || 0) + " / 8) ", 1)
937
945
  ];
938
946
  }),
939
947
  _: 1
@@ -959,13 +967,13 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
959
967
  "onUpdate:modelValue": o[5] || (o[5] = (g) => Y.value = g)
960
968
  }, {
961
969
  default: r(() => [
962
- i(re, { label: "正确" }, {
970
+ i(re, { label: !0 }, {
963
971
  default: r(() => [...o[12] || (o[12] = [
964
972
  w("正确", -1)
965
973
  ])]),
966
974
  _: 1
967
975
  }),
968
- i(re, { label: "错误" }, {
976
+ i(re, { label: !1 }, {
969
977
  default: r(() => [...o[13] || (o[13] = [
970
978
  w("错误", -1)
971
979
  ])]),
@@ -987,9 +995,9 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
987
995
  prop: "answerAnalysis"
988
996
  }, {
989
997
  default: r(() => [
990
- i(O, {
991
- modelValue: f(t).answerAnalysis,
992
- "onUpdate:modelValue": o[6] || (o[6] = (g) => f(t).answerAnalysis = g),
998
+ i(V, {
999
+ modelValue: q(t).answerAnalysis,
1000
+ "onUpdate:modelValue": o[6] || (o[6] = (g) => q(t).answerAnalysis = g),
993
1001
  placeholder: n.$t("questions.answerAnalysis"),
994
1002
  clearable: "",
995
1003
  class: "w-full",
@@ -1015,15 +1023,15 @@ const je = new Re(), ze = ["src"], Be = { class: "video-actions" }, Fe = { class
1015
1023
  i(Me, {
1016
1024
  ref_key: "videoUploadDialogRef",
1017
1025
  ref: s,
1018
- modelValue: C.value,
1019
- "onUpdate:modelValue": o[8] || (o[8] = (g) => C.value = g),
1026
+ modelValue: O.value,
1027
+ "onUpdate:modelValue": o[8] || (o[8] = (g) => O.value = g),
1020
1028
  "video-max-size": 800,
1021
1029
  onFilesResponse: L
1022
1030
  }, null, 8, ["modelValue"])
1023
1031
  ], 64);
1024
1032
  };
1025
1033
  }
1026
- }), Ke = /* @__PURE__ */ ye(Ne, [["__scopeId", "data-v-065dc509"]]), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1034
+ }), Ke = /* @__PURE__ */ ye(Ne, [["__scopeId", "data-v-02102a27"]]), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1027
1035
  __proto__: null,
1028
1036
  default: Ke
1029
1037
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as Z, ref as w, reactive as D, resolveComponent as i, resolveDirective as ee, createElementBlock as U, openBlock as r, createElementVNode as I, createVNode as n, createBlock as f, createCommentVNode as h, withCtx as o, withKeys as T, unref as a, createTextVNode as d, toDisplayString as p, withDirectives as c, isRef as Q } from "vue";
2
2
  import { useTableHooks as le } from "jmash-core";
3
3
  import { useI18n as te } from "vue-i18n";
4
- import { q as oe, D as k, a as ne } from "./edit-BOxnWX1h.mjs";
4
+ import { q as oe, D as k, a as ne } from "./edit-ZDEt7oQ4.mjs";
5
5
  const ae = { class: "app-container" }, ue = { class: "search-container" }, se = ["onClick"], ie = ["onClick"], fe = /* @__PURE__ */ Z({
6
6
  __name: "index",
7
7
  setup(re) {
package/dist/index.mjs CHANGED
@@ -109,7 +109,7 @@ function d(e) {
109
109
  let o = e.global.getLocaleMessage("en");
110
110
  o = n(o, s), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", o);
111
111
  }
112
- const l = /* @__PURE__ */ Object.assign({ "./views/ste/ste-question-category/edit.vue": () => import("./edit-dr3RT3zy.mjs").then((e) => e.e), "./views/ste/ste-question-category/index.vue": () => import("./index-C5DhiXL9.mjs"), "./views/ste/ste-questions/edit.vue": () => import("./edit-BOxnWX1h.mjs").then((e) => e.e), "./views/ste/ste-questions/index.vue": () => import("./index-Bzl6voD_.mjs") }), c = {
112
+ const l = /* @__PURE__ */ Object.assign({ "./views/ste/ste-question-category/edit.vue": () => import("./edit-dr3RT3zy.mjs").then((e) => e.e), "./views/ste/ste-question-category/index.vue": () => import("./index-C5DhiXL9.mjs"), "./views/ste/ste-questions/edit.vue": () => import("./edit-ZDEt7oQ4.mjs").then((e) => e.e), "./views/ste/ste-questions/index.vue": () => import("./index-CYNy3sEq.mjs") }), c = {
113
113
  install(e) {
114
114
  a(l, 7), d(i);
115
115
  }
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .position-center[data-v-5af346d9]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-5af346d9]{position:absolute;right:0;top:0;margin-top:8px}.video-preview[data-v-12813f5b]{margin-top:20px;padding:10px;border:1px solid #e6e6e6;border-radius:4px;width:100%;box-sizing:border-box}.video-preview video[data-v-12813f5b]{width:100%;max-height:300px;object-fit:contain;border-radius:4px}[data-v-12813f5b] .el-upload-dragger{width:100%;height:auto;padding:30px 0;box-sizing:border-box}[data-v-12813f5b] .el-dialog__body{padding:20px;box-sizing:border-box}.fakeLive[data-v-065dc509]{padding:8px 10px;border:1px solid #dcdfe6;border-color:#dcdfe6;background:#fff;cursor:pointer;color:#606266;border-radius:4px;margin-right:10px}.option-item[data-v-065dc509]{margin-bottom:10px;padding:8px;border:1px solid #ebeef5;border-radius:4px;width:100%}.option-header[data-v-065dc509]{display:flex;align-items:center;gap:10px}.option-letter[data-v-065dc509]{display:inline-block;width:30px;height:30px;line-height:30px;text-align:center;background:#e6e6e6;border-radius:4px;font-weight:700}.option-input[data-v-065dc509]{flex:1;min-width:200px}.correct-btn[data-v-065dc509]{width:100px}.add-option-btn[data-v-065dc509]{padding:8px 20px}.remove-btn[data-v-065dc509]{width:80px}
1
+ .position-center[data-v-5af346d9]{position:absolute;right:0;top:30%;transform:translateY(-30%)}.plus-position[data-v-5af346d9]{position:absolute;right:0;top:0;margin-top:8px}.video-preview[data-v-12813f5b]{margin-top:20px;padding:10px;border:1px solid #e6e6e6;border-radius:4px;width:100%;box-sizing:border-box}.video-preview video[data-v-12813f5b]{width:100%;max-height:300px;object-fit:contain;border-radius:4px}[data-v-12813f5b] .el-upload-dragger{width:100%;height:auto;padding:30px 0;box-sizing:border-box}[data-v-12813f5b] .el-dialog__body{padding:20px;box-sizing:border-box}.fakeLive[data-v-02102a27]{padding:8px 10px;border:1px solid #dcdfe6;border-color:#dcdfe6;background:#fff;cursor:pointer;color:#606266;border-radius:4px;margin-right:10px}.option-item[data-v-02102a27]{margin-bottom:10px;padding:8px;border:1px solid #ebeef5;border-radius:4px;width:100%}.option-header[data-v-02102a27]{display:flex;align-items:center;gap:10px}.option-letter[data-v-02102a27]{display:inline-block;width:30px;height:30px;line-height:30px;text-align:center;background:#e6e6e6;border-radius:4px;font-weight:700}.option-input[data-v-02102a27]{flex:1;min-width:200px}.correct-btn[data-v-02102a27]{width:100px}.add-option-btn[data-v-02102a27]{padding:8px 20px}.remove-btn[data-v-02102a27]{width:80px}
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
31
  "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
32
32
  onRefresh?: ((...args: any[]) => any) | undefined;
33
33
  }>, {
34
- title: string;
35
34
  entityKey: QuestionsKey;
35
+ title: string;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
37
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-ste",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",