form-custom-test 3.0.89 → 3.0.91

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.
@@ -1876,8 +1876,8 @@ const advancedFields = [
1876
1876
  multipleSelect: true,
1877
1877
  showFileList: true,
1878
1878
  limit: 10,
1879
- fileMaxSize: 5,
1880
- fileTypes: ["doc", "docx", "xls", "xlsx"],
1879
+ fileMaxSize: 100,
1880
+ fileTypes: ["doc", "docx", "xls", "xlsx", "pdf", "ppt", "pptx", "jpg", "jpeg", "png", "bmp", "doc", "txt", "mp3", "mp4", "et", "ett", "wps", "wpt", "xlt", "ofd", "dot", "zip", "rar", "7z", "tar"],
1881
1881
  allowDrag: true,
1882
1882
  customClass: "",
1883
1883
  labelIconClass: null,
@@ -3043,6 +3043,11 @@ var enLocale = {
3043
3043
  urlValidator: "URL",
3044
3044
  noChineseValidator: "Non-Chinese",
3045
3045
  chineseValidator: "Chinese",
3046
+ maxLen12Decimals6Validator: "Max length is 12 digits, 6 decimal places",
3047
+ isPositiveIntegerLengthValidator: "1-4\u4F4D\u7684\u6B63\u6574\u6570",
3048
+ isPositiveIntegerZeroValidator: "0\u62161-4\u4F4D\u7684\u6B63\u6574\u6570",
3049
+ maxLen10Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A10\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
3050
+ maxLen12Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A12\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
3046
3051
  rowspanNotConsistentForMergeEntireRow: "Cells in this row don't have the same rowspan, operation failed.",
3047
3052
  colspanNotConsistentForMergeEntireColumn: "Cells in this column don't have the same colspan, operation failed.",
3048
3053
  rowspanNotConsistentForDeleteEntireRow: "Cells in this row don't have the same rowspan, operation failed.",
@@ -3361,6 +3366,11 @@ var zhLocale = {
3361
3366
  urlValidator: "\u7F51\u5740",
3362
3367
  noChineseValidator: "\u975E\u4E2D\u6587\u5B57\u7B26",
3363
3368
  chineseValidator: "\u4EC5\u4E2D\u6587\u5B57\u7B26",
3369
+ maxLen12Decimals6Validator: "\u6700\u5927\u957F\u5EA6\u4E3A12\u4F4D\uFF0C\u5C0F\u6570\u70B9\u540E6\u4F4D",
3370
+ isPositiveIntegerLengthValidator: "1-4\u4F4D\u7684\u6B63\u6574\u6570",
3371
+ isPositiveIntegerZeroValidator: "0\u62161-4\u4F4D\u7684\u6B63\u6574\u6570",
3372
+ maxLen10Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A10\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
3373
+ maxLen12Decimals2Validator: "\u6574\u6570\u90E8\u5206\u6700\u591A12\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57",
3364
3374
  rowspanNotConsistentForMergeEntireRow: "\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u884C.",
3365
3375
  colspanNotConsistentForMergeEntireColumn: "\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u5217.",
3366
3376
  rowspanNotConsistentForDeleteEntireRow: "\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u884C.",
@@ -4641,7 +4651,12 @@ const getRegExp = function(validatorName2) {
4641
4651
  noChinese: "/^[^\u4E00-\u9FA5]+$/",
4642
4652
  chinese: "/^[\u4E00-\u9FA5]+$/",
4643
4653
  email: "/^([-_A-Za-z0-9.]+)@([_A-Za-z0-9]+\\.)+[A-Za-z0-9]{2,3}$/",
4644
- url: "/^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$/"
4654
+ url: "/^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$/",
4655
+ maxLen12Decimals6: "/^d{1,12}(.d{1,6})?$/",
4656
+ isPositiveIntegerLength: "/^([1-9]d{0,3})$/",
4657
+ isPositiveIntegerZero: "/^0$|^([1-9]d{0,3})$/",
4658
+ maxLen10Decimals2: "/^d{1,10}(.d{1,2})?$/",
4659
+ maxLen12Decimals2: "/^d{1,12}(.d{1,2})?$/"
4645
4660
  };
4646
4661
  return commonRegExp[validatorName2];
4647
4662
  };
@@ -4690,6 +4705,21 @@ const FormValidators = {
4690
4705
  url(rule2, value2, callback2) {
4691
4706
  validateFn("url", rule2, value2, callback2, "[" + rule2.label + "]URL\u683C\u5F0F\u6709\u8BEF");
4692
4707
  },
4708
+ maxLen12Decimals6(rule2, value2, callback2) {
4709
+ validateFn("maxLen12Decimals6", rule2, value2, callback2, "[" + rule2.label + "]\u6700\u5927\u957F\u5EA6\u4E3A12\u4F4D\uFF0C\u5C0F\u6570\u70B9\u540E6\u4F4D");
4710
+ },
4711
+ isPositiveIntegerLength(rule2, value2, callback2) {
4712
+ validateFn("isPositiveIntegerLength", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u51651-4\u4F4D\u7684\u6B63\u6574\u6570");
4713
+ },
4714
+ isPositiveIntegerZero(rule2, value2, callback2) {
4715
+ validateFn("isPositiveIntegerZero", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u51650\u62161-4\u4F4D\u7684\u6B63\u6574\u6570");
4716
+ },
4717
+ maxLen10Decimals2(rule2, value2, callback2) {
4718
+ validateFn("maxLen10Decimals2", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u5165\u6574\u6570\u90E8\u5206\u6700\u591A10\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57");
4719
+ },
4720
+ maxLen12Decimals2(rule2, value2, callback2) {
4721
+ validateFn("maxLen12Decimals2", rule2, value2, callback2, rule2.label + "\u8BF7\u8F93\u5165\u6574\u6570\u90E8\u5206\u6700\u591A12\u4F4D\uFF0C\u5C0F\u6570\u90E8\u5206\u6700\u591A2\u4F4D\u7684\u6570\u5B57");
4722
+ },
4693
4723
  regExp(rule, value, callback) {
4694
4724
  if (isNull(value) || value.length <= 0) {
4695
4725
  callback();
@@ -12135,6 +12165,10 @@ const _sfc_main$37 = {
12135
12165
  }
12136
12166
  return new URL({ "../../../../assets/image/fileType/7z.png": __glob_12_0, "../../../../assets/image/fileType/bmp.png": __glob_12_1, "../../../../assets/image/fileType/default.png": __glob_12_2, "../../../../assets/image/fileType/doc.png": __glob_12_3, "../../../../assets/image/fileType/docx.png": __glob_12_4, "../../../../assets/image/fileType/dot.png": __glob_12_5, "../../../../assets/image/fileType/et.png": __glob_12_6, "../../../../assets/image/fileType/ett.png": __glob_12_7, "../../../../assets/image/fileType/jpeg.png": __glob_12_8, "../../../../assets/image/fileType/jpg.png": __glob_12_9, "../../../../assets/image/fileType/mp3.png": __glob_12_10, "../../../../assets/image/fileType/mp4.png": __glob_12_11, "../../../../assets/image/fileType/ofd.png": __glob_12_12, "../../../../assets/image/fileType/pdf.png": __glob_12_13, "../../../../assets/image/fileType/png.png": __glob_12_14, "../../../../assets/image/fileType/ppt.png": __glob_12_15, "../../../../assets/image/fileType/pptx.png": __glob_12_16, "../../../../assets/image/fileType/rar.png": __glob_12_17, "../../../../assets/image/fileType/tar.png": __glob_12_18, "../../../../assets/image/fileType/txt.png": __glob_12_19, "../../../../assets/image/fileType/wav.png": __glob_12_20, "../../../../assets/image/fileType/wps.png": __glob_12_21, "../../../../assets/image/fileType/wpt.png": __glob_12_22, "../../../../assets/image/fileType/xls.png": __glob_12_23, "../../../../assets/image/fileType/xlsx.png": __glob_12_24, "../../../../assets/image/fileType/xlt.png": __glob_12_25, "../../../../assets/image/fileType/zip.png": __glob_12_26 }[`../../../../assets/image/fileType/${ext}.png`], self.location);
12137
12167
  },
12168
+ isZip(fileName) {
12169
+ const ext = fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase();
12170
+ return ext === "zip" || ext === "rar" || ext === "7z" || ext === "tar";
12171
+ },
12138
12172
  handleProgress(event, file, fileList) {
12139
12173
  this.showProgress = true;
12140
12174
  this.progressPercent = Math.round(event.percent);
@@ -12440,7 +12474,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
12440
12474
  alt: ""
12441
12475
  }, null, -1)
12442
12476
  ])], 8, _hoisted_9$6)) : createCommentVNode("", true),
12443
- _ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
12477
+ _ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
12444
12478
  key: 1,
12445
12479
  onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
12446
12480
  class: "pr-8px color-primary cursor-pointer file-action-right"
@@ -12464,7 +12498,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
12464
12498
  alt: ""
12465
12499
  }, null, -1)),
