bm-admin-ui 1.0.37-alpha → 1.0.38-alpha

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.
package/index.js CHANGED
@@ -5601,7 +5601,7 @@ var process = {
5601
5601
  var transitionName$1 = 'move-up';
5602
5602
  var hasTransitionName$1 = false;
5603
5603
 
5604
- var getContainer$3 = function getContainer() {
5604
+ var getContainer$4 = function getContainer() {
5605
5605
  return document.body;
5606
5606
  };
5607
5607
 
@@ -5627,7 +5627,7 @@ var process = {
5627
5627
  }
5628
5628
 
5629
5629
  if (options.getContainer !== undefined) {
5630
- getContainer$3 = options.getContainer;
5630
+ getContainer$4 = options.getContainer;
5631
5631
  messageInstance$1 = null; // delete messageInstance for new getContainer
5632
5632
  }
5633
5633
 
@@ -5663,7 +5663,7 @@ var process = {
5663
5663
  style: {
5664
5664
  top: defaultTop$3
5665
5665
  },
5666
- getContainer: getContainer$3 || args.getPopupContainer,
5666
+ getContainer: getContainer$4 || args.getPopupContainer,
5667
5667
  maxCount: maxCount$3,
5668
5668
  name: 'message'
5669
5669
  }, function (instance) {
@@ -7140,7 +7140,7 @@ var process = {
7140
7140
  return MARK_KEY$1;
7141
7141
  }
7142
7142
 
7143
- function getContainer$2(option) {
7143
+ function getContainer$3(option) {
7144
7144
  if (option.attachTo) {
7145
7145
  return option.attachTo;
7146
7146
  }
@@ -7165,7 +7165,7 @@ var process = {
7165
7165
  }
7166
7166
 
7167
7167
  styleNode.innerHTML = css;
7168
- var container = getContainer$2(option);
7168
+ var container = getContainer$3(option);
7169
7169
  var firstChild = container.firstChild;
7170
7170
 
7171
7171
  if (option.prepend && container.prepend) {
@@ -7185,7 +7185,7 @@ var process = {
7185
7185
 
7186
7186
  function findExistNode$1(key) {
7187
7187
  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
7188
- var container = getContainer$2(option);
7188
+ var container = getContainer$3(option);
7189
7189
  return Array.from(containerCache$1.get(container).children).find(function (node) {
7190
7190
  return node.tagName === 'STYLE' && node.getAttribute(getMark$1(option)) === key;
7191
7191
  });
@@ -7205,7 +7205,7 @@ var process = {
7205
7205
 
7206
7206
  var _a, _b, _c;
7207
7207
 
7208
- var container = getContainer$2(option); // Get real parent
7208
+ var container = getContainer$3(option); // Get real parent
7209
7209
 
7210
7210
  if (!containerCache$1.has(container)) {
7211
7211
  var placeholderStyle = injectCSS$1('', option);
@@ -8609,7 +8609,10 @@ var process = {
8609
8609
  12: 12,
8610
8610
  18: 18,
8611
8611
  24: 24,
8612
- };
8612
+ };
8613
+ function getContainer$2() {
8614
+ return document.body;
8615
+ }
8613
8616
 
8614
8617
  function _defineProperty$H(obj, key, value) {
8615
8618
  if (key in obj) {
@@ -52651,7 +52654,7 @@ var process = {
52651
52654
  field,
52652
52655
  title: data.title.title,
52653
52656
  headerClassName: data.effect.required ? 'is-required' : '',
52654
- width: data.config.fieldRatio,
52657
+ minWidth: data.config.fieldRatio,
52655
52658
  slots: {
52656
52659
  default({ row }) {
52657
52660
  return require$$1$2.h(Input$3, {
@@ -52716,7 +52719,7 @@ var process = {
52716
52719
  field,
52717
52720
  title: data.title.title,
52718
52721
  headerClassName: data.effect.required ? 'is-required' : '',
52719
- width: data.config.fieldRatio,
52722
+ minWidth: data.config.fieldRatio,
52720
52723
  slots: {
52721
52724
  default({ row }) {
52722
52725
  return require$$1$2.h(Input$3, {
@@ -52785,7 +52788,7 @@ var process = {
52785
52788
  field,
52786
52789
  title: data.title.title,
52787
52790
  headerClassName: data.effect.required ? 'is-required' : '',
52788
- width: data.config.fieldRatio,
52791
+ minWidth: data.config.fieldRatio,
52789
52792
  slots: {
52790
52793
  default({ row }) {
52791
52794
  return require$$1$2.h(InputNumber$1, {
@@ -52850,13 +52853,14 @@ var process = {
52850
52853
  field,
52851
52854
  title: data.title.title,
52852
52855
  headerClassName: data.effect.required ? 'is-required' : '',
52853
- width: data.config.fieldRatio,
52856
+ minWidth: data.config.fieldRatio,
52854
52857
  slots: {
52855
52858
  default({ row }) {
52856
52859
  return require$$1$2.h(ASelect, {
52857
52860
  value: row[field],
52858
52861
  placeholder: data.props.placeholder,
52859
52862
  options: data.options,
52863
+ getPopupContainer: getContainer$2,
52860
52864
  'onUpdate:value': (value) => {
52861
52865
  row[field] = value;
52862
52866
  },
@@ -52911,7 +52915,7 @@ var process = {
52911
52915
  field,
52912
52916
  title: data.title.title,
52913
52917
  headerClassName: data.effect.required ? 'is-required' : '',
52914
- width: data.config.fieldRatio,
52918
+ minWidth: data.config.fieldRatio,
52915
52919
  slots: {
52916
52920
  default({ row }) {
52917
52921
  return require$$1$2.h(ASelect, {
@@ -52919,6 +52923,7 @@ var process = {
52919
52923
  placeholder: data.props.placeholder,
52920
52924
  options: data.options,
52921
52925
  mode: 'multiple',
52926
+ getPopupContainer: getContainer$2,
52922
52927
  'onUpdate:value': (value) => {
52923
52928
  row[field] = value;
52924
52929
  },
@@ -52992,7 +52997,7 @@ var process = {
52992
52997
  field,
52993
52998
  title: data.title.title,
52994
52999
  headerClassName: data.effect.required ? 'is-required' : '',
52995
- width: data.config.fieldRatio,
53000
+ minWidth: data.config.fieldRatio,
52996
53001
  slots: {
52997
53002
  default({ row }) {
52998
53003
  return require$$1$2.h(DatePicker$1, {
@@ -53008,6 +53013,7 @@ var process = {
53008
53013
  style: {
53009
53014
  width: '100%',
53010
53015
  },
53016
+ getCalendarContainer: getContainer$2,
53011
53017
  });
53012
53018
  },
53013
53019
  },
@@ -53027,7 +53033,7 @@ var process = {
53027
53033
  type: 'datePicker',
53028
53034
  field: data.field,
53029
53035
  title: data.title.title,
53030
- props: Object.assign({ range: true, separator: '~', format, valueFormat: format, placeholder: data.props.placeholder }, extraProps),
53036
+ props: Object.assign({ range: true, separator: '~', format, valueFormat: format, placeholder: data.props.placeholder, getCalendarContainer: getContainer$2 }, extraProps),
53031
53037
  effect: {
53032
53038
  required: data.effect.required && '请选择',
53033
53039
  },
@@ -53072,7 +53078,7 @@ var process = {
53072
53078
  field,
53073
53079
  title: data.title.title,
53074
53080
  headerClassName: data.effect.required ? 'is-required' : '',
53075
- width: data.config.fieldRatio,
53081
+ minWidth: data.config.fieldRatio,
53076
53082
  slots: {
53077
53083
  default({ row }) {
53078
53084
  return require$$1$2.h(RangePicker, {
@@ -53088,6 +53094,7 @@ var process = {
53088
53094
  style: {
53089
53095
  width: '100%',
53090
53096
  },
53097
+ getCalendarContainer: getContainer$2,
53091
53098
  });
53092
53099
  },
53093
53100
  },
@@ -53721,8 +53728,8 @@ var process = {
53721
53728
  const _hoisted_3$i = ["onMouseenter", "onMouseleave"];
53722
53729
  const _hoisted_4$g = ["src"];
53723
53730
  const _hoisted_5$c = ["src"];
53724
- const _hoisted_6$a = ["src"];
53725
- const _hoisted_7$a = ["src"];
53731
+ const _hoisted_6$b = ["src"];
53732
+ const _hoisted_7$b = ["src"];
53726
53733
  const _hoisted_8$7 = ["src"];
53727
53734
  const _hoisted_9$6 = ["onClick"];
53728
53735
  const _hoisted_10$5 = ["onClick"];
@@ -53838,7 +53845,7 @@ var process = {
53838
53845
  class: "bm-upload__picture-result__image",
53839
53846
  src: $setup.icons.ppt,
53840
53847
  alt: "\u56FE\u7247"
53841
- }, null, 8, _hoisted_6$a)) : [
53848
+ }, null, 8, _hoisted_6$b)) : [
53842
53849
  "doc",
53843
53850
  "DOC",
53844
53851
  "application/msword",
@@ -53850,7 +53857,7 @@ var process = {
53850
53857
  class: "bm-upload__picture-result__image",
53851
53858
  src: $setup.icons.doc,
53852
53859
  alt: "\u56FE\u7247"
53853
- }, null, 8, _hoisted_7$a)) : _ctx.pictureFileTypes.includes(item.type) ? (require$$1$2.openBlock(), require$$1$2.createElementBlock(require$$1$2.Fragment, { key: 4 }, [
53860
+ }, null, 8, _hoisted_7$b)) : _ctx.pictureFileTypes.includes(item.type) ? (require$$1$2.openBlock(), require$$1$2.createElementBlock(require$$1$2.Fragment, { key: 4 }, [
53854
53861
  item.url ? (require$$1$2.openBlock(), require$$1$2.createBlock(_component_a_image, {
53855
53862
  key: 0,
53856
53863
  class: "bm-upload__picture-result__image",
@@ -67814,8 +67821,8 @@ var process = {
67814
67821
  const _hoisted_3$h = { class: "__search-panel" };
67815
67822
  const _hoisted_4$f = { class: "__selector-modal-options" };
67816
67823
  const _hoisted_5$b = { class: "__selector-modal-options-item fixed-option" };
67817
- const _hoisted_6$9 = { class: "department-option-item" };
67818
- const _hoisted_7$9 = {
67824
+ const _hoisted_6$a = { class: "department-option-item" };
67825
+ const _hoisted_7$a = {
67819
67826
  key: 0,
67820
67827
  class: "department-desc"
67821
67828
  };
@@ -67900,9 +67907,9 @@ var process = {
67900
67907
  "tree-data": _ctx.list
67901
67908
  }, {
67902
67909
  title: require$$1$2.withCtx(({ title, description }) => [
67903
- require$$1$2.createElementVNode("div", _hoisted_6$9, [
67910
+ require$$1$2.createElementVNode("div", _hoisted_6$a, [
67904
67911
  require$$1$2.createElementVNode("span", null, require$$1$2.toDisplayString(title), 1),
67905
- description ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("p", _hoisted_7$9, require$$1$2.toDisplayString(description), 1)) : require$$1$2.createCommentVNode("v-if", true)
67912
+ description ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("p", _hoisted_7$a, require$$1$2.toDisplayString(description), 1)) : require$$1$2.createCommentVNode("v-if", true)
67906
67913
  ])
67907
67914
  ]),
67908
67915
  _: 1
@@ -68648,11 +68655,11 @@ var process = {
68648
68655
  const _hoisted_3$f = { class: "varied-area-tabs" };
68649
68656
  const _hoisted_4$d = ["onClick"];
68650
68657
  const _hoisted_5$9 = { class: "area-panel" };
68651
- const _hoisted_6$8 = {
68658
+ const _hoisted_6$9 = {
68652
68659
  key: 0,
68653
68660
  class: "noData"
68654
68661
  };
68655
- const _hoisted_7$8 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
68662
+ const _hoisted_7$9 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
68656
68663
  const _hoisted_8$5 = {
68657
68664
  key: 0,
68658
68665
  class: "__selector-modal-options"
@@ -68707,10 +68714,10 @@ var process = {
68707
68714
  _: 1
68708
68715
  }, 8, ["value", "placeholder", "onChange"]),
68709
68716
  require$$1$2.createElementVNode("div", _hoisted_5$9, [
68710
- _ctx.list && !_ctx.list.length ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_6$8, [
68717
+ _ctx.list && !_ctx.list.length ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_6$9, [
68711
68718
  require$$1$2.createVNode(_component_Empty, { image: _ctx.emptyPic }, {
68712
68719
  description: require$$1$2.withCtx(() => [
68713
- require$$1$2.createElementVNode("span", _hoisted_7$8, require$$1$2.toDisplayString(!!_ctx.searchVal ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
68720
+ require$$1$2.createElementVNode("span", _hoisted_7$9, require$$1$2.toDisplayString(!!_ctx.searchVal ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
68714
68721
  ]),
68715
68722
  _: 1
68716
68723
  }, 8, ["image"])
@@ -69119,7 +69126,7 @@ var process = {
69119
69126
  field,
69120
69127
  title: data.title.title,
69121
69128
  headerClassName: data.effect.required ? 'is-required' : '',
69122
- width: data.config.fieldRatio,
69129
+ minWidth: data.config.fieldRatio,
69123
69130
  slots: {
69124
69131
  default({ row }) {
69125
69132
  return require$$1$2.h(StaffSelector, Object.assign({ title: '添加员工', mode: data.props.limit ? 'radio' : 'multiple', placeholder: data.props.placeholder, onChange: (value) => {
@@ -69182,8 +69189,8 @@ var process = {
69182
69189
  key: 1,
69183
69190
  class: "bm-fc-select-material-temp__content__circle"
69184
69191
  };
69185
- const _hoisted_6$7 = ["title"];
69186
- const _hoisted_7$7 = { class: "bm-fc-select-material-temp__content__item-time" };
69192
+ const _hoisted_6$8 = ["title"];
69193
+ const _hoisted_7$8 = { class: "bm-fc-select-material-temp__content__item-time" };
69187
69194
  const _sfc_main$C = /* @__PURE__ */ require$$1$2.defineComponent({
69188
69195
  __name: "select-material-temp",
69189
69196
  props: ["visible", "fetchMaterialType", "fetchMaterialTemp"],
@@ -69372,9 +69379,9 @@ var process = {
69372
69379
  require$$1$2.createElementVNode("span", {
69373
69380
  class: "bm-fc-select-material-temp__content__name",
69374
69381
  title: item.templateName
69375
- }, require$$1$2.toDisplayString(item.templateName), 9, _hoisted_6$7)
69382
+ }, require$$1$2.toDisplayString(item.templateName), 9, _hoisted_6$8)
69376
69383
  ], 8, _hoisted_4$c),
69377
- require$$1$2.createElementVNode("div", _hoisted_7$7, require$$1$2.toDisplayString(require$$1$2.unref(dayjs)(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
69384
+ require$$1$2.createElementVNode("div", _hoisted_7$8, require$$1$2.toDisplayString(require$$1$2.unref(dayjs)(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
69378
69385
  ])
69379
69386
  ]),
69380
69387
  _: 2
@@ -69679,8 +69686,8 @@ var process = {
69679
69686
  const _hoisted_3$d = { class: "bm-dc-table-widget__title-samll" };
69680
69687
  const _hoisted_4$b = { class: "bm-dc-table-widget__top-bar" };
69681
69688
  const _hoisted_5$7 = { class: "bm-dc-table-widget__table" };
69682
- const _hoisted_6$6 = ["onClick"];
69683
- const _hoisted_7$6 = ["onClick"];
69689
+ const _hoisted_6$7 = ["onClick"];
69690
+ const _hoisted_7$7 = ["onClick"];
69684
69691
  const _sfc_main$B = /* @__PURE__ */ require$$1$2.defineComponent({
69685
69692
  __name: "table-widget",
69686
69693
  props: ["rule", "extraConfig"],
@@ -69786,7 +69793,7 @@ var process = {
69786
69793
  field,
69787
69794
  title: "\u5546\u54C1\u7F16\u7801",
69788
69795
  headerClassName: rule.effect.required ? "is-required" : "",
69789
- width: "138px",
69796
+ minWidth: "138px",
69790
69797
  slots: {
69791
69798
  default({ row }) {
69792
69799
  return require$$1$2.h(Input$3, {
@@ -69809,7 +69816,7 @@ var process = {
69809
69816
  columns2.push({
69810
69817
  field: childField,
69811
69818
  title: item.label,
69812
- width: "138px",
69819
+ minWidth: "138px",
69813
69820
  slots: {
69814
69821
  default({ row }) {
69815
69822
  if (item.value === "\u5546\u54C1\u56FE\u7247" && row[childField]) {
@@ -69973,12 +69980,12 @@ var process = {
69973
69980
  require$$1$2.unref(copyFeature) ? (require$$1$2.openBlock(), require$$1$2.createElementBlock(require$$1$2.Fragment, { key: 0 }, [
69974
69981
  require$$1$2.createElementVNode("a", {
69975
69982
  onClick: ($event) => handleCopy(row)
69976
- }, "\u590D\u5236", 8, _hoisted_6$6),
69983
+ }, "\u590D\u5236", 8, _hoisted_6$7),
69977
69984
  require$$1$2.createVNode(require$$1$2.unref(Divider$1), { type: "vertical" })
69978
69985
  ], 64)) : require$$1$2.createCommentVNode("v-if", true),
69979
69986
  require$$1$2.createElementVNode("a", {
69980
69987
  onClick: ($event) => handleDelete(rowIndex)
69981
- }, "\u5220\u9664", 8, _hoisted_7$6)
69988
+ }, "\u5220\u9664", 8, _hoisted_7$7)
69982
69989
  ]),
69983
69990
  _: 1
69984
69991
  }, 8, ["config"])
@@ -69997,8 +70004,8 @@ var process = {
69997
70004
  const _hoisted_3$c = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u7D20\u6750\u7C7B\u578B\uFF1A", -1);
69998
70005
  const _hoisted_4$a = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u5C3A\u5BF8\uFF1A", -1);
69999
70006
  const _hoisted_5$6 = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u5C01\u9762\u56FE\uFF1A", -1);
70000
- const _hoisted_6$5 = ["src"];
70001
- const _hoisted_7$5 = { key: 1 };
70007
+ const _hoisted_6$6 = ["src"];
70008
+ const _hoisted_7$6 = { key: 1 };
70002
70009
  const _hoisted_8$4 = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u6A21\u677F\u7ED3\u6784\u56FE\uFF1A", -1);
70003
70010
  const _hoisted_9$3 = { key: 1 };
70004
70011
  const _sfc_main$A = /* @__PURE__ */ require$$1$2.defineComponent({
@@ -70296,7 +70303,7 @@ var process = {
70296
70303
  key: 0,
70297
70304
  class: "bm-fc-form-item__cover",
70298
70305
  src: pane.tempSelected.coverPlanPath
70299
- }, null, 8, _hoisted_6$5)) : (require$$1$2.openBlock(), require$$1$2.createElementBlock("span", _hoisted_7$5, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
70306
+ }, null, 8, _hoisted_6$6)) : (require$$1$2.openBlock(), require$$1$2.createElementBlock("span", _hoisted_7$6, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
70300
70307
  ]),
70301
70308
  _: 2
70302
70309
  }, 1024)
@@ -70665,9 +70672,10 @@ var process = {
70665
70672
  "filter-option": false,
70666
70673
  "not-found-content": null,
70667
70674
  options: options.value,
70675
+ "get-popup-container": require$$1$2.unref(getContainer$2),
70668
70676
  onChange: handleChange,
70669
70677
  onSearch: handleSearch
70670
- }, null, 8, ["value", "options"]);
70678
+ }, null, 8, ["value", "options", "get-popup-container"]);
70671
70679
  };
70672
70680
  }
70673
70681
  });
@@ -70744,7 +70752,7 @@ var process = {
70744
70752
  field,
70745
70753
  title: data.title.title,
70746
70754
  headerClassName: data.effect.required ? 'is-required' : '',
70747
- width: '138px',
70755
+ minWidth: '138px',
70748
70756
  slots: {
70749
70757
  default({ row }) {
70750
70758
  return require$$1$2.h(ShopWidget, {
@@ -77246,8 +77254,9 @@ var process = {
77246
77254
  multiple: __props.multiple,
77247
77255
  options: options.value,
77248
77256
  "load-data": loadData,
77257
+ "get-popup-container": require$$1$2.unref(getContainer$2),
77249
77258
  "onUpdate:value": handleChange
77250
- }, null, 8, ["value", "multiple", "options"]);
77259
+ }, null, 8, ["value", "multiple", "options", "get-popup-container"]);
77251
77260
  };
77252
77261
  }
77253
77262
  });
@@ -77388,7 +77397,7 @@ var process = {
77388
77397
  field,
77389
77398
  title: '素材类型',
77390
77399
  headerClassName: data.effect.required ? 'is-required' : '',
77391
- width: '138px',
77400
+ minWidth: '138px',
77392
77401
  slots: {
77393
77402
  default({ row }) {
77394
77403
  return require$$1$2.h(materialTypeInTable, {
@@ -77525,7 +77534,7 @@ var process = {
77525
77534
  field,
77526
77535
  title: data.title.title,
77527
77536
  headerClassName: data.effect.required ? 'is-required' : '',
77528
- width: data.config.fieldRatio,
77537
+ minWidth: data.config.fieldRatio,
77529
77538
  slots: {
77530
77539
  default({ row }) {
77531
77540
  return require$$1$2.h(StaffSelector, Object.assign({ title: '添加部门', mode: data.props.limit ? 'radio' : 'multiple', placeholder: data.props.placeholder, immediateFetch: true, unitStr: '个', onChange: (value) => {
@@ -77618,10 +77627,10 @@ var process = {
77618
77627
  xmlns: "http://www.w3.org/2000/svg"
77619
77628
  };
77620
77629
  const _hoisted_5$5 = /* @__PURE__ */ require$$1$2.createStaticVNode('<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-136.000000, -92.000000)"><g transform="translate(50.000000, 42.000000)"><g transform="translate(86.000000, 50.000000)"><rect fill="#FFFFFF" opacity="0" x="0" y="0" width="64" height="64"></rect><path d="M33.7074572,12.1085688 L34.98805,12.2686429 L34.2410375,13.3358036 L34.4544696,14.5630384 L33.2272348,14.1895322 L32,14.8298286 L32,13.5492358 L31.0395554,12.6955072 L32.3201482,12.2152848 L32.9604447,11.0947661 L33.7074572,12.1085688 Z M23.9429365,13.8693839 L25.2235294,13.6559518 L24.7966651,14.8831866 L25.3836035,16.0037054 L24.0496526,16.0570634 L23.089208,17.0175081 L22.7157017,15.7902732 L21.5951829,15.2566929 L22.6623437,14.4563224 L22.9291338,13.1757295 L23.9429365,13.8693839 Z M42.5648912,13.6559518 L42.8850394,14.8831866 L44.0055581,15.5768411 L42.8850394,16.2704956 L42.5648912,17.4977304 L41.5510885,16.6440019 L40.2171375,16.7507179 L40.6973599,15.5768411 L40.2171375,14.4029643 L41.5510885,14.5096804 L42.5648912,13.6559518 Z M47.9006947,20.0055581 L49.2346457,19.792126 L48.8611394,21.0193608 L49.5014359,22.1398796 L48.1674849,22.1398796 L47.2603983,23.0469662 L46.780176,21.8197313 L45.5529412,21.286151 L46.5667439,20.5391385 L46.780176,19.2585456 L47.9006947,20.0055581 Z M45.5529412,23.8473367 L43.738768,23.3671144 C41.0708661,19.792126 36.8022233,17.4977304 32.053358,17.4977304 C29.9723946,17.4977304 28.0515053,17.9245947 26.2373321,18.7249652 L24.3698008,18.2447429 C26.6108383,16.910792 29.2253821,16.1637795 32,16.1637795 C37.7626679,16.1637795 42.7783233,19.2585456 45.5529412,23.8473367 Z M32.053358,8 C43.4186197,8 52.9697082,15.8969893 55.4241779,26.4618805 L54.0368689,26.0883742 C51.4223252,16.3772117 42.5648912,9.28059284 32,9.28059284 C25.7037517,9.28059284 19.9944419,11.8417786 15.9392311,15.8969893 L14.5519222,15.5234831 C18.9272811,10.881334 25.1168133,8 32.053358,8 Z M17.219824,42.0957851 L18.3403428,42.7894396 L17.273182,43.483094 L17.0597499,44.7103289 L15.9925891,43.8566003 L14.7119963,43.9633163 L15.1388606,42.7894396 L14.5519222,41.6155628 L15.8858731,41.7222788 L16.8463177,40.8685503 L17.219824,42.0957851 Z M18.4470588,40.0681797 L20.3145901,40.548402 C22.9824919,44.1233904 27.2511348,46.417786 32,46.417786 C34.0276054,46.417786 36.0018527,45.9909217 37.8160259,45.1905512 L39.6835572,45.6707735 C37.4425197,46.9513664 34.8279759,47.6450209 32.053358,47.6450209 C26.2373321,47.6983789 21.2216767,44.6569708 18.4470588,40.0681797 Z M5.1075498,17.6044465 L1.47920333,30.9973136 C1.21241315,32.0111163 1.79935157,33.024919 2.81315422,33.2917091 L56.6514127,47.6983789 C57.6652154,47.965169 58.6790181,47.3782306 58.9458082,46.364428 L62.5207967,32.9715609 C62.7875869,31.9577582 62.2006485,30.9439555 61.1868458,30.6771653 L7.40194533,16.2704956 C6.38814263,16.0037054 5.37433994,16.5906438 5.1075498,17.6044465 Z M4.04038905,16.6440019 C4.36053729,15.310051 5.80120426,14.5096804 7.13515514,14.8831866 L62.1472904,29.5566466 C63.4812413,29.9301528 64.2816118,31.3174618 63.9081056,32.6514127 L59.9596109,47.2715146 C59.6394627,48.6054655 58.1987957,49.405836 56.8648448,49.0323298 L1.85270957,34.3588698 C0.518758684,34.0387216 -0.281611874,32.5980546 0.0918944055,31.2641038 L4.04038905,16.6440019 Z M42.404817,48.1786012 L43.5253358,48.7121816 L42.4581751,49.5125521 L42.2447429,50.793145 L41.2309402,50.0461325 L40.0037054,50.3129227 L40.4305697,49.0856878 L39.8436313,47.965169 L41.1775822,47.911811 L42.0313108,46.9513664 L42.404817,48.1786012 Z M23.195924,47.1114405 L24.2097267,47.911811 L25.5436776,47.858453 L25.0100973,49.0323298 L25.4903196,50.2062066 L24.2097267,50.0994905 L23.195924,50.899861 L22.9291338,49.6726262 L21.8086151,48.9789717 L22.9291338,48.2853173 L23.195924,47.1114405 Z M33.7074572,50.3662807 L34.6679018,51.2200093 L33.440667,51.6468735 L32.8003705,52.7673923 L32,51.7535896 L30.6660491,51.5401575 L31.4130616,50.5263548 L31.1996295,49.29912 L32.4268643,49.6726262 L33.7074572,49.0856878 L33.7074572,50.3662807 Z M8.57582212,37.4536359 L9.96313105,37.8271422 C12.6310329,47.5383048 21.4884669,54.6349236 32,54.6349236 C38.2962483,54.6349236 44.0055581,52.1270959 48.0607689,48.0185271 L49.4480778,48.3920334 C45.0727188,53.0341825 38.8831867,55.9155164 32,55.9155164 C20.5813803,55.9155164 11.0836498,48.0185271 8.57582212,37.4536359 Z M49.0100306,30.0029562 L50.2811889,30.3435621 L49.2521244,34.1840832 C50.0512102,34.1228141 50.8585138,33.9767838 51.6506128,33.7252224 L51.6506128,33.7252224 L52.1153688,34.9657811 C50.956208,35.2349395 49.8837503,35.3968852 48.9115186,35.4552416 L48.9115186,35.4552416 L47.4440146,40.932041 C47.3570514,41.2565921 47.4623223,41.4587258 47.7598275,41.538442 L47.7598275,41.538442 L48.3142689,41.6870042 C48.5576822,41.7522266 48.7624685,41.6911479 48.9250042,41.5172912 C49.1182092,41.3371585 49.3841438,40.6692283 49.7363308,39.517124 L49.7363308,39.517124 L50.7978485,40.207385 C50.2729661,41.7335379 49.8336254,42.6158937 49.4834499,42.8409295 C49.1675673,43.0461664 48.7490662,43.0934619 48.2216707,42.9521467 L48.2216707,42.9521467 L47.0316501,42.6332816 C46.1526576,42.3977563 45.8467442,41.8085017 46.0967634,40.8754173 L46.0967634,40.8754173 L49.0100306,30.0029562 Z M45.4831901,29.1014238 L46.7543485,29.4420297 L45.725284,33.2825507 L47.4562231,33.7463545 L47.1228642,34.9904669 L45.3919251,34.5266632 L43.9026803,40.0846004 C44.5141263,40.0745105 45.0922503,40.0265042 45.6406759,39.9270587 L45.6406759,39.9270587 L45.5553246,41.1651552 C44.4901138,41.300055 43.2906443,41.3410048 41.9668156,41.305151 L41.9668156,41.305151 L41.9611295,40.0281672 C42.3588607,40.0042941 42.617028,39.7980864 42.7184851,39.4194435 L42.7184851,39.4194435 L45.4831901,29.1014238 Z M42.5704483,28.2339938 L43.8145607,28.5673527 L43.1732072,30.9609169 L44.4037967,31.2906524 L44.0740612,32.5212419 L42.8434717,32.1915064 L42.1368957,34.8284839 C42.5652962,34.7983348 43.0009437,34.7411398 43.4230683,34.6803213 L43.4230683,34.6803213 L43.0969563,35.8973879 C42.6613088,35.9545829 42.2292848,35.9982549 41.8107837,36.0455504 L41.8107837,36.0455504 L40.850565,39.6291353 C40.6114162,40.5216507 40.0591071,40.8519575 39.2206835,40.6273026 L39.2206835,40.6273026 L38.0577088,40.3156845 L38.1242319,38.9855797 C38.4478121,39.1302582 38.7651162,39.2442673 39.0896673,39.3312305 C39.4006954,39.4145703 39.6064526,39.2957763 39.6934158,38.9712253 L39.6934158,38.9712253 L40.4543438,36.1314033 C39.9853743,36.150682 39.5200284,36.1564377 39.0718288,36.152294 L39.0718288,36.152294 L39.1040591,34.8419882 C39.6604424,34.8751197 40.2204491,34.8947282 40.7877027,34.8872909 L40.7877027,34.8872909 L41.5993592,31.8581475 L40.1794483,31.4776835 L40.5091837,30.247094 L41.9290947,30.627558 L42.5704483,28.2339938 Z M32.313038,28.3263268 L33.5841963,28.6669327 L33.2689547,29.8434303 L37.2852743,30.9195999 L35.4880349,37.6269888 L34.2303995,37.2900064 L34.4151963,36.6003354 L31.6565121,35.8611482 L30.9390657,38.5386946 L29.6679073,38.1980887 L30.3853537,35.5205423 L27.6672384,34.7922256 L27.4715712,35.5224655 L26.2139358,35.1854831 L28.0220457,28.4375253 L31.9977964,29.5028244 L32.313038,28.3263268 Z M16.5007239,28.1622065 L21.6394493,29.5391238 L21.8785981,28.6466084 L23.1497565,28.9872142 L22.9106077,29.8797297 L24.3846105,30.2746875 L24.0621219,31.4782311 L22.5881191,31.0832733 L21.732981,34.2746922 C21.4648445,35.2753913 20.8439496,35.6452961 19.8838193,35.38803 L19.8838193,35.38803 L17.9635588,34.8734977 L17.9957891,33.563192 C18.6033515,33.7839633 19.1775919,33.9668183 19.7320333,34.1153804 C20.1512451,34.2277079 20.4292114,34.055793 20.5451624,33.6230582 L20.5451624,33.6230582 L21.3169607,30.7426674 L16.1782353,29.3657501 L16.5007239,28.1622065 Z M32.3087361,33.4270151 L31.9717537,34.6846506 L34.7304379,35.4238377 L35.0674202,34.1662023 L32.3087361,33.4270151 Z M28.3194624,32.3580925 L27.98248,33.6157279 L30.7005953,34.3440447 L31.0375777,33.0864093 L28.3194624,32.3580925 Z M16.2003944,24.4147852 L17.1580625,25.2221586 C16.6586142,25.8420128 16.0888984,26.3995574 15.4624383,26.8984158 L15.4624383,26.8984158 L13.6217172,33.7680803 L12.3911277,33.4383448 L13.8550082,27.9750683 C13.2927996,28.2882287 12.7107919,28.5670962 12.1053618,28.8251938 L12.1053618,28.8251938 L12.0663538,27.5102937 C13.7464436,26.7574815 15.125665,25.7211377 16.2003944,24.4147852 L16.2003944,24.4147852 Z M32.9500897,31.0334509 L32.6094838,32.3046093 L35.368168,33.0437965 L35.7087738,31.7726381 L32.9500897,31.0334509 Z M17.8456337,30.1748748 C18.3864824,31.1314513 18.7805204,31.932739 19.0376471,32.5958845 L19.0376471,32.5958845 L17.8485277,33.0309419 C17.578849,32.3064577 17.1920579,31.4781241 16.6746316,30.5423174 L16.6746316,30.5423174 Z M28.960816,29.9645283 L28.6202102,31.2356867 L31.3383254,31.9640035 L31.6789313,30.6928451 L28.960816,29.9645283 Z M27.5840244,25.2039765 L32.6416121,26.559153 C32.5996217,26.2290367 32.5503844,25.9259663 32.4840006,25.6327953 L32.4840006,25.6327953 L33.9077952,25.7823981 C33.9326392,26.1224139 33.9601357,26.5066221 33.9668623,26.9142528 L33.9668623,26.9142528 L39.1055877,28.2911701 L38.4207525,30.8470098 L37.17664,30.5136509 L37.5462336,29.1343088 L28.5128953,26.7138331 L28.1251844,28.16079 L26.8810719,27.8274311 L27.5840244,25.2039765 Z M21.5900589,22.5833276 L22.8206484,22.9130631 L22.4546782,24.2788822 L25.3891609,25.0651745 L25.0739193,26.2416721 L22.1394366,25.4553799 L21.7662196,26.8482449 L25.2551437,27.7830993 L24.9362786,28.9731199 L16.8225017,26.7990399 L17.1413667,25.6090193 L20.5356301,26.5185094 L20.9088471,25.1256444 L18.0014104,24.3465991 L18.316652,23.1701014 L21.2240887,23.9491467 L21.5900589,22.5833276 Z M16.5505886,21.1605363 L17.5217797,21.9715331 C16.4470503,23.2778855 14.9217289,24.3185636 12.9801085,25.0737682 L12.9801085,25.0737682 L12.944724,23.7453451 C14.4154332,23.1248498 15.6185959,22.2587392 16.5505886,21.1605363 L16.5505886,21.1605363 Z" fill="#2F4EED"></path></g></g></g></g>', 1);
77621
- const _hoisted_6$4 = [
77630
+ const _hoisted_6$5 = [
77622
77631
  _hoisted_5$5
77623
77632
  ];
77624
- const _hoisted_7$4 = {
77633
+ const _hoisted_7$5 = {
77625
77634
  key: 2,
77626
77635
  width: "64px",
77627
77636
  height: "64px",
@@ -77692,7 +77701,7 @@ var process = {
77692
77701
  props: ["status"],
77693
77702
  setup(__props) {
77694
77703
  return (_ctx, _cache) => {
77695
- return __props.status === 1 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_1$o, _hoisted_3$a)) : __props.status === 2 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_4$9, _hoisted_6$4)) : __props.status === 3 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_7$4, _hoisted_9$2)) : __props.status === 4 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_10$2, _hoisted_12$2)) : __props.status === 5 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_13$2, _hoisted_15$1)) : __props.status === 6 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_16$1, _hoisted_18$1)) : __props.status === 7 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_19, _hoisted_21)) : (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_22, _hoisted_24));
77704
+ return __props.status === 1 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_1$o, _hoisted_3$a)) : __props.status === 2 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_4$9, _hoisted_6$5)) : __props.status === 3 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_7$5, _hoisted_9$2)) : __props.status === 4 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_10$2, _hoisted_12$2)) : __props.status === 5 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_13$2, _hoisted_15$1)) : __props.status === 6 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_16$1, _hoisted_18$1)) : __props.status === 7 ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_19, _hoisted_21)) : (require$$1$2.openBlock(), require$$1$2.createElementBlock("svg", _hoisted_22, _hoisted_24));
77696
77705
  };
77697
77706
  }
77698
77707
  });
@@ -77710,7 +77719,7 @@ var process = {
77710
77719
  props: ["info"],
77711
77720
  setup(__props) {
77712
77721
  return (_ctx, _cache) => {
77713
- return require$$1$2.openBlock(), require$$1$2.createElementBlock(require$$1$2.Fragment, null, [
77722
+ return require$$1$2.openBlock(), require$$1$2.createElementBlock("div", null, [
77714
77723
  !__props.info?.status ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_1$n, "\u5BA1\u6279\u72B6\u6001")) : (require$$1$2.openBlock(), require$$1$2.createBlock(ApprovalStatus, {
77715
77724
  key: 1,
77716
77725
  class: "bm-form-basic-info__approval-status",
@@ -77719,7 +77728,7 @@ var process = {
77719
77728
  _hoisted_2$f,
77720
77729
  _hoisted_3$9,
77721
77730
  _hoisted_4$8
77722
- ], 64);
77731
+ ]);
77723
77732
  };
77724
77733
  }
77725
77734
  });
@@ -77727,7 +77736,7 @@ var process = {
77727
77736
 
77728
77737
  const _sfc_main$u = /* @__PURE__ */ require$$1$2.defineComponent({
77729
77738
  __name: "form-create",
77730
- props: ["fdRule", "extraConfig", "value"],
77739
+ props: ["fdRule", "extraConfig", "value", "info"],
77731
77740
  emits: ["update:value"],
77732
77741
  setup(__props, { expose, emit: emits }) {
77733
77742
  const props = __props;
@@ -77769,7 +77778,7 @@ var process = {
77769
77778
  item.value = props.value[item.field];
77770
77779
  });
77771
77780
  }
77772
- rule2.value = props.value[rule2.field];
77781
+ rule2.value = props.value[rule2.field] || rule2.value;
77773
77782
  });
77774
77783
  return ruleData;
77775
77784
  }
@@ -77782,7 +77791,10 @@ var process = {
77782
77791
  return (_ctx, _cache) => {
77783
77792
  const _component_formCreate = require$$1$2.resolveComponent("formCreate", true);
77784
77793
  return require$$1$2.openBlock(), require$$1$2.createElementBlock(require$$1$2.Fragment, null, [
77785
- require$$1$2.createVNode(FormBasicInfo),
77794
+ require$$1$2.createVNode(FormBasicInfo, {
77795
+ class: "bm-fc-form-basic-info",
77796
+ info: __props.info
77797
+ }, null, 8, ["info"]),
77786
77798
  require$$1$2.createVNode(_component_formCreate, {
77787
77799
  api: fApi.value,
77788
77800
  "onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
@@ -87134,7 +87146,7 @@ var process = {
87134
87146
  },
87135
87147
  },
87136
87148
  effect: {
87137
- required: true,
87149
+ required: false,
87138
87150
  formRule: 'formRule',
87139
87151
  },
87140
87152
  props: {
@@ -87167,6 +87179,7 @@ var process = {
87167
87179
  field: fieldsMap$g['props.placeholder'],
87168
87180
  props: {
87169
87181
  placeholder: '请输入',
87182
+ maxlength: 30,
87170
87183
  },
87171
87184
  value: rule.props.placeholder,
87172
87185
  },
@@ -87176,6 +87189,7 @@ var process = {
87176
87189
  field: fieldsMap$g['value'],
87177
87190
  props: {
87178
87191
  placeholder: '请输入',
87192
+ maxlength: 200,
87179
87193
  },
87180
87194
  value: rule.value,
87181
87195
  },
@@ -87235,7 +87249,7 @@ var process = {
87235
87249
  },
87236
87250
  },
87237
87251
  effect: {
87238
- required: true,
87252
+ required: false,
87239
87253
  formRule: 'formRule',
87240
87254
  },
87241
87255
  props: {
@@ -87269,6 +87283,7 @@ var process = {
87269
87283
  field: fieldsMap$f['props.placeholder'],
87270
87284
  props: {
87271
87285
  placeholder: '请输入',
87286
+ maxlength: 30,
87272
87287
  },
87273
87288
  value: rule.props.placeholder,
87274
87289
  },
@@ -87278,6 +87293,7 @@ var process = {
87278
87293
  field: fieldsMap$f['value'],
87279
87294
  props: {
87280
87295
  placeholder: '请输入',
87296
+ maxlength: 5000,
87281
87297
  },
87282
87298
  value: rule.value,
87283
87299
  },
@@ -87338,7 +87354,7 @@ var process = {
87338
87354
  },
87339
87355
  },
87340
87356
  effect: {
87341
- required: true,
87357
+ required: false,
87342
87358
  formRule: 'formRule',
87343
87359
  },
87344
87360
  props: {
@@ -87373,6 +87389,7 @@ var process = {
87373
87389
  field: fieldsMap$e['props.placeholder'],
87374
87390
  props: {
87375
87391
  placeholder: '请输入',
87392
+ maxlength: 30,
87376
87393
  },
87377
87394
  value: rule.props.placeholder,
87378
87395
  },
@@ -87446,6 +87463,7 @@ var process = {
87446
87463
  const visible = require$$1$2.ref(false);
87447
87464
  const text = require$$1$2.ref("");
87448
87465
  const repeatOption = require$$1$2.ref([]);
87466
+ const maxlength = 500;
87449
87467
  function edit() {
87450
87468
  visible.value = true;
87451
87469
  text.value = makeText(props.options);
@@ -87467,6 +87485,7 @@ var process = {
87467
87485
  function handleOk() {
87468
87486
  const options = text.value.split("\n").reduce((pre, cur) => {
87469
87487
  if (cur) {
87488
+ cur = cur.substring(0, maxlength - 1);
87470
87489
  pre.push({ value: cur, label: cur });
87471
87490
  }
87472
87491
  return pre;
@@ -87531,6 +87550,7 @@ var process = {
87531
87550
  "bm-handle-options__input",
87532
87551
  repeatOption.value.length && repeatOption.value.includes(element.value) ? "is-error" : ""
87533
87552
  ]),
87553
+ maxlength,
87534
87554
  onBlur: ($event) => handleBlur(element)
87535
87555
  }, null, 8, ["value", "onUpdate:value", "class", "onBlur"])
87536
87556
  ]),
@@ -87627,7 +87647,7 @@ var process = {
87627
87647
  },
87628
87648
  },
87629
87649
  effect: {
87630
- required: true,
87650
+ required: false,
87631
87651
  formRule: 'formRule',
87632
87652
  },
87633
87653
  options: [
@@ -87673,6 +87693,7 @@ var process = {
87673
87693
  field: fieldsMap$d['props.placeholder'],
87674
87694
  props: {
87675
87695
  placeholder: '请输入',
87696
+ maxlength: 30,
87676
87697
  },
87677
87698
  value: rule.props.placeholder,
87678
87699
  },
@@ -87765,7 +87786,7 @@ var process = {
87765
87786
  },
87766
87787
  },
87767
87788
  effect: {
87768
- required: true,
87789
+ required: false,
87769
87790
  formRule: 'formRule',
87770
87791
  },
87771
87792
  options: [
@@ -87811,6 +87832,7 @@ var process = {
87811
87832
  field: fieldsMap$c['props.placeholder'],
87812
87833
  props: {
87813
87834
  placeholder: '请输入',
87835
+ maxlength: 30,
87814
87836
  },
87815
87837
  value: rule.props.placeholder,
87816
87838
  },
@@ -87972,7 +87994,7 @@ var process = {
87972
87994
  },
87973
87995
  },
87974
87996
  effect: {
87975
- required: true,
87997
+ required: false,
87976
87998
  formRule: 'formRule',
87977
87999
  },
87978
88000
  props: {
@@ -88035,6 +88057,7 @@ var process = {
88035
88057
  field: fieldsMap$b['props.placeholder'],
88036
88058
  props: {
88037
88059
  placeholder: '请输入',
88060
+ maxlength: 30,
88038
88061
  },
88039
88062
  value: rule.props.placeholder,
88040
88063
  },
@@ -88116,7 +88139,7 @@ var process = {
88116
88139
  },
88117
88140
  },
88118
88141
  effect: {
88119
- required: true,
88142
+ required: false,
88120
88143
  formRule: 'formRule',
88121
88144
  },
88122
88145
  props: {
@@ -88181,6 +88204,7 @@ var process = {
88181
88204
  field: fieldsMap$a['props.placeholder.0'],
88182
88205
  props: {
88183
88206
  placeholder: '请输入',
88207
+ maxlength: 30,
88184
88208
  },
88185
88209
  value: rule.props.placeholder[0],
88186
88210
  },
@@ -88190,6 +88214,7 @@ var process = {
88190
88214
  field: fieldsMap$a['props.placeholder.1'],
88191
88215
  props: {
88192
88216
  placeholder: '请输入',
88217
+ maxlength: 30,
88193
88218
  },
88194
88219
  value: rule.props.placeholder[1],
88195
88220
  },
@@ -88263,10 +88288,23 @@ var process = {
88263
88288
  title: label$9,
88264
88289
  field: fieldsMap$9.value,
88265
88290
  value: rule.value,
88291
+ inject: true,
88266
88292
  prefix: {
88267
88293
  type: 'TextColor',
88294
+ on: {
88295
+ change({ api, self }, color) {
88296
+ api.emit('change', 'style.color', color, self, api, true);
88297
+ },
88298
+ },
88268
88299
  props: {
88269
- rule,
88300
+ color: rule.style.color,
88301
+ },
88302
+ },
88303
+ on: {
88304
+ change({ api, self }, list) {
88305
+ require$$1$2.nextTick(() => {
88306
+ api.refresh();
88307
+ });
88270
88308
  },
88271
88309
  },
88272
88310
  },
@@ -88309,7 +88347,7 @@ var process = {
88309
88347
  },
88310
88348
  },
88311
88349
  effect: {
88312
- required: true,
88350
+ required: false,
88313
88351
  formRule: 'formRule',
88314
88352
  },
88315
88353
  props: {
@@ -88402,11 +88440,11 @@ var process = {
88402
88440
  key: 0,
88403
88441
  class: "bm-widget-table__virtual"
88404
88442
  };
88405
- const _hoisted_6$3 = /* @__PURE__ */ require$$1$2.createElementVNode("div", { class: "bm-widget-table__virtual__head" }, null, -1);
88406
- const _hoisted_7$3 = /* @__PURE__ */ require$$1$2.createElementVNode("div", { class: "bm-widget-table__virtual__content" }, null, -1);
88443
+ const _hoisted_6$4 = /* @__PURE__ */ require$$1$2.createElementVNode("div", { class: "bm-widget-table__virtual__head" }, null, -1);
88444
+ const _hoisted_7$4 = /* @__PURE__ */ require$$1$2.createElementVNode("div", { class: "bm-widget-table__virtual__content" }, null, -1);
88407
88445
  const _hoisted_8$2 = [
88408
- _hoisted_6$3,
88409
- _hoisted_7$3
88446
+ _hoisted_6$4,
88447
+ _hoisted_7$4
88410
88448
  ];
88411
88449
  const _hoisted_9$1 = {
88412
88450
  key: 1,
@@ -88658,7 +88696,15 @@ var process = {
88658
88696
  effect: {
88659
88697
  required: true,
88660
88698
  },
88699
+ inject: true,
88661
88700
  value: rule.config.childRules,
88701
+ on: {
88702
+ change({ api, self }, list) {
88703
+ require$$1$2.nextTick(() => {
88704
+ api.validate();
88705
+ });
88706
+ },
88707
+ },
88662
88708
  },
88663
88709
  {
88664
88710
  type: 'checkbox',
@@ -88721,7 +88767,7 @@ var process = {
88721
88767
  },
88722
88768
  },
88723
88769
  effect: {
88724
- required: true,
88770
+ required: false,
88725
88771
  formRule: 'formRule',
88726
88772
  },
88727
88773
  config: {
@@ -88792,7 +88838,7 @@ var process = {
88792
88838
  },
88793
88839
  },
88794
88840
  effect: {
88795
- required: true,
88841
+ required: false,
88796
88842
  formRule: 'formRule',
88797
88843
  },
88798
88844
  props: {
@@ -88825,6 +88871,7 @@ var process = {
88825
88871
  field: fieldsMap$5['props.placeholder'],
88826
88872
  props: {
88827
88873
  placeholder: '请输入',
88874
+ maxlength: 30,
88828
88875
  },
88829
88876
  value: rule.props.placeholder,
88830
88877
  },
@@ -88913,7 +88960,7 @@ var process = {
88913
88960
  },
88914
88961
  },
88915
88962
  effect: {
88916
- required: true,
88963
+ required: false,
88917
88964
  formRule: 'formRule',
88918
88965
  },
88919
88966
  props: {
@@ -88946,6 +88993,7 @@ var process = {
88946
88993
  field: fieldsMap$4['props.placeholder'],
88947
88994
  props: {
88948
88995
  placeholder: '请输入',
88996
+ maxlength: 30,
88949
88997
  },
88950
88998
  value: rule.props.placeholder,
88951
88999
  },
@@ -90207,7 +90255,8 @@ var process = {
90207
90255
  const _sfc_main$d = /* @__PURE__ */ require$$1$2.defineComponent({
90208
90256
  __name: "table-column",
90209
90257
  props: ["formCreateInject"],
90210
- setup(__props) {
90258
+ emits: ["change"],
90259
+ setup(__props, { emit: emits }) {
90211
90260
  const props = __props;
90212
90261
  const handleClass = "bm-table-column__drag-icon";
90213
90262
  const btnCom = require$$1$2.ref();
@@ -90232,6 +90281,11 @@ var process = {
90232
90281
  function getPopupContainer() {
90233
90282
  return document.body;
90234
90283
  }
90284
+ require$$1$2.watch(childRules, (val) => {
90285
+ emits("change", val);
90286
+ }, {
90287
+ deep: true
90288
+ });
90235
90289
  return (_ctx, _cache) => {
90236
90290
  const _component_Delete = require$$1$2.resolveComponent("Delete");
90237
90291
  const _component_ARow = require$$1$2.resolveComponent("ARow");
@@ -90312,12 +90366,17 @@ var process = {
90312
90366
 
90313
90367
  const _sfc_main$c = /* @__PURE__ */ require$$1$2.defineComponent({
90314
90368
  __name: "text-color",
90315
- props: ["rule"],
90316
- setup(__props) {
90369
+ props: ["color"],
90370
+ emits: ["change"],
90371
+ setup(__props, { emit: emits }) {
90317
90372
  const props = __props;
90373
+ const color = require$$1$2.ref(props.color);
90374
+ function getColor(curColor) {
90375
+ return curColor === Colors.Black ? Colors.Blue : Colors.Black;
90376
+ }
90318
90377
  function handleClick() {
90319
- const rule = props.rule;
90320
- rule.style.color = rule.style.color === Colors.Black ? Colors.Blue : Colors.Black;
90378
+ color.value = getColor(color.value);
90379
+ emits("change", color.value);
90321
90380
  }
90322
90381
  return (_ctx, _cache) => {
90323
90382
  const _component_ColorPanel = require$$1$2.resolveComponent("ColorPanel");
@@ -90329,16 +90388,11 @@ var process = {
90329
90388
  width: "1em",
90330
90389
  height: "1em",
90331
90390
  fontSize: "20px",
90332
- color: __props.rule.style.color,
90391
+ color: getColor(color.value),
90333
90392
  cursor: "pointer"
90334
90393
  }),
90335
90394
  onClick: require$$1$2.withModifiers(handleClick, ["prevent", "stop"])
90336
- }, {
90337
- default: require$$1$2.withCtx(() => [
90338
- require$$1$2.createTextVNode("change")
90339
- ]),
90340
- _: 1
90341
- }, 8, ["style", "onClick"]);
90395
+ }, null, 8, ["style", "onClick"]);
90342
90396
  };
90343
90397
  }
90344
90398
  });
@@ -90352,8 +90406,8 @@ var process = {
90352
90406
  key: 0,
90353
90407
  class: "bfd-sider-right__title"
90354
90408
  };
90355
- const _hoisted_6$2 = { class: "bfd-sider-right__form" };
90356
- const _hoisted_7$2 = {
90409
+ const _hoisted_6$3 = { class: "bfd-sider-right__form" };
90410
+ const _hoisted_7$3 = {
90357
90411
  key: 0,
90358
90412
  class: "bfd-sider-right__form__flow-releated"
90359
90413
  };
@@ -90628,6 +90682,7 @@ var process = {
90628
90682
  return rule.config.config.parse(rule);
90629
90683
  }
90630
90684
  function edit(formRules) {
90685
+ widgetFormRules.splice(0);
90631
90686
  formRules.forEach((item) => {
90632
90687
  const rule = makeRule(ruleList[item.name]);
90633
90688
  delete item.name;
@@ -90645,22 +90700,70 @@ var process = {
90645
90700
  function getRule(name) {
90646
90701
  return makeRule(ruleList[name]);
90647
90702
  }
90703
+ function validate() {
90704
+ let pass = true;
90705
+ for (const rule of widgetFormRules) {
90706
+ const config = rule.config.config || {};
90707
+ const childRules = rule.config.childRules || [];
90708
+ if (!rule?.title?.title && config.name !== "instruction") {
90709
+ pass = false;
90710
+ }
90711
+ if (config.name === "table" && !childRules.length) {
90712
+ pass = false;
90713
+ }
90714
+ if (!pass && rule.field !== activeRule.value.field) {
90715
+ setActiveRule(rule);
90716
+ }
90717
+ if (pass && childRules.length) {
90718
+ for (const childRule of childRules) {
90719
+ if (!childRule?.title?.title) {
90720
+ pass = false;
90721
+ if (childRule.field !== activeRule.value.field) {
90722
+ setActiveRule(childRule, rule);
90723
+ }
90724
+ break;
90725
+ }
90726
+ }
90727
+ }
90728
+ if (!pass) {
90729
+ require$$1$2.nextTick(() => {
90730
+ fApi.value.validate();
90731
+ });
90732
+ break;
90733
+ }
90734
+ }
90735
+ return pass;
90736
+ }
90737
+ function flowConditionEffect(activeProps2, flowCondition) {
90738
+ const requiredRule = activeProps2?.find((rule) => rule.field === "effect.required");
90739
+ if (requiredRule) {
90740
+ if (!requiredRule.props) {
90741
+ requiredRule.props = {};
90742
+ }
90743
+ requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
90744
+ }
90745
+ }
90648
90746
  require$$1$2.watch(() => props.presetRules, (presetRules) => {
90649
90747
  widgetFormRules.push(...presetRules);
90650
- }, {
90651
- immediate: true
90652
90748
  });
90653
90749
  require$$1$2.watch(() => props.formRules, (formRules) => {
90654
90750
  edit(formRules);
90751
+ });
90752
+ require$$1$2.watch(activeProps, (activeProps2) => {
90753
+ flowConditionEffect(activeProps2, props.flowCondition);
90754
+ });
90755
+ require$$1$2.watch(() => props.flowCondition, (flowCondition) => {
90756
+ flowConditionEffect(activeProps.value, flowCondition);
90655
90757
  }, {
90656
- immediate: true
90758
+ deep: true
90657
90759
  });
90658
90760
  require$$1$2.onBeforeUnmount(() => {
90659
90761
  resetIndex();
90660
90762
  });
90661
90763
  expose({
90662
90764
  getFormRule,
90663
- getRule
90765
+ getRule,
90766
+ validate
90664
90767
  });
90665
90768
  return (_ctx, _cache) => {
90666
90769
  const _component_ACol = require$$1$2.resolveComponent("ACol");
@@ -90703,7 +90806,6 @@ var process = {
90703
90806
  move: moveMenuItem,
90704
90807
  "force-fallback": true,
90705
90808
  "scroll-sensitivity": 100,
90706
- delay: 50,
90707
90809
  onStart: handleMenuItemDragStart,
90708
90810
  onEnd: handleMenuItemDragEnd
90709
90811
  }, {
@@ -90794,8 +90896,8 @@ var process = {
90794
90896
  _: 1
90795
90897
  })) : require$$1$2.createCommentVNode("v-if", true)
90796
90898
  ])) : require$$1$2.createCommentVNode("v-if", true),
90797
- require$$1$2.createElementVNode("div", _hoisted_6$2, [
90798
- _ctx.flowCondition[activeRule.value.field] ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_7$2, [
90899
+ require$$1$2.createElementVNode("div", _hoisted_6$3, [
90900
+ _ctx.flowCondition[activeRule.value.field] ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_7$3, [
90799
90901
  require$$1$2.createVNode(require$$1$2.unref(ExclamationCircleFilled$1), { style: { "color": "#2f4eed" } }),
90800
90902
  require$$1$2.createTextVNode(" \u8BE5\u7EC4\u4EF6\u5728\u201C" + require$$1$2.toDisplayString(_ctx.flowCondition[activeRule.value.field]) + "\u201D\u5DF2\u88AB\u8BBE\u4E3A\u5BA1\u6279\u6761\u4EF6\uFF0C\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539 ", 1)
90801
90903
  ])) : require$$1$2.createCommentVNode("v-if", true),
@@ -97182,8 +97284,8 @@ var process = {
97182
97284
  key: 0,
97183
97285
  class: "__shops-filter-tabs"
97184
97286
  };
97185
- const _hoisted_6$1 = { class: "label" };
97186
- const _hoisted_7$1 = { class: "__shops-filter-areas" };
97287
+ const _hoisted_6$2 = { class: "label" };
97288
+ const _hoisted_7$2 = { class: "__shops-filter-areas" };
97187
97289
  const _hoisted_8$1 = ["onClick"];
97188
97290
  const _hoisted_9 = ["onClick"];
97189
97291
  const _hoisted_10 = { class: "__shops-filter-selecting" };
@@ -97303,8 +97405,8 @@ var process = {
97303
97405
  key: item.paramsStr,
97304
97406
  class: "__shops-filter-area-tabs"
97305
97407
  }, [
97306
- require$$1$2.createElementVNode("div", _hoisted_6$1, require$$1$2.toDisplayString(item.label) + ":", 1),
97307
- require$$1$2.createElementVNode("div", _hoisted_7$1, [
97408
+ require$$1$2.createElementVNode("div", _hoisted_6$2, require$$1$2.toDisplayString(item.label) + ":", 1),
97409
+ require$$1$2.createElementVNode("div", _hoisted_7$2, [
97308
97410
  require$$1$2.createElementVNode("span", {
97309
97411
  class: require$$1$2.normalizeClass({
97310
97412
  active: !(item.multiple ? _ctx.filterSelects[index].length : !!_ctx.filterSelects[index])
@@ -98312,8 +98414,8 @@ var process = {
98312
98414
  const _hoisted_3$1 = { class: "pop-seleted" };
98313
98415
  const _hoisted_4$1 = { class: "pop-seleted-title" };
98314
98416
  const _hoisted_5$1 = { class: "select-input-wrapper" };
98315
- const _hoisted_6 = { key: 1 };
98316
- const _hoisted_7 = { key: 2 };
98417
+ const _hoisted_6$1 = { key: 1 };
98418
+ const _hoisted_7$1 = { key: 2 };
98317
98419
  const _hoisted_8 = /* @__PURE__ */ require$$1$2.createElementVNode("div", null, null, -1);
98318
98420
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98319
98421
  const _component_Tag = require$$1$2.resolveComponent("Tag");
@@ -98380,7 +98482,7 @@ var process = {
98380
98482
  _: 1
98381
98483
  }, 16)
98382
98484
  ], 8, _hoisted_2$1)) : require$$1$2.createCommentVNode("v-if", true),
98383
- _ctx.showEmptyBtn && !_ctx.list.length ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_6, [
98485
+ _ctx.showEmptyBtn && !_ctx.list.length ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_6$1, [
98384
98486
  require$$1$2.createVNode(_component_Button, {
98385
98487
  onClick: require$$1$2.withModifiers(_ctx.toAddTags, ["stop"])
98386
98488
  }, {
@@ -98390,7 +98492,7 @@ var process = {
98390
98492
  _: 1
98391
98493
  }, 8, ["onClick"])
98392
98494
  ])) : require$$1$2.createCommentVNode("v-if", true),
98393
- _ctx.showEmpty && !_ctx.list.length ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_7, [
98495
+ _ctx.showEmpty && !_ctx.list.length ? (require$$1$2.openBlock(), require$$1$2.createElementBlock("div", _hoisted_7$1, [
98394
98496
  require$$1$2.createElementVNode("div", {
98395
98497
  class: "selector-empty-input",
98396
98498
  onClick: _cache[4] || (_cache[4] = require$$1$2.withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
@@ -103778,9 +103880,11 @@ var process = {
103778
103880
 
103779
103881
  const _hoisted_1 = { class: "bm-select-header" };
103780
103882
  const _hoisted_2 = { class: "bm-select-header-btn" };
103781
- const _hoisted_3 = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
103782
- const _hoisted_4 = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
103783
- const _hoisted_5 = { class: "blue" };
103883
+ const _hoisted_3 = ["onClick"];
103884
+ const _hoisted_4 = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
103885
+ const _hoisted_5 = ["onClick"];
103886
+ const _hoisted_6 = /* @__PURE__ */ require$$1$2.createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
103887
+ const _hoisted_7 = { class: "blue" };
103784
103888
  const _sfc_main = /* @__PURE__ */ require$$1$2.defineComponent({
103785
103889
  __name: "selectAll",
103786
103890
  props: {
@@ -103811,7 +103915,6 @@ var process = {
103811
103915
  immediate: true
103812
103916
  });
103813
103917
  const selectAll = (e) => {
103814
- e.preventDefault();
103815
103918
  let key = "value";
103816
103919
  if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
103817
103920
  key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
@@ -103832,15 +103935,19 @@ var process = {
103832
103935
  });
103833
103936
  };
103834
103937
  const reverseAll = (e) => {
103835
- e.preventDefault();
103836
103938
  let key = "value";
103837
103939
  if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
103838
103940
  key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
103839
- state.search.checkedReverse = !state.search.checkedReverse;
103840
- state.search.indeterminate = false;
103841
- state.search.checkedAll = false;
103842
103941
  if (selectValue.value.length <= 0)
103843
- return false;
103942
+ return state.search.checkedReverse = false;
103943
+ state.search.checkedReverse = !state.search.checkedReverse;
103944
+ if (state.search.checkedReverse) {
103945
+ state.search.indeterminate = false;
103946
+ state.search.checkedAll = false;
103947
+ } else {
103948
+ state.search.indeterminate = !!selectValue.value.length && selectValue.value.length < (instance?.attrs.options).length;
103949
+ state.search.checkedAll = selectValue.value.length === (instance?.attrs.options).length;
103950
+ }
103844
103951
  selectValue.value = (instance?.attrs.options).filter((v) => !selectValue.value.some((ele) => ele === v[key])).map((x) => x[key]);
103845
103952
  emit("update:value", selectValue.value);
103846
103953
  emit("onSelectAll", {
@@ -103865,41 +103972,49 @@ var process = {
103865
103972
  const _component_a_checkbox = require$$1$2.resolveComponent("a-checkbox");
103866
103973
  return require$$1$2.openBlock(), require$$1$2.createBlock(require$$1$2.unref(default_1), require$$1$2.mergeProps({
103867
103974
  value: require$$1$2.unref(selectValue),
103868
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => require$$1$2.isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
103869
- class: "follow"
103975
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => require$$1$2.isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
103976
+ class: "bm-select"
103870
103977
  }, _ctx.$attrs, {
103871
- onChange,
103872
- mode: "multiple"
103978
+ mode: "multiple",
103979
+ placeholder: require$$1$2.unref(instance)?.attrs.placeholder ? require$$1$2.unref(instance)?.attrs.placeholder : "\u8BF7\u9009\u62E9",
103980
+ "get-popup-container": (nodes) => nodes.parentNode,
103981
+ onChange
103873
103982
  }), {
103874
103983
  dropdownRender: require$$1$2.withCtx(({ menuNode: menu }) => [
103875
103984
  require$$1$2.createElementVNode("div", _hoisted_1, [
103876
103985
  require$$1$2.createElementVNode("div", _hoisted_2, [
103877
- require$$1$2.createElementVNode("div", { onClick: selectAll }, [
103986
+ require$$1$2.createElementVNode("div", {
103987
+ onClick: require$$1$2.withModifiers(selectAll, ["prevent"]),
103988
+ onMousedown: _cache[1] || (_cache[1] = (e) => e.preventDefault())
103989
+ }, [
103878
103990
  require$$1$2.createVNode(_component_a_checkbox, {
103879
103991
  checked: state.search.checkedAll,
103880
103992
  "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => state.search.checkedAll = $event),
103881
103993
  indeterminate: state.search.indeterminate
103882
103994
  }, null, 8, ["checked", "indeterminate"]),
103883
- _hoisted_3
103884
- ]),
103885
- require$$1$2.createElementVNode("div", { onClick: reverseAll }, [
103995
+ _hoisted_4
103996
+ ], 40, _hoisted_3),
103997
+ require$$1$2.createElementVNode("div", {
103998
+ onClick: require$$1$2.withModifiers(reverseAll, ["prevent"]),
103999
+ onMousedown: _cache[3] || (_cache[3] = (e) => e.preventDefault())
104000
+ }, [
103886
104001
  require$$1$2.createVNode(_component_a_checkbox, {
103887
104002
  checked: state.search.checkedReverse,
103888
- "onUpdate:checked": _cache[1] || (_cache[1] = ($event) => state.search.checkedReverse = $event)
104003
+ "onUpdate:checked": _cache[2] || (_cache[2] = ($event) => state.search.checkedReverse = $event)
103889
104004
  }, null, 8, ["checked"]),
103890
- _hoisted_4
103891
- ])
104005
+ _hoisted_6
104006
+ ], 40, _hoisted_5)
103892
104007
  ]),
103893
104008
  require$$1$2.createElementVNode("div", null, [
103894
- require$$1$2.createTextVNode("\u5DF2\u9009\u62E9 "),
103895
- require$$1$2.createElementVNode("span", _hoisted_5, require$$1$2.toDisplayString(require$$1$2.unref(selectValue).length), 1),
103896
- require$$1$2.createTextVNode(" \u9879")
104009
+ require$$1$2.createTextVNode(" \u5DF2\u9009\u62E9 "),
104010
+ require$$1$2.createElementVNode("span", _hoisted_7, require$$1$2.toDisplayString(require$$1$2.unref(selectValue).length), 1),
104011
+ require$$1$2.createTextVNode(" \u9879 ")
103897
104012
  ])
103898
104013
  ]),
103899
104014
  require$$1$2.createVNode(VNodes, { vnodes: menu }, null, 8, ["vnodes"])
103900
104015
  ]),
103901
104016
  _: 1
103902
- }, 16, ["value"]);
104017
+ }, 16, ["value", "placeholder", "get-popup-container"]);
103903
104018
  };
103904
104019
  }
103905
104020
  });