@cniot/mdd-editor 0.2.0-beta.4 → 0.2.0-beta.6

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/build/index.es.js CHANGED
@@ -1225,8 +1225,8 @@ const CURRENT_EDITOR_VERSION = "0.1.15";
1225
1225
  class Schema extends EventEmitter {
1226
1226
  constructor(props) {
1227
1227
  super();
1228
- const { title = "", host = "https://mock.alibaba-inc.com", editorVersion = "" } = props || {};
1229
- this.title = title;
1228
+ const { title: title2 = "", host = "https://mock.alibaba-inc.com", editorVersion = "" } = props || {};
1229
+ this.title = title2;
1230
1230
  this.host = host;
1231
1231
  this.type = "page";
1232
1232
  this.editorVersion = editorVersion ? editorVersion : CURRENT_EDITOR_VERSION;
@@ -1245,8 +1245,8 @@ class Schema extends EventEmitter {
1245
1245
  this.host = host;
1246
1246
  }
1247
1247
  init(data) {
1248
- const { title, host, editorVersion } = data || {};
1249
- this.title = title;
1248
+ const { title: title2, host, editorVersion } = data || {};
1249
+ this.title = title2;
1250
1250
  this.host = host;
1251
1251
  this.editorVersion = editorVersion;
1252
1252
  }
@@ -2122,11 +2122,11 @@ const disabled = (key) => {
2122
2122
  const Default_Column_Type = "text";
2123
2123
  const Default_Edit_Column_Type = "edit-input";
2124
2124
  const buildCompProps = (key, obj, buildType, templateType) => {
2125
- const { title, description, required, nullable, type, items, enum: enumVal, format, properties, ...more2 } = obj;
2125
+ const { title: title2, description, required, nullable, type, items, enum: enumVal, format, properties, ...more2 } = obj;
2126
2126
  if (REMOVE_FIELDS_NAME.includes(key)) {
2127
2127
  return null;
2128
2128
  }
2129
- const label = title || description || key;
2129
+ const label = title2 || description || key;
2130
2130
  const isReq = buildType === "parameters";
2131
2131
  let result = null;
2132
2132
  if (isReq) {
@@ -3203,6 +3203,9 @@ class DetailItemSchema extends JSONWatch {
3203
3203
  pagination,
3204
3204
  actions = [],
3205
3205
  current = 1,
3206
+ columnsDirection = "row",
3207
+ columnsBoxes = [],
3208
+ hideCardTitle = false,
3206
3209
  ...more2
3207
3210
  } = props || {};
3208
3211
  super({
@@ -3221,6 +3224,9 @@ class DetailItemSchema extends JSONWatch {
3221
3224
  pagination,
3222
3225
  actions,
3223
3226
  current,
3227
+ columnsDirection,
3228
+ columnsBoxes,
3229
+ hideCardTitle,
3224
3230
  ...more2
3225
3231
  });
3226
3232
  }
@@ -3299,7 +3305,7 @@ class DetailItemSchema extends JSONWatch {
3299
3305
  this.emit("$updated", null, ignoreUpdate);
3300
3306
  }
3301
3307
  update(index2, record, key = "columns", ignoreUpdate = false) {
3302
- if (["columns", "actionColumns", "bulkActions"].includes(key)) {
3308
+ if (["columnsBoxes", "columns", "actionColumns", "bulkActions"].includes(key)) {
3303
3309
  this.data[key].splice(index2, 1, record);
3304
3310
  } else {
3305
3311
  this.data[key] = record;
@@ -7688,7 +7694,7 @@ const dsTitleWatch$1 = "_dsTitleWatch_mxilv_32";
7688
7694
  const staticValueOkBtn$1 = "_staticValueOkBtn_mxilv_37";
7689
7695
  const tableDeleteBtn$1 = "_tableDeleteBtn_mxilv_41";
7690
7696
  const secondConfirm$1 = "_secondConfirm_mxilv_45";
7691
- var styles$c = {
7697
+ var styles$d = {
7692
7698
  dsType: dsType$1,
7693
7699
  dsJSONContent: dsJSONContent$1,
7694
7700
  dsJSONContentTip: dsJSONContentTip$1,
@@ -14588,7 +14594,7 @@ function DataSourceSelect(props) {
14588
14594
  size: "small",
14589
14595
  placeholder: "\u8BF7\u8F93\u5165\u503C"
14590
14596
  }), /* @__PURE__ */ React$1.createElement(Button, {
14591
- className: styles$c.staticValueOkBtn,
14597
+ className: styles$d.staticValueOkBtn,
14592
14598
  size: "small",
14593
14599
  onClick: onOkQuery
14594
14600
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14599,7 +14605,7 @@ function DataSourceSelect(props) {
14599
14605
  size: "small",
14600
14606
  placeholder: "\u8BF7\u8F93\u5165\u503C"
14601
14607
  }), /* @__PURE__ */ React$1.createElement(Button, {
14602
- className: styles$c.staticValueOkBtn,
14608
+ className: styles$d.staticValueOkBtn,
14603
14609
  size: "small",
14604
14610
  onClick: onOkRecordData
14605
14611
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14610,7 +14616,7 @@ function DataSourceSelect(props) {
14610
14616
  size: "small",
14611
14617
  placeholder: "\u8BF7\u8F93\u5165\u503C"
14612
14618
  }), /* @__PURE__ */ React$1.createElement(Button, {
14613
- className: styles$c.staticValueOkBtn,
14619
+ className: styles$d.staticValueOkBtn,
14614
14620
  size: "small",
14615
14621
  onClick: onOkParams
14616
14622
  }, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14621,7 +14627,7 @@ function DataSourceSelect(props) {
14621
14627
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14622
14628
  size: "small"
14623
14629
  }), /* @__PURE__ */ React$1.createElement(Button, {
14624
- className: styles$c.staticValueOkBtn,
14630
+ className: styles$d.staticValueOkBtn,
14625
14631
  size: "small",
14626
14632
  onClick: onOkStatic
14627
14633
  }, "\u786E\u5B9A")) : null) : null);
@@ -14650,12 +14656,12 @@ function DataSourceSelect(props) {
14650
14656
  type: "primary",
14651
14657
  text: true,
14652
14658
  size: "small",
14653
- className: styles$c.tableDeleteBtn,
14659
+ className: styles$d.tableDeleteBtn,
14654
14660
  onClick: () => commonTableDelete(value2, index2, record, "params")
14655
14661
  }, "\u5220\u9664"));
14656
14662
  };
14657
14663
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
14658
- className: styles$c.dsTitle
14664
+ className: styles$d.dsTitle
14659
14665
  }, "\u5165\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
14660
14666
  style: { marginBottom: 8 }
14661
14667
  }, /* @__PURE__ */ React$1.createElement(Button, {
@@ -14689,9 +14695,9 @@ function DataSourceSelect(props) {
14689
14695
  };
14690
14696
  const renderWatch = () => {
14691
14697
  return /* @__PURE__ */ React$1.createElement("div", {
14692
- className: styles$c.watchContainer
14698
+ className: styles$d.watchContainer
14693
14699
  }, /* @__PURE__ */ React$1.createElement("div", {
14694
- className: styles$c.dsTitleWatch
14700
+ className: styles$d.dsTitleWatch
14695
14701
  }, "\u89E6\u53D1\u65F6\u673A:"), /* @__PURE__ */ React$1.createElement(Select$2, {
14696
14702
  mode: "multiple",
14697
14703
  showSearch: true,
@@ -14969,7 +14975,7 @@ function DataSourceSelect(props) {
14969
14975
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14970
14976
  size: "small"
14971
14977
  }), /* @__PURE__ */ React$1.createElement(Button, {
14972
- className: styles$c.staticValueOkBtn,
14978
+ className: styles$d.staticValueOkBtn,
14973
14979
  size: "small",
14974
14980
  onClick: onOkQuery
14975
14981
  }, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14980,7 +14986,7 @@ function DataSourceSelect(props) {
14980
14986
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14981
14987
  size: "small"
14982
14988
  }), /* @__PURE__ */ React$1.createElement(Button, {
14983
- className: styles$c.staticValueOkBtn,
14989
+ className: styles$d.staticValueOkBtn,
14984
14990
  size: "small",
14985
14991
  onClick: onOkStatic
14986
14992
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$RET" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -14991,7 +14997,7 @@ function DataSourceSelect(props) {
14991
14997
  placeholder: "\u8BF7\u8F93\u5165\u503C",
14992
14998
  size: "small"
14993
14999
  }), /* @__PURE__ */ React$1.createElement(Button, {
14994
- className: styles$c.staticValueOkBtn,
15000
+ className: styles$d.staticValueOkBtn,
14995
15001
  size: "small",
14996
15002
  onClick: onOkRet
14997
15003
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15002,7 +15008,7 @@ function DataSourceSelect(props) {
15002
15008
  size: "small",
15003
15009
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15004
15010
  }), /* @__PURE__ */ React$1.createElement(Button, {
15005
- className: styles$c.staticValueOkBtn,
15011
+ className: styles$d.staticValueOkBtn,
15006
15012
  size: "small",
15007
15013
  onClick: onOkParams
15008
15014
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15013,7 +15019,7 @@ function DataSourceSelect(props) {
15013
15019
  size: "small",
15014
15020
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15015
15021
  }), /* @__PURE__ */ React$1.createElement(Button, {
15016
- className: styles$c.staticValueOkBtn,
15022
+ className: styles$d.staticValueOkBtn,
15017
15023
  size: "small",
15018
15024
  onClick: onOkRecordData
15019
15025
  }, "\u786E\u5B9A")) : null) : null);
@@ -15051,9 +15057,9 @@ function DataSourceSelect(props) {
15051
15057
  }, "\u5220\u9664");
15052
15058
  };
15053
15059
  return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
15054
- className: styles$c.dsTitle
15060
+ className: styles$d.dsTitle
15055
15061
  }, "\u683C\u5F0F\u5316\u51FA\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
15056
- className: styles$c.actionButton
15062
+ className: styles$d.actionButton
15057
15063
  }, /* @__PURE__ */ React$1.createElement(Button, {
15058
15064
  onClick: onResponseAdd,
15059
15065
  size: "small"
@@ -15083,9 +15089,9 @@ function DataSourceSelect(props) {
15083
15089
  })));
15084
15090
  };
15085
15091
  return /* @__PURE__ */ React$1.createElement("div", {
15086
- className: styles$c.dsContainer
15092
+ className: styles$d.dsContainer
15087
15093
  }, hasExtra && !defaultAjax ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
15088
- className: styles$c.dsType
15094
+ className: styles$d.dsType
15089
15095
  }, /* @__PURE__ */ React$1.createElement(RadioGroup$1, {
15090
15096
  value: typeValue,
15091
15097
  onChange: onTypeChange,
@@ -15115,9 +15121,9 @@ function DataSourceSelect(props) {
15115
15121
  filter: mainDataSourceFilter,
15116
15122
  ...selectProps
15117
15123
  }) : null, hasExtra && typeValue === "json" ? /* @__PURE__ */ React$1.createElement("div", {
15118
- className: styles$c.dsJSONContent
15124
+ className: styles$d.dsJSONContent
15119
15125
  }, /* @__PURE__ */ React$1.createElement("div", {
15120
- className: styles$c.dsJSONContentTip
15126
+ className: styles$d.dsJSONContentTip
15121
15127
  }, "\u8BF7\u8F93\u5165json(\u63D0\u793A\uFF1Ajson\u7684key\u9700\u8981\u52A0\u4E0A\u53CC\u5F15\u53F7)"), /* @__PURE__ */ React$1.createElement(MonacoEditor, {
15122
15128
  value: codeMirrorJsonObj,
15123
15129
  onChange: (v2, viewUpdate) => {
@@ -15130,9 +15136,9 @@ function DataSourceSelect(props) {
15130
15136
  }
15131
15137
  }
15132
15138
  })) : null, hasExtra && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
15133
- className: styles$c.dsAjaxContent
15139
+ className: styles$d.dsAjaxContent
15134
15140
  }, showWatch && !defaultAjax && renderWatch(), renderParamsTable(), renderFormatResponse()) : null, hasExtra && showSecondConfirm && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