12466
12500
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "main-tip" }, " \u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20 ", -1)),
12467
- createElementVNode("div", _hoisted_3$i, " \u652F\u6301\u4E0A\u4F20" + toDisplayString($props.field.options.fileTypes.join("\uFF0C")) + "\u7B49\u683C\u5F0F\u6587\u4EF6 ", 1)
12501
+ createElementVNode("div", _hoisted_3$i, " \u652F\u6301\u4E0A\u4F20" + toDisplayString($props.field.options.fileTypes.slice(0, 8).join("\uFF0C")) + "\u7B49\u683C\u5F0F\u6587\u4EF6 ", 1)
12468
12502
  ], 64)) : (openBlock(), createBlock(_component_el_button, {
12469
12503
  key: 1,
12470
12504
  type: "primary"
@@ -12490,7 +12524,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
12490
12524
  _: 1
12491
12525
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
12492
12526
  }
12493
- var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-19d3f4a9"]]);
12527
+ var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-523641ad"]]);
12494
12528
  var __glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12495
12529
  __proto__: null,
12496
12530
  "default": fileUploadWidget
@@ -56258,7 +56292,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
56258
56292
  _: 1
56259
56293
  }, 8, ["onClick"])
56260
56294
  ])) : createCommentVNode("", true),
56261
- $props.selectedWidget.type === "select" ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
56295
+ $props.selectedWidget.type === "select" || $props.selectedWidget.type === "radio" || $props.selectedWidget.type === "radio-other" || $props.selectedWidget.type === "checkbox" || $props.selectedWidget.type === "select-other" ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
56262
56296
  createVNode(_component_el_form_item, { label: "\u5B57\u5178CODE" }, {
56263
56297
  default: withCtx(() => [
56264
56298
  createVNode(_component_el_input, {
@@ -56472,7 +56506,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
56472
56506
  ]) : createCommentVNode("", true)
56473
56507
  ]);
56474
56508
  }
56475
- var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-77962d50"]]);
56509
+ var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-779bc0bd"]]);
56476
56510
  const _sfc_main$26 = {
56477
56511
  name: "optionItems-editor",
56478
56512
  mixins: [i18n$1],
@@ -57173,7 +57207,12 @@ const _sfc_main$1O = {
57173
57207
  { value: "email", label: this.i18nt("designer.hint.emailValidator") },
57174
57208
  { value: "url", label: this.i18nt("designer.hint.urlValidator") },
57175
57209
  { value: "noChinese", label: this.i18nt("designer.hint.noChineseValidator") },
57176
- { value: "chinese", label: this.i18nt("designer.hint.chineseValidator") }
57210
+ { value: "chinese", label: this.i18nt("designer.hint.chineseValidator") },
57211
+ { value: "maxLen12Decimals6", label: this.i18nt("designer.hint.maxLen12Decimals6Validator") },
57212
+ { value: "isPositiveIntegerLength", label: this.i18nt("designer.hint.isPositiveIntegerLengthValidator") },
57213
+ { value: "isPositiveIntegerZero", label: this.i18nt("designer.hint.isPositiveIntegerZeroValidator") },
57214
+ { value: "maxLen10Decimals2", label: this.i18nt("designer.hint.maxLen10Decimals2Validator") },
57215
+ { value: "maxLen12Decimals2", label: this.i18nt("designer.hint.maxLen12Decimals2Validator") }
57177
57216
  ]
57178
57217
  };
57179
57218
  }
