zhytech-ui-mobile 1.1.15 → 1.2.0

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.
@@ -9606,6 +9606,173 @@ const index$i = /* @__PURE__ */ defineBuiltInComponent({
9606
9606
  };
9607
9607
  }
9608
9608
  });
9609
+ const props$h = /* @__PURE__ */ extend({}, props$r, {
9610
+ placeholderClass: {
9611
+ type: String,
9612
+ default: "input-placeholder"
9613
+ },
9614
+ autoHeight: {
9615
+ type: [Boolean, String],
9616
+ default: false
9617
+ },
9618
+ confirmType: {
9619
+ type: String,
9620
+ default: "return",
9621
+ validator(val) {
9622
+ return ConfirmTypes.concat("return").includes(val);
9623
+ }
9624
+ }
9625
+ });
9626
+ let fixMargin = false;
9627
+ const ConfirmTypes = ["done", "go", "next", "search", "send"];
9628
+ function setFixMargin() {
9629
+ const DARK_TEST_STRING = "(prefers-color-scheme: dark)";
9630
+ fixMargin = String(navigator.platform).indexOf("iP") === 0 && String(navigator.vendor).indexOf("Apple") === 0 && window.matchMedia(DARK_TEST_STRING).media !== DARK_TEST_STRING;
9631
+ }
9632
+ const index$h = /* @__PURE__ */ defineBuiltInComponent({
9633
+ name: "Textarea",
9634
+ props: props$h,
9635
+ emits: ["confirm", "linechange", ...emit],
9636
+ setup(props2, {
9637
+ emit: emit22,
9638
+ expose
9639
+ }) {
9640
+ const rootRef = ref(null);
9641
+ const wrapperRef = ref(null);
9642
+ const {
9643
+ fieldRef,
9644
+ state: state2,
9645
+ scopedAttrsState,
9646
+ fixDisabledColor,
9647
+ trigger
9648
+ } = useField(props2, rootRef, emit22);
9649
+ const valueCompute = computed(() => state2.value.split(LINEFEED));
9650
+ const isDone = computed(() => ConfirmTypes.includes(props2.confirmType));
9651
+ const heightRef = ref(0);
9652
+ const lineRef = ref(null);
9653
+ watch(() => heightRef.value, (height2) => {
9654
+ const el3 = rootRef.value;
9655
+ const lineEl = lineRef.value;
9656
+ const wrapper22 = wrapperRef.value;
9657
+ let lineHeight = parseFloat(getComputedStyle(el3).lineHeight);
9658
+ if (isNaN(lineHeight)) {
9659
+ lineHeight = lineEl.offsetHeight;
9660
+ }
9661
+ var lineCount = Math.round(height2 / lineHeight);
9662
+ trigger("linechange", {}, {
9663
+ height: height2,
9664
+ heightRpx: 750 / window.innerWidth * height2,
9665
+ lineCount
9666
+ });
9667
+ if (props2.autoHeight) {
9668
+ el3.style.height = "auto";
9669
+ wrapper22.style.height = height2 + "px";
9670
+ }
9671
+ });
9672
+ function onResize2({
9673
+ height: height2
9674
+ }) {
9675
+ heightRef.value = height2;
9676
+ }
9677
+ function confirm(event) {
9678
+ trigger("confirm", event, {
9679
+ value: state2.value
9680
+ });
9681
+ }
9682
+ function onKeyDownEnter(event) {
9683
+ if (event.key !== "Enter") {
9684
+ return;
9685
+ }
9686
+ if (isDone.value) {
9687
+ event.preventDefault();
9688
+ }
9689
+ }
9690
+ function onKeyUpEnter(event) {
9691
+ if (event.key !== "Enter") {
9692
+ return;
9693
+ }
9694
+ if (isDone.value) {
9695
+ confirm(event);
9696
+ const textarea2 = event.target;
9697
+ !props2.confirmHold && textarea2.blur();
9698
+ }
9699
+ }
9700
+ {
9701
+ setFixMargin();
9702
+ }
9703
+ expose({
9704
+ $triggerInput: (detail) => {
9705
+ emit22("update:modelValue", detail.value);
9706
+ emit22("update:value", detail.value);
9707
+ state2.value = detail.value;
9708
+ }
9709
+ });
9710
+ return () => {
9711
+ let textareaNode = props2.disabled && fixDisabledColor ? createVNode("textarea", {
9712
+ "key": "disabled-textarea",
9713
+ "ref": fieldRef,
9714
+ "value": state2.value,
9715
+ "tabindex": "-1",
9716
+ "readonly": !!props2.disabled,
9717
+ "maxlength": state2.maxlength,
9718
+ "class": {
9719
+ "uni-textarea-textarea": true,
9720
+ "uni-textarea-textarea-fix-margin": fixMargin
9721
+ },
9722
+ "style": {
9723
+ overflowY: props2.autoHeight ? "hidden" : "auto",
9724
+ /* eslint-disable no-restricted-syntax */
9725
+ ...props2.cursorColor && {
9726
+ caretColor: props2.cursorColor
9727
+ }
9728
+ },
9729
+ "onFocus": (event) => event.target.blur()
9730
+ }, null, 46, ["value", "readonly", "maxlength", "onFocus"]) : createVNode("textarea", {
9731
+ "key": "textarea",
9732
+ "ref": fieldRef,
9733
+ "value": state2.value,
9734
+ "disabled": !!props2.disabled,
9735
+ "maxlength": state2.maxlength,
9736
+ "enterkeyhint": props2.confirmType,
9737
+ "inputmode": props2.inputmode,
9738
+ "class": {
9739
+ "uni-textarea-textarea": true,
9740
+ "uni-textarea-textarea-fix-margin": fixMargin
9741
+ },
9742
+ "style": {
9743
+ overflowY: props2.autoHeight ? "hidden" : "auto",
9744
+ /* eslint-disable no-restricted-syntax */
9745
+ ...props2.cursorColor && {
9746
+ caretColor: props2.cursorColor
9747
+ }
9748
+ },
9749
+ "onKeydown": onKeyDownEnter,
9750
+ "onKeyup": onKeyUpEnter
9751
+ }, null, 46, ["value", "disabled", "maxlength", "enterkeyhint", "inputmode", "onKeydown", "onKeyup"]);
9752
+ return createVNode("uni-textarea", {
9753
+ "ref": rootRef
9754
+ }, [createVNode("div", {
9755
+ "ref": wrapperRef,
9756
+ "class": "uni-textarea-wrapper"
9757
+ }, [withDirectives(createVNode("div", mergeProps(scopedAttrsState.attrs, {
9758
+ "style": props2.placeholderStyle,
9759
+ "class": ["uni-textarea-placeholder", props2.placeholderClass]
9760
+ }), [props2.placeholder], 16), [[vShow, !state2.value.length]]), createVNode("div", {
9761
+ "ref": lineRef,
9762
+ "class": "uni-textarea-line"
9763
+ }, [" "], 512), createVNode("div", {
9764
+ "class": "uni-textarea-compute"
9765
+ }, [valueCompute.value.map((item) => createVNode("div", null, [item.trim() ? item : "."])), createVNode(ResizeSensor, {
9766
+ "initial": true,
9767
+ "onResize": onResize2
9768
+ }, null, 8, ["initial", "onResize"])]), props2.confirmType === "search" ? createVNode("form", {
9769
+ "action": "",
9770
+ "onSubmit": () => false,
9771
+ "class": "uni-input-form"
9772
+ }, [textareaNode], 40, ["onSubmit"]) : textareaNode], 512)], 512);
9773
+ };
9774
+ }
9775
+ });
9609
9776
  const index$g = /* @__PURE__ */ defineBuiltInComponent({
9610
9777
  name: "View",
9611
9778
  props: extend({}, hoverProps),
@@ -12864,7 +13031,7 @@ const iconProps = {
12864
13031
  */
12865
13032
  classPrefix: makeStringProp("wd-icon")
12866
13033
  };
12867
- const __default__$y = {
13034
+ const __default__$z = {
12868
13035
  name: "wd-icon",
12869
13036
  options: {
12870
13037
  virtualHost: true,
@@ -12872,8 +13039,8 @@ const __default__$y = {
12872
13039
  styleIsolation: "shared"
12873
13040
  }
12874
13041
  };
12875
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
12876
- ...__default__$y,
13042
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
13043
+ ...__default__$z,
12877
13044
  props: iconProps,
12878
13045
  emits: ["click", "touch"],
12879
13046
  setup(__props, { emit: __emit }) {
@@ -12927,7 +13094,7 @@ const _export_sfc = (sfc, props) => {
12927
13094
  }
12928
13095
  return target;
12929
13096
  };
12930
- const __easycom_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-f5f09643"]]);
13097
+ const __easycom_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-f5f09643"]]);
12931
13098
  const _b64chars = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"];
12932
13099
  const _mkUriSafe = (src) => src.replace(/[+/]/g, (m0) => m0 === "+" ? "-" : "_").replace(/=+\$/m, "");
12933
13100
  const fromUint8Array = (src, rfc4648 = false) => {
@@ -12968,7 +13135,7 @@ const loadingProps = {
12968
13135
  */
12969
13136
  size: makeNumericProp("")
12970
13137
  };
12971
- const __default__$x = {
13138
+ const __default__$y = {
12972
13139
  name: "wd-loading",
12973
13140
  options: {
12974
13141
  virtualHost: true,
@@ -12976,8 +13143,8 @@ const __default__$x = {
12976
13143
  styleIsolation: "shared"
12977
13144
  }
12978
13145
  };
12979
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
12980
- ...__default__$x,
13146
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
13147
+ ...__default__$y,
12981
13148
  props: loadingProps,
12982
13149
  setup(__props) {
12983
13150
  const svgDefineId = context.id++;
@@ -13056,7 +13223,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
13056
13223
  }
13057
13224
  });
13058
13225
  const wdLoading_vue_vue_type_style_index_0_scoped_847be99d_lang = "";
13059
- const __easycom_1$6 = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-847be99d"]]);
13226
+ const __easycom_1$5 = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-847be99d"]]);
13060
13227
  const transitionProps = {
13061
13228
  ...baseProps,
13062
13229
  /**
@@ -13130,7 +13297,7 @@ const transitionProps = {
13130
13297
  */
13131
13298
  disableTouchMove: makeBooleanProp(false)
13132
13299
  };
13133
- const __default__$w = {
13300
+ const __default__$x = {
13134
13301
  name: "wd-transition",
13135
13302
  options: {
13136
13303
  addGlobalClass: true,
@@ -13138,8 +13305,8 @@ const __default__$w = {
13138
13305
  styleIsolation: "shared"
13139
13306
  }
13140
13307
  };
13141
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
13142
- ...__default__$w,
13308
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
13309
+ ...__default__$x,
13143
13310
  props: transitionProps,
13144
13311
  emits: ["click", "before-enter", "enter", "before-leave", "leave", "after-leave", "after-enter"],
13145
13312
  setup(__props, { emit: __emit }) {
@@ -13328,7 +13495,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
13328
13495
  }
13329
13496
  });
13330
13497
  const wdTransition_vue_vue_type_style_index_0_scoped_db5e2818_lang = "";
13331
- const wdTransition = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-db5e2818"]]);
13498
+ const wdTransition = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-db5e2818"]]);
13332
13499
  const overlayProps = {
13333
13500
  ...baseProps,
13334
13501
  /**
@@ -13380,7 +13547,7 @@ function useLockScroll(shouldLock) {
13380
13547
  unlock
13381
13548
  };
13382
13549
  }
13383
- const __default__$v = {
13550
+ const __default__$w = {
13384
13551
  name: "wd-overlay",
13385
13552
  options: {
13386
13553
  virtualHost: true,
@@ -13388,8 +13555,8 @@ const __default__$v = {
13388
13555
  styleIsolation: "shared"
13389
13556
  }
13390
13557
  };
13391
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
13392
- ...__default__$v,
13558
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
13559
+ ...__default__$w,
13393
13560
  props: overlayProps,
13394
13561
  emits: ["click"],
13395
13562
  setup(__props, { emit: __emit }) {
@@ -13418,7 +13585,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
13418
13585
  }
13419
13586
  });
13420
13587
  const wdOverlay_vue_vue_type_style_index_0_scoped_ba13741d_lang = "";
13421
- const wdOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-ba13741d"]]);
13588
+ const wdOverlay = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-ba13741d"]]);
13422
13589
  const toastDefaultOptionKey = "__TOAST_OPTION__";
13423
13590
  const defaultOptions$1 = {
13424
13591
  duration: 2e3,
@@ -13608,7 +13775,7 @@ const toastProps = {
13608
13775
  */
13609
13776
  closed: Function
13610
13777
  };
13611
- const __default__$u = {
13778
+ const __default__$v = {
13612
13779
  name: "wd-toast",
13613
13780
  options: {
13614
13781
  addGlobalClass: true,
@@ -13616,8 +13783,8 @@ const __default__$u = {
13616
13783
  styleIsolation: "shared"
13617
13784
  }
13618
13785
  };
13619
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
13620
- ...__default__$u,
13786
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
13787
+ ...__default__$v,
13621
13788
  props: toastProps,
13622
13789
  setup(__props) {
13623
13790
  const props = __props;
@@ -13749,7 +13916,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
13749
13916
  class: normalizeClass(rootClass.value)
13750
13917
  }, {
13751
13918
  default: withCtx(() => [
13752
- iconName.value === "loading" ? (openBlock(), createBlock(__easycom_1$6, {
13919
+ iconName.value === "loading" ? (openBlock(), createBlock(__easycom_1$5, {
13753
13920
  key: 0,
13754
13921
  type: loadingType.value,
13755
13922
  color: loadingColor.value,
@@ -13798,7 +13965,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
13798
13965
  }
13799
13966
  });
13800
13967
  const wdToast_vue_vue_type_style_index_0_scoped_fbbf6dbb_lang = "";
13801
- const __easycom_3$4 = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-fbbf6dbb"]]);
13968
+ const __easycom_3$4 = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-fbbf6dbb"]]);
13802
13969
  function isVNode(value) {
13803
13970
  return value ? value.__v_isVNode === true : false;
13804
13971
  }
@@ -13902,7 +14069,7 @@ const formProps = {
13902
14069
  default: "message"
13903
14070
  }
13904
14071
  };
13905
- const __default__$t = {
14072
+ const __default__$u = {
13906
14073
  name: "wd-form",
13907
14074
  options: {
13908
14075
  addGlobalClass: true,
@@ -13910,8 +14077,8 @@ const __default__$t = {
13910
14077
  styleIsolation: "shared"
13911
14078
  }
13912
14079
  };
13913
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
13914
- ...__default__$t,
14080
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
14081
+ ...__default__$u,
13915
14082
  props: formProps,
13916
14083
  setup(__props, { expose: __expose }) {
13917
14084
  const { show: showToast2 } = useToast$1("wd-form-toast");
@@ -14175,7 +14342,7 @@ const buttonProps = {
14175
14342
  */
14176
14343
  scope: String
14177
14344
  };
14178
- const __default__$s = {
14345
+ const __default__$t = {
14179
14346
  name: "wd-button",
14180
14347
  options: {
14181
14348
  addGlobalClass: true,
@@ -14183,8 +14350,8 @@ const __default__$s = {
14183
14350
  styleIsolation: "shared"
14184
14351
  }
14185
14352
  };
14186
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
14187
- ...__default__$s,
14353
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
14354
+ ...__default__$t,
14188
14355
  props: buttonProps,
14189
14356
  emits: [
14190
14357
  "click",
@@ -14363,7 +14530,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14363
14530
  }
14364
14531
  });
14365
14532
  const wdButton_vue_vue_type_style_index_0_scoped_e939cc2d_lang = "";
14366
- const __easycom_1$5 = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-e939cc2d"]]);
14533
+ const __easycom_1$4 = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-e939cc2d"]]);
14367
14534
  const configProviderProps = {
14368
14535
  ...baseProps,
14369
14536
  /**
@@ -14378,7 +14545,7 @@ const configProviderProps = {
14378
14545
  default: () => ({})
14379
14546
  }
14380
14547
  };
14381
- const __default__$r = {
14548
+ const __default__$s = {
14382
14549
  name: "wd-config-provider",
14383
14550
  options: {
14384
14551
  virtualHost: true,
@@ -14386,8 +14553,8 @@ const __default__$r = {
14386
14553
  styleIsolation: "shared"
14387
14554
  }
14388
14555
  };
14389
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
14390
- ...__default__$r,
14556
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
14557
+ ...__default__$s,
14391
14558
  props: configProviderProps,
14392
14559
  setup(__props) {
14393
14560
  const props = __props;
@@ -14994,7 +15161,7 @@ dayjs.unix = function(timestamp) {
14994
15161
  dayjs.en = Ls$2[L$2];
14995
15162
  dayjs.Ls = Ls$2;
14996
15163
  dayjs.p = {};
14997
- const __default__$q = {
15164
+ const __default__$r = {
14998
15165
  name: "wd-text",
14999
15166
  options: {
15000
15167
  virtualHost: true,
@@ -15002,8 +15169,8 @@ const __default__$q = {
15002
15169
  styleIsolation: "shared"
15003
15170
  }
15004
15171
  };
15005
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
15006
- ...__default__$q,
15172
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
15173
+ ...__default__$r,
15007
15174
  props: textProps,
15008
15175
  emits: ["click"],
15009
15176
  setup(__props, { emit: __emit }) {
@@ -15123,7 +15290,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
15123
15290
  }
15124
15291
  });
15125
15292
  const wdText_vue_vue_type_style_index_0_scoped_578c3f2a_lang = "";
15126
- const __easycom_0$4 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-578c3f2a"]]);
15293
+ const __easycom_0$4 = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-578c3f2a"]]);
15127
15294
  function useParent(key) {
15128
15295
  const parent = inject(key, null);
15129
15296
  if (parent) {
@@ -15273,7 +15440,7 @@ const cellProps = {
15273
15440
  */
15274
15441
  markerSide: makeStringProp("before")
15275
15442
  };
15276
- const __default__$p = {
15443
+ const __default__$q = {
15277
15444
  name: "wd-cell",
15278
15445
  options: {
15279
15446
  addGlobalClass: true,
@@ -15281,8 +15448,8 @@ const __default__$p = {
15281
15448
  styleIsolation: "shared"
15282
15449
  }
15283
15450
  };
15284
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
15285
- ...__default__$p,
15451
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15452
+ ...__default__$q,
15286
15453
  props: cellProps,
15287
15454
  emits: ["click"],
15288
15455
  setup(__props, { emit: __emit }) {
@@ -15451,7 +15618,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
15451
15618
  }
15452
15619
  });
15453
15620
  const wdCell_vue_vue_type_style_index_0_scoped_7af5b98c_lang = "";
15454
- const __easycom_1$4 = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-7af5b98c"]]);
15621
+ const __easycom_1$3 = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-7af5b98c"]]);
15455
15622
  const CHECKBOX_GROUP_KEY = Symbol("wd-checkbox-group");
15456
15623
  const checkboxGroupProps = {
15457
15624
  ...baseProps,
@@ -15547,7 +15714,7 @@ const checkboxProps = {
15547
15714
  */
15548
15715
  maxWidth: String
15549
15716
  };
15550
- const __default__$o = {
15717
+ const __default__$p = {
15551
15718
  name: "wd-checkbox",
15552
15719
  options: {
15553
15720
  addGlobalClass: true,
@@ -15555,8 +15722,8 @@ const __default__$o = {
15555
15722
  styleIsolation: "shared"
15556
15723
  }
15557
15724
  };
15558
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
15559
- ...__default__$o,
15725
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
15726
+ ...__default__$p,
15560
15727
  props: checkboxProps,
15561
15728
  emits: ["change", "update:modelValue"],
15562
15729
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -15699,7 +15866,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
15699
15866
  }
15700
15867
  });
15701
15868
  const wdCheckbox_vue_vue_type_style_index_0_scoped_a26ccc33_lang = "";
15702
- const __easycom_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-a26ccc33"]]);
15869
+ const __easycom_2$1 = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-a26ccc33"]]);
15703
15870
  const input = "";
15704
15871
  const zhCN = {
15705
15872
  calendar: {
@@ -16032,7 +16199,7 @@ const inputProps = {
16032
16199
  */
16033
16200
  markerSide: makeStringProp("before")
16034
16201
  };
16035
- const __default__$n = {
16202
+ const __default__$o = {
16036
16203
  name: "wd-input",
16037
16204
  options: {
16038
16205
  virtualHost: true,
@@ -16040,8 +16207,8 @@ const __default__$n = {
16040
16207
  styleIsolation: "shared"
16041
16208
  }
16042
16209
  };
16043
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
16044
- ...__default__$n,
16210
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
16211
+ ...__default__$o,
16045
16212
  props: inputProps,
16046
16213
  emits: [
16047
16214
  "update:modelValue",
@@ -16386,8 +16553,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
16386
16553
  });
16387
16554
  const wdInput_vue_vue_type_style_index_0_scoped_b1d8ad18_lang = "";
16388
16555
  const wdInput_vue_vue_type_style_index_1_scoped_b1d8ad18_lang = "";
16389
- const __easycom_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-b1d8ad18"]]);
16390
- const __default__$m = {
16556
+ const __easycom_4 = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-b1d8ad18"]]);
16557
+ const __default__$n = {
16391
16558
  name: "wd-checkbox-group",
16392
16559
  options: {
16393
16560
  addGlobalClass: true,
@@ -16395,8 +16562,8 @@ const __default__$m = {
16395
16562
  styleIsolation: "shared"
16396
16563
  }
16397
16564
  };
16398
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
16399
- ...__default__$m,
16565
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
16566
+ ...__default__$n,
16400
16567
  props: checkboxGroupProps,
16401
16568
  emits: ["change", "update:modelValue"],
16402
16569
  setup(__props, { emit: __emit }) {
@@ -16470,7 +16637,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
16470
16637
  }
16471
16638
  });
16472
16639
  const wdCheckboxGroup_vue_vue_type_style_index_0_scoped_ca6945f6_lang = "";
16473
- const __easycom_3$3 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-ca6945f6"]]);
16640
+ const __easycom_3$3 = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-ca6945f6"]]);
16474
16641
  var formTypeEnum = /* @__PURE__ */ ((formTypeEnum2) => {
16475
16642
  formTypeEnum2["Form"] = "1";
16476
16643
  formTypeEnum2["Examination"] = "2";
@@ -16519,7 +16686,7 @@ var eventTypeEnum = /* @__PURE__ */ ((eventTypeEnum2) => {
16519
16686
  eventTypeEnum2["RemoteMethod"] = "remoteMethod";
16520
16687
  return eventTypeEnum2;
16521
16688
  })(eventTypeEnum || {});
16522
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
16689
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
16523
16690
  __name: "checkbox",
16524
16691
  props: {
16525
16692
  /**
@@ -16562,6 +16729,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
16562
16729
  setup(__props, { emit: __emit }) {
16563
16730
  const props = __props;
16564
16731
  const formType = inject("formType");
16732
+ const isPreview = inject("isPreview");
16565
16733
  const realTimeDisplayAnswerMode = inject("realTimeDisplayAnswerMode");
16566
16734
  const everyItemDisplayAnalysisSwitch = inject("everyItemDisplayAnalysisSwitch");
16567
16735
  const { datas, componentProps } = toRefs(props);
@@ -16601,7 +16769,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
16601
16769
  );
16602
16770
  return (_ctx, _cache) => {
16603
16771
  const _component_wd_checkbox = resolveEasycom(resolveDynamicComponent("wd-checkbox"), __easycom_2$1);
16604
- const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_0$3);
16772
+ const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_4);
16605
16773
  const _component_wd_checkbox_group = resolveEasycom(resolveDynamicComponent("wd-checkbox-group"), __easycom_3$3);
16606
16774
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
16607
16775
  const _component_v_uni_view = index$g;
@@ -16611,7 +16779,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
16611
16779
  "custom-class": "zhy",
16612
16780
  modelValue: unref(datas)[__props.componentID],
16613
16781
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(datas)[__props.componentID] = $event),
16614
- disabled: __props.disabled,
16782
+ disabled: __props.disabled || unref(isPreview),
16615
16783
  min: unref(componentProps).min,
16616
16784
  max: unref(componentProps).max,
16617
16785
  inline: !unref(componentProps).newLine
@@ -16636,9 +16804,10 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
16636
16804
  placeholder: "",
16637
16805
  clearable: true,
16638
16806
  clearTrigger: "focus",
16807
+ disabled: __props.disabled || unref(isPreview),
16639
16808
  modelValue: unref(datas)[`${__props.componentID}||${item.value}`],
16640
16809
  "onUpdate:modelValue": ($event) => unref(datas)[`${__props.componentID}||${item.value}`] = $event
16641
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
16810
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
16642
16811
  ], 64);
16643
16812
  }), 128))
16644
16813
  ]),
@@ -16671,6 +16840,572 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
16671
16840
  };
16672
16841
  }
16673
16842
  });
16843
+ const textarea = "";
16844
+ const textareaProps = {
16845
+ ...baseProps,
16846
+ /**
16847
+ * * 自定义文本域容器class名称。
16848
+ * 类型:string
16849
+ */
16850
+ customTextareaContainerClass: makeStringProp(""),
16851
+ /**
16852
+ * * 自定义文本域class名称。
16853
+ * 类型:string
16854
+ */
16855
+ customTextareaClass: makeStringProp(""),
16856
+ /**
16857
+ * * 自定义标签class名称。
16858
+ * 类型:string
16859
+ */
16860
+ customLabelClass: makeStringProp(""),
16861
+ // 原生属性
16862
+ /**
16863
+ * * 绑定值。
16864
+ * 类型:string | number
16865
+ */
16866
+ modelValue: makeNumericProp(""),
16867
+ /**
16868
+ * * 占位文本。
16869
+ * 类型:string
16870
+ * 默认值:'请输入...'
16871
+ */
16872
+ placeholder: String,
16873
+ /**
16874
+ * 指定placeholder的样式。
16875
+ * 类型:string
16876
+ */
16877
+ placeholderStyle: String,
16878
+ /**
16879
+ * * 指定placeholder的样式类。
16880
+ * 类型:string
16881
+ * 默认值:空字符串
16882
+ */
16883
+ placeholderClass: makeStringProp(""),
16884
+ /**
16885
+ * * 禁用输入框。
16886
+ * 类型:boolean
16887
+ * 默认值:false
16888
+ */
16889
+ disabled: makeBooleanProp(false),
16890
+ /**
16891
+ * * 最大输入长度,设置为-1表示不限制最大长度。
16892
+ * 类型:number
16893
+ * 默认值:-1
16894
+ */
16895
+ maxlength: makeNumberProp(-1),
16896
+ /**
16897
+ * * 自动聚焦并拉起键盘。
16898
+ * 类型:boolean
16899
+ * 默认值:false
16900
+ */
16901
+ autoFocus: makeBooleanProp(false),
16902
+ /**
16903
+ * * 获取焦点。
16904
+ * 类型:boolean
16905
+ * 默认值:false
16906
+ */
16907
+ focus: makeBooleanProp(false),
16908
+ /**
16909
+ * * 是否自动增高输入框高度,style.height属性在auto-height生效时不生效。
16910
+ * 类型:boolean
16911
+ * 默认值:false
16912
+ */
16913
+ autoHeight: makeBooleanProp(false),
16914
+ /**
16915
+ * * 如果textarea处于position:fixed区域,需要设置此属性为true。
16916
+ * 类型:boolean
16917
+ * 默认值:false
16918
+ */
16919
+ fixed: makeBooleanProp(false),
16920
+ /**
16921
+ * * 指定光标与键盘的距离,取textarea距离底部的距离和cursor-spacing指定的距离的最小值作为实际距离。
16922
+ * 类型:number
16923
+ * 默认值:0
16924
+ */
16925
+ cursorSpacing: makeNumberProp(0),
16926
+ /**
16927
+ * * 指定focus时的光标位置。
16928
+ * 类型:number
16929
+ * 默认值:-1
16930
+ */
16931
+ cursor: makeNumberProp(-1),
16932
+ /**
16933
+ * * 设置键盘右下角按钮的文字。
16934
+ * 类型:string
16935
+ * 默认值:'done'
16936
+ * 可选值有'done', 'go', 'next', 'search', 'send'
16937
+ */
16938
+ confirmType: String,
16939
+ /**
16940
+ * * 点击键盘右下角按钮时是否保持键盘不收起。
16941
+ * 类型:boolean
16942
+ * 默认值:false
16943
+ */
16944
+ confirmHold: makeBooleanProp(false),
16945
+ /**
16946
+ * * 是否显示键盘上方带有“完成”按钮那一栏。
16947
+ * 类型:boolean
16948
+ * 默认值:true
16949
+ */
16950
+ showConfirmBar: makeBooleanProp(true),
16951
+ /**
16952
+ * * 光标起始位置,自动聚集时有效,需与selection-end搭配使用。
16953
+ * 类型:number
16954
+ * 默认值:-1
16955
+ */
16956
+ selectionStart: makeNumberProp(-1),
16957
+ /**
16958
+ * * 光标结束位置,自动聚集时有效,需与selection-start搭配使用。
16959
+ * 类型:number
16960
+ * 默认值:-1
16961
+ */
16962
+ selectionEnd: makeNumberProp(-1),
16963
+ /**
16964
+ * * 键盘弹起时是否自动上推页面。
16965
+ * 类型:boolean
16966
+ * 默认值:true
16967
+ */
16968
+ adjustPosition: makeBooleanProp(true),
16969
+ /**
16970
+ * * 是否去掉iOS下的默认内边距。
16971
+ * 类型:boolean
16972
+ * 默认值:false
16973
+ */
16974
+ disableDefaultPadding: makeBooleanProp(false),
16975
+ /**
16976
+ * * focus状态下点击页面时是否不收起键盘。
16977
+ * 类型:boolean
16978
+ * 默认值:false
16979
+ */
16980
+ holdKeyboard: makeBooleanProp(false),
16981
+ // 非原生属性
16982
+ /**
16983
+ * * 显示为密码框。
16984
+ * 类型:boolean
16985
+ * 默认值:false
16986
+ */
16987
+ showPassword: makeBooleanProp(false),
16988
+ /**
16989
+ * * 是否显示清空按钮。
16990
+ * 类型:boolean
16991
+ * 默认值:false
16992
+ */
16993
+ clearable: makeBooleanProp(false),
16994
+ /**
16995
+ * * 输入框只读状态。
16996
+ * 类型:boolean
16997
+ * 默认值:false
16998
+ */
16999
+ readonly: makeBooleanProp(false),
17000
+ /**
17001
+ * * 前置图标,icon组件中的图标类名。
17002
+ * 类型:string
17003
+ */
17004
+ prefixIcon: String,
17005
+ /**
17006
+ * * 是否显示字数限制,需要同时设置maxlength。
17007
+ * 类型:boolean
17008
+ * 默认值:false
17009
+ */
17010
+ showWordLimit: makeBooleanProp(false),
17011
+ /**
17012
+ * 设置左侧标题。
17013
+ * 类型:string
17014
+ */
17015
+ label: String,
17016
+ /**
17017
+ * 设置左侧标题宽度。
17018
+ * 类型:string
17019
+ */
17020
+ labelWidth: makeStringProp(""),
17021
+ /**
17022
+ * * 设置输入框大小。
17023
+ * 类型:string
17024
+ */
17025
+ size: String,
17026
+ /**
17027
+ * * 设置输入框错误状态(红色)。
17028
+ * 类型:boolean
17029
+ * 默认值:false
17030
+ */
17031
+ error: makeBooleanProp(false),
17032
+ /**
17033
+ * * 当存在label属性时,设置标题和输入框垂直居中,默认为顶部居中。
17034
+ * 类型:boolean
17035
+ * 默认值:false
17036
+ */
17037
+ center: makeBooleanProp(false),
17038
+ /**
17039
+ * * 非cell类型下是否隐藏下划线。
17040
+ * 类型:boolean
17041
+ * 默认值:false
17042
+ */
17043
+ noBorder: makeBooleanProp(false),
17044
+ /**
17045
+ * * cell类型下必填样式。
17046
+ * 类型:boolean
17047
+ * 默认值:false
17048
+ */
17049
+ required: makeBooleanProp(false),
17050
+ /**
17051
+ * * 表单域model字段名,在使用表单校验功能的情况下,该属性是必填的。
17052
+ * 类型:string
17053
+ */
17054
+ prop: makeStringProp(""),
17055
+ /**
17056
+ * * 表单验证规则。
17057
+ * 类型:FormItemRule[]
17058
+ * 默认值:[]
17059
+ */
17060
+ rules: makeArrayProp(),
17061
+ /**
17062
+ * 显示清除图标的时机,always 表示输入框不为空时展示,focus 表示输入框聚焦且不为空时展示
17063
+ * 类型: "focus" | "always"
17064
+ * 默认值: "always"
17065
+ */
17066
+ clearTrigger: makeStringProp("always"),
17067
+ /**
17068
+ * 是否在点击清除按钮时聚焦输入框
17069
+ * 类型: boolean
17070
+ * 默认值: true
17071
+ */
17072
+ focusWhenClear: makeBooleanProp(true),
17073
+ /**
17074
+ * 是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件,且在文本合成期间会触发 input 事件
17075
+ * 类型: boolean
17076
+ * 默认值: true
17077
+ */
17078
+ ignoreCompositionEvent: makeBooleanProp(true),
17079
+ /**
17080
+ * 它提供了用户在编辑元素或其内容时可能输入的数据类型的提示。在符合条件的高版本webview里,uni-app的web和app-vue平台中可使用本属性。
17081
+ * 类型: InputMode
17082
+ * 可选值: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | "password"
17083
+ * 默认值: "text"
17084
+ */
17085
+ inputmode: makeStringProp("text"),
17086
+ /**
17087
+ * 必填标记位置,可选值:before(标签前)、after(标签后)
17088
+ */
17089
+ markerSide: makeStringProp("before")
17090
+ };
17091
+ const __default__$m = {
17092
+ name: "wd-textarea",
17093
+ options: {
17094
+ virtualHost: true,
17095
+ addGlobalClass: true,
17096
+ styleIsolation: "shared"
17097
+ }
17098
+ };
17099
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
17100
+ ...__default__$m,
17101
+ props: textareaProps,
17102
+ emits: [
17103
+ "update:modelValue",
17104
+ "clear",
17105
+ "blur",
17106
+ "focus",
17107
+ "input",
17108
+ "keyboardheightchange",
17109
+ "confirm",
17110
+ "linechange",
17111
+ "clickprefixicon",
17112
+ "click"
17113
+ ],
17114
+ setup(__props, { emit: __emit }) {
17115
+ const { translate } = useTranslate("textarea");
17116
+ const props = __props;
17117
+ const emit3 = __emit;
17118
+ const slots = useSlots();
17119
+ const placeholderValue = computed(() => {
17120
+ return isDef(props.placeholder) ? props.placeholder : translate("placeholder");
17121
+ });
17122
+ const clearing = ref(false);
17123
+ const focused = ref(false);
17124
+ const focusing = ref(false);
17125
+ const inputValue = ref("");
17126
+ const cell = useCell();
17127
+ watch(
17128
+ () => props.focus,
17129
+ (newValue) => {
17130
+ focused.value = newValue;
17131
+ },
17132
+ { immediate: true, deep: true }
17133
+ );
17134
+ watch(
17135
+ () => props.modelValue,
17136
+ (newValue) => {
17137
+ inputValue.value = isDef(newValue) ? String(newValue) : "";
17138
+ },
17139
+ { immediate: true, deep: true }
17140
+ );
17141
+ const { parent: form } = useParent(FORM_KEY);
17142
+ const showClear = computed(() => {
17143
+ const { disabled, readonly, clearable, clearTrigger } = props;
17144
+ if (clearable && !readonly && !disabled && inputValue.value && (clearTrigger === "always" || props.clearTrigger === "focus" && focusing.value)) {
17145
+ return true;
17146
+ } else {
17147
+ return false;
17148
+ }
17149
+ });
17150
+ const showWordCount = computed(() => {
17151
+ const { disabled, readonly, maxlength, showWordLimit } = props;
17152
+ return Boolean(!disabled && !readonly && isDef(maxlength) && maxlength > -1 && showWordLimit);
17153
+ });
17154
+ const errorMessage = computed(() => {
17155
+ if (form && props.prop && form.errorMessages && form.errorMessages[props.prop]) {
17156
+ return form.errorMessages[props.prop];
17157
+ } else {
17158
+ return "";
17159
+ }
17160
+ });
17161
+ const isRequired = computed(() => {
17162
+ let formRequired = false;
17163
+ if (form && form.props.rules) {
17164
+ const rules = form.props.rules;
17165
+ for (const key in rules) {
17166
+ if (Object.prototype.hasOwnProperty.call(rules, key) && key === props.prop && Array.isArray(rules[key])) {
17167
+ formRequired = rules[key].some((rule) => rule.required);
17168
+ }
17169
+ }
17170
+ }
17171
+ return props.required || props.rules.some((rule) => rule.required) || formRequired;
17172
+ });
17173
+ const currentLength = computed(() => {
17174
+ return Array.from(String(formatValue(props.modelValue))).length;
17175
+ });
17176
+ const rootClass = computed(() => {
17177
+ return `wd-textarea ${props.label || slots.label ? "is-cell" : ""} ${props.center ? "is-center" : ""} ${cell.border.value ? "is-border" : ""} ${props.size ? "is-" + props.size : ""} ${props.error ? "is-error" : ""} ${props.disabled ? "is-disabled" : ""} ${props.autoHeight ? "is-auto-height" : ""} ${currentLength.value > 0 ? "is-not-empty" : ""} ${props.noBorder ? "is-no-border" : ""} ${props.customClass}`;
17178
+ });
17179
+ computed(() => {
17180
+ return `wd-textarea__label ${props.customLabelClass}`;
17181
+ });
17182
+ const inputPlaceholderClass = computed(() => {
17183
+ return `wd-textarea__placeholder ${props.placeholderClass}`;
17184
+ });
17185
+ const countClass = computed(() => {
17186
+ return `${currentLength.value > 0 ? "wd-textarea__count-current" : ""} ${currentLength.value > props.maxlength ? "is-error" : ""}`;
17187
+ });
17188
+ const labelStyle = computed(() => {
17189
+ return props.labelWidth ? objToStyle({
17190
+ "min-width": props.labelWidth,
17191
+ "max-width": props.labelWidth
17192
+ }) : "";
17193
+ });
17194
+ onBeforeMount(() => {
17195
+ initState();
17196
+ });
17197
+ function initState() {
17198
+ inputValue.value = formatValue(inputValue.value);
17199
+ emit3("update:modelValue", inputValue.value);
17200
+ }
17201
+ function formatValue(value) {
17202
+ if (value === null || value === void 0)
17203
+ return "";
17204
+ const { maxlength, showWordLimit } = props;
17205
+ if (showWordLimit && maxlength !== -1 && String(value).length > maxlength) {
17206
+ return value.toString().substring(0, maxlength);
17207
+ }
17208
+ return `${value}`;
17209
+ }
17210
+ async function handleClear() {
17211
+ focusing.value = false;
17212
+ inputValue.value = "";
17213
+ if (props.focusWhenClear) {
17214
+ clearing.value = true;
17215
+ focused.value = false;
17216
+ }
17217
+ await pause();
17218
+ if (props.focusWhenClear) {
17219
+ focused.value = true;
17220
+ focusing.value = true;
17221
+ }
17222
+ emit3("update:modelValue", inputValue.value);
17223
+ emit3("clear");
17224
+ }
17225
+ async function handleBlur({ detail }) {
17226
+ await pause(150);
17227
+ if (clearing.value) {
17228
+ clearing.value = false;
17229
+ return;
17230
+ }
17231
+ focusing.value = false;
17232
+ emit3("blur", {
17233
+ value: inputValue.value,
17234
+ cursor: detail.cursor ? detail.cursor : null
17235
+ });
17236
+ }
17237
+ function handleFocus({ detail }) {
17238
+ focusing.value = true;
17239
+ emit3("focus", detail);
17240
+ }
17241
+ function handleInput({ detail }) {
17242
+ inputValue.value = formatValue(inputValue.value);
17243
+ emit3("update:modelValue", inputValue.value);
17244
+ emit3("input", detail);
17245
+ }
17246
+ function handleKeyboardheightchange({ detail }) {
17247
+ emit3("keyboardheightchange", detail);
17248
+ }
17249
+ function handleConfirm({ detail }) {
17250
+ emit3("confirm", detail);
17251
+ }
17252
+ function handleLineChange({ detail }) {
17253
+ emit3("linechange", detail);
17254
+ }
17255
+ function onClickPrefixIcon() {
17256
+ emit3("clickprefixicon");
17257
+ }
17258
+ return (_ctx, _cache) => {
17259
+ const _component_v_uni_text = index$i;
17260
+ const _component_v_uni_view = index$g;
17261
+ const _component_v_uni_textarea = index$h;
17262
+ return openBlock(), createBlock(_component_v_uni_view, {
17263
+ class: normalizeClass(rootClass.value),
17264
+ style: normalizeStyle(_ctx.customStyle)
17265
+ }, {
17266
+ default: withCtx(() => [
17267
+ _ctx.label || _ctx.$slots.label ? (openBlock(), createBlock(_component_v_uni_view, {
17268
+ key: 0,
17269
+ class: "wd-textarea__label",
17270
+ style: normalizeStyle(labelStyle.value)
17271
+ }, {
17272
+ default: withCtx(() => [
17273
+ isRequired.value && _ctx.markerSide === "before" ? (openBlock(), createBlock(_component_v_uni_text, {
17274
+ key: 0,
17275
+ class: "wd-textarea__required wd-textarea__required--left"
17276
+ }, {
17277
+ default: withCtx(() => [
17278
+ createTextVNode("*")
17279
+ ]),
17280
+ _: 1
17281
+ })) : createCommentVNode("", true),
17282
+ _ctx.prefixIcon || _ctx.$slots.prefix ? (openBlock(), createBlock(_component_v_uni_view, {
17283
+ key: 1,
17284
+ class: "wd-textarea__prefix"
17285
+ }, {
17286
+ default: withCtx(() => [
17287
+ _ctx.prefixIcon && !_ctx.$slots.prefix ? (openBlock(), createBlock(__easycom_0$5, {
17288
+ key: 0,
17289
+ "custom-class": "wd-textarea__icon",
17290
+ name: _ctx.prefixIcon,
17291
+ onClick: onClickPrefixIcon
17292
+ }, null, 8, ["name"])) : renderSlot(_ctx.$slots, "prefix", { key: 1 }, void 0, true)
17293
+ ]),
17294
+ _: 3
17295
+ })) : createCommentVNode("", true),
17296
+ createVNode(_component_v_uni_view, { class: "wd-textarea__label-inner" }, {
17297
+ default: withCtx(() => [
17298
+ _ctx.label && !_ctx.$slots.label ? (openBlock(), createBlock(_component_v_uni_text, { key: 0 }, {
17299
+ default: withCtx(() => [
17300
+ createTextVNode(toDisplayString(_ctx.label), 1)
17301
+ ]),
17302
+ _: 1
17303
+ })) : _ctx.$slots.label ? renderSlot(_ctx.$slots, "label", { key: 1 }, void 0, true) : createCommentVNode("", true)
17304
+ ]),
17305
+ _: 3
17306
+ }),
17307
+ isRequired.value && _ctx.markerSide === "after" ? (openBlock(), createBlock(_component_v_uni_text, {
17308
+ key: 2,
17309
+ class: "wd-textarea__required"
17310
+ }, {
17311
+ default: withCtx(() => [
17312
+ createTextVNode("*")
17313
+ ]),
17314
+ _: 1
17315
+ })) : createCommentVNode("", true)
17316
+ ]),
17317
+ _: 3
17318
+ }, 8, ["style"])) : createCommentVNode("", true),
17319
+ createVNode(_component_v_uni_view, {
17320
+ class: normalizeClass(`wd-textarea__value ${showClear.value ? "is-suffix" : ""} ${_ctx.customTextareaContainerClass} ${showWordCount.value ? "is-show-limit" : ""}`)
17321
+ }, {
17322
+ default: withCtx(() => [
17323
+ createVNode(_component_v_uni_textarea, {
17324
+ class: normalizeClass(`wd-textarea__inner ${_ctx.customTextareaClass}`),
17325
+ modelValue: inputValue.value,
17326
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
17327
+ "show-count": false,
17328
+ placeholder: placeholderValue.value,
17329
+ disabled: _ctx.disabled || _ctx.readonly,
17330
+ maxlength: _ctx.maxlength,
17331
+ focus: focused.value,
17332
+ "auto-focus": _ctx.autoFocus,
17333
+ "placeholder-style": _ctx.placeholderStyle,
17334
+ "placeholder-class": inputPlaceholderClass.value,
17335
+ "auto-height": _ctx.autoHeight,
17336
+ "cursor-spacing": _ctx.cursorSpacing,
17337
+ fixed: _ctx.fixed,
17338
+ cursor: _ctx.cursor,
17339
+ "show-confirm-bar": _ctx.showConfirmBar,
17340
+ "selection-start": _ctx.selectionStart,
17341
+ "selection-end": _ctx.selectionEnd,
17342
+ "adjust-position": _ctx.adjustPosition,
17343
+ "hold-keyboard": _ctx.holdKeyboard,
17344
+ "confirm-type": _ctx.confirmType,
17345
+ "confirm-hold": _ctx.confirmHold,
17346
+ "disable-default-padding": _ctx.disableDefaultPadding,
17347
+ ignoreCompositionEvent: _ctx.ignoreCompositionEvent,
17348
+ inputmode: _ctx.inputmode,
17349
+ onInput: handleInput,
17350
+ onFocus: handleFocus,
17351
+ onBlur: handleBlur,
17352
+ onConfirm: handleConfirm,
17353
+ onLinechange: handleLineChange,
17354
+ onKeyboardheightchange: handleKeyboardheightchange
17355
+ }, null, 8, ["class", "modelValue", "placeholder", "disabled", "maxlength", "focus", "auto-focus", "placeholder-style", "placeholder-class", "auto-height", "cursor-spacing", "fixed", "cursor", "show-confirm-bar", "selection-start", "selection-end", "adjust-position", "hold-keyboard", "confirm-type", "confirm-hold", "disable-default-padding", "ignoreCompositionEvent", "inputmode"]),
17356
+ errorMessage.value ? (openBlock(), createBlock(_component_v_uni_view, {
17357
+ key: 0,
17358
+ class: "wd-textarea__error-message"
17359
+ }, {
17360
+ default: withCtx(() => [
17361
+ createTextVNode(toDisplayString(errorMessage.value), 1)
17362
+ ]),
17363
+ _: 1
17364
+ })) : createCommentVNode("", true),
17365
+ props.readonly ? (openBlock(), createBlock(_component_v_uni_view, {
17366
+ key: 1,
17367
+ class: "wd-textarea__readonly-mask"
17368
+ })) : createCommentVNode("", true),
17369
+ createVNode(_component_v_uni_view, { class: "wd-textarea__suffix" }, {
17370
+ default: withCtx(() => [
17371
+ showClear.value ? (openBlock(), createBlock(__easycom_0$5, {
17372
+ key: 0,
17373
+ "custom-class": "wd-textarea__clear",
17374
+ name: "error-fill",
17375
+ onClick: handleClear
17376
+ })) : createCommentVNode("", true),
17377
+ showWordCount.value ? (openBlock(), createBlock(_component_v_uni_view, {
17378
+ key: 1,
17379
+ class: "wd-textarea__count"
17380
+ }, {
17381
+ default: withCtx(() => [
17382
+ createVNode(_component_v_uni_text, {
17383
+ class: normalizeClass(countClass.value)
17384
+ }, {
17385
+ default: withCtx(() => [
17386
+ createTextVNode(toDisplayString(currentLength.value), 1)
17387
+ ]),
17388
+ _: 1
17389
+ }, 8, ["class"]),
17390
+ createTextVNode(" /" + toDisplayString(_ctx.maxlength), 1)
17391
+ ]),
17392
+ _: 1
17393
+ })) : createCommentVNode("", true)
17394
+ ]),
17395
+ _: 1
17396
+ })
17397
+ ]),
17398
+ _: 1
17399
+ }, 8, ["class"])
17400
+ ]),
17401
+ _: 3
17402
+ }, 8, ["class", "style"]);
17403
+ };
17404
+ }
17405
+ });
17406
+ const wdTextarea_vue_vue_type_style_index_0_scoped_e237f166_lang = "";
17407
+ const wdTextarea_vue_vue_type_style_index_1_scoped_e237f166_lang = "";
17408
+ const __easycom_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-e237f166"]]);
16674
17409
  function mitt(n2) {
16675
17410
  return { all: n2 = n2 || /* @__PURE__ */ new Map(), on: function(t3, e3) {
16676
17411
  var i2 = n2.get(t3);
@@ -17029,9 +17764,11 @@ function useUtils() {
17029
17764
  let params = {};
17030
17765
  if (!isEmpty(httpSetting.parameters)) {
17031
17766
  (_a2 = httpSetting.parameters) == null ? void 0 : _a2.forEach((item) => {
17032
- params[item.name] = item.value;
17033
- if (item.componentID) {
17034
- params[item.name] = datas[item.componentID];
17767
+ const value = (item.componentID ? datas[item.componentID] : item.value) || "";
17768
+ if (Array.isArray(value)) {
17769
+ params[item.name] = JSON.stringify(value);
17770
+ } else {
17771
+ params[item.name] = value;
17035
17772
  }
17036
17773
  });
17037
17774
  }
@@ -17076,7 +17813,7 @@ function useUtils() {
17076
17813
  }
17077
17814
  };
17078
17815
  }
17079
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
17816
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
17080
17817
  __name: "input",
17081
17818
  props: {
17082
17819
  /**
@@ -17126,6 +17863,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
17126
17863
  setup(__props, { emit: __emit }) {
17127
17864
  const props = __props;
17128
17865
  const formType = inject("formType");
17866
+ const isPreview = inject("isPreview");
17129
17867
  const everyItemDisplayAnalysisSwitch = inject("everyItemDisplayAnalysisSwitch");
17130
17868
  const httpBaseUrl = inject("httpBaseUrl");
17131
17869
  const displayAnswerDescription = ref(false);
@@ -17148,21 +17886,33 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
17148
17886
  await callApi(httpSetting, datas.value, httpBaseUrl, true);
17149
17887
  };
17150
17888
  return (_ctx, _cache) => {
17889
+ const _component_wd_textarea = resolveEasycom(resolveDynamicComponent("wd-textarea"), __easycom_0$3);
17151
17890
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
17152
- const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_0$3);
17891
+ const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_4);
17153
17892
  const _component_v_uni_view = index$g;
17154
17893
  return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-input" }, {
17155
17894
  default: withCtx(() => [
17156
- createVNode(_component_wd_input, {
17157
- type: unref(componentProps).type,
17895
+ unref(componentProps).type === "textarea" ? (openBlock(), createBlock(_component_wd_textarea, {
17896
+ key: 0,
17158
17897
  "custom-class": "zhy",
17159
17898
  modelValue: unref(datas)[__props.componentID],
17160
17899
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(datas)[__props.componentID] = $event),
17161
17900
  placeholder: unref(componentProps).placeholder,
17162
17901
  clearable: unref(componentProps).clearable,
17163
17902
  clearTrigger: "focus",
17164
- disabled: __props.disabled,
17165
- readonly: __props.readonly
17903
+ disabled: __props.disabled || unref(isPreview),
17904
+ readonly: __props.readonly || unref(isPreview)
17905
+ }, null, 8, ["modelValue", "placeholder", "clearable", "disabled", "readonly"])) : (openBlock(), createBlock(_component_wd_input, {
17906
+ key: 1,
17907
+ type: unref(componentProps).type,
17908
+ "custom-class": "zhy",
17909
+ modelValue: unref(datas)[__props.componentID],
17910
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(datas)[__props.componentID] = $event),
17911
+ placeholder: unref(componentProps).placeholder,
17912
+ clearable: unref(componentProps).clearable,
17913
+ clearTrigger: "focus",
17914
+ disabled: __props.disabled || unref(isPreview),
17915
+ readonly: __props.readonly || unref(isPreview)
17166
17916
  }, {
17167
17917
  suffix: withCtx(() => [
17168
17918
  unref(componentProps).queryFlag ? (openBlock(), createBlock(_component_wd_icon, {
@@ -17174,9 +17924,9 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
17174
17924
  })) : createCommentVNode("", true)
17175
17925
  ]),
17176
17926
  _: 1
17177
- }, 8, ["type", "modelValue", "placeholder", "clearable", "disabled", "readonly"]),
17927
+ }, 8, ["type", "modelValue", "placeholder", "clearable", "disabled", "readonly"])),
17178
17928
  unref(everyItemDisplayAnalysisSwitch) || unref(displayAnswerDescription) || __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
17179
- key: 0,
17929
+ key: 2,
17180
17930
  class: normalizeClass(["dynamic-form-item-description", { "show-description": __props.showDescription || unref(displayAnswerDescription) }])
17181
17931
  }, {
17182
17932
  default: withCtx(() => [
@@ -17185,7 +17935,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
17185
17935
  "class-prefix": "iconfont zhy",
17186
17936
  name: "tip",
17187
17937
  color: "#ff0000",
17188
- onClick: _cache[1] || (_cache[1] = ($event) => unref(everyItemDisplayAnalysisSwitch) && (displayAnswerDescription.value = !unref(displayAnswerDescription)))
17938
+ onClick: _cache[2] || (_cache[2] = ($event) => unref(everyItemDisplayAnalysisSwitch) && (displayAnswerDescription.value = !unref(displayAnswerDescription)))
17189
17939
  }),
17190
17940
  __props.showDescription || unref(displayAnswerDescription) ? (openBlock(), createBlock(_component_v_uni_view, { key: 0 }, {
17191
17941
  default: withCtx(() => [
@@ -17202,7 +17952,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
17202
17952
  };
17203
17953
  }
17204
17954
  });
17205
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
17955
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
17206
17956
  __name: "inputNumber",
17207
17957
  props: {
17208
17958
  /**
@@ -17252,6 +18002,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
17252
18002
  setup(__props, { emit: __emit }) {
17253
18003
  const props = __props;
17254
18004
  const formType = inject("formType");
18005
+ const isPreview = inject("isPreview");
17255
18006
  const { datas, componentProps } = toRefs(props);
17256
18007
  const emits = __emit;
17257
18008
  watch(datas, (newValue) => emits("update:datas", newValue));
@@ -17331,7 +18082,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
17331
18082
  }
17332
18083
  };
17333
18084
  return (_ctx, _cache) => {
17334
- const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_0$3);
18085
+ const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_4);
17335
18086
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
17336
18087
  const _component_v_uni_view = index$g;
17337
18088
  return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-input-number" }, {
@@ -17344,8 +18095,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
17344
18095
  placeholder: unref(componentProps).placeholder,
17345
18096
  clearable: unref(componentProps).clearable,
17346
18097
  clearTrigger: "focus",
17347
- disabled: __props.disabled,
17348
- readonly: __props.readonly,
18098
+ disabled: __props.disabled || unref(isPreview),
18099
+ readonly: __props.readonly || unref(isPreview),
17349
18100
  style: normalizeStyle({ width: `${unref(componentProps).componentWidth}px` }),
17350
18101
  onInput: change
17351
18102
  }, createSlots({ _: 2 }, [
@@ -17378,7 +18129,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
17378
18129
  };
17379
18130
  }
17380
18131
  });
17381
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
18132
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
17382
18133
  __name: "label",
17383
18134
  props: {
17384
18135
  componentProps: {
@@ -17462,7 +18213,7 @@ const __default__$l = {
17462
18213
  styleIsolation: "shared"
17463
18214
  }
17464
18215
  };
17465
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
18216
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
17466
18217
  ...__default__$l,
17467
18218
  props: radioProps,
17468
18219
  setup(__props) {
@@ -17563,7 +18314,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
17563
18314
  }
17564
18315
  });
17565
18316
  const wdRadio_vue_vue_type_style_index_0_scoped_018dc90f_lang = "";
17566
- const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-018dc90f"]]);
18317
+ const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-018dc90f"]]);
17567
18318
  const __default__$k = {
17568
18319
  name: "wd-radio-group",
17569
18320
  options: {
@@ -17572,7 +18323,7 @@ const __default__$k = {
17572
18323
  styleIsolation: "shared"
17573
18324
  }
17574
18325
  };
17575
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
18326
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
17576
18327
  ...__default__$k,
17577
18328
  props: radioGroupProps,
17578
18329
  emits: ["change", "update:modelValue"],
@@ -17611,8 +18362,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
17611
18362
  }
17612
18363
  });
17613
18364
  const wdRadioGroup_vue_vue_type_style_index_0_scoped_71177273_lang = "";
17614
- const __easycom_1$3 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-71177273"]]);
17615
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
18365
+ const __easycom_1$2 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-71177273"]]);
18366
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
17616
18367
  __name: "radio",
17617
18368
  props: {
17618
18369
  /**
@@ -17655,6 +18406,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
17655
18406
  setup(__props, { emit: __emit }) {
17656
18407
  const props = __props;
17657
18408
  const formType = inject("formType");
18409
+ const isPreview = inject("isPreview");
17658
18410
  const realTimeDisplayAnswerMode = inject("realTimeDisplayAnswerMode");
17659
18411
  const everyItemDisplayAnalysisSwitch = inject("everyItemDisplayAnalysisSwitch");
17660
18412
  const { datas, componentProps } = toRefs(props);
@@ -17685,7 +18437,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
17685
18437
  };
17686
18438
  change({ value: datas.value[props.componentID] });
17687
18439
  const clearCheck = (event, value) => {
17688
- if (componentProps.value.clearable && oldValue === value) {
18440
+ if (!props.disabled && !isPreview && componentProps.value.clearable && oldValue === value) {
17689
18441
  delete datas.value[props.componentID];
17690
18442
  oldValue = void 0;
17691
18443
  const inputKey = `${props.componentID}||${value}`;
@@ -17697,8 +18449,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
17697
18449
  };
17698
18450
  return (_ctx, _cache) => {
17699
18451
  const _component_wd_radio = resolveEasycom(resolveDynamicComponent("wd-radio"), __easycom_0$2);
17700
- const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_0$3);
17701
- const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$3);
18452
+ const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_4);
18453
+ const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$2);
17702
18454
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
17703
18455
  const _component_v_uni_view = index$g;
17704
18456
  return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-radio" }, {
@@ -17707,7 +18459,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
17707
18459
  "custom-class": "zhy",
17708
18460
  modelValue: unref(datas)[__props.componentID],
17709
18461
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(datas)[__props.componentID] = $event),
17710
- disabled: __props.disabled,
18462
+ disabled: __props.disabled || unref(isPreview),
17711
18463
  inline: !unref(componentProps).newLine,
17712
18464
  "icon-placement": "left",
17713
18465
  shape: "dot",
@@ -17733,9 +18485,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
17733
18485
  placeholder: "",
17734
18486
  clearable: true,
17735
18487
  clearTrigger: "focus",
18488
+ disabled: __props.disabled || unref(isPreview),
17736
18489
  modelValue: unref(datas)[`${__props.componentID}||${item.value}`],
17737
18490
  "onUpdate:modelValue": ($event) => unref(datas)[`${__props.componentID}||${item.value}`] = $event
17738
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
18491
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
17739
18492
  ], 64);
17740
18493
  }), 128))
17741
18494
  ]),
@@ -17768,7 +18521,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
17768
18521
  };
17769
18522
  }
17770
18523
  });
17771
- const _sfc_main$F = {
18524
+ const _sfc_main$G = {
17772
18525
  name: "wd-root-portal",
17773
18526
  options: {
17774
18527
  virtualHost: true,
@@ -17781,7 +18534,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
17781
18534
  renderSlot(_ctx.$slots, "default")
17782
18535
  ]);
17783
18536
  }
17784
- const wdRootPortal = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render]]);
18537
+ const wdRootPortal = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render]]);
17785
18538
  const popupProps = {
17786
18539
  ...baseProps,
17787
18540
  /**
@@ -17879,7 +18632,7 @@ const __default__$j = {
17879
18632
  styleIsolation: "shared"
17880
18633
  }
17881
18634
  };
17882
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
18635
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
17883
18636
  ...__default__$j,
17884
18637
  props: popupProps,
17885
18638
  emits: [
@@ -18041,7 +18794,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
18041
18794
  }
18042
18795
  });
18043
18796
  const wdPopup_vue_vue_type_style_index_0_scoped_f9eeb02f_lang = "";
18044
- const wdPopup = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-f9eeb02f"]]);
18797
+ const wdPopup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-f9eeb02f"]]);
18045
18798
  const pickerViewColumn = "";
18046
18799
  const pickerView = "";
18047
18800
  const pickerViewProps = {
@@ -18130,7 +18883,7 @@ const __default__$i = {
18130
18883
  styleIsolation: "shared"
18131
18884
  }
18132
18885
  };
18133
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
18886
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
18134
18887
  ...__default__$i,
18135
18888
  props: pickerViewProps,
18136
18889
  emits: ["change", "pickstart", "pickend", "update:modelValue"],
@@ -18345,7 +19098,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18345
19098
  class: "wd-picker-view__loading"
18346
19099
  }, {
18347
19100
  default: withCtx(() => [
18348
- createVNode(__easycom_1$6, { color: _ctx.loadingColor }, null, 8, ["color"])
19101
+ createVNode(__easycom_1$5, { color: _ctx.loadingColor }, null, 8, ["color"])
18349
19102
  ]),
18350
19103
  _: 1
18351
19104
  })) : createCommentVNode("", true),
@@ -18400,7 +19153,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18400
19153
  }
18401
19154
  });
18402
19155
  const wdPickerView_vue_vue_type_style_index_0_scoped_9ad5b7f1_lang = "";
18403
- const wdPickerView = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-9ad5b7f1"]]);
19156
+ const wdPickerView = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-9ad5b7f1"]]);
18404
19157
  const datetimePickerViewProps = {
18405
19158
  ...baseProps,
18406
19159
  /**
@@ -18516,7 +19269,7 @@ const __default__$h = {
18516
19269
  addGlobalClass: true,
18517
19270
  styleIsolation: "shared"
18518
19271
  };
18519
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
19272
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18520
19273
  ...__default__$h,
18521
19274
  props: datetimePickerViewProps,
18522
19275
  emits: ["change", "pickstart", "pickend", "update:modelValue"],
@@ -19093,7 +19846,7 @@ const __default__$g = {
19093
19846
  styleIsolation: "shared"
19094
19847
  }
19095
19848
  };
19096
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
19849
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
19097
19850
  ...__default__$g,
19098
19851
  props: datetimePickerProps,
19099
19852
  emits: ["change", "open", "toggle", "cancel", "confirm", "clear", "update:modelValue"],
@@ -19580,7 +20333,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19580
20333
  style: normalizeStyle(_ctx.customStyle)
19581
20334
  }, {
19582
20335
  default: withCtx(() => [
19583
- !_ctx.$slots.default ? (openBlock(), createBlock(__easycom_1$4, {
20336
+ !_ctx.$slots.default ? (openBlock(), createBlock(__easycom_1$3, {
19584
20337
  key: 0,
19585
20338
  title: _ctx.label,
19586
20339
  required: _ctx.required,
@@ -19779,7 +20532,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19779
20532
  class: normalizeClass(showStart.value ? "wd-datetime-picker__show" : "wd-datetime-picker__hidden")
19780
20533
  }, {
19781
20534
  default: withCtx(() => [
19782
- createVNode(_sfc_main$C, {
20535
+ createVNode(_sfc_main$D, {
19783
20536
  "custom-class": _ctx.customViewClass,
19784
20537
  ref_key: "datetimePickerView",
19785
20538
  ref: datetimePickerView,
@@ -19815,7 +20568,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19815
20568
  class: normalizeClass(showStart.value ? "wd-datetime-picker__hidden" : "wd-datetime-picker__show")
19816
20569
  }, {
19817
20570
  default: withCtx(() => [
19818
- createVNode(_sfc_main$C, {
20571
+ createVNode(_sfc_main$D, {
19819
20572
  "custom-class": _ctx.customViewClass,
19820
20573
  ref_key: "datetimePickerView1",
19821
20574
  ref: datetimePickerView1,
@@ -19860,7 +20613,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19860
20613
  }
19861
20614
  });
19862
20615
  const wdDatetimePicker_vue_vue_type_style_index_0_scoped_f24d371b_lang = "";
19863
- const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-f24d371b"]]);
20616
+ const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f24d371b"]]);
19864
20617
  function useDate() {
19865
20618
  const formatDate2 = (date, format) => {
19866
20619
  let result = dayjs$1(date || /* @__PURE__ */ new Date()).format(format || "YYYY-MM-DD");
@@ -20052,7 +20805,7 @@ function useDate() {
20052
20805
  }
20053
20806
  };
20054
20807
  }
20055
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
20808
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
20056
20809
  __name: "date",
20057
20810
  props: {
20058
20811
  /**
@@ -20114,6 +20867,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20114
20867
  getCurrentDate
20115
20868
  } = useDate();
20116
20869
  let formData = inject("formData");
20870
+ const isPreview = inject("isPreview");
20117
20871
  const { datas, componentProps } = toRefs(props);
20118
20872
  const datetimeType = ref(String(componentProps.value.datetimeType));
20119
20873
  if (["datetimerange", "daterange"].includes(String(componentProps.value.datetimeType))) {
@@ -20169,7 +20923,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20169
20923
  }
20170
20924
  const unit = ["date", "datetime"].includes(dateType) ? "day" : dateType;
20171
20925
  if (type === "minDate") {
20172
- let startTime = -1;
20926
+ let startTime = void 0;
20173
20927
  if (componentProps.value.minTime) {
20174
20928
  startTime = getMilliseconds(componentProps.value.minTime);
20175
20929
  }
@@ -20183,7 +20937,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20183
20937
  return startTime;
20184
20938
  }
20185
20939
  if (type === "maxDate") {
20186
- let endTime = -1;
20940
+ let endTime = void 0;
20187
20941
  if (componentProps.value.maxTime) {
20188
20942
  endTime = getMilliseconds(componentProps.value.maxTime);
20189
20943
  }
@@ -20207,15 +20961,16 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20207
20961
  "custom-class": "zhy w-full",
20208
20962
  modelValue: unref(dateTime),
20209
20963
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(dateTime) ? dateTime.value = $event : null),
20964
+ "default-value": Date.now(),
20210
20965
  type: unref(datetimeType),
20211
20966
  displayFormat,
20212
20967
  placeholder: unref(componentProps).placeholder,
20213
20968
  clearable: unref(componentProps).clearable,
20214
- disabled: __props.disabled,
20215
- readonly: __props.readonly,
20969
+ disabled: __props.disabled || unref(isPreview),
20970
+ readonly: __props.readonly || unref(isPreview),
20216
20971
  minDate: getDisabledDate("minDate"),
20217
20972
  maxDate: getDisabledDate("maxDate")
20218
- }, null, 8, ["modelValue", "type", "placeholder", "clearable", "disabled", "readonly", "minDate", "maxDate"]),
20973
+ }, null, 8, ["modelValue", "default-value", "type", "placeholder", "clearable", "disabled", "readonly", "minDate", "maxDate"]),
20219
20974
  __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
20220
20975
  key: 0,
20221
20976
  class: "dynamic-form-item-description show-description"
@@ -20405,7 +21160,7 @@ const __default__$f = {
20405
21160
  styleIsolation: "shared"
20406
21161
  }
20407
21162
  };
20408
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
21163
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20409
21164
  ...__default__$f,
20410
21165
  props: pickerProps,
20411
21166
  emits: ["confirm", "open", "cancel", "clear", "update:modelValue"],
@@ -20649,7 +21404,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
20649
21404
  style: normalizeStyle(_ctx.customStyle)
20650
21405
  }, {
20651
21406
  default: withCtx(() => [
20652
- !_ctx.$slots.default ? (openBlock(), createBlock(__easycom_1$4, {
21407
+ !_ctx.$slots.default ? (openBlock(), createBlock(__easycom_1$3, {
20653
21408
  key: 0,
20654
21409
  title: _ctx.label,
20655
21410
  value: showValue.value ? showValue.value : _ctx.placeholder || unref(translate)("placeholder"),
@@ -20786,8 +21541,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
20786
21541
  }
20787
21542
  });
20788
21543
  const wdPicker_vue_vue_type_style_index_0_scoped_330a0eba_lang = "";
20789
- const __easycom_1$2 = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-330a0eba"]]);
20790
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
21544
+ const __easycom_5$1 = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-330a0eba"]]);
21545
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
20791
21546
  __name: "time",
20792
21547
  props: {
20793
21548
  /**
@@ -20839,6 +21594,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20839
21594
  const props = __props;
20840
21595
  const { formatDate: formatDate2, getMilliseconds, getCurrentDate, getXAfterDateTime, isAfter } = useDate();
20841
21596
  let formData = inject("formData");
21597
+ const isPreview = inject("isPreview");
20842
21598
  const { datas, componentProps } = toRefs(props);
20843
21599
  const datetimeType = ref(String(componentProps.value.datetimeType));
20844
21600
  const dateTime = ref(datas.value[props.componentID] ? getMilliseconds(datas.value[props.componentID]) : "");
@@ -20908,7 +21664,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20908
21664
  }
20909
21665
  return (_ctx, _cache) => {
20910
21666
  const _component_wd_datetime_picker = resolveEasycom(resolveDynamicComponent("wd-datetime-picker"), __easycom_0$1);
20911
- const _component_wd_picker = resolveEasycom(resolveDynamicComponent("wd-picker"), __easycom_1$2);
21667
+ const _component_wd_picker = resolveEasycom(resolveDynamicComponent("wd-picker"), __easycom_5$1);
20912
21668
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
20913
21669
  const _component_v_uni_view = index$g;
20914
21670
  return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-time aline-left" }, {
@@ -20922,8 +21678,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20922
21678
  displayFormat,
20923
21679
  placeholder: unref(componentProps).placeholder,
20924
21680
  clearable: unref(componentProps).clearable,
20925
- disabled: __props.disabled,
20926
- readonly: __props.readonly,
21681
+ disabled: __props.disabled || unref(isPreview),
21682
+ readonly: __props.readonly || unref(isPreview),
20927
21683
  minHour: getDisabledDate("minHour"),
20928
21684
  maxHour: getDisabledDate("maxHour"),
20929
21685
  minMinute: getDisabledDate("minMinute"),
@@ -20936,8 +21692,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20936
21692
  columns: unref(columns),
20937
21693
  modelValue: unref(dateTime),
20938
21694
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(dateTime) ? dateTime.value = $event : null),
21695
+ disabled: __props.disabled || unref(isPreview),
21696
+ readonly: __props.readonly || unref(isPreview),
20939
21697
  "confirm-button-text": "确定"
20940
- }, null, 8, ["columns", "modelValue"])) : createCommentVNode("", true),
21698
+ }, null, 8, ["columns", "modelValue", "disabled", "readonly"])) : createCommentVNode("", true),
20941
21699
  __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
20942
21700
  key: 2,
20943
21701
  class: "dynamic-form-item-description show-description"
@@ -20961,13 +21719,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20961
21719
  });
20962
21720
  const baseComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20963
21721
  __proto__: null,
20964
- checkbox: _sfc_main$M,
20965
- date: _sfc_main$A,
20966
- input: _sfc_main$L,
20967
- inputNumber: _sfc_main$K,
20968
- label: _sfc_main$J,
20969
- radio: _sfc_main$G,
20970
- time: _sfc_main$y
21722
+ checkbox: _sfc_main$O,
21723
+ date: _sfc_main$B,
21724
+ input: _sfc_main$M,
21725
+ inputNumber: _sfc_main$L,
21726
+ label: _sfc_main$K,
21727
+ radio: _sfc_main$H,
21728
+ time: _sfc_main$z
20971
21729
  }, Symbol.toStringTag, { value: "Module" }));
20972
21730
  const swiper = "";
20973
21731
  const swiperItem = "";
@@ -20985,7 +21743,7 @@ const __default__$e = {
20985
21743
  styleIsolation: "shared"
20986
21744
  }
20987
21745
  };
20988
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
21746
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20989
21747
  ...__default__$e,
20990
21748
  props: videoPreviewProps,
20991
21749
  setup(__props, { expose: __expose }) {
@@ -21055,7 +21813,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
21055
21813
  }
21056
21814
  });
21057
21815
  const wdVideoPreview_vue_vue_type_style_index_0_scoped_518574c4_lang = "";
21058
- const wdVideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-518574c4"]]);
21816
+ const wdVideoPreview = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-518574c4"]]);
21059
21817
  const UPLOAD_STATUS = {
21060
21818
  PENDING: "pending",
21061
21819
  LOADING: "loading",
@@ -21458,7 +22216,7 @@ const __default__$d = {
21458
22216
  styleIsolation: "shared"
21459
22217
  }
21460
22218
  };
21461
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
22219
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
21462
22220
  ...__default__$d,
21463
22221
  props: uploadProps,
21464
22222
  emits: ["fail", "change", "success", "progress", "oversize", "chooseerror", "remove", "update:fileList"],
@@ -21982,7 +22740,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
21982
22740
  class: "wd-upload__status-content"
21983
22741
  }, {
21984
22742
  default: withCtx(() => [
21985
- createVNode(__easycom_1$6, {
22743
+ createVNode(__easycom_1$5, {
21986
22744
  type: _ctx.loadingType,
21987
22745
  size: _ctx.loadingSize,
21988
22746
  color: _ctx.loadingColor
@@ -22077,7 +22835,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
22077
22835
  }
22078
22836
  });
22079
22837
  const wdUpload_vue_vue_type_style_index_0_scoped_9c9a99ed_lang = "";
22080
- const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-9c9a99ed"]]);
22838
+ const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-9c9a99ed"]]);
22081
22839
  const messageBoxProps = {
22082
22840
  ...baseProps,
22083
22841
  /**
@@ -22115,7 +22873,7 @@ const __default__$c = {
22115
22873
  styleIsolation: "shared"
22116
22874
  }
22117
22875
  };
22118
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
22876
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
22119
22877
  ...__default__$c,
22120
22878
  props: messageBoxProps,
22121
22879
  setup(__props) {
@@ -22344,7 +23102,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
22344
23102
  createVNode(_component_v_uni_view, { class: "wd-message-box__content" }, {
22345
23103
  default: withCtx(() => [
22346
23104
  messageState.type === "prompt" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22347
- createVNode(__easycom_0$3, {
23105
+ createVNode(__easycom_4, {
22348
23106
  modelValue: messageState.inputValue,
22349
23107
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => messageState.inputValue = $event),
22350
23108
  type: messageState.inputType,
@@ -22375,7 +23133,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
22375
23133
  class: normalizeClass(`wd-message-box__actions ${messageState.showCancelButton ? "wd-message-box__flex" : "wd-message-box__block"}`)
22376
23134
  }, {
22377
23135
  default: withCtx(() => [
22378
- messageState.showCancelButton ? (openBlock(), createBlock(__easycom_1$5, mergeProps({ key: 0 }, customCancelProps.value, {
23136
+ messageState.showCancelButton ? (openBlock(), createBlock(__easycom_1$4, mergeProps({ key: 0 }, customCancelProps.value, {
22379
23137
  onClick: _cache[1] || (_cache[1] = ($event) => toggleModal("cancel"))
22380
23138
  }), {
22381
23139
  default: withCtx(() => [
@@ -22383,7 +23141,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
22383
23141
  ]),
22384
23142
  _: 1
22385
23143
  }, 16)) : createCommentVNode("", true),
22386
- createVNode(__easycom_1$5, mergeProps(customConfirmProps.value, {
23144
+ createVNode(__easycom_1$4, mergeProps(customConfirmProps.value, {
22387
23145
  onClick: _cache[2] || (_cache[2] = ($event) => toggleModal("confirm"))
22388
23146
  }), {
22389
23147
  default: withCtx(() => [
@@ -22407,7 +23165,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
22407
23165
  }
22408
23166
  });
22409
23167
  const wdMessageBox_vue_vue_type_style_index_0_scoped_725e15ab_lang = "";
22410
- const __easycom_3$2 = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-725e15ab"]]);
23168
+ const __easycom_3$2 = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-725e15ab"]]);
22411
23169
  function useMessage() {
22412
23170
  const message = useMessage$1();
22413
23171
  return {
@@ -22438,7 +23196,7 @@ function useMessage() {
22438
23196
  }
22439
23197
  };
22440
23198
  }
22441
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
23199
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
22442
23200
  __name: "upload",
22443
23201
  props: {
22444
23202
  /**
@@ -22468,11 +23226,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
22468
23226
  showDescription: {
22469
23227
  type: Boolean,
22470
23228
  default: false
23229
+ },
23230
+ /**
23231
+ * 是否禁用
23232
+ */
23233
+ disabled: {
23234
+ type: Boolean,
23235
+ default: false
22471
23236
  }
22472
23237
  },
22473
23238
  setup(__props) {
22474
23239
  const props = __props;
22475
23240
  const formType = inject("formType");
23241
+ const isPreview = inject("isPreview");
22476
23242
  const { checkFile, dataToFile } = useUtils();
22477
23243
  const upload = ref();
22478
23244
  const uploadOptions = inject("uploadOptions");
@@ -22507,24 +23273,29 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
22507
23273
  };
22508
23274
  return (_ctx, _cache) => {
22509
23275
  var _a2, _b2;
22510
- const _component_wd_button = resolveEasycom(resolveDynamicComponent("wd-button"), __easycom_1$5);
23276
+ const _component_wd_button = resolveEasycom(resolveDynamicComponent("wd-button"), __easycom_1$4);
22511
23277
  const _component_wd_upload = resolveEasycom(resolveDynamicComponent("wd-upload"), __easycom_0);
22512
23278
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
22513
23279
  const _component_v_uni_view = index$g;
22514
23280
  const _component_wd_message_box = resolveEasycom(resolveDynamicComponent("wd-message-box"), __easycom_3$2);
22515
23281
  return openBlock(), createElementBlock("div", { class: "zhy-form-component-upload" }, [
22516
- createVNode(_component_wd_upload, {
23282
+ unref(isPreview) && !unref(fileList).length ? (openBlock(), createElementBlock("span", {
23283
+ key: 0,
23284
+ class: "theme-color-danger"
23285
+ }, toDisplayString(`无${unref(componentProps).label}`), 1)) : (openBlock(), createBlock(_component_wd_upload, {
23286
+ key: 1,
22517
23287
  ref_key: "upload",
22518
23288
  ref: upload,
22519
23289
  "file-list": unref(fileList),
22520
23290
  action: unref(uploadOptions).serverApi,
22521
23291
  multiple: unref(componentProps).multiple,
22522
- limit: unref(componentProps).fileLimit,
23292
+ limit: __props.disabled || unref(isPreview) ? unref(fileList).length : unref(componentProps).fileLimit,
22523
23293
  "auto-upload": (_a2 = unref(uploadOptions)) == null ? void 0 : _a2.autoUpload,
22524
23294
  extension: (_b2 = unref(componentProps).fileType) == null ? void 0 : _b2.split(","),
22525
23295
  accept: "all",
22526
23296
  "before-upload": beforeUpload,
22527
- "before-remove": beforeRemove
23297
+ "before-remove": beforeRemove,
23298
+ disabled: __props.disabled || unref(isPreview)
22528
23299
  }, {
22529
23300
  default: withCtx(() => [
22530
23301
  createVNode(_component_wd_button, null, {
@@ -22535,9 +23306,9 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
22535
23306
  })
22536
23307
  ]),
22537
23308
  _: 1
22538
- }, 8, ["file-list", "action", "multiple", "limit", "auto-upload", "extension"]),
23309
+ }, 8, ["file-list", "action", "multiple", "limit", "auto-upload", "extension", "disabled"])),
22539
23310
  __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
22540
- key: 0,
23311
+ key: 2,
22541
23312
  class: "dynamic-form-item-description show-description"
22542
23313
  }, {
22543
23314
  default: withCtx(() => [
@@ -22556,7 +23327,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
22556
23327
  };
22557
23328
  }
22558
23329
  });
22559
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
23330
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
22560
23331
  __name: "uploadImage",
22561
23332
  props: {
22562
23333
  /**
@@ -22586,13 +23357,20 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
22586
23357
  showDescription: {
22587
23358
  type: Boolean,
22588
23359
  default: false
23360
+ },
23361
+ /**
23362
+ * 是否禁用
23363
+ */
23364
+ disabled: {
23365
+ type: Boolean,
23366
+ default: false
22589
23367
  }
22590
23368
  },
22591
23369
  setup(__props) {
22592
23370
  const props = __props;
22593
23371
  const formType = inject("formType");
23372
+ const isPreview = inject("isPreview");
22594
23373
  const { checkFile, dataToFile } = useUtils();
22595
- const upload = ref();
22596
23374
  const uploadOptions = inject("uploadOptions");
22597
23375
  const { datas, componentProps } = toRefs(props);
22598
23376
  const fileList = ref(datas.value[props.componentID] ?? []);
@@ -22629,23 +23407,27 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
22629
23407
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
22630
23408
  const _component_v_uni_view = index$g;
22631
23409
  const _component_wd_message_box = resolveEasycom(resolveDynamicComponent("wd-message-box"), __easycom_3$2);
22632
- return openBlock(), createElementBlock("div", { class: "zhy-form-component-upload-image" }, [
22633
- createVNode(_component_wd_upload, {
22634
- ref_key: "upload",
22635
- ref: upload,
23410
+ return openBlock(), createElementBlock("div", { class: "zhy-form-component-upload-image sons-class-wd-upload__preview:mt-4!" }, [
23411
+ unref(isPreview) && !unref(fileList).length ? (openBlock(), createElementBlock("span", {
23412
+ key: 0,
23413
+ class: "theme-color-danger"
23414
+ }, toDisplayString(`无${unref(componentProps).label}`), 1)) : (openBlock(), createBlock(_component_wd_upload, {
23415
+ key: 1,
23416
+ ref: "upload",
22636
23417
  "file-list": unref(fileList),
22637
23418
  action: unref(uploadOptions).serverApi,
22638
23419
  multiple: unref(componentProps).multiple,
22639
- limit: unref(componentProps).fileLimit,
23420
+ limit: __props.disabled || unref(isPreview) ? unref(fileList).length : unref(componentProps).fileLimit,
22640
23421
  "auto-upload": (_a2 = unref(uploadOptions)) == null ? void 0 : _a2.autoUpload,
22641
23422
  extension: (_b2 = unref(componentProps).fileType) == null ? void 0 : _b2.split(","),
22642
23423
  accept: "media",
22643
23424
  "image-mode": "aspectFill",
22644
23425
  "before-upload": beforeUpload,
22645
- "before-remove": beforeRemove
22646
- }, null, 8, ["file-list", "action", "multiple", "limit", "auto-upload", "extension"]),
23426
+ "before-remove": beforeRemove,
23427
+ disabled: __props.disabled || unref(isPreview)
23428
+ }, null, 8, ["file-list", "action", "multiple", "limit", "auto-upload", "extension", "disabled"])),
22647
23429
  __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
22648
- key: 0,
23430
+ key: 2,
22649
23431
  class: "dynamic-form-item-description show-description"
22650
23432
  }, {
22651
23433
  default: withCtx(() => [
@@ -22666,8 +23448,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
22666
23448
  });
22667
23449
  const advancedComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22668
23450
  __proto__: null,
22669
- upload: _sfc_main$u,
22670
- uploadImage: _sfc_main$t
23451
+ upload: _sfc_main$v,
23452
+ uploadImage: _sfc_main$u
22671
23453
  }, Symbol.toStringTag, { value: "Module" }));
22672
23454
  const searchProps = {
22673
23455
  ...baseProps,
@@ -22756,7 +23538,7 @@ const __default__$b = {
22756
23538
  styleIsolation: "shared"
22757
23539
  }
22758
23540
  };
22759
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
23541
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
22760
23542
  ...__default__$b,
22761
23543
  props: searchProps,
22762
23544
  emits: ["update:modelValue", "change", "clear", "search", "focus", "blur", "cancel"],
@@ -22959,8 +23741,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
22959
23741
  }
22960
23742
  });
22961
23743
  const wdSearch_vue_vue_type_style_index_0_scoped_d19ead27_lang = "";
22962
- const __easycom_5 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-d19ead27"]]);
22963
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
23744
+ const __easycom_5 = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d19ead27"]]);
23745
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
22964
23746
  __name: "popupDialog",
22965
23747
  props: {
22966
23748
  modelValue: {
@@ -23009,7 +23791,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23009
23791
  const _component_v_uni_view = index$g;
23010
23792
  const _component_wd_popup = resolveEasycom(resolveDynamicComponent("wd-popup"), wdPopup);
23011
23793
  return openBlock(), createBlock(_component_wd_popup, {
23012
- "custom-class": "zhy popup-dialog rd-t-20px",
23794
+ "custom-class": "zhy popup-dialog rd-t-20px z-9999!",
23013
23795
  "custom-style": `height:${__props.height}px`,
23014
23796
  modelValue: unref(show),
23015
23797
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(show) ? show.value = $event : null),
@@ -23017,7 +23799,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23017
23799
  "safe-area-inset-bottom": true
23018
23800
  }, {
23019
23801
  default: withCtx(() => [
23020
- createVNode(_component_v_uni_view, { class: "aline-center h-35 px-15 py-5 bg-#4d80f0 c-#ffffff rd-t-20px fs-16" }, {
23802
+ createVNode(_component_v_uni_view, { class: "aline-center h-45 px-15 py-5 box-border bg-#4d80f0 c-#ffffff rd-t-20px fs-16" }, {
23021
23803
  default: withCtx(() => [
23022
23804
  createVNode(_component_v_uni_view, { onClick: handleLeft }, {
23023
23805
  default: withCtx(() => [
@@ -23040,7 +23822,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23040
23822
  ]),
23041
23823
  _: 1
23042
23824
  }),
23043
- createVNode(_component_v_uni_view, { class: "hc-95 overflow-auto" }, {
23825
+ createVNode(_component_v_uni_view, { class: "hc-50 overflow-auto" }, {
23044
23826
  default: withCtx(() => [
23045
23827
  renderSlot(_ctx.$slots, "default")
23046
23828
  ]),
@@ -23052,7 +23834,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23052
23834
  };
23053
23835
  }
23054
23836
  });
23055
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
23837
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
23056
23838
  __name: "employee",
23057
23839
  props: {
23058
23840
  /**
@@ -23096,6 +23878,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23096
23878
  const props = __props;
23097
23879
  const formType = inject("formType");
23098
23880
  const httpBaseUrl = inject("httpBaseUrl");
23881
+ const isPreview = inject("isPreview");
23099
23882
  const { datas, componentProps } = toRefs(props);
23100
23883
  const emits = __emit;
23101
23884
  watch(datas, (newValue) => emits("update:datas", newValue));
@@ -23106,7 +23889,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23106
23889
  onUnmounted(() => eventBus.off(DYNAMIC_FORM_DEPARTMENT_CHANGE_EVENT, initEmployeeOption));
23107
23890
  let oldValue = datas.value[props.componentID];
23108
23891
  const clearCheck = (event, value) => {
23109
- if (componentProps.value.clearable && oldValue === value) {
23892
+ if (!props.disabled && !isPreview && componentProps.value.clearable && oldValue === value) {
23110
23893
  delete datas.value[props.componentID];
23111
23894
  oldValue = void 0;
23112
23895
  event.preventDefault();
@@ -23115,7 +23898,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23115
23898
  oldValue = value;
23116
23899
  };
23117
23900
  const { callApi, clone: clone2, isEmpty } = useUtils();
23118
- const initEmployeeOptions = ref(componentProps.value.options);
23901
+ const initEmployeeOptions = ref(clone2(componentProps.value.options ?? []));
23119
23902
  const employeeOptions = ref(initEmployeeOptions.value);
23120
23903
  const init4 = async () => {
23121
23904
  if (componentProps.value.type !== "selector" || isEmpty(selectEmployeeID.value)) {
@@ -23147,6 +23930,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23147
23930
  }
23148
23931
  initEmployeeOptions.value = await callApi(httpSetting, datas.value, httpBaseUrl, false) ?? [];
23149
23932
  employeeOptions.value = initEmployeeOptions.value;
23933
+ componentProps.value.options = employeeOptions.value;
23150
23934
  componentProps.value.remoteFlag && await init4();
23151
23935
  };
23152
23936
  const remoteMethod = async (filterValue, addFlag) => {
@@ -23166,17 +23950,27 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23166
23950
  }
23167
23951
  });
23168
23952
  const options = await callApi(newHttpSetting, datas.value, httpBaseUrl, false) ?? [];
23953
+ componentProps.value.options = [...clone2(employeeOptions.value), ...options];
23169
23954
  if (addFlag) {
23170
23955
  employeeOptions.value = [...employeeOptions.value, ...options];
23171
23956
  } else {
23172
- employeeOptions.value = options;
23957
+ (options == null ? void 0 : options.length) && (employeeOptions.value = options);
23173
23958
  }
23174
23959
  };
23175
23960
  const showSelectPopup = ref(false);
23176
23961
  const selectEmployeeID = ref(datas.value[props.componentID]);
23177
23962
  const selectEmployeeLabel = ref("");
23963
+ const openSelectPopup = () => {
23964
+ if (isPreview) {
23965
+ return;
23966
+ }
23967
+ showSelectPopup.value = true;
23968
+ };
23178
23969
  const selectEmployee = (value) => {
23179
23970
  var _a2;
23971
+ if (isEmpty(selectEmployeeID.value)) {
23972
+ selectEmployeeID.value = [];
23973
+ }
23180
23974
  if (componentProps.value.multiple) {
23181
23975
  if ((_a2 = selectEmployeeID.value) == null ? void 0 : _a2.includes(value)) {
23182
23976
  selectEmployeeID.value = selectEmployeeID.value.filter((item) => item !== value);
@@ -23213,7 +24007,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23213
24007
  };
23214
24008
  return (_ctx, _cache) => {
23215
24009
  const _component_wd_radio = resolveEasycom(resolveDynamicComponent("wd-radio"), __easycom_0$2);
23216
- const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$3);
24010
+ const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$2);
23217
24011
  const _component_wd_checkbox = resolveEasycom(resolveDynamicComponent("wd-checkbox"), __easycom_2$1);
23218
24012
  const _component_wd_checkbox_group = resolveEasycom(resolveDynamicComponent("wd-checkbox-group"), __easycom_3$3);
23219
24013
  const _component_v_uni_view = index$g;
@@ -23226,7 +24020,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23226
24020
  "custom-class": "zhy",
23227
24021
  modelValue: unref(datas)[__props.componentID],
23228
24022
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(datas)[__props.componentID] = $event),
23229
- disabled: __props.disabled,
24023
+ disabled: __props.disabled || unref(isPreview),
23230
24024
  inline: !unref(componentProps).newLine,
23231
24025
  "icon-placement": "left",
23232
24026
  shape: "dot"
@@ -23252,7 +24046,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23252
24046
  "custom-class": "zhy",
23253
24047
  modelValue: unref(datas)[__props.componentID],
23254
24048
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(datas)[__props.componentID] = $event),
23255
- disabled: __props.disabled,
24049
+ disabled: __props.disabled || unref(isPreview),
23256
24050
  min: unref(componentProps).min,
23257
24051
  max: unref(componentProps).max,
23258
24052
  inline: !unref(componentProps).newLine
@@ -23276,36 +24070,36 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23276
24070
  unref(componentProps).type === "selector" ? (openBlock(), createBlock(_component_v_uni_view, {
23277
24071
  key: 2,
23278
24072
  class: "b-1-#999999 min-h-35px rd-6px px-10 py-5 box-border",
23279
- onClick: _cache[2] || (_cache[2] = ($event) => showSelectPopup.value = true)
24073
+ onClick: openSelectPopup
23280
24074
  }, {
23281
24075
  default: withCtx(() => [
23282
24076
  createTextVNode(toDisplayString(unref(selectEmployeeLabel)), 1)
23283
24077
  ]),
23284
24078
  _: 1
23285
24079
  })) : createCommentVNode("", true),
23286
- createVNode(_sfc_main$r, {
24080
+ createVNode(_sfc_main$s, {
23287
24081
  modelValue: unref(showSelectPopup),
23288
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(showSelectPopup) ? showSelectPopup.value = $event : null),
24082
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(showSelectPopup) ? showSelectPopup.value = $event : null),
23289
24083
  rightLabel: "确定",
23290
24084
  rightEvent: confirmEmployee,
23291
24085
  leftEvent: handleLeft
23292
24086
  }, {
23293
24087
  default: withCtx(() => [
23294
- createVNode(_component_v_uni_view, { class: "h-full" }, {
24088
+ createVNode(_component_v_uni_view, { class: "h-full flex flex-col overflow-hidden" }, {
23295
24089
  default: withCtx(() => [
23296
24090
  createVNode(_component_wd_search, {
23297
24091
  "hide-cancel": "",
23298
24092
  focus: "",
23299
24093
  "placeholder-left": "",
23300
- onChange: _cache[3] || (_cache[3] = ({ value }) => remoteMethod(value))
24094
+ onChange: _cache[2] || (_cache[2] = ({ value }) => remoteMethod(value))
23301
24095
  }),
23302
- createVNode(_component_v_uni_view, { class: "employee-list" }, {
24096
+ createVNode(_component_v_uni_view, { class: "flex-auto overflow-auto min-h-0" }, {
23303
24097
  default: withCtx(() => [
23304
24098
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(employeeOptions), (employee, index2) => {
23305
24099
  var _a2;
23306
24100
  return openBlock(), createBlock(_component_v_uni_view, {
23307
24101
  key: index2,
23308
- class: normalizeClass(["h-full y-aline-center p-2", { "bg-#fffacd": (_a2 = unref(selectEmployeeID)) == null ? void 0 : _a2.includes(employee.value) }]),
24102
+ class: normalizeClass(["y-aline-center p-2 bb-1-#dddddd", { "bg-#fffacd": (_a2 = unref(selectEmployeeID)) == null ? void 0 : _a2.includes(employee.value) }]),
23309
24103
  onClick: ($event) => selectEmployee(employee.value)
23310
24104
  }, {
23311
24105
  default: withCtx(() => [
@@ -23355,7 +24149,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23355
24149
  };
23356
24150
  }
23357
24151
  });
23358
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
24152
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
23359
24153
  __name: "grade",
23360
24154
  props: {
23361
24155
  /**
@@ -23398,6 +24192,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23398
24192
  setup(__props, { emit: __emit }) {
23399
24193
  const props = __props;
23400
24194
  const formType = inject("formType");
24195
+ const isPreview = inject("isPreview");
23401
24196
  const { datas, componentProps } = toRefs(props);
23402
24197
  const emits = __emit;
23403
24198
  watch(datas, (newValue) => emits("update:datas", newValue));
@@ -23445,7 +24240,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23445
24240
  };
23446
24241
  let oldValue = (datas.value[props.componentID] || {}).score;
23447
24242
  const clearCheck = (event, value) => {
23448
- if (componentProps.value.clearable && oldValue === value) {
24243
+ if (!props.disabled && !isPreview && componentProps.value.clearable && oldValue === value) {
23449
24244
  delete datas.value[props.componentID].score;
23450
24245
  oldValue = void 0;
23451
24246
  event.preventDefault();
@@ -23455,9 +24250,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23455
24250
  };
23456
24251
  return (_ctx, _cache) => {
23457
24252
  const _component_wd_radio = resolveEasycom(resolveDynamicComponent("wd-radio"), __easycom_0$2);
23458
- const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$3);
24253
+ const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$2);
23459
24254
  const _component_v_uni_text = index$i;
23460
- const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_0$3);
24255
+ const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_4);
23461
24256
  const _component_v_uni_view = index$g;
23462
24257
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
23463
24258
  return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-grade" }, {
@@ -23466,7 +24261,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23466
24261
  "custom-class": "zhy",
23467
24262
  modelValue: unref(data2).score,
23468
24263
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(data2).score = $event),
23469
- disabled: __props.disabled,
24264
+ disabled: __props.disabled || unref(isPreview),
23470
24265
  inline: !unref(componentProps).newLine,
23471
24266
  "icon-placement": "left",
23472
24267
  shape: "dot"
@@ -23503,7 +24298,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23503
24298
  type: "text",
23504
24299
  modelValue: unref(data2).problem,
23505
24300
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(data2).problem = $event),
23506
- disabled: __props.disabled,
24301
+ disabled: __props.disabled || unref(isPreview),
23507
24302
  placeholder: "",
23508
24303
  clearable: true,
23509
24304
  clearTrigger: "focus"
@@ -23527,7 +24322,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23527
24322
  type: "text",
23528
24323
  modelValue: unref(data2).brightSpot,
23529
24324
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(data2).brightSpot = $event),
23530
- disabled: __props.disabled,
24325
+ disabled: __props.disabled || unref(isPreview),
23531
24326
  placeholder: "",
23532
24327
  clearable: true,
23533
24328
  clearTrigger: "focus"
@@ -23551,7 +24346,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23551
24346
  type: "text",
23552
24347
  modelValue: unref(data2).remark,
23553
24348
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(data2).remark = $event),
23554
- disabled: __props.disabled,
24349
+ disabled: __props.disabled || unref(isPreview),
23555
24350
  placeholder: "",
23556
24351
  clearable: true,
23557
24352
  clearTrigger: "focus"
@@ -23580,7 +24375,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23580
24375
  };
23581
24376
  }
23582
24377
  });
23583
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
24378
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
23584
24379
  __name: "post",
23585
24380
  props: {
23586
24381
  /**
@@ -23623,6 +24418,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23623
24418
  setup(__props, { emit: __emit }) {
23624
24419
  const props = __props;
23625
24420
  const formType = inject("formType");
24421
+ const isPreview = inject("isPreview");
23626
24422
  const { datas, componentProps } = toRefs(props);
23627
24423
  const emits = __emit;
23628
24424
  watch(datas, (newValue) => emits("update:datas", newValue));
@@ -23636,7 +24432,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23636
24432
  };
23637
24433
  let oldValue = datas.value[props.componentID];
23638
24434
  const clearCheck = (event, value) => {
23639
- if (componentProps.value.clearable && oldValue === value) {
24435
+ if (!props.disabled && !isPreview && componentProps.value.clearable && oldValue === value) {
23640
24436
  delete datas.value[props.componentID];
23641
24437
  oldValue = void 0;
23642
24438
  event.preventDefault();
@@ -23646,11 +24442,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23646
24442
  };
23647
24443
  return (_ctx, _cache) => {
23648
24444
  const _component_wd_radio = resolveEasycom(resolveDynamicComponent("wd-radio"), __easycom_0$2);
23649
- const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$3);
24445
+ const _component_wd_radio_group = resolveEasycom(resolveDynamicComponent("wd-radio-group"), __easycom_1$2);
23650
24446
  const _component_wd_checkbox = resolveEasycom(resolveDynamicComponent("wd-checkbox"), __easycom_2$1);
23651
24447
  const _component_wd_checkbox_group = resolveEasycom(resolveDynamicComponent("wd-checkbox-group"), __easycom_3$3);
23652
- const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_0$3);
23653
- const _component_wd_picker = resolveEasycom(resolveDynamicComponent("wd-picker"), __easycom_1$2);
24448
+ const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_4);
24449
+ const _component_wd_picker = resolveEasycom(resolveDynamicComponent("wd-picker"), __easycom_5$1);
23654
24450
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
23655
24451
  const _component_v_uni_view = index$g;
23656
24452
  return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-post" }, {
@@ -23660,7 +24456,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23660
24456
  "custom-class": "zhy",
23661
24457
  modelValue: unref(datas)[__props.componentID],
23662
24458
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(datas)[__props.componentID] = $event),
23663
- disabled: __props.disabled,
24459
+ disabled: __props.disabled || unref(isPreview),
23664
24460
  inline: !unref(componentProps).newLine,
23665
24461
  "icon-placement": "left",
23666
24462
  shape: "dot"
@@ -23686,7 +24482,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23686
24482
  "custom-class": "zhy",
23687
24483
  modelValue: unref(datas)[__props.componentID],
23688
24484
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(datas)[__props.componentID] = $event),
23689
- disabled: __props.disabled,
24485
+ disabled: __props.disabled || unref(isPreview),
23690
24486
  min: unref(componentProps).min,
23691
24487
  max: unref(componentProps).max,
23692
24488
  inline: !unref(componentProps).newLine
@@ -23713,7 +24509,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23713
24509
  modelValue: unref(postID),
23714
24510
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(postID) ? postID.value = $event : null),
23715
24511
  columns: unref(componentProps).options,
23716
- disabled: __props.disabled,
24512
+ disabled: __props.disabled || unref(isPreview),
23717
24513
  "use-default-slot": "",
23718
24514
  "confirm-button-text": "确定",
23719
24515
  onConfirm: _cache[4] || (_cache[4] = ({ value }) => confirm(value))
@@ -23751,7 +24547,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23751
24547
  };
23752
24548
  }
23753
24549
  });
23754
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
24550
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
23755
24551
  __name: "department",
23756
24552
  props: {
23757
24553
  /**
@@ -23797,45 +24593,108 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
23797
24593
  const { datas, componentProps } = toRefs(props);
23798
24594
  const emits = __emit;
23799
24595
  watch(datas, (newValue) => emits("update:datas", newValue));
23800
- const departmentID = ref(datas.value[props.componentID]);
23801
- const departmentLabel = ref("");
23802
- onMounted(() => confirm(datas.value[props.componentID]));
23803
- const confirm = (value) => {
24596
+ const isPreview = inject("isPreview");
24597
+ const showSelectPopup = ref(false);
24598
+ const selectDepartmentID = ref(datas.value[props.componentID]);
24599
+ const selectDepartmentLabel = ref("");
24600
+ onMounted(() => confirmEmployee());
24601
+ const openSelectPopup = () => {
24602
+ if (isPreview) {
24603
+ return;
24604
+ }
24605
+ showSelectPopup.value = true;
24606
+ };
24607
+ const { isEmpty } = useUtils();
24608
+ const selectDepartment = (value) => {
23804
24609
  var _a2;
23805
- departmentLabel.value = ((_a2 = componentProps.value.options.find((item) => item.value === value)) == null ? void 0 : _a2.label) || "";
23806
- datas.value[props.componentID] = value;
23807
- nextTick(() => eventBus.emit(DYNAMIC_FORM_DEPARTMENT_CHANGE_EVENT, value));
24610
+ if (componentProps.value.multiple) {
24611
+ if (isEmpty(selectDepartmentID.value)) {
24612
+ selectDepartmentID.value = [];
24613
+ }
24614
+ if ((_a2 = selectDepartmentID.value) == null ? void 0 : _a2.includes(value)) {
24615
+ selectDepartmentID.value = selectDepartmentID.value.filter((item) => item !== value);
24616
+ } else {
24617
+ selectDepartmentID.value = [...selectDepartmentID.value, value];
24618
+ }
24619
+ } else {
24620
+ selectDepartmentID.value = value;
24621
+ }
24622
+ };
24623
+ const confirmEmployee = () => {
24624
+ if (isEmpty(selectDepartmentID.value)) {
24625
+ datas.value[props.componentID] = [];
24626
+ selectDepartmentLabel.value = "";
24627
+ showSelectPopup.value = false;
24628
+ nextTick(() => eventBus.emit(DYNAMIC_FORM_DEPARTMENT_CHANGE_EVENT, []));
24629
+ return;
24630
+ }
24631
+ datas.value[props.componentID] = selectDepartmentID.value;
24632
+ nextTick(() => eventBus.emit(DYNAMIC_FORM_DEPARTMENT_CHANGE_EVENT, selectDepartmentID.value));
24633
+ let values4 = [];
24634
+ if (Array.isArray(selectDepartmentID.value)) {
24635
+ values4 = selectDepartmentID.value;
24636
+ } else {
24637
+ values4 = [selectDepartmentID.value];
24638
+ }
24639
+ selectDepartmentLabel.value = values4.map((item) => {
24640
+ var _a2;
24641
+ return ((_a2 = componentProps.value.options.find((option) => option.value === item)) == null ? void 0 : _a2.label) || "";
24642
+ }).join("、");
24643
+ showSelectPopup.value = false;
24644
+ };
24645
+ const handleLeft = () => {
24646
+ selectDepartmentID.value = datas.value[props.componentID];
24647
+ showSelectPopup.value = false;
23808
24648
  };
23809
24649
  return (_ctx, _cache) => {
23810
- const _component_wd_input = resolveEasycom(resolveDynamicComponent("wd-input"), __easycom_0$3);
23811
- const _component_wd_picker = resolveEasycom(resolveDynamicComponent("wd-picker"), __easycom_1$2);
23812
- const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
23813
24650
  const _component_v_uni_view = index$g;
24651
+ const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
23814
24652
  return openBlock(), createBlock(_component_v_uni_view, { class: "zhy-form-component-department" }, {
23815
24653
  default: withCtx(() => [
23816
- unref(componentProps).type === "selector" ? (openBlock(), createBlock(_component_wd_picker, {
24654
+ unref(componentProps).type === "selector" ? (openBlock(), createBlock(_component_v_uni_view, {
23817
24655
  key: 0,
23818
- "custom-class": "zhy",
23819
- modelValue: unref(departmentID),
23820
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(departmentID) ? departmentID.value = $event : null),
23821
- columns: unref(componentProps).options,
23822
- disabled: __props.disabled,
23823
- "use-default-slot": "",
23824
- "confirm-button-text": "确定",
23825
- onConfirm: _cache[2] || (_cache[2] = ({ value }) => confirm(value))
24656
+ class: "b-1-#999999 min-h-35px rd-6px px-10 py-5 box-border",
24657
+ onClick: openSelectPopup
23826
24658
  }, {
23827
24659
  default: withCtx(() => [
23828
- createVNode(_component_wd_input, {
23829
- "custom-class": "zhy",
23830
- type: "text",
23831
- modelValue: unref(departmentLabel),
23832
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(departmentLabel) ? departmentLabel.value = $event : null),
23833
- placeholder: `请选择${unref(componentProps).label}`,
23834
- readonly: ""
23835
- }, null, 8, ["modelValue", "placeholder"])
24660
+ createTextVNode(toDisplayString(unref(selectDepartmentLabel)), 1)
23836
24661
  ]),
23837
24662
  _: 1
23838
- }, 8, ["modelValue", "columns", "disabled"])) : createCommentVNode("", true),
24663
+ })) : createCommentVNode("", true),
24664
+ createVNode(_sfc_main$s, {
24665
+ modelValue: unref(showSelectPopup),
24666
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(showSelectPopup) ? showSelectPopup.value = $event : null),
24667
+ rightLabel: "确定",
24668
+ rightEvent: confirmEmployee,
24669
+ leftEvent: handleLeft
24670
+ }, {
24671
+ default: withCtx(() => [
24672
+ createVNode(_component_v_uni_view, { class: "h-full" }, {
24673
+ default: withCtx(() => [
24674
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(componentProps).options, (department, index2) => {
24675
+ var _a2;
24676
+ return openBlock(), createBlock(_component_v_uni_view, {
24677
+ key: index2,
24678
+ class: normalizeClass(["y-aline-center py-10 bb-1-#dddddd", { "bg-#fffacd": (_a2 = unref(selectDepartmentID)) == null ? void 0 : _a2.includes(department.value) }]),
24679
+ onClick: ($event) => selectDepartment(department.value)
24680
+ }, {
24681
+ default: withCtx(() => [
24682
+ createVNode(_component_v_uni_view, { class: "fs-16" }, {
24683
+ default: withCtx(() => [
24684
+ createTextVNode(toDisplayString(department.label), 1)
24685
+ ]),
24686
+ _: 2
24687
+ }, 1024)
24688
+ ]),
24689
+ _: 2
24690
+ }, 1032, ["class", "onClick"]);
24691
+ }), 128))
24692
+ ]),
24693
+ _: 1
24694
+ })
24695
+ ]),
24696
+ _: 1
24697
+ }, 8, ["modelValue"]),
23839
24698
  __props.showDescription && (unref(formType) === unref(formTypeEnum).Examination || unref(componentProps).description) ? (openBlock(), createBlock(_component_v_uni_view, {
23840
24699
  key: 1,
23841
24700
  class: "dynamic-form-item-description show-description"
@@ -23859,12 +24718,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
23859
24718
  });
23860
24719
  const applicationComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23861
24720
  __proto__: null,
23862
- department: _sfc_main$n,
23863
- employee: _sfc_main$q,
23864
- grade: _sfc_main$p,
23865
- post: _sfc_main$o
24721
+ department: _sfc_main$o,
24722
+ employee: _sfc_main$r,
24723
+ grade: _sfc_main$q,
24724
+ post: _sfc_main$p
23866
24725
  }, Symbol.toStringTag, { value: "Module" }));
23867
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
24726
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
23868
24727
  __name: "groupLayout",
23869
24728
  props: {
23870
24729
  /**
@@ -24062,7 +24921,7 @@ const __default__$a = {
24062
24921
  styleIsolation: "shared"
24063
24922
  }
24064
24923
  };
24065
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
24924
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
24066
24925
  ...__default__$a,
24067
24926
  props: tabProps,
24068
24927
  setup(__props) {
@@ -24136,7 +24995,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24136
24995
  }
24137
24996
  });
24138
24997
  const wdTab_vue_vue_type_style_index_0_scoped_c1cc2e5b_lang = "";
24139
- const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c1cc2e5b"]]);
24998
+ const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-c1cc2e5b"]]);
24140
24999
  const badgeProps = {
24141
25000
  ...baseProps,
24142
25001
  /**
@@ -24179,7 +25038,7 @@ const __default__$9 = {
24179
25038
  styleIsolation: "shared"
24180
25039
  }
24181
25040
  };
24182
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
25041
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
24183
25042
  ...__default__$9,
24184
25043
  props: badgeProps,
24185
25044
  setup(__props) {
@@ -24233,7 +25092,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24233
25092
  }
24234
25093
  });
24235
25094
  const wdBadge_vue_vue_type_style_index_0_scoped_eb57a1a8_lang = "";
24236
- const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-eb57a1a8"]]);
25095
+ const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-eb57a1a8"]]);
24237
25096
  const scrollView = "";
24238
25097
  const resizeProps = {
24239
25098
  ...baseProps,
@@ -24247,7 +25106,7 @@ const __default__$8 = {
24247
25106
  styleIsolation: "shared"
24248
25107
  }
24249
25108
  };
24250
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
25109
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
24251
25110
  ...__default__$8,
24252
25111
  props: resizeProps,
24253
25112
  emits: ["resize"],
@@ -24385,7 +25244,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24385
25244
  }
24386
25245
  });
24387
25246
  const wdResize_vue_vue_type_style_index_0_scoped_c06dcd11_lang = "";
24388
- const wdResize = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-c06dcd11"]]);
25247
+ const wdResize = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-c06dcd11"]]);
24389
25248
  const stickyProps = {
24390
25249
  ...baseProps,
24391
25250
  /**
@@ -24406,7 +25265,7 @@ const __default__$7 = {
24406
25265
  styleIsolation: "shared"
24407
25266
  }
24408
25267
  };
24409
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
25268
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24410
25269
  ...__default__$7,
24411
25270
  props: stickyProps,
24412
25271
  setup(__props, { expose: __expose }) {
@@ -24561,7 +25420,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24561
25420
  }
24562
25421
  });
24563
25422
  const wdSticky_vue_vue_type_style_index_0_scoped_01cf2ec7_lang = "";
24564
- const wdSticky = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-01cf2ec7"]]);
25423
+ const wdSticky = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-01cf2ec7"]]);
24565
25424
  const __default__$6 = {
24566
25425
  name: "wd-sticky-box",
24567
25426
  options: {
@@ -24570,7 +25429,7 @@ const __default__$6 = {
24570
25429
  styleIsolation: "shared"
24571
25430
  }
24572
25431
  };
24573
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
25432
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
24574
25433
  ...__default__$6,
24575
25434
  props: baseProps,
24576
25435
  setup(__props) {
@@ -24678,7 +25537,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24678
25537
  }
24679
25538
  });
24680
25539
  const wdStickyBox_vue_vue_type_style_index_0_scoped_8336092d_lang = "";
24681
- const wdStickyBox = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-8336092d"]]);
25540
+ const wdStickyBox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-8336092d"]]);
24682
25541
  function useTouch() {
24683
25542
  const direction = ref("");
24684
25543
  const deltaX = ref(0);
@@ -24725,7 +25584,7 @@ const __default__$5 = {
24725
25584
  styleIsolation: "shared"
24726
25585
  }
24727
25586
  };
24728
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
25587
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
24729
25588
  ...__default__$5,
24730
25589
  props: tabsProps,
24731
25590
  emits: ["change", "disabled", "click", "update:modelValue"],
@@ -25311,8 +26170,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25311
26170
  }
25312
26171
  });
25313
26172
  const wdTabs_vue_vue_type_style_index_0_scoped_f9491640_lang = "";
25314
- const __easycom_3$1 = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f9491640"]]);
25315
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
26173
+ const __easycom_3$1 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f9491640"]]);
26174
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
25316
26175
  __name: "tabs",
25317
26176
  props: {
25318
26177
  /**
@@ -25354,7 +26213,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25354
26213
  }
25355
26214
  };
25356
26215
  return (_ctx, _cache) => {
25357
- const _component_wd_button = resolveEasycom(resolveDynamicComponent("wd-button"), __easycom_1$5);
26216
+ const _component_wd_button = resolveEasycom(resolveDynamicComponent("wd-button"), __easycom_1$4);
25358
26217
  const _component_v_uni_view = index$g;
25359
26218
  const _component_wd_tab = resolveEasycom(resolveDynamicComponent("wd-tab"), __easycom_2);
25360
26219
  const _component_wd_tabs = resolveEasycom(resolveDynamicComponent("wd-tabs"), __easycom_3$1);
@@ -25424,10 +26283,98 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
25424
26283
  };
25425
26284
  }
25426
26285
  });
26286
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
26287
+ __name: "gridLayout",
26288
+ props: {
26289
+ /**
26290
+ * 组件
26291
+ */
26292
+ component: {
26293
+ type: Object,
26294
+ required: true
26295
+ },
26296
+ /**
26297
+ * 是否禁用
26298
+ */
26299
+ disabled: {
26300
+ type: Boolean,
26301
+ default: false
26302
+ },
26303
+ /**
26304
+ * 标题位置
26305
+ */
26306
+ labelPosition: {
26307
+ type: String,
26308
+ default: "top"
26309
+ },
26310
+ /**
26311
+ * 是否项目说明/答案解析
26312
+ */
26313
+ showDescription: {
26314
+ type: Boolean,
26315
+ default: false
26316
+ },
26317
+ /**
26318
+ * 一页一项标记
26319
+ */
26320
+ onePageItemFlag: {
26321
+ type: Boolean,
26322
+ default: false
26323
+ },
26324
+ /**
26325
+ * 一页一项时的当前显示项目ID集合
26326
+ */
26327
+ currentShowIDArray: {
26328
+ type: Array,
26329
+ default: []
26330
+ }
26331
+ },
26332
+ emits: ["validate"],
26333
+ setup(__props, { emit: __emit }) {
26334
+ const emits = __emit;
26335
+ const props = __props;
26336
+ const { component, showDescription, onePageItemFlag, currentShowIDArray } = toRefs(props);
26337
+ !component.value.children && (component.value.children = []);
26338
+ return (_ctx, _cache) => {
26339
+ const _component_v_uni_view = index$g;
26340
+ return openBlock(), createBlock(_component_v_uni_view, { class: "grid-layout-component px-10 box-border" }, {
26341
+ default: withCtx(() => [
26342
+ unref(component).props.showLabel ? (openBlock(), createBlock(_component_v_uni_view, {
26343
+ key: 0,
26344
+ class: normalizeClass(["py-5", { "fs-20!": unref(onePageItemFlag) }]),
26345
+ style: normalizeStyle({
26346
+ color: unref(component).props.color,
26347
+ "font-size": unref(component).props.fontSize + "px",
26348
+ "font-weight": unref(component).props.isBold ? "bold" : "normal"
26349
+ })
26350
+ }, {
26351
+ default: withCtx(() => [
26352
+ createTextVNode(toDisplayString(unref(component).props.label), 1)
26353
+ ]),
26354
+ _: 1
26355
+ }, 8, ["class", "style"])) : createCommentVNode("", true),
26356
+ createVNode(_sfc_main$e, {
26357
+ components: unref(component).children,
26358
+ disabled: __props.disabled,
26359
+ labelPosition: "right",
26360
+ showDescription: unref(showDescription),
26361
+ onePageItemFlag: unref(onePageItemFlag),
26362
+ currentShowIDArray: unref(currentShowIDArray),
26363
+ onValidate: _cache[0] || (_cache[0] = (prop) => emits("validate", prop))
26364
+ }, null, 8, ["components", "disabled", "showDescription", "onePageItemFlag", "currentShowIDArray"])
26365
+ ]),
26366
+ _: 1
26367
+ });
26368
+ };
26369
+ }
26370
+ });
26371
+ const gridLayout_vue_vue_type_style_index_0_scoped_19b4e376_lang = "";
26372
+ const gridLayout = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-19b4e376"]]);
25427
26373
  const layoutComponent = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25428
26374
  __proto__: null,
25429
- groupLayout: _sfc_main$m,
25430
- tabs: _sfc_main$f
26375
+ gridLayout,
26376
+ groupLayout: _sfc_main$n,
26377
+ tabs: _sfc_main$g
25431
26378
  }, Symbol.toStringTag, { value: "Module" }));
25432
26379
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
25433
26380
  __name: "componentRenderer",
@@ -25482,6 +26429,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25482
26429
  const props = __props;
25483
26430
  const { components: components2, showDescription, onePageItemFlag, currentShowIDArray } = toRefs(props);
25484
26431
  let formData = inject("formData");
26432
+ const isPreview = inject("isPreview");
25485
26433
  const dynamicConditionType = {
25486
26434
  // 显示动态条件
25487
26435
  show: (componentProp) => {
@@ -25558,7 +26506,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25558
26506
  });
25559
26507
  return (_ctx, _cache) => {
25560
26508
  const _component_wd_text = resolveEasycom(resolveDynamicComponent("wd-text"), __easycom_0$4);
25561
- const _component_wd_cell = resolveEasycom(resolveDynamicComponent("wd-cell"), __easycom_1$4);
26509
+ const _component_wd_cell = resolveEasycom(resolveDynamicComponent("wd-cell"), __easycom_1$3);
25562
26510
  const _component_v_uni_view = index$g;
25563
26511
  return openBlock(true), createElementBlock(Fragment, null, renderList(unref(components2), (component, index2) => {
25564
26512
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
@@ -25602,7 +26550,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
25602
26550
  "onUpdate:datas": _cache[1] || (_cache[1] = ($event) => unref(formData).datas = $event),
25603
26551
  componentID: component.id,
25604
26552
  disabled: __props.disabled || getByDynamicCondition(component, "disabled"),
25605
- readonly: getByDynamicCondition(component, "readonly"),
26553
+ readonly: unref(isPreview) || getByDynamicCondition(component, "readonly"),
25606
26554
  showDescription: unref(showDescription),
25607
26555
  key: setValidateWatch(component.id, unref(formData).datas[component.id])
25608
26556
  }, null, 40, ["class", "componentProps", "onUpdate:componentProps", "datas", "componentID", "disabled", "readonly", "showDescription"]))
@@ -26075,7 +27023,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
26075
27023
  onClick: ($event) => select(rowIndex, "action")
26076
27024
  }, {
26077
27025
  default: withCtx(() => [
26078
- action.loading ? (openBlock(), createBlock(__easycom_1$6, {
27026
+ action.loading ? (openBlock(), createBlock(__easycom_1$5, {
26079
27027
  key: 0,
26080
27028
  "custom-class": "`wd-action-sheet__action-loading"
26081
27029
  })) : (openBlock(), createBlock(_component_v_uni_view, {
@@ -26533,6 +27481,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26533
27481
  httpBaseUrl: {
26534
27482
  type: String,
26535
27483
  default: ""
27484
+ },
27485
+ isPreview: {
27486
+ type: Boolean,
27487
+ default: false
26536
27488
  }
26537
27489
  },
26538
27490
  emits: ["change", "switchPage"],
@@ -26552,6 +27504,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26552
27504
  provide("realTimeDisplayAnswerMode", props.realTimeDisplayAnswerMode);
26553
27505
  provide("everyItemDisplayAnalysisSwitch", props.everyItemDisplayAnalysisSwitch);
26554
27506
  provide("httpBaseUrl", props.httpBaseUrl);
27507
+ provide("isPreview", props.isPreview);
26555
27508
  const theme2 = inject("theme", ref({}));
26556
27509
  const themeVars = ref({});
26557
27510
  watch(
@@ -26670,6 +27623,27 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26670
27623
  });
26671
27624
  });
26672
27625
  break;
27626
+ case "department":
27627
+ case "employee":
27628
+ case "post":
27629
+ var values4 = Array.isArray(data2[componentID]) ? data2[componentID] : [data2[componentID]];
27630
+ var valueContents = [];
27631
+ values4.forEach((value) => {
27632
+ var _a3, _b3;
27633
+ const option = (_b3 = (_a3 = component.props) == null ? void 0 : _a3.options) == null ? void 0 : _b3.find((option2) => option2.value === value);
27634
+ valueContents.push((option == null ? void 0 : option.label) ?? "");
27635
+ });
27636
+ var valueContent = valueContents.join("、");
27637
+ resultData.push({
27638
+ sourceType: component.itemSourceType,
27639
+ pageID,
27640
+ groupID,
27641
+ parentID: componentID,
27642
+ id: componentID,
27643
+ value: data2[componentID],
27644
+ valueContent
27645
+ });
27646
+ break;
26673
27647
  case "upload":
26674
27648
  case "uploadImage":
26675
27649
  if (!((_d2 = props.uploadOptions) == null ? void 0 : _d2.autoUpload) && ((_e2 = data2[componentID]) == null ? void 0 : _e2.length)) {
@@ -26677,9 +27651,10 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26677
27651
  let fileIDs = [];
26678
27652
  data2[componentID].forEach((file2) => {
26679
27653
  file2.id = componentID;
26680
- addFileList.push(file2);
26681
27654
  if (file2.fileID) {
26682
27655
  fileIDs.push(file2.fileID);
27656
+ } else {
27657
+ addFileList.push(file2);
26683
27658
  }
26684
27659
  });
26685
27660
  fileList.push({
@@ -26875,11 +27850,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26875
27850
  showAnswerSheet
26876
27851
  });
26877
27852
  return (_ctx, _cache) => {
26878
- const _component_wd_form = resolveEasycom(resolveDynamicComponent("wd-form"), _sfc_main$U);
26879
- const _component_wd_button = resolveEasycom(resolveDynamicComponent("wd-button"), __easycom_1$5);
27853
+ const _component_wd_form = resolveEasycom(resolveDynamicComponent("wd-form"), _sfc_main$W);
27854
+ const _component_wd_button = resolveEasycom(resolveDynamicComponent("wd-button"), __easycom_1$4);
26880
27855
  const _component_v_uni_view = index$g;
26881
27856
  const _component_wd_toast = resolveEasycom(resolveDynamicComponent("wd-toast"), __easycom_3$4);
26882
- const _component_wd_config_provider = resolveEasycom(resolveDynamicComponent("wd-config-provider"), _sfc_main$S);
27857
+ const _component_wd_config_provider = resolveEasycom(resolveDynamicComponent("wd-config-provider"), _sfc_main$U);
26883
27858
  return openBlock(), createBlock(_component_wd_config_provider, {
26884
27859
  "theme-vars": unref(themeVars),
26885
27860
  class: "h-full"
@@ -26900,7 +27875,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26900
27875
  }, {
26901
27876
  default: withCtx(() => [
26902
27877
  createVNode(_sfc_main$e, {
26903
- disabled: __props.disabled,
27878
+ disabled: __props.disabled || __props.isPreview,
26904
27879
  labelPosition: unref(formData).props.labelPosition ?? "top",
26905
27880
  components: unref(formData).components,
26906
27881
  showDescription: unref(showDescription),
@@ -94659,7 +95634,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
94659
95634
  };
94660
95635
  return (_ctx, _cache) => {
94661
95636
  const _component_v_uni_view = index$g;
94662
- const _component_wd_loading = resolveEasycom(resolveDynamicComponent("wd-loading"), __easycom_1$6);
95637
+ const _component_wd_loading = resolveEasycom(resolveDynamicComponent("wd-loading"), __easycom_1$5);
94663
95638
  const _component_wd_icon = resolveEasycom(resolveDynamicComponent("wd-icon"), __easycom_0$5);
94664
95639
  return openBlock(), createBlock(_component_v_uni_view, { class: "wh-full pos-relative bg-#e9e9e9" }, {
94665
95640
  default: withCtx(() => {