15135
- className: styles$c.secondConfirm
15141
+ className: styles$d.secondConfirm
15136
15142
  }, /* @__PURE__ */ React$1.createElement(Checkbox, {
15137
15143
  checked: secondConfirmValue,
15138
15144
  onChange: secondConfirmChange
@@ -15163,7 +15169,7 @@ const dsTitleWatch = "_dsTitleWatch_1islj_28";
15163
15169
  const staticValueOkBtn = "_staticValueOkBtn_1islj_33";
15164
15170
  const tableDeleteBtn = "_tableDeleteBtn_1islj_37";
15165
15171
  const secondConfirm = "_secondConfirm_1islj_41";
15166
- var styles$b = {
15172
+ var styles$c = {
15167
15173
  dsType,
15168
15174
  dsJSONContent,
15169
15175
  dsJSONContentTip,
@@ -15526,7 +15532,7 @@ function ParamsSelect(props) {
15526
15532
  size: "small",
15527
15533
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15528
15534
  }), /* @__PURE__ */ React$1.createElement(Button, {
15529
- className: styles$b.staticValueOkBtn,
15535
+ className: styles$c.staticValueOkBtn,
15530
15536
  size: "small",
15531
15537
  onClick: onOkQuery
15532
15538
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15537,7 +15543,7 @@ function ParamsSelect(props) {
15537
15543
  size: "small",
15538
15544
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15539
15545
  }), /* @__PURE__ */ React$1.createElement(Button, {
15540
- className: styles$b.staticValueOkBtn,
15546
+ className: styles$c.staticValueOkBtn,
15541
15547
  size: "small",
15542
15548
  onClick: onOkParams
15543
15549
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15548,7 +15554,7 @@ function ParamsSelect(props) {
15548
15554
  size: "small",
15549
15555
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15550
15556
  }), /* @__PURE__ */ React$1.createElement(Button, {
15551
- className: styles$b.staticValueOkBtn,
15557
+ className: styles$c.staticValueOkBtn,
15552
15558
  size: "small",
15553
15559
  onClick: onOkRecordData
15554
15560
  }, "\u786E\u5B9A")) : null, panelSelectValue === "$FORM" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15559,7 +15565,7 @@ function ParamsSelect(props) {
15559
15565
  size: "small",
15560
15566
  placeholder: "\u8BF7\u8F93\u5165\u503C"
15561
15567
  }), /* @__PURE__ */ React$1.createElement(Button, {
15562
- className: styles$b.staticValueOkBtn,
15568
+ className: styles$c.staticValueOkBtn,
15563
15569
  size: "small",
15564
15570
  onClick: onOkForm
15565
15571
  }, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -15570,7 +15576,7 @@ function ParamsSelect(props) {
15570
15576
  placeholder: "\u8BF7\u8F93\u5165\u503C",
15571
15577
  size: "small"
15572
15578
  }), /* @__PURE__ */ React$1.createElement(Button, {
15573
- className: styles$b.staticValueOkBtn,
15579
+ className: styles$c.staticValueOkBtn,
15574
15580
  size: "small",
15575
15581
  onClick: onOkStatic
15576
15582
  }, "\u786E\u5B9A")) : null) : null);
@@ -15599,7 +15605,7 @@ function ParamsSelect(props) {
15599
15605
  type: "primary",
15600
15606
  text: true,
15601
15607
  size: "small",
15602
- className: styles$b.tableDeleteBtn,
15608
+ className: styles$c.tableDeleteBtn,
15603
15609
  onClick: () => commonTableDelete(value2, index2, record, "params")
15604
15610
  }, "\u5220\u9664"));
15605
15611
  };
@@ -15627,9 +15633,9 @@ function ParamsSelect(props) {
15627
15633
  })));
15628
15634
  };
15629
15635
  return /* @__PURE__ */ React$1.createElement("div", {
15630
- className: styles$b.dsContainer
15636
+ className: styles$c.dsContainer
15631
15637
  }, /* @__PURE__ */ React$1.createElement("div", {
15632
- className: styles$b.dsAjaxContent
15638
+ className: styles$c.dsAjaxContent
15633
15639
  }, renderParamsTable()));
15634
15640
  }
15635
15641
  const { connect: connect$7, mapReadPretty: mapReadPretty$6, mapProps: mapProps$7 } = formilyReact;
@@ -15803,7 +15809,7 @@ Select$1.AutoComplete = connect$4(
15803
15809
  );
15804
15810
  const container = "_container_t9q14_1";
15805
15811
  const footer = "_footer_t9q14_8";
15806
- var styles$a = {
15812
+ var styles$b = {
15807
15813
  container,
15808
15814
  footer
15809
15815
  };
@@ -15903,14 +15909,14 @@ const FormilyForm = (props) => {
15903
15909
  fixedSpan: 8
15904
15910
  },
15905
15911
  size: "small",
15906
- className: styles$a.container
15912
+ className: styles$b.container
15907
15913
  },
15908
15914
  ...restProps
15909
15915
  }, /* @__PURE__ */ React$1.createElement(SchemaField, {
15910
15916
  components,
15911
15917
  schema: schema == null ? void 0 : schema.schema
15912
15918
  }), children, !hiddenSubmit && /* @__PURE__ */ React$1.createElement("div", {
15913
- className: styles$a.footer
15919
+ className: styles$b.footer
15914
15920
  }, /* @__PURE__ */ React$1.createElement(Submit, {
15915
15921
  ...SubmitProps
15916
15922
  }, "\u63D0\u4EA4")));
@@ -16379,7 +16385,7 @@ function AjaxSchemaForm(props) {
16379
16385
  generateFastJson
16380
16386
  }) : null);
16381
16387
  }