@@ -59603,7 +59642,32 @@ const _sfc_main$W = {
59603
59642
  { value: "pptx", label: "pptx" },
59604
59643
  { value: "jpg", label: "jpg" },
59605
59644
  { value: "jpeg", label: "jpeg" },
59606
- { value: "png", label: "png" }
59645
+ { value: "png", label: "png" },
59646
+ { value: "pdf", label: "pdf" },
59647
+ { value: "doc", label: "doc" },
59648
+ { value: "docx", label: "docx" },
59649
+ { value: "xls", label: "xls" },
59650
+ { value: "xlsx", label: "xlsx" },
59651
+ { value: "ppt", label: "ppt" },
59652
+ { value: "pptx", label: "pptx" },
59653
+ { value: "txt", label: "txt" },
59654
+ { value: "jpg", label: "jpg" },
59655
+ { value: "jpeg", label: "jpeg" },
59656
+ { value: "bmp", label: "bmp" },
59657
+ { value: "png", label: "png" },
59658
+ { value: "mp3", label: "mp3" },
59659
+ { value: "mp4", label: "mp4" },
59660
+ { value: "et", label: "et" },
59661
+ { value: "ett", label: "ett" },
59662
+ { value: "wps", label: "wps" },
59663
+ { value: "wpt", label: "wpt" },
59664
+ { value: "xlt", label: "xlt" },
59665
+ { value: "ofd", label: "ofd" },
59666
+ { value: "dot", label: "dot" },
59667
+ { value: "zip", label: "zip" },
59668
+ { value: "rar", label: "rar" },
59669
+ { value: "7z", label: "7z" },
59670
+ { value: "tar", label: "tar" }
59607
59671
  ]
