@cniot/mdd-editor 0.2.0-beta.5 → 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/README.MD +3 -0
- package/build/index.cjs.js +16 -16
- package/build/index.es.js +353 -137
- package/build/style.css +1 -1
- package/package.json +1 -1
- package/src/schema/detail/detail-item.js +8 -2
- package/src/template/detail/DetailItems.jsx +8 -0
- package/src/template/detail/components/DetailColumns.jsx +216 -0
- package/src/template/detail/components/DetailColumns.module.scss +18 -0
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 =
|
|
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 =
|
|
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 =
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
14698
|
+
className: styles$d.watchContainer
|
|
14693
14699
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
14694
|
-
className: styles$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
15060
|
+
className: styles$d.dsTitle
|
|
15055
15061
|
}, "\u683C\u5F0F\u5316\u51FA\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
|
|
15056
|
-
className: styles$
|
|
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$
|
|
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$
|
|
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$
|
|
15124
|
+
className: styles$d.dsJSONContent
|
|
15119
15125
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
15120
|
-
className: styles$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
15636
|
+
className: styles$c.dsContainer
|
|
15631
15637
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
15632
|
-
className: styles$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
}
|
|
@@ -23757,7 +23763,7 @@ const itemComponent$1 = "_itemComponent_tl8oe_70";
|
|
|
23757
23763
|
const itemLabel$1 = "_itemLabel_tl8oe_76";
|
|
23758
23764
|
const collapseContent$2 = "_collapseContent_tl8oe_81";
|
|
23759
23765
|
const itemClose$2 = "_itemClose_tl8oe_85";
|
|
23760
|
-
var styles$
|
|
23766
|
+
var styles$a = {
|
|
23761
23767
|
mddTableForm,
|
|
23762
23768
|
tableFormTitle,
|
|
23763
23769
|
tableFormContent,
|
|
@@ -23771,7 +23777,7 @@ var styles$9 = {
|
|
|
23771
23777
|
itemClose: itemClose$2
|
|
23772
23778
|
};
|
|
23773
23779
|
const DRAG_KEY$2 = "PanelTitle";
|
|
23774
|
-
const { Panel: Panel$
|
|
23780
|
+
const { Panel: Panel$3 } = Collapse;
|
|
23775
23781
|
const { Tooltip } = Balloon;
|
|
23776
23782
|
const TitleRender$2 = (props) => {
|
|
23777
23783
|
const ref = useRef(null);
|
|
@@ -23835,7 +23841,7 @@ const TitleRender$2 = (props) => {
|
|
|
23835
23841
|
setValue({ ...value });
|
|
23836
23842
|
onChange(value, key);
|
|
23837
23843
|
};
|
|
23838
|
-
const cls = classnames.bind(styles$
|
|
23844
|
+
const cls = classnames.bind(styles$a)({
|
|
23839
23845
|
itemTitle: "itemTitle",
|
|
23840
23846
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
23841
23847
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -23851,9 +23857,9 @@ const TitleRender$2 = (props) => {
|
|
|
23851
23857
|
onChange: (v2) => titleChange("label", v2),
|
|
23852
23858
|
placeholder: "\u8F93\u5165\u4E2D\u6587\u540D"
|
|
23853
23859
|
}), titleType.includes("type") && /* @__PURE__ */ React$1.createElement("div", {
|
|
23854
|
-
className: styles$
|
|
23860
|
+
className: styles$a.itemComponent
|
|
23855
23861
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
23856
|
-
className: styles$
|
|
23862
|
+
className: styles$a.itemLabel
|
|
23857
23863
|
}, "\u7EC4\u4EF6: "), /* @__PURE__ */ React$1.createElement(Select$2, {
|
|
23858
23864
|
size: "small",
|
|
23859
23865
|
autoWidth: false,
|
|
@@ -23872,9 +23878,9 @@ const TitleRender$2 = (props) => {
|
|
|
23872
23878
|
onChange: (v2) => titleChange("name", v2),
|
|
23873
23879
|
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u53D8\u91CF\u540D"
|
|
23874
23880
|
}), titleType.includes("groupKey") && /* @__PURE__ */ React$1.createElement("div", {
|
|
23875
|
-
className: styles$
|
|
23881
|
+
className: styles$a.itemComponent
|
|
23876
23882
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
23877
|
-
className: styles$
|
|
23883
|
+
className: styles$a.itemLabel
|
|
23878
23884
|
}, "\u5206\u7EC4: "), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
23879
23885
|
size: "small",
|
|
23880
23886
|
value: groupKey,
|
|
@@ -23883,7 +23889,7 @@ const TitleRender$2 = (props) => {
|
|
|
23883
23889
|
})), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
23884
23890
|
type: "close",
|
|
23885
23891
|
size: "small",
|
|
23886
|
-
className: styles$
|
|
23892
|
+
className: styles$a.itemClose,
|
|
23887
23893
|
onClick: onRemove
|
|
23888
23894
|
}));
|
|
23889
23895
|
};
|
|
@@ -23893,7 +23899,7 @@ const watchFields = (listSchema) => {
|
|
|
23893
23899
|
});
|
|
23894
23900
|
return fieldStringArray.join(",");
|
|
23895
23901
|
};
|
|
23896
|
-
const ContentRender$
|
|
23902
|
+
const ContentRender$2 = (props) => {
|
|
23897
23903
|
const { values, effects, onChange, schema, index: index2, extraFieldSchema: extraFieldSchema2, updateForceFLag, listSchema } = props;
|
|
23898
23904
|
const { type, label, name } = values;
|
|
23899
23905
|
const { formilySchema: formilySchema2, dataAdaptor: dataAdaptor2 } = schema || {};
|
|
@@ -23935,7 +23941,7 @@ const ContentRender$1 = (props) => {
|
|
|
23935
23941
|
};
|
|
23936
23942
|
}, [type, updateForceFLag, realSchema]);
|
|
23937
23943
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
23938
|
-
className: styles$
|
|
23944
|
+
className: styles$a.collapseContent
|
|
23939
23945
|
}, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
|
|
23940
23946
|
...formilyForm,
|
|
23941
23947
|
hiddenSubmit: true
|
|
@@ -23943,7 +23949,7 @@ const ContentRender$1 = (props) => {
|
|
|
23943
23949
|
};
|
|
23944
23950
|
function MddTableForm(props, ref) {
|
|
23945
23951
|
const {
|
|
23946
|
-
title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
23952
|
+
title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
23947
23953
|
tip = "",
|
|
23948
23954
|
actionContent = null,
|
|
23949
23955
|
data = [],
|
|
@@ -24010,26 +24016,26 @@ function MddTableForm(props, ref) {
|
|
|
24010
24016
|
forceUpdate();
|
|
24011
24017
|
};
|
|
24012
24018
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
24013
|
-
className: styles$
|
|
24019
|
+
className: styles$a.mddTableForm
|
|
24014
24020
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
24015
|
-
className: styles$
|
|
24016
|
-
}, /* @__PURE__ */ React$1.createElement("div", null,
|
|
24021
|
+
className: styles$a.tableFormTitle
|
|
24022
|
+
}, /* @__PURE__ */ React$1.createElement("div", null, title2, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
|
|
24017
24023
|
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
24018
24024
|
type: "help",
|
|
24019
24025
|
size: "small"
|
|
24020
24026
|
}),
|
|
24021
24027
|
align: "t"
|
|
24022
24028
|
}, tip)), actionContent && /* @__PURE__ */ React$1.createElement("div", {
|
|
24023
|
-
className: styles$
|
|
24029
|
+
className: styles$a.tableFormAction
|
|
24024
24030
|
}, actionContent)), /* @__PURE__ */ React$1.createElement("div", {
|
|
24025
|
-
className: styles$
|
|
24031
|
+
className: styles$a.tableFormContent
|
|
24026
24032
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
24027
24033
|
backend: HTML5Backend
|
|
24028
24034
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
24029
24035
|
accordion: true
|
|
24030
24036
|
}, dataRef.current.map((item, idx) => {
|
|
24031
|
-
item.name || item.dataIndex || `${
|
|
24032
|
-
return /* @__PURE__ */ React$1.createElement(Panel$
|
|
24037
|
+
item.name || item.dataIndex || `${title2}_${idx}`;
|
|
24038
|
+
return /* @__PURE__ */ React$1.createElement(Panel$3, {
|
|
24033
24039
|
title: /* @__PURE__ */ React$1.createElement(TitleRender$2, {
|
|
24034
24040
|
index: idx,
|
|
24035
24041
|
draggable,
|
|
@@ -24046,7 +24052,7 @@ function MddTableForm(props, ref) {
|
|
|
24046
24052
|
titleType,
|
|
24047
24053
|
componentOptions: props.componentOptions
|
|
24048
24054
|
})
|
|
24049
|
-
}, /* @__PURE__ */ React$1.createElement(ContentRender$
|
|
24055
|
+
}, /* @__PURE__ */ React$1.createElement(ContentRender$2, {
|
|
24050
24056
|
updateForceFLag: sortUpdateFlag[idx],
|
|
24051
24057
|
values: item,
|
|
24052
24058
|
index: idx,
|
|
@@ -24064,7 +24070,7 @@ function MddTableForm(props, ref) {
|
|
|
24064
24070
|
}
|
|
24065
24071
|
}));
|
|
24066
24072
|
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
24067
|
-
className: styles$
|
|
24073
|
+
className: styles$a.tableFormBottom
|
|
24068
24074
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
24069
24075
|
onClick: onAddHandle,
|
|
24070
24076
|
style: { padding: "0 48px" }
|
|
@@ -24104,14 +24110,14 @@ const FormTitle = "_FormTitle_1e2nn_20";
|
|
|
24104
24110
|
const FormTitleHelp = "_FormTitleHelp_1e2nn_24";
|
|
24105
24111
|
const FormContent = "_FormContent_1e2nn_30";
|
|
24106
24112
|
const content = "_content_1e2nn_35";
|
|
24107
|
-
var styles$
|
|
24113
|
+
var styles$9 = {
|
|
24108
24114
|
mddForm,
|
|
24109
24115
|
FormTitle,
|
|
24110
24116
|
FormTitleHelp,
|
|
24111
24117
|
FormContent,
|
|
24112
24118
|
content
|
|
24113
24119
|
};
|
|
24114
|
-
const ContentRender = (props) => {
|
|
24120
|
+
const ContentRender$1 = (props) => {
|
|
24115
24121
|
const { values, index: index2, effects, onChange, schema } = props;
|
|
24116
24122
|
const formilyForm = useMemo(() => {
|
|
24117
24123
|
return {
|
|
@@ -24134,7 +24140,7 @@ const ContentRender = (props) => {
|
|
|
24134
24140
|
};
|
|
24135
24141
|
}, [schema]);
|
|
24136
24142
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
24137
|
-
className: styles$
|
|
24143
|
+
className: styles$9.content
|
|
24138
24144
|
}, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
|
|
24139
24145
|
...formilyForm,
|
|
24140
24146
|
hiddenSubmit: true
|
|
@@ -24142,7 +24148,7 @@ const ContentRender = (props) => {
|
|
|
24142
24148
|
};
|
|
24143
24149
|
function MddForm(props) {
|
|
24144
24150
|
const {
|
|
24145
|
-
title = "\u914D\u7F6E\u5206\u9875",
|
|
24151
|
+
title: title2 = "\u914D\u7F6E\u5206\u9875",
|
|
24146
24152
|
help,
|
|
24147
24153
|
data = {},
|
|
24148
24154
|
type,
|
|
@@ -24154,16 +24160,16 @@ function MddForm(props) {
|
|
|
24154
24160
|
contentStyle
|
|
24155
24161
|
} = props;
|
|
24156
24162
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
24157
|
-
className: styles$
|
|
24163
|
+
className: styles$9.mddForm,
|
|
24158
24164
|
style: style2
|
|
24159
24165
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
24160
|
-
className: styles$
|
|
24161
|
-
},
|
|
24162
|
-
className: styles$
|
|
24166
|
+
className: styles$9.FormTitle
|
|
24167
|
+
}, title2), help && /* @__PURE__ */ React$1.createElement("div", {
|
|
24168
|
+
className: styles$9.FormTitleHelp
|
|
24163
24169
|
}, help), /* @__PURE__ */ React$1.createElement("div", {
|
|
24164
|
-
className: styles$
|
|
24170
|
+
className: styles$9.FormContent,
|
|
24165
24171
|
style: contentStyle
|
|
24166
|
-
}, children || /* @__PURE__ */ React$1.createElement(ContentRender, {
|
|
24172
|
+
}, children || /* @__PURE__ */ React$1.createElement(ContentRender$1, {
|
|
24167
24173
|
values: data,
|
|
24168
24174
|
schema: CompSchema[type],
|
|
24169
24175
|
effects,
|
|
@@ -25130,7 +25136,7 @@ const tableArrayBottom$1 = "_tableArrayBottom_16ght_32";
|
|
|
25130
25136
|
const itemTitle$1 = "_itemTitle_16ght_39";
|
|
25131
25137
|
const collapseContent$1 = "_collapseContent_16ght_69";
|
|
25132
25138
|
const itemClose$1 = "_itemClose_16ght_73";
|
|
25133
|
-
var styles$
|
|
25139
|
+
var styles$8 = {
|
|
25134
25140
|
mddTableArray: mddTableArray$1,
|
|
25135
25141
|
tableArrayTitle: tableArrayTitle$1,
|
|
25136
25142
|
tableArrayContent: tableArrayContent$1,
|
|
@@ -25142,11 +25148,13 @@ var styles$7 = {
|
|
|
25142
25148
|
itemClose: itemClose$1
|
|
25143
25149
|
};
|
|
25144
25150
|
const DRAG_KEY$1 = "TableArrayPanelTitle";
|
|
25145
|
-
const { Panel: Panel$
|
|
25151
|
+
const { Panel: Panel$2 } = Collapse;
|
|
25146
25152
|
const TitleRender$1 = (props) => {
|
|
25147
25153
|
const ref = useRef(null);
|
|
25148
25154
|
const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
|
|
25149
25155
|
} } = props;
|
|
25156
|
+
const { dataMap, getModule } = useModule$1();
|
|
25157
|
+
const moduleDataSource = getModule("$ModuleDataSource");
|
|
25150
25158
|
const [{ isOver }, drop] = useDrop({
|
|
25151
25159
|
accept: DRAG_KEY$1,
|
|
25152
25160
|
collect(monitor) {
|
|
@@ -25173,7 +25181,7 @@ const TitleRender$1 = (props) => {
|
|
|
25173
25181
|
});
|
|
25174
25182
|
const opacity = isDragging ? 0 : 1;
|
|
25175
25183
|
draggable && drag(drop(ref));
|
|
25176
|
-
const cls = classnames.bind(styles$
|
|
25184
|
+
const cls = classnames.bind(styles$8)({
|
|
25177
25185
|
itemTitle: "itemTitle",
|
|
25178
25186
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
25179
25187
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -25183,16 +25191,18 @@ const TitleRender$1 = (props) => {
|
|
|
25183
25191
|
className: cls,
|
|
25184
25192
|
style: { cursor: draggable ? "move" : "default", opacity },
|
|
25185
25193
|
onClick: (e) => e.stopPropagation()
|
|
25186
|
-
}, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25194
|
+
}, customRender && customRender({ data, index: index2, onChange, moduleDataSource }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25187
25195
|
type: "close",
|
|
25188
25196
|
size: "small",
|
|
25189
|
-
className: styles$
|
|
25197
|
+
className: styles$8.itemClose,
|
|
25190
25198
|
onClick: onRemove
|
|
25191
25199
|
}));
|
|
25192
25200
|
};
|
|
25193
25201
|
function MddTableSimpleArray(props) {
|
|
25202
|
+
var _a2;
|
|
25194
25203
|
const {
|
|
25195
|
-
title = "",
|
|
25204
|
+
title: title2 = "",
|
|
25205
|
+
tip,
|
|
25196
25206
|
data = [],
|
|
25197
25207
|
onChange = () => {
|
|
25198
25208
|
},
|
|
@@ -25221,17 +25231,23 @@ function MddTableSimpleArray(props) {
|
|
|
25221
25231
|
onChange({ record, index: index2, data });
|
|
25222
25232
|
};
|
|
25223
25233
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25224
|
-
className: styles$
|
|
25234
|
+
className: styles$8.mddTableArray
|
|
25225
25235
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25226
|
-
className: styles$
|
|
25227
|
-
},
|
|
25228
|
-
|
|
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
|
|
25229
25245
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
25230
25246
|
backend: HTML5Backend
|
|
25231
25247
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
25232
25248
|
accordion: true
|
|
25233
|
-
}, data.map((item, idx) => {
|
|
25234
|
-
return /* @__PURE__ */ React$1.createElement(Panel$
|
|
25249
|
+
}, (_a2 = data == null ? void 0 : data.map) == null ? void 0 : _a2.call(data, (item, idx) => {
|
|
25250
|
+
return /* @__PURE__ */ React$1.createElement(Panel$2, {
|
|
25235
25251
|
title: /* @__PURE__ */ React$1.createElement(TitleRender$1, {
|
|
25236
25252
|
index: idx,
|
|
25237
25253
|
draggable,
|
|
@@ -25244,10 +25260,10 @@ function MddTableSimpleArray(props) {
|
|
|
25244
25260
|
customRender: titleRender
|
|
25245
25261
|
})
|
|
25246
25262
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25247
|
-
className: styles$
|
|
25263
|
+
className: styles$8.collapseContent
|
|
25248
25264
|
}, contentRender2({ data: item, index: idx, onChange: onTableArrayChange })));
|
|
25249
25265
|
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
25250
|
-
className: styles$
|
|
25266
|
+
className: styles$8.tableArrayBottom
|
|
25251
25267
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
25252
25268
|
onClick: onAdd,
|
|
25253
25269
|
style: { padding: "0 48px" }
|
|
@@ -25259,7 +25275,7 @@ const tabLabel$4 = "_tabLabel_119xt_9";
|
|
|
25259
25275
|
const middleBox = "_middleBox_119xt_20";
|
|
25260
25276
|
const middleBoxLeft = "_middleBoxLeft_119xt_26";
|
|
25261
25277
|
const middleBoxRight = "_middleBoxRight_119xt_31";
|
|
25262
|
-
var styles$
|
|
25278
|
+
var styles$7 = {
|
|
25263
25279
|
customTabItem: customTabItem$4,
|
|
25264
25280
|
tabTitle: tabTitle$4,
|
|
25265
25281
|
tabLabel: tabLabel$4,
|
|
@@ -25299,8 +25315,8 @@ function Middle(props) {
|
|
|
25299
25315
|
};
|
|
25300
25316
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
|
|
25301
25317
|
data: schema.getMiddlePanel(),
|
|
25302
|
-
titleRender: customTitleRender$
|
|
25303
|
-
contentRender,
|
|
25318
|
+
titleRender: customTitleRender$2,
|
|
25319
|
+
contentRender: contentRender$1,
|
|
25304
25320
|
title: "\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",
|
|
25305
25321
|
onChange: onChangeHandle,
|
|
25306
25322
|
onSort: onSortHandle,
|
|
@@ -25308,11 +25324,11 @@ function Middle(props) {
|
|
|
25308
25324
|
onRemove: onRemoveHandle
|
|
25309
25325
|
}));
|
|
25310
25326
|
}
|
|
25311
|
-
function customTitleRender$
|
|
25327
|
+
function customTitleRender$2(props) {
|
|
25312
25328
|
const { data, index: index2 } = props;
|
|
25313
25329
|
return /* @__PURE__ */ React$1.createElement("div", null, "\u4E2D\u95F4\u6A21\u5757", index2 + 1);
|
|
25314
25330
|
}
|
|
25315
|
-
function contentRender(props) {
|
|
25331
|
+
function contentRender$1(props) {
|
|
25316
25332
|
const { data: schema, index: index2, onChange } = props;
|
|
25317
25333
|
const onBaseInfoChange = (key, value) => {
|
|
25318
25334
|
schema.set(key, value);
|
|
@@ -25320,47 +25336,47 @@ function contentRender(props) {
|
|
|
25320
25336
|
};
|
|
25321
25337
|
const moduleValue = schema.get("value");
|
|
25322
25338
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
25323
|
-
className: styles$
|
|
25339
|
+
className: styles$7.middleBox
|
|
25324
25340
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25325
|
-
className: styles$
|
|
25341
|
+
className: styles$7.middleBoxLeft
|
|
25326
25342
|
}, "\u6E32\u67D3\u6A21\u5757\uFF1A"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
|
|
25327
25343
|
dataSource: Middle_Module_Opts,
|
|
25328
25344
|
size: "small",
|
|
25329
|
-
className: styles$
|
|
25345
|
+
className: styles$7.middleBoxRight,
|
|
25330
25346
|
value: moduleValue,
|
|
25331
25347
|
onChange: (val) => onBaseInfoChange("value", val)
|
|
25332
25348
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25333
|
-
className: styles$
|
|
25349
|
+
className: styles$7.middleBox
|
|
25334
25350
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25335
|
-
className: styles$
|
|
25351
|
+
className: styles$7.middleBoxLeft
|
|
25336
25352
|
}, "\u6A21\u5757\u53C2\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(TableFormProxy, {
|
|
25337
|
-
className: styles$
|
|
25353
|
+
className: styles$7.middleBoxRight,
|
|
25338
25354
|
value: schema.get("params"),
|
|
25339
25355
|
onChange: (v2) => onBaseInfoChange("params", v2)
|
|
25340
25356
|
})), moduleValue === "ftp-tabs" && /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
|
|
25341
|
-
className: styles$
|
|
25357
|
+
className: styles$7.middleBox
|
|
25342
25358
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25343
|
-
className: styles$
|
|
25359
|
+
className: styles$7.middleBoxLeft
|
|
25344
25360
|
}, "\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
25345
|
-
className: styles$
|
|
25361
|
+
className: styles$7.middleBoxRight,
|
|
25346
25362
|
value: schema.get("dataIndex"),
|
|
25347
25363
|
size: "small",
|
|
25348
25364
|
onChange: (v2) => onBaseInfoChange("dataIndex", v2)
|
|
25349
25365
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25350
|
-
className: styles$
|
|
25366
|
+
className: styles$7.middleBox
|
|
25351
25367
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25352
|
-
className: styles$
|
|
25368
|
+
className: styles$7.middleBoxLeft
|
|
25353
25369
|
}, "\u9ED8\u8BA4\u503C\uFF1A"), /* @__PURE__ */ React$1.createElement(DynamicValueBase, {
|
|
25354
|
-
className: styles$
|
|
25370
|
+
className: styles$7.middleBoxRight,
|
|
25355
25371
|
value: schema.get("defaultTabValue"),
|
|
25356
25372
|
size: "small",
|
|
25357
25373
|
onChange: (v2) => onBaseInfoChange("defaultTabValue", v2)
|
|
25358
25374
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25359
|
-
className: styles$
|
|
25375
|
+
className: styles$7.middleBox
|
|
25360
25376
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25361
|
-
className: styles$
|
|
25377
|
+
className: styles$7.middleBoxLeft
|
|
25362
25378
|
}, "\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"), /* @__PURE__ */ React$1.createElement("div", {
|
|
25363
|
-
className: styles$
|
|
25379
|
+
className: styles$7.middleBoxRight
|
|
25364
25380
|
}, /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
25365
25381
|
schema: schema.getSourcePanel(),
|
|
25366
25382
|
isSelectType: false
|
|
@@ -25373,17 +25389,17 @@ function contentRender(props) {
|
|
|
25373
25389
|
href: "https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"
|
|
25374
25390
|
}, "\u6587\u6863"))))));
|
|
25375
25391
|
}
|
|
25376
|
-
const CustomTabItem$4 = ({ title, icon }) => {
|
|
25392
|
+
const CustomTabItem$4 = ({ title: title2, icon }) => {
|
|
25377
25393
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25378
|
-
className: styles$
|
|
25394
|
+
className: styles$7.customTabItem
|
|
25379
25395
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25380
|
-
className: styles$
|
|
25396
|
+
className: styles$7.tabTitle
|
|
25381
25397
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25382
25398
|
type: icon,
|
|
25383
25399
|
size: "small"
|
|
25384
25400
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25385
|
-
className: styles$
|
|
25386
|
-
},
|
|
25401
|
+
className: styles$7.tabLabel
|
|
25402
|
+
}, title2)));
|
|
25387
25403
|
};
|
|
25388
25404
|
function FtpBuild$1({ schema, moduleMap }) {
|
|
25389
25405
|
const { getApiFields } = useSwagger$1();
|
|
@@ -25446,7 +25462,7 @@ const tableArrayBottom = "_tableArrayBottom_16ght_32";
|
|
|
25446
25462
|
const itemTitle = "_itemTitle_16ght_39";
|
|
25447
25463
|
const collapseContent = "_collapseContent_16ght_69";
|
|
25448
25464
|
const itemClose = "_itemClose_16ght_73";
|
|
25449
|
-
var styles$
|
|
25465
|
+
var styles$6 = {
|
|
25450
25466
|
mddTableArray,
|
|
25451
25467
|
tableArrayTitle,
|
|
25452
25468
|
tableArrayContent,
|
|
@@ -25458,7 +25474,7 @@ var styles$5 = {
|
|
|
25458
25474
|
itemClose
|
|
25459
25475
|
};
|
|
25460
25476
|
const DRAG_KEY = "TableArrayPanelTitle";
|
|
25461
|
-
const { Panel } = Collapse;
|
|
25477
|
+
const { Panel: Panel$1 } = Collapse;
|
|
25462
25478
|
const TitleRender = (props) => {
|
|
25463
25479
|
const ref = useRef(null);
|
|
25464
25480
|
const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
|
|
@@ -25489,7 +25505,7 @@ const TitleRender = (props) => {
|
|
|
25489
25505
|
});
|
|
25490
25506
|
const opacity = isDragging ? 0 : 1;
|
|
25491
25507
|
draggable && drag(drop(ref));
|
|
25492
|
-
const cls = classnames.bind(styles$
|
|
25508
|
+
const cls = classnames.bind(styles$6)({
|
|
25493
25509
|
itemTitle: "itemTitle",
|
|
25494
25510
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
25495
25511
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -25502,7 +25518,7 @@ const TitleRender = (props) => {
|
|
|
25502
25518
|
}, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25503
25519
|
type: "close",
|
|
25504
25520
|
size: "small",
|
|
25505
|
-
className: styles$
|
|
25521
|
+
className: styles$6.itemClose,
|
|
25506
25522
|
onClick: onRemove
|
|
25507
25523
|
}));
|
|
25508
25524
|
};
|
|
@@ -25516,7 +25532,7 @@ const getTypeContentMap = (typeContent2) => {
|
|
|
25516
25532
|
};
|
|
25517
25533
|
function MddTableArray(props) {
|
|
25518
25534
|
const {
|
|
25519
|
-
title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
25535
|
+
title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
25520
25536
|
data = [],
|
|
25521
25537
|
onChange = () => {
|
|
25522
25538
|
},
|
|
@@ -25546,11 +25562,11 @@ function MddTableArray(props) {
|
|
|
25546
25562
|
onChange({ record, index: index2, data });
|
|
25547
25563
|
};
|
|
25548
25564
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25549
|
-
className: styles$
|
|
25565
|
+
className: styles$6.mddTableArray
|
|
25550
25566
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25551
|
-
className: styles$
|
|
25552
|
-
},
|
|
25553
|
-
className: styles$
|
|
25567
|
+
className: styles$6.tableArrayTitle
|
|
25568
|
+
}, title2), /* @__PURE__ */ React$1.createElement("div", {
|
|
25569
|
+
className: styles$6.tableArrayContent
|
|
25554
25570
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
25555
25571
|
backend: HTML5Backend
|
|
25556
25572
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
@@ -25558,7 +25574,7 @@ function MddTableArray(props) {
|
|
|
25558
25574
|
}, data.map((item, idx) => {
|
|
25559
25575
|
var _a2;
|
|
25560
25576
|
const type = item instanceof JSONWatch ? item.get("type") : item == null ? void 0 : item.type;
|
|
25561
|
-
return /* @__PURE__ */ React$1.createElement(Panel, {
|
|
25577
|
+
return /* @__PURE__ */ React$1.createElement(Panel$1, {
|
|
25562
25578
|
title: /* @__PURE__ */ React$1.createElement(TitleRender, {
|
|
25563
25579
|
index: idx,
|
|
25564
25580
|
draggable,
|
|
@@ -25572,10 +25588,10 @@ function MddTableArray(props) {
|
|
|
25572
25588
|
customRender: titleRender
|
|
25573
25589
|
})
|
|
25574
25590
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25575
|
-
className: styles$
|
|
25591
|
+
className: styles$6.collapseContent
|
|
25576
25592
|
}, (_a2 = typeContentMap[type]) == null ? void 0 : _a2.contentRender({ data: item, index: idx, onChange: onTableArrayChange })));
|
|
25577
25593
|
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
25578
|
-
className: styles$
|
|
25594
|
+
className: styles$6.tableArrayBottom
|
|
25579
25595
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
25580
25596
|
onClick: onAdd,
|
|
25581
25597
|
style: { padding: "0 48px" }
|
|
@@ -26083,6 +26099,197 @@ function DetailStaticStep(props) {
|
|
|
26083
26099
|
single: true
|
|
26084
26100
|
})));
|
|
26085
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
|
+
};
|
|
26086
26293
|
const customTabItem$3 = "_customTabItem_1lh1l_1";
|
|
26087
26294
|
const tabTitle$3 = "_tabTitle_1lh1l_5";
|
|
26088
26295
|
const tabLabel$3 = "_tabLabel_1lh1l_9";
|
|
@@ -26134,6 +26341,15 @@ const typeContent = [
|
|
|
26134
26341
|
});
|
|
26135
26342
|
}
|
|
26136
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
|
+
},
|
|
26137
26353
|
{
|
|
26138
26354
|
label: "\u5185\u5D4C\u9875\u9762",
|
|
26139
26355
|
value: "import-component",
|
|
@@ -26226,7 +26442,7 @@ function DetailItems({ schema = {} }) {
|
|
|
26226
26442
|
onRemove: onRemoveHandle
|
|
26227
26443
|
}));
|
|
26228
26444
|
}
|
|
26229
|
-
const CustomTabItem$3 = ({ title, icon }) => {
|
|
26445
|
+
const CustomTabItem$3 = ({ title: title2, icon }) => {
|
|
26230
26446
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26231
26447
|
className: styles$4.customTabItem
|
|
26232
26448
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26236,7 +26452,7 @@ const CustomTabItem$3 = ({ title, icon }) => {
|
|
|
26236
26452
|
size: "small"
|
|
26237
26453
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26238
26454
|
className: styles$4.tabLabel
|
|
26239
|
-
},
|
|
26455
|
+
}, title2)));
|
|
26240
26456
|
};
|
|
26241
26457
|
function DetailBuild({ schema }) {
|
|
26242
26458
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
@@ -26524,7 +26740,7 @@ var styles$3 = {
|
|
|
26524
26740
|
tabTitle: tabTitle$2,
|
|
26525
26741
|
tabLabel: tabLabel$2
|
|
26526
26742
|
};
|
|
26527
|
-
const CustomTabItem$2 = ({ title, icon }) => {
|
|
26743
|
+
const CustomTabItem$2 = ({ title: title2, icon }) => {
|
|
26528
26744
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26529
26745
|
className: styles$3.customTabItem
|
|
26530
26746
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26534,9 +26750,9 @@ const CustomTabItem$2 = ({ title, icon }) => {
|
|
|
26534
26750
|
size: "small"
|
|
26535
26751
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26536
26752
|
className: styles$3.tabLabel
|
|
26537
|
-
},
|
|
26753
|
+
}, title2)));
|
|
26538
26754
|
};
|
|
26539
|
-
const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
|
|
26755
|
+
const CustomKV$1 = ({ title: title2 = "", subTitle = "", children }) => {
|
|
26540
26756
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26541
26757
|
className: "formily-form-v2-kv"
|
|
26542
26758
|
}, /* @__PURE__ */ React$1.createElement(Box, {
|
|
@@ -26545,7 +26761,7 @@ const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
|
|
|
26545
26761
|
className: "formily-form-v2-title-wrapper"
|
|
26546
26762
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
26547
26763
|
className: "title"
|
|
26548
|
-
},
|
|
26764
|
+
}, title2), /* @__PURE__ */ React$1.createElement("label", {
|
|
26549
26765
|
className: "subTitle"
|
|
26550
26766
|
}, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
|
|
26551
26767
|
};
|
|
@@ -26779,7 +26995,7 @@ var styles$2 = {
|
|
|
26779
26995
|
kvTitle,
|
|
26780
26996
|
kvSubTitle
|
|
26781
26997
|
};
|
|
26782
|
-
var CustomKV = ({ title = "", subTitle = "", children }) => {
|
|
26998
|
+
var CustomKV = ({ title: title2 = "", subTitle = "", children }) => {
|
|
26783
26999
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26784
27000
|
className: styles$2.kvContainer
|
|
26785
27001
|
}, /* @__PURE__ */ React$1.createElement(Box, {
|
|
@@ -26788,7 +27004,7 @@ var CustomKV = ({ title = "", subTitle = "", children }) => {
|
|
|
26788
27004
|
className: styles$2.kvWrapper
|
|
26789
27005
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
26790
27006
|
className: styles$2.kvTitle
|
|
26791
|
-
},
|
|
27007
|
+
}, title2), /* @__PURE__ */ React$1.createElement("label", {
|
|
26792
27008
|
className: styles$2.kvSubTitle
|
|
26793
27009
|
}, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
|
|
26794
27010
|
};
|
|
@@ -26800,7 +27016,7 @@ var styles$1 = {
|
|
|
26800
27016
|
tabTitle: tabTitle$1,
|
|
26801
27017
|
tabLabel: tabLabel$1
|
|
26802
27018
|
};
|
|
26803
|
-
const CustomTabItem$1 = ({ title, icon }) => {
|
|
27019
|
+
const CustomTabItem$1 = ({ title: title2, icon }) => {
|
|
26804
27020
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26805
27021
|
className: styles$1.customTabItem
|
|
26806
27022
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26810,7 +27026,7 @@ const CustomTabItem$1 = ({ title, icon }) => {
|
|
|
26810
27026
|
size: "small"
|
|
26811
27027
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26812
27028
|
className: styles$1.tabLabel
|
|
26813
|
-
},
|
|
27029
|
+
}, title2)));
|
|
26814
27030
|
};
|
|
26815
27031
|
function FtpBuild({ schema }) {
|
|
26816
27032
|
const [_2, forceUpdate] = React$1.useState({});
|
|
@@ -27263,7 +27479,7 @@ var styles = {
|
|
|
27263
27479
|
tabTitle,
|
|
27264
27480
|
tabLabel
|
|
27265
27481
|
};
|
|
27266
|
-
const CustomTabItem = ({ title, icon }) => {
|
|
27482
|
+
const CustomTabItem = ({ title: title2, icon }) => {
|
|
27267
27483
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
27268
27484
|
className: styles.customTabItem
|
|
27269
27485
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -27273,7 +27489,7 @@ const CustomTabItem = ({ title, icon }) => {
|
|
|
27273
27489
|
size: "small"
|
|
27274
27490
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
27275
27491
|
className: styles.tabLabel
|
|
27276
|
-
},
|
|
27492
|
+
}, title2)));
|
|
27277
27493
|
};
|
|
27278
27494
|
function SimpleFtp({ schema }) {
|
|
27279
27495
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|