16382
- function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
16388
+ function AjaxFormDialog({ title: title2 = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
16383
16389
  const swagger = useSwagger$1();
16384
16390
  const schema = React$1.useMemo(() => {
16385
16391
  return oldSchema.clone();
@@ -16399,7 +16405,7 @@ function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldS
16399
16405
  const type = schema.getViewType();
16400
16406
  return /* @__PURE__ */ React$1.createElement(Dialog, {
16401
16407
  footerActions: ["cancel", "ok"],
16402
- title,
16408
+ title: title2,
16403
16409
  v2: true,
16404
16410
  visible,
16405
16411
  centered: true,
@@ -17326,7 +17332,7 @@ const formilySchema = ({ moduleDataSource = {} }) => {
17326
17332
  ],
17327
17333
  fulfill: {
17328
17334
  state: {
17329
- visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'url' || $deps.type === 'custom' }}"
17335
+ visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"
17330
17336
  }
17331
17337
  }
17332
17338
  }
@@ -17481,7 +17487,9 @@ const formilySchema = ({ moduleDataSource = {} }) => {
17481
17487
  "x-decorator": "CnFormItem",
17482
17488
  "x-component": "Input",
17483
17489
  "x-validator": [],
17484
- "x-component-props": {},
17490
+ "x-component-props": {
17491
+ hasClear: true
17492
+ },
17485
17493
  "x-decorator-props": {},
17486
17494
  name: "width",
17487
17495
  default: "50%",
@@ -17508,7 +17516,9 @@ const formilySchema = ({ moduleDataSource = {} }) => {
17508
17516
  "x-decorator": "CnFormItem",
17509
17517
  "x-component": "Input",
17510
17518
  "x-validator": [],
17511
- "x-component-props": {},
17519
+ "x-component-props": {
17520
+ hasClear: true
17521
+ },
17512
17522
  "x-decorator-props": {},
17513
17523
  name: "height",
17514
17524
  "x-reactions": {
@@ -18105,8 +18115,12 @@ var PrimaryKey = {
18105
18115
  "x-designable-id": "c1f6xiczrp8"
18106
18116
  }
18107
18117
  };
18108
- var commonColumnProps = () => {
18118
+ var commonColumnProps = ({ listSchema = [] }) => {
18109
18119
  var _a2;
18120
+ const columnsOpts = (listSchema == null ? void 0 : listSchema.map((item) => ({
18121
+ ...item,
18122
+ value: item.name || item.label
18123
+ }))) || [];
18110
18124
  return {
18111
18125
  width: {
18112
18126
  type: "number",
@@ -18284,6 +18298,25 @@ var commonColumnProps = () => {
18284
18298
  },
18285
18299
  name: "tooltip",
18286
18300
  "x-designable-id": "sxbti21112zmzk"
18301
+ },
18302
+ parentHeaderColumn: {
18303
+ type: "string",
18304
+ title: "\u8868\u5934\u5206\u7EC4\u7236\u7EA7\u5217",
18305
+ "x-decorator": "CnFormItem",
18306
+ "x-component": "FormilySelect.AutoComplete",
18307
+ "x-validator": [],
18308
+ "x-component-props": {
18309
+ style: {
18310
+ width: "200px"
18311
+ },
18312
+ size: "small"
18313
+ },
18314
+ "x-decorator-props": {
18315
+ tip: "\u8BBE\u7F6E\u7236\u7EA7\u540E\uFF0C\u5F53\u524D\u5217\u8868\u5934\u4F1A\u663E\u793A\u5728\u7236\u7EA7\u5217\u7684\u4E0B\u9762"
18316
+ },
18317
+ enum: columnsOpts,
18318
+ name: "parentHeaderColumn",
18319
+ "x-designable-id": "sxbti11221112zmzk"
18287
18320
  }
18288
18321
  };
18289
18322
  };
@@ -18302,7 +18335,7 @@ const shouldCopyClipboard = {
18302
18335
  "x-designable-id": "sxbti22331112zmzk"
18303
18336
  }
18304
18337
  };
18305
- var TextSchema = () => {
18338
+ var TextSchema = (params) => {
18306
18339
  return {
18307
18340
  form: {
18308
18341
  labelCol: 6,
@@ -18311,14 +18344,14 @@ var TextSchema = () => {
18311
18344
  schema: {
18312
18345
  type: "object",
18313
18346
  properties: {
18314
- ...commonColumnProps(),
18347
+ ...commonColumnProps(params),
18315
18348
  ...shouldCopyClipboard
18316
18349
  },
18317
18350
  "x-designable-id": "j744a1rk494"
18318
18351
  }
18319
18352
  };
18320
18353
  };
18321
- var TplSchema = () => {
18354
+ var TplSchema = (params) => {
18322
18355
  return {
18323
18356
  form: {
18324
18357
  labelCol: 6,
@@ -18327,7 +18360,7 @@ var TplSchema = () => {
18327
18360
  schema: {
18328
18361
  type: "object",
18329
18362
  properties: {
18330
- ...commonColumnProps(),
18363
+ ...commonColumnProps(params),
18331
18364
  tpl: {
18332
18365
  type: "string",
18333
18366
  title: "\u6A21\u677F\u8868\u8FBE\u5F0F",
@@ -18353,7 +18386,7 @@ var TplSchema = () => {
18353
18386
  }
18354
18387
  };
18355
18388
  };
18356
- var TagSchema = () => {
18389
+ var TagSchema = (params) => {
18357
18390
  return {
18358
18391
  form: {
18359
18392
  labelCol: 4,
@@ -18362,7 +18395,7 @@ var TagSchema = () => {
18362
18395
  schema: {
18363
18396
  type: "object",
18364
18397
  properties: {
18365
- ...commonColumnProps(),
18398
+ ...commonColumnProps(params),
18366
18399
  dataSource: {
18367
18400
  type: "array",
18368
18401
  title: "\u6807\u7B7E\u9879",
@@ -18566,7 +18599,7 @@ var TagSchema = () => {
18566
18599
  }
18567
18600
  };
18568
18601
  };
18569
- var DateSchema = () => {
18602
+ var DateSchema = (params) => {
18570
18603
  return {
18571
18604
  form: {
18572
18605
  labelCol: 6,
@@ -18575,7 +18608,7 @@ var DateSchema = () => {
18575
18608
  schema: {
18576
18609
  type: "object",
18577
18610
  properties: {
18578
- ...commonColumnProps(),
18611
+ ...commonColumnProps(params),
18579
18612
  format: {
18580
18613
  type: "string",
18581
18614
  title: "\u65E5\u671F\u663E\u793A\u683C\u5F0F",
@@ -18617,7 +18650,8 @@ var DateSchema = () => {
18617
18650
  }
18618
18651
  };
18619
18652
  };
18620
- var CustomSchema = ({ moduleDataSource = {} }) => {
18653
+ var CustomSchema = (params) => {
18654
+ const { moduleDataSource = {} } = params || {};
18621
18655
  return {
18622
18656
  form: {
18623
18657
  labelCol: 6,
@@ -18626,7 +18660,7 @@ var CustomSchema = ({ moduleDataSource = {} }) => {
18626
18660
  schema: {
18627
18661
  type: "object",
18628
18662
  properties: {
18629
- ...commonColumnProps(),
18663
+ ...commonColumnProps(params),
18630
18664
  customType: {
18631
18665
  title: "\u81EA\u5B9A\u4E49\u7C7B\u578B",
18632
18666
  "x-decorator": "CnFormItem",
@@ -18689,7 +18723,7 @@ var CustomSchema = ({ moduleDataSource = {} }) => {
18689
18723
  }
18690
18724
  };
18691
18725
  };
18692
- var EnumSchema = () => {
18726
+ var EnumSchema = (params) => {
18693
18727
  return {
18694
18728
  form: {
18695
18729
  labelCol: 4,
@@ -18698,7 +18732,7 @@ var EnumSchema = () => {
18698
18732
  schema: {
18699
18733
  type: "object",
18700
18734
  properties: {
18701
- ...commonColumnProps(),
18735
+ ...commonColumnProps(params),
18702
18736
  dataSource: {
18703
18737
  type: "array",
18704
18738
  title: "\u679A\u4E3E\u9879",
@@ -18815,7 +18849,7 @@ var EnumSchema = () => {
18815
18849
  }
18816
18850
  };
18817
18851
  };
18818
- var NumSchema = () => {
18852
+ var NumSchema = (params) => {
18819
18853
  return {
18820
18854
  form: {
18821
18855
  labelCol: 6,
@@ -18824,7 +18858,7 @@ var NumSchema = () => {
18824
18858
  schema: {
18825
18859
  type: "object",
18826
18860
  properties: {
18827
- ...commonColumnProps(),
18861
+ ...commonColumnProps(params),
18828
18862
  format: {
18829
18863
  title: "\u6570\u503C\u683C\u5F0F",
18830
18864
  "x-decorator": "CnFormItem",
@@ -18863,7 +18897,7 @@ var NumSchema = () => {
18863
18897
  }
18864
18898
  };
18865
18899
  };
18866
- var ClipboardSchema = () => {
18900
+ var ClipboardSchema = (params) => {
18867
18901
  return {
18868
18902
  form: {
18869
18903
  labelCol: 6,
@@ -18872,13 +18906,13 @@ var ClipboardSchema = () => {
18872
18906
  schema: {
18873
18907
  type: "object",
18874
18908
  properties: {
18875
- ...commonColumnProps()
18909
+ ...commonColumnProps(params)
18876
18910
  },
18877
18911
  "x-designable-id": "j741121rk494"
18878
18912
  }
18879
18913
  };
18880
18914
  };
18881
- var ListSchema = () => {
18915
+ var ListSchema = (params) => {
18882
18916
  return {
18883
18917
  form: {
18884
18918
  labelCol: 6,
@@ -18887,7 +18921,7 @@ var ListSchema = () => {
18887
18921
  schema: {
18888
18922
  type: "object",
18889
18923
  properties: {
18890
- ...commonColumnProps(),
18924
+ ...commonColumnProps(params),
18891
18925
  showNum: {
18892
18926
  type: "number",
18893
18927
  title: "\u663E\u793A\u5728\u8868\u683C\u5217\u7684\u6761\u6570",
@@ -18948,7 +18982,7 @@ var ListSchema = () => {
18948
18982
  }
18949
18983
  };
18950
18984
  };
18951
- var TooltipText = () => {
18985
+ var TooltipText = (params) => {
18952
18986
  return {
18953
18987
  form: {
18954
18988
  labelCol: 6,
@@ -18957,7 +18991,7 @@ var TooltipText = () => {
18957
18991
  schema: {
18958
18992
  type: "object",
18959
18993
  properties: {
18960
- ...commonColumnProps(),
18994
+ ...commonColumnProps(params),
18961
18995
  align: {
18962
18996
  title: "\u6D6E\u5C42\u65B9\u5411",
18963
18997
  "x-decorator": "CnFormItem",
@@ -18998,7 +19032,7 @@ var TooltipText = () => {
18998
19032
  }
18999
19033
  };
19000
19034
  };
19001
- var Images = () => {
19035
+ var Images = (params) => {
19002
19036
  return {
19003
19037
  form: {
19004
19038
  labelCol: 6,
@@ -19007,7 +19041,7 @@ var Images = () => {
19007
19041
  schema: {
19008
19042
  type: "object",
19009
19043
  properties: {
19010
- ...commonColumnProps(),
19044
+ ...commonColumnProps(params),
19011
19045
  isFile: {
19012
19046
  type: "boolean",
19013
19047
  title: "\u662F\u5426\u662F\u9644\u4EF6",
@@ -19105,7 +19139,7 @@ var Images = () => {
19105
19139
  }
19106
19140
  };
19107
19141
  };
19108
- var CnTag = () => {
19142
+ var CnTag = (params) => {
19109
19143
  return {
19110
19144
  form: {
19111
19145
  labelCol: 6,
@@ -19114,13 +19148,13 @@ var CnTag = () => {
19114
19148
  schema: {
19115
19149
  type: "object",
19116
19150
  properties: {
19117
- ...commonColumnProps()
19151
+ ...commonColumnProps(params)
19118
19152
  },
19119
19153
  "x-designable-id": "kv084cg1qw7"
19120
19154
  }
19121
19155
  };
19122
19156
  };
19123
- var CnNumber = () => {
19157
+ var CnNumber = (params) => {
19124
19158
  return {
19125
19159
  form: {
19126
19160
  labelCol: 6,
@@ -19129,13 +19163,13 @@ var CnNumber = () => {
19129
19163
  schema: {
19130
19164
  type: "object",
19131
19165
  properties: {
19132
- ...commonColumnProps()
19166
+ ...commonColumnProps(params)
19133
19167
  },
19134
19168
  "x-designable-id": "kv084cg1qw7"
19135
19169
  }
19136
19170
  };
19137
19171
  };
19138
- var CnBank = () => {
19172
+ var CnBank = (params) => {
19139
19173
  return {
19140
19174
  form: {
19141
19175
  labelCol: 6,
@@ -19144,13 +19178,13 @@ var CnBank = () => {
19144
19178
  schema: {
19145
19179
  type: "object",
19146
19180
  properties: {
19147
- ...commonColumnProps()
19181
+ ...commonColumnProps(params)
19148
19182
  },
19149
19183
  "x-designable-id": "kv084cg1qw7"
19150
19184
  }
19151
19185
  };
19152
19186
  };
19153
- var CnImageText = () => {
19187
+ var CnImageText = (params) => {
19154
19188
  return {
19155
19189
  form: {
19156
19190
  labelCol: 6,
@@ -19159,13 +19193,13 @@ var CnImageText = () => {
19159
19193
  schema: {
19160
19194
  type: "object",
19161
19195
  properties: {
19162
- ...commonColumnProps()
19196
+ ...commonColumnProps(params)
19163
19197
  },
19164
19198
  "x-designable-id": "kv084cg1qw7"
19165
19199
  }
19166
19200
  };
19167
19201
  };
19168
- var CnProgress = () => {
19202
+ var CnProgress = (params) => {
19169
19203
  return {
19170
19204
  form: {
19171
19205
  labelCol: 6,
@@ -19174,13 +19208,13 @@ var CnProgress = () => {
19174
19208
  schema: {
19175
19209
  type: "object",
19176
19210
  properties: {
19177
- ...commonColumnProps()
19211
+ ...commonColumnProps(params)
19178
19212
  },
19179
19213
  "x-designable-id": "kv084cg1qw7"
19180
19214
  }
19181
19215
  };
19182
19216
  };
19183
- var cnGraphicsPercent = () => {
19217
+ var cnGraphicsPercent = (params) => {
19184
19218
  return {
19185
19219
  form: {
19186
19220
  labelCol: 6,
@@ -19189,7 +19223,7 @@ var cnGraphicsPercent = () => {
19189
19223
  schema: {
19190
19224
  type: "object",
19191
19225
  properties: {
19192
- ...commonColumnProps()
19226
+ ...commonColumnProps(params)
19193
19227
  },
19194
19228
  "x-designable-id": "kv084cg3331qw7"
19195
19229
  }
@@ -23729,7 +23763,7 @@ const itemComponent$1 = "_itemComponent_tl8oe_70";
23729
23763
  const itemLabel$1 = "_itemLabel_tl8oe_76";
23730
23764
  const collapseContent$2 = "_collapseContent_tl8oe_81";
23731
23765
  const itemClose$2 = "_itemClose_tl8oe_85";
23732
- var styles$9 = {
23766
+ var styles$a = {
23733
23767
  mddTableForm,
23734
23768
  tableFormTitle,
23735
23769
  tableFormContent,
@@ -23743,7 +23777,7 @@ var styles$9 = {
23743
23777
  itemClose: itemClose$2
23744
23778
  };
23745
23779
  const DRAG_KEY$2 = "PanelTitle";
23746
- const { Panel: Panel$2 } = Collapse;
23780
+ const { Panel: Panel$3 } = Collapse;
23747
23781
  const { Tooltip } = Balloon;
23748
23782
  const TitleRender$2 = (props) => {
23749
23783
  const ref = useRef(null);
@@ -23807,7 +23841,7 @@ const TitleRender$2 = (props) => {
23807
23841
  setValue({ ...value });
23808
23842
  onChange(value, key);
23809
23843
  };
23810
- const cls = classnames.bind(styles$9)({
23844
+ const cls = classnames.bind(styles$a)({
23811
23845
  itemTitle: "itemTitle",
23812
23846
  "drop-over-upward": isOver && index2 < sourceItem.index,
23813
23847
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -23823,9 +23857,9 @@ const TitleRender$2 = (props) => {
23823
23857
  onChange: (v2) => titleChange("label", v2),
23824
23858
  placeholder: "\u8F93\u5165\u4E2D\u6587\u540D"
23825
23859
  }), titleType.includes("type") && /* @__PURE__ */ React$1.createElement("div", {
23826
- className: styles$9.itemComponent
23860
+ className: styles$a.itemComponent
23827
23861
  }, /* @__PURE__ */ React$1.createElement("label", {
23828
- className: styles$9.itemLabel
23862
+ className: styles$a.itemLabel
23829
23863
  }, "\u7EC4\u4EF6: "), /* @__PURE__ */ React$1.createElement(Select$2, {
23830
23864
  size: "small",
23831
23865
  autoWidth: false,
@@ -23844,9 +23878,9 @@ const TitleRender$2 = (props) => {
23844
23878
  onChange: (v2) => titleChange("name", v2),
23845
23879
  placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u53D8\u91CF\u540D"
23846
23880
  }), titleType.includes("groupKey") && /* @__PURE__ */ React$1.createElement("div", {
23847
- className: styles$9.itemComponent
23881
+ className: styles$a.itemComponent
23848
23882
  }, /* @__PURE__ */ React$1.createElement("label", {
23849
- className: styles$9.itemLabel
23883
+ className: styles$a.itemLabel
23850
23884
  }, "\u5206\u7EC4: "), /* @__PURE__ */ React$1.createElement(Input$1, {
23851
23885
  size: "small",
23852
23886
  value: groupKey,
@@ -23855,20 +23889,33 @@ const TitleRender$2 = (props) => {
23855
23889
  })), /* @__PURE__ */ React$1.createElement(Icon, {
23856
23890
  type: "close",
23857
23891
  size: "small",
23858
- className: styles$9.itemClose,
23892
+ className: styles$a.itemClose,
23859
23893
  onClick: onRemove
23860
23894
  }));
23861
23895
  };
23862
- const ContentRender$1 = (props) => {
23863
- const { values, effects, onChange, schema, index: index2, extraFieldSchema: extraFieldSchema2, updateForceFLag } = props;
23896
+ const watchFields = (listSchema) => {
23897
+ const fieldStringArray = listSchema.map((item) => {
23898
+ return `${item.label}_${item.name}`;
23899
+ });
23900
+ return fieldStringArray.join(",");
23901
+ };
23902
+ const ContentRender$2 = (props) => {
23903
+ const { values, effects, onChange, schema, index: index2, extraFieldSchema: extraFieldSchema2, updateForceFLag, listSchema } = props;
23864
23904
  const { type, label, name } = values;
23865
23905
  const { formilySchema: formilySchema2, dataAdaptor: dataAdaptor2 } = schema || {};
23906
+ const [uuid, setUuid] = useState(uuidv4());
23866
23907
  const { dataMap, getModule } = useModule$1();
23867
23908
  const moduleDataSource = getModule("$ModuleDataSource");
23909
+ React$1.useEffect(
23910
+ debounce_1(() => {
23911
+ setUuid(uuidv4());
23912
+ }, 500),
23913
+ [watchFields(listSchema)]
23914
+ );
23868
23915
  const realSchema = useMemo(() => {
23869
- const srcSchema = getRealSchema(formilySchema2 || schema, { moduleDataSource });
23916
+ const srcSchema = getRealSchema(formilySchema2 || schema, { moduleDataSource, listSchema });
23870
23917
  return getRealCompSchema(srcSchema, extraFieldSchema2);
23871
- }, [formilySchema2, schema, extraFieldSchema2, moduleDataSource]);
23918
+ }, [formilySchema2, schema, extraFieldSchema2, moduleDataSource, uuid, listSchema]);
23872
23919
  const formilyForm = useMemo(() => {
23873
23920
  const realValues = dataAdaptor2 ? dataAdaptor2(values, true) : values;
23874
23921
  return {
@@ -23894,7 +23941,7 @@ const ContentRender$1 = (props) => {
23894
23941
  };
23895
23942
  }, [type, updateForceFLag, realSchema]);
23896
23943
  return /* @__PURE__ */ React$1.createElement("div", {
23897
- className: styles$9.collapseContent
23944
+ className: styles$a.collapseContent
23898
23945
  }, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
23899
23946
  ...formilyForm,
23900
23947
  hiddenSubmit: true
@@ -23902,7 +23949,7 @@ const ContentRender$1 = (props) => {
23902
23949
  };
23903
23950
  function MddTableForm(props, ref) {
23904
23951
  const {
23905
- title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
23952
+ title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
23906
23953
  tip = "",
23907
23954
  actionContent = null,
23908
23955
  data = [],
@@ -23969,26 +24016,26 @@ function MddTableForm(props, ref) {
23969
24016
  forceUpdate();
23970
24017
  };
23971
24018
  return /* @__PURE__ */ React$1.createElement("div", {
23972
- className: styles$9.mddTableForm
24019
+ className: styles$a.mddTableForm
23973
24020
  }, /* @__PURE__ */ React$1.createElement("div", {
23974
- className: styles$9.tableFormTitle
23975
- }, /* @__PURE__ */ React$1.createElement("div", null, title, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
24021
+ className: styles$a.tableFormTitle
24022
+ }, /* @__PURE__ */ React$1.createElement("div", null, title2, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
23976
24023
  trigger: /* @__PURE__ */ React$1.createElement(Icon, {
23977
24024
  type: "help",
23978
24025
  size: "small"
23979
24026
  }),
23980
24027
  align: "t"
23981
24028
  }, tip)), actionContent && /* @__PURE__ */ React$1.createElement("div", {
23982
- className: styles$9.tableFormAction
24029
+ className: styles$a.tableFormAction
23983
24030
  }, actionContent)), /* @__PURE__ */ React$1.createElement("div", {
23984
- className: styles$9.tableFormContent
24031
+ className: styles$a.tableFormContent
23985
24032
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
23986
24033
  backend: HTML5Backend
23987
24034
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
23988
24035
  accordion: true
23989
24036
  }, dataRef.current.map((item, idx) => {
23990
- item.name || item.dataIndex || `${title}_${idx}`;
23991
- return /* @__PURE__ */ React$1.createElement(Panel$2, {
24037
+ item.name || item.dataIndex || `${title2}_${idx}`;
24038
+ return /* @__PURE__ */ React$1.createElement(Panel$3, {
23992
24039
  title: /* @__PURE__ */ React$1.createElement(TitleRender$2, {
23993
24040
  index: idx,
23994
24041
  draggable,
@@ -24005,13 +24052,14 @@ function MddTableForm(props, ref) {
24005
24052
  titleType,
24006
24053
  componentOptions: props.componentOptions
24007
24054
  })
24008
- }, /* @__PURE__ */ React$1.createElement(ContentRender$1, {
24055
+ }, /* @__PURE__ */ React$1.createElement(ContentRender$2, {
24009
24056
  updateForceFLag: sortUpdateFlag[idx],
24010
24057
  values: item,
24011
24058
  index: idx,
24012
24059
  schema: CompSchemaMap[item.type],
24013
24060
  extraFieldSchema: extraFieldSchema2,
24014
24061
  effects,
24062
+ listSchema: dataRef.current,
24015
24063
  onChange: ({ record }) => {
24016
24064
  const { type, name, label, groupKey, ...otherProps } = dataRef.current[idx];
24017
24065
  const newRecord = { ...record, label, name, groupKey };
@@ -24022,7 +24070,7 @@ function MddTableForm(props, ref) {
24022
24070
  }
24023
24071
  }));
24024
24072
  })))), /* @__PURE__ */ React$1.createElement("div", {
24025
- className: styles$9.tableFormBottom
24073
+ className: styles$a.tableFormBottom
24026
24074
  }, /* @__PURE__ */ React$1.createElement(Button, {
24027
24075
  onClick: onAddHandle,
24028
24076
  style: { padding: "0 48px" }
@@ -24046,6 +24094,12 @@ function getRealCompSchema(srcSchema, extraFieldSchema2) {
24046
24094
  }
24047
24095
  return srcSchema;
24048
24096
  }
24097
+ function uuidv4() {
24098
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
24099
+ var r = Math.random() * 16 | 0, v2 = c == "x" ? r : r & 3 | 8;
24100
+ return v2.toString(16);
24101
+ });
24102
+ }
24049
24103
  const PenetrateTypes = {
24050
24104
  FILTER: "filter",
24051
24105
  FORM: "form"
@@ -24056,14 +24110,14 @@ const FormTitle = "_FormTitle_1e2nn_20";
24056
24110
  const FormTitleHelp = "_FormTitleHelp_1e2nn_24";
24057
24111
  const FormContent = "_FormContent_1e2nn_30";
24058
24112
  const content = "_content_1e2nn_35";
24059
- var styles$8 = {
24113
+ var styles$9 = {
24060
24114
  mddForm,
24061
24115
  FormTitle,
24062
24116
  FormTitleHelp,
24063
24117
  FormContent,
24064
24118
  content
24065
24119
  };
24066
- const ContentRender = (props) => {
24120
+ const ContentRender$1 = (props) => {
24067
24121
  const { values, index: index2, effects, onChange, schema } = props;
24068
24122
  const formilyForm = useMemo(() => {
24069
24123
  return {
@@ -24086,7 +24140,7 @@ const ContentRender = (props) => {
24086
24140
  };
24087
24141
  }, [schema]);
24088
24142
  return /* @__PURE__ */ React$1.createElement("div", {
24089
- className: styles$8.content
24143
+ className: styles$9.content
24090
24144
  }, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
24091
24145
  ...formilyForm,
24092
24146
  hiddenSubmit: true
@@ -24094,7 +24148,7 @@ const ContentRender = (props) => {
24094
24148
  };
24095
24149
  function MddForm(props) {
24096
24150
  const {
24097
- title = "\u914D\u7F6E\u5206\u9875",
24151
+ title: title2 = "\u914D\u7F6E\u5206\u9875",
24098
24152
  help,
24099
24153
  data = {},
24100
24154
  type,
@@ -24106,16 +24160,16 @@ function MddForm(props) {
24106
24160
  contentStyle
24107
24161
  } = props;
24108
24162
  return /* @__PURE__ */ React$1.createElement("div", {
24109
- className: styles$8.mddForm,
24163
+ className: styles$9.mddForm,
24110
24164
  style: style2
24111
24165
  }, /* @__PURE__ */ React$1.createElement("div", {
24112
- className: styles$8.FormTitle
24113
- }, title), help && /* @__PURE__ */ React$1.createElement("div", {
24114
- className: styles$8.FormTitleHelp
24166
+ className: styles$9.FormTitle
24167
+ }, title2), help && /* @__PURE__ */ React$1.createElement("div", {
24168
+ className: styles$9.FormTitleHelp
24115
24169
  }, help), /* @__PURE__ */ React$1.createElement("div", {
24116
- className: styles$8.FormContent,
24170
+ className: styles$9.FormContent,
24117
24171
  style: contentStyle
24118
- }, children || /* @__PURE__ */ React$1.createElement(ContentRender, {
24172
+ }, children || /* @__PURE__ */ React$1.createElement(ContentRender$1, {
24119
24173
  values: data,
24120
24174
  schema: CompSchema[type],
24121
24175
  effects,
@@ -25082,7 +25136,7 @@ const tableArrayBottom$1 = "_tableArrayBottom_16ght_32";
25082
25136
  const itemTitle$1 = "_itemTitle_16ght_39";
25083
25137
  const collapseContent$1 = "_collapseContent_16ght_69";
25084
25138
  const itemClose$1 = "_itemClose_16ght_73";
25085
- var styles$7 = {
25139
+ var styles$8 = {
25086
25140
  mddTableArray: mddTableArray$1,
25087
25141
  tableArrayTitle: tableArrayTitle$1,
25088
25142
  tableArrayContent: tableArrayContent$1,
@@ -25094,11 +25148,13 @@ var styles$7 = {
25094
25148
  itemClose: itemClose$1
25095
25149
  };
25096
25150
  const DRAG_KEY$1 = "TableArrayPanelTitle";
25097
- const { Panel: Panel$1 } = Collapse;
25151
+ const { Panel: Panel$2 } = Collapse;
25098
25152
  const TitleRender$1 = (props) => {
25099
25153
  const ref = useRef(null);
25100
25154
  const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
25101
25155
  } } = props;
25156
+ const { dataMap, getModule } = useModule$1();
25157
+ const moduleDataSource = getModule("$ModuleDataSource");
25102
25158
  const [{ isOver }, drop] = useDrop({
25103
25159
  accept: DRAG_KEY$1,
25104
25160
  collect(monitor) {
@@ -25125,7 +25181,7 @@ const TitleRender$1 = (props) => {
25125
25181
  });
25126
25182
  const opacity = isDragging ? 0 : 1;
25127
25183
  draggable && drag(drop(ref));
25128
- const cls = classnames.bind(styles$7)({
25184
+ const cls = classnames.bind(styles$8)({
25129
25185
  itemTitle: "itemTitle",
25130
25186
  "drop-over-upward": isOver && index2 < sourceItem.index,
25131
25187
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -25135,16 +25191,18 @@ const TitleRender$1 = (props) => {
25135
25191
  className: cls,
25136
25192
  style: { cursor: draggable ? "move" : "default", opacity },
25137
25193
  onClick: (e) => e.stopPropagation()
25138
- }, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
25194
+ }, customRender && customRender({ data, index: index2, onChange, moduleDataSource }), /* @__PURE__ */ React$1.createElement(Icon, {
25139
25195
  type: "close",
25140
25196
  size: "small",
25141
- className: styles$7.itemClose,
25197
+ className: styles$8.itemClose,
25142
25198
  onClick: onRemove
25143
25199
  }));
25144
25200
  };
25145
25201
  function MddTableSimpleArray(props) {
25202
+ var _a2;
25146
25203
  const {
25147
- title = "",
25204
+ title: title2 = "",
25205
+ tip,
25148
25206
  data = [],
25149
25207
  onChange = () => {
25150
25208
  },
@@ -25173,17 +25231,23 @@ function MddTableSimpleArray(props) {
25173
25231
  onChange({ record, index: index2, data });
25174
25232
  };
25175
25233
  return /* @__PURE__ */ React$1.createElement("div", {
25176
- className: styles$7.mddTableArray
25234
+ className: styles$8.mddTableArray
25177
25235
  }, /* @__PURE__ */ React$1.createElement("div", {
25178
- className: styles$7.tableArrayTitle
25179
- }, title), /* @__PURE__ */ React$1.createElement("div", {
25180
- className: styles$7.tableArrayContent
25236
+ className: styles$8.tableArrayTitle
25237
+ }, title2, tip && /* @__PURE__ */ React$1.createElement(Balloon, {
25238
+ trigger: /* @__PURE__ */ React$1.createElement(Icon, {
25239
+ type: "help",
25240
+ size: "small"
25241
+ }),
25242
+ align: "t"
25243
+ }, tip)), /* @__PURE__ */ React$1.createElement("div", {
25244
+ className: styles$8.tableArrayContent
25181
25245
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
25182
25246
  backend: HTML5Backend
25183
25247
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
25184
25248
  accordion: true
25185
- }, data.map((item, idx) => {
25186
- return /* @__PURE__ */ React$1.createElement(Panel$1, {
25249
+ }, (_a2 = data == null ? void 0 : data.map) == null ? void 0 : _a2.call(data, (item, idx) => {
25250
+ return /* @__PURE__ */ React$1.createElement(Panel$2, {
25187
25251
  title: /* @__PURE__ */ React$1.createElement(TitleRender$1, {
25188
25252
  index: idx,
25189
25253
  draggable,
@@ -25196,10 +25260,10 @@ function MddTableSimpleArray(props) {
25196
25260
  customRender: titleRender
25197
25261
  })
25198
25262
  }, /* @__PURE__ */ React$1.createElement("div", {
25199
- className: styles$7.collapseContent
25263
+ className: styles$8.collapseContent
25200
25264
  }, contentRender2({ data: item, index: idx, onChange: onTableArrayChange })));
25201
25265
  })))), /* @__PURE__ */ React$1.createElement("div", {
25202
- className: styles$7.tableArrayBottom
25266
+ className: styles$8.tableArrayBottom
25203
25267
  }, /* @__PURE__ */ React$1.createElement(Button, {
25204
25268
  onClick: onAdd,
25205
25269
  style: { padding: "0 48px" }
@@ -25211,7 +25275,7 @@ const tabLabel$4 = "_tabLabel_119xt_9";
25211
25275
  const middleBox = "_middleBox_119xt_20";
25212
25276
  const middleBoxLeft = "_middleBoxLeft_119xt_26";
25213
25277
  const middleBoxRight = "_middleBoxRight_119xt_31";
25214
- var styles$6 = {
25278
+ var styles$7 = {
25215
25279
  customTabItem: customTabItem$4,
25216
25280
  tabTitle: tabTitle$4,
25217
25281
  tabLabel: tabLabel$4,
@@ -25251,8 +25315,8 @@ function Middle(props) {
25251
25315
  };
25252
25316
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
25253
25317
  data: schema.getMiddlePanel(),
25254
- titleRender: customTitleRender$1,
25255
- contentRender,
25318
+ titleRender: customTitleRender$2,
25319
+ contentRender: contentRender$1,
25256
25320
  title: "\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",
25257
25321
  onChange: onChangeHandle,
25258
25322
  onSort: onSortHandle,
@@ -25260,11 +25324,11 @@ function Middle(props) {
25260
25324
  onRemove: onRemoveHandle
25261
25325
  }));
25262
25326
  }
25263
- function customTitleRender$1(props) {
25327
+ function customTitleRender$2(props) {
25264
25328
  const { data, index: index2 } = props;
25265
25329
  return /* @__PURE__ */ React$1.createElement("div", null, "\u4E2D\u95F4\u6A21\u5757", index2 + 1);
25266
25330
  }
25267
- function contentRender(props) {
25331
+ function contentRender$1(props) {
25268
25332
  const { data: schema, index: index2, onChange } = props;
25269
25333
  const onBaseInfoChange = (key, value) => {
25270
25334
  schema.set(key, value);
@@ -25272,47 +25336,47 @@ function contentRender(props) {
25272
25336
  };
25273
25337
  const moduleValue = schema.get("value");
25274
25338
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
25275
- className: styles$6.middleBox
25339
+ className: styles$7.middleBox
25276
25340
  }, /* @__PURE__ */ React$1.createElement("label", {
25277
- className: styles$6.middleBoxLeft
25341
+ className: styles$7.middleBoxLeft
25278
25342
  }, "\u6E32\u67D3\u6A21\u5757\uFF1A"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
25279
25343
  dataSource: Middle_Module_Opts,
25280
25344
  size: "small",
25281
- className: styles$6.middleBoxRight,
25345
+ className: styles$7.middleBoxRight,
25282
25346
  value: moduleValue,
25283
25347
  onChange: (val) => onBaseInfoChange("value", val)
25284
25348
  })), /* @__PURE__ */ React$1.createElement("div", {
25285
- className: styles$6.middleBox
25349
+ className: styles$7.middleBox
25286
25350
  }, /* @__PURE__ */ React$1.createElement("label", {
25287
- className: styles$6.middleBoxLeft
25351
+ className: styles$7.middleBoxLeft
25288
25352
  }, "\u6A21\u5757\u53C2\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(TableFormProxy, {
25289
- className: styles$6.middleBoxRight,
25353
+ className: styles$7.middleBoxRight,
25290
25354
  value: schema.get("params"),
25291
25355
  onChange: (v2) => onBaseInfoChange("params", v2)
25292
25356
  })), moduleValue === "ftp-tabs" && /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
25293
- className: styles$6.middleBox
25357
+ className: styles$7.middleBox
25294
25358
  }, /* @__PURE__ */ React$1.createElement("label", {
25295
- className: styles$6.middleBoxLeft
25359
+ className: styles$7.middleBoxLeft
25296
25360
  }, "\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
25297
- className: styles$6.middleBoxRight,
25361
+ className: styles$7.middleBoxRight,
25298
25362
  value: schema.get("dataIndex"),
25299
25363
  size: "small",
25300
25364
  onChange: (v2) => onBaseInfoChange("dataIndex", v2)
25301
25365
  })), /* @__PURE__ */ React$1.createElement("div", {
25302
- className: styles$6.middleBox
25366
+ className: styles$7.middleBox
25303
25367
  }, /* @__PURE__ */ React$1.createElement("label", {
25304
- className: styles$6.middleBoxLeft
25368
+ className: styles$7.middleBoxLeft
25305
25369
  }, "\u9ED8\u8BA4\u503C\uFF1A"), /* @__PURE__ */ React$1.createElement(DynamicValueBase, {
25306
- className: styles$6.middleBoxRight,
25370
+ className: styles$7.middleBoxRight,
25307
25371
  value: schema.get("defaultTabValue"),
25308
25372
  size: "small",
25309
25373
  onChange: (v2) => onBaseInfoChange("defaultTabValue", v2)
25310
25374
  })), /* @__PURE__ */ React$1.createElement("div", {
25311
- className: styles$6.middleBox
25375
+ className: styles$7.middleBox
25312
25376
  }, /* @__PURE__ */ React$1.createElement("label", {
25313
- className: styles$6.middleBoxLeft
25377
+ className: styles$7.middleBoxLeft
25314
25378
  }, "\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"), /* @__PURE__ */ React$1.createElement("div", {
25315
- className: styles$6.middleBoxRight
25379
+ className: styles$7.middleBoxRight
25316
25380
  }, /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
25317
25381
  schema: schema.getSourcePanel(),
25318
25382
  isSelectType: false
@@ -25325,17 +25389,17 @@ function contentRender(props) {
25325
25389
  href: "https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"
25326
25390
  }, "\u6587\u6863"))))));
25327
25391
  }
25328
- const CustomTabItem$4 = ({ title, icon }) => {
25392
+ const CustomTabItem$4 = ({ title: title2, icon }) => {
25329
25393
  return /* @__PURE__ */ React$1.createElement("div", {
25330
- className: styles$6.customTabItem
25394
+ className: styles$7.customTabItem
25331
25395
  }, /* @__PURE__ */ React$1.createElement("div", {
25332
- className: styles$6.tabTitle
25396
+ className: styles$7.tabTitle
25333
25397
  }, /* @__PURE__ */ React$1.createElement(Icon, {
25334
25398
  type: icon,
25335
25399
  size: "small"
25336
25400
  }), /* @__PURE__ */ React$1.createElement("span", {
25337
- className: styles$6.tabLabel
25338
- }, title)));
25401
+ className: styles$7.tabLabel
25402
+ }, title2)));
25339
25403
  };
25340
25404
  function FtpBuild$1({ schema, moduleMap }) {
25341
25405
  const { getApiFields } = useSwagger$1();
@@ -25398,7 +25462,7 @@ const tableArrayBottom = "_tableArrayBottom_16ght_32";
25398
25462
  const itemTitle = "_itemTitle_16ght_39";
25399
25463
  const collapseContent = "_collapseContent_16ght_69";
25400
25464
  const itemClose = "_itemClose_16ght_73";
25401
- var styles$5 = {
25465
+ var styles$6 = {
25402
25466
  mddTableArray,
25403
25467
  tableArrayTitle,
25404
25468
  tableArrayContent,
@@ -25410,7 +25474,7 @@ var styles$5 = {
25410
25474
  itemClose
25411
25475
  };
25412
25476
  const DRAG_KEY = "TableArrayPanelTitle";
25413
- const { Panel } = Collapse;
25477
+ const { Panel: Panel$1 } = Collapse;
25414
25478
  const TitleRender = (props) => {
25415
25479
  const ref = useRef(null);
25416
25480
  const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
@@ -25441,7 +25505,7 @@ const TitleRender = (props) => {
25441
25505
  });
25442
25506
  const opacity = isDragging ? 0 : 1;
25443
25507
  draggable && drag(drop(ref));
25444
- const cls = classnames.bind(styles$5)({
25508
+ const cls = classnames.bind(styles$6)({
25445
25509
  itemTitle: "itemTitle",
25446
25510
  "drop-over-upward": isOver && index2 < sourceItem.index,
25447
25511
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -25454,7 +25518,7 @@ const TitleRender = (props) => {
25454
25518
  }, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
25455
25519
  type: "close",
25456
25520
  size: "small",
25457
- className: styles$5.itemClose,
25521
+ className: styles$6.itemClose,
25458
25522
  onClick: onRemove
25459
25523
  }));
25460
25524
  };
@@ -25468,7 +25532,7 @@ const getTypeContentMap = (typeContent2) => {
25468
25532
  };
25469
25533
  function MddTableArray(props) {
25470
25534
  const {
25471
- title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
25535
+ title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
25472
25536
  data = [],
25473
25537
  onChange = () => {
25474
25538
  },
@@ -25498,11 +25562,11 @@ function MddTableArray(props) {
25498
25562
  onChange({ record, index: index2, data });
25499
25563
  };
25500
25564
  return /* @__PURE__ */ React$1.createElement("div", {
25501
- className: styles$5.mddTableArray
25565
+ className: styles$6.mddTableArray
25502
25566
  }, /* @__PURE__ */ React$1.createElement("div", {
25503
- className: styles$5.tableArrayTitle
25504
- }, title), /* @__PURE__ */ React$1.createElement("div", {
25505
- className: styles$5.tableArrayContent
25567
+ className: styles$6.tableArrayTitle
25568
+ }, title2), /* @__PURE__ */ React$1.createElement("div", {
25569
+ className: styles$6.tableArrayContent
25506
25570
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
25507
25571
  backend: HTML5Backend
25508
25572
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
@@ -25510,7 +25574,7 @@ function MddTableArray(props) {
25510
25574
  }, data.map((item, idx) => {
25511
25575
  var _a2;
25512
25576
  const type = item instanceof JSONWatch ? item.get("type") : item == null ? void 0 : item.type;
25513
- return /* @__PURE__ */ React$1.createElement(Panel, {
25577
+ return /* @__PURE__ */ React$1.createElement(Panel$1, {
25514
25578
  title: /* @__PURE__ */ React$1.createElement(TitleRender, {
25515
25579
  index: idx,
25516
25580
  draggable,
@@ -25524,10 +25588,10 @@ function MddTableArray(props) {
25524
25588
  customRender: titleRender
25525
25589
  })
25526
25590
  }, /* @__PURE__ */ React$1.createElement("div", {
25527
- className: styles$5.collapseContent
25591
+ className: styles$6.collapseContent
25528
25592
  }, (_a2 = typeContentMap[type]) == null ? void 0 : _a2.contentRender({ data: item, index: idx, onChange: onTableArrayChange })));
25529
25593
  })))), /* @__PURE__ */ React$1.createElement("div", {
25530
- className: styles$5.tableArrayBottom
25594
+ className: styles$6.tableArrayBottom
25531
25595
  }, /* @__PURE__ */ React$1.createElement(Button, {
25532
25596
  onClick: onAdd,
25533
25597
  style: { padding: "0 48px" }
@@ -26035,6 +26099,197 @@ function DetailStaticStep(props) {
26035
26099
  single: true
26036
26100
  })));
26037
26101
  }
26102
+ const title = "_title_10adh_1";
26103
+ const titleItem = "_titleItem_10adh_7";
26104
+ const titleItemLabel = "_titleItemLabel_10adh_12";
26105
+ var styles$5 = {
26106
+ title,
26107
+ titleItem,
26108
+ titleItemLabel
26109
+ };
26110
+ const { Panel } = Collapse;
26111
+ function DetailColumns(props) {
26112
+ const { data, index: idx, onChange } = props;
26113
+ const [_2, forceUpdate] = React$1.useState({});
26114
+ React$1.useEffect(() => {
26115
+ data.set("hideCardTitle", true);
26116
+ forceUpdate();
26117
+ return () => {
26118
+ data.set("hideCardTitle", false);
26119
+ forceUpdate();
26120
+ };
26121
+ }, []);
26122
+ const onAddHandle = () => {
26123
+ data.add(
26124
+ {
26125
+ moduleName: "",
26126
+ cols: 1,
26127
+ params: [],
26128
+ canUpdateOtherColumns: true,
26129
+ canBeUpdated: true
26130
+ },
26131
+ "columnsBoxes"
26132
+ );
26133
+ forceUpdate({});
26134
+ };
26135
+ const onRemoveHandle = (index2) => {
26136
+ data.remove(index2, "columnsBoxes");
26137
+ forceUpdate({});
26138
+ };
26139
+ const onChangeHandle = ({ index: index2, record }) => {
26140
+ data.update(index2, record, "columnsBoxes");
26141
+ forceUpdate({});
26142
+ };
26143
+ return /* @__PURE__ */ React$1.createElement(Form, {
26144
+ labelCol: { span: 4 },
26145
+ wrapperCol: { span: 19 },
26146
+ size: "small",
26147
+ onChange: (values, item) => {
26148
+ data.set(item.name, item.value);
26149
+ onChange({ index: idx, record: data });
26150
+ }
26151
+ }, /* @__PURE__ */ React$1.createElement(Form.Item, {
26152
+ labelAlign: "left",
26153
+ label: "\u5E03\u5C40\u65B9\u5F0F",
26154
+ name: "columnsDirection"
26155
+ }, /* @__PURE__ */ React$1.createElement(CnRadioGroup, {
26156
+ defaultValue: data.get("columnsDirection")
26157
+ }, /* @__PURE__ */ React$1.createElement(CnRadio, {
26158
+ value: "row"
26159
+ }, "\u5DE6\u53F3\u5E03\u5C40"))), /* @__PURE__ */ React$1.createElement(Form.Item, {
26160
+ labelAlign: "left",
26161
+ label: "\u9690\u85CF\u5361\u7247\u5934\u90E8",
26162
+ name: "hideCardTitle"
26163
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26164
+ checked: data.get("hideCardTitle")
26165
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
26166
+ labelAlign: "top",
26167
+ label: ""
26168
+ }, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
26169
+ data: data.get("columnsBoxes"),
26170
+ titleRender: customTitleRender$1,
26171
+ contentRender,
26172
+ title: "\u914D\u7F6E\u5206\u680F\u4FE1\u606F",
26173
+ tip: "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24",
26174
+ onChange: onChangeHandle,
26175
+ onSort: (newList) => {
26176
+ data.setItemAll(newList, "columnsBoxes");
26177
+ forceUpdate({});
26178
+ },
26179
+ onAdd: onAddHandle,
26180
+ onRemove: (index2) => onRemoveHandle(index2)
26181
+ })), data.get("hideCardTitle") ? null : /* @__PURE__ */ React$1.createElement(ActionsPanel, {
26182
+ schema: data
26183
+ }));
26184
+ }
26185
+ function customTitleRender$1(props) {
26186
+ const { data, index: index2, onChange, moduleDataSource } = props;
26187
+ return /* @__PURE__ */ React$1.createElement("div", {
26188
+ className: styles$5.title
26189
+ }, /* @__PURE__ */ React$1.createElement("div", {
26190
+ className: styles$5.titleItem
26191
+ }, /* @__PURE__ */ React$1.createElement("label", {
26192
+ className: styles$5.titleItemLabel
26193
+ }, "\u6A21\u5757\u5730\u5740"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
26194
+ placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",
26195
+ hasClear: true,
26196
+ size: "small",
26197
+ style: {
26198
+ minWidth: 280
26199
+ },
26200
+ dataSource: (moduleDataSource == null ? void 0 : moduleDataSource.l4ModuleOptions) || moduleDataSource || [],
26201
+ value: data == null ? void 0 : data.moduleName,
26202
+ onChange: (v2) => onChange({ ...data, moduleName: v2 })
26203
+ })), /* @__PURE__ */ React$1.createElement("div", {
26204
+ className: styles$5.titleItem
26205
+ }, /* @__PURE__ */ React$1.createElement("label", {
26206
+ className: styles$5.titleItemLabel
26207
+ }, /* @__PURE__ */ React$1.createElement(Balloon, {
26208
+ trigger: /* @__PURE__ */ React$1.createElement("div", {
26209
+ style: { display: "flex", alignItems: "center" }
26210
+ }, "\u5360\u5217\u6570 ", /* @__PURE__ */ React$1.createElement(Icon, {
26211
+ type: "help",
26212
+ size: "small"
26213
+ })),
26214
+ align: "t"
26215
+ }, /* @__PURE__ */ React$1.createElement("b", null, "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24"))), /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
26216
+ size: "small",
26217
+ min: 0,
26218
+ max: 24,
26219
+ value: data == null ? void 0 : data.cols,
26220
+ onChange: (v2) => onChange({ ...data, cols: v2 }),
26221
+ placeholder: "\u5360\u5217\u6570 \u4E4B\u548C\u5E94\u4E3A24"
26222
+ })));
26223
+ }
26224
+ const layoutConfig = {
26225
+ wrapperCol: { span: 16 },
26226
+ labelCol: { span: 8 }
26227
+ };
26228
+ function contentRender(props) {
26229
+ return /* @__PURE__ */ React$1.createElement(ContentRender, {
26230
+ ...props
26231
+ });
26232
+ }
26233
+ const ContentRender = (props) => {
26234
+ const { data, index: index2, onChange } = props;
26235
+ return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Form.Item, {
26236
+ name: "",
26237
+ wrapperCol: { span: 22 },
26238
+ labelCol: { span: 2 },
26239
+ style: { position: "relative" },
26240
+ label: /* @__PURE__ */ React$1.createElement("div", null, "\u53C2\u6570", /* @__PURE__ */ React$1.createElement("a", {
26241
+ rel: "noreferrer",
26242
+ target: "_blank",
26243
+ href: "https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",
26244
+ title: "\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",
26245
+ className: "help-link"
26246
+ }, "\u5E2E\u52A9"))
26247
+ }, /* @__PURE__ */ React$1.createElement(FormilyTableFormProxy, {
26248
+ keyTitle: "key(\u53C2\u6570\u540D)",
26249
+ valueTitle: "value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",
26250
+ value: data == null ? void 0 : data.params,
26251
+ onChange: (v2) => onChange({ index: index2, record: { ...data, params: v2 } })
26252
+ })), /* @__PURE__ */ React$1.createElement(Collapse, {
26253
+ accordion: true
26254
+ }, /* @__PURE__ */ React$1.createElement(Panel, {
26255
+ title: /* @__PURE__ */ React$1.createElement(Balloon, {
26256
+ trigger: /* @__PURE__ */ React$1.createElement("div", {
26257
+ style: { width: "fit-content", display: "flex", alignItems: "center" }
26258
+ }, "\u5176\u4ED6\u914D\u7F6E\uFF1A", /* @__PURE__ */ React$1.createElement(Icon, {
26259
+ type: "help",
26260
+ size: "small"
26261
+ })),
26262
+ align: "t"
26263
+ }, "\u914D\u7F6E\u4EE5\u4E0B\u5C5E\u6027\u540E\uFF0C\u65B9\u53EF\u5728\u6BCF\u4E2A\u5206\u680F\u4E2D \u4F7F\u7528\u3010\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3011\u4E8B\u4EF6\uFF0C\u5F15\u64CE\u4F1A\u76D1\u542C \u5E76\u81EA\u52A8\u66F4\u65B0\u5176\u4ED6\u5206\u680F\uFF08\u89E6\u53D1\u4E00\u4E2A detail:updateColumns \u4E8B\u4EF6\u3002\u82E5\u5206\u680F\u4E3A FTP \u7C7B\u578B \u5219\u652F\u6301\u81EA\u52A8\u5237\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301\uFF09\u3002", /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("b", null, "\u5EFA\u8BAE\u5728\u6BCF\u4E2A\u5206\u680F\u6A21\u5757\u4E2D\u5199\u80F6\u6C34\u4EE3\u7801\uFF0C\u624B\u52A8\u63A7\u5236\u5176\u4ED6\u5206\u680F\u5237\u65B0\u3002")))
26264
+ }, /* @__PURE__ */ React$1.createElement(Form.Item, {
26265
+ ...layoutConfig,
26266
+ label: "\u53EF\u4EE5\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0",
26267
+ name: ""
26268
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26269
+ defaultChecked: data == null ? void 0 : data.canUpdateOtherColumns,
26270
+ onChange: (v2) => onChange({ index: index2, record: { ...data, canUpdateOtherColumns: v2 } })
26271
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
26272
+ ...layoutConfig,
26273
+ label: "\u53EF\u88AB\u5176\u4ED6\u5206\u680F\u5237\u65B0",
26274
+ name: ""
26275
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26276
+ defaultChecked: data == null ? void 0 : data.canBeUpdated,
26277
+ onChange: (v2) => onChange({ index: index2, record: { ...data, canBeUpdated: v2 } })
26278
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
26279
+ ...layoutConfig,
26280
+ label: /* @__PURE__ */ React$1.createElement(Balloon, {
26281
+ trigger: /* @__PURE__ */ React$1.createElement("div", null, "\u5F53\u524D\u5206\u680F\u4E3AFTP\u65F6\u81EA\u52A8\u5237\u65B0", /* @__PURE__ */ React$1.createElement(Icon, {
26282
+ type: "help",
26283
+ size: "small"
26284
+ })),
26285
+ align: "t"
26286
+ }, /* @__PURE__ */ React$1.createElement("b", null, "\u4EE5FTP\u9875\u9762\u683C\u5F0F \u88AB\u66F4\u65B0\uFF0C\u5176\u4ED6\u9875\u9762\u7C7B\u578B\u6682\u4E0D\u652F\u6301")),
26287
+ name: ""
26288
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
26289
+ defaultChecked: data == null ? void 0 : data.autoUpdateWhenIsFTP,
26290
+ onChange: (v2) => onChange({ index: index2, record: { ...data, autoUpdateWhenIsFTP: v2 } })
26291
+ })))));
26292
+ };
26038
26293
  const customTabItem$3 = "_customTabItem_1lh1l_1";
26039
26294
  const tabTitle$3 = "_tabTitle_1lh1l_5";
26040
26295
  const tabLabel$3 = "_tabLabel_1lh1l_9";
@@ -26086,6 +26341,15 @@ const typeContent = [
26086
26341
  });
26087
26342
  }
26088
26343
  },
26344
+ {
26345
+ label: "\u5E03\u5C40",
26346
+ value: "detail-columns",
26347
+ contentRender: (props) => {
26348
+ return /* @__PURE__ */ React$1.createElement(DetailColumns, {
26349
+ ...props
26350
+ });
26351
+ }
26352
+ },
26089
26353
  {
26090
26354
  label: "\u5185\u5D4C\u9875\u9762",
26091
26355
  value: "import-component",
@@ -26178,7 +26442,7 @@ function DetailItems({ schema = {} }) {
26178
26442
  onRemove: onRemoveHandle
26179
26443
  }));
26180
26444
  }
26181
- const CustomTabItem$3 = ({ title, icon }) => {
26445
+ const CustomTabItem$3 = ({ title: title2, icon }) => {
26182
26446
  return /* @__PURE__ */ React$1.createElement("div", {
26183
26447
  className: styles$4.customTabItem
26184
26448
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26188,7 +26452,7 @@ const CustomTabItem$3 = ({ title, icon }) => {
26188
26452
  size: "small"
26189
26453
  }), /* @__PURE__ */ React$1.createElement("span", {
26190
26454
  className: styles$4.tabLabel
26191
- }, title)));
26455
+ }, title2)));
26192
26456
  };
26193
26457
  function DetailBuild({ schema }) {
26194
26458
  return /* @__PURE__ */ React$1.createElement(Tab, {
@@ -26476,7 +26740,7 @@ var styles$3 = {
26476
26740
  tabTitle: tabTitle$2,
26477
26741
  tabLabel: tabLabel$2
26478
26742
  };
26479
- const CustomTabItem$2 = ({ title, icon }) => {
26743
+ const CustomTabItem$2 = ({ title: title2, icon }) => {
26480
26744
  return /* @__PURE__ */ React$1.createElement("div", {
26481
26745
  className: styles$3.customTabItem
26482
26746
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26486,9 +26750,9 @@ const CustomTabItem$2 = ({ title, icon }) => {
26486
26750
  size: "small"
26487
26751
  }), /* @__PURE__ */ React$1.createElement("span", {
26488
26752
  className: styles$3.tabLabel
26489
- }, title)));
26753
+ }, title2)));
26490
26754
  };
26491
- const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
26755
+ const CustomKV$1 = ({ title: title2 = "", subTitle = "", children }) => {
26492
26756
  return /* @__PURE__ */ React$1.createElement("div", {
26493
26757
  className: "formily-form-v2-kv"
26494
26758
  }, /* @__PURE__ */ React$1.createElement(Box, {
@@ -26497,7 +26761,7 @@ const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
26497
26761
  className: "formily-form-v2-title-wrapper"
26498
26762
  }, /* @__PURE__ */ React$1.createElement("label", {
26499
26763
  className: "title"
26500
- }, title), /* @__PURE__ */ React$1.createElement("label", {
26764
+ }, title2), /* @__PURE__ */ React$1.createElement("label", {
26501
26765
  className: "subTitle"
26502
26766
  }, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
26503
26767
  };
@@ -26731,7 +26995,7 @@ var styles$2 = {
26731
26995
  kvTitle,
26732
26996
  kvSubTitle
26733
26997
  };
26734
- var CustomKV = ({ title = "", subTitle = "", children }) => {
26998
+ var CustomKV = ({ title: title2 = "", subTitle = "", children }) => {
26735
26999
  return /* @__PURE__ */ React$1.createElement("div", {
26736
27000
  className: styles$2.kvContainer
26737
27001
  }, /* @__PURE__ */ React$1.createElement(Box, {
@@ -26740,7 +27004,7 @@ var CustomKV = ({ title = "", subTitle = "", children }) => {
26740
27004
  className: styles$2.kvWrapper
26741
27005
  }, /* @__PURE__ */ React$1.createElement("label", {
26742
27006
  className: styles$2.kvTitle
26743
- }, title), /* @__PURE__ */ React$1.createElement("label", {
27007
+ }, title2), /* @__PURE__ */ React$1.createElement("label", {
26744
27008
  className: styles$2.kvSubTitle
26745
27009
  }, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
26746
27010
  };
@@ -26752,7 +27016,7 @@ var styles$1 = {
26752
27016
  tabTitle: tabTitle$1,
26753
27017
  tabLabel: tabLabel$1
26754
27018
  };
26755
- const CustomTabItem$1 = ({ title, icon }) => {
27019
+ const CustomTabItem$1 = ({ title: title2, icon }) => {
26756
27020
  return /* @__PURE__ */ React$1.createElement("div", {
26757
27021
  className: styles$1.customTabItem
26758
27022
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26762,7 +27026,7 @@ const CustomTabItem$1 = ({ title, icon }) => {
26762
27026
  size: "small"
26763
27027
  }), /* @__PURE__ */ React$1.createElement("span", {
26764
27028
  className: styles$1.tabLabel
26765
- }, title)));
27029
+ }, title2)));
26766
27030
  };
26767
27031
  function FtpBuild({ schema }) {
26768
27032
  const [_2, forceUpdate] = React$1.useState({});
@@ -27215,7 +27479,7 @@ var styles = {
27215
27479
  tabTitle,
27216
27480
  tabLabel
27217
27481
  };
27218
- const CustomTabItem = ({ title, icon }) => {
27482
+ const CustomTabItem = ({ title: title2, icon }) => {
27219
27483
  return /* @__PURE__ */ React$1.createElement("div", {
27220
27484
  className: styles.customTabItem
27221
27485
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -27225,7 +27489,7 @@ const CustomTabItem = ({ title, icon }) => {
27225
27489
  size: "small"
27226
27490
  }), /* @__PURE__ */ React$1.createElement("span", {
27227
27491
  className: styles.tabLabel
27228
- }, title)));
27492
+ }, title2)));
27229
27493
  };
27230
27494
  function SimpleFtp({ schema }) {
27231
27495
  return /* @__PURE__ */ React$1.createElement(Tab, {