59608
59672
  };
59609
59673
  }
@@ -68175,13 +68239,13 @@ function registerIcon(app) {
68175
68239
  if (typeof window !== "undefined") {
68176
68240
  let loadSvg = function() {
68177
68241
  var body = document.body;
68178
- var svgDom = document.getElementById("__svg__icons__dom__1775623157177__");
68242
+ var svgDom = document.getElementById("__svg__icons__dom__1776823575705__");
68179
68243
  if (!svgDom) {
68180
68244
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68181
68245
  svgDom.style.position = "absolute";
68182
68246
  svgDom.style.width = "0";
68183
68247
  svgDom.style.height = "0";
68184
- svgDom.id = "__svg__icons__dom__1775623157177__";
68248
+ svgDom.id = "__svg__icons__dom__1776823575705__";
68185
68249
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68186
68250
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68187
68251
  }
@@ -74608,7 +74672,6 @@ const _sfc_main$c = {
74608
74672
  handleOtherValueChange() {
74609
74673
  if (this.radioValue === "_RADIO_OTHER_") {
74610
74674
  const newValue = this.inputValue ? `${this.radioValue}&${this.inputValue}` : this.radioValue;
74611
- console.log(newValue, "newValue");
74612
74675
  this.oldFieldValue = this.fieldModel;
74613
74676
  this.syncUpdateFormModel(newValue);
74614
74677
  this.emitFieldDataChange(newValue, this.oldFieldValue);
@@ -74663,12 +74726,12 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
74663
74726
  }, 8, ["modelValue", "class", "disabled", "size", "onChange"]),
74664
74727
  $data.radioValue === "_RADIO_OTHER_" ? (openBlock(), createBlock(_component_el_input, {
74665
74728
  key: 0,
74666
- class: "w-[200px] ml-10px",
74667
74729
  modelValue: $data.inputValue,
74668
74730
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.inputValue = $event),
74731
+ disabled: $props.field.options.disabled,
74669
74732
  onInput: _cache[2] || (_cache[2] = ($event) => $options.handleOtherValueChange()),
74670
74733
  placeholder: "\u8BF7\u8F93\u5165"
74671
- }, null, 8, ["modelValue"])) : createCommentVNode("", true)
74734
+ }, null, 8, ["modelValue", "disabled"])) : createCommentVNode("", true)
74672
74735
  ]),
74673
74736
  _: 1
74674
74737
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);