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.esm.js CHANGED
@@ -5593,7 +5593,7 @@ var localPrefixCls$1 = '';
5593
5593
  var transitionName$1 = 'move-up';
5594
5594
  var hasTransitionName$1 = false;
5595
5595
 
5596
- var getContainer$3 = function getContainer() {
5596
+ var getContainer$4 = function getContainer() {
5597
5597
  return document.body;
5598
5598
  };
5599
5599
 
@@ -5619,7 +5619,7 @@ function setMessageConfig$1(options) {
5619
5619
  }
5620
5620
 
5621
5621
  if (options.getContainer !== undefined) {
5622
- getContainer$3 = options.getContainer;
5622
+ getContainer$4 = options.getContainer;
5623
5623
  messageInstance$1 = null; // delete messageInstance for new getContainer
5624
5624
  }
5625
5625
 
@@ -5655,7 +5655,7 @@ function getMessageInstance$1(args, callback) {
5655
5655
  style: {
5656
5656
  top: defaultTop$3
5657
5657
  },
5658
- getContainer: getContainer$3 || args.getPopupContainer,
5658
+ getContainer: getContainer$4 || args.getPopupContainer,
5659
5659
  maxCount: maxCount$3,
5660
5660
  name: 'message'
5661
5661
  }, function (instance) {
@@ -7132,7 +7132,7 @@ function getMark$1() {
7132
7132
  return MARK_KEY$1;
7133
7133
  }
7134
7134
 
7135
- function getContainer$2(option) {
7135
+ function getContainer$3(option) {
7136
7136
  if (option.attachTo) {
7137
7137
  return option.attachTo;
7138
7138
  }
@@ -7157,7 +7157,7 @@ function injectCSS$1(css) {
7157
7157
  }
7158
7158
 
7159
7159
  styleNode.innerHTML = css;
7160
- var container = getContainer$2(option);
7160
+ var container = getContainer$3(option);
7161
7161
  var firstChild = container.firstChild;
7162
7162
 
7163
7163
  if (option.prepend && container.prepend) {
@@ -7177,7 +7177,7 @@ var containerCache$1 = new Map();
7177
7177
 
7178
7178
  function findExistNode$1(key) {
7179
7179
  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
7180
- var container = getContainer$2(option);
7180
+ var container = getContainer$3(option);
7181
7181
  return Array.from(containerCache$1.get(container).children).find(function (node) {
7182
7182
  return node.tagName === 'STYLE' && node.getAttribute(getMark$1(option)) === key;
7183
7183
  });
@@ -7197,7 +7197,7 @@ function updateCSS$1(css, key) {
7197
7197
 
7198
7198
  var _a, _b, _c;
7199
7199
 
7200
- var container = getContainer$2(option); // Get real parent
7200
+ var container = getContainer$3(option); // Get real parent
7201
7201
 
7202
7202
  if (!containerCache$1.has(container)) {
7203
7203
  var placeholderStyle = injectCSS$1('', option);
@@ -8601,7 +8601,10 @@ const fieldRatioMap = {
8601
8601
  12: 12,
8602
8602
  18: 18,
8603
8603
  24: 24,
8604
- };
8604
+ };
8605
+ function getContainer$2() {
8606
+ return document.body;
8607
+ }
8605
8608
 
8606
8609
  function _defineProperty$H(obj, key, value) {
8607
8610
  if (key in obj) {
@@ -52643,7 +52646,7 @@ var input$3 = {
52643
52646
  field,
52644
52647
  title: data.title.title,
52645
52648
  headerClassName: data.effect.required ? 'is-required' : '',
52646
- width: data.config.fieldRatio,
52649
+ minWidth: data.config.fieldRatio,
52647
52650
  slots: {
52648
52651
  default({ row }) {
52649
52652
  return h$2(Input$3, {
@@ -52708,7 +52711,7 @@ var textarea$1 = {
52708
52711
  field,
52709
52712
  title: data.title.title,
52710
52713
  headerClassName: data.effect.required ? 'is-required' : '',
52711
- width: data.config.fieldRatio,
52714
+ minWidth: data.config.fieldRatio,
52712
52715
  slots: {
52713
52716
  default({ row }) {
52714
52717
  return h$2(Input$3, {
@@ -52777,7 +52780,7 @@ var numInput$1 = {
52777
52780
  field,
52778
52781
  title: data.title.title,
52779
52782
  headerClassName: data.effect.required ? 'is-required' : '',
52780
- width: data.config.fieldRatio,
52783
+ minWidth: data.config.fieldRatio,
52781
52784
  slots: {
52782
52785
  default({ row }) {
52783
52786
  return h$2(InputNumber$1, {
@@ -52842,13 +52845,14 @@ var radio$3 = {
52842
52845
  field,
52843
52846
  title: data.title.title,
52844
52847
  headerClassName: data.effect.required ? 'is-required' : '',
52845
- width: data.config.fieldRatio,
52848
+ minWidth: data.config.fieldRatio,
52846
52849
  slots: {
52847
52850
  default({ row }) {
52848
52851
  return h$2(ASelect, {
52849
52852
  value: row[field],
52850
52853
  placeholder: data.props.placeholder,
52851
52854
  options: data.options,
52855
+ getPopupContainer: getContainer$2,
52852
52856
  'onUpdate:value': (value) => {
52853
52857
  row[field] = value;
52854
52858
  },
@@ -52903,7 +52907,7 @@ var checkbox$3 = {
52903
52907
  field,
52904
52908
  title: data.title.title,
52905
52909
  headerClassName: data.effect.required ? 'is-required' : '',
52906
- width: data.config.fieldRatio,
52910
+ minWidth: data.config.fieldRatio,
52907
52911
  slots: {
52908
52912
  default({ row }) {
52909
52913
  return h$2(ASelect, {
@@ -52911,6 +52915,7 @@ var checkbox$3 = {
52911
52915
  placeholder: data.props.placeholder,
52912
52916
  options: data.options,
52913
52917
  mode: 'multiple',
52918
+ getPopupContainer: getContainer$2,
52914
52919
  'onUpdate:value': (value) => {
52915
52920
  row[field] = value;
52916
52921
  },
@@ -52984,7 +52989,7 @@ var date$1 = {
52984
52989
  field,
52985
52990
  title: data.title.title,
52986
52991
  headerClassName: data.effect.required ? 'is-required' : '',
52987
- width: data.config.fieldRatio,
52992
+ minWidth: data.config.fieldRatio,
52988
52993
  slots: {
52989
52994
  default({ row }) {
52990
52995
  return h$2(DatePicker$1, {
@@ -53000,6 +53005,7 @@ var date$1 = {
53000
53005
  style: {
53001
53006
  width: '100%',
53002
53007
  },
53008
+ getCalendarContainer: getContainer$2,
53003
53009
  });
53004
53010
  },
53005
53011
  },
@@ -53019,7 +53025,7 @@ var dateRange$1 = {
53019
53025
  type: 'datePicker',
53020
53026
  field: data.field,
53021
53027
  title: data.title.title,
53022
- props: Object.assign({ range: true, separator: '~', format, valueFormat: format, placeholder: data.props.placeholder }, extraProps),
53028
+ props: Object.assign({ range: true, separator: '~', format, valueFormat: format, placeholder: data.props.placeholder, getCalendarContainer: getContainer$2 }, extraProps),
53023
53029
  effect: {
53024
53030
  required: data.effect.required && '请选择',
53025
53031
  },
@@ -53064,7 +53070,7 @@ var dateRange$1 = {
53064
53070
  field,
53065
53071
  title: data.title.title,
53066
53072
  headerClassName: data.effect.required ? 'is-required' : '',
53067
- width: data.config.fieldRatio,
53073
+ minWidth: data.config.fieldRatio,
53068
53074
  slots: {
53069
53075
  default({ row }) {
53070
53076
  return h$2(RangePicker, {
@@ -53080,6 +53086,7 @@ var dateRange$1 = {
53080
53086
  style: {
53081
53087
  width: '100%',
53082
53088
  },
53089
+ getCalendarContainer: getContainer$2,
53083
53090
  });
53084
53091
  },
53085
53092
  },
@@ -53713,8 +53720,8 @@ const _hoisted_2$p = /* @__PURE__ */ createElementVNode("div", { class: "bm-uplo
53713
53720
  const _hoisted_3$i = ["onMouseenter", "onMouseleave"];
53714
53721
  const _hoisted_4$g = ["src"];
53715
53722
  const _hoisted_5$c = ["src"];
53716
- const _hoisted_6$a = ["src"];
53717
- const _hoisted_7$a = ["src"];
53723
+ const _hoisted_6$b = ["src"];
53724
+ const _hoisted_7$b = ["src"];
53718
53725
  const _hoisted_8$7 = ["src"];
53719
53726
  const _hoisted_9$6 = ["onClick"];
53720
53727
  const _hoisted_10$5 = ["onClick"];
@@ -53830,7 +53837,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
53830
53837
  class: "bm-upload__picture-result__image",
53831
53838
  src: $setup.icons.ppt,
53832
53839
  alt: "\u56FE\u7247"
53833
- }, null, 8, _hoisted_6$a)) : [
53840
+ }, null, 8, _hoisted_6$b)) : [
53834
53841
  "doc",
53835
53842
  "DOC",
53836
53843
  "application/msword",
@@ -53842,7 +53849,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
53842
53849
  class: "bm-upload__picture-result__image",
53843
53850
  src: $setup.icons.doc,
53844
53851
  alt: "\u56FE\u7247"
53845
- }, null, 8, _hoisted_7$a)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
53852
+ }, null, 8, _hoisted_7$b)) : _ctx.pictureFileTypes.includes(item.type) ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
53846
53853
  item.url ? (openBlock(), createBlock(_component_a_image, {
53847
53854
  key: 0,
53848
53855
  class: "bm-upload__picture-result__image",
@@ -67806,8 +67813,8 @@ const _hoisted_2$o = { class: "__selector-modal-panel" };
67806
67813
  const _hoisted_3$h = { class: "__search-panel" };
67807
67814
  const _hoisted_4$f = { class: "__selector-modal-options" };
67808
67815
  const _hoisted_5$b = { class: "__selector-modal-options-item fixed-option" };
67809
- const _hoisted_6$9 = { class: "department-option-item" };
67810
- const _hoisted_7$9 = {
67816
+ const _hoisted_6$a = { class: "department-option-item" };
67817
+ const _hoisted_7$a = {
67811
67818
  key: 0,
67812
67819
  class: "department-desc"
67813
67820
  };
@@ -67892,9 +67899,9 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
67892
67899
  "tree-data": _ctx.list
67893
67900
  }, {
67894
67901
  title: withCtx(({ title, description }) => [
67895
- createElementVNode("div", _hoisted_6$9, [
67902
+ createElementVNode("div", _hoisted_6$a, [
67896
67903
  createElementVNode("span", null, toDisplayString(title), 1),
67897
- description ? (openBlock(), createElementBlock("p", _hoisted_7$9, toDisplayString(description), 1)) : createCommentVNode("v-if", true)
67904
+ description ? (openBlock(), createElementBlock("p", _hoisted_7$a, toDisplayString(description), 1)) : createCommentVNode("v-if", true)
67898
67905
  ])
67899
67906
  ]),
67900
67907
  _: 1
@@ -68640,11 +68647,11 @@ const _hoisted_2$m = { class: "__selector-modal-panel-withGroup" };
68640
68647
  const _hoisted_3$f = { class: "varied-area-tabs" };
68641
68648
  const _hoisted_4$d = ["onClick"];
68642
68649
  const _hoisted_5$9 = { class: "area-panel" };
68643
- const _hoisted_6$8 = {
68650
+ const _hoisted_6$9 = {
68644
68651
  key: 0,
68645
68652
  class: "noData"
68646
68653
  };
68647
- const _hoisted_7$8 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
68654
+ const _hoisted_7$9 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
68648
68655
  const _hoisted_8$5 = {
68649
68656
  key: 0,
68650
68657
  class: "__selector-modal-options"
@@ -68699,10 +68706,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
68699
68706
  _: 1
68700
68707
  }, 8, ["value", "placeholder", "onChange"]),
68701
68708
  createElementVNode("div", _hoisted_5$9, [
68702
- _ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
68709
+ _ctx.list && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
68703
68710
  createVNode(_component_Empty, { image: _ctx.emptyPic }, {
68704
68711
  description: withCtx(() => [
68705
- createElementVNode("span", _hoisted_7$8, toDisplayString(!!_ctx.searchVal ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
68712
+ createElementVNode("span", _hoisted_7$9, toDisplayString(!!_ctx.searchVal ? "\u6682\u65E0\u6570\u636E" : "\u8BF7\u5148\u641C\u7D22\u4EBA\u5458\u5173\u952E\u5B57"), 1)
68706
68713
  ]),
68707
68714
  _: 1
68708
68715
  }, 8, ["image"])
@@ -69111,7 +69118,7 @@ var people$1 = {
69111
69118
  field,
69112
69119
  title: data.title.title,
69113
69120
  headerClassName: data.effect.required ? 'is-required' : '',
69114
- width: data.config.fieldRatio,
69121
+ minWidth: data.config.fieldRatio,
69115
69122
  slots: {
69116
69123
  default({ row }) {
69117
69124
  return h$2(StaffSelector, Object.assign({ title: '添加员工', mode: data.props.limit ? 'radio' : 'multiple', placeholder: data.props.placeholder, onChange: (value) => {
@@ -69174,8 +69181,8 @@ const _hoisted_5$8 = {
69174
69181
  key: 1,
69175
69182
  class: "bm-fc-select-material-temp__content__circle"
69176
69183
  };
69177
- const _hoisted_6$7 = ["title"];
69178
- const _hoisted_7$7 = { class: "bm-fc-select-material-temp__content__item-time" };
69184
+ const _hoisted_6$8 = ["title"];
69185
+ const _hoisted_7$8 = { class: "bm-fc-select-material-temp__content__item-time" };
69179
69186
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
69180
69187
  __name: "select-material-temp",
69181
69188
  props: ["visible", "fetchMaterialType", "fetchMaterialTemp"],
@@ -69364,9 +69371,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
69364
69371
  createElementVNode("span", {
69365
69372
  class: "bm-fc-select-material-temp__content__name",
69366
69373
  title: item.templateName
69367
- }, toDisplayString(item.templateName), 9, _hoisted_6$7)
69374
+ }, toDisplayString(item.templateName), 9, _hoisted_6$8)
69368
69375
  ], 8, _hoisted_4$c),
69369
- createElementVNode("div", _hoisted_7$7, toDisplayString(unref(dayjs)(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
69376
+ createElementVNode("div", _hoisted_7$8, toDisplayString(unref(dayjs)(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
69370
69377
  ])
69371
69378
  ]),
69372
69379
  _: 2
@@ -69671,8 +69678,8 @@ const _hoisted_2$k = { class: "bm-dc-table-widget__title" };
69671
69678
  const _hoisted_3$d = { class: "bm-dc-table-widget__title-samll" };
69672
69679
  const _hoisted_4$b = { class: "bm-dc-table-widget__top-bar" };
69673
69680
  const _hoisted_5$7 = { class: "bm-dc-table-widget__table" };
69674
- const _hoisted_6$6 = ["onClick"];
69675
- const _hoisted_7$6 = ["onClick"];
69681
+ const _hoisted_6$7 = ["onClick"];
69682
+ const _hoisted_7$7 = ["onClick"];
69676
69683
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
69677
69684
  __name: "table-widget",
69678
69685
  props: ["rule", "extraConfig"],
@@ -69778,7 +69785,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
69778
69785
  field,
69779
69786
  title: "\u5546\u54C1\u7F16\u7801",
69780
69787
  headerClassName: rule.effect.required ? "is-required" : "",
69781
- width: "138px",
69788
+ minWidth: "138px",
69782
69789
  slots: {
69783
69790
  default({ row }) {
69784
69791
  return h$2(Input$3, {
@@ -69801,7 +69808,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
69801
69808
  columns2.push({
69802
69809
  field: childField,
69803
69810
  title: item.label,
69804
- width: "138px",
69811
+ minWidth: "138px",
69805
69812
  slots: {
69806
69813
  default({ row }) {
69807
69814
  if (item.value === "\u5546\u54C1\u56FE\u7247" && row[childField]) {
@@ -69965,12 +69972,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
69965
69972
  unref(copyFeature) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
69966
69973
  createElementVNode("a", {
69967
69974
  onClick: ($event) => handleCopy(row)
69968
- }, "\u590D\u5236", 8, _hoisted_6$6),
69975
+ }, "\u590D\u5236", 8, _hoisted_6$7),
69969
69976
  createVNode(unref(Divider$1), { type: "vertical" })
69970
69977
  ], 64)) : createCommentVNode("v-if", true),
69971
69978
  createElementVNode("a", {
69972
69979
  onClick: ($event) => handleDelete(rowIndex)
69973
- }, "\u5220\u9664", 8, _hoisted_7$6)
69980
+ }, "\u5220\u9664", 8, _hoisted_7$7)
69974
69981
  ]),
69975
69982
  _: 1
69976
69983
  }, 8, ["config"])
@@ -69989,8 +69996,8 @@ const _hoisted_2$j = { key: 0 };
69989
69996
  const _hoisted_3$c = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u7D20\u6750\u7C7B\u578B\uFF1A", -1);
69990
69997
  const _hoisted_4$a = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u5C3A\u5BF8\uFF1A", -1);
69991
69998
  const _hoisted_5$6 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u5C01\u9762\u56FE\uFF1A", -1);
69992
- const _hoisted_6$5 = ["src"];
69993
- const _hoisted_7$5 = { key: 1 };
69999
+ const _hoisted_6$6 = ["src"];
70000
+ const _hoisted_7$6 = { key: 1 };
69994
70001
  const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u6A21\u677F\u7ED3\u6784\u56FE\uFF1A", -1);
69995
70002
  const _hoisted_9$3 = { key: 1 };
69996
70003
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
@@ -70288,7 +70295,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
70288
70295
  key: 0,
70289
70296
  class: "bm-fc-form-item__cover",
70290
70297
  src: pane.tempSelected.coverPlanPath
70291
- }, null, 8, _hoisted_6$5)) : (openBlock(), createElementBlock("span", _hoisted_7$5, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
70298
+ }, null, 8, _hoisted_6$6)) : (openBlock(), createElementBlock("span", _hoisted_7$6, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
70292
70299
  ]),
70293
70300
  _: 2
70294
70301
  }, 1024)
@@ -70657,9 +70664,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
70657
70664
  "filter-option": false,
70658
70665
  "not-found-content": null,
70659
70666
  options: options.value,
70667
+ "get-popup-container": unref(getContainer$2),
70660
70668
  onChange: handleChange,
70661
70669
  onSearch: handleSearch
70662
- }, null, 8, ["value", "options"]);
70670
+ }, null, 8, ["value", "options", "get-popup-container"]);
70663
70671
  };
70664
70672
  }
70665
70673
  });
@@ -70736,7 +70744,7 @@ var shop$1 = {
70736
70744
  field,
70737
70745
  title: data.title.title,
70738
70746
  headerClassName: data.effect.required ? 'is-required' : '',
70739
- width: '138px',
70747
+ minWidth: '138px',
70740
70748
  slots: {
70741
70749
  default({ row }) {
70742
70750
  return h$2(ShopWidget, {
@@ -77238,8 +77246,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
77238
77246
  multiple: __props.multiple,
77239
77247
  options: options.value,
77240
77248
  "load-data": loadData,
77249
+ "get-popup-container": unref(getContainer$2),
77241
77250
  "onUpdate:value": handleChange
77242
- }, null, 8, ["value", "multiple", "options"]);
77251
+ }, null, 8, ["value", "multiple", "options", "get-popup-container"]);
77243
77252
  };
77244
77253
  }
77245
77254
  });
@@ -77380,7 +77389,7 @@ var materialType$1 = {
77380
77389
  field,
77381
77390
  title: '素材类型',
77382
77391
  headerClassName: data.effect.required ? 'is-required' : '',
77383
- width: '138px',
77392
+ minWidth: '138px',
77384
77393
  slots: {
77385
77394
  default({ row }) {
77386
77395
  return h$2(materialTypeInTable, {
@@ -77517,7 +77526,7 @@ var department$1 = {
77517
77526
  field,
77518
77527
  title: data.title.title,
77519
77528
  headerClassName: data.effect.required ? 'is-required' : '',
77520
- width: data.config.fieldRatio,
77529
+ minWidth: data.config.fieldRatio,
77521
77530
  slots: {
77522
77531
  default({ row }) {
77523
77532
  return h$2(StaffSelector, Object.assign({ title: '添加部门', mode: data.props.limit ? 'radio' : 'multiple', placeholder: data.props.placeholder, immediateFetch: true, unitStr: '个', onChange: (value) => {
@@ -77610,10 +77619,10 @@ const _hoisted_4$9 = {
77610
77619
  xmlns: "http://www.w3.org/2000/svg"
77611
77620
  };
77612
77621
  const _hoisted_5$5 = /* @__PURE__ */ 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);
77613
- const _hoisted_6$4 = [
77622
+ const _hoisted_6$5 = [
77614
77623
  _hoisted_5$5
77615
77624
  ];
77616
- const _hoisted_7$4 = {
77625
+ const _hoisted_7$5 = {
77617
77626
  key: 2,
77618
77627
  width: "64px",
77619
77628
  height: "64px",
@@ -77684,7 +77693,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
77684
77693
  props: ["status"],
77685
77694
  setup(__props) {
77686
77695
  return (_ctx, _cache) => {
77687
- return __props.status === 1 ? (openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$a)) : __props.status === 2 ? (openBlock(), createElementBlock("svg", _hoisted_4$9, _hoisted_6$4)) : __props.status === 3 ? (openBlock(), createElementBlock("svg", _hoisted_7$4, _hoisted_9$2)) : __props.status === 4 ? (openBlock(), createElementBlock("svg", _hoisted_10$2, _hoisted_12$2)) : __props.status === 5 ? (openBlock(), createElementBlock("svg", _hoisted_13$2, _hoisted_15$1)) : __props.status === 6 ? (openBlock(), createElementBlock("svg", _hoisted_16$1, _hoisted_18$1)) : __props.status === 7 ? (openBlock(), createElementBlock("svg", _hoisted_19, _hoisted_21)) : (openBlock(), createElementBlock("svg", _hoisted_22, _hoisted_24));
77696
+ return __props.status === 1 ? (openBlock(), createElementBlock("svg", _hoisted_1$o, _hoisted_3$a)) : __props.status === 2 ? (openBlock(), createElementBlock("svg", _hoisted_4$9, _hoisted_6$5)) : __props.status === 3 ? (openBlock(), createElementBlock("svg", _hoisted_7$5, _hoisted_9$2)) : __props.status === 4 ? (openBlock(), createElementBlock("svg", _hoisted_10$2, _hoisted_12$2)) : __props.status === 5 ? (openBlock(), createElementBlock("svg", _hoisted_13$2, _hoisted_15$1)) : __props.status === 6 ? (openBlock(), createElementBlock("svg", _hoisted_16$1, _hoisted_18$1)) : __props.status === 7 ? (openBlock(), createElementBlock("svg", _hoisted_19, _hoisted_21)) : (openBlock(), createElementBlock("svg", _hoisted_22, _hoisted_24));
77688
77697
  };
77689
77698
  }
77690
77699
  });
@@ -77702,7 +77711,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
77702
77711
  props: ["info"],
77703
77712
  setup(__props) {
77704
77713
  return (_ctx, _cache) => {
77705
- return openBlock(), createElementBlock(Fragment, null, [
77714
+ return openBlock(), createElementBlock("div", null, [
77706
77715
  !__props.info?.status ? (openBlock(), createElementBlock("div", _hoisted_1$n, "\u5BA1\u6279\u72B6\u6001")) : (openBlock(), createBlock(ApprovalStatus, {
77707
77716
  key: 1,
77708
77717
  class: "bm-form-basic-info__approval-status",
@@ -77711,7 +77720,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
77711
77720
  _hoisted_2$f,
77712
77721
  _hoisted_3$9,
77713
77722
  _hoisted_4$8
77714
- ], 64);
77723
+ ]);
77715
77724
  };
77716
77725
  }
77717
77726
  });
@@ -77719,7 +77728,7 @@ var FormBasicInfo = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__file", "formBa
77719
77728
 
77720
77729
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
77721
77730
  __name: "form-create",
77722
- props: ["fdRule", "extraConfig", "value"],
77731
+ props: ["fdRule", "extraConfig", "value", "info"],
77723
77732
  emits: ["update:value"],
77724
77733
  setup(__props, { expose, emit: emits }) {
77725
77734
  const props = __props;
@@ -77761,7 +77770,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
77761
77770
  item.value = props.value[item.field];
77762
77771
  });
77763
77772
  }
77764
- rule2.value = props.value[rule2.field];
77773
+ rule2.value = props.value[rule2.field] || rule2.value;
77765
77774
  });
77766
77775
  return ruleData;
77767
77776
  }
@@ -77774,7 +77783,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
77774
77783
  return (_ctx, _cache) => {
77775
77784
  const _component_formCreate = resolveComponent("formCreate", true);
77776
77785
  return openBlock(), createElementBlock(Fragment, null, [
77777
- createVNode(FormBasicInfo),
77786
+ createVNode(FormBasicInfo, {
77787
+ class: "bm-fc-form-basic-info",
77788
+ info: __props.info
77789
+ }, null, 8, ["info"]),
77778
77790
  createVNode(_component_formCreate, {
77779
77791
  api: fApi.value,
77780
77792
  "onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
@@ -87126,7 +87138,7 @@ var input = {
87126
87138
  },
87127
87139
  },
87128
87140
  effect: {
87129
- required: true,
87141
+ required: false,
87130
87142
  formRule: 'formRule',
87131
87143
  },
87132
87144
  props: {
@@ -87159,6 +87171,7 @@ var input = {
87159
87171
  field: fieldsMap$g['props.placeholder'],
87160
87172
  props: {
87161
87173
  placeholder: '请输入',
87174
+ maxlength: 30,
87162
87175
  },
87163
87176
  value: rule.props.placeholder,
87164
87177
  },
@@ -87168,6 +87181,7 @@ var input = {
87168
87181
  field: fieldsMap$g['value'],
87169
87182
  props: {
87170
87183
  placeholder: '请输入',
87184
+ maxlength: 200,
87171
87185
  },
87172
87186
  value: rule.value,
87173
87187
  },
@@ -87227,7 +87241,7 @@ var textarea = {
87227
87241
  },
87228
87242
  },
87229
87243
  effect: {
87230
- required: true,
87244
+ required: false,
87231
87245
  formRule: 'formRule',
87232
87246
  },
87233
87247
  props: {
@@ -87261,6 +87275,7 @@ var textarea = {
87261
87275
  field: fieldsMap$f['props.placeholder'],
87262
87276
  props: {
87263
87277
  placeholder: '请输入',
87278
+ maxlength: 30,
87264
87279
  },
87265
87280
  value: rule.props.placeholder,
87266
87281
  },
@@ -87270,6 +87285,7 @@ var textarea = {
87270
87285
  field: fieldsMap$f['value'],
87271
87286
  props: {
87272
87287
  placeholder: '请输入',
87288
+ maxlength: 5000,
87273
87289
  },
87274
87290
  value: rule.value,
87275
87291
  },
@@ -87330,7 +87346,7 @@ var numInput = {
87330
87346
  },
87331
87347
  },
87332
87348
  effect: {
87333
- required: true,
87349
+ required: false,
87334
87350
  formRule: 'formRule',
87335
87351
  },
87336
87352
  props: {
@@ -87365,6 +87381,7 @@ var numInput = {
87365
87381
  field: fieldsMap$e['props.placeholder'],
87366
87382
  props: {
87367
87383
  placeholder: '请输入',
87384
+ maxlength: 30,
87368
87385
  },
87369
87386
  value: rule.props.placeholder,
87370
87387
  },
@@ -87438,6 +87455,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
87438
87455
  const visible = ref(false);
87439
87456
  const text = ref("");
87440
87457
  const repeatOption = ref([]);
87458
+ const maxlength = 500;
87441
87459
  function edit() {
87442
87460
  visible.value = true;
87443
87461
  text.value = makeText(props.options);
@@ -87459,6 +87477,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
87459
87477
  function handleOk() {
87460
87478
  const options = text.value.split("\n").reduce((pre, cur) => {
87461
87479
  if (cur) {
87480
+ cur = cur.substring(0, maxlength - 1);
87462
87481
  pre.push({ value: cur, label: cur });
87463
87482
  }
87464
87483
  return pre;
@@ -87523,6 +87542,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
87523
87542
  "bm-handle-options__input",
87524
87543
  repeatOption.value.length && repeatOption.value.includes(element.value) ? "is-error" : ""
87525
87544
  ]),
87545
+ maxlength,
87526
87546
  onBlur: ($event) => handleBlur(element)
87527
87547
  }, null, 8, ["value", "onUpdate:value", "class", "onBlur"])
87528
87548
  ]),
@@ -87619,7 +87639,7 @@ var radio = {
87619
87639
  },
87620
87640
  },
87621
87641
  effect: {
87622
- required: true,
87642
+ required: false,
87623
87643
  formRule: 'formRule',
87624
87644
  },
87625
87645
  options: [
@@ -87665,6 +87685,7 @@ var radio = {
87665
87685
  field: fieldsMap$d['props.placeholder'],
87666
87686
  props: {
87667
87687
  placeholder: '请输入',
87688
+ maxlength: 30,
87668
87689
  },
87669
87690
  value: rule.props.placeholder,
87670
87691
  },
@@ -87757,7 +87778,7 @@ var checkbox = {
87757
87778
  },
87758
87779
  },
87759
87780
  effect: {
87760
- required: true,
87781
+ required: false,
87761
87782
  formRule: 'formRule',
87762
87783
  },
87763
87784
  options: [
@@ -87803,6 +87824,7 @@ var checkbox = {
87803
87824
  field: fieldsMap$c['props.placeholder'],
87804
87825
  props: {
87805
87826
  placeholder: '请输入',
87827
+ maxlength: 30,
87806
87828
  },
87807
87829
  value: rule.props.placeholder,
87808
87830
  },
@@ -87964,7 +87986,7 @@ var date = {
87964
87986
  },
87965
87987
  },
87966
87988
  effect: {
87967
- required: true,
87989
+ required: false,
87968
87990
  formRule: 'formRule',
87969
87991
  },
87970
87992
  props: {
@@ -88027,6 +88049,7 @@ var date = {
88027
88049
  field: fieldsMap$b['props.placeholder'],
88028
88050
  props: {
88029
88051
  placeholder: '请输入',
88052
+ maxlength: 30,
88030
88053
  },
88031
88054
  value: rule.props.placeholder,
88032
88055
  },
@@ -88108,7 +88131,7 @@ var dateRange = {
88108
88131
  },
88109
88132
  },
88110
88133
  effect: {
88111
- required: true,
88134
+ required: false,
88112
88135
  formRule: 'formRule',
88113
88136
  },
88114
88137
  props: {
@@ -88173,6 +88196,7 @@ var dateRange = {
88173
88196
  field: fieldsMap$a['props.placeholder.0'],
88174
88197
  props: {
88175
88198
  placeholder: '请输入',
88199
+ maxlength: 30,
88176
88200
  },
88177
88201
  value: rule.props.placeholder[0],
88178
88202
  },
@@ -88182,6 +88206,7 @@ var dateRange = {
88182
88206
  field: fieldsMap$a['props.placeholder.1'],
88183
88207
  props: {
88184
88208
  placeholder: '请输入',
88209
+ maxlength: 30,
88185
88210
  },
88186
88211
  value: rule.props.placeholder[1],
88187
88212
  },
@@ -88255,10 +88280,23 @@ var instruction = {
88255
88280
  title: label$9,
88256
88281
  field: fieldsMap$9.value,
88257
88282
  value: rule.value,
88283
+ inject: true,
88258
88284
  prefix: {
88259
88285
  type: 'TextColor',
88286
+ on: {
88287
+ change({ api, self }, color) {
88288
+ api.emit('change', 'style.color', color, self, api, true);
88289
+ },
88290
+ },
88260
88291
  props: {
88261
- rule,
88292
+ color: rule.style.color,
88293
+ },
88294
+ },
88295
+ on: {
88296
+ change({ api, self }, list) {
88297
+ nextTick(() => {
88298
+ api.refresh();
88299
+ });
88262
88300
  },
88263
88301
  },
88264
88302
  },
@@ -88301,7 +88339,7 @@ var picture = {
88301
88339
  },
88302
88340
  },
88303
88341
  effect: {
88304
- required: true,
88342
+ required: false,
88305
88343
  formRule: 'formRule',
88306
88344
  },
88307
88345
  props: {
@@ -88394,11 +88432,11 @@ const _hoisted_5$4 = {
88394
88432
  key: 0,
88395
88433
  class: "bm-widget-table__virtual"
88396
88434
  };
88397
- const _hoisted_6$3 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__head" }, null, -1);
88398
- const _hoisted_7$3 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__content" }, null, -1);
88435
+ const _hoisted_6$4 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__head" }, null, -1);
88436
+ const _hoisted_7$4 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__content" }, null, -1);
88399
88437
  const _hoisted_8$2 = [
88400
- _hoisted_6$3,
88401
- _hoisted_7$3
88438
+ _hoisted_6$4,
88439
+ _hoisted_7$4
88402
88440
  ];
88403
88441
  const _hoisted_9$1 = {
88404
88442
  key: 1,
@@ -88650,7 +88688,15 @@ var table = {
88650
88688
  effect: {
88651
88689
  required: true,
88652
88690
  },
88691
+ inject: true,
88653
88692
  value: rule.config.childRules,
88693
+ on: {
88694
+ change({ api, self }, list) {
88695
+ nextTick(() => {
88696
+ api.validate();
88697
+ });
88698
+ },
88699
+ },
88654
88700
  },
88655
88701
  {
88656
88702
  type: 'checkbox',
@@ -88713,7 +88759,7 @@ var file = {
88713
88759
  },
88714
88760
  },
88715
88761
  effect: {
88716
- required: true,
88762
+ required: false,
88717
88763
  formRule: 'formRule',
88718
88764
  },
88719
88765
  config: {
@@ -88784,7 +88830,7 @@ var people = {
88784
88830
  },
88785
88831
  },
88786
88832
  effect: {
88787
- required: true,
88833
+ required: false,
88788
88834
  formRule: 'formRule',
88789
88835
  },
88790
88836
  props: {
@@ -88817,6 +88863,7 @@ var people = {
88817
88863
  field: fieldsMap$5['props.placeholder'],
88818
88864
  props: {
88819
88865
  placeholder: '请输入',
88866
+ maxlength: 30,
88820
88867
  },
88821
88868
  value: rule.props.placeholder,
88822
88869
  },
@@ -88905,7 +88952,7 @@ var department = {
88905
88952
  },
88906
88953
  },
88907
88954
  effect: {
88908
- required: true,
88955
+ required: false,
88909
88956
  formRule: 'formRule',
88910
88957
  },
88911
88958
  props: {
@@ -88938,6 +88985,7 @@ var department = {
88938
88985
  field: fieldsMap$4['props.placeholder'],
88939
88986
  props: {
88940
88987
  placeholder: '请输入',
88988
+ maxlength: 30,
88941
88989
  },
88942
88990
  value: rule.props.placeholder,
88943
88991
  },
@@ -90199,7 +90247,8 @@ const _hoisted_2$5 = { class: "bm-table-column-btn-wrap" };
90199
90247
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
90200
90248
  __name: "table-column",
90201
90249
  props: ["formCreateInject"],
90202
- setup(__props) {
90250
+ emits: ["change"],
90251
+ setup(__props, { emit: emits }) {
90203
90252
  const props = __props;
90204
90253
  const handleClass = "bm-table-column__drag-icon";
90205
90254
  const btnCom = ref();
@@ -90224,6 +90273,11 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
90224
90273
  function getPopupContainer() {
90225
90274
  return document.body;
90226
90275
  }
90276
+ watch(childRules, (val) => {
90277
+ emits("change", val);
90278
+ }, {
90279
+ deep: true
90280
+ });
90227
90281
  return (_ctx, _cache) => {
90228
90282
  const _component_Delete = resolveComponent("Delete");
90229
90283
  const _component_ARow = resolveComponent("ARow");
@@ -90304,12 +90358,17 @@ var TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "table-co
90304
90358
 
90305
90359
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
90306
90360
  __name: "text-color",
90307
- props: ["rule"],
90308
- setup(__props) {
90361
+ props: ["color"],
90362
+ emits: ["change"],
90363
+ setup(__props, { emit: emits }) {
90309
90364
  const props = __props;
90365
+ const color = ref(props.color);
90366
+ function getColor(curColor) {
90367
+ return curColor === Colors.Black ? Colors.Blue : Colors.Black;
90368
+ }
90310
90369
  function handleClick() {
90311
- const rule = props.rule;
90312
- rule.style.color = rule.style.color === Colors.Black ? Colors.Blue : Colors.Black;
90370
+ color.value = getColor(color.value);
90371
+ emits("change", color.value);
90313
90372
  }
90314
90373
  return (_ctx, _cache) => {
90315
90374
  const _component_ColorPanel = resolveComponent("ColorPanel");
@@ -90321,16 +90380,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
90321
90380
  width: "1em",
90322
90381
  height: "1em",
90323
90382
  fontSize: "20px",
90324
- color: __props.rule.style.color,
90383
+ color: getColor(color.value),
90325
90384
  cursor: "pointer"
90326
90385
  }),
90327
90386
  onClick: withModifiers(handleClick, ["prevent", "stop"])
90328
- }, {
90329
- default: withCtx(() => [
90330
- createTextVNode("change")
90331
- ]),
90332
- _: 1
90333
- }, 8, ["style", "onClick"]);
90387
+ }, null, 8, ["style", "onClick"]);
90334
90388
  };
90335
90389
  }
90336
90390
  });
@@ -90344,8 +90398,8 @@ const _hoisted_5$3 = {
90344
90398
  key: 0,
90345
90399
  class: "bfd-sider-right__title"
90346
90400
  };
90347
- const _hoisted_6$2 = { class: "bfd-sider-right__form" };
90348
- const _hoisted_7$2 = {
90401
+ const _hoisted_6$3 = { class: "bfd-sider-right__form" };
90402
+ const _hoisted_7$3 = {
90349
90403
  key: 0,
90350
90404
  class: "bfd-sider-right__form__flow-releated"
90351
90405
  };
@@ -90620,6 +90674,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
90620
90674
  return rule.config.config.parse(rule);
90621
90675
  }
90622
90676
  function edit(formRules) {
90677
+ widgetFormRules.splice(0);
90623
90678
  formRules.forEach((item) => {
90624
90679
  const rule = makeRule(ruleList[item.name]);
90625
90680
  delete item.name;
@@ -90637,22 +90692,70 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
90637
90692
  function getRule(name) {
90638
90693
  return makeRule(ruleList[name]);
90639
90694
  }
90695
+ function validate() {
90696
+ let pass = true;
90697
+ for (const rule of widgetFormRules) {
90698
+ const config = rule.config.config || {};
90699
+ const childRules = rule.config.childRules || [];
90700
+ if (!rule?.title?.title && config.name !== "instruction") {
90701
+ pass = false;
90702
+ }
90703
+ if (config.name === "table" && !childRules.length) {
90704
+ pass = false;
90705
+ }
90706
+ if (!pass && rule.field !== activeRule.value.field) {
90707
+ setActiveRule(rule);
90708
+ }
90709
+ if (pass && childRules.length) {
90710
+ for (const childRule of childRules) {
90711
+ if (!childRule?.title?.title) {
90712
+ pass = false;
90713
+ if (childRule.field !== activeRule.value.field) {
90714
+ setActiveRule(childRule, rule);
90715
+ }
90716
+ break;
90717
+ }
90718
+ }
90719
+ }
90720
+ if (!pass) {
90721
+ nextTick(() => {
90722
+ fApi.value.validate();
90723
+ });
90724
+ break;
90725
+ }
90726
+ }
90727
+ return pass;
90728
+ }
90729
+ function flowConditionEffect(activeProps2, flowCondition) {
90730
+ const requiredRule = activeProps2?.find((rule) => rule.field === "effect.required");
90731
+ if (requiredRule) {
90732
+ if (!requiredRule.props) {
90733
+ requiredRule.props = {};
90734
+ }
90735
+ requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
90736
+ }
90737
+ }
90640
90738
  watch(() => props.presetRules, (presetRules) => {
90641
90739
  widgetFormRules.push(...presetRules);
90642
- }, {
90643
- immediate: true
90644
90740
  });
90645
90741
  watch(() => props.formRules, (formRules) => {
90646
90742
  edit(formRules);
90743
+ });
90744
+ watch(activeProps, (activeProps2) => {
90745
+ flowConditionEffect(activeProps2, props.flowCondition);
90746
+ });
90747
+ watch(() => props.flowCondition, (flowCondition) => {
90748
+ flowConditionEffect(activeProps.value, flowCondition);
90647
90749
  }, {
90648
- immediate: true
90750
+ deep: true
90649
90751
  });
90650
90752
  onBeforeUnmount(() => {
90651
90753
  resetIndex();
90652
90754
  });
90653
90755
  expose({
90654
90756
  getFormRule,
90655
- getRule
90757
+ getRule,
90758
+ validate
90656
90759
  });
90657
90760
  return (_ctx, _cache) => {
90658
90761
  const _component_ACol = resolveComponent("ACol");
@@ -90695,7 +90798,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
90695
90798
  move: moveMenuItem,
90696
90799
  "force-fallback": true,
90697
90800
  "scroll-sensitivity": 100,
90698
- delay: 50,
90699
90801
  onStart: handleMenuItemDragStart,
90700
90802
  onEnd: handleMenuItemDragEnd
90701
90803
  }, {
@@ -90786,8 +90888,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
90786
90888
  _: 1
90787
90889
  })) : createCommentVNode("v-if", true)
90788
90890
  ])) : createCommentVNode("v-if", true),
90789
- createElementVNode("div", _hoisted_6$2, [
90790
- _ctx.flowCondition[activeRule.value.field] ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
90891
+ createElementVNode("div", _hoisted_6$3, [
90892
+ _ctx.flowCondition[activeRule.value.field] ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
90791
90893
  createVNode(unref(ExclamationCircleFilled$1), { style: { "color": "#2f4eed" } }),
90792
90894
  createTextVNode(" \u8BE5\u7EC4\u4EF6\u5728\u201C" + 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)
90793
90895
  ])) : createCommentVNode("v-if", true),
@@ -97174,8 +97276,8 @@ const _hoisted_5$2 = {
97174
97276
  key: 0,
97175
97277
  class: "__shops-filter-tabs"
97176
97278
  };
97177
- const _hoisted_6$1 = { class: "label" };
97178
- const _hoisted_7$1 = { class: "__shops-filter-areas" };
97279
+ const _hoisted_6$2 = { class: "label" };
97280
+ const _hoisted_7$2 = { class: "__shops-filter-areas" };
97179
97281
  const _hoisted_8$1 = ["onClick"];
97180
97282
  const _hoisted_9 = ["onClick"];
97181
97283
  const _hoisted_10 = { class: "__shops-filter-selecting" };
@@ -97295,8 +97397,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
97295
97397
  key: item.paramsStr,
97296
97398
  class: "__shops-filter-area-tabs"
97297
97399
  }, [
97298
- createElementVNode("div", _hoisted_6$1, toDisplayString(item.label) + ":", 1),
97299
- createElementVNode("div", _hoisted_7$1, [
97400
+ createElementVNode("div", _hoisted_6$2, toDisplayString(item.label) + ":", 1),
97401
+ createElementVNode("div", _hoisted_7$2, [
97300
97402
  createElementVNode("span", {
97301
97403
  class: normalizeClass({
97302
97404
  active: !(item.multiple ? _ctx.filterSelects[index].length : !!_ctx.filterSelects[index])
@@ -98304,8 +98406,8 @@ const _hoisted_2$1 = ["id"];
98304
98406
  const _hoisted_3$1 = { class: "pop-seleted" };
98305
98407
  const _hoisted_4$1 = { class: "pop-seleted-title" };
98306
98408
  const _hoisted_5$1 = { class: "select-input-wrapper" };
98307
- const _hoisted_6 = { key: 1 };
98308
- const _hoisted_7 = { key: 2 };
98409
+ const _hoisted_6$1 = { key: 1 };
98410
+ const _hoisted_7$1 = { key: 2 };
98309
98411
  const _hoisted_8 = /* @__PURE__ */ createElementVNode("div", null, null, -1);
98310
98412
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98311
98413
  const _component_Tag = resolveComponent("Tag");
@@ -98372,7 +98474,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98372
98474
  _: 1
98373
98475
  }, 16)
98374
98476
  ], 8, _hoisted_2$1)) : createCommentVNode("v-if", true),
98375
- _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6, [
98477
+ _ctx.showEmptyBtn && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
98376
98478
  createVNode(_component_Button, {
98377
98479
  onClick: withModifiers(_ctx.toAddTags, ["stop"])
98378
98480
  }, {
@@ -98382,7 +98484,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
98382
98484
  _: 1
98383
98485
  }, 8, ["onClick"])
98384
98486
  ])) : createCommentVNode("v-if", true),
98385
- _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
98487
+ _ctx.showEmpty && !_ctx.list.length ? (openBlock(), createElementBlock("div", _hoisted_7$1, [
98386
98488
  createElementVNode("div", {
98387
98489
  class: "selector-empty-input",
98388
98490
  onClick: _cache[4] || (_cache[4] = withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
@@ -103770,9 +103872,11 @@ var default_1 = select.default = _default;
103770
103872
 
103771
103873
  const _hoisted_1 = { class: "bm-select-header" };
103772
103874
  const _hoisted_2 = { class: "bm-select-header-btn" };
103773
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
103774
- const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
103775
- const _hoisted_5 = { class: "blue" };
103875
+ const _hoisted_3 = ["onClick"];
103876
+ const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u5168\u9009", -1);
103877
+ const _hoisted_5 = ["onClick"];
103878
+ const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
103879
+ const _hoisted_7 = { class: "blue" };
103776
103880
  const _sfc_main = /* @__PURE__ */ defineComponent({
103777
103881
  __name: "selectAll",
103778
103882
  props: {
@@ -103803,7 +103907,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103803
103907
  immediate: true
103804
103908
  });
103805
103909
  const selectAll = (e) => {
103806
- e.preventDefault();
103807
103910
  let key = "value";
103808
103911
  if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
103809
103912
  key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
@@ -103824,15 +103927,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103824
103927
  });
103825
103928
  };
103826
103929
  const reverseAll = (e) => {
103827
- e.preventDefault();
103828
103930
  let key = "value";
103829
103931
  if (instance?.attrs.fieldNames || instance?.attrs["field-names"])
103830
103932
  key = (instance?.attrs).fieldNames?.value || (instance?.attrs)["field-names"].value;
103831
- state.search.checkedReverse = !state.search.checkedReverse;
103832
- state.search.indeterminate = false;
103833
- state.search.checkedAll = false;
103834
103933
  if (selectValue.value.length <= 0)
103835
- return false;
103934
+ return state.search.checkedReverse = false;
103935
+ state.search.checkedReverse = !state.search.checkedReverse;
103936
+ if (state.search.checkedReverse) {
103937
+ state.search.indeterminate = false;
103938
+ state.search.checkedAll = false;
103939
+ } else {
103940
+ state.search.indeterminate = !!selectValue.value.length && selectValue.value.length < (instance?.attrs.options).length;
103941
+ state.search.checkedAll = selectValue.value.length === (instance?.attrs.options).length;
103942
+ }
103836
103943
  selectValue.value = (instance?.attrs.options).filter((v) => !selectValue.value.some((ele) => ele === v[key])).map((x) => x[key]);
103837
103944
  emit("update:value", selectValue.value);
103838
103945
  emit("onSelectAll", {
@@ -103857,41 +103964,49 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103857
103964
  const _component_a_checkbox = resolveComponent("a-checkbox");
103858
103965
  return openBlock(), createBlock(unref(default_1), mergeProps$1({
103859
103966
  value: unref(selectValue),
103860
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
103861
- class: "follow"
103967
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => isRef(selectValue) ? selectValue.value = $event : selectValue = $event),
103968
+ class: "bm-select"
103862
103969
  }, _ctx.$attrs, {
103863
- onChange,
103864
- mode: "multiple"
103970
+ mode: "multiple",
103971
+ placeholder: unref(instance)?.attrs.placeholder ? unref(instance)?.attrs.placeholder : "\u8BF7\u9009\u62E9",
103972
+ "get-popup-container": (nodes) => nodes.parentNode,
103973
+ onChange
103865
103974
  }), {
103866
103975
  dropdownRender: withCtx(({ menuNode: menu }) => [
103867
103976
  createElementVNode("div", _hoisted_1, [
103868
103977
  createElementVNode("div", _hoisted_2, [
103869
- createElementVNode("div", { onClick: selectAll }, [
103978
+ createElementVNode("div", {
103979
+ onClick: withModifiers(selectAll, ["prevent"]),
103980
+ onMousedown: _cache[1] || (_cache[1] = (e) => e.preventDefault())
103981
+ }, [
103870
103982
  createVNode(_component_a_checkbox, {
103871
103983
  checked: state.search.checkedAll,
103872
103984
  "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => state.search.checkedAll = $event),
103873
103985
  indeterminate: state.search.indeterminate
103874
103986
  }, null, 8, ["checked", "indeterminate"]),
103875
- _hoisted_3
103876
- ]),
103877
- createElementVNode("div", { onClick: reverseAll }, [
103987
+ _hoisted_4
103988
+ ], 40, _hoisted_3),
103989
+ createElementVNode("div", {
103990
+ onClick: withModifiers(reverseAll, ["prevent"]),
103991
+ onMousedown: _cache[3] || (_cache[3] = (e) => e.preventDefault())
103992
+ }, [
103878
103993
  createVNode(_component_a_checkbox, {
103879
103994
  checked: state.search.checkedReverse,
103880
- "onUpdate:checked": _cache[1] || (_cache[1] = ($event) => state.search.checkedReverse = $event)
103995
+ "onUpdate:checked": _cache[2] || (_cache[2] = ($event) => state.search.checkedReverse = $event)
103881
103996
  }, null, 8, ["checked"]),
103882
- _hoisted_4
103883
- ])
103997
+ _hoisted_6
103998
+ ], 40, _hoisted_5)
103884
103999
  ]),
103885
104000
  createElementVNode("div", null, [
103886
- createTextVNode("\u5DF2\u9009\u62E9 "),
103887
- createElementVNode("span", _hoisted_5, toDisplayString(unref(selectValue).length), 1),
103888
- createTextVNode(" \u9879")
104001
+ createTextVNode(" \u5DF2\u9009\u62E9 "),
104002
+ createElementVNode("span", _hoisted_7, toDisplayString(unref(selectValue).length), 1),
104003
+ createTextVNode(" \u9879 ")
103889
104004
  ])
103890
104005
  ]),
103891
104006
  createVNode(VNodes, { vnodes: menu }, null, 8, ["vnodes"])
103892
104007
  ]),
103893
104008
  _: 1
103894
- }, 16, ["value"]);
104009
+ }, 16, ["value", "placeholder", "get-popup-container"]);
103895
104010
  };
103896
104011
  }
103897
104012
  });