@cniot/mdd-editor 0.2.0-beta.3 → 0.2.0-beta.31
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 +124 -9
- package/build/index.cjs.js +25 -19
- package/build/index.es.js +2188 -568
- package/build/style.css +1 -1
- package/package.json +1 -1
- package/src/components/address-select/formily.jsx +1 -1
- package/src/components/ajax-schema-form/formily-table-form-proxy.jsx +1 -1
- package/src/components/ajax-schema-form/formily.jsx +1 -1
- package/src/components/ajax-schema-form/table-form-proxy.jsx +1 -1
- package/src/components/ajax-schema-form/table-form.jsx +1 -1
- package/src/components/data-source-select/formily.jsx +1 -1
- package/src/components/dynamic-value/base/formily.jsx +1 -1
- package/src/components/dynamic-value/date/formily.jsx +1 -1
- package/src/components/formily-select/index.tsx +1 -1
- package/src/components/params-select/formily.jsx +1 -1
- package/src/components/time-range/formily.jsx +1 -1
- package/src/hooks/useSchema.jsx +5 -5
- package/src/hooks/useSwagger.jsx +2 -2
- package/src/schema/base-schema/AjaxSchema.js +1 -1
- package/src/schema/base-schema/AjaxSchemaQueue.js +1 -1
- package/src/schema/blocks/edit-table.js +57 -0
- package/src/schema/blocks/filter.js +49 -0
- package/src/schema/blocks/form.js +49 -0
- package/src/schema/blocks/index.js +101 -0
- package/src/schema/blocks/table.js +57 -0
- package/src/schema/detail/detail-item.js +10 -2
- package/src/schema/detail/index.js +26 -18
- package/src/schema/edit-table/header-toolbar.js +1 -1
- package/src/schema/edit-table/index.js +4 -4
- package/src/schema/edit-table/table.js +8 -2
- package/src/schema/formily-form/data-source.js +1 -1
- package/src/schema/formily-form/form-schema.js +1 -1
- package/src/schema/formily-form/index.js +8 -8
- package/src/schema/formily-form-v2/form-info.js +2 -2
- package/src/schema/formily-form-v2/form-items.js +1 -1
- package/src/schema/formily-form-v2/index.js +3 -3
- package/src/schema/ftp/data-source.js +1 -1
- package/src/schema/ftp/filter.js +2 -2
- package/src/schema/ftp/header-toolbar.js +1 -1
- package/src/schema/ftp/index.js +4 -4
- package/src/schema/ftp/middle-item.js +1 -1
- package/src/schema/ftp/table.js +9 -3
- package/src/schema/util.js +3 -3
- package/src/services/index.js +1 -1
- package/src/template/blocks/EditTable.jsx +62 -0
- package/src/template/blocks/Filter.jsx +137 -0
- package/src/template/blocks/Form.jsx +136 -0
- package/src/template/blocks/Table.jsx +79 -0
- package/src/template/blocks/index.module.scss +33 -0
- package/src/template/const.js +22 -0
- package/src/template/detail/DetailItems.jsx +9 -1
- package/src/template/detail/components/Actions.jsx +1 -1
- package/src/template/detail/components/DetailCard.jsx +8 -5
- package/src/template/detail/components/DetailColumns.jsx +296 -0
- package/src/template/detail/components/DetailColumns.module.scss +18 -0
- package/src/template/detail/components/DetailCustom.jsx +2 -2
- package/src/template/detail/components/DetailTable.jsx +13 -8
- package/src/template/detail/components/MultiAjaxSchemaForm.jsx +1 -1
- package/src/template/edit-table/HeaderToolbar.jsx +1 -1
- package/src/template/edit-table/Table.jsx +44 -3
- package/src/template/formily-form-v2/FormInfo.jsx +1 -1
- package/src/template/formily-form-v2/FormItems.jsx +4 -8
- package/src/template/formilyform/components/AsyncDataSourceSetter/index.tsx +1 -1
- package/src/template/formilyform/components/SubmitActionSetter/index.tsx +1 -1
- package/src/template/ftp/DataSource.jsx +1 -1
- package/src/template/ftp/Filter.jsx +4 -4
- package/src/template/ftp/HeaderToolbar.jsx +1 -1
- package/src/template/ftp/Middle.jsx +4 -4
- package/src/template/ftp/Table.jsx +94 -9
- package/src/template/simple-ftp/Table.jsx +2 -2
- package/src/toolbar.jsx +2 -2
- package/src/utils/buildFieldsToCompJson.js +3 -3
- package/src/utils/persistentStorage.js +1 -1
- package/src/utils/swagger/api2SchemaFromSwagger.js +10 -4
package/build/index.es.js
CHANGED
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
var _a, _b;
|
|
8
8
|
import React$1, { createContext, memo, useEffect, useLayoutEffect, useState, useCallback, useMemo, isValidElement, cloneElement, useContext, useRef, forwardRef, useImperativeHandle } from "react";
|
|
9
9
|
import EventEmitter from "EventEmitter";
|
|
10
|
-
import { Message, Radio, Select as Select$2, Checkbox, Grid, Button, Table, Input as Input$1, formilyReact, Icon, TimePicker2, ConfigProvider, formilyCore, CnForm, Range, Rating, componentMap, Card, Form, Dialog, CnAsyncSelect, Box, Collapse, Balloon, NumberPicker, Switch, Tab,
|
|
10
|
+
import { Message, Radio, Select as Select$2, Checkbox, Grid, Button, Table, Input as Input$1, formilyReact, Icon, TimePicker2, ConfigProvider, formilyCore, CnForm, Range, Rating, componentMap, Card, Form, Dialog, CnAsyncSelect, Box, Collapse, Balloon, NumberPicker, CnSwitch, CnTooltip, Switch, Tab, CnNumberPicker, CnRadioGroup, CnRadio, CnMessage, CnButton, CnIcon, CnDrawer, CnCard, CnTab, CnTabItem } from "@cainiaofe/cn-ui";
|
|
11
11
|
import { isArray as isArray$6, isObject as isObject$e, keys as keys$4, isString, remove } from "lodash";
|
|
12
12
|
import axios from "axios";
|
|
13
13
|
import { useDebounceFn, useToggle } from "ahooks";
|
|
@@ -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
|
}
|
|
@@ -1430,16 +1430,19 @@ function object2Array(obj, pre = "") {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
}).flat(Infinity);
|
|
1432
1432
|
}
|
|
1433
|
-
class TableSchema$
|
|
1433
|
+
class TableSchema$2 extends JSONWatch {
|
|
1434
1434
|
constructor(props) {
|
|
1435
1435
|
const {
|
|
1436
1436
|
columns = [],
|
|
1437
|
+
rowDoubleClick = [],
|
|
1437
1438
|
actionColumns = [],
|
|
1438
1439
|
bulkActions = [],
|
|
1439
1440
|
primaryKey = "id",
|
|
1440
1441
|
tree = false,
|
|
1442
|
+
treeLinkageCheck = false,
|
|
1441
1443
|
showIndex = false,
|
|
1442
1444
|
hideCommonToolbar = false,
|
|
1445
|
+
actionMaxCharNum,
|
|
1443
1446
|
actionWidth,
|
|
1444
1447
|
showSelect = false,
|
|
1445
1448
|
remoteSort = false,
|
|
@@ -1459,6 +1462,7 @@ class TableSchema$1 extends JSONWatch {
|
|
|
1459
1462
|
} = props || {};
|
|
1460
1463
|
super({
|
|
1461
1464
|
columns,
|
|
1465
|
+
rowDoubleClick,
|
|
1462
1466
|
actionColumns,
|
|
1463
1467
|
bulkActions,
|
|
1464
1468
|
primaryKey,
|
|
@@ -1466,12 +1470,14 @@ class TableSchema$1 extends JSONWatch {
|
|
|
1466
1470
|
tree,
|
|
1467
1471
|
showIndex,
|
|
1468
1472
|
hideCommonToolbar,
|
|
1473
|
+
actionMaxCharNum,
|
|
1469
1474
|
actionWidth,
|
|
1470
1475
|
showSelect,
|
|
1471
1476
|
rowDetailModule,
|
|
1472
1477
|
remoteSort,
|
|
1473
1478
|
useVirtual,
|
|
1474
1479
|
columnsAutoWidth,
|
|
1480
|
+
treeLinkageCheck,
|
|
1475
1481
|
...more2
|
|
1476
1482
|
});
|
|
1477
1483
|
this.initAjaxSchemaData(loadChildrenDataApi);
|
|
@@ -1500,7 +1506,7 @@ class TableSchema$1 extends JSONWatch {
|
|
|
1500
1506
|
this.emit("$updated", null, ignoreUpdate);
|
|
1501
1507
|
}
|
|
1502
1508
|
update(index2, data, key = "columns", ignoreUpdate = false) {
|
|
1503
|
-
if (["columns", "actionColumns", "bulkActions"].includes(key)) {
|
|
1509
|
+
if (["columns", "actionColumns", "bulkActions", "rowDoubleClick"].includes(key)) {
|
|
1504
1510
|
this.data[key].splice(index2, 1, data);
|
|
1505
1511
|
} else {
|
|
1506
1512
|
this.data[key] = data;
|
|
@@ -1558,103 +1564,132 @@ class HeaderToolbar$1 extends JSONWatch {
|
|
|
1558
1564
|
return this.data || [];
|
|
1559
1565
|
}
|
|
1560
1566
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
var
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
}
|
|
1584
|
-
};
|
|
1585
|
-
function init$1(converter, defaultAttributes) {
|
|
1586
|
-
function set(name, value, attributes) {
|
|
1587
|
-
if (typeof document === "undefined") {
|
|
1588
|
-
return;
|
|
1589
|
-
}
|
|
1590
|
-
attributes = assign({}, defaultAttributes, attributes);
|
|
1591
|
-
if (typeof attributes.expires === "number") {
|
|
1592
|
-
attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
|
|
1593
|
-
}
|
|
1594
|
-
if (attributes.expires) {
|
|
1595
|
-
attributes.expires = attributes.expires.toUTCString();
|
|
1567
|
+
var js_cookie = { exports: {} };
|
|
1568
|
+
/*!
|
|
1569
|
+
* JavaScript Cookie v2.2.1
|
|
1570
|
+
* https://github.com/js-cookie/js-cookie
|
|
1571
|
+
*
|
|
1572
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
1573
|
+
* Released under the MIT license
|
|
1574
|
+
*/
|
|
1575
|
+
(function(module, exports) {
|
|
1576
|
+
(function(factory) {
|
|
1577
|
+
var registeredInModuleLoader;
|
|
1578
|
+
{
|
|
1579
|
+
module.exports = factory();
|
|
1580
|
+
registeredInModuleLoader = true;
|
|
1581
|
+
}
|
|
1582
|
+
if (!registeredInModuleLoader) {
|
|
1583
|
+
var OldCookies = window.Cookies;
|
|
1584
|
+
var api = window.Cookies = factory();
|
|
1585
|
+
api.noConflict = function() {
|
|
1586
|
+
window.Cookies = OldCookies;
|
|
1587
|
+
return api;
|
|
1588
|
+
};
|
|
1596
1589
|
}
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1590
|
+
})(function() {
|
|
1591
|
+
function extend() {
|
|
1592
|
+
var i = 0;
|
|
1593
|
+
var result = {};
|
|
1594
|
+
for (; i < arguments.length; i++) {
|
|
1595
|
+
var attributes = arguments[i];
|
|
1596
|
+
for (var key in attributes) {
|
|
1597
|
+
result[key] = attributes[key];
|
|
1598
|
+
}
|
|
1606
1599
|
}
|
|
1607
|
-
|
|
1600
|
+
return result;
|
|
1608
1601
|
}
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
function get2(name) {
|
|
1612
|
-
if (typeof document === "undefined" || arguments.length && !name) {
|
|
1613
|
-
return;
|
|
1602
|
+
function decode(s) {
|
|
1603
|
+
return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
1614
1604
|
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
var found = decodeURIComponent(parts[0]);
|
|
1622
|
-
jar[found] = converter.read(value, found);
|
|
1623
|
-
if (name === found) {
|
|
1624
|
-
break;
|
|
1605
|
+
function init2(converter) {
|
|
1606
|
+
function api() {
|
|
1607
|
+
}
|
|
1608
|
+
function set(key, value, attributes) {
|
|
1609
|
+
if (typeof document === "undefined") {
|
|
1610
|
+
return;
|
|
1625
1611
|
}
|
|
1626
|
-
|
|
1612
|
+
attributes = extend({
|
|
1613
|
+
path: "/"
|
|
1614
|
+
}, api.defaults, attributes);
|
|
1615
|
+
if (typeof attributes.expires === "number") {
|
|
1616
|
+
attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e5);
|
|
1617
|
+
}
|
|
1618
|
+
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : "";
|
|
1619
|
+
try {
|
|
1620
|
+
var result = JSON.stringify(value);
|
|
1621
|
+
if (/^[\{\[]/.test(result)) {
|
|
1622
|
+
value = result;
|
|
1623
|
+
}
|
|
1624
|
+
} catch (e) {
|
|
1625
|
+
}
|
|
1626
|
+
value = converter.write ? converter.write(value, key) : encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
|
1627
|
+
key = encodeURIComponent(String(key)).replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent).replace(/[\(\)]/g, escape);
|
|
1628
|
+
var stringifiedAttributes = "";
|
|
1629
|
+
for (var attributeName in attributes) {
|
|
1630
|
+
if (!attributes[attributeName]) {
|
|
1631
|
+
continue;
|
|
1632
|
+
}
|
|
1633
|
+
stringifiedAttributes += "; " + attributeName;
|
|
1634
|
+
if (attributes[attributeName] === true) {
|
|
1635
|
+
continue;
|
|
1636
|
+
}
|
|
1637
|
+
stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
|
|
1638
|
+
}
|
|
1639
|
+
return document.cookie = key + "=" + value + stringifiedAttributes;
|
|
1627
1640
|
}
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
"
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1641
|
+
function get2(key, json) {
|
|
1642
|
+
if (typeof document === "undefined") {
|
|
1643
|
+
return;
|
|
1644
|
+
}
|
|
1645
|
+
var jar = {};
|
|
1646
|
+
var cookies = document.cookie ? document.cookie.split("; ") : [];
|
|
1647
|
+
var i = 0;
|
|
1648
|
+
for (; i < cookies.length; i++) {
|
|
1649
|
+
var parts = cookies[i].split("=");
|
|
1650
|
+
var cookie = parts.slice(1).join("=");
|
|
1651
|
+
if (!json && cookie.charAt(0) === '"') {
|
|
1652
|
+
cookie = cookie.slice(1, -1);
|
|
1653
|
+
}
|
|
1654
|
+
try {
|
|
1655
|
+
var name = decode(parts[0]);
|
|
1656
|
+
cookie = (converter.read || converter)(cookie, name) || decode(cookie);
|
|
1657
|
+
if (json) {
|
|
1658
|
+
try {
|
|
1659
|
+
cookie = JSON.parse(cookie);
|
|
1660
|
+
} catch (e) {
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
jar[name] = cookie;
|
|
1664
|
+
if (key === name) {
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
} catch (e) {
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
return key ? jar[key] : jar;
|
|
1649
1671
|
}
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1672
|
+
api.set = set;
|
|
1673
|
+
api.get = function(key) {
|
|
1674
|
+
return get2(key, false);
|
|
1675
|
+
};
|
|
1676
|
+
api.getJSON = function(key) {
|
|
1677
|
+
return get2(key, true);
|
|
1678
|
+
};
|
|
1679
|
+
api.remove = function(key, attributes) {
|
|
1680
|
+
set(key, "", extend(attributes, {
|
|
1681
|
+
expires: -1
|
|
1682
|
+
}));
|
|
1683
|
+
};
|
|
1684
|
+
api.defaults = {};
|
|
1685
|
+
api.withConverter = init2;
|
|
1686
|
+
return api;
|
|
1654
1687
|
}
|
|
1655
|
-
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1688
|
+
return init2(function() {
|
|
1689
|
+
});
|
|
1690
|
+
});
|
|
1691
|
+
})(js_cookie);
|
|
1692
|
+
var Cookies = js_cookie.exports;
|
|
1658
1693
|
const calcWordWidth = (str) => {
|
|
1659
1694
|
const Min_Width = 50;
|
|
1660
1695
|
if (!str || typeof str !== "string")
|
|
@@ -1674,7 +1709,7 @@ const upperFirst$1 = (str) => {
|
|
|
1674
1709
|
return str.slice(0, 1).toUpperCase() + temp;
|
|
1675
1710
|
};
|
|
1676
1711
|
const getGlobalSizeFromCookie = () => {
|
|
1677
|
-
return
|
|
1712
|
+
return Cookies == null ? void 0 : Cookies.get("CNUICOOKIESIZE");
|
|
1678
1713
|
};
|
|
1679
1714
|
const getDefaultFomrLabelAlign = () => {
|
|
1680
1715
|
const globalSize = getGlobalSizeFromCookie();
|
|
@@ -1971,29 +2006,29 @@ const openApi3Support = (apiInfo) => {
|
|
|
1971
2006
|
responses: res
|
|
1972
2007
|
};
|
|
1973
2008
|
};
|
|
1974
|
-
var buildSwaggerApiJson = (
|
|
1975
|
-
if (!
|
|
2009
|
+
var buildSwaggerApiJson = (api, apiMeta) => {
|
|
2010
|
+
if (!api || !apiMeta) {
|
|
1976
2011
|
throw Error("mdd-tool columns complier error: api or api meta is null");
|
|
1977
2012
|
}
|
|
1978
2013
|
const { paths, definitions } = apiMeta || {};
|
|
1979
|
-
if (!paths[
|
|
1980
|
-
throw Error(`mdd-tool columns complier error: api meta has not api: ${
|
|
2014
|
+
if (!paths[api]) {
|
|
2015
|
+
throw Error(`mdd-tool columns complier error: api meta has not api: ${api}`);
|
|
1981
2016
|
}
|
|
1982
2017
|
let method = "";
|
|
1983
2018
|
let apiInfo = null;
|
|
1984
|
-
if (Object.prototype.hasOwnProperty.call(paths[
|
|
2019
|
+
if (Object.prototype.hasOwnProperty.call(paths[api], "post")) {
|
|
1985
2020
|
method = "post";
|
|
1986
|
-
apiInfo = paths[
|
|
1987
|
-
} else if (Object.prototype.hasOwnProperty.call(paths[
|
|
2021
|
+
apiInfo = paths[api]["post"];
|
|
2022
|
+
} else if (Object.prototype.hasOwnProperty.call(paths[api], "get")) {
|
|
1988
2023
|
method = "get";
|
|
1989
|
-
apiInfo = paths[
|
|
2024
|
+
apiInfo = paths[api]["get"];
|
|
1990
2025
|
} else {
|
|
1991
2026
|
throw Error("mdd-tool columns complier error: api method not support");
|
|
1992
2027
|
}
|
|
1993
2028
|
const { summary } = apiInfo;
|
|
1994
2029
|
const { parameters = [], responses } = openApi3Support(apiInfo);
|
|
1995
2030
|
return {
|
|
1996
|
-
api
|
|
2031
|
+
api,
|
|
1997
2032
|
method,
|
|
1998
2033
|
summary,
|
|
1999
2034
|
parameters: transfer$refToJson("parameters", parameters, definitions),
|
|
@@ -2005,7 +2040,7 @@ const propFields = {
|
|
|
2005
2040
|
"cncard-sub": ["icon", "transparent"],
|
|
2006
2041
|
batchInput: ["defaultValue", "placeholder", "name", "hasClear", "inputProps", "trim"],
|
|
2007
2042
|
input: ["defaultValue", "placeholder", "maxLength", "name", "hasClear", "trim"],
|
|
2008
|
-
"input-textarea": ["defaultValue", "placeholder", "maxLength", "name", "hasClear"],
|
|
2043
|
+
"input-textarea": ["defaultValue", "placeholder", "maxLength", "name", "hasClear", "rows"],
|
|
2009
2044
|
"input-password": ["defaultValue", "placeholder", "maxLength", "name", "hasClear"],
|
|
2010
2045
|
"number-picker": ["defaultValue", "placeholder", "max", "min", "name", "hasClear", "precision", "step"],
|
|
2011
2046
|
"number-range-picker": ["defaultValue", "placeholder", "max", "min", "name", "hasClear", "precision", "step"],
|
|
@@ -2062,6 +2097,8 @@ const propFields = {
|
|
|
2062
2097
|
"showTopLevel",
|
|
2063
2098
|
"iso"
|
|
2064
2099
|
],
|
|
2100
|
+
"global-phone-picker": ["name", "defaultValue", "placeholder", "hasClear", "defaultCountryCode", "hasFlag"],
|
|
2101
|
+
"message": ["name"],
|
|
2065
2102
|
upload: [
|
|
2066
2103
|
"name",
|
|
2067
2104
|
"defaultValue",
|
|
@@ -2122,11 +2159,11 @@ const disabled = (key) => {
|
|
|
2122
2159
|
const Default_Column_Type = "text";
|
|
2123
2160
|
const Default_Edit_Column_Type = "edit-input";
|
|
2124
2161
|
const buildCompProps = (key, obj, buildType, templateType) => {
|
|
2125
|
-
const { title, description, required, nullable, type, items, enum: enumVal, format, properties, ...more2 } = obj;
|
|
2162
|
+
const { title: title2, description, required, nullable, type, items, enum: enumVal, format, properties, ...more2 } = obj;
|
|
2126
2163
|
if (REMOVE_FIELDS_NAME.includes(key)) {
|
|
2127
2164
|
return null;
|
|
2128
2165
|
}
|
|
2129
|
-
const label =
|
|
2166
|
+
const label = title2 || description || key;
|
|
2130
2167
|
const isReq = buildType === "parameters";
|
|
2131
2168
|
let result = null;
|
|
2132
2169
|
if (isReq) {
|
|
@@ -2432,11 +2469,11 @@ function handleDefinitions(obj, map, depth) {
|
|
|
2432
2469
|
function getSwaggerInfoFromJson(swaggerJson) {
|
|
2433
2470
|
return jsonSchemaRefParser(transferOpenAPI3ToSwagger2$1(swaggerJson));
|
|
2434
2471
|
}
|
|
2435
|
-
function getApiInfo(
|
|
2472
|
+
function getApiInfo(api, swaggerInfo) {
|
|
2436
2473
|
const realSwaggerInfo = jsonSchemaRefParser(transferOpenAPI3ToSwagger2$1(swaggerInfo));
|
|
2437
|
-
return buildSwaggerApiJson(
|
|
2474
|
+
return buildSwaggerApiJson(api, realSwaggerInfo);
|
|
2438
2475
|
}
|
|
2439
|
-
function api2SchemaFromSwaggerApiInfo(
|
|
2476
|
+
function api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema = {}) {
|
|
2440
2477
|
const { parameters = [], responses = [], method = "" } = apiInfo || {};
|
|
2441
2478
|
const methodUpperCase = method.toUpperCase();
|
|
2442
2479
|
const result = {
|
|
@@ -2459,8 +2496,8 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
|
|
|
2459
2496
|
tableColumns: "$RET.data.tableColumns",
|
|
2460
2497
|
totalCount: "$RET.data.paging.totalCount"
|
|
2461
2498
|
},
|
|
2462
|
-
value:
|
|
2463
|
-
url:
|
|
2499
|
+
value: api,
|
|
2500
|
+
url: api
|
|
2464
2501
|
},
|
|
2465
2502
|
filter: {
|
|
2466
2503
|
maxVisibleRow: 2,
|
|
@@ -2505,8 +2542,8 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
|
|
|
2505
2542
|
watch: [],
|
|
2506
2543
|
params: {},
|
|
2507
2544
|
formatResponseData: {},
|
|
2508
|
-
value:
|
|
2509
|
-
url:
|
|
2545
|
+
value: api,
|
|
2546
|
+
url: api
|
|
2510
2547
|
},
|
|
2511
2548
|
initApi: [],
|
|
2512
2549
|
effectApi: [],
|
|
@@ -2545,7 +2582,7 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
|
|
|
2545
2582
|
label: "\u57FA\u7840\u4FE1\u606F",
|
|
2546
2583
|
source: [
|
|
2547
2584
|
{
|
|
2548
|
-
url:
|
|
2585
|
+
url: api,
|
|
2549
2586
|
method: methodUpperCase,
|
|
2550
2587
|
type: "ajax",
|
|
2551
2588
|
formatResponseData: {
|
|
@@ -2578,8 +2615,8 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
|
|
|
2578
2615
|
formatResponseData: {
|
|
2579
2616
|
tableData: "$RET.data.tableData"
|
|
2580
2617
|
},
|
|
2581
|
-
value:
|
|
2582
|
-
url:
|
|
2618
|
+
value: api,
|
|
2619
|
+
url: api
|
|
2583
2620
|
},
|
|
2584
2621
|
submitApi: {
|
|
2585
2622
|
type: "ajax",
|
|
@@ -2608,12 +2645,18 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
|
|
|
2608
2645
|
},
|
|
2609
2646
|
headerToolbar: []
|
|
2610
2647
|
};
|
|
2648
|
+
} else if (schemaType == null ? void 0 : schemaType.startsWith("blocks-")) {
|
|
2649
|
+
result.type = "blocks";
|
|
2650
|
+
result.body = {
|
|
2651
|
+
type: schemaType,
|
|
2652
|
+
blocks: []
|
|
2653
|
+
};
|
|
2611
2654
|
}
|
|
2612
2655
|
return merge_1(result, extraSchema);
|
|
2613
2656
|
}
|
|
2614
|
-
function api2SchemaFromSwagger(
|
|
2615
|
-
const apiInfo = getApiInfo(
|
|
2616
|
-
return api2SchemaFromSwaggerApiInfo(
|
|
2657
|
+
function api2SchemaFromSwagger(api, schemaType, swaggerInfo, extraSchema = {}) {
|
|
2658
|
+
const apiInfo = getApiInfo(api, swaggerInfo);
|
|
2659
|
+
return api2SchemaFromSwaggerApiInfo(api, schemaType, apiInfo, extraSchema);
|
|
2617
2660
|
}
|
|
2618
2661
|
function transferOpenAPI3ToSwagger2$1(data) {
|
|
2619
2662
|
if (data && data.components && data.components.schemas) {
|
|
@@ -2749,13 +2792,13 @@ class MiddleItem extends JSONWatch {
|
|
|
2749
2792
|
}
|
|
2750
2793
|
class FtpSchema$1 extends Schema {
|
|
2751
2794
|
constructor(props, isCompleteSchema = false) {
|
|
2752
|
-
const { api
|
|
2795
|
+
const { api, filter, headerToolbar, table, tabs, middleModules, ...more2 } = isCompleteSchema ? props.body : props;
|
|
2753
2796
|
super(more2);
|
|
2754
2797
|
this.type = "ftp";
|
|
2755
|
-
this.api = new AjaxSchema(
|
|
2798
|
+
this.api = new AjaxSchema(api);
|
|
2756
2799
|
this.filter = new Filter(filter);
|
|
2757
2800
|
this.headerToolbar = new HeaderToolbar$1(headerToolbar);
|
|
2758
|
-
this.table = new TableSchema$
|
|
2801
|
+
this.table = new TableSchema$2(table);
|
|
2759
2802
|
this.initChildren(middleModules, tabs);
|
|
2760
2803
|
this.willDetach = this.initChangeListener();
|
|
2761
2804
|
}
|
|
@@ -2826,12 +2869,12 @@ class FtpSchema$1 extends Schema {
|
|
|
2826
2869
|
}
|
|
2827
2870
|
initFromCache(schema) {
|
|
2828
2871
|
const { body, ...more2 } = schema;
|
|
2829
|
-
const { api
|
|
2872
|
+
const { api, filter, headerToolbar, table, tabs, middleModules } = body;
|
|
2830
2873
|
if (this.willDetach) {
|
|
2831
2874
|
this.willDetach();
|
|
2832
2875
|
}
|
|
2833
2876
|
this.init(more2);
|
|
2834
|
-
this.api.updateAll(
|
|
2877
|
+
this.api.updateAll(api);
|
|
2835
2878
|
this.filter.updateAll(filter);
|
|
2836
2879
|
this.headerToolbar.updateAll(headerToolbar);
|
|
2837
2880
|
this.table.updateAll(this.compatTableHandle(table));
|
|
@@ -2922,7 +2965,227 @@ class FtpSchema$1 extends Schema {
|
|
|
2922
2965
|
}
|
|
2923
2966
|
__publicField(FtpSchema$1, "Filter", Filter);
|
|
2924
2967
|
__publicField(FtpSchema$1, "HeaderToolbar", HeaderToolbar$1);
|
|
2925
|
-
__publicField(FtpSchema$1, "Table", TableSchema$
|
|
2968
|
+
__publicField(FtpSchema$1, "Table", TableSchema$2);
|
|
2969
|
+
class TableSchema$1 extends JSONWatch {
|
|
2970
|
+
constructor(props) {
|
|
2971
|
+
super({
|
|
2972
|
+
columns: props
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
setFieldsAll(columns, ignoreUpdate = false) {
|
|
2976
|
+
this.set("columns", columns, ignoreUpdate);
|
|
2977
|
+
}
|
|
2978
|
+
setItemAll(value, type = "columns", ignoreUpdate = false) {
|
|
2979
|
+
this.set(type, value, ignoreUpdate);
|
|
2980
|
+
}
|
|
2981
|
+
add(field, key = "columns", ignoreUpdate = false) {
|
|
2982
|
+
this.data[key].push(field);
|
|
2983
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
2984
|
+
}
|
|
2985
|
+
remove(index2, key = "columns", ignoreUpdate = false) {
|
|
2986
|
+
this.data[key].splice(index2, 1);
|
|
2987
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
2988
|
+
}
|
|
2989
|
+
update(index2, data, key = "columns", ignoreUpdate = false) {
|
|
2990
|
+
if (["columns", "actionColumns", "bulkActions"].includes(key)) {
|
|
2991
|
+
this.data[key].splice(index2, 1, data);
|
|
2992
|
+
} else {
|
|
2993
|
+
this.data[key] = data;
|
|
2994
|
+
}
|
|
2995
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
2996
|
+
}
|
|
2997
|
+
updateAll(data) {
|
|
2998
|
+
this.data = data;
|
|
2999
|
+
this.emit("$updated");
|
|
3000
|
+
}
|
|
3001
|
+
delete() {
|
|
3002
|
+
}
|
|
3003
|
+
getJSON() {
|
|
3004
|
+
return super.getJSON();
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
class FilterSchema extends JSONWatch {
|
|
3008
|
+
constructor(props) {
|
|
3009
|
+
super({
|
|
3010
|
+
fields: props
|
|
3011
|
+
});
|
|
3012
|
+
}
|
|
3013
|
+
setFieldsAll(fields2, ignoreUpdate = false) {
|
|
3014
|
+
this.set("fields", fields2, ignoreUpdate);
|
|
3015
|
+
}
|
|
3016
|
+
setItemAll(value, type = "fields", ignoreUpdate = false) {
|
|
3017
|
+
this.set(type, value, ignoreUpdate);
|
|
3018
|
+
}
|
|
3019
|
+
add(field, key = "fields", ignoreUpdate = false) {
|
|
3020
|
+
this.data[key].push(field);
|
|
3021
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3022
|
+
}
|
|
3023
|
+
remove(index2, key = "fields", ignoreUpdate = false) {
|
|
3024
|
+
this.data[key].splice(index2, 1);
|
|
3025
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3026
|
+
}
|
|
3027
|
+
update(index2, data, key = "fields", ignoreUpdate = false) {
|
|
3028
|
+
if (["fields"].includes(key)) {
|
|
3029
|
+
this.data[key].splice(index2, 1, data);
|
|
3030
|
+
} else {
|
|
3031
|
+
this.data[key] = data;
|
|
3032
|
+
}
|
|
3033
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3034
|
+
}
|
|
3035
|
+
updateAll(data) {
|
|
3036
|
+
this.data = data;
|
|
3037
|
+
this.emit("$updated");
|
|
3038
|
+
}
|
|
3039
|
+
delete() {
|
|
3040
|
+
}
|
|
3041
|
+
getJSON() {
|
|
3042
|
+
return super.getJSON();
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
class FormSchema$1 extends JSONWatch {
|
|
3046
|
+
constructor(props) {
|
|
3047
|
+
super({
|
|
3048
|
+
fields: props
|
|
3049
|
+
});
|
|
3050
|
+
}
|
|
3051
|
+
setFieldsAll(fields2, ignoreUpdate = false) {
|
|
3052
|
+
this.set("fields", fields2, ignoreUpdate);
|
|
3053
|
+
}
|
|
3054
|
+
setItemAll(value, type = "fields", ignoreUpdate = false) {
|
|
3055
|
+
this.set(type, value, ignoreUpdate);
|
|
3056
|
+
}
|
|
3057
|
+
add(field, key = "fields", ignoreUpdate = false) {
|
|
3058
|
+
this.data[key].push(field);
|
|
3059
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3060
|
+
}
|
|
3061
|
+
remove(index2, key = "fields", ignoreUpdate = false) {
|
|
3062
|
+
this.data[key].splice(index2, 1);
|
|
3063
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3064
|
+
}
|
|
3065
|
+
update(index2, data, key = "fields", ignoreUpdate = false) {
|
|
3066
|
+
if (["fields"].includes(key)) {
|
|
3067
|
+
this.data[key].splice(index2, 1, data);
|
|
3068
|
+
} else {
|
|
3069
|
+
this.data[key] = data;
|
|
3070
|
+
}
|
|
3071
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3072
|
+
}
|
|
3073
|
+
updateAll(data) {
|
|
3074
|
+
this.data = data;
|
|
3075
|
+
this.emit("$updated");
|
|
3076
|
+
}
|
|
3077
|
+
delete() {
|
|
3078
|
+
}
|
|
3079
|
+
getJSON() {
|
|
3080
|
+
return super.getJSON();
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
class EditTableSchema extends JSONWatch {
|
|
3084
|
+
constructor(props) {
|
|
3085
|
+
super({
|
|
3086
|
+
columns: props
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3089
|
+
setFieldsAll(columns, ignoreUpdate = false) {
|
|
3090
|
+
this.set("columns", columns, ignoreUpdate);
|
|
3091
|
+
}
|
|
3092
|
+
setItemAll(value, type = "columns", ignoreUpdate = false) {
|
|
3093
|
+
this.set(type, value, ignoreUpdate);
|
|
3094
|
+
}
|
|
3095
|
+
add(field, key = "columns", ignoreUpdate = false) {
|
|
3096
|
+
this.data[key].push(field);
|
|
3097
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3098
|
+
}
|
|
3099
|
+
remove(index2, key = "columns", ignoreUpdate = false) {
|
|
3100
|
+
this.data[key].splice(index2, 1);
|
|
3101
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3102
|
+
}
|
|
3103
|
+
update(index2, data, key = "columns", ignoreUpdate = false) {
|
|
3104
|
+
if (["columns", "actionColumns", "bulkActions"].includes(key)) {
|
|
3105
|
+
this.data[key].splice(index2, 1, data);
|
|
3106
|
+
} else {
|
|
3107
|
+
this.data[key] = data;
|
|
3108
|
+
}
|
|
3109
|
+
this.emit("$updated", null, ignoreUpdate);
|
|
3110
|
+
}
|
|
3111
|
+
updateAll(data) {
|
|
3112
|
+
this.data = data;
|
|
3113
|
+
this.emit("$updated");
|
|
3114
|
+
}
|
|
3115
|
+
delete() {
|
|
3116
|
+
}
|
|
3117
|
+
getJSON() {
|
|
3118
|
+
return super.getJSON();
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
const _BlocksSchema = class extends Schema {
|
|
3122
|
+
constructor(props, isCompleteSchema = false) {
|
|
3123
|
+
const { type, blocks = [], ...more2 } = isCompleteSchema ? props.body : props;
|
|
3124
|
+
super(more2);
|
|
3125
|
+
this.type = type;
|
|
3126
|
+
const RealSchema = _BlocksSchema.BlocksInfoMap[type].schema;
|
|
3127
|
+
this.blocks = new RealSchema(blocks);
|
|
3128
|
+
this.willDetach = this.initChangeListener();
|
|
3129
|
+
}
|
|
3130
|
+
initChangeListener() {
|
|
3131
|
+
const fun = () => {
|
|
3132
|
+
super.emit(EVENT_KEY.SCHEMA_UPDATE, { schemaJson: this.getAllJSON(), schema: this });
|
|
3133
|
+
};
|
|
3134
|
+
this.blocks.on("$updated", fun);
|
|
3135
|
+
return () => {
|
|
3136
|
+
this.blocks.off("$updated", fun);
|
|
3137
|
+
};
|
|
3138
|
+
}
|
|
3139
|
+
initFromCache(schema) {
|
|
3140
|
+
const { body, ...more2 } = schema;
|
|
3141
|
+
const { blocks } = body;
|
|
3142
|
+
if (this.willDetach) {
|
|
3143
|
+
this.willDetach();
|
|
3144
|
+
}
|
|
3145
|
+
this.init(more2);
|
|
3146
|
+
this.blocks.updateAll(blocks);
|
|
3147
|
+
this.willDetach = this.initChangeListener();
|
|
3148
|
+
}
|
|
3149
|
+
getSchemaType() {
|
|
3150
|
+
return this.type;
|
|
3151
|
+
}
|
|
3152
|
+
getPanel() {
|
|
3153
|
+
return this.blocks;
|
|
3154
|
+
}
|
|
3155
|
+
getAllJSON() {
|
|
3156
|
+
const res = super.getAllJSON();
|
|
3157
|
+
return { ...res, type: "blocks" };
|
|
3158
|
+
}
|
|
3159
|
+
toJSON() {
|
|
3160
|
+
const toJSONKey = _BlocksSchema.BlocksInfoMap[this.type].toJSONKey;
|
|
3161
|
+
return {
|
|
3162
|
+
type: this.type,
|
|
3163
|
+
blocks: this.blocks.getJSON()[toJSONKey]
|
|
3164
|
+
};
|
|
3165
|
+
}
|
|
3166
|
+
setBlocks(blocks) {
|
|
3167
|
+
this.blocks = blocks;
|
|
3168
|
+
}
|
|
3169
|
+
};
|
|
3170
|
+
let BlocksSchema = _BlocksSchema;
|
|
3171
|
+
__publicField(BlocksSchema, "BlocksInfoMap", {
|
|
3172
|
+
"blocks-table": {
|
|
3173
|
+
schema: TableSchema$1,
|
|
3174
|
+
toJSONKey: "columns"
|
|
3175
|
+
},
|
|
3176
|
+
"blocks-edit-table": {
|
|
3177
|
+
schema: EditTableSchema,
|
|
3178
|
+
toJSONKey: "columns"
|
|
3179
|
+
},
|
|
3180
|
+
"blocks-filter": {
|
|
3181
|
+
schema: FilterSchema,
|
|
3182
|
+
toJSONKey: "fields"
|
|
3183
|
+
},
|
|
3184
|
+
"blocks-form": {
|
|
3185
|
+
schema: FormSchema$1,
|
|
3186
|
+
toJSONKey: "fields"
|
|
3187
|
+
}
|
|
3188
|
+
});
|
|
2926
3189
|
class FormInfo extends JSONWatch {
|
|
2927
3190
|
constructor(props) {
|
|
2928
3191
|
const {
|
|
@@ -3084,11 +3347,11 @@ function getWatchByRequest(params) {
|
|
|
3084
3347
|
}
|
|
3085
3348
|
class FormilyFormV2Schema extends Schema {
|
|
3086
3349
|
constructor(props, isCompleteSchema = false) {
|
|
3087
|
-
const { api
|
|
3350
|
+
const { api, initApi, effectApi, baseInfo, fields: fields2, ...more2 } = isCompleteSchema ? props.body : props;
|
|
3088
3351
|
super(more2);
|
|
3089
3352
|
this.type = "formily-form-v2";
|
|
3090
3353
|
this.baseInfo = new FormInfo(baseInfo);
|
|
3091
|
-
this.api = new AjaxSchema(
|
|
3354
|
+
this.api = new AjaxSchema(api);
|
|
3092
3355
|
if (!initApi) {
|
|
3093
3356
|
this.initApi = new AjaxSchemaQueue([]);
|
|
3094
3357
|
} else {
|
|
@@ -3130,12 +3393,12 @@ class FormilyFormV2Schema extends Schema {
|
|
|
3130
3393
|
}
|
|
3131
3394
|
initFromCache(schema) {
|
|
3132
3395
|
const { body, ...more2 } = schema;
|
|
3133
|
-
const { api
|
|
3396
|
+
const { api, initApi = [], effectApi = [], baseInfo, fields: fields2 } = body;
|
|
3134
3397
|
if (this.willDetach) {
|
|
3135
3398
|
this.willDetach();
|
|
3136
3399
|
}
|
|
3137
3400
|
this.init(more2);
|
|
3138
|
-
this.api.updateAll(
|
|
3401
|
+
this.api.updateAll(api);
|
|
3139
3402
|
if (!initApi) {
|
|
3140
3403
|
this.initApi.updateAll([]);
|
|
3141
3404
|
} else {
|
|
@@ -3203,6 +3466,10 @@ class DetailItemSchema extends JSONWatch {
|
|
|
3203
3466
|
pagination,
|
|
3204
3467
|
actions = [],
|
|
3205
3468
|
current = 1,
|
|
3469
|
+
columnsDirection = "row",
|
|
3470
|
+
columnsBoxes = [],
|
|
3471
|
+
height = 100,
|
|
3472
|
+
hideCard = true,
|
|
3206
3473
|
...more2
|
|
3207
3474
|
} = props || {};
|
|
3208
3475
|
super({
|
|
@@ -3221,6 +3488,10 @@ class DetailItemSchema extends JSONWatch {
|
|
|
3221
3488
|
pagination,
|
|
3222
3489
|
actions,
|
|
3223
3490
|
current,
|
|
3491
|
+
columnsDirection,
|
|
3492
|
+
columnsBoxes,
|
|
3493
|
+
height,
|
|
3494
|
+
hideCard,
|
|
3224
3495
|
...more2
|
|
3225
3496
|
});
|
|
3226
3497
|
}
|
|
@@ -3299,7 +3570,7 @@ class DetailItemSchema extends JSONWatch {
|
|
|
3299
3570
|
this.emit("$updated", null, ignoreUpdate);
|
|
3300
3571
|
}
|
|
3301
3572
|
update(index2, record, key = "columns", ignoreUpdate = false) {
|
|
3302
|
-
if (["columns", "actionColumns", "bulkActions"].includes(key)) {
|
|
3573
|
+
if (["columnsBoxes", "columns", "actionColumns", "bulkActions"].includes(key)) {
|
|
3303
3574
|
this.data[key].splice(index2, 1, record);
|
|
3304
3575
|
} else {
|
|
3305
3576
|
this.data[key] = record;
|
|
@@ -3352,6 +3623,8 @@ class DetailSchema extends Schema {
|
|
|
3352
3623
|
hasAnchor = false,
|
|
3353
3624
|
children,
|
|
3354
3625
|
initDataSource,
|
|
3626
|
+
fullHeight,
|
|
3627
|
+
whiteBackground,
|
|
3355
3628
|
...more2
|
|
3356
3629
|
} = isCompleteSchema ? props.body : props;
|
|
3357
3630
|
super(more2);
|
|
@@ -3359,6 +3632,8 @@ class DetailSchema extends Schema {
|
|
|
3359
3632
|
this.hasBackBtn = hasBackBtn;
|
|
3360
3633
|
this.backText = backText;
|
|
3361
3634
|
this.hasAnchor = hasAnchor;
|
|
3635
|
+
this.fullHeight = fullHeight;
|
|
3636
|
+
this.whiteBackground = whiteBackground;
|
|
3362
3637
|
this.initChildren(children, initDataSource);
|
|
3363
3638
|
this.initDataSource = initDataSource ? new AjaxSchema(initDataSource) : {};
|
|
3364
3639
|
this.willDetach = this.initChangeListener();
|
|
@@ -3432,11 +3707,13 @@ class DetailSchema extends Schema {
|
|
|
3432
3707
|
}
|
|
3433
3708
|
initFromCache(schema) {
|
|
3434
3709
|
const { body, ...more2 } = schema;
|
|
3435
|
-
const { hasBackBtn, backText, hasAnchor, children } = body;
|
|
3710
|
+
const { hasBackBtn, backText, hasAnchor, fullHeight, whiteBackground, children } = body;
|
|
3436
3711
|
this.init(more2);
|
|
3437
3712
|
this.baseInfoChange("hasBackBtn", hasBackBtn);
|
|
3438
3713
|
this.baseInfoChange("backText", backText);
|
|
3439
3714
|
this.baseInfoChange("hasAnchor", hasAnchor);
|
|
3715
|
+
this.baseInfoChange("fullHeight,", fullHeight);
|
|
3716
|
+
this.baseInfoChange("whiteBackground,", whiteBackground);
|
|
3440
3717
|
this.initChildren(children);
|
|
3441
3718
|
this.refreshChildrenListener();
|
|
3442
3719
|
}
|
|
@@ -3481,6 +3758,8 @@ class DetailSchema extends Schema {
|
|
|
3481
3758
|
hasBackBtn: this.hasBackBtn,
|
|
3482
3759
|
backText: this.backText,
|
|
3483
3760
|
hasAnchor: this.hasAnchor,
|
|
3761
|
+
fullHeight: this.fullHeight,
|
|
3762
|
+
whiteBackground: this.whiteBackground,
|
|
3484
3763
|
children: this.children.map((item) => item.getJSON())
|
|
3485
3764
|
};
|
|
3486
3765
|
}
|
|
@@ -3497,11 +3776,14 @@ class TableSchema extends JSONWatch {
|
|
|
3497
3776
|
tree = false,
|
|
3498
3777
|
showIndex = false,
|
|
3499
3778
|
hideCommonToolbar = false,
|
|
3779
|
+
useVirtual = true,
|
|
3780
|
+
columnsAutoWidth = true,
|
|
3500
3781
|
pagination = {
|
|
3501
3782
|
defaultPageSize: 20,
|
|
3502
3783
|
paging: true,
|
|
3503
3784
|
disableGlobalConfig: false
|
|
3504
|
-
}
|
|
3785
|
+
},
|
|
3786
|
+
maxHeight
|
|
3505
3787
|
} = props || {};
|
|
3506
3788
|
super({
|
|
3507
3789
|
columns,
|
|
@@ -3510,7 +3792,10 @@ class TableSchema extends JSONWatch {
|
|
|
3510
3792
|
pagination,
|
|
3511
3793
|
tree,
|
|
3512
3794
|
showIndex,
|
|
3513
|
-
hideCommonToolbar
|
|
3795
|
+
hideCommonToolbar,
|
|
3796
|
+
useVirtual,
|
|
3797
|
+
columnsAutoWidth,
|
|
3798
|
+
maxHeight
|
|
3514
3799
|
});
|
|
3515
3800
|
}
|
|
3516
3801
|
setFieldsAll(columns, ignoreUpdate = false) {
|
|
@@ -3839,7 +4124,7 @@ function shouldUseNative() {
|
|
|
3839
4124
|
return false;
|
|
3840
4125
|
}
|
|
3841
4126
|
}
|
|
3842
|
-
var
|
|
4127
|
+
var objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
3843
4128
|
var from;
|
|
3844
4129
|
var to = toObject(target);
|
|
3845
4130
|
var symbols;
|
|
@@ -5231,7 +5516,7 @@ function createSingletonDndContext(backend, context = getGlobalContext(), option
|
|
|
5231
5516
|
function getGlobalContext() {
|
|
5232
5517
|
return typeof global !== "undefined" ? global : window;
|
|
5233
5518
|
}
|
|
5234
|
-
var
|
|
5519
|
+
var fastDeepEqual = function equal(a, b) {
|
|
5235
5520
|
if (a === b)
|
|
5236
5521
|
return true;
|
|
5237
5522
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
@@ -5276,7 +5561,7 @@ function useCollector(monitor, collect, onUpdate) {
|
|
|
5276
5561
|
);
|
|
5277
5562
|
const updateCollected = useCallback(() => {
|
|
5278
5563
|
const nextValue = collect(monitor);
|
|
5279
|
-
if (!
|
|
5564
|
+
if (!fastDeepEqual(collected, nextValue)) {
|
|
5280
5565
|
setCollected(nextValue);
|
|
5281
5566
|
if (onUpdate) {
|
|
5282
5567
|
onUpdate();
|
|
@@ -7688,7 +7973,7 @@ const dsTitleWatch$1 = "_dsTitleWatch_mxilv_32";
|
|
|
7688
7973
|
const staticValueOkBtn$1 = "_staticValueOkBtn_mxilv_37";
|
|
7689
7974
|
const tableDeleteBtn$1 = "_tableDeleteBtn_mxilv_41";
|
|
7690
7975
|
const secondConfirm$1 = "_secondConfirm_mxilv_45";
|
|
7691
|
-
var styles$
|
|
7976
|
+
var styles$e = {
|
|
7692
7977
|
dsType: dsType$1,
|
|
7693
7978
|
dsJSONContent: dsJSONContent$1,
|
|
7694
7979
|
dsJSONContentTip: dsJSONContentTip$1,
|
|
@@ -7735,7 +8020,7 @@ const schemaScenarioList = async (params) => {
|
|
|
7735
8020
|
return null;
|
|
7736
8021
|
return res;
|
|
7737
8022
|
};
|
|
7738
|
-
var
|
|
8023
|
+
var hox = {};
|
|
7739
8024
|
var createModel$2 = {};
|
|
7740
8025
|
var container$1 = {};
|
|
7741
8026
|
var __values$1 = commonjsGlobal && commonjsGlobal.__values || function(o) {
|
|
@@ -7800,9 +8085,9 @@ function Executor(props) {
|
|
|
7800
8085
|
}
|
|
7801
8086
|
executor.Executor = Executor;
|
|
7802
8087
|
var renderer = {};
|
|
7803
|
-
var
|
|
8088
|
+
var reactReconciler = { exports: {} };
|
|
7804
8089
|
var reactReconciler_production_min = { exports: {} };
|
|
7805
|
-
var
|
|
8090
|
+
var scheduler = { exports: {} };
|
|
7806
8091
|
var scheduler_production_min = {};
|
|
7807
8092
|
/** @license React v0.20.2
|
|
7808
8093
|
* scheduler.production.min.js
|
|
@@ -8086,7 +8371,7 @@ var scheduler_production_min = {};
|
|
|
8086
8371
|
};
|
|
8087
8372
|
})(scheduler_production_min);
|
|
8088
8373
|
{
|
|
8089
|
-
|
|
8374
|
+
scheduler.exports = scheduler_production_min;
|
|
8090
8375
|
}
|
|
8091
8376
|
/** @license React v0.26.2
|
|
8092
8377
|
* react-reconciler.production.min.js
|
|
@@ -8099,7 +8384,7 @@ var scheduler_production_min = {};
|
|
|
8099
8384
|
(function(module) {
|
|
8100
8385
|
module.exports = function $$$reconciler($$$hostConfig) {
|
|
8101
8386
|
var exports = {};
|
|
8102
|
-
var aa =
|
|
8387
|
+
var aa = objectAssign, ba = React$1, m2 = scheduler.exports;
|
|
8103
8388
|
function q2(a) {
|
|
8104
8389
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
|
|
8105
8390
|
b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
@@ -12742,13 +13027,13 @@ var scheduler_production_min = {};
|
|
|
12742
13027
|
};
|
|
12743
13028
|
})(reactReconciler_production_min);
|
|
12744
13029
|
{
|
|
12745
|
-
|
|
13030
|
+
reactReconciler.exports = reactReconciler_production_min.exports;
|
|
12746
13031
|
}
|
|
12747
13032
|
var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
12748
13033
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12749
13034
|
};
|
|
12750
13035
|
Object.defineProperty(renderer, "__esModule", { value: true });
|
|
12751
|
-
var react_reconciler_1 = __importDefault$1(
|
|
13036
|
+
var react_reconciler_1 = __importDefault$1(reactReconciler.exports);
|
|
12752
13037
|
var reconciler = react_reconciler_1.default({
|
|
12753
13038
|
now: Date.now,
|
|
12754
13039
|
getRootHostContext: function() {
|
|
@@ -12993,12 +13278,12 @@ function withModel(useModelOrUseModels, mapModelToProps) {
|
|
|
12993
13278
|
};
|
|
12994
13279
|
}
|
|
12995
13280
|
withModel$1.withModel = withModel;
|
|
12996
|
-
Object.defineProperty(
|
|
13281
|
+
Object.defineProperty(hox, "__esModule", { value: true });
|
|
12997
13282
|
var create_model_1 = createModel$2;
|
|
12998
|
-
var createModel =
|
|
12999
|
-
|
|
13283
|
+
var createModel = hox.createModel = create_model_1.createModel;
|
|
13284
|
+
hox.createLazyModel = create_model_1.createLazyModel;
|
|
13000
13285
|
var with_model_1 = withModel$1;
|
|
13001
|
-
|
|
13286
|
+
hox.withModel = with_model_1.withModel;
|
|
13002
13287
|
function useSwagger() {
|
|
13003
13288
|
const [apiList, setApiList] = useState([]);
|
|
13004
13289
|
const [swaggerInfo, setSwaggerInfo] = useState(null);
|
|
@@ -13059,23 +13344,23 @@ function useSwagger() {
|
|
|
13059
13344
|
}
|
|
13060
13345
|
};
|
|
13061
13346
|
}
|
|
13062
|
-
function createApiSelectItem(summary,
|
|
13347
|
+
function createApiSelectItem(summary, api, method, request = []) {
|
|
13063
13348
|
return {
|
|
13064
13349
|
summary,
|
|
13065
|
-
label: `${summary} - ${method} ${
|
|
13066
|
-
value:
|
|
13067
|
-
url:
|
|
13350
|
+
label: `${summary} - ${method} ${api}`,
|
|
13351
|
+
value: api,
|
|
13352
|
+
url: api,
|
|
13068
13353
|
method,
|
|
13069
13354
|
request,
|
|
13070
|
-
parameters:
|
|
13355
|
+
parameters: api.parameters
|
|
13071
13356
|
};
|
|
13072
13357
|
}
|
|
13073
13358
|
const getDataSourceArray$1 = (paths = {}) => {
|
|
13074
13359
|
try {
|
|
13075
13360
|
return Object.keys(paths).map((key) => {
|
|
13076
|
-
const
|
|
13077
|
-
const apiPost =
|
|
13078
|
-
const apiGet =
|
|
13361
|
+
const api = paths[key];
|
|
13362
|
+
const apiPost = api.post || api.POST;
|
|
13363
|
+
const apiGet = api.get || api.GET;
|
|
13079
13364
|
if (apiPost) {
|
|
13080
13365
|
return createApiSelectItem(apiPost.summary, key, "POST");
|
|
13081
13366
|
} else if (apiGet) {
|
|
@@ -13148,8 +13433,8 @@ class PersistentStorage {
|
|
|
13148
13433
|
}
|
|
13149
13434
|
var storage = new PersistentStorage();
|
|
13150
13435
|
class DataSourceSchema extends JSONWatch {
|
|
13151
|
-
constructor(
|
|
13152
|
-
const { url, method = "get", ...more2 } =
|
|
13436
|
+
constructor(api) {
|
|
13437
|
+
const { url, method = "get", ...more2 } = api || {};
|
|
13153
13438
|
super({
|
|
13154
13439
|
url,
|
|
13155
13440
|
method,
|
|
@@ -13861,10 +14146,10 @@ function emitterVSCodeMessage(action, content2) {
|
|
|
13861
14146
|
function emitSave(fileMapContent) {
|
|
13862
14147
|
emitterVSCodeMessage(EMIT_EVENT_ACTION_SAVE, fileMapContent);
|
|
13863
14148
|
}
|
|
13864
|
-
const buildSchema = (schemaType,
|
|
14149
|
+
const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
|
|
13865
14150
|
let schemaObj = null;
|
|
13866
14151
|
if (schemaType === "ftp") {
|
|
13867
|
-
schemaObj = new FtpSchema$1({ host:
|
|
14152
|
+
schemaObj = new FtpSchema$1({ host: api, title: "" });
|
|
13868
14153
|
const realDataSource = {
|
|
13869
14154
|
...mainDataSource,
|
|
13870
14155
|
type: "ajax",
|
|
@@ -13877,14 +14162,14 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13877
14162
|
};
|
|
13878
14163
|
schemaObj.getDataSourcePanel().update(realDataSource);
|
|
13879
14164
|
} else if (schemaType === "formily-form") {
|
|
13880
|
-
schemaObj = new FormilyFormSchema({ host:
|
|
14165
|
+
schemaObj = new FormilyFormSchema({ host: api, title: "" });
|
|
13881
14166
|
const realDataSource = {
|
|
13882
14167
|
...mainDataSource,
|
|
13883
14168
|
type: "ajax"
|
|
13884
14169
|
};
|
|
13885
14170
|
schemaObj.getDataSourcePanel().update(realDataSource);
|
|
13886
14171
|
} else if (schemaType === "formily-form-v2") {
|
|
13887
|
-
schemaObj = new FormilyFormV2Schema({ host:
|
|
14172
|
+
schemaObj = new FormilyFormV2Schema({ host: api, title: "" });
|
|
13888
14173
|
const realDataSource = {
|
|
13889
14174
|
...mainDataSource,
|
|
13890
14175
|
type: "ajax"
|
|
@@ -13892,7 +14177,7 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13892
14177
|
schemaObj.getApiPanel().update(realDataSource);
|
|
13893
14178
|
} else if (schemaType === "detail") {
|
|
13894
14179
|
if (moreProps == null ? void 0 : moreProps.children) {
|
|
13895
|
-
schemaObj = new DetailSchema({ host:
|
|
14180
|
+
schemaObj = new DetailSchema({ host: api, title: "", ...moreProps });
|
|
13896
14181
|
} else {
|
|
13897
14182
|
const realDataSource = {
|
|
13898
14183
|
...mainDataSource,
|
|
@@ -13901,10 +14186,10 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13901
14186
|
detailData: "$RET.data"
|
|
13902
14187
|
}
|
|
13903
14188
|
};
|
|
13904
|
-
schemaObj = new DetailSchema({ host:
|
|
14189
|
+
schemaObj = new DetailSchema({ host: api, title: "", initDataSource: realDataSource });
|
|
13905
14190
|
}
|
|
13906
14191
|
} else if (schemaType === "edit-table") {
|
|
13907
|
-
schemaObj = new FtpSchema({ host:
|
|
14192
|
+
schemaObj = new FtpSchema({ host: api, title: "", ...moreProps });
|
|
13908
14193
|
const realDataSource = {
|
|
13909
14194
|
...mainDataSource,
|
|
13910
14195
|
type: "ajax",
|
|
@@ -13931,8 +14216,8 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13931
14216
|
}
|
|
13932
14217
|
}, 500)
|
|
13933
14218
|
);
|
|
13934
|
-
if (
|
|
13935
|
-
axios.defaults.baseURL =
|
|
14219
|
+
if (api.indexOf("?") === -1 && api.indexOf("mocks") === -1) {
|
|
14220
|
+
axios.defaults.baseURL = api;
|
|
13936
14221
|
}
|
|
13937
14222
|
return schemaObj;
|
|
13938
14223
|
};
|
|
@@ -13941,11 +14226,11 @@ const buildSchemaObjFromSchema = (schema) => {
|
|
|
13941
14226
|
return null;
|
|
13942
14227
|
}
|
|
13943
14228
|
const { host, body } = schema;
|
|
13944
|
-
const { type, api
|
|
14229
|
+
const { type, api, ...more2 } = body || {};
|
|
13945
14230
|
if (!host || !type) {
|
|
13946
14231
|
return null;
|
|
13947
14232
|
}
|
|
13948
|
-
return buildSchema(type, host,
|
|
14233
|
+
return buildSchema(type, host, api, more2);
|
|
13949
14234
|
};
|
|
13950
14235
|
function useSchema() {
|
|
13951
14236
|
const { fetchSwaggerInfo } = useSwagger$1();
|
|
@@ -14588,7 +14873,7 @@ function DataSourceSelect(props) {
|
|
|
14588
14873
|
size: "small",
|
|
14589
14874
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
14590
14875
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14591
|
-
className: styles$
|
|
14876
|
+
className: styles$e.staticValueOkBtn,
|
|
14592
14877
|
size: "small",
|
|
14593
14878
|
onClick: onOkQuery
|
|
14594
14879
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14599,7 +14884,7 @@ function DataSourceSelect(props) {
|
|
|
14599
14884
|
size: "small",
|
|
14600
14885
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
14601
14886
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14602
|
-
className: styles$
|
|
14887
|
+
className: styles$e.staticValueOkBtn,
|
|
14603
14888
|
size: "small",
|
|
14604
14889
|
onClick: onOkRecordData
|
|
14605
14890
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14610,7 +14895,7 @@ function DataSourceSelect(props) {
|
|
|
14610
14895
|
size: "small",
|
|
14611
14896
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
14612
14897
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14613
|
-
className: styles$
|
|
14898
|
+
className: styles$e.staticValueOkBtn,
|
|
14614
14899
|
size: "small",
|
|
14615
14900
|
onClick: onOkParams
|
|
14616
14901
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14621,7 +14906,7 @@ function DataSourceSelect(props) {
|
|
|
14621
14906
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14622
14907
|
size: "small"
|
|
14623
14908
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14624
|
-
className: styles$
|
|
14909
|
+
className: styles$e.staticValueOkBtn,
|
|
14625
14910
|
size: "small",
|
|
14626
14911
|
onClick: onOkStatic
|
|
14627
14912
|
}, "\u786E\u5B9A")) : null) : null);
|
|
@@ -14650,12 +14935,12 @@ function DataSourceSelect(props) {
|
|
|
14650
14935
|
type: "primary",
|
|
14651
14936
|
text: true,
|
|
14652
14937
|
size: "small",
|
|
14653
|
-
className: styles$
|
|
14938
|
+
className: styles$e.tableDeleteBtn,
|
|
14654
14939
|
onClick: () => commonTableDelete(value2, index2, record, "params")
|
|
14655
14940
|
}, "\u5220\u9664"));
|
|
14656
14941
|
};
|
|
14657
14942
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
14658
|
-
className: styles$
|
|
14943
|
+
className: styles$e.dsTitle
|
|
14659
14944
|
}, "\u5165\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
|
|
14660
14945
|
style: { marginBottom: 8 }
|
|
14661
14946
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
@@ -14689,9 +14974,9 @@ function DataSourceSelect(props) {
|
|
|
14689
14974
|
};
|
|
14690
14975
|
const renderWatch = () => {
|
|
14691
14976
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
14692
|
-
className: styles$
|
|
14977
|
+
className: styles$e.watchContainer
|
|
14693
14978
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
14694
|
-
className: styles$
|
|
14979
|
+
className: styles$e.dsTitleWatch
|
|
14695
14980
|
}, "\u89E6\u53D1\u65F6\u673A:"), /* @__PURE__ */ React$1.createElement(Select$2, {
|
|
14696
14981
|
mode: "multiple",
|
|
14697
14982
|
showSearch: true,
|
|
@@ -14969,7 +15254,7 @@ function DataSourceSelect(props) {
|
|
|
14969
15254
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14970
15255
|
size: "small"
|
|
14971
15256
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14972
|
-
className: styles$
|
|
15257
|
+
className: styles$e.staticValueOkBtn,
|
|
14973
15258
|
size: "small",
|
|
14974
15259
|
onClick: onOkQuery
|
|
14975
15260
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14980,7 +15265,7 @@ function DataSourceSelect(props) {
|
|
|
14980
15265
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14981
15266
|
size: "small"
|
|
14982
15267
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14983
|
-
className: styles$
|
|
15268
|
+
className: styles$e.staticValueOkBtn,
|
|
14984
15269
|
size: "small",
|
|
14985
15270
|
onClick: onOkStatic
|
|
14986
15271
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$RET" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14991,7 +15276,7 @@ function DataSourceSelect(props) {
|
|
|
14991
15276
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14992
15277
|
size: "small"
|
|
14993
15278
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14994
|
-
className: styles$
|
|
15279
|
+
className: styles$e.staticValueOkBtn,
|
|
14995
15280
|
size: "small",
|
|
14996
15281
|
onClick: onOkRet
|
|
14997
15282
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15002,7 +15287,7 @@ function DataSourceSelect(props) {
|
|
|
15002
15287
|
size: "small",
|
|
15003
15288
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15004
15289
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15005
|
-
className: styles$
|
|
15290
|
+
className: styles$e.staticValueOkBtn,
|
|
15006
15291
|
size: "small",
|
|
15007
15292
|
onClick: onOkParams
|
|
15008
15293
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15013,7 +15298,7 @@ function DataSourceSelect(props) {
|
|
|
15013
15298
|
size: "small",
|
|
15014
15299
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15015
15300
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15016
|
-
className: styles$
|
|
15301
|
+
className: styles$e.staticValueOkBtn,
|
|
15017
15302
|
size: "small",
|
|
15018
15303
|
onClick: onOkRecordData
|
|
15019
15304
|
}, "\u786E\u5B9A")) : null) : null);
|
|
@@ -15051,9 +15336,9 @@ function DataSourceSelect(props) {
|
|
|
15051
15336
|
}, "\u5220\u9664");
|
|
15052
15337
|
};
|
|
15053
15338
|
return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
|
|
15054
|
-
className: styles$
|
|
15339
|
+
className: styles$e.dsTitle
|
|
15055
15340
|
}, "\u683C\u5F0F\u5316\u51FA\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
|
|
15056
|
-
className: styles$
|
|
15341
|
+
className: styles$e.actionButton
|
|
15057
15342
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
15058
15343
|
onClick: onResponseAdd,
|
|
15059
15344
|
size: "small"
|
|
@@ -15083,9 +15368,9 @@ function DataSourceSelect(props) {
|
|
|
15083
15368
|
})));
|
|
15084
15369
|
};
|
|
15085
15370
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
15086
|
-
className: styles$
|
|
15371
|
+
className: styles$e.dsContainer
|
|
15087
15372
|
}, hasExtra && !defaultAjax ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
|
|
15088
|
-
className: styles$
|
|
15373
|
+
className: styles$e.dsType
|
|
15089
15374
|
}, /* @__PURE__ */ React$1.createElement(RadioGroup$1, {
|
|
15090
15375
|
value: typeValue,
|
|
15091
15376
|
onChange: onTypeChange,
|
|
@@ -15115,9 +15400,9 @@ function DataSourceSelect(props) {
|
|
|
15115
15400
|
filter: mainDataSourceFilter,
|
|
15116
15401
|
...selectProps
|
|
15117
15402
|
}) : null, hasExtra && typeValue === "json" ? /* @__PURE__ */ React$1.createElement("div", {
|
|
15118
|
-
className: styles$
|
|
15403
|
+
className: styles$e.dsJSONContent
|
|
15119
15404
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
15120
|
-
className: styles$
|
|
15405
|
+
className: styles$e.dsJSONContentTip
|
|
15121
15406
|
}, "\u8BF7\u8F93\u5165json(\u63D0\u793A\uFF1Ajson\u7684key\u9700\u8981\u52A0\u4E0A\u53CC\u5F15\u53F7)"), /* @__PURE__ */ React$1.createElement(MonacoEditor, {
|
|
15122
15407
|
value: codeMirrorJsonObj,
|
|
15123
15408
|
onChange: (v2, viewUpdate) => {
|
|
@@ -15130,9 +15415,9 @@ function DataSourceSelect(props) {
|
|
|
15130
15415
|
}
|
|
15131
15416
|
}
|
|
15132
15417
|
})) : null, hasExtra && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
|
|
15133
|
-
className: styles$
|
|
15418
|
+
className: styles$e.dsAjaxContent
|
|
15134
15419
|
}, showWatch && !defaultAjax && renderWatch(), renderParamsTable(), renderFormatResponse()) : null, hasExtra && showSecondConfirm && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
|
|
15135
|
-
className: styles$
|
|
15420
|
+
className: styles$e.secondConfirm
|
|
15136
15421
|
}, /* @__PURE__ */ React$1.createElement(Checkbox, {
|
|
15137
15422
|
checked: secondConfirmValue,
|
|
15138
15423
|
onChange: secondConfirmChange
|
|
@@ -15163,7 +15448,7 @@ const dsTitleWatch = "_dsTitleWatch_1islj_28";
|
|
|
15163
15448
|
const staticValueOkBtn = "_staticValueOkBtn_1islj_33";
|
|
15164
15449
|
const tableDeleteBtn = "_tableDeleteBtn_1islj_37";
|
|
15165
15450
|
const secondConfirm = "_secondConfirm_1islj_41";
|
|
15166
|
-
var styles$
|
|
15451
|
+
var styles$d = {
|
|
15167
15452
|
dsType,
|
|
15168
15453
|
dsJSONContent,
|
|
15169
15454
|
dsJSONContentTip,
|
|
@@ -15526,7 +15811,7 @@ function ParamsSelect(props) {
|
|
|
15526
15811
|
size: "small",
|
|
15527
15812
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15528
15813
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15529
|
-
className: styles$
|
|
15814
|
+
className: styles$d.staticValueOkBtn,
|
|
15530
15815
|
size: "small",
|
|
15531
15816
|
onClick: onOkQuery
|
|
15532
15817
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15537,7 +15822,7 @@ function ParamsSelect(props) {
|
|
|
15537
15822
|
size: "small",
|
|
15538
15823
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15539
15824
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15540
|
-
className: styles$
|
|
15825
|
+
className: styles$d.staticValueOkBtn,
|
|
15541
15826
|
size: "small",
|
|
15542
15827
|
onClick: onOkParams
|
|
15543
15828
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15548,7 +15833,7 @@ function ParamsSelect(props) {
|
|
|
15548
15833
|
size: "small",
|
|
15549
15834
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15550
15835
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15551
|
-
className: styles$
|
|
15836
|
+
className: styles$d.staticValueOkBtn,
|
|
15552
15837
|
size: "small",
|
|
15553
15838
|
onClick: onOkRecordData
|
|
15554
15839
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$FORM" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15559,7 +15844,7 @@ function ParamsSelect(props) {
|
|
|
15559
15844
|
size: "small",
|
|
15560
15845
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15561
15846
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15562
|
-
className: styles$
|
|
15847
|
+
className: styles$d.staticValueOkBtn,
|
|
15563
15848
|
size: "small",
|
|
15564
15849
|
onClick: onOkForm
|
|
15565
15850
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15570,7 +15855,7 @@ function ParamsSelect(props) {
|
|
|
15570
15855
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
15571
15856
|
size: "small"
|
|
15572
15857
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15573
|
-
className: styles$
|
|
15858
|
+
className: styles$d.staticValueOkBtn,
|
|
15574
15859
|
size: "small",
|
|
15575
15860
|
onClick: onOkStatic
|
|
15576
15861
|
}, "\u786E\u5B9A")) : null) : null);
|
|
@@ -15599,7 +15884,7 @@ function ParamsSelect(props) {
|
|
|
15599
15884
|
type: "primary",
|
|
15600
15885
|
text: true,
|
|
15601
15886
|
size: "small",
|
|
15602
|
-
className: styles$
|
|
15887
|
+
className: styles$d.tableDeleteBtn,
|
|
15603
15888
|
onClick: () => commonTableDelete(value2, index2, record, "params")
|
|
15604
15889
|
}, "\u5220\u9664"));
|
|
15605
15890
|
};
|
|
@@ -15627,9 +15912,9 @@ function ParamsSelect(props) {
|
|
|
15627
15912
|
})));
|
|
15628
15913
|
};
|
|
15629
15914
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
15630
|
-
className: styles$
|
|
15915
|
+
className: styles$d.dsContainer
|
|
15631
15916
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
15632
|
-
className: styles$
|
|
15917
|
+
className: styles$d.dsAjaxContent
|
|
15633
15918
|
}, renderParamsTable()));
|
|
15634
15919
|
}
|
|
15635
15920
|
const { connect: connect$7, mapReadPretty: mapReadPretty$6, mapProps: mapProps$7 } = formilyReact;
|
|
@@ -15748,11 +16033,12 @@ const mapStatus = (props, field) => {
|
|
|
15748
16033
|
};
|
|
15749
16034
|
const patchDataSource = (dataSource = []) => {
|
|
15750
16035
|
const removeEmptyChildren = (data) => {
|
|
16036
|
+
var _a2, _b2;
|
|
15751
16037
|
const result = { ...data };
|
|
15752
16038
|
if (!result.children || result.children.length === 0) {
|
|
15753
16039
|
delete result.children;
|
|
15754
16040
|
} else {
|
|
15755
|
-
result.children = result.children.map(removeEmptyChildren);
|
|
16041
|
+
result.children = (_b2 = (_a2 = result.children) == null ? void 0 : _a2.map) == null ? void 0 : _b2.call(_a2, removeEmptyChildren);
|
|
15756
16042
|
}
|
|
15757
16043
|
return result;
|
|
15758
16044
|
};
|
|
@@ -15803,7 +16089,7 @@ Select$1.AutoComplete = connect$4(
|
|
|
15803
16089
|
);
|
|
15804
16090
|
const container = "_container_t9q14_1";
|
|
15805
16091
|
const footer = "_footer_t9q14_8";
|
|
15806
|
-
var styles$
|
|
16092
|
+
var styles$c = {
|
|
15807
16093
|
container,
|
|
15808
16094
|
footer
|
|
15809
16095
|
};
|
|
@@ -15903,14 +16189,14 @@ const FormilyForm = (props) => {
|
|
|
15903
16189
|
fixedSpan: 8
|
|
15904
16190
|
},
|
|
15905
16191
|
size: "small",
|
|
15906
|
-
className: styles$
|
|
16192
|
+
className: styles$c.container
|
|
15907
16193
|
},
|
|
15908
16194
|
...restProps
|
|
15909
16195
|
}, /* @__PURE__ */ React$1.createElement(SchemaField, {
|
|
15910
16196
|
components,
|
|
15911
16197
|
schema: schema == null ? void 0 : schema.schema
|
|
15912
16198
|
}), children, !hiddenSubmit && /* @__PURE__ */ React$1.createElement("div", {
|
|
15913
|
-
className: styles$
|
|
16199
|
+
className: styles$c.footer
|
|
15914
16200
|
}, /* @__PURE__ */ React$1.createElement(Submit, {
|
|
15915
16201
|
...SubmitProps
|
|
15916
16202
|
}, "\u63D0\u4EA4")));
|
|
@@ -16379,7 +16665,7 @@ function AjaxSchemaForm(props) {
|
|
|
16379
16665
|
generateFastJson
|
|
16380
16666
|
}) : null);
|
|
16381
16667
|
}
|
|
16382
|
-
function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
|
|
16668
|
+
function AjaxFormDialog({ title: title2 = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
|
|
16383
16669
|
const swagger = useSwagger$1();
|
|
16384
16670
|
const schema = React$1.useMemo(() => {
|
|
16385
16671
|
return oldSchema.clone();
|
|
@@ -16399,7 +16685,7 @@ function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldS
|
|
|
16399
16685
|
const type = schema.getViewType();
|
|
16400
16686
|
return /* @__PURE__ */ React$1.createElement(Dialog, {
|
|
16401
16687
|
footerActions: ["cancel", "ok"],
|
|
16402
|
-
title,
|
|
16688
|
+
title: title2,
|
|
16403
16689
|
v2: true,
|
|
16404
16690
|
visible,
|
|
16405
16691
|
centered: true,
|
|
@@ -16468,9 +16754,9 @@ function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldS
|
|
|
16468
16754
|
dataSource: swagger.apiList,
|
|
16469
16755
|
defaultValue: schema.get("url"),
|
|
16470
16756
|
onChange: (value) => {
|
|
16471
|
-
const
|
|
16472
|
-
if (
|
|
16473
|
-
schema.setAjaxRequest(value,
|
|
16757
|
+
const api = swagger.getApi(value);
|
|
16758
|
+
if (api) {
|
|
16759
|
+
schema.setAjaxRequest(value, api.method);
|
|
16474
16760
|
} else {
|
|
16475
16761
|
schema.set("url", value);
|
|
16476
16762
|
}
|
|
@@ -17326,7 +17612,7 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17326
17612
|
],
|
|
17327
17613
|
fulfill: {
|
|
17328
17614
|
state: {
|
|
17329
|
-
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'url' || $deps.type === 'custom' }}"
|
|
17615
|
+
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"
|
|
17330
17616
|
}
|
|
17331
17617
|
}
|
|
17332
17618
|
}
|
|
@@ -17481,7 +17767,9 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17481
17767
|
"x-decorator": "CnFormItem",
|
|
17482
17768
|
"x-component": "Input",
|
|
17483
17769
|
"x-validator": [],
|
|
17484
|
-
"x-component-props": {
|
|
17770
|
+
"x-component-props": {
|
|
17771
|
+
hasClear: true
|
|
17772
|
+
},
|
|
17485
17773
|
"x-decorator-props": {},
|
|
17486
17774
|
name: "width",
|
|
17487
17775
|
default: "50%",
|
|
@@ -17508,7 +17796,9 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17508
17796
|
"x-decorator": "CnFormItem",
|
|
17509
17797
|
"x-component": "Input",
|
|
17510
17798
|
"x-validator": [],
|
|
17511
|
-
"x-component-props": {
|
|
17799
|
+
"x-component-props": {
|
|
17800
|
+
hasClear: true
|
|
17801
|
+
},
|
|
17512
17802
|
"x-decorator-props": {},
|
|
17513
17803
|
name: "height",
|
|
17514
17804
|
"x-reactions": {
|
|
@@ -17622,6 +17912,58 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17622
17912
|
},
|
|
17623
17913
|
"x-designable-id": "9if44453estsh"
|
|
17624
17914
|
},
|
|
17915
|
+
successMessage: {
|
|
17916
|
+
type: "string",
|
|
17917
|
+
title: "\u81EA\u5B9A\u4E49\u6210\u529F\u6587\u6848",
|
|
17918
|
+
"x-decorator": "CnFormItem",
|
|
17919
|
+
"x-component": "Input",
|
|
17920
|
+
"x-validator": [],
|
|
17921
|
+
"x-component-props": {},
|
|
17922
|
+
"x-decorator-props": {},
|
|
17923
|
+
name: "successMessage",
|
|
17924
|
+
"x-reactions": {
|
|
17925
|
+
dependencies: [
|
|
17926
|
+
{
|
|
17927
|
+
property: "value",
|
|
17928
|
+
type: "string | number",
|
|
17929
|
+
source: "action.type",
|
|
17930
|
+
name: "type"
|
|
17931
|
+
}
|
|
17932
|
+
],
|
|
17933
|
+
fulfill: {
|
|
17934
|
+
state: {
|
|
17935
|
+
visible: "{{$deps.type === 'ajax'}}"
|
|
17936
|
+
}
|
|
17937
|
+
}
|
|
17938
|
+
},
|
|
17939
|
+
"x-designable-id": "9ifgjasdussstsh"
|
|
17940
|
+
},
|
|
17941
|
+
errorMessage: {
|
|
17942
|
+
type: "string",
|
|
17943
|
+
title: "\u81EA\u5B9A\u4E49\u5931\u8D25\u6587\u6848",
|
|
17944
|
+
"x-decorator": "CnFormItem",
|
|
17945
|
+
"x-component": "Input",
|
|
17946
|
+
"x-validator": [],
|
|
17947
|
+
"x-component-props": {},
|
|
17948
|
+
"x-decorator-props": {},
|
|
17949
|
+
name: "errorMessage",
|
|
17950
|
+
"x-reactions": {
|
|
17951
|
+
dependencies: [
|
|
17952
|
+
{
|
|
17953
|
+
property: "value",
|
|
17954
|
+
type: "string | number",
|
|
17955
|
+
source: "action.type",
|
|
17956
|
+
name: "type"
|
|
17957
|
+
}
|
|
17958
|
+
],
|
|
17959
|
+
fulfill: {
|
|
17960
|
+
state: {
|
|
17961
|
+
visible: "{{$deps.type === 'ajax'}}"
|
|
17962
|
+
}
|
|
17963
|
+
}
|
|
17964
|
+
},
|
|
17965
|
+
"x-designable-id": "9ifgja09sdussstsh"
|
|
17966
|
+
},
|
|
17625
17967
|
shouldRender: {
|
|
17626
17968
|
title: "\u6761\u4EF6\u6E32\u67D3",
|
|
17627
17969
|
"x-decorator": "CnFormItem",
|
|
@@ -17771,6 +18113,9 @@ const dataAdaptor$2 = (data, isValue) => {
|
|
|
17771
18113
|
secondConfirm: secondConfirm2,
|
|
17772
18114
|
secondConfirmTitle,
|
|
17773
18115
|
secondConfirmContent,
|
|
18116
|
+
isDisabled,
|
|
18117
|
+
successMessage,
|
|
18118
|
+
errorMessage,
|
|
17774
18119
|
...otherAction
|
|
17775
18120
|
} = action || {};
|
|
17776
18121
|
if (type === "ajax") {
|
|
@@ -17782,6 +18127,9 @@ const dataAdaptor$2 = (data, isValue) => {
|
|
|
17782
18127
|
secondConfirm: secondConfirm2,
|
|
17783
18128
|
secondConfirmTitle,
|
|
17784
18129
|
secondConfirmContent,
|
|
18130
|
+
isDisabled,
|
|
18131
|
+
successMessage,
|
|
18132
|
+
errorMessage,
|
|
17785
18133
|
...dataSource
|
|
17786
18134
|
};
|
|
17787
18135
|
} else {
|
|
@@ -17792,9 +18140,12 @@ const dataAdaptor$2 = (data, isValue) => {
|
|
|
17792
18140
|
...otherAction
|
|
17793
18141
|
},
|
|
17794
18142
|
shouldRender,
|
|
18143
|
+
isDisabled,
|
|
17795
18144
|
secondConfirm: secondConfirm2,
|
|
17796
18145
|
secondConfirmTitle,
|
|
17797
18146
|
secondConfirmContent,
|
|
18147
|
+
successMessage,
|
|
18148
|
+
errorMessage,
|
|
17798
18149
|
...otherAction
|
|
17799
18150
|
};
|
|
17800
18151
|
}
|
|
@@ -18105,8 +18456,12 @@ var PrimaryKey = {
|
|
|
18105
18456
|
"x-designable-id": "c1f6xiczrp8"
|
|
18106
18457
|
}
|
|
18107
18458
|
};
|
|
18108
|
-
var commonColumnProps = () => {
|
|
18459
|
+
var commonColumnProps = ({ listSchema = [] }) => {
|
|
18109
18460
|
var _a2;
|
|
18461
|
+
const columnsOpts = (listSchema == null ? void 0 : listSchema.map((item) => ({
|
|
18462
|
+
...item,
|
|
18463
|
+
value: item.name || item.label
|
|
18464
|
+
}))) || [];
|
|
18110
18465
|
return {
|
|
18111
18466
|
width: {
|
|
18112
18467
|
type: "number",
|
|
@@ -18284,6 +18639,25 @@ var commonColumnProps = () => {
|
|
|
18284
18639
|
},
|
|
18285
18640
|
name: "tooltip",
|
|
18286
18641
|
"x-designable-id": "sxbti21112zmzk"
|
|
18642
|
+
},
|
|
18643
|
+
parentHeaderColumn: {
|
|
18644
|
+
type: "string",
|
|
18645
|
+
title: "\u8868\u5934\u5206\u7EC4\u7236\u7EA7\u5217",
|
|
18646
|
+
"x-decorator": "CnFormItem",
|
|
18647
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
18648
|
+
"x-validator": [],
|
|
18649
|
+
"x-component-props": {
|
|
18650
|
+
style: {
|
|
18651
|
+
width: "200px"
|
|
18652
|
+
},
|
|
18653
|
+
size: "small"
|
|
18654
|
+
},
|
|
18655
|
+
"x-decorator-props": {
|
|
18656
|
+
tip: "\u8BBE\u7F6E\u7236\u7EA7\u540E\uFF0C\u5F53\u524D\u5217\u8868\u5934\u4F1A\u663E\u793A\u5728\u7236\u7EA7\u5217\u7684\u4E0B\u9762"
|
|
18657
|
+
},
|
|
18658
|
+
enum: columnsOpts,
|
|
18659
|
+
name: "parentHeaderColumn",
|
|
18660
|
+
"x-designable-id": "sxbti11221112zmzk"
|
|
18287
18661
|
}
|
|
18288
18662
|
};
|
|
18289
18663
|
};
|
|
@@ -18302,7 +18676,7 @@ const shouldCopyClipboard = {
|
|
|
18302
18676
|
"x-designable-id": "sxbti22331112zmzk"
|
|
18303
18677
|
}
|
|
18304
18678
|
};
|
|
18305
|
-
var TextSchema = () => {
|
|
18679
|
+
var TextSchema = (params) => {
|
|
18306
18680
|
return {
|
|
18307
18681
|
form: {
|
|
18308
18682
|
labelCol: 6,
|
|
@@ -18311,14 +18685,14 @@ var TextSchema = () => {
|
|
|
18311
18685
|
schema: {
|
|
18312
18686
|
type: "object",
|
|
18313
18687
|
properties: {
|
|
18314
|
-
...commonColumnProps(),
|
|
18688
|
+
...commonColumnProps(params),
|
|
18315
18689
|
...shouldCopyClipboard
|
|
18316
18690
|
},
|
|
18317
18691
|
"x-designable-id": "j744a1rk494"
|
|
18318
18692
|
}
|
|
18319
18693
|
};
|
|
18320
18694
|
};
|
|
18321
|
-
var TplSchema = () => {
|
|
18695
|
+
var TplSchema = (params) => {
|
|
18322
18696
|
return {
|
|
18323
18697
|
form: {
|
|
18324
18698
|
labelCol: 6,
|
|
@@ -18327,7 +18701,7 @@ var TplSchema = () => {
|
|
|
18327
18701
|
schema: {
|
|
18328
18702
|
type: "object",
|
|
18329
18703
|
properties: {
|
|
18330
|
-
...commonColumnProps(),
|
|
18704
|
+
...commonColumnProps(params),
|
|
18331
18705
|
tpl: {
|
|
18332
18706
|
type: "string",
|
|
18333
18707
|
title: "\u6A21\u677F\u8868\u8FBE\u5F0F",
|
|
@@ -18353,7 +18727,7 @@ var TplSchema = () => {
|
|
|
18353
18727
|
}
|
|
18354
18728
|
};
|
|
18355
18729
|
};
|
|
18356
|
-
var TagSchema = () => {
|
|
18730
|
+
var TagSchema = (params) => {
|
|
18357
18731
|
return {
|
|
18358
18732
|
form: {
|
|
18359
18733
|
labelCol: 4,
|
|
@@ -18362,7 +18736,7 @@ var TagSchema = () => {
|
|
|
18362
18736
|
schema: {
|
|
18363
18737
|
type: "object",
|
|
18364
18738
|
properties: {
|
|
18365
|
-
...commonColumnProps(),
|
|
18739
|
+
...commonColumnProps(params),
|
|
18366
18740
|
dataSource: {
|
|
18367
18741
|
type: "array",
|
|
18368
18742
|
title: "\u6807\u7B7E\u9879",
|
|
@@ -18566,7 +18940,7 @@ var TagSchema = () => {
|
|
|
18566
18940
|
}
|
|
18567
18941
|
};
|
|
18568
18942
|
};
|
|
18569
|
-
var DateSchema = () => {
|
|
18943
|
+
var DateSchema = (params) => {
|
|
18570
18944
|
return {
|
|
18571
18945
|
form: {
|
|
18572
18946
|
labelCol: 6,
|
|
@@ -18575,7 +18949,7 @@ var DateSchema = () => {
|
|
|
18575
18949
|
schema: {
|
|
18576
18950
|
type: "object",
|
|
18577
18951
|
properties: {
|
|
18578
|
-
...commonColumnProps(),
|
|
18952
|
+
...commonColumnProps(params),
|
|
18579
18953
|
format: {
|
|
18580
18954
|
type: "string",
|
|
18581
18955
|
title: "\u65E5\u671F\u663E\u793A\u683C\u5F0F",
|
|
@@ -18606,6 +18980,18 @@ var DateSchema = () => {
|
|
|
18606
18980
|
{
|
|
18607
18981
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
18608
18982
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
18983
|
+
},
|
|
18984
|
+
{
|
|
18985
|
+
label: "DD/MM/YYYY",
|
|
18986
|
+
value: "DD/MM/YYYY"
|
|
18987
|
+
},
|
|
18988
|
+
{
|
|
18989
|
+
label: "DD/MM/YYYY HH:mm",
|
|
18990
|
+
value: "DD/MM/YYYY HH:mm"
|
|
18991
|
+
},
|
|
18992
|
+
{
|
|
18993
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
18994
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
18609
18995
|
}
|
|
18610
18996
|
],
|
|
18611
18997
|
"x-designable-id": "sxb8qjazmzk",
|
|
@@ -18617,7 +19003,8 @@ var DateSchema = () => {
|
|
|
18617
19003
|
}
|
|
18618
19004
|
};
|
|
18619
19005
|
};
|
|
18620
|
-
var CustomSchema = (
|
|
19006
|
+
var CustomSchema = (params) => {
|
|
19007
|
+
const { moduleDataSource = {} } = params || {};
|
|
18621
19008
|
return {
|
|
18622
19009
|
form: {
|
|
18623
19010
|
labelCol: 6,
|
|
@@ -18626,7 +19013,7 @@ var CustomSchema = ({ moduleDataSource = {} }) => {
|
|
|
18626
19013
|
schema: {
|
|
18627
19014
|
type: "object",
|
|
18628
19015
|
properties: {
|
|
18629
|
-
...commonColumnProps(),
|
|
19016
|
+
...commonColumnProps(params),
|
|
18630
19017
|
customType: {
|
|
18631
19018
|
title: "\u81EA\u5B9A\u4E49\u7C7B\u578B",
|
|
18632
19019
|
"x-decorator": "CnFormItem",
|
|
@@ -18689,7 +19076,7 @@ var CustomSchema = ({ moduleDataSource = {} }) => {
|
|
|
18689
19076
|
}
|
|
18690
19077
|
};
|
|
18691
19078
|
};
|
|
18692
|
-
var EnumSchema = () => {
|
|
19079
|
+
var EnumSchema = (params) => {
|
|
18693
19080
|
return {
|
|
18694
19081
|
form: {
|
|
18695
19082
|
labelCol: 4,
|
|
@@ -18698,7 +19085,7 @@ var EnumSchema = () => {
|
|
|
18698
19085
|
schema: {
|
|
18699
19086
|
type: "object",
|
|
18700
19087
|
properties: {
|
|
18701
|
-
...commonColumnProps(),
|
|
19088
|
+
...commonColumnProps(params),
|
|
18702
19089
|
dataSource: {
|
|
18703
19090
|
type: "array",
|
|
18704
19091
|
title: "\u679A\u4E3E\u9879",
|
|
@@ -18815,7 +19202,7 @@ var EnumSchema = () => {
|
|
|
18815
19202
|
}
|
|
18816
19203
|
};
|
|
18817
19204
|
};
|
|
18818
|
-
var NumSchema = () => {
|
|
19205
|
+
var NumSchema = (params) => {
|
|
18819
19206
|
return {
|
|
18820
19207
|
form: {
|
|
18821
19208
|
labelCol: 6,
|
|
@@ -18824,7 +19211,7 @@ var NumSchema = () => {
|
|
|
18824
19211
|
schema: {
|
|
18825
19212
|
type: "object",
|
|
18826
19213
|
properties: {
|
|
18827
|
-
...commonColumnProps(),
|
|
19214
|
+
...commonColumnProps(params),
|
|
18828
19215
|
format: {
|
|
18829
19216
|
title: "\u6570\u503C\u683C\u5F0F",
|
|
18830
19217
|
"x-decorator": "CnFormItem",
|
|
@@ -18863,7 +19250,7 @@ var NumSchema = () => {
|
|
|
18863
19250
|
}
|
|
18864
19251
|
};
|
|
18865
19252
|
};
|
|
18866
|
-
var ClipboardSchema = () => {
|
|
19253
|
+
var ClipboardSchema = (params) => {
|
|
18867
19254
|
return {
|
|
18868
19255
|
form: {
|
|
18869
19256
|
labelCol: 6,
|
|
@@ -18872,13 +19259,13 @@ var ClipboardSchema = () => {
|
|
|
18872
19259
|
schema: {
|
|
18873
19260
|
type: "object",
|
|
18874
19261
|
properties: {
|
|
18875
|
-
...commonColumnProps()
|
|
19262
|
+
...commonColumnProps(params)
|
|
18876
19263
|
},
|
|
18877
19264
|
"x-designable-id": "j741121rk494"
|
|
18878
19265
|
}
|
|
18879
19266
|
};
|
|
18880
19267
|
};
|
|
18881
|
-
var ListSchema = () => {
|
|
19268
|
+
var ListSchema = (params) => {
|
|
18882
19269
|
return {
|
|
18883
19270
|
form: {
|
|
18884
19271
|
labelCol: 6,
|
|
@@ -18887,7 +19274,7 @@ var ListSchema = () => {
|
|
|
18887
19274
|
schema: {
|
|
18888
19275
|
type: "object",
|
|
18889
19276
|
properties: {
|
|
18890
|
-
...commonColumnProps(),
|
|
19277
|
+
...commonColumnProps(params),
|
|
18891
19278
|
showNum: {
|
|
18892
19279
|
type: "number",
|
|
18893
19280
|
title: "\u663E\u793A\u5728\u8868\u683C\u5217\u7684\u6761\u6570",
|
|
@@ -18948,7 +19335,7 @@ var ListSchema = () => {
|
|
|
18948
19335
|
}
|
|
18949
19336
|
};
|
|
18950
19337
|
};
|
|
18951
|
-
var TooltipText = () => {
|
|
19338
|
+
var TooltipText = (params) => {
|
|
18952
19339
|
return {
|
|
18953
19340
|
form: {
|
|
18954
19341
|
labelCol: 6,
|
|
@@ -18957,7 +19344,7 @@ var TooltipText = () => {
|
|
|
18957
19344
|
schema: {
|
|
18958
19345
|
type: "object",
|
|
18959
19346
|
properties: {
|
|
18960
|
-
...commonColumnProps(),
|
|
19347
|
+
...commonColumnProps(params),
|
|
18961
19348
|
align: {
|
|
18962
19349
|
title: "\u6D6E\u5C42\u65B9\u5411",
|
|
18963
19350
|
"x-decorator": "CnFormItem",
|
|
@@ -18998,7 +19385,7 @@ var TooltipText = () => {
|
|
|
18998
19385
|
}
|
|
18999
19386
|
};
|
|
19000
19387
|
};
|
|
19001
|
-
var Images = () => {
|
|
19388
|
+
var Images = (params) => {
|
|
19002
19389
|
return {
|
|
19003
19390
|
form: {
|
|
19004
19391
|
labelCol: 6,
|
|
@@ -19007,7 +19394,7 @@ var Images = () => {
|
|
|
19007
19394
|
schema: {
|
|
19008
19395
|
type: "object",
|
|
19009
19396
|
properties: {
|
|
19010
|
-
...commonColumnProps(),
|
|
19397
|
+
...commonColumnProps(params),
|
|
19011
19398
|
isFile: {
|
|
19012
19399
|
type: "boolean",
|
|
19013
19400
|
title: "\u662F\u5426\u662F\u9644\u4EF6",
|
|
@@ -19105,7 +19492,7 @@ var Images = () => {
|
|
|
19105
19492
|
}
|
|
19106
19493
|
};
|
|
19107
19494
|
};
|
|
19108
|
-
var CnTag = () => {
|
|
19495
|
+
var CnTag = (params) => {
|
|
19109
19496
|
return {
|
|
19110
19497
|
form: {
|
|
19111
19498
|
labelCol: 6,
|
|
@@ -19114,13 +19501,13 @@ var CnTag = () => {
|
|
|
19114
19501
|
schema: {
|
|
19115
19502
|
type: "object",
|
|
19116
19503
|
properties: {
|
|
19117
|
-
...commonColumnProps()
|
|
19504
|
+
...commonColumnProps(params)
|
|
19118
19505
|
},
|
|
19119
19506
|
"x-designable-id": "kv084cg1qw7"
|
|
19120
19507
|
}
|
|
19121
19508
|
};
|
|
19122
19509
|
};
|
|
19123
|
-
var CnNumber = () => {
|
|
19510
|
+
var CnNumber = (params) => {
|
|
19124
19511
|
return {
|
|
19125
19512
|
form: {
|
|
19126
19513
|
labelCol: 6,
|
|
@@ -19129,13 +19516,13 @@ var CnNumber = () => {
|
|
|
19129
19516
|
schema: {
|
|
19130
19517
|
type: "object",
|
|
19131
19518
|
properties: {
|
|
19132
|
-
...commonColumnProps()
|
|
19519
|
+
...commonColumnProps(params)
|
|
19133
19520
|
},
|
|
19134
19521
|
"x-designable-id": "kv084cg1qw7"
|
|
19135
19522
|
}
|
|
19136
19523
|
};
|
|
19137
19524
|
};
|
|
19138
|
-
var CnBank = () => {
|
|
19525
|
+
var CnBank = (params) => {
|
|
19139
19526
|
return {
|
|
19140
19527
|
form: {
|
|
19141
19528
|
labelCol: 6,
|
|
@@ -19144,13 +19531,13 @@ var CnBank = () => {
|
|
|
19144
19531
|
schema: {
|
|
19145
19532
|
type: "object",
|
|
19146
19533
|
properties: {
|
|
19147
|
-
...commonColumnProps()
|
|
19534
|
+
...commonColumnProps(params)
|
|
19148
19535
|
},
|
|
19149
19536
|
"x-designable-id": "kv084cg1qw7"
|
|
19150
19537
|
}
|
|
19151
19538
|
};
|
|
19152
19539
|
};
|
|
19153
|
-
var CnImageText = () => {
|
|
19540
|
+
var CnImageText = (params) => {
|
|
19154
19541
|
return {
|
|
19155
19542
|
form: {
|
|
19156
19543
|
labelCol: 6,
|
|
@@ -19159,13 +19546,13 @@ var CnImageText = () => {
|
|
|
19159
19546
|
schema: {
|
|
19160
19547
|
type: "object",
|
|
19161
19548
|
properties: {
|
|
19162
|
-
...commonColumnProps()
|
|
19549
|
+
...commonColumnProps(params)
|
|
19163
19550
|
},
|
|
19164
19551
|
"x-designable-id": "kv084cg1qw7"
|
|
19165
19552
|
}
|
|
19166
19553
|
};
|
|
19167
19554
|
};
|
|
19168
|
-
var CnProgress = () => {
|
|
19555
|
+
var CnProgress = (params) => {
|
|
19169
19556
|
return {
|
|
19170
19557
|
form: {
|
|
19171
19558
|
labelCol: 6,
|
|
@@ -19174,13 +19561,13 @@ var CnProgress = () => {
|
|
|
19174
19561
|
schema: {
|
|
19175
19562
|
type: "object",
|
|
19176
19563
|
properties: {
|
|
19177
|
-
...commonColumnProps()
|
|
19564
|
+
...commonColumnProps(params)
|
|
19178
19565
|
},
|
|
19179
19566
|
"x-designable-id": "kv084cg1qw7"
|
|
19180
19567
|
}
|
|
19181
19568
|
};
|
|
19182
19569
|
};
|
|
19183
|
-
var cnGraphicsPercent = () => {
|
|
19570
|
+
var cnGraphicsPercent = (params) => {
|
|
19184
19571
|
return {
|
|
19185
19572
|
form: {
|
|
19186
19573
|
labelCol: 6,
|
|
@@ -19189,12 +19576,166 @@ var cnGraphicsPercent = () => {
|
|
|
19189
19576
|
schema: {
|
|
19190
19577
|
type: "object",
|
|
19191
19578
|
properties: {
|
|
19192
|
-
...commonColumnProps()
|
|
19579
|
+
...commonColumnProps(params)
|
|
19193
19580
|
},
|
|
19194
19581
|
"x-designable-id": "kv084cg3331qw7"
|
|
19195
19582
|
}
|
|
19196
19583
|
};
|
|
19197
19584
|
};
|
|
19585
|
+
var formCommon = () => {
|
|
19586
|
+
var _a2;
|
|
19587
|
+
return {
|
|
19588
|
+
hasClear: {
|
|
19589
|
+
type: "boolean",
|
|
19590
|
+
title: "\u6709\u6E05\u9664\u6309\u94AE",
|
|
19591
|
+
"x-decorator": "CnFormItem",
|
|
19592
|
+
"x-component": "Switch",
|
|
19593
|
+
name: "hasClear",
|
|
19594
|
+
"x-validator": [],
|
|
19595
|
+
default: true,
|
|
19596
|
+
"x-component-props": {},
|
|
19597
|
+
"x-decorator-props": {},
|
|
19598
|
+
"x-designable-id": "r52k3272222"
|
|
19599
|
+
},
|
|
19600
|
+
tooltip: {
|
|
19601
|
+
type: "string",
|
|
19602
|
+
title: "\u63D0\u793A",
|
|
19603
|
+
"x-decorator": "CnFormItem",
|
|
19604
|
+
"x-component": "Input",
|
|
19605
|
+
"x-validator": [],
|
|
19606
|
+
"x-component-props": {},
|
|
19607
|
+
"x-decorator-props": {
|
|
19608
|
+
tip: "\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"
|
|
19609
|
+
},
|
|
19610
|
+
name: "tooltip",
|
|
19611
|
+
"x-designable-id": "sxbtip2222mzk"
|
|
19612
|
+
},
|
|
19613
|
+
serverI18nKey: {
|
|
19614
|
+
type: "string",
|
|
19615
|
+
title: "\u56FD\u9645\u5316KEY",
|
|
19616
|
+
"x-decorator": "CnFormItem",
|
|
19617
|
+
"x-component": "Input",
|
|
19618
|
+
"x-validator": [],
|
|
19619
|
+
"x-component-props": {},
|
|
19620
|
+
"x-decorator-props": {
|
|
19621
|
+
tip: "\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"
|
|
19622
|
+
},
|
|
19623
|
+
name: "serverI18nKey",
|
|
19624
|
+
"x-designable-id": "sxbtip22223122mzk"
|
|
19625
|
+
},
|
|
19626
|
+
serverDataHandleType: {
|
|
19627
|
+
type: "string",
|
|
19628
|
+
title: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B",
|
|
19629
|
+
"x-decorator": "CnFormItem",
|
|
19630
|
+
"x-component": "Select",
|
|
19631
|
+
"x-validator": [],
|
|
19632
|
+
"x-component-props": {
|
|
19633
|
+
useDetailValue: true,
|
|
19634
|
+
hasClear: true
|
|
19635
|
+
},
|
|
19636
|
+
"x-decorator-props": {
|
|
19637
|
+
tip: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\uFF0C\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"
|
|
19638
|
+
},
|
|
19639
|
+
name: "serverDataHandleType",
|
|
19640
|
+
enum: ((_a2 = window == null ? void 0 : window.__MDD_ModuleDataSource) == null ? void 0 : _a2.l4DataHandleOptions) || [{ label: "JSON\u5904\u7406", value: "json" }],
|
|
19641
|
+
"x-designable-id": "sxbtip2222311236622mzk"
|
|
19642
|
+
},
|
|
19643
|
+
serverDataHandleParams: {
|
|
19644
|
+
type: "string",
|
|
19645
|
+
title: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570",
|
|
19646
|
+
"x-decorator": "CnFormItem",
|
|
19647
|
+
"x-component": "Input",
|
|
19648
|
+
"x-validator": [],
|
|
19649
|
+
"x-component-props": {},
|
|
19650
|
+
"x-decorator-props": {
|
|
19651
|
+
tip: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570\uFF0C\u4E0D\u540C\u7684\u5904\u7406\u7C7B\u578B\uFF0C\u53C2\u6570\u4E0D\u540C,eg: arg1,arg2"
|
|
19652
|
+
},
|
|
19653
|
+
name: "serverDataHandleParams",
|
|
19654
|
+
"x-designable-id": "sxasd223122mzk",
|
|
19655
|
+
"x-reactions": {
|
|
19656
|
+
dependencies: [".serverDataHandleType"],
|
|
19657
|
+
when: "{{$deps[0]}}",
|
|
19658
|
+
fulfill: {
|
|
19659
|
+
state: {
|
|
19660
|
+
value: '{{$deps[0]?.params || ""}}'
|
|
19661
|
+
}
|
|
19662
|
+
}
|
|
19663
|
+
}
|
|
19664
|
+
}
|
|
19665
|
+
};
|
|
19666
|
+
};
|
|
19667
|
+
var messageSchema = () => {
|
|
19668
|
+
return {
|
|
19669
|
+
form: {
|
|
19670
|
+
labelCol: 6,
|
|
19671
|
+
wrapperCol: 16
|
|
19672
|
+
},
|
|
19673
|
+
schema: {
|
|
19674
|
+
type: "object",
|
|
19675
|
+
properties: {
|
|
19676
|
+
messageType: {
|
|
19677
|
+
type: "string",
|
|
19678
|
+
title: "\u7C7B\u578B",
|
|
19679
|
+
"x-decorator": "CnFormItem",
|
|
19680
|
+
"x-component": "Select",
|
|
19681
|
+
"x-validator": [],
|
|
19682
|
+
"x-component-props": {},
|
|
19683
|
+
"x-decorator-props": {},
|
|
19684
|
+
default: "success",
|
|
19685
|
+
name: "messageType",
|
|
19686
|
+
enum: [
|
|
19687
|
+
{ label: "loading", value: "loading" },
|
|
19688
|
+
{ label: "warning", value: "warning" },
|
|
19689
|
+
{ label: "error", value: "error" },
|
|
19690
|
+
{ label: "success", value: "success" },
|
|
19691
|
+
{ label: "help", value: "help" },
|
|
19692
|
+
{ label: "notice", value: "notice" }
|
|
19693
|
+
]
|
|
19694
|
+
},
|
|
19695
|
+
title: {
|
|
19696
|
+
type: "string",
|
|
19697
|
+
title: "\u6807\u9898",
|
|
19698
|
+
"x-decorator": "CnFormItem",
|
|
19699
|
+
"x-component": "Input",
|
|
19700
|
+
"x-validator": [],
|
|
19701
|
+
"x-component-props": {},
|
|
19702
|
+
"x-decorator-props": {
|
|
19703
|
+
tip: "\u53EF\u4EE5\u662F \u51FD\u6570\u540D\uFF0C\u5982 _customRenderMessageTitle\uFF0C\u5199\u6CD5\u7C7B\u4F3C\u4E8E \u81EA\u5B9A\u4E49\u6E32\u67D3\u7684\u51FD\u6570\u5199\u6CD5\uFF1B\u5426\u5219\u76F4\u63A5\u4F5C\u4E3A\u5B57\u7B26\u4E32\u8D4B\u7ED9 message.title"
|
|
19704
|
+
},
|
|
19705
|
+
default: "",
|
|
19706
|
+
name: "title"
|
|
19707
|
+
},
|
|
19708
|
+
messageChildren: {
|
|
19709
|
+
type: "string",
|
|
19710
|
+
title: "\u5185\u5BB9",
|
|
19711
|
+
"x-decorator": "CnFormItem",
|
|
19712
|
+
"x-component": "Input",
|
|
19713
|
+
"x-validator": [],
|
|
19714
|
+
"x-component-props": {},
|
|
19715
|
+
"x-decorator-props": {
|
|
19716
|
+
tip: "\u53EF\u4EE5\u662F \u51FD\u6570\u540D\uFF0C\u5982 _customRenderMessageChildren\uFF0C\u5199\u6CD5\u7C7B\u4F3C\u4E8E \u81EA\u5B9A\u4E49\u6E32\u67D3\u7684\u51FD\u6570\u5199\u6CD5\uFF1B\u5426\u5219\u76F4\u63A5\u4F5C\u4E3A\u5B57\u7B26\u4E32\u8D4B\u7ED9 message.children"
|
|
19717
|
+
},
|
|
19718
|
+
default: "",
|
|
19719
|
+
name: "messageChildren"
|
|
19720
|
+
},
|
|
19721
|
+
iconType: {
|
|
19722
|
+
type: "string",
|
|
19723
|
+
title: "\u56FE\u6807\u7C7B\u578B",
|
|
19724
|
+
"x-decorator": "CnFormItem",
|
|
19725
|
+
"x-component": "Input",
|
|
19726
|
+
"x-validator": [],
|
|
19727
|
+
"x-component-props": {},
|
|
19728
|
+
"x-decorator-props": {
|
|
19729
|
+
tip: "\u4F1A\u8986\u76D6\u5185\u90E8\u8BBE\u7F6E\u7684IconType\uFF0C\u4E00\u822C\u60C5\u51B5\u4E0B\u4E0D\u5EFA\u8BAE\u4F7F\u7528\uFF0Cfalse\u8868\u793A\u4E0D\u663E\u793A\u56FE\u6807\u3002\u586B\u5199\u5185\u5BB9\u53C2\u8003\uFF1Ahttps://dsm.cone.cainiao-inc.com/components/cnui/CnIcon?device=pc\uFF0C\u5982\uFF1Acomplete-r-fill"
|
|
19730
|
+
},
|
|
19731
|
+
default: "",
|
|
19732
|
+
name: "iconType"
|
|
19733
|
+
}
|
|
19734
|
+
},
|
|
19735
|
+
"x-designable-id": "loa7444w8t3"
|
|
19736
|
+
}
|
|
19737
|
+
};
|
|
19738
|
+
};
|
|
19198
19739
|
var Columns = {
|
|
19199
19740
|
text: TextSchema,
|
|
19200
19741
|
tpl: TplSchema,
|
|
@@ -19207,6 +19748,31 @@ var Columns = {
|
|
|
19207
19748
|
list: ListSchema,
|
|
19208
19749
|
"tooltip-text": TooltipText,
|
|
19209
19750
|
images: Images,
|
|
19751
|
+
message: (...args) => {
|
|
19752
|
+
const _schema = messageSchema(...args);
|
|
19753
|
+
_schema.schema.properties = {
|
|
19754
|
+
colSpan: {
|
|
19755
|
+
type: "number",
|
|
19756
|
+
title: "\u8DE8\u5217\u8BBE\u7F6E",
|
|
19757
|
+
"x-decorator": "CnFormItem",
|
|
19758
|
+
"x-component": "CnNumberPicker",
|
|
19759
|
+
"x-validator": [],
|
|
19760
|
+
"x-component-props": {
|
|
19761
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
19762
|
+
style: {
|
|
19763
|
+
width: "200px"
|
|
19764
|
+
}
|
|
19765
|
+
},
|
|
19766
|
+
"x-decorator-props": {
|
|
19767
|
+
tip: "\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E09\u5217"
|
|
19768
|
+
},
|
|
19769
|
+
default: 3,
|
|
19770
|
+
"x-designable-id": "r52k327v2zu"
|
|
19771
|
+
},
|
|
19772
|
+
..._schema.schema.properties
|
|
19773
|
+
};
|
|
19774
|
+
return _schema;
|
|
19775
|
+
},
|
|
19210
19776
|
"cn-tag": CnTag,
|
|
19211
19777
|
"cn-number": CnNumber,
|
|
19212
19778
|
"cn-bank": CnBank,
|
|
@@ -19319,115 +19885,33 @@ var TablePagination = {
|
|
|
19319
19885
|
"x-designable-id": "c1f6xiczrp8"
|
|
19320
19886
|
}
|
|
19321
19887
|
};
|
|
19322
|
-
|
|
19323
|
-
var _a2;
|
|
19888
|
+
const getEditCommonColumnProps = () => {
|
|
19324
19889
|
return {
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
},
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19349
|
-
|
|
19350
|
-
serverI18nKey: {
|
|
19351
|
-
type: "string",
|
|
19352
|
-
title: "\u56FD\u9645\u5316KEY",
|
|
19353
|
-
"x-decorator": "CnFormItem",
|
|
19354
|
-
"x-component": "Input",
|
|
19355
|
-
"x-validator": [],
|
|
19356
|
-
"x-component-props": {},
|
|
19357
|
-
"x-decorator-props": {
|
|
19358
|
-
tip: "\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"
|
|
19359
|
-
},
|
|
19360
|
-
name: "serverI18nKey",
|
|
19361
|
-
"x-designable-id": "sxbtip22223122mzk"
|
|
19362
|
-
},
|
|
19363
|
-
serverDataHandleType: {
|
|
19364
|
-
type: "string",
|
|
19365
|
-
title: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B",
|
|
19366
|
-
"x-decorator": "CnFormItem",
|
|
19367
|
-
"x-component": "Select",
|
|
19368
|
-
"x-validator": [],
|
|
19369
|
-
"x-component-props": {
|
|
19370
|
-
useDetailValue: true,
|
|
19371
|
-
hasClear: true
|
|
19372
|
-
},
|
|
19373
|
-
"x-decorator-props": {
|
|
19374
|
-
tip: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B\uFF0C\u9ED8\u8BA4\u4E3A\u7A7A\uFF0C\u4E0D\u5904\u7406\uFF0C\u53EF\u4EE5\u9009\u62E9json\uFF0C \u8868\u793A\u5B57\u7B26\u4E32 \u548C json \u4E92\u8F6C"
|
|
19375
|
-
},
|
|
19376
|
-
name: "serverDataHandleType",
|
|
19377
|
-
enum: ((_a2 = window == null ? void 0 : window.__MDD_ModuleDataSource) == null ? void 0 : _a2.l4DataHandleOptions) || [{ label: "JSON\u5904\u7406", value: "json" }],
|
|
19378
|
-
"x-designable-id": "sxbtip2222311236622mzk"
|
|
19379
|
-
},
|
|
19380
|
-
serverDataHandleParams: {
|
|
19381
|
-
type: "string",
|
|
19382
|
-
title: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570",
|
|
19383
|
-
"x-decorator": "CnFormItem",
|
|
19384
|
-
"x-component": "Input",
|
|
19385
|
-
"x-validator": [],
|
|
19386
|
-
"x-component-props": {},
|
|
19387
|
-
"x-decorator-props": {
|
|
19388
|
-
tip: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570\uFF0C\u4E0D\u540C\u7684\u5904\u7406\u7C7B\u578B\uFF0C\u53C2\u6570\u4E0D\u540C,eg: arg1,arg2"
|
|
19389
|
-
},
|
|
19390
|
-
name: "serverDataHandleParams",
|
|
19391
|
-
"x-designable-id": "sxasd223122mzk",
|
|
19392
|
-
"x-reactions": {
|
|
19393
|
-
dependencies: [".serverDataHandleType"],
|
|
19394
|
-
when: "{{$deps[0]}}",
|
|
19395
|
-
fulfill: {
|
|
19396
|
-
state: {
|
|
19397
|
-
value: '{{$deps[0]?.params || ""}}'
|
|
19398
|
-
}
|
|
19399
|
-
}
|
|
19400
|
-
}
|
|
19401
|
-
}
|
|
19402
|
-
};
|
|
19403
|
-
};
|
|
19404
|
-
const getEditCommonColumnProps = () => {
|
|
19405
|
-
return {
|
|
19406
|
-
width: commonColumnProps.width,
|
|
19407
|
-
lock: commonColumnProps.lock
|
|
19408
|
-
};
|
|
19409
|
-
};
|
|
19410
|
-
const formValidator$1 = {
|
|
19411
|
-
required: {
|
|
19412
|
-
type: "boolean",
|
|
19413
|
-
title: "\u5FC5\u586B",
|
|
19414
|
-
"x-decorator": "CnFormItem",
|
|
19415
|
-
"x-component": "Switch",
|
|
19416
|
-
"x-validator": [],
|
|
19417
|
-
"x-component-props": {},
|
|
19418
|
-
"x-decorator-props": {},
|
|
19419
|
-
name: "required",
|
|
19420
|
-
"x-designable-id": "r52kt27v9zu"
|
|
19421
|
-
},
|
|
19422
|
-
serverI18nKey: {
|
|
19423
|
-
type: "string",
|
|
19424
|
-
title: "\u56FD\u9645\u5316KEY",
|
|
19425
|
-
"x-decorator": "CnFormItem",
|
|
19426
|
-
"x-component": "Input",
|
|
19427
|
-
"x-validator": [],
|
|
19428
|
-
"x-component-props": {},
|
|
19429
|
-
"x-decorator-props": {
|
|
19430
|
-
tip: "\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"
|
|
19890
|
+
width: commonColumnProps.width,
|
|
19891
|
+
lock: commonColumnProps.lock
|
|
19892
|
+
};
|
|
19893
|
+
};
|
|
19894
|
+
const formValidator$1 = {
|
|
19895
|
+
required: {
|
|
19896
|
+
type: "boolean",
|
|
19897
|
+
title: "\u5FC5\u586B",
|
|
19898
|
+
"x-decorator": "CnFormItem",
|
|
19899
|
+
"x-component": "Switch",
|
|
19900
|
+
"x-validator": [],
|
|
19901
|
+
"x-component-props": {},
|
|
19902
|
+
"x-decorator-props": {},
|
|
19903
|
+
name: "required",
|
|
19904
|
+
"x-designable-id": "r52kt27v9zu"
|
|
19905
|
+
},
|
|
19906
|
+
serverI18nKey: {
|
|
19907
|
+
type: "string",
|
|
19908
|
+
title: "\u56FD\u9645\u5316KEY",
|
|
19909
|
+
"x-decorator": "CnFormItem",
|
|
19910
|
+
"x-component": "Input",
|
|
19911
|
+
"x-validator": [],
|
|
19912
|
+
"x-component-props": {},
|
|
19913
|
+
"x-decorator-props": {
|
|
19914
|
+
tip: "\u56FD\u9645\u5316KEY\uFF0C\u9700\u8981\u5168\u5C40\u552F\u4E00\uFF0C\u6700\u597D\u5B9A\u4E49key\u65F6\u52A0\u4E0A\u4E1A\u52A1\u524D\u7F00,eg: tms_shipping_order_code"
|
|
19431
19915
|
},
|
|
19432
19916
|
name: "serverI18nKey",
|
|
19433
19917
|
"x-designable-id": "sxbti3122mzk"
|
|
@@ -19461,19 +19945,39 @@ const formValidator$1 = {
|
|
|
19461
19945
|
enum: [
|
|
19462
19946
|
{
|
|
19463
19947
|
label: "\u90AE\u7BB1",
|
|
19464
|
-
value: "
|
|
19948
|
+
value: "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"
|
|
19465
19949
|
},
|
|
19466
19950
|
{
|
|
19467
|
-
label: "\
|
|
19468
|
-
value: "
|
|
19951
|
+
label: "\u6570\u5B57",
|
|
19952
|
+
value: "^[+-]?\\d+(\\.\\d+)?$"
|
|
19469
19953
|
},
|
|
19470
19954
|
{
|
|
19471
|
-
label: "\
|
|
19472
|
-
value: "
|
|
19955
|
+
label: "\u6574\u6570",
|
|
19956
|
+
value: "^[+-]?\\d+$"
|
|
19473
19957
|
},
|
|
19474
19958
|
{
|
|
19475
19959
|
label: "QQ",
|
|
19476
|
-
value: "
|
|
19960
|
+
value: "^(\\+?[1-9]\\d*|0)$"
|
|
19961
|
+
},
|
|
19962
|
+
{
|
|
19963
|
+
label: "\u624B\u673A\u53F7",
|
|
19964
|
+
value: "^\\d{3}-\\d{8}$|^\\d{4}-\\d{7}$|^\\d{11}$"
|
|
19965
|
+
},
|
|
19966
|
+
{
|
|
19967
|
+
label: "\u8EAB\u4EFD\u8BC1\u53F7",
|
|
19968
|
+
value: "^\\d{15}$|^\\d{17}(\\d|x|X)$"
|
|
19969
|
+
},
|
|
19970
|
+
{
|
|
19971
|
+
label: "\u91D1\u989D",
|
|
19972
|
+
value: "^([\\u0024\\u00A2\\u00A3\\u00A4\\u20AC\\u00A5\\u20B1\\u20B9\\uFFE5]\\s*)(\\d+,?)+\\.?\\d*\\s*$"
|
|
19973
|
+
},
|
|
19974
|
+
{
|
|
19975
|
+
label: "\u4E2D\u6587",
|
|
19976
|
+
value: "^[\\u4e00-\\u9fa5]+$"
|
|
19977
|
+
},
|
|
19978
|
+
{
|
|
19979
|
+
label: "\u65E5\u671F",
|
|
19980
|
+
value: "^[0-9]+[./-][0-9]+[./-][0-9]+\\s*(?:[0-9]+\\s*:\\s*[0-9]+\\s*:\\s*[0-9]+)?$"
|
|
19477
19981
|
}
|
|
19478
19982
|
],
|
|
19479
19983
|
"x-designable-id": "df97o0zfqde"
|
|
@@ -19801,7 +20305,7 @@ var EditNumberPickerSchema = {
|
|
|
19801
20305
|
"x-designable-id": "edit-table-j744a1rk494"
|
|
19802
20306
|
}
|
|
19803
20307
|
};
|
|
19804
|
-
const selectSchema$
|
|
20308
|
+
const selectSchema$3 = {
|
|
19805
20309
|
...editCommonItem,
|
|
19806
20310
|
mode: {
|
|
19807
20311
|
type: "string | number",
|
|
@@ -19997,7 +20501,7 @@ var EditSelectSchema = {
|
|
|
19997
20501
|
title: "\u7F16\u8F91\u5668\u5C5E\u6027",
|
|
19998
20502
|
"x-designable-id": "xoirvxpflgk",
|
|
19999
20503
|
properties: {
|
|
20000
|
-
...selectSchema$
|
|
20504
|
+
...selectSchema$3
|
|
20001
20505
|
}
|
|
20002
20506
|
}
|
|
20003
20507
|
},
|
|
@@ -20629,6 +21133,112 @@ var EditAddressSelectSchema = {
|
|
|
20629
21133
|
"x-designable-id": "yk7opli2cp8"
|
|
20630
21134
|
}
|
|
20631
21135
|
};
|
|
21136
|
+
const selectSchema$2 = {
|
|
21137
|
+
...editCommonItem,
|
|
21138
|
+
mode: {
|
|
21139
|
+
type: "string | number",
|
|
21140
|
+
title: "\u9009\u62E9\u6A21\u5F0F",
|
|
21141
|
+
"x-decorator": "CnFormItem",
|
|
21142
|
+
"x-component": "CnRadioGroup",
|
|
21143
|
+
default: "single",
|
|
21144
|
+
enum: [
|
|
21145
|
+
{
|
|
21146
|
+
label: "\u5355\u9009",
|
|
21147
|
+
value: "single"
|
|
21148
|
+
},
|
|
21149
|
+
{
|
|
21150
|
+
label: "\u591A\u9009",
|
|
21151
|
+
value: "multiple"
|
|
21152
|
+
}
|
|
21153
|
+
],
|
|
21154
|
+
"x-validator": [],
|
|
21155
|
+
"x-component-props": {},
|
|
21156
|
+
"x-decorator-props": {},
|
|
21157
|
+
name: "mode",
|
|
21158
|
+
"x-designable-id": "y5mtbwr162t"
|
|
21159
|
+
},
|
|
21160
|
+
source: {
|
|
21161
|
+
type: "string",
|
|
21162
|
+
title: "\u6570\u636E\u6E90",
|
|
21163
|
+
"x-decorator": "CnFormItem",
|
|
21164
|
+
"x-component": "FormilyAjaxSchemaForm",
|
|
21165
|
+
"x-validator": [],
|
|
21166
|
+
"x-component-props": {},
|
|
21167
|
+
default: {
|
|
21168
|
+
type: "json",
|
|
21169
|
+
content: [
|
|
21170
|
+
{
|
|
21171
|
+
label: "\u9009\u98791",
|
|
21172
|
+
value: "1"
|
|
21173
|
+
},
|
|
21174
|
+
{
|
|
21175
|
+
label: "\u9009\u98792",
|
|
21176
|
+
value: "2"
|
|
21177
|
+
}
|
|
21178
|
+
]
|
|
21179
|
+
},
|
|
21180
|
+
"x-decorator-props": {},
|
|
21181
|
+
name: "dataSource",
|
|
21182
|
+
"x-designable-id": "t0uv4o8e9ds"
|
|
21183
|
+
},
|
|
21184
|
+
optionLabelKey: {
|
|
21185
|
+
title: "\u9009\u9879\u6807\u9898Key",
|
|
21186
|
+
"x-decorator": "CnFormItem",
|
|
21187
|
+
"x-component": "Input",
|
|
21188
|
+
"x-validator": [],
|
|
21189
|
+
"x-component-props": {},
|
|
21190
|
+
"x-decorator-props": {},
|
|
21191
|
+
name: "optionLabelKey",
|
|
21192
|
+
default: "label",
|
|
21193
|
+
"x-designable-id": "511333ac9k"
|
|
21194
|
+
},
|
|
21195
|
+
optionValueKey: {
|
|
21196
|
+
title: "\u9009\u9879\u503CKey",
|
|
21197
|
+
"x-decorator": "CnFormItem",
|
|
21198
|
+
"x-component": "Input",
|
|
21199
|
+
"x-validator": [],
|
|
21200
|
+
"x-component-props": {},
|
|
21201
|
+
"x-decorator-props": {},
|
|
21202
|
+
name: "optionLabelKey",
|
|
21203
|
+
default: "value",
|
|
21204
|
+
"x-designable-id": "5112229k"
|
|
21205
|
+
},
|
|
21206
|
+
changeOnSelect: {
|
|
21207
|
+
type: "string",
|
|
21208
|
+
title: "\u9009\u62E9\u5373\u6539\u53D8",
|
|
21209
|
+
"x-decorator": "CnFormItem",
|
|
21210
|
+
"x-component": "Switch",
|
|
21211
|
+
"x-validator": [],
|
|
21212
|
+
"x-component-props": {},
|
|
21213
|
+
"x-decorator-props": {},
|
|
21214
|
+
name: "changeOnSelect",
|
|
21215
|
+
default: false,
|
|
21216
|
+
"x-designable-id": "bt66221112xl3px"
|
|
21217
|
+
}
|
|
21218
|
+
};
|
|
21219
|
+
var EditCascaderSelectSchema = {
|
|
21220
|
+
form: {
|
|
21221
|
+
labelCol: 6,
|
|
21222
|
+
wrapperCol: 16
|
|
21223
|
+
},
|
|
21224
|
+
schema: {
|
|
21225
|
+
type: "object",
|
|
21226
|
+
properties: {
|
|
21227
|
+
...getEditCommonColumnProps(),
|
|
21228
|
+
decoratorProps: {
|
|
21229
|
+
type: "object",
|
|
21230
|
+
"x-validator": [],
|
|
21231
|
+
name: "decoratorProps",
|
|
21232
|
+
title: "\u7F16\u8F91\u5668\u5C5E\u6027",
|
|
21233
|
+
"x-designable-id": "xoirvxpflgk",
|
|
21234
|
+
properties: {
|
|
21235
|
+
...selectSchema$2
|
|
21236
|
+
}
|
|
21237
|
+
}
|
|
21238
|
+
},
|
|
21239
|
+
"x-designable-id": "edit-table-j744a1rk494"
|
|
21240
|
+
}
|
|
21241
|
+
};
|
|
20632
21242
|
var EditColumns = {
|
|
20633
21243
|
"edit-custom": EditCustomSchema,
|
|
20634
21244
|
"edit-input": EditInputSchema,
|
|
@@ -20637,7 +21247,8 @@ var EditColumns = {
|
|
|
20637
21247
|
"edit-select": EditSelectSchema,
|
|
20638
21248
|
"edit-date-picker": EditDatePickerSchema,
|
|
20639
21249
|
"edit-time-picker": EditTimePickerSchema,
|
|
20640
|
-
"edit-address-select": EditAddressSelectSchema
|
|
21250
|
+
"edit-address-select": EditAddressSelectSchema,
|
|
21251
|
+
"edit-cascader-select": EditCascaderSelectSchema
|
|
20641
21252
|
};
|
|
20642
21253
|
var ModuleImport = {
|
|
20643
21254
|
form: {
|
|
@@ -21856,6 +22467,18 @@ var DatePicker2Schema = () => {
|
|
|
21856
22467
|
{
|
|
21857
22468
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
21858
22469
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
22470
|
+
},
|
|
22471
|
+
{
|
|
22472
|
+
label: "DD/MM/YYYY",
|
|
22473
|
+
value: "DD/MM/YYYY"
|
|
22474
|
+
},
|
|
22475
|
+
{
|
|
22476
|
+
label: "DD/MM/YYYY HH:mm",
|
|
22477
|
+
value: "DD/MM/YYYY HH:mm"
|
|
22478
|
+
},
|
|
22479
|
+
{
|
|
22480
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
22481
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
21859
22482
|
}
|
|
21860
22483
|
],
|
|
21861
22484
|
"x-designable-id": "sxb8qjzzmzk"
|
|
@@ -21908,6 +22531,18 @@ var DatePicker2Schema = () => {
|
|
|
21908
22531
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
21909
22532
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
21910
22533
|
},
|
|
22534
|
+
{
|
|
22535
|
+
label: "DD/MM/YYYY",
|
|
22536
|
+
value: "DD/MM/YYYY"
|
|
22537
|
+
},
|
|
22538
|
+
{
|
|
22539
|
+
label: "DD/MM/YYYY HH:mm",
|
|
22540
|
+
value: "DD/MM/YYYY HH:mm"
|
|
22541
|
+
},
|
|
22542
|
+
{
|
|
22543
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
22544
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
22545
|
+
},
|
|
21911
22546
|
{
|
|
21912
22547
|
label: "\u65F6\u95F4\u6233",
|
|
21913
22548
|
value: "timestamp"
|
|
@@ -22450,6 +23085,18 @@ var DateRangePickerSchema = () => {
|
|
|
22450
23085
|
{
|
|
22451
23086
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
22452
23087
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
23088
|
+
},
|
|
23089
|
+
{
|
|
23090
|
+
label: "DD/MM/YYYY",
|
|
23091
|
+
value: "DD/MM/YYYY"
|
|
23092
|
+
},
|
|
23093
|
+
{
|
|
23094
|
+
label: "DD/MM/YYYY HH:mm",
|
|
23095
|
+
value: "DD/MM/YYYY HH:mm"
|
|
23096
|
+
},
|
|
23097
|
+
{
|
|
23098
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
23099
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
22453
23100
|
}
|
|
22454
23101
|
],
|
|
22455
23102
|
"x-designable-id": "sxb8qjzzmzk",
|
|
@@ -22505,6 +23152,18 @@ var DateRangePickerSchema = () => {
|
|
|
22505
23152
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
22506
23153
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
22507
23154
|
},
|
|
23155
|
+
{
|
|
23156
|
+
label: "DD/MM/YYYY",
|
|
23157
|
+
value: "DD/MM/YYYY"
|
|
23158
|
+
},
|
|
23159
|
+
{
|
|
23160
|
+
label: "DD/MM/YYYY HH:mm",
|
|
23161
|
+
value: "DD/MM/YYYY HH:mm"
|
|
23162
|
+
},
|
|
23163
|
+
{
|
|
23164
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
23165
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
23166
|
+
},
|
|
22508
23167
|
{
|
|
22509
23168
|
label: "\u65F6\u95F4\u6233",
|
|
22510
23169
|
value: "timestamp"
|
|
@@ -23171,7 +23830,23 @@ var ImportComponentSchema = ({ moduleDataSource = {} }) => {
|
|
|
23171
23830
|
const fields = {
|
|
23172
23831
|
input: InputSchema,
|
|
23173
23832
|
batchInput: BatchInputSchema,
|
|
23174
|
-
"input-textarea": InputSchema,
|
|
23833
|
+
"input-textarea": addProperties(InputSchema, {
|
|
23834
|
+
rows: {
|
|
23835
|
+
type: "number",
|
|
23836
|
+
title: "\u884C\u6570",
|
|
23837
|
+
"x-decorator": "CnFormItem",
|
|
23838
|
+
"x-component": "CnNumberPicker",
|
|
23839
|
+
"x-component-props": {
|
|
23840
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
23841
|
+
min: 1,
|
|
23842
|
+
step: 1,
|
|
23843
|
+
style: {
|
|
23844
|
+
width: "200px"
|
|
23845
|
+
}
|
|
23846
|
+
},
|
|
23847
|
+
name: "rows"
|
|
23848
|
+
}
|
|
23849
|
+
}),
|
|
23175
23850
|
"input-password": InputSchema,
|
|
23176
23851
|
"number-picker": NumberPickerSchema,
|
|
23177
23852
|
"number-range-picker": NumberRangePickerSchema,
|
|
@@ -23208,11 +23883,166 @@ const filterItems = Object.keys(copyFields$1).reduce((result, key) => {
|
|
|
23208
23883
|
[key]: field
|
|
23209
23884
|
};
|
|
23210
23885
|
}, {});
|
|
23211
|
-
var
|
|
23212
|
-
|
|
23213
|
-
|
|
23214
|
-
|
|
23215
|
-
|
|
23886
|
+
var BlocksTable = (params) => {
|
|
23887
|
+
const { blocksDataSource = [] } = params || {};
|
|
23888
|
+
return {
|
|
23889
|
+
form: {
|
|
23890
|
+
labelCol: 6,
|
|
23891
|
+
wrapperCol: 16
|
|
23892
|
+
},
|
|
23893
|
+
schema: {
|
|
23894
|
+
type: "object",
|
|
23895
|
+
properties: {
|
|
23896
|
+
blockPath: {
|
|
23897
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
23898
|
+
"x-decorator": "CnFormItem",
|
|
23899
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
23900
|
+
"x-validator": [],
|
|
23901
|
+
"x-component-props": {
|
|
23902
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
23903
|
+
hasClear: true,
|
|
23904
|
+
size: "small",
|
|
23905
|
+
style: {
|
|
23906
|
+
width: "100%"
|
|
23907
|
+
}
|
|
23908
|
+
},
|
|
23909
|
+
"x-decorator-props": {},
|
|
23910
|
+
name: "blockPath",
|
|
23911
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-table")) || [],
|
|
23912
|
+
default: "",
|
|
23913
|
+
"x-designable-id": "9efgulzttsh"
|
|
23914
|
+
},
|
|
23915
|
+
parentDataIndex: {
|
|
23916
|
+
type: "string",
|
|
23917
|
+
title: "\u7236\u7EA7 dataIndex",
|
|
23918
|
+
"x-decorator": "CnFormItem",
|
|
23919
|
+
"x-component": "Input",
|
|
23920
|
+
"x-validator": [],
|
|
23921
|
+
"x-component-props": {},
|
|
23922
|
+
"x-decorator-props": {
|
|
23923
|
+
tip: "\u6E32\u67D3\u533A\u5757\u7684\u6BCF\u4E2A\u5217\u65F6\uFF0C\u6307\u5B9A\u7236\u7EA7\u53D6\u503C\u7684key\u3002\u4F18\u5148\u7EA7 \u5927\u4E8E \u5F53\u524D\u5217\u914D\u7F6E\u7684dataIndex\u3002\u82E5\u5747\u4E3A\u914D\u7F6E \u5219\u9ED8\u8BA4\u5E73\u94FA\u3002\u4F8B\u5982\uFF1A\u533A\u5757\u5217\u4E2D\u7B2C\u4E00\u5217 \u7684 dataIndex \u4E3A name\uFF0CparentDataIndex \u4E3A ownerDto\uFF0C\u5219\u8BE5\u5217\u6E32\u67D3\u65F6\u7684\u5B9E\u9645 dataIndex \u4E3A ownerDto.name"
|
|
23924
|
+
},
|
|
23925
|
+
name: "parentDataIndex",
|
|
23926
|
+
"x-designable-id": "sxbti2p222233122mzk"
|
|
23927
|
+
},
|
|
23928
|
+
"x-designable-id": "loa5555d8t3"
|
|
23929
|
+
}
|
|
23930
|
+
}
|
|
23931
|
+
};
|
|
23932
|
+
};
|
|
23933
|
+
var BlocksFilter = (params) => {
|
|
23934
|
+
const { blocksDataSource = [] } = params || {};
|
|
23935
|
+
return {
|
|
23936
|
+
form: {
|
|
23937
|
+
labelCol: 6,
|
|
23938
|
+
wrapperCol: 16
|
|
23939
|
+
},
|
|
23940
|
+
schema: {
|
|
23941
|
+
type: "object",
|
|
23942
|
+
properties: {
|
|
23943
|
+
blockPath: {
|
|
23944
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
23945
|
+
"x-decorator": "CnFormItem",
|
|
23946
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
23947
|
+
"x-validator": [],
|
|
23948
|
+
"x-component-props": {
|
|
23949
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
23950
|
+
hasClear: true,
|
|
23951
|
+
size: "small",
|
|
23952
|
+
style: {
|
|
23953
|
+
width: "100%"
|
|
23954
|
+
}
|
|
23955
|
+
},
|
|
23956
|
+
"x-decorator-props": {},
|
|
23957
|
+
name: "blockPath",
|
|
23958
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-filter")) || [],
|
|
23959
|
+
default: "",
|
|
23960
|
+
"x-designable-id": "9efgulzttsh"
|
|
23961
|
+
},
|
|
23962
|
+
"x-designable-id": "loa5555d8t3"
|
|
23963
|
+
}
|
|
23964
|
+
}
|
|
23965
|
+
};
|
|
23966
|
+
};
|
|
23967
|
+
var BlocksForm = (params) => {
|
|
23968
|
+
const { blocksDataSource = [] } = params || {};
|
|
23969
|
+
return {
|
|
23970
|
+
form: {
|
|
23971
|
+
labelCol: 6,
|
|
23972
|
+
wrapperCol: 16
|
|
23973
|
+
},
|
|
23974
|
+
schema: {
|
|
23975
|
+
type: "object",
|
|
23976
|
+
properties: {
|
|
23977
|
+
blockPath: {
|
|
23978
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
23979
|
+
"x-decorator": "CnFormItem",
|
|
23980
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
23981
|
+
"x-validator": [],
|
|
23982
|
+
"x-component-props": {
|
|
23983
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
23984
|
+
hasClear: true,
|
|
23985
|
+
size: "small",
|
|
23986
|
+
style: {
|
|
23987
|
+
width: "100%"
|
|
23988
|
+
}
|
|
23989
|
+
},
|
|
23990
|
+
"x-decorator-props": {},
|
|
23991
|
+
name: "blockPath",
|
|
23992
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-form")) || [],
|
|
23993
|
+
default: "",
|
|
23994
|
+
"x-designable-id": "9efgulzttsh"
|
|
23995
|
+
},
|
|
23996
|
+
"x-designable-id": "loa5555d8t3"
|
|
23997
|
+
}
|
|
23998
|
+
}
|
|
23999
|
+
};
|
|
24000
|
+
};
|
|
24001
|
+
var BlocksEditTable = (params) => {
|
|
24002
|
+
const { blocksDataSource = [] } = params || {};
|
|
24003
|
+
return {
|
|
24004
|
+
form: {
|
|
24005
|
+
labelCol: 6,
|
|
24006
|
+
wrapperCol: 16
|
|
24007
|
+
},
|
|
24008
|
+
schema: {
|
|
24009
|
+
type: "object",
|
|
24010
|
+
properties: {
|
|
24011
|
+
blockPath: {
|
|
24012
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
24013
|
+
"x-decorator": "CnFormItem",
|
|
24014
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
24015
|
+
"x-validator": [],
|
|
24016
|
+
"x-component-props": {
|
|
24017
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
24018
|
+
hasClear: true,
|
|
24019
|
+
size: "small",
|
|
24020
|
+
style: {
|
|
24021
|
+
width: "100%"
|
|
24022
|
+
}
|
|
24023
|
+
},
|
|
24024
|
+
"x-decorator-props": {},
|
|
24025
|
+
name: "blockPath",
|
|
24026
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-edit-table")) || [],
|
|
24027
|
+
default: "",
|
|
24028
|
+
"x-designable-id": "9efgulzttsh"
|
|
24029
|
+
},
|
|
24030
|
+
"x-designable-id": "loa5555d8t3"
|
|
24031
|
+
}
|
|
24032
|
+
}
|
|
24033
|
+
};
|
|
24034
|
+
};
|
|
24035
|
+
var BlocksSchemaSet = {
|
|
24036
|
+
"blocks-table": BlocksTable,
|
|
24037
|
+
"blocks-filter": BlocksFilter,
|
|
24038
|
+
"blocks-form": BlocksForm,
|
|
24039
|
+
"blocks-edit-table": BlocksEditTable
|
|
24040
|
+
};
|
|
24041
|
+
var CnFormItem = {
|
|
24042
|
+
f_gridSpan: {
|
|
24043
|
+
type: "number",
|
|
24044
|
+
title: "\u8DE8\u5217\u8BBE\u7F6E",
|
|
24045
|
+
"x-decorator": "CnFormItem",
|
|
23216
24046
|
"x-component": "CnNumberPicker",
|
|
23217
24047
|
"x-validator": [],
|
|
23218
24048
|
"x-component-props": {
|
|
@@ -23338,6 +24168,78 @@ var cncardSubSchema = {
|
|
|
23338
24168
|
"x-designable-id": "loa7444w8t3"
|
|
23339
24169
|
}
|
|
23340
24170
|
};
|
|
24171
|
+
var GlobalPhonePickerSchema = () => {
|
|
24172
|
+
return {
|
|
24173
|
+
form: {
|
|
24174
|
+
labelCol: 6,
|
|
24175
|
+
wrapperCol: 16
|
|
24176
|
+
},
|
|
24177
|
+
schema: {
|
|
24178
|
+
type: "object",
|
|
24179
|
+
properties: {
|
|
24180
|
+
...formCommon(),
|
|
24181
|
+
defaultValue: {
|
|
24182
|
+
type: "number",
|
|
24183
|
+
title: "\u9ED8\u8BA4\u503C",
|
|
24184
|
+
"x-decorator": "CnFormItem",
|
|
24185
|
+
"x-component": "FormilyDynamicValueBase",
|
|
24186
|
+
"x-validator": [],
|
|
24187
|
+
"x-component-props": {
|
|
24188
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
24189
|
+
style: {
|
|
24190
|
+
width: "200px"
|
|
24191
|
+
}
|
|
24192
|
+
},
|
|
24193
|
+
"x-decorator-props": {},
|
|
24194
|
+
name: "defaultValue",
|
|
24195
|
+
"x-designable-id": "t0uv4o8e9uy"
|
|
24196
|
+
},
|
|
24197
|
+
placeholder: {
|
|
24198
|
+
type: "string",
|
|
24199
|
+
title: "\u8F93\u5165\u63D0\u793A",
|
|
24200
|
+
"x-decorator": "CnFormItem",
|
|
24201
|
+
"x-component": "Input",
|
|
24202
|
+
"x-validator": [],
|
|
24203
|
+
"x-component-props": {
|
|
24204
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
24205
|
+
},
|
|
24206
|
+
default: "\u8BF7\u8F93\u5165",
|
|
24207
|
+
"x-decorator-props": {},
|
|
24208
|
+
name: "placeholder",
|
|
24209
|
+
"x-designable-id": "bt66ecxl3px"
|
|
24210
|
+
},
|
|
24211
|
+
defaultCountryCode: {
|
|
24212
|
+
type: "string",
|
|
24213
|
+
title: "\u9ED8\u8BA4\u56FD\u5BB6\u533A\u53F7",
|
|
24214
|
+
"x-decorator": "CnFormItem",
|
|
24215
|
+
"x-component": "Input",
|
|
24216
|
+
"x-validator": [],
|
|
24217
|
+
default: "86",
|
|
24218
|
+
"x-component-props": {
|
|
24219
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
24220
|
+
style: {
|
|
24221
|
+
width: "200px"
|
|
24222
|
+
}
|
|
24223
|
+
},
|
|
24224
|
+
"x-decorator-props": {},
|
|
24225
|
+
"x-designable-id": "jl0fyw111xdg12353m"
|
|
24226
|
+
},
|
|
24227
|
+
required: {
|
|
24228
|
+
type: "boolean",
|
|
24229
|
+
title: "\u662F\u5426\u5FC5\u586B",
|
|
24230
|
+
"x-decorator": "CnFormItem",
|
|
24231
|
+
"x-component": "Switch",
|
|
24232
|
+
"x-validator": [],
|
|
24233
|
+
"x-component-props": {},
|
|
24234
|
+
"x-decorator-props": {},
|
|
24235
|
+
name: "required",
|
|
24236
|
+
"x-designable-id": "jl0fywxdg3m"
|
|
24237
|
+
}
|
|
24238
|
+
},
|
|
24239
|
+
"x-designable-id": "loa7444w8t3"
|
|
24240
|
+
}
|
|
24241
|
+
};
|
|
24242
|
+
};
|
|
23341
24243
|
var uploadSchema = {
|
|
23342
24244
|
form: {
|
|
23343
24245
|
labelCol: 6,
|
|
@@ -23530,7 +24432,12 @@ var uploadSchema = {
|
|
|
23530
24432
|
"x-designable-id": "loa7444w8t3"
|
|
23531
24433
|
}
|
|
23532
24434
|
};
|
|
23533
|
-
const copyFields =
|
|
24435
|
+
const copyFields = {
|
|
24436
|
+
...cloneDeep_1(fields),
|
|
24437
|
+
"global-phone-picker": GlobalPhonePickerSchema,
|
|
24438
|
+
message: messageSchema,
|
|
24439
|
+
upload: uploadSchema
|
|
24440
|
+
};
|
|
23534
24441
|
const formItems = Object.keys(copyFields).reduce((result, key) => {
|
|
23535
24442
|
const field = copyFields[key];
|
|
23536
24443
|
if (typeof field === "function") {
|
|
@@ -23566,12 +24473,19 @@ function fillFormSchema(field) {
|
|
|
23566
24473
|
}
|
|
23567
24474
|
formItems.cncard = cncardSchema;
|
|
23568
24475
|
formItems["cncard-sub"] = cncardSubSchema;
|
|
23569
|
-
formItems.upload = uploadSchema;
|
|
23570
24476
|
var CompSchema = {
|
|
23571
24477
|
...filterItems,
|
|
23572
24478
|
...OperationsSchemaSet,
|
|
23573
|
-
...TableSchemaSet
|
|
24479
|
+
...TableSchemaSet,
|
|
24480
|
+
...BlocksSchemaSet
|
|
23574
24481
|
};
|
|
24482
|
+
function addProperties(schema, properties) {
|
|
24483
|
+
const _schema = JSON.parse(JSON.stringify(schema()));
|
|
24484
|
+
Object.entries(properties).forEach(([key, value]) => {
|
|
24485
|
+
_schema.schema.properties[key] = value;
|
|
24486
|
+
});
|
|
24487
|
+
return () => _schema;
|
|
24488
|
+
}
|
|
23575
24489
|
function useModule() {
|
|
23576
24490
|
const [dataMap, setDataMap] = useState({});
|
|
23577
24491
|
const getModule = (key) => {
|
|
@@ -23602,7 +24516,7 @@ const itemComponent$1 = "_itemComponent_tl8oe_70";
|
|
|
23602
24516
|
const itemLabel$1 = "_itemLabel_tl8oe_76";
|
|
23603
24517
|
const collapseContent$2 = "_collapseContent_tl8oe_81";
|
|
23604
24518
|
const itemClose$2 = "_itemClose_tl8oe_85";
|
|
23605
|
-
var styles$
|
|
24519
|
+
var styles$b = {
|
|
23606
24520
|
mddTableForm,
|
|
23607
24521
|
tableFormTitle,
|
|
23608
24522
|
tableFormContent,
|
|
@@ -23616,7 +24530,7 @@ var styles$9 = {
|
|
|
23616
24530
|
itemClose: itemClose$2
|
|
23617
24531
|
};
|
|
23618
24532
|
const DRAG_KEY$2 = "PanelTitle";
|
|
23619
|
-
const { Panel: Panel$
|
|
24533
|
+
const { Panel: Panel$3 } = Collapse;
|
|
23620
24534
|
const { Tooltip } = Balloon;
|
|
23621
24535
|
const TitleRender$2 = (props) => {
|
|
23622
24536
|
const ref = useRef(null);
|
|
@@ -23630,7 +24544,8 @@ const TitleRender$2 = (props) => {
|
|
|
23630
24544
|
componentOptions: componentOptions2,
|
|
23631
24545
|
titleType = ["label", "name", "type"],
|
|
23632
24546
|
penetrateType,
|
|
23633
|
-
swaggerFieldDataSource
|
|
24547
|
+
swaggerFieldDataSource,
|
|
24548
|
+
customRender
|
|
23634
24549
|
} = props;
|
|
23635
24550
|
const [value, setValue] = useState(data);
|
|
23636
24551
|
const { label, name, type, groupKey } = value || {};
|
|
@@ -23680,7 +24595,7 @@ const TitleRender$2 = (props) => {
|
|
|
23680
24595
|
setValue({ ...value });
|
|
23681
24596
|
onChange(value, key);
|
|
23682
24597
|
};
|
|
23683
|
-
const cls = classnames.bind(styles$
|
|
24598
|
+
const cls = classnames.bind(styles$b)({
|
|
23684
24599
|
itemTitle: "itemTitle",
|
|
23685
24600
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
23686
24601
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -23689,16 +24604,16 @@ const TitleRender$2 = (props) => {
|
|
|
23689
24604
|
ref,
|
|
23690
24605
|
className: cls,
|
|
23691
24606
|
style: { cursor: draggable ? "move" : "default", opacity },
|
|
23692
|
-
onClick: (e) => e.stopPropagation()
|
|
23693
|
-
}, titleType.includes("label") && /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
24607
|
+
onClick: (e) => draggable && e.stopPropagation()
|
|
24608
|
+
}, customRender == null ? void 0 : customRender(props), titleType.includes("label") && /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
23694
24609
|
size: "small",
|
|
23695
24610
|
value: label,
|
|
23696
24611
|
onChange: (v2) => titleChange("label", v2),
|
|
23697
24612
|
placeholder: "\u8F93\u5165\u4E2D\u6587\u540D"
|
|
23698
24613
|
}), titleType.includes("type") && /* @__PURE__ */ React$1.createElement("div", {
|
|
23699
|
-
className: styles$
|
|
24614
|
+
className: styles$b.itemComponent
|
|
23700
24615
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
23701
|
-
className: styles$
|
|
24616
|
+
className: styles$b.itemLabel
|
|
23702
24617
|
}, "\u7EC4\u4EF6: "), /* @__PURE__ */ React$1.createElement(Select$2, {
|
|
23703
24618
|
size: "small",
|
|
23704
24619
|
autoWidth: false,
|
|
@@ -23717,9 +24632,9 @@ const TitleRender$2 = (props) => {
|
|
|
23717
24632
|
onChange: (v2) => titleChange("name", v2),
|
|
23718
24633
|
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u53D8\u91CF\u540D"
|
|
23719
24634
|
}), titleType.includes("groupKey") && /* @__PURE__ */ React$1.createElement("div", {
|
|
23720
|
-
className: styles$
|
|
24635
|
+
className: styles$b.itemComponent
|
|
23721
24636
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
23722
|
-
className: styles$
|
|
24637
|
+
className: styles$b.itemLabel
|
|
23723
24638
|
}, "\u5206\u7EC4: "), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
23724
24639
|
size: "small",
|
|
23725
24640
|
value: groupKey,
|
|
@@ -23728,20 +24643,34 @@ const TitleRender$2 = (props) => {
|
|
|
23728
24643
|
})), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
23729
24644
|
type: "close",
|
|
23730
24645
|
size: "small",
|
|
23731
|
-
className: styles$
|
|
24646
|
+
className: styles$b.itemClose,
|
|
23732
24647
|
onClick: onRemove
|
|
23733
24648
|
}));
|
|
23734
24649
|
};
|
|
23735
|
-
const
|
|
23736
|
-
const
|
|
24650
|
+
const watchFields = (listSchema) => {
|
|
24651
|
+
const fieldStringArray = listSchema.map((item) => {
|
|
24652
|
+
return `${item.label}_${item.name}`;
|
|
24653
|
+
});
|
|
24654
|
+
return fieldStringArray.join(",");
|
|
24655
|
+
};
|
|
24656
|
+
const ContentRender$2 = (props) => {
|
|
24657
|
+
const { values, effects, onChange, schema, index: index2, extraFieldSchema: extraFieldSchema2, updateForceFLag, listSchema } = props;
|
|
23737
24658
|
const { type, label, name } = values;
|
|
23738
24659
|
const { formilySchema: formilySchema2, dataAdaptor: dataAdaptor2 } = schema || {};
|
|
24660
|
+
const [uuid, setUuid] = useState(uuidv4());
|
|
23739
24661
|
const { dataMap, getModule } = useModule$1();
|
|
23740
24662
|
const moduleDataSource = getModule("$ModuleDataSource");
|
|
24663
|
+
const blocksDataSource = getModule("$BlocksDataSource");
|
|
24664
|
+
React$1.useEffect(
|
|
24665
|
+
debounce_1(() => {
|
|
24666
|
+
setUuid(uuidv4());
|
|
24667
|
+
}, 500),
|
|
24668
|
+
[watchFields(listSchema)]
|
|
24669
|
+
);
|
|
23741
24670
|
const realSchema = useMemo(() => {
|
|
23742
|
-
const srcSchema = getRealSchema(formilySchema2 || schema, { moduleDataSource });
|
|
24671
|
+
const srcSchema = getRealSchema(formilySchema2 || schema, { moduleDataSource, listSchema, blocksDataSource });
|
|
23743
24672
|
return getRealCompSchema(srcSchema, extraFieldSchema2);
|
|
23744
|
-
}, [formilySchema2, schema, extraFieldSchema2, moduleDataSource]);
|
|
24673
|
+
}, [formilySchema2, schema, extraFieldSchema2, moduleDataSource, uuid, listSchema]);
|
|
23745
24674
|
const formilyForm = useMemo(() => {
|
|
23746
24675
|
const realValues = dataAdaptor2 ? dataAdaptor2(values, true) : values;
|
|
23747
24676
|
return {
|
|
@@ -23767,7 +24696,7 @@ const ContentRender$1 = (props) => {
|
|
|
23767
24696
|
};
|
|
23768
24697
|
}, [type, updateForceFLag, realSchema]);
|
|
23769
24698
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
23770
|
-
className: styles$
|
|
24699
|
+
className: styles$b.collapseContent
|
|
23771
24700
|
}, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
|
|
23772
24701
|
...formilyForm,
|
|
23773
24702
|
hiddenSubmit: true
|
|
@@ -23775,7 +24704,7 @@ const ContentRender$1 = (props) => {
|
|
|
23775
24704
|
};
|
|
23776
24705
|
function MddTableForm(props, ref) {
|
|
23777
24706
|
const {
|
|
23778
|
-
title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
24707
|
+
title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
23779
24708
|
tip = "",
|
|
23780
24709
|
actionContent = null,
|
|
23781
24710
|
data = [],
|
|
@@ -23790,7 +24719,9 @@ function MddTableForm(props, ref) {
|
|
|
23790
24719
|
penetrateType,
|
|
23791
24720
|
effects = {},
|
|
23792
24721
|
swaggerFieldDataSource = [],
|
|
23793
|
-
extraFieldSchema: extraFieldSchema2
|
|
24722
|
+
extraFieldSchema: extraFieldSchema2,
|
|
24723
|
+
titleRender,
|
|
24724
|
+
hideAddButton
|
|
23794
24725
|
} = props;
|
|
23795
24726
|
const [_2, _update] = useState(0);
|
|
23796
24727
|
const [sortUpdateFlag, setSortUpdateFlag] = useState({});
|
|
@@ -23842,26 +24773,26 @@ function MddTableForm(props, ref) {
|
|
|
23842
24773
|
forceUpdate();
|
|
23843
24774
|
};
|
|
23844
24775
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
23845
|
-
className: styles$
|
|
24776
|
+
className: styles$b.mddTableForm
|
|
23846
24777
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
23847
|
-
className: styles$
|
|
23848
|
-
}, /* @__PURE__ */ React$1.createElement("div", null,
|
|
24778
|
+
className: styles$b.tableFormTitle
|
|
24779
|
+
}, /* @__PURE__ */ React$1.createElement("div", null, typeof title2 === "function" ? title2() : title2, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
|
|
23849
24780
|
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
23850
24781
|
type: "help",
|
|
23851
24782
|
size: "small"
|
|
23852
24783
|
}),
|
|
23853
24784
|
align: "t"
|
|
23854
24785
|
}, tip)), actionContent && /* @__PURE__ */ React$1.createElement("div", {
|
|
23855
|
-
className: styles$
|
|
24786
|
+
className: styles$b.tableFormAction
|
|
23856
24787
|
}, actionContent)), /* @__PURE__ */ React$1.createElement("div", {
|
|
23857
|
-
className: styles$
|
|
24788
|
+
className: styles$b.tableFormContent
|
|
23858
24789
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
23859
24790
|
backend: HTML5Backend
|
|
23860
24791
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
23861
24792
|
accordion: true
|
|
23862
24793
|
}, dataRef.current.map((item, idx) => {
|
|
23863
|
-
item.name || item.dataIndex || `${
|
|
23864
|
-
return /* @__PURE__ */ React$1.createElement(Panel$
|
|
24794
|
+
item.name || item.dataIndex || `${title2}_${idx}`;
|
|
24795
|
+
return /* @__PURE__ */ React$1.createElement(Panel$3, {
|
|
23865
24796
|
title: /* @__PURE__ */ React$1.createElement(TitleRender$2, {
|
|
23866
24797
|
index: idx,
|
|
23867
24798
|
draggable,
|
|
@@ -23876,15 +24807,17 @@ function MddTableForm(props, ref) {
|
|
|
23876
24807
|
onSortUpdate,
|
|
23877
24808
|
penetrateType,
|
|
23878
24809
|
titleType,
|
|
23879
|
-
componentOptions: props.componentOptions
|
|
24810
|
+
componentOptions: props.componentOptions,
|
|
24811
|
+
customRender: titleRender
|
|
23880
24812
|
})
|
|
23881
|
-
}, /* @__PURE__ */ React$1.createElement(ContentRender$
|
|
24813
|
+
}, /* @__PURE__ */ React$1.createElement(ContentRender$2, {
|
|
23882
24814
|
updateForceFLag: sortUpdateFlag[idx],
|
|
23883
24815
|
values: item,
|
|
23884
24816
|
index: idx,
|
|
23885
24817
|
schema: CompSchemaMap[item.type],
|
|
23886
24818
|
extraFieldSchema: extraFieldSchema2,
|
|
23887
24819
|
effects,
|
|
24820
|
+
listSchema: dataRef.current,
|
|
23888
24821
|
onChange: ({ record }) => {
|
|
23889
24822
|
const { type, name, label, groupKey, ...otherProps } = dataRef.current[idx];
|
|
23890
24823
|
const newRecord = { ...record, label, name, groupKey };
|
|
@@ -23894,8 +24827,8 @@ function MddTableForm(props, ref) {
|
|
|
23894
24827
|
onTableFormChange({ index: idx, record: newRecord });
|
|
23895
24828
|
}
|
|
23896
24829
|
}));
|
|
23897
|
-
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
23898
|
-
className: styles$
|
|
24830
|
+
})))), !hideAddButton && /* @__PURE__ */ React$1.createElement("div", {
|
|
24831
|
+
className: styles$b.tableFormBottom
|
|
23899
24832
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
23900
24833
|
onClick: onAddHandle,
|
|
23901
24834
|
style: { padding: "0 48px" }
|
|
@@ -23919,6 +24852,12 @@ function getRealCompSchema(srcSchema, extraFieldSchema2) {
|
|
|
23919
24852
|
}
|
|
23920
24853
|
return srcSchema;
|
|
23921
24854
|
}
|
|
24855
|
+
function uuidv4() {
|
|
24856
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
24857
|
+
var r = Math.random() * 16 | 0, v2 = c == "x" ? r : r & 3 | 8;
|
|
24858
|
+
return v2.toString(16);
|
|
24859
|
+
});
|
|
24860
|
+
}
|
|
23922
24861
|
const PenetrateTypes = {
|
|
23923
24862
|
FILTER: "filter",
|
|
23924
24863
|
FORM: "form"
|
|
@@ -23929,14 +24868,14 @@ const FormTitle = "_FormTitle_1e2nn_20";
|
|
|
23929
24868
|
const FormTitleHelp = "_FormTitleHelp_1e2nn_24";
|
|
23930
24869
|
const FormContent = "_FormContent_1e2nn_30";
|
|
23931
24870
|
const content = "_content_1e2nn_35";
|
|
23932
|
-
var styles$
|
|
24871
|
+
var styles$a = {
|
|
23933
24872
|
mddForm,
|
|
23934
24873
|
FormTitle,
|
|
23935
24874
|
FormTitleHelp,
|
|
23936
24875
|
FormContent,
|
|
23937
24876
|
content
|
|
23938
24877
|
};
|
|
23939
|
-
const ContentRender = (props) => {
|
|
24878
|
+
const ContentRender$1 = (props) => {
|
|
23940
24879
|
const { values, index: index2, effects, onChange, schema } = props;
|
|
23941
24880
|
const formilyForm = useMemo(() => {
|
|
23942
24881
|
return {
|
|
@@ -23959,7 +24898,7 @@ const ContentRender = (props) => {
|
|
|
23959
24898
|
};
|
|
23960
24899
|
}, [schema]);
|
|
23961
24900
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
23962
|
-
className: styles$
|
|
24901
|
+
className: styles$a.content
|
|
23963
24902
|
}, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
|
|
23964
24903
|
...formilyForm,
|
|
23965
24904
|
hiddenSubmit: true
|
|
@@ -23967,7 +24906,7 @@ const ContentRender = (props) => {
|
|
|
23967
24906
|
};
|
|
23968
24907
|
function MddForm(props) {
|
|
23969
24908
|
const {
|
|
23970
|
-
title = "\u914D\u7F6E\u5206\u9875",
|
|
24909
|
+
title: title2 = "\u914D\u7F6E\u5206\u9875",
|
|
23971
24910
|
help,
|
|
23972
24911
|
data = {},
|
|
23973
24912
|
type,
|
|
@@ -23979,16 +24918,16 @@ function MddForm(props) {
|
|
|
23979
24918
|
contentStyle
|
|
23980
24919
|
} = props;
|
|
23981
24920
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
23982
|
-
className: styles$
|
|
24921
|
+
className: styles$a.mddForm,
|
|
23983
24922
|
style: style2
|
|
23984
24923
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
23985
|
-
className: styles$
|
|
23986
|
-
},
|
|
23987
|
-
className: styles$
|
|
24924
|
+
className: styles$a.FormTitle
|
|
24925
|
+
}, title2), help && /* @__PURE__ */ React$1.createElement("div", {
|
|
24926
|
+
className: styles$a.FormTitleHelp
|
|
23988
24927
|
}, help), /* @__PURE__ */ React$1.createElement("div", {
|
|
23989
|
-
className: styles$
|
|
24928
|
+
className: styles$a.FormContent,
|
|
23990
24929
|
style: contentStyle
|
|
23991
|
-
}, children || /* @__PURE__ */ React$1.createElement(ContentRender, {
|
|
24930
|
+
}, children || /* @__PURE__ */ React$1.createElement(ContentRender$1, {
|
|
23992
24931
|
values: data,
|
|
23993
24932
|
schema: CompSchema[type],
|
|
23994
24933
|
effects,
|
|
@@ -24073,6 +25012,10 @@ const componentOptions = [
|
|
|
24073
25012
|
label: "\u81EA\u5B9A\u4E49\u6A21\u5757"
|
|
24074
25013
|
}
|
|
24075
25014
|
];
|
|
25015
|
+
const FormComponentOptions = [...componentOptions];
|
|
25016
|
+
FormComponentOptions.splice(3, 0, { value: "input-password", label: "\u5BC6\u7801\u8F93\u5165\u6846" });
|
|
25017
|
+
FormComponentOptions.splice(3, 0, { value: "message", label: "\u4FE1\u606F\u63D0\u793A" });
|
|
25018
|
+
FormComponentOptions.splice(3, 0, { value: "global-phone-picker", label: "\u56FD\u9645\u7535\u8BDD\u8F93\u5165\u6846" });
|
|
24076
25019
|
const columnsTypeOptions = [
|
|
24077
25020
|
{
|
|
24078
25021
|
value: "text",
|
|
@@ -24140,6 +25083,10 @@ const columnsTypeOptionsWithCnTable = [
|
|
|
24140
25083
|
{
|
|
24141
25084
|
value: "cn-bank",
|
|
24142
25085
|
label: "\u94F6\u884C\u5361\u53F7"
|
|
25086
|
+
},
|
|
25087
|
+
{
|
|
25088
|
+
value: "blocks-table",
|
|
25089
|
+
label: "\u5217\u8868\u533A\u5757"
|
|
24143
25090
|
}
|
|
24144
25091
|
];
|
|
24145
25092
|
const columnsTypeOptionsWithEditCnTable = [
|
|
@@ -24175,6 +25122,18 @@ const columnsTypeOptionsWithEditCnTable = [
|
|
|
24175
25122
|
value: "edit-address-select",
|
|
24176
25123
|
label: "\u5730\u5740\u9009\u62E9"
|
|
24177
25124
|
},
|
|
25125
|
+
{
|
|
25126
|
+
value: "edit-cascader-select",
|
|
25127
|
+
label: "\u7EA7\u8054\u9009\u62E9\u5668"
|
|
25128
|
+
},
|
|
25129
|
+
{
|
|
25130
|
+
value: "blocks-table",
|
|
25131
|
+
label: "\u5217\u8868\u533A\u5757"
|
|
25132
|
+
},
|
|
25133
|
+
{
|
|
25134
|
+
value: "blocks-edit-table",
|
|
25135
|
+
label: "\u53EF\u7F16\u8F91\u8868\u683C\u533A\u5757"
|
|
25136
|
+
},
|
|
24178
25137
|
{
|
|
24179
25138
|
value: "edit-custom",
|
|
24180
25139
|
label: "\u81EA\u5B9A\u4E49"
|
|
@@ -24190,7 +25149,7 @@ const labelDataSource$1 = [
|
|
|
24190
25149
|
value: "left"
|
|
24191
25150
|
}
|
|
24192
25151
|
];
|
|
24193
|
-
const Default_Add_Schema = {
|
|
25152
|
+
const Default_Add_Schema$2 = {
|
|
24194
25153
|
type: "input",
|
|
24195
25154
|
label: "\u8F93\u5165\u6846",
|
|
24196
25155
|
name: "",
|
|
@@ -24248,7 +25207,7 @@ const FormColOpts$1 = [
|
|
|
24248
25207
|
value: 8
|
|
24249
25208
|
}
|
|
24250
25209
|
];
|
|
24251
|
-
function FilterPanel({ schema, swaggerFields = [] }) {
|
|
25210
|
+
function FilterPanel$2({ schema, swaggerFields = [] }) {
|
|
24252
25211
|
const mddFormRef = React$1.useRef();
|
|
24253
25212
|
const [_2, forceUpdate] = React$1.useState({});
|
|
24254
25213
|
React$1.useEffect(() => {
|
|
@@ -24262,7 +25221,7 @@ function FilterPanel({ schema, swaggerFields = [] }) {
|
|
|
24262
25221
|
(_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
|
|
24263
25222
|
};
|
|
24264
25223
|
const onAddHandle = () => {
|
|
24265
|
-
schema.add(Default_Add_Schema, true);
|
|
25224
|
+
schema.add(Default_Add_Schema$2, true);
|
|
24266
25225
|
refreshMddTableForm();
|
|
24267
25226
|
};
|
|
24268
25227
|
const onRemoveHandle = (index2) => {
|
|
@@ -24281,7 +25240,7 @@ function FilterPanel({ schema, swaggerFields = [] }) {
|
|
|
24281
25240
|
ref: mddFormRef,
|
|
24282
25241
|
data: fields2,
|
|
24283
25242
|
penetrateType: PenetrateTypes.FILTER,
|
|
24284
|
-
componentOptions,
|
|
25243
|
+
componentOptions: [...componentOptions, { value: "blocks-filter", label: "\u7B5B\u9009\u9879\u533A\u5757" }],
|
|
24285
25244
|
title: "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
24286
25245
|
onAdd: onAddHandle,
|
|
24287
25246
|
onRemove: onRemoveHandle,
|
|
@@ -24395,34 +25354,38 @@ function HeaderToolbarPanel$1({ schema, moduleMap }) {
|
|
|
24395
25354
|
}
|
|
24396
25355
|
}));
|
|
24397
25356
|
}
|
|
24398
|
-
function TablePanel$
|
|
25357
|
+
function TablePanel$3({ schema, swaggerFields = [] }) {
|
|
24399
25358
|
var _a2;
|
|
24400
25359
|
const columnMddFormRef = React$1.useRef();
|
|
24401
25360
|
const bulkMddFormRef = React$1.useRef();
|
|
24402
25361
|
const operateMddFormRef = React$1.useRef();
|
|
25362
|
+
const rowDoubleClickRef = React$1.useRef();
|
|
24403
25363
|
const [_2, forceUpdate] = useState({});
|
|
24404
25364
|
const [visibleRowDetail, setVisibleRowDetail] = useState(!!((_a2 = schema.get("rowDetailModule")) == null ? void 0 : _a2.path));
|
|
24405
25365
|
useEffect(() => {
|
|
24406
25366
|
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
24407
25367
|
!ignoreUpdate && forceUpdate({});
|
|
24408
25368
|
});
|
|
24409
|
-
hackRowDetail(schema);
|
|
25369
|
+
hackRowDetail$1(schema);
|
|
24410
25370
|
}, []);
|
|
24411
25371
|
const primaryKey = schema.get("primaryKey");
|
|
24412
25372
|
const bulkActions = schema.get("bulkActions");
|
|
24413
25373
|
const columns = schema.get("columns");
|
|
24414
25374
|
const actionColumns = schema.get("actionColumns");
|
|
25375
|
+
const rowDoubleClick = schema.get("rowDoubleClick");
|
|
24415
25376
|
const pagination = schema.get("pagination");
|
|
24416
25377
|
const tree = schema.get("tree");
|
|
24417
25378
|
const showIndex = schema.get("showIndex");
|
|
24418
25379
|
const hideCommonToolbar = schema.get("hideCommonToolbar");
|
|
25380
|
+
const actionMaxCharNum = schema.get("actionMaxCharNum");
|
|
24419
25381
|
const actionWidth = schema.get("actionWidth");
|
|
24420
25382
|
const showSelect = schema.get("showSelect");
|
|
24421
25383
|
const rowDetailModule = schema.get("rowDetailModule");
|
|
24422
25384
|
const remoteSort = schema.get("remoteSort");
|
|
25385
|
+
const treeLinkageCheck = schema.get("treeLinkageCheck");
|
|
24423
25386
|
const loadChildrenDataApiPanel = schema.getLoadChildrenDataApiPanel();
|
|
24424
25387
|
const onAddHandle = (key) => {
|
|
24425
|
-
var _a3, _b2, _c;
|
|
25388
|
+
var _a3, _b2, _c, _d;
|
|
24426
25389
|
switch (key) {
|
|
24427
25390
|
case "bulkActions":
|
|
24428
25391
|
schema.add(
|
|
@@ -24472,10 +25435,26 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24472
25435
|
);
|
|
24473
25436
|
(_c = operateMddFormRef.current) == null ? void 0 : _c.updateData(schema.get("actionColumns"));
|
|
24474
25437
|
break;
|
|
25438
|
+
case "rowDoubleClick":
|
|
25439
|
+
schema.add(
|
|
25440
|
+
{
|
|
25441
|
+
type: "button",
|
|
25442
|
+
action: {
|
|
25443
|
+
type: "url",
|
|
25444
|
+
params: {
|
|
25445
|
+
record: "$TABLE.RECORD_DATA"
|
|
25446
|
+
}
|
|
25447
|
+
}
|
|
25448
|
+
},
|
|
25449
|
+
"rowDoubleClick",
|
|
25450
|
+
true
|
|
25451
|
+
);
|
|
25452
|
+
(_d = rowDoubleClickRef.current) == null ? void 0 : _d.updateData(schema.get("rowDoubleClick"));
|
|
25453
|
+
break;
|
|
24475
25454
|
}
|
|
24476
25455
|
};
|
|
24477
25456
|
const onRemoveHandle = (index2, key) => {
|
|
24478
|
-
var _a3, _b2, _c;
|
|
25457
|
+
var _a3, _b2, _c, _d;
|
|
24479
25458
|
schema.remove(index2, key, true);
|
|
24480
25459
|
if (key === "bulkActions") {
|
|
24481
25460
|
(_a3 = bulkMddFormRef.current) == null ? void 0 : _a3.updateData(schema.get("bulkActions"));
|
|
@@ -24483,11 +25462,16 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24483
25462
|
(_b2 = columnMddFormRef.current) == null ? void 0 : _b2.updateData(schema.get("columns"));
|
|
24484
25463
|
} else if (key === "actionColumns") {
|
|
24485
25464
|
(_c = operateMddFormRef.current) == null ? void 0 : _c.updateData(schema.get("actionColumns"));
|
|
25465
|
+
} else if (key === "rowDoubleClick") {
|
|
25466
|
+
(_d = rowDoubleClickRef.current) == null ? void 0 : _d.updateData(schema.get("rowDoubleClick"));
|
|
24486
25467
|
}
|
|
24487
25468
|
};
|
|
24488
25469
|
const onChangeHandle = ({ index: index2, record }, key) => {
|
|
24489
25470
|
schema.update(index2, record, key, true);
|
|
24490
25471
|
};
|
|
25472
|
+
const onActionMaxCharNum = (value) => {
|
|
25473
|
+
schema.update("", value ? Number(value) : "", "actionMaxCharNum");
|
|
25474
|
+
};
|
|
24491
25475
|
const onActionWidthChange = (value) => {
|
|
24492
25476
|
schema.update("", value ? Number(value) : "", "actionWidth");
|
|
24493
25477
|
};
|
|
@@ -24540,8 +25524,48 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24540
25524
|
onSort: (newList) => {
|
|
24541
25525
|
schema.setItemAll(newList, "actionColumns", true);
|
|
24542
25526
|
}
|
|
25527
|
+
}), /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
25528
|
+
ref: rowDoubleClickRef,
|
|
25529
|
+
data: rowDoubleClick,
|
|
25530
|
+
title: () => {
|
|
25531
|
+
var _a3;
|
|
25532
|
+
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25533
|
+
style: { display: "flex", alignItems: "center", gap: 6 }
|
|
25534
|
+
}, "\u914D\u7F6E\u884C\u53CC\u51FB\u4E8B\u4EF6", /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
25535
|
+
size: "small",
|
|
25536
|
+
checked: ((_a3 = schema.get("rowDoubleClick")) == null ? void 0 : _a3.length) > 0,
|
|
25537
|
+
onChange: (checked) => {
|
|
25538
|
+
if (checked)
|
|
25539
|
+
onAddHandle("rowDoubleClick");
|
|
25540
|
+
else
|
|
25541
|
+
onRemoveHandle(0, "rowDoubleClick");
|
|
25542
|
+
}
|
|
25543
|
+
}), /* @__PURE__ */ React$1.createElement(CnTooltip, {
|
|
25544
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25545
|
+
type: "prompt"
|
|
25546
|
+
})
|
|
25547
|
+
}, "\u884C\u53CC\u51FB\u4E8B\u4EF6 \u548C \u64CD\u4F5C\u5217\u6309\u94AE \u914D\u7F6E\u4FDD\u6301\u4E00\u81F4\uFF0C\u4E0B\u9762 \u5173\u4E8E\u6309\u94AE\u7684\u914D\u7F6E \u5747\u4F1A\u5931\u6548\uFF0C\u8BF7\u53EA\u5173\u6CE8 \u53CC\u51FB \u8981\u6267\u884C\u7684\u4E8B\u4EF6\u672C\u8EAB"));
|
|
25548
|
+
},
|
|
25549
|
+
titleType: [],
|
|
25550
|
+
draggable: false,
|
|
25551
|
+
titleRender: () => "\u884C\u53CC\u51FB \u4E8B\u4EF6\u914D\u7F6E",
|
|
25552
|
+
onRemove: () => {
|
|
25553
|
+
},
|
|
25554
|
+
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "rowDoubleClick")
|
|
24543
25555
|
}), /* @__PURE__ */ React$1.createElement("div", {
|
|
24544
25556
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
25557
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u64CD\u4F5C\u5217\u6309\u94AE\u6700\u957F\u5B57\u7B26\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
25558
|
+
value: actionMaxCharNum,
|
|
25559
|
+
size: "small",
|
|
25560
|
+
onChange: onActionMaxCharNum,
|
|
25561
|
+
min: 1,
|
|
25562
|
+
max: 10
|
|
25563
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25564
|
+
className: "mdd-tip"
|
|
25565
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25566
|
+
type: "prompt"
|
|
25567
|
+
}), " \u8D85\u957F\u90E8\u5206\u4F1A\u663E\u793A\u4E3A\u201C...\u201D[\u6CE8\u610F\uFF1A\u9700\u5168\u5C40\u5F00\u542F\u914D\u7F6E\u540E \u6B64\u9879\u751F\u6548\uFF1B\u5728\u4F4E\u7248\u672C CN-UI \u4E0A\u4E0D\u751F\u6548\uFF0C\u5982 \u5B9E\u65BD\u5DE5\u4F5C\u53F0\uFF1B\u53EF\u80FD\u4F1A\u5BF9\u4E00\u7801\u591A\u7AEF\u6548\u679C\u9020\u6210\u5F71\u54CD\uFF0C\u614E\u7528]")), /* @__PURE__ */ React$1.createElement("div", {
|
|
25568
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24545
25569
|
}, /* @__PURE__ */ React$1.createElement("label", null, "\u64CD\u4F5C\u5217\u5BBD\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
24546
25570
|
value: actionWidth,
|
|
24547
25571
|
size: "small",
|
|
@@ -24552,10 +25576,11 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24552
25576
|
type: "prompt"
|
|
24553
25577
|
}), " \u9ED8\u8BA4\u4E0D\u8BBE\u7F6E\u662F\u81EA\u52A8\u8BA1\u7B97\uFF0C\u4E5F\u53EF\u4EE5\u624B\u52A8\u6307\u5B9A\u5BBD\u5EA6")), /* @__PURE__ */ React$1.createElement("div", {
|
|
24554
25578
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24555
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(
|
|
25579
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
24556
25580
|
value: schema.get("maxHeight"),
|
|
24557
25581
|
size: "small",
|
|
24558
|
-
onChange: (v2) => onBaseInfoChange("maxHeight", v2)
|
|
25582
|
+
onChange: (v2) => onBaseInfoChange("maxHeight", v2),
|
|
25583
|
+
min: 0
|
|
24559
25584
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
24560
25585
|
className: "mdd-tip"
|
|
24561
25586
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
@@ -24595,8 +25620,19 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24595
25620
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
24596
25621
|
type: "prompt"
|
|
24597
25622
|
}), " \u6811\u5F62\u7ED3\u6784\u9ED8\u8BA4\u5B50\u8282\u70B9KEY\u4E3Achildren , \u5F00\u542F\u540E\u4E5F\u53EF\u901A\u8FC7\u4E0B\u9762\u7684\u61D2\u52A0\u8F7D\u8BBE\u7F6E\u6539\u6210\u61D2\u52A0\u8F7D\u6A21\u5F0F\uFF0C\u4E0D\u914D\u7F6E\u5219\u9700\u8981\u4E00\u6B21\u6027\u8FD4\u56DE\u6811\u5F62\u6570\u636E")), tree && /* @__PURE__ */ React$1.createElement("div", {
|
|
24598
|
-
style: { marginLeft: "
|
|
24599
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u5B50\u8282\u70B9\
|
|
25623
|
+
style: { marginLeft: "20px", marginBottom: 8, display: "flex" }
|
|
25624
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u7236\u5B50\u8282\u70B9\u7EA7\u8054\u52FE\u9009\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
25625
|
+
autoWidth: true,
|
|
25626
|
+
checked: treeLinkageCheck,
|
|
25627
|
+
size: "small",
|
|
25628
|
+
onChange: (v2) => onBaseInfoChange("treeLinkageCheck", v2)
|
|
25629
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25630
|
+
className: "mdd-tip"
|
|
25631
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25632
|
+
type: "prompt"
|
|
25633
|
+
}), " ", "\u7236\u8282\u70B9\u52FE\u9009\u9ED8\u8BA4\u4F1A\u52FE\u9009\u6240\u6709\u5B50\u8282\u70B9,\u5B50\u8282\u70B9\u52FE\u9009\u9ED8\u8BA4\u4F1A\u52FE\u4E0A\u7236\u8282\u70B9\u3010\u5FC5\u987B\u914D\u7F6E\u552F\u4E00\u4E3B\u952E\uFF0C\u4E0D\u652F\u6301\u5F02\u6B65\u6570\u636E\u3011")), tree && /* @__PURE__ */ React$1.createElement("div", {
|
|
25634
|
+
style: { marginLeft: "20px", marginBottom: 8, display: "flex" }
|
|
25635
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u5B50\u8282\u70B9\u61D2\u52A0\u8F7D\u914D\u7F6E\uFF1A"), /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
24600
25636
|
schema: loadChildrenDataApiPanel,
|
|
24601
25637
|
isSelectType: false
|
|
24602
25638
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
@@ -24617,7 +25653,7 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24617
25653
|
type: "prompt"
|
|
24618
25654
|
}), " \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7", " ")), /* @__PURE__ */ React$1.createElement("div", {
|
|
24619
25655
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24620
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\
|
|
25656
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
24621
25657
|
autoWidth: true,
|
|
24622
25658
|
checked: hideCommonToolbar,
|
|
24623
25659
|
size: "small",
|
|
@@ -24626,7 +25662,7 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24626
25662
|
className: "mdd-tip"
|
|
24627
25663
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
24628
25664
|
type: "prompt"
|
|
24629
|
-
}), " \u662F\u5426\
|
|
25665
|
+
}), " \u662F\u5426\u9690\u85CFtable\u9876\u90E8\u64CD\u4F5C\u533A\u7684\u901A\u7528\u64CD\u4F5C\u6309\u94AE\uFF0C\u6BD4\u5982\u5168\u5C4F\u3001\u6591\u9A6C\u7EBF\u3001\u5217\u8BBE\u7F6E\u3001\u5C3A\u5BF8\u7B49")), /* @__PURE__ */ React$1.createElement("div", {
|
|
24630
25666
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24631
25667
|
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u53EF\u9009\u62E9\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
24632
25668
|
autoWidth: true,
|
|
@@ -24690,13 +25726,13 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24690
25726
|
type: "prompt"
|
|
24691
25727
|
}), " \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")));
|
|
24692
25728
|
}
|
|
24693
|
-
function hackRowDetail(schema) {
|
|
25729
|
+
function hackRowDetail$1(schema) {
|
|
24694
25730
|
const rowDetail = schema.get("rowDetail");
|
|
24695
25731
|
if (rowDetail) {
|
|
24696
25732
|
schema.set("rowDetail", void 0);
|
|
24697
25733
|
}
|
|
24698
25734
|
}
|
|
24699
|
-
var
|
|
25735
|
+
var immutabilityHelper = { exports: {} };
|
|
24700
25736
|
(function(module, exports) {
|
|
24701
25737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24702
25738
|
function stringifiable(obj) {
|
|
@@ -24718,7 +25754,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
24718
25754
|
function type(obj) {
|
|
24719
25755
|
return toString2.call(obj).slice(8, -1);
|
|
24720
25756
|
}
|
|
24721
|
-
var
|
|
25757
|
+
var assign = Object.assign || function(target, source) {
|
|
24722
25758
|
getAllKeys2(source).forEach(function(key) {
|
|
24723
25759
|
if (hasOwnProperty2.call(source, key)) {
|
|
24724
25760
|
target[key] = source[key];
|
|
@@ -24732,11 +25768,11 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
24732
25768
|
return Object.keys(obj);
|
|
24733
25769
|
};
|
|
24734
25770
|
function copy(object) {
|
|
24735
|
-
return Array.isArray(object) ?
|
|
25771
|
+
return Array.isArray(object) ? assign(object.constructor(object.length), object) : type(object) === "Map" ? new Map(object) : type(object) === "Set" ? new Set(object) : object && typeof object === "object" ? assign(Object.create(Object.getPrototypeOf(object)), object) : object;
|
|
24736
25772
|
}
|
|
24737
25773
|
var Context = function() {
|
|
24738
25774
|
function Context2() {
|
|
24739
|
-
this.commands =
|
|
25775
|
+
this.commands = assign({}, defaultCommands);
|
|
24740
25776
|
this.update = this.update.bind(this);
|
|
24741
25777
|
this.update.extend = this.extend = this.extend.bind(this);
|
|
24742
25778
|
this.update.isEquals = function(x, y) {
|
|
@@ -24895,7 +25931,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
24895
25931
|
exports.isEquals = defaultContext.update.isEquals;
|
|
24896
25932
|
exports.extend = defaultContext.extend;
|
|
24897
25933
|
exports.default = defaultContext.update;
|
|
24898
|
-
exports.default.default = module.exports =
|
|
25934
|
+
exports.default.default = module.exports = assign(exports.default, exports);
|
|
24899
25935
|
function invariantPushAndUnshift(value, spec, command) {
|
|
24900
25936
|
invariant2(Array.isArray(value), function() {
|
|
24901
25937
|
return "update(): expected target of " + stringifiable(command) + " to be an array; got " + stringifiable(value) + ".";
|
|
@@ -24942,8 +25978,8 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
24942
25978
|
return "update(): " + stringifiable(command) + " expects a target of type Set or Map; got " + stringifiable(typeOfTarget);
|
|
24943
25979
|
});
|
|
24944
25980
|
}
|
|
24945
|
-
})(
|
|
24946
|
-
var update = /* @__PURE__ */ getDefaultExportFromCjs(
|
|
25981
|
+
})(immutabilityHelper, immutabilityHelper.exports);
|
|
25982
|
+
var update = /* @__PURE__ */ getDefaultExportFromCjs(immutabilityHelper.exports);
|
|
24947
25983
|
const mddTableArray$1 = "_mddTableArray_16ght_1";
|
|
24948
25984
|
const tableArrayTitle$1 = "_tableArrayTitle_16ght_14";
|
|
24949
25985
|
const tableArrayContent$1 = "_tableArrayContent_16ght_18";
|
|
@@ -24951,7 +25987,7 @@ const tableArrayBottom$1 = "_tableArrayBottom_16ght_32";
|
|
|
24951
25987
|
const itemTitle$1 = "_itemTitle_16ght_39";
|
|
24952
25988
|
const collapseContent$1 = "_collapseContent_16ght_69";
|
|
24953
25989
|
const itemClose$1 = "_itemClose_16ght_73";
|
|
24954
|
-
var styles$
|
|
25990
|
+
var styles$9 = {
|
|
24955
25991
|
mddTableArray: mddTableArray$1,
|
|
24956
25992
|
tableArrayTitle: tableArrayTitle$1,
|
|
24957
25993
|
tableArrayContent: tableArrayContent$1,
|
|
@@ -24963,11 +25999,13 @@ var styles$7 = {
|
|
|
24963
25999
|
itemClose: itemClose$1
|
|
24964
26000
|
};
|
|
24965
26001
|
const DRAG_KEY$1 = "TableArrayPanelTitle";
|
|
24966
|
-
const { Panel: Panel$
|
|
26002
|
+
const { Panel: Panel$2 } = Collapse;
|
|
24967
26003
|
const TitleRender$1 = (props) => {
|
|
24968
26004
|
const ref = useRef(null);
|
|
24969
26005
|
const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
|
|
24970
|
-
} } = props;
|
|
26006
|
+
}, otherInfo } = props;
|
|
26007
|
+
const { dataMap, getModule } = useModule$1();
|
|
26008
|
+
const moduleDataSource = getModule("$ModuleDataSource");
|
|
24971
26009
|
const [{ isOver }, drop] = useDrop({
|
|
24972
26010
|
accept: DRAG_KEY$1,
|
|
24973
26011
|
collect(monitor) {
|
|
@@ -24994,7 +26032,7 @@ const TitleRender$1 = (props) => {
|
|
|
24994
26032
|
});
|
|
24995
26033
|
const opacity = isDragging ? 0 : 1;
|
|
24996
26034
|
draggable && drag(drop(ref));
|
|
24997
|
-
const cls = classnames.bind(styles$
|
|
26035
|
+
const cls = classnames.bind(styles$9)({
|
|
24998
26036
|
itemTitle: "itemTitle",
|
|
24999
26037
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
25000
26038
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -25004,16 +26042,18 @@ const TitleRender$1 = (props) => {
|
|
|
25004
26042
|
className: cls,
|
|
25005
26043
|
style: { cursor: draggable ? "move" : "default", opacity },
|
|
25006
26044
|
onClick: (e) => e.stopPropagation()
|
|
25007
|
-
}, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26045
|
+
}, customRender && customRender({ data, index: index2, onChange, moduleDataSource, otherInfo }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25008
26046
|
type: "close",
|
|
25009
26047
|
size: "small",
|
|
25010
|
-
className: styles$
|
|
26048
|
+
className: styles$9.itemClose,
|
|
25011
26049
|
onClick: onRemove
|
|
25012
26050
|
}));
|
|
25013
26051
|
};
|
|
25014
26052
|
function MddTableSimpleArray(props) {
|
|
26053
|
+
var _a2;
|
|
25015
26054
|
const {
|
|
25016
|
-
title = "",
|
|
26055
|
+
title: title2 = "",
|
|
26056
|
+
tip,
|
|
25017
26057
|
data = [],
|
|
25018
26058
|
onChange = () => {
|
|
25019
26059
|
},
|
|
@@ -25023,7 +26063,8 @@ function MddTableSimpleArray(props) {
|
|
|
25023
26063
|
onRemove,
|
|
25024
26064
|
draggable = true,
|
|
25025
26065
|
titleRender,
|
|
25026
|
-
contentRender: contentRender2
|
|
26066
|
+
contentRender: contentRender2,
|
|
26067
|
+
otherInfo
|
|
25027
26068
|
} = props;
|
|
25028
26069
|
const onSortUpdate = useCallback(
|
|
25029
26070
|
(dragIndex, hoverIndex) => {
|
|
@@ -25042,17 +26083,23 @@ function MddTableSimpleArray(props) {
|
|
|
25042
26083
|
onChange({ record, index: index2, data });
|
|
25043
26084
|
};
|
|
25044
26085
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25045
|
-
className: styles$
|
|
26086
|
+
className: styles$9.mddTableArray
|
|
25046
26087
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25047
|
-
className: styles$
|
|
25048
|
-
},
|
|
25049
|
-
|
|
26088
|
+
className: styles$9.tableArrayTitle
|
|
26089
|
+
}, title2, tip && /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
26090
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26091
|
+
type: "help",
|
|
26092
|
+
size: "small"
|
|
26093
|
+
}),
|
|
26094
|
+
align: "t"
|
|
26095
|
+
}, tip)), /* @__PURE__ */ React$1.createElement("div", {
|
|
26096
|
+
className: styles$9.tableArrayContent
|
|
25050
26097
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
25051
26098
|
backend: HTML5Backend
|
|
25052
26099
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
25053
26100
|
accordion: true
|
|
25054
|
-
}, data.map((item, idx) => {
|
|
25055
|
-
return /* @__PURE__ */ React$1.createElement(Panel$
|
|
26101
|
+
}, (_a2 = data == null ? void 0 : data.map) == null ? void 0 : _a2.call(data, (item, idx) => {
|
|
26102
|
+
return /* @__PURE__ */ React$1.createElement(Panel$2, {
|
|
25056
26103
|
title: /* @__PURE__ */ React$1.createElement(TitleRender$1, {
|
|
25057
26104
|
index: idx,
|
|
25058
26105
|
draggable,
|
|
@@ -25062,31 +26109,32 @@ function MddTableSimpleArray(props) {
|
|
|
25062
26109
|
onRemove: () => onRemove(idx),
|
|
25063
26110
|
data: item,
|
|
25064
26111
|
onSortUpdate,
|
|
25065
|
-
customRender: titleRender
|
|
26112
|
+
customRender: titleRender,
|
|
26113
|
+
otherInfo
|
|
25066
26114
|
})
|
|
25067
26115
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25068
|
-
className: styles$
|
|
25069
|
-
}, contentRender2({ data: item, index: idx, onChange: onTableArrayChange })));
|
|
26116
|
+
className: styles$9.collapseContent
|
|
26117
|
+
}, contentRender2({ data: item, index: idx, onChange: onTableArrayChange, otherInfo })));
|
|
25070
26118
|
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
25071
|
-
className: styles$
|
|
26119
|
+
className: styles$9.tableArrayBottom
|
|
25072
26120
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
25073
26121
|
onClick: onAdd,
|
|
25074
26122
|
style: { padding: "0 48px" }
|
|
25075
26123
|
}, "\u6DFB\u52A0\u9879")));
|
|
25076
26124
|
}
|
|
25077
|
-
const customTabItem$
|
|
25078
|
-
const tabTitle$
|
|
25079
|
-
const tabLabel$
|
|
25080
|
-
const middleBox = "_middleBox_119xt_20";
|
|
25081
|
-
const middleBoxLeft = "_middleBoxLeft_119xt_26";
|
|
25082
|
-
const middleBoxRight = "_middleBoxRight_119xt_31";
|
|
25083
|
-
var styles$
|
|
25084
|
-
customTabItem: customTabItem$
|
|
25085
|
-
tabTitle: tabTitle$
|
|
25086
|
-
tabLabel: tabLabel$
|
|
25087
|
-
middleBox,
|
|
25088
|
-
middleBoxLeft,
|
|
25089
|
-
middleBoxRight
|
|
26125
|
+
const customTabItem$5 = "_customTabItem_119xt_1";
|
|
26126
|
+
const tabTitle$5 = "_tabTitle_119xt_5";
|
|
26127
|
+
const tabLabel$5 = "_tabLabel_119xt_9";
|
|
26128
|
+
const middleBox$1 = "_middleBox_119xt_20";
|
|
26129
|
+
const middleBoxLeft$1 = "_middleBoxLeft_119xt_26";
|
|
26130
|
+
const middleBoxRight$1 = "_middleBoxRight_119xt_31";
|
|
26131
|
+
var styles$8 = {
|
|
26132
|
+
customTabItem: customTabItem$5,
|
|
26133
|
+
tabTitle: tabTitle$5,
|
|
26134
|
+
tabLabel: tabLabel$5,
|
|
26135
|
+
middleBox: middleBox$1,
|
|
26136
|
+
middleBoxLeft: middleBoxLeft$1,
|
|
26137
|
+
middleBoxRight: middleBoxRight$1
|
|
25090
26138
|
};
|
|
25091
26139
|
const Middle_Module_Opts = [
|
|
25092
26140
|
{
|
|
@@ -25120,8 +26168,8 @@ function Middle(props) {
|
|
|
25120
26168
|
};
|
|
25121
26169
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
|
|
25122
26170
|
data: schema.getMiddlePanel(),
|
|
25123
|
-
titleRender: customTitleRender$
|
|
25124
|
-
contentRender,
|
|
26171
|
+
titleRender: customTitleRender$2,
|
|
26172
|
+
contentRender: contentRender$1,
|
|
25125
26173
|
title: "\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",
|
|
25126
26174
|
onChange: onChangeHandle,
|
|
25127
26175
|
onSort: onSortHandle,
|
|
@@ -25129,11 +26177,11 @@ function Middle(props) {
|
|
|
25129
26177
|
onRemove: onRemoveHandle
|
|
25130
26178
|
}));
|
|
25131
26179
|
}
|
|
25132
|
-
function customTitleRender$
|
|
26180
|
+
function customTitleRender$2(props) {
|
|
25133
26181
|
const { data, index: index2 } = props;
|
|
25134
26182
|
return /* @__PURE__ */ React$1.createElement("div", null, "\u4E2D\u95F4\u6A21\u5757", index2 + 1);
|
|
25135
26183
|
}
|
|
25136
|
-
function contentRender(props) {
|
|
26184
|
+
function contentRender$1(props) {
|
|
25137
26185
|
const { data: schema, index: index2, onChange } = props;
|
|
25138
26186
|
const onBaseInfoChange = (key, value) => {
|
|
25139
26187
|
schema.set(key, value);
|
|
@@ -25141,47 +26189,47 @@ function contentRender(props) {
|
|
|
25141
26189
|
};
|
|
25142
26190
|
const moduleValue = schema.get("value");
|
|
25143
26191
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
25144
|
-
className: styles$
|
|
26192
|
+
className: styles$8.middleBox
|
|
25145
26193
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25146
|
-
className: styles$
|
|
26194
|
+
className: styles$8.middleBoxLeft
|
|
25147
26195
|
}, "\u6E32\u67D3\u6A21\u5757\uFF1A"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
|
|
25148
26196
|
dataSource: Middle_Module_Opts,
|
|
25149
26197
|
size: "small",
|
|
25150
|
-
className: styles$
|
|
26198
|
+
className: styles$8.middleBoxRight,
|
|
25151
26199
|
value: moduleValue,
|
|
25152
26200
|
onChange: (val) => onBaseInfoChange("value", val)
|
|
25153
26201
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25154
|
-
className: styles$
|
|
26202
|
+
className: styles$8.middleBox
|
|
25155
26203
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25156
|
-
className: styles$
|
|
26204
|
+
className: styles$8.middleBoxLeft
|
|
25157
26205
|
}, "\u6A21\u5757\u53C2\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(TableFormProxy, {
|
|
25158
|
-
className: styles$
|
|
26206
|
+
className: styles$8.middleBoxRight,
|
|
25159
26207
|
value: schema.get("params"),
|
|
25160
26208
|
onChange: (v2) => onBaseInfoChange("params", v2)
|
|
25161
26209
|
})), moduleValue === "ftp-tabs" && /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
|
|
25162
|
-
className: styles$
|
|
26210
|
+
className: styles$8.middleBox
|
|
25163
26211
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25164
|
-
className: styles$
|
|
26212
|
+
className: styles$8.middleBoxLeft
|
|
25165
26213
|
}, "\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
25166
|
-
className: styles$
|
|
26214
|
+
className: styles$8.middleBoxRight,
|
|
25167
26215
|
value: schema.get("dataIndex"),
|
|
25168
26216
|
size: "small",
|
|
25169
26217
|
onChange: (v2) => onBaseInfoChange("dataIndex", v2)
|
|
25170
26218
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25171
|
-
className: styles$
|
|
26219
|
+
className: styles$8.middleBox
|
|
25172
26220
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25173
|
-
className: styles$
|
|
26221
|
+
className: styles$8.middleBoxLeft
|
|
25174
26222
|
}, "\u9ED8\u8BA4\u503C\uFF1A"), /* @__PURE__ */ React$1.createElement(DynamicValueBase, {
|
|
25175
|
-
className: styles$
|
|
26223
|
+
className: styles$8.middleBoxRight,
|
|
25176
26224
|
value: schema.get("defaultTabValue"),
|
|
25177
26225
|
size: "small",
|
|
25178
26226
|
onChange: (v2) => onBaseInfoChange("defaultTabValue", v2)
|
|
25179
26227
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25180
|
-
className: styles$
|
|
26228
|
+
className: styles$8.middleBox
|
|
25181
26229
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25182
|
-
className: styles$
|
|
26230
|
+
className: styles$8.middleBoxLeft
|
|
25183
26231
|
}, "\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"), /* @__PURE__ */ React$1.createElement("div", {
|
|
25184
|
-
className: styles$
|
|
26232
|
+
className: styles$8.middleBoxRight
|
|
25185
26233
|
}, /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
25186
26234
|
schema: schema.getSourcePanel(),
|
|
25187
26235
|
isSelectType: false
|
|
@@ -25194,24 +26242,317 @@ function contentRender(props) {
|
|
|
25194
26242
|
href: "https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"
|
|
25195
26243
|
}, "\u6587\u6863"))))));
|
|
25196
26244
|
}
|
|
25197
|
-
const CustomTabItem$
|
|
26245
|
+
const CustomTabItem$5 = ({ title: title2, icon }) => {
|
|
26246
|
+
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26247
|
+
className: styles$8.customTabItem
|
|
26248
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
26249
|
+
className: styles$8.tabTitle
|
|
26250
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26251
|
+
type: icon,
|
|
26252
|
+
size: "small"
|
|
26253
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26254
|
+
className: styles$8.tabLabel
|
|
26255
|
+
}, title2)));
|
|
26256
|
+
};
|
|
26257
|
+
function FtpBuild$1({ schema, moduleMap }) {
|
|
26258
|
+
const { getApiFields } = useSwagger$1();
|
|
26259
|
+
const apiSchema = schema.getDataSourcePanel();
|
|
26260
|
+
const { parameterFields = [], responseFields = [] } = React$1.useMemo(() => {
|
|
26261
|
+
return getApiFields(apiSchema == null ? void 0 : apiSchema.getApiUrl(), "ftp") || {};
|
|
26262
|
+
}, [apiSchema, getApiFields]);
|
|
26263
|
+
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
26264
|
+
animation: false,
|
|
26265
|
+
lazyLoad: false,
|
|
26266
|
+
shape: "wrapped",
|
|
26267
|
+
tabPosition: "left",
|
|
26268
|
+
className: "build-page-tab",
|
|
26269
|
+
tabRender: (key, props) => /* @__PURE__ */ React$1.createElement(CustomTabItem$5, {
|
|
26270
|
+
key,
|
|
26271
|
+
...props
|
|
26272
|
+
})
|
|
26273
|
+
}, /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26274
|
+
title: "\u641C\u7D22\u533A",
|
|
26275
|
+
icon: "search"
|
|
26276
|
+
}, /* @__PURE__ */ React$1.createElement(FilterPanel$2, {
|
|
26277
|
+
schema: schema.getFilterPanel(),
|
|
26278
|
+
swaggerFields: parameterFields
|
|
26279
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26280
|
+
title: "\u4E2D\u95F4\u6A21\u5757\u533A",
|
|
26281
|
+
icon: "flag"
|
|
26282
|
+
}, /* @__PURE__ */ React$1.createElement(Middle, {
|
|
26283
|
+
schema,
|
|
26284
|
+
moduleMap
|
|
26285
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26286
|
+
title: "\u9876\u90E8\u64CD\u4F5C\u533A",
|
|
26287
|
+
icon: "set"
|
|
26288
|
+
}, /* @__PURE__ */ React$1.createElement(HeaderToolbarPanel$1, {
|
|
26289
|
+
schema: schema.getHeaderToolbarPanel(),
|
|
26290
|
+
moduleMap
|
|
26291
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26292
|
+
title: "\u5185\u5BB9\u533A",
|
|
26293
|
+
icon: "detail"
|
|
26294
|
+
}, /* @__PURE__ */ React$1.createElement(TablePanel$3, {
|
|
26295
|
+
schema: schema.getTablePanel(),
|
|
26296
|
+
swaggerFields: responseFields,
|
|
26297
|
+
moduleMap
|
|
26298
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26299
|
+
title: "\u4E3B\u6570\u636E\u6E90",
|
|
26300
|
+
icon: "filter"
|
|
26301
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
26302
|
+
style: { marginLeft: "10px" }
|
|
26303
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
26304
|
+
style: { marginBottom: 8 }
|
|
26305
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u5217\u8868\u6570\u636E\u6E90\uFF1A")), /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
26306
|
+
hasDelete: true,
|
|
26307
|
+
schema: schema.getDataSourcePanel(),
|
|
26308
|
+
isSelectType: false
|
|
26309
|
+
}))));
|
|
26310
|
+
}
|
|
26311
|
+
function TablePanel$2({ schema }) {
|
|
26312
|
+
const columnMddFormRef = React$1.useRef();
|
|
26313
|
+
const [_2, forceUpdate] = useState({});
|
|
26314
|
+
useEffect(() => {
|
|
26315
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26316
|
+
!ignoreUpdate && forceUpdate({});
|
|
26317
|
+
});
|
|
26318
|
+
hackRowDetail(schema);
|
|
26319
|
+
}, []);
|
|
26320
|
+
const columns = schema.get("columns");
|
|
26321
|
+
const onAddHandle = (key) => {
|
|
26322
|
+
var _a2;
|
|
26323
|
+
switch (key) {
|
|
26324
|
+
case "columns":
|
|
26325
|
+
schema.add(
|
|
26326
|
+
{
|
|
26327
|
+
type: "text",
|
|
26328
|
+
label: "\u5C55\u793A\u9879",
|
|
26329
|
+
name: ""
|
|
26330
|
+
},
|
|
26331
|
+
"columns",
|
|
26332
|
+
true
|
|
26333
|
+
);
|
|
26334
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26335
|
+
break;
|
|
26336
|
+
}
|
|
26337
|
+
};
|
|
26338
|
+
const onRemoveHandle = (index2, key) => {
|
|
26339
|
+
var _a2;
|
|
26340
|
+
schema.remove(index2, key, true);
|
|
26341
|
+
if (key === "columns") {
|
|
26342
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26343
|
+
}
|
|
26344
|
+
};
|
|
26345
|
+
const onChangeHandle = ({ index: index2, record }, key) => {
|
|
26346
|
+
schema.update(index2, record, key, true);
|
|
26347
|
+
};
|
|
26348
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26349
|
+
ref: columnMddFormRef,
|
|
26350
|
+
data: columns,
|
|
26351
|
+
title: "\u914D\u7F6E\u8868\u683C\u5217",
|
|
26352
|
+
componentOptions: columnsTypeOptionsWithCnTable.filter((col) => col.value !== "blocks-table"),
|
|
26353
|
+
onAdd: () => onAddHandle("columns"),
|
|
26354
|
+
onRemove: (index2) => onRemoveHandle(index2, "columns"),
|
|
26355
|
+
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "columns"),
|
|
26356
|
+
onSort: (newList) => {
|
|
26357
|
+
schema.setItemAll(newList, "columns", true);
|
|
26358
|
+
}
|
|
26359
|
+
}));
|
|
26360
|
+
}
|
|
26361
|
+
function hackRowDetail(schema) {
|
|
26362
|
+
const rowDetail = schema.get("rowDetail");
|
|
26363
|
+
if (rowDetail) {
|
|
26364
|
+
schema.set("rowDetail", void 0);
|
|
26365
|
+
}
|
|
26366
|
+
}
|
|
26367
|
+
const Default_Add_Schema$1 = {
|
|
26368
|
+
type: "input",
|
|
26369
|
+
label: "\u8F93\u5165\u6846",
|
|
26370
|
+
name: "",
|
|
26371
|
+
input: propFields.input
|
|
26372
|
+
};
|
|
26373
|
+
function FilterPanel$1({ schema, swaggerFields = [] }) {
|
|
26374
|
+
const mddFormRef = React$1.useRef();
|
|
26375
|
+
const [_2, forceUpdate] = React$1.useState({});
|
|
26376
|
+
React$1.useEffect(() => {
|
|
26377
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26378
|
+
!ignoreUpdate && forceUpdate({});
|
|
26379
|
+
});
|
|
26380
|
+
}, []);
|
|
26381
|
+
const fields2 = schema.get("fields");
|
|
26382
|
+
const refreshMddTableForm = () => {
|
|
26383
|
+
var _a2;
|
|
26384
|
+
(_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
|
|
26385
|
+
};
|
|
26386
|
+
const onAddHandle = () => {
|
|
26387
|
+
schema.add(Default_Add_Schema$1, "fields", true);
|
|
26388
|
+
refreshMddTableForm();
|
|
26389
|
+
};
|
|
26390
|
+
const onRemoveHandle = (index2) => {
|
|
26391
|
+
schema.remove(index2, "fields", true);
|
|
26392
|
+
refreshMddTableForm();
|
|
26393
|
+
};
|
|
26394
|
+
const onChangeHandle = ({ index: index2, record }) => {
|
|
26395
|
+
for (const k2 in propFields) {
|
|
26396
|
+
if (record.type !== k2) {
|
|
26397
|
+
!["name"].includes(k2) && delete record[k2];
|
|
26398
|
+
}
|
|
26399
|
+
}
|
|
26400
|
+
schema.update(index2, record, "fields", true);
|
|
26401
|
+
};
|
|
26402
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26403
|
+
ref: mddFormRef,
|
|
26404
|
+
data: fields2,
|
|
26405
|
+
penetrateType: PenetrateTypes.FILTER,
|
|
26406
|
+
componentOptions,
|
|
26407
|
+
title: "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
26408
|
+
onAdd: onAddHandle,
|
|
26409
|
+
onRemove: onRemoveHandle,
|
|
26410
|
+
onChange: onChangeHandle,
|
|
26411
|
+
swaggerFieldDataSource: swaggerFields,
|
|
26412
|
+
onSort: (newList) => {
|
|
26413
|
+
schema.setFieldsAll(newList, true);
|
|
26414
|
+
}
|
|
26415
|
+
}));
|
|
26416
|
+
}
|
|
26417
|
+
const Default_Add_Schema = {
|
|
26418
|
+
type: "input",
|
|
26419
|
+
label: "\u8F93\u5165\u6846",
|
|
26420
|
+
name: "",
|
|
26421
|
+
input: propFields.input
|
|
26422
|
+
};
|
|
26423
|
+
function FilterPanel({ schema, swaggerFields = [] }) {
|
|
26424
|
+
const mddFormRef = React$1.useRef();
|
|
26425
|
+
const [_2, forceUpdate] = React$1.useState({});
|
|
26426
|
+
React$1.useEffect(() => {
|
|
26427
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26428
|
+
!ignoreUpdate && forceUpdate({});
|
|
26429
|
+
});
|
|
26430
|
+
}, []);
|
|
26431
|
+
const fields2 = schema.get("fields");
|
|
26432
|
+
const refreshMddTableForm = () => {
|
|
26433
|
+
var _a2;
|
|
26434
|
+
(_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
|
|
26435
|
+
};
|
|
26436
|
+
const onAddHandle = () => {
|
|
26437
|
+
schema.add(Default_Add_Schema, "fields", true);
|
|
26438
|
+
refreshMddTableForm();
|
|
26439
|
+
};
|
|
26440
|
+
const onRemoveHandle = (index2) => {
|
|
26441
|
+
schema.remove(index2, "fields", true);
|
|
26442
|
+
refreshMddTableForm();
|
|
26443
|
+
};
|
|
26444
|
+
const onChangeHandle = ({ index: index2, record }) => {
|
|
26445
|
+
for (const k2 in propFields) {
|
|
26446
|
+
if (record.type !== k2) {
|
|
26447
|
+
!["name"].includes(k2) && delete record[k2];
|
|
26448
|
+
}
|
|
26449
|
+
}
|
|
26450
|
+
schema.update(index2, record, "fields", true);
|
|
26451
|
+
};
|
|
26452
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26453
|
+
ref: mddFormRef,
|
|
26454
|
+
data: fields2,
|
|
26455
|
+
penetrateType: PenetrateTypes.FORM,
|
|
26456
|
+
componentOptions: FormComponentOptions,
|
|
26457
|
+
title: "\u914D\u7F6E\u8868\u5355\u9879",
|
|
26458
|
+
onAdd: onAddHandle,
|
|
26459
|
+
onRemove: onRemoveHandle,
|
|
26460
|
+
onChange: onChangeHandle,
|
|
26461
|
+
swaggerFieldDataSource: swaggerFields,
|
|
26462
|
+
onSort: (newList) => {
|
|
26463
|
+
schema.setFieldsAll(newList, true);
|
|
26464
|
+
}
|
|
26465
|
+
}));
|
|
26466
|
+
}
|
|
26467
|
+
function EditTablePanel({ schema }) {
|
|
26468
|
+
const columnMddFormRef = React$1.useRef();
|
|
26469
|
+
const [_2, forceUpdate] = useState({});
|
|
26470
|
+
useEffect(() => {
|
|
26471
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26472
|
+
!ignoreUpdate && forceUpdate({});
|
|
26473
|
+
});
|
|
26474
|
+
}, []);
|
|
26475
|
+
const columns = schema.get("columns");
|
|
26476
|
+
const onAddHandle = (key) => {
|
|
26477
|
+
var _a2;
|
|
26478
|
+
switch (key) {
|
|
26479
|
+
case "columns":
|
|
26480
|
+
schema.add(
|
|
26481
|
+
{
|
|
26482
|
+
type: "text",
|
|
26483
|
+
label: "\u5C55\u793A\u9879",
|
|
26484
|
+
name: ""
|
|
26485
|
+
},
|
|
26486
|
+
"columns",
|
|
26487
|
+
true
|
|
26488
|
+
);
|
|
26489
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26490
|
+
break;
|
|
26491
|
+
}
|
|
26492
|
+
};
|
|
26493
|
+
const onRemoveHandle = (index2, key) => {
|
|
26494
|
+
var _a2;
|
|
26495
|
+
schema.remove(index2, key, true);
|
|
26496
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26497
|
+
};
|
|
26498
|
+
const onChangeHandle = ({ index: index2, record }, key) => {
|
|
26499
|
+
schema.update(index2, record, key, true);
|
|
26500
|
+
};
|
|
26501
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26502
|
+
ref: columnMddFormRef,
|
|
26503
|
+
data: columns,
|
|
26504
|
+
title: "\u914D\u7F6E\u53EF\u7F16\u8F91\u8868\u683C\u5217",
|
|
26505
|
+
componentOptions: columnsTypeOptionsWithEditCnTable.filter(
|
|
26506
|
+
(col) => !["blocks-edit-table", "blocks-table"].includes(col.value)
|
|
26507
|
+
),
|
|
26508
|
+
onAdd: () => onAddHandle("columns"),
|
|
26509
|
+
onRemove: (index2) => onRemoveHandle(index2, "columns"),
|
|
26510
|
+
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "columns"),
|
|
26511
|
+
onSort: (newList) => {
|
|
26512
|
+
schema.setItemAll(newList, "columns", true);
|
|
26513
|
+
}
|
|
26514
|
+
}));
|
|
26515
|
+
}
|
|
26516
|
+
const customTabItem$4 = "_customTabItem_119xt_1";
|
|
26517
|
+
const tabTitle$4 = "_tabTitle_119xt_5";
|
|
26518
|
+
const tabLabel$4 = "_tabLabel_119xt_9";
|
|
26519
|
+
const middleBox = "_middleBox_119xt_20";
|
|
26520
|
+
const middleBoxLeft = "_middleBoxLeft_119xt_26";
|
|
26521
|
+
const middleBoxRight = "_middleBoxRight_119xt_31";
|
|
26522
|
+
var styles$7 = {
|
|
26523
|
+
customTabItem: customTabItem$4,
|
|
26524
|
+
tabTitle: tabTitle$4,
|
|
26525
|
+
tabLabel: tabLabel$4,
|
|
26526
|
+
middleBox,
|
|
26527
|
+
middleBoxLeft,
|
|
26528
|
+
middleBoxRight
|
|
26529
|
+
};
|
|
26530
|
+
const PanelComMap = {
|
|
26531
|
+
"blocks-table": TablePanel$2,
|
|
26532
|
+
"blocks-filter": FilterPanel$1,
|
|
26533
|
+
"blocks-form": FilterPanel,
|
|
26534
|
+
"blocks-edit-table": EditTablePanel
|
|
26535
|
+
};
|
|
26536
|
+
const TitleMap = {
|
|
26537
|
+
"blocks-table": "\u5217\u8868\u9879",
|
|
26538
|
+
"blocks-filter": "\u641C\u7D22\u9879",
|
|
26539
|
+
"blocks-form": "\u8868\u5355\u9879",
|
|
26540
|
+
"blocks-edit-table": "\u53EF\u7F16\u8F91\u8868\u683C\u9879"
|
|
26541
|
+
};
|
|
26542
|
+
const CustomTabItem$4 = ({ title: title2, icon }) => {
|
|
25198
26543
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25199
|
-
className: styles$
|
|
26544
|
+
className: styles$7.customTabItem
|
|
25200
26545
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25201
|
-
className: styles$
|
|
26546
|
+
className: styles$7.tabTitle
|
|
25202
26547
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25203
26548
|
type: icon,
|
|
25204
26549
|
size: "small"
|
|
25205
26550
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25206
|
-
className: styles$
|
|
25207
|
-
},
|
|
26551
|
+
className: styles$7.tabLabel
|
|
26552
|
+
}, title2)));
|
|
25208
26553
|
};
|
|
25209
|
-
function
|
|
25210
|
-
const
|
|
25211
|
-
const apiSchema = schema.getDataSourcePanel();
|
|
25212
|
-
const { parameterFields = [], responseFields = [] } = React$1.useMemo(() => {
|
|
25213
|
-
return getApiFields(apiSchema == null ? void 0 : apiSchema.getApiUrl(), "ftp") || {};
|
|
25214
|
-
}, [apiSchema, getApiFields]);
|
|
26554
|
+
function BlocksBuild({ schema, moduleMap }) {
|
|
26555
|
+
const Panel2 = PanelComMap[schema.type];
|
|
25215
26556
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
25216
26557
|
animation: false,
|
|
25217
26558
|
lazyLoad: false,
|
|
@@ -25223,42 +26564,11 @@ function FtpBuild$1({ schema, moduleMap }) {
|
|
|
25223
26564
|
...props
|
|
25224
26565
|
})
|
|
25225
26566
|
}, /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25226
|
-
title:
|
|
25227
|
-
icon: "search"
|
|
25228
|
-
}, /* @__PURE__ */ React$1.createElement(FilterPanel, {
|
|
25229
|
-
schema: schema.getFilterPanel(),
|
|
25230
|
-
swaggerFields: parameterFields
|
|
25231
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25232
|
-
title: "\u4E2D\u95F4\u6A21\u5757\u533A",
|
|
25233
|
-
icon: "flag"
|
|
25234
|
-
}, /* @__PURE__ */ React$1.createElement(Middle, {
|
|
25235
|
-
schema,
|
|
25236
|
-
moduleMap
|
|
25237
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25238
|
-
title: "\u9876\u90E8\u64CD\u4F5C\u533A",
|
|
25239
|
-
icon: "set"
|
|
25240
|
-
}, /* @__PURE__ */ React$1.createElement(HeaderToolbarPanel$1, {
|
|
25241
|
-
schema: schema.getHeaderToolbarPanel(),
|
|
25242
|
-
moduleMap
|
|
25243
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25244
|
-
title: "\u5185\u5BB9\u533A",
|
|
26567
|
+
title: TitleMap[schema.type],
|
|
25245
26568
|
icon: "detail"
|
|
25246
|
-
}, /* @__PURE__ */ React$1.createElement(
|
|
25247
|
-
schema: schema.
|
|
25248
|
-
|
|
25249
|
-
moduleMap
|
|
25250
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25251
|
-
title: "\u4E3B\u6570\u636E\u6E90",
|
|
25252
|
-
icon: "filter"
|
|
25253
|
-
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25254
|
-
style: { marginLeft: "10px" }
|
|
25255
|
-
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25256
|
-
style: { marginBottom: 8 }
|
|
25257
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u5217\u8868\u6570\u636E\u6E90\uFF1A")), /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
25258
|
-
hasDelete: true,
|
|
25259
|
-
schema: schema.getDataSourcePanel(),
|
|
25260
|
-
isSelectType: false
|
|
25261
|
-
}))));
|
|
26569
|
+
}, /* @__PURE__ */ React$1.createElement(Panel2, {
|
|
26570
|
+
schema: schema.getPanel()
|
|
26571
|
+
})));
|
|
25262
26572
|
}
|
|
25263
26573
|
const mddTableArray = "_mddTableArray_16ght_1";
|
|
25264
26574
|
const tableArrayTitle = "_tableArrayTitle_16ght_14";
|
|
@@ -25267,7 +26577,7 @@ const tableArrayBottom = "_tableArrayBottom_16ght_32";
|
|
|
25267
26577
|
const itemTitle = "_itemTitle_16ght_39";
|
|
25268
26578
|
const collapseContent = "_collapseContent_16ght_69";
|
|
25269
26579
|
const itemClose = "_itemClose_16ght_73";
|
|
25270
|
-
var styles$
|
|
26580
|
+
var styles$6 = {
|
|
25271
26581
|
mddTableArray,
|
|
25272
26582
|
tableArrayTitle,
|
|
25273
26583
|
tableArrayContent,
|
|
@@ -25279,7 +26589,7 @@ var styles$5 = {
|
|
|
25279
26589
|
itemClose
|
|
25280
26590
|
};
|
|
25281
26591
|
const DRAG_KEY = "TableArrayPanelTitle";
|
|
25282
|
-
const { Panel } = Collapse;
|
|
26592
|
+
const { Panel: Panel$1 } = Collapse;
|
|
25283
26593
|
const TitleRender = (props) => {
|
|
25284
26594
|
const ref = useRef(null);
|
|
25285
26595
|
const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
|
|
@@ -25310,7 +26620,7 @@ const TitleRender = (props) => {
|
|
|
25310
26620
|
});
|
|
25311
26621
|
const opacity = isDragging ? 0 : 1;
|
|
25312
26622
|
draggable && drag(drop(ref));
|
|
25313
|
-
const cls = classnames.bind(styles$
|
|
26623
|
+
const cls = classnames.bind(styles$6)({
|
|
25314
26624
|
itemTitle: "itemTitle",
|
|
25315
26625
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
25316
26626
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -25323,7 +26633,7 @@ const TitleRender = (props) => {
|
|
|
25323
26633
|
}, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25324
26634
|
type: "close",
|
|
25325
26635
|
size: "small",
|
|
25326
|
-
className: styles$
|
|
26636
|
+
className: styles$6.itemClose,
|
|
25327
26637
|
onClick: onRemove
|
|
25328
26638
|
}));
|
|
25329
26639
|
};
|
|
@@ -25337,7 +26647,7 @@ const getTypeContentMap = (typeContent2) => {
|
|
|
25337
26647
|
};
|
|
25338
26648
|
function MddTableArray(props) {
|
|
25339
26649
|
const {
|
|
25340
|
-
title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
26650
|
+
title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
25341
26651
|
data = [],
|
|
25342
26652
|
onChange = () => {
|
|
25343
26653
|
},
|
|
@@ -25367,11 +26677,11 @@ function MddTableArray(props) {
|
|
|
25367
26677
|
onChange({ record, index: index2, data });
|
|
25368
26678
|
};
|
|
25369
26679
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25370
|
-
className: styles$
|
|
26680
|
+
className: styles$6.mddTableArray
|
|
25371
26681
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25372
|
-
className: styles$
|
|
25373
|
-
},
|
|
25374
|
-
className: styles$
|
|
26682
|
+
className: styles$6.tableArrayTitle
|
|
26683
|
+
}, title2), /* @__PURE__ */ React$1.createElement("div", {
|
|
26684
|
+
className: styles$6.tableArrayContent
|
|
25375
26685
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
25376
26686
|
backend: HTML5Backend
|
|
25377
26687
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
@@ -25379,7 +26689,7 @@ function MddTableArray(props) {
|
|
|
25379
26689
|
}, data.map((item, idx) => {
|
|
25380
26690
|
var _a2;
|
|
25381
26691
|
const type = item instanceof JSONWatch ? item.get("type") : item == null ? void 0 : item.type;
|
|
25382
|
-
return /* @__PURE__ */ React$1.createElement(Panel, {
|
|
26692
|
+
return /* @__PURE__ */ React$1.createElement(Panel$1, {
|
|
25383
26693
|
title: /* @__PURE__ */ React$1.createElement(TitleRender, {
|
|
25384
26694
|
index: idx,
|
|
25385
26695
|
draggable,
|
|
@@ -25393,10 +26703,10 @@ function MddTableArray(props) {
|
|
|
25393
26703
|
customRender: titleRender
|
|
25394
26704
|
})
|
|
25395
26705
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25396
|
-
className: styles$
|
|
26706
|
+
className: styles$6.collapseContent
|
|
25397
26707
|
}, (_a2 = typeContentMap[type]) == null ? void 0 : _a2.contentRender({ data: item, index: idx, onChange: onTableArrayChange })));
|
|
25398
26708
|
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
25399
|
-
className: styles$
|
|
26709
|
+
className: styles$6.tableArrayBottom
|
|
25400
26710
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
25401
26711
|
onClick: onAdd,
|
|
25402
26712
|
style: { padding: "0 48px" }
|
|
@@ -25499,6 +26809,8 @@ function ActionsPanel({ schema }) {
|
|
|
25499
26809
|
}
|
|
25500
26810
|
}));
|
|
25501
26811
|
}
|
|
26812
|
+
const _columnsTypeOptions = [...columnsTypeOptions];
|
|
26813
|
+
_columnsTypeOptions.splice(5, 0, { value: "message", label: "\u4FE1\u606F\u63D0\u793A" });
|
|
25502
26814
|
const extraFieldSchema = {
|
|
25503
26815
|
renderToTitle: {
|
|
25504
26816
|
title: "\u6E32\u67D3\u5230\u6807\u9898",
|
|
@@ -25628,7 +26940,7 @@ function DetailCard(props) {
|
|
|
25628
26940
|
title: "",
|
|
25629
26941
|
extraFieldSchema,
|
|
25630
26942
|
swaggerFieldDataSource: responseFields,
|
|
25631
|
-
componentOptions:
|
|
26943
|
+
componentOptions: _columnsTypeOptions,
|
|
25632
26944
|
onAdd: () => onAddHandle(),
|
|
25633
26945
|
onRemove: (index2) => onRemoveHandle(index2),
|
|
25634
26946
|
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }),
|
|
@@ -25818,7 +27130,7 @@ function DetailTable(props) {
|
|
|
25818
27130
|
onChange: ({ index: index2, record }) => onPaginationChangeHandle({ index: index2, record })
|
|
25819
27131
|
}), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
25820
27132
|
labelAlign: "left",
|
|
25821
|
-
label: "\u662F\u5426\
|
|
27133
|
+
label: "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A:",
|
|
25822
27134
|
name: "hideCommonToolbar"
|
|
25823
27135
|
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
25824
27136
|
autoWidth: true,
|
|
@@ -25826,10 +27138,11 @@ function DetailTable(props) {
|
|
|
25826
27138
|
defaultChecked: data.get("hideCommonToolbar")
|
|
25827
27139
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25828
27140
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
25829
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(
|
|
27141
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
25830
27142
|
value: data.get("maxHeight"),
|
|
25831
27143
|
size: "small",
|
|
25832
|
-
onChange: (v2) => tablePropsChange("maxHeight", v2)
|
|
27144
|
+
onChange: (v2) => tablePropsChange("maxHeight", v2),
|
|
27145
|
+
min: 0
|
|
25833
27146
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25834
27147
|
className: "mdd-tip"
|
|
25835
27148
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
@@ -25904,6 +27217,246 @@ function DetailStaticStep(props) {
|
|
|
25904
27217
|
single: true
|
|
25905
27218
|
})));
|
|
25906
27219
|
}
|
|
27220
|
+
const title = "_title_10adh_1";
|
|
27221
|
+
const titleItem = "_titleItem_10adh_7";
|
|
27222
|
+
const titleItemLabel = "_titleItemLabel_10adh_12";
|
|
27223
|
+
var styles$5 = {
|
|
27224
|
+
title,
|
|
27225
|
+
titleItem,
|
|
27226
|
+
titleItemLabel
|
|
27227
|
+
};
|
|
27228
|
+
const { Panel } = Collapse;
|
|
27229
|
+
function DetailColumns(props) {
|
|
27230
|
+
const { data, index: idx, onChange } = props;
|
|
27231
|
+
const [_2, forceUpdate] = React$1.useState({});
|
|
27232
|
+
React$1.useEffect(() => {
|
|
27233
|
+
data.set("hideCardTitle", true);
|
|
27234
|
+
forceUpdate();
|
|
27235
|
+
return () => {
|
|
27236
|
+
data.set("hideCardTitle", false);
|
|
27237
|
+
forceUpdate();
|
|
27238
|
+
};
|
|
27239
|
+
}, []);
|
|
27240
|
+
const onAddHandle = () => {
|
|
27241
|
+
data.add(
|
|
27242
|
+
{
|
|
27243
|
+
moduleName: "",
|
|
27244
|
+
hideSelfCard: true,
|
|
27245
|
+
params: [],
|
|
27246
|
+
canUpdateOtherColumns: true,
|
|
27247
|
+
canBeUpdated: true
|
|
27248
|
+
},
|
|
27249
|
+
"columnsBoxes"
|
|
27250
|
+
);
|
|
27251
|
+
forceUpdate({});
|
|
27252
|
+
};
|
|
27253
|
+
const onRemoveHandle = (index2) => {
|
|
27254
|
+
data.remove(index2, "columnsBoxes");
|
|
27255
|
+
forceUpdate({});
|
|
27256
|
+
};
|
|
27257
|
+
const onChangeHandle = ({ index: index2, record }) => {
|
|
27258
|
+
data.update(index2, record, "columnsBoxes");
|
|
27259
|
+
forceUpdate({});
|
|
27260
|
+
};
|
|
27261
|
+
return /* @__PURE__ */ React$1.createElement(Form, {
|
|
27262
|
+
labelCol: { span: 4 },
|
|
27263
|
+
wrapperCol: { span: 19 },
|
|
27264
|
+
size: "small",
|
|
27265
|
+
onChange: (values, item) => {
|
|
27266
|
+
data.set(item.name, item.value);
|
|
27267
|
+
onChange({ index: idx, record: data });
|
|
27268
|
+
}
|
|
27269
|
+
}, /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27270
|
+
labelAlign: "left",
|
|
27271
|
+
label: "\u5E03\u5C40\u65B9\u5F0F",
|
|
27272
|
+
name: "columnsDirection"
|
|
27273
|
+
}, /* @__PURE__ */ React$1.createElement(CnRadioGroup, {
|
|
27274
|
+
defaultValue: data.get("columnsDirection")
|
|
27275
|
+
}, /* @__PURE__ */ React$1.createElement(CnRadio, {
|
|
27276
|
+
value: "row"
|
|
27277
|
+
}, "\u5DE6\u53F3\u5E03\u5C40"), /* @__PURE__ */ React$1.createElement(CnRadio, {
|
|
27278
|
+
value: "column"
|
|
27279
|
+
}, "\u4E0A\u4E0B\u5E03\u5C40"))), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27280
|
+
labelAlign: "left",
|
|
27281
|
+
label: "\u9AD8\u5EA6",
|
|
27282
|
+
name: "height"
|
|
27283
|
+
}, /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
|
|
27284
|
+
defaultValue: data.get("height"),
|
|
27285
|
+
min: 0,
|
|
27286
|
+
max: 100,
|
|
27287
|
+
innerAfter: "%",
|
|
27288
|
+
style: { width: 90 }
|
|
27289
|
+
}), /* @__PURE__ */ React$1.createElement(CnTooltip, {
|
|
27290
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27291
|
+
type: "prompt",
|
|
27292
|
+
style: { marginLeft: 6 }
|
|
27293
|
+
})
|
|
27294
|
+
}, "0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27295
|
+
labelAlign: "left",
|
|
27296
|
+
label: "\u9690\u85CF\u7236\u7EA7\u5361\u7247",
|
|
27297
|
+
name: "hideCard"
|
|
27298
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27299
|
+
checked: data.get("hideCard")
|
|
27300
|
+
})), !data.get("hideCard") && /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27301
|
+
labelAlign: "left",
|
|
27302
|
+
label: "\u9690\u85CF\u7236\u7EA7\u5361\u7247\u5934\u90E8",
|
|
27303
|
+
name: "hideCardTitle"
|
|
27304
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27305
|
+
checked: data.get("hideCardTitle")
|
|
27306
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27307
|
+
labelAlign: "top",
|
|
27308
|
+
label: ""
|
|
27309
|
+
}, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
|
|
27310
|
+
data: data.get("columnsBoxes"),
|
|
27311
|
+
titleRender: customTitleRender$1,
|
|
27312
|
+
contentRender,
|
|
27313
|
+
title: "\u914D\u7F6E\u5206\u680F\u4FE1\u606F",
|
|
27314
|
+
tip: "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24",
|
|
27315
|
+
onChange: onChangeHandle,
|
|
27316
|
+
onSort: (newList) => {
|
|
27317
|
+
data.setItemAll(newList, "columnsBoxes");
|
|
27318
|
+
forceUpdate({});
|
|
27319
|
+
},
|
|
27320
|
+
onAdd: onAddHandle,
|
|
27321
|
+
onRemove: (index2) => onRemoveHandle(index2),
|
|
27322
|
+
otherInfo: { columnsDirection: data.get("columnsDirection") }
|
|
27323
|
+
})), data.get("hideCardTitle") ? null : /* @__PURE__ */ React$1.createElement(ActionsPanel, {
|
|
27324
|
+
schema: data
|
|
27325
|
+
}));
|
|
27326
|
+
}
|
|
27327
|
+
function customTitleRender$1(props) {
|
|
27328
|
+
const { data, index: index2, onChange, moduleDataSource, otherInfo = {} } = props;
|
|
27329
|
+
return /* @__PURE__ */ React$1.createElement("div", {
|
|
27330
|
+
className: styles$5.title
|
|
27331
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
27332
|
+
className: styles$5.titleItem
|
|
27333
|
+
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
27334
|
+
className: styles$5.titleItemLabel
|
|
27335
|
+
}, "\u6A21\u5757\u5730\u5740"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
|
|
27336
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",
|
|
27337
|
+
hasClear: true,
|
|
27338
|
+
size: "small",
|
|
27339
|
+
style: {
|
|
27340
|
+
minWidth: 280
|
|
27341
|
+
},
|
|
27342
|
+
dataSource: (moduleDataSource == null ? void 0 : moduleDataSource.l4ModuleOptions) || moduleDataSource || [],
|
|
27343
|
+
value: data == null ? void 0 : data.moduleName,
|
|
27344
|
+
onChange: (v2) => onChange({ ...data, moduleName: v2 })
|
|
27345
|
+
})), (otherInfo == null ? void 0 : otherInfo.columnsDirection) === "row" && /* @__PURE__ */ React$1.createElement("div", {
|
|
27346
|
+
className: styles$5.titleItem
|
|
27347
|
+
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
27348
|
+
className: styles$5.titleItemLabel
|
|
27349
|
+
}, /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
27350
|
+
trigger: /* @__PURE__ */ React$1.createElement("div", {
|
|
27351
|
+
style: { display: "flex", alignItems: "center" }
|
|
27352
|
+
}, "\u5360\u5217\u6570 ", /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27353
|
+
type: "help",
|
|
27354
|
+
size: "small"
|
|
27355
|
+
})),
|
|
27356
|
+
align: "t"
|
|
27357
|
+
}, /* @__PURE__ */ React$1.createElement("b", null, "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24"))), /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
|
|
27358
|
+
size: "small",
|
|
27359
|
+
min: 0,
|
|
27360
|
+
max: 24,
|
|
27361
|
+
value: data == null ? void 0 : data.cols,
|
|
27362
|
+
onChange: (v2) => onChange({ ...data, cols: v2 }),
|
|
27363
|
+
placeholder: "\u5360\u5217\u6570 \u4E4B\u548C\u5E94\u4E3A24"
|
|
27364
|
+
})));
|
|
27365
|
+
}
|
|
27366
|
+
const layoutConfig = {
|
|
27367
|
+
wrapperCol: { span: 16 },
|
|
27368
|
+
labelCol: { span: 8 }
|
|
27369
|
+
};
|
|
27370
|
+
function contentRender(props) {
|
|
27371
|
+
return /* @__PURE__ */ React$1.createElement(ContentRender, {
|
|
27372
|
+
...props
|
|
27373
|
+
});
|
|
27374
|
+
}
|
|
27375
|
+
const ContentRender = (props) => {
|
|
27376
|
+
const { data, index: index2, onChange, otherInfo = {} } = props;
|
|
27377
|
+
return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, (otherInfo == null ? void 0 : otherInfo.columnsDirection) === "column" && /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27378
|
+
wrapperCol: { span: 20 },
|
|
27379
|
+
labelCol: { span: 4 },
|
|
27380
|
+
label: "\u9AD8\u5EA6",
|
|
27381
|
+
name: ""
|
|
27382
|
+
}, /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
|
|
27383
|
+
min: 0,
|
|
27384
|
+
max: 100,
|
|
27385
|
+
innerAfter: "%",
|
|
27386
|
+
style: { width: 90 },
|
|
27387
|
+
defaultValue: data == null ? void 0 : data.height,
|
|
27388
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, height: v2 } })
|
|
27389
|
+
}), /* @__PURE__ */ React$1.createElement(CnTooltip, {
|
|
27390
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27391
|
+
type: "prompt",
|
|
27392
|
+
style: { marginLeft: 6 }
|
|
27393
|
+
})
|
|
27394
|
+
}, "\u4EC5\u5728\u4E0A\u4E0B\u5E03\u5C40\u4E2D\u751F\u6548\uFF1A0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27395
|
+
name: "",
|
|
27396
|
+
wrapperCol: { span: 20 },
|
|
27397
|
+
labelCol: { span: 4 },
|
|
27398
|
+
style: { position: "relative" },
|
|
27399
|
+
label: /* @__PURE__ */ React$1.createElement("div", null, "\u53C2\u6570", /* @__PURE__ */ React$1.createElement("a", {
|
|
27400
|
+
rel: "noreferrer",
|
|
27401
|
+
target: "_blank",
|
|
27402
|
+
href: "https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",
|
|
27403
|
+
title: "\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",
|
|
27404
|
+
className: "help-link"
|
|
27405
|
+
}, "\u5E2E\u52A9"))
|
|
27406
|
+
}, /* @__PURE__ */ React$1.createElement(FormilyTableFormProxy, {
|
|
27407
|
+
keyTitle: "key(\u53C2\u6570\u540D)",
|
|
27408
|
+
valueTitle: "value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",
|
|
27409
|
+
value: data == null ? void 0 : data.params,
|
|
27410
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, params: v2 } })
|
|
27411
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27412
|
+
wrapperCol: { span: 20 },
|
|
27413
|
+
labelCol: { span: 4 },
|
|
27414
|
+
label: "\u9690\u85CF \u5F53\u524D\u680F \u5361\u7247",
|
|
27415
|
+
name: ""
|
|
27416
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27417
|
+
defaultChecked: data == null ? void 0 : data.hideSelfCard,
|
|
27418
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, hideSelfCard: v2 } })
|
|
27419
|
+
})), /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
27420
|
+
accordion: true
|
|
27421
|
+
}, /* @__PURE__ */ React$1.createElement(Panel, {
|
|
27422
|
+
title: /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
27423
|
+
trigger: /* @__PURE__ */ React$1.createElement("div", {
|
|
27424
|
+
style: { width: "fit-content", display: "flex", alignItems: "center" }
|
|
27425
|
+
}, "\u5176\u4ED6\u914D\u7F6E\uFF1A", /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27426
|
+
type: "help",
|
|
27427
|
+
size: "small"
|
|
27428
|
+
})),
|
|
27429
|
+
align: "t"
|
|
27430
|
+
}, "\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")))
|
|
27431
|
+
}, /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27432
|
+
...layoutConfig,
|
|
27433
|
+
label: "\u53EF\u4EE5\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0",
|
|
27434
|
+
name: ""
|
|
27435
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27436
|
+
defaultChecked: data == null ? void 0 : data.canUpdateOtherColumns,
|
|
27437
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, canUpdateOtherColumns: v2 } })
|
|
27438
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27439
|
+
...layoutConfig,
|
|
27440
|
+
label: "\u53EF\u88AB\u5176\u4ED6\u5206\u680F\u5237\u65B0",
|
|
27441
|
+
name: ""
|
|
27442
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27443
|
+
defaultChecked: data == null ? void 0 : data.canBeUpdated,
|
|
27444
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, canBeUpdated: v2 } })
|
|
27445
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27446
|
+
...layoutConfig,
|
|
27447
|
+
label: /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
27448
|
+
trigger: /* @__PURE__ */ React$1.createElement("div", null, "\u5F53\u524D\u5206\u680F\u4E3AFTP\u65F6\u81EA\u52A8\u5237\u65B0", /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27449
|
+
type: "help",
|
|
27450
|
+
size: "small"
|
|
27451
|
+
})),
|
|
27452
|
+
align: "t"
|
|
27453
|
+
}, /* @__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")),
|
|
27454
|
+
name: ""
|
|
27455
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27456
|
+
defaultChecked: data == null ? void 0 : data.autoUpdateWhenIsFTP,
|
|
27457
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, autoUpdateWhenIsFTP: v2 } })
|
|
27458
|
+
})))));
|
|
27459
|
+
};
|
|
25907
27460
|
const customTabItem$3 = "_customTabItem_1lh1l_1";
|
|
25908
27461
|
const tabTitle$3 = "_tabTitle_1lh1l_5";
|
|
25909
27462
|
const tabLabel$3 = "_tabLabel_1lh1l_9";
|
|
@@ -25955,6 +27508,15 @@ const typeContent = [
|
|
|
25955
27508
|
});
|
|
25956
27509
|
}
|
|
25957
27510
|
},
|
|
27511
|
+
{
|
|
27512
|
+
label: "\u5E03\u5C40",
|
|
27513
|
+
value: "detail-columns",
|
|
27514
|
+
contentRender: (props) => {
|
|
27515
|
+
return /* @__PURE__ */ React$1.createElement(DetailColumns, {
|
|
27516
|
+
...props
|
|
27517
|
+
});
|
|
27518
|
+
}
|
|
27519
|
+
},
|
|
25958
27520
|
{
|
|
25959
27521
|
label: "\u5185\u5D4C\u9875\u9762",
|
|
25960
27522
|
value: "import-component",
|
|
@@ -26047,7 +27609,7 @@ function DetailItems({ schema = {} }) {
|
|
|
26047
27609
|
onRemove: onRemoveHandle
|
|
26048
27610
|
}));
|
|
26049
27611
|
}
|
|
26050
|
-
const CustomTabItem$3 = ({ title, icon }) => {
|
|
27612
|
+
const CustomTabItem$3 = ({ title: title2, icon }) => {
|
|
26051
27613
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26052
27614
|
className: styles$4.customTabItem
|
|
26053
27615
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26057,7 +27619,7 @@ const CustomTabItem$3 = ({ title, icon }) => {
|
|
|
26057
27619
|
size: "small"
|
|
26058
27620
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26059
27621
|
className: styles$4.tabLabel
|
|
26060
|
-
},
|
|
27622
|
+
}, title2)));
|
|
26061
27623
|
};
|
|
26062
27624
|
function DetailBuild({ schema }) {
|
|
26063
27625
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
@@ -26101,6 +27663,18 @@ function DetailBuild({ schema }) {
|
|
|
26101
27663
|
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
26102
27664
|
autoWidth: true,
|
|
26103
27665
|
defaultChecked: schema.get("hasAnchor")
|
|
27666
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27667
|
+
label: "\u662F\u5426\u6491\u6EE1\u7236\u5BB9\u5668:",
|
|
27668
|
+
name: "fullHeight"
|
|
27669
|
+
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
27670
|
+
autoWidth: true,
|
|
27671
|
+
defaultChecked: schema.get("fullHeight")
|
|
27672
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27673
|
+
label: "\u662F\u5426\u5E26\u6709\u767D\u8272\u80CC\u666F:",
|
|
27674
|
+
name: "whiteBackground"
|
|
27675
|
+
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
27676
|
+
autoWidth: true,
|
|
27677
|
+
defaultChecked: schema.get("whiteBackground")
|
|
26104
27678
|
}))))), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26105
27679
|
title: "\u5185\u5BB9\u533A",
|
|
26106
27680
|
icon: "detail"
|
|
@@ -26283,8 +27857,6 @@ function FormInfoPanel({ schema }) {
|
|
|
26283
27857
|
defaultValue: schema.get("cancelText")
|
|
26284
27858
|
})))));
|
|
26285
27859
|
}
|
|
26286
|
-
const FormComponentOptions = [...componentOptions];
|
|
26287
|
-
FormComponentOptions.splice(3, 0, { value: "input-password", label: "\u5BC6\u7801\u8F93\u5165\u6846" });
|
|
26288
27860
|
function FormItemsPanel({ schema, swaggerFields = [] }) {
|
|
26289
27861
|
const mddFormRef = React$1.useRef();
|
|
26290
27862
|
const [_2, forceUpdate] = React$1.useState({});
|
|
@@ -26326,7 +27898,7 @@ function FormItemsPanel({ schema, swaggerFields = [] }) {
|
|
|
26326
27898
|
ref: mddFormRef,
|
|
26327
27899
|
data: fields2 || [],
|
|
26328
27900
|
penetrateType: PenetrateTypes.FORM,
|
|
26329
|
-
componentOptions: FormComponentOptions,
|
|
27901
|
+
componentOptions: [...FormComponentOptions, , { value: "blocks-form", label: "\u8868\u5355\u533A\u5757" }],
|
|
26330
27902
|
swaggerFieldDataSource: swaggerFields,
|
|
26331
27903
|
title: "\u914D\u7F6E\u8868\u5355\u9879",
|
|
26332
27904
|
onAdd: onAddHandle,
|
|
@@ -26345,7 +27917,7 @@ var styles$3 = {
|
|
|
26345
27917
|
tabTitle: tabTitle$2,
|
|
26346
27918
|
tabLabel: tabLabel$2
|
|
26347
27919
|
};
|
|
26348
|
-
const CustomTabItem$2 = ({ title, icon }) => {
|
|
27920
|
+
const CustomTabItem$2 = ({ title: title2, icon }) => {
|
|
26349
27921
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26350
27922
|
className: styles$3.customTabItem
|
|
26351
27923
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26355,9 +27927,9 @@ const CustomTabItem$2 = ({ title, icon }) => {
|
|
|
26355
27927
|
size: "small"
|
|
26356
27928
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26357
27929
|
className: styles$3.tabLabel
|
|
26358
|
-
},
|
|
27930
|
+
}, title2)));
|
|
26359
27931
|
};
|
|
26360
|
-
const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
|
|
27932
|
+
const CustomKV$1 = ({ title: title2 = "", subTitle = "", children }) => {
|
|
26361
27933
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26362
27934
|
className: "formily-form-v2-kv"
|
|
26363
27935
|
}, /* @__PURE__ */ React$1.createElement(Box, {
|
|
@@ -26366,7 +27938,7 @@ const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
|
|
|
26366
27938
|
className: "formily-form-v2-title-wrapper"
|
|
26367
27939
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
26368
27940
|
className: "title"
|
|
26369
|
-
},
|
|
27941
|
+
}, title2), /* @__PURE__ */ React$1.createElement("label", {
|
|
26370
27942
|
className: "subTitle"
|
|
26371
27943
|
}, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
|
|
26372
27944
|
};
|
|
@@ -26484,6 +28056,7 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
|
|
|
26484
28056
|
}, []);
|
|
26485
28057
|
const primaryKey = schema.get("primaryKey");
|
|
26486
28058
|
const columns = schema.get("columns");
|
|
28059
|
+
const showIndex = schema.get("showIndex");
|
|
26487
28060
|
const onAddHandle = (key) => {
|
|
26488
28061
|
var _a2;
|
|
26489
28062
|
switch (key) {
|
|
@@ -26512,6 +28085,9 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
|
|
|
26512
28085
|
const onPrimaryKeyChange = (value) => {
|
|
26513
28086
|
schema.update("", value, "primaryKey");
|
|
26514
28087
|
};
|
|
28088
|
+
const onBaseInfoChange = (key, value) => {
|
|
28089
|
+
schema.update("", value, key);
|
|
28090
|
+
};
|
|
26515
28091
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
26516
28092
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
26517
28093
|
}, /* @__PURE__ */ React$1.createElement("label", null, "\u4E3B\u952E\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -26532,15 +28108,45 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
|
|
|
26532
28108
|
}
|
|
26533
28109
|
}), /* @__PURE__ */ React$1.createElement("div", {
|
|
26534
28110
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
26535
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(
|
|
28111
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
26536
28112
|
value: schema.get("maxHeight"),
|
|
26537
28113
|
size: "small",
|
|
26538
|
-
onChange: (v2) => schema.update("", v2, "maxHeight")
|
|
28114
|
+
onChange: (v2) => schema.update("", v2, "maxHeight"),
|
|
28115
|
+
min: 0
|
|
26539
28116
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26540
28117
|
className: "mdd-tip"
|
|
26541
28118
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26542
28119
|
type: "prompt"
|
|
26543
|
-
}), " \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)"))
|
|
28120
|
+
}), " \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")), /* @__PURE__ */ React$1.createElement("div", {
|
|
28121
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
28122
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
28123
|
+
autoWidth: true,
|
|
28124
|
+
checked: showIndex,
|
|
28125
|
+
size: "small",
|
|
28126
|
+
onChange: (v2) => onBaseInfoChange("showIndex", v2)
|
|
28127
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
28128
|
+
className: "mdd-tip"
|
|
28129
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
28130
|
+
type: "prompt"
|
|
28131
|
+
}), " \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7", " ")), /* @__PURE__ */ React$1.createElement("div", {
|
|
28132
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
28133
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
28134
|
+
autoWidth: true,
|
|
28135
|
+
checked: schema.get("useVirtual"),
|
|
28136
|
+
size: "small",
|
|
28137
|
+
onChange: (v2) => onBaseInfoChange("useVirtual", v2)
|
|
28138
|
+
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
28139
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
28140
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u5F00\u542F\u81EA\u52A8\u5217\u5BBD\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
28141
|
+
autoWidth: true,
|
|
28142
|
+
checked: schema.get("columnsAutoWidth"),
|
|
28143
|
+
size: "small",
|
|
28144
|
+
onChange: (v2) => onBaseInfoChange("columnsAutoWidth", v2)
|
|
28145
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
28146
|
+
className: "mdd-tip"
|
|
28147
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
28148
|
+
type: "prompt"
|
|
28149
|
+
}), " \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")));
|
|
26544
28150
|
}
|
|
26545
28151
|
function HeaderToolbarPanel({ schema }) {
|
|
26546
28152
|
const mddFormRef = React$1.useRef();
|
|
@@ -26600,7 +28206,7 @@ var styles$2 = {
|
|
|
26600
28206
|
kvTitle,
|
|
26601
28207
|
kvSubTitle
|
|
26602
28208
|
};
|
|
26603
|
-
var CustomKV = ({ title = "", subTitle = "", children }) => {
|
|
28209
|
+
var CustomKV = ({ title: title2 = "", subTitle = "", children }) => {
|
|
26604
28210
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26605
28211
|
className: styles$2.kvContainer
|
|
26606
28212
|
}, /* @__PURE__ */ React$1.createElement(Box, {
|
|
@@ -26609,7 +28215,7 @@ var CustomKV = ({ title = "", subTitle = "", children }) => {
|
|
|
26609
28215
|
className: styles$2.kvWrapper
|
|
26610
28216
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
26611
28217
|
className: styles$2.kvTitle
|
|
26612
|
-
},
|
|
28218
|
+
}, title2), /* @__PURE__ */ React$1.createElement("label", {
|
|
26613
28219
|
className: styles$2.kvSubTitle
|
|
26614
28220
|
}, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
|
|
26615
28221
|
};
|
|
@@ -26621,7 +28227,7 @@ var styles$1 = {
|
|
|
26621
28227
|
tabTitle: tabTitle$1,
|
|
26622
28228
|
tabLabel: tabLabel$1
|
|
26623
28229
|
};
|
|
26624
|
-
const CustomTabItem$1 = ({ title, icon }) => {
|
|
28230
|
+
const CustomTabItem$1 = ({ title: title2, icon }) => {
|
|
26625
28231
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26626
28232
|
className: styles$1.customTabItem
|
|
26627
28233
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26631,7 +28237,7 @@ const CustomTabItem$1 = ({ title, icon }) => {
|
|
|
26631
28237
|
size: "small"
|
|
26632
28238
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26633
28239
|
className: styles$1.tabLabel
|
|
26634
|
-
},
|
|
28240
|
+
}, title2)));
|
|
26635
28241
|
};
|
|
26636
28242
|
function FtpBuild({ schema }) {
|
|
26637
28243
|
const [_2, forceUpdate] = React$1.useState({});
|
|
@@ -26871,6 +28477,7 @@ function MDDEditor(props) {
|
|
|
26871
28477
|
customSchema,
|
|
26872
28478
|
moduleDataSource,
|
|
26873
28479
|
refreshModuleDataSource,
|
|
28480
|
+
blocksDataSource,
|
|
26874
28481
|
moduleMap = /* @__PURE__ */ new Map(),
|
|
26875
28482
|
scriptTopButtons = []
|
|
26876
28483
|
} = props;
|
|
@@ -26881,7 +28488,8 @@ function MDDEditor(props) {
|
|
|
26881
28488
|
React$1.useEffect(() => {
|
|
26882
28489
|
setModules({
|
|
26883
28490
|
$ModuleDataSource: moduleDataSource,
|
|
26884
|
-
$RefreshModuleDataSource: refreshModuleDataSource
|
|
28491
|
+
$RefreshModuleDataSource: refreshModuleDataSource,
|
|
28492
|
+
$BlocksDataSource: blocksDataSource
|
|
26885
28493
|
});
|
|
26886
28494
|
console.log("moduleDataSource: ", moduleDataSource);
|
|
26887
28495
|
window.__MDD_ModuleDataSource = moduleDataSource;
|
|
@@ -26992,6 +28600,18 @@ function getCompAndSchemaFromSchemaJson(schemaJson, customComponent, customSchem
|
|
|
26992
28600
|
case "edit-table": {
|
|
26993
28601
|
return [customComponent || FtpBuild, customSchema || FtpSchema];
|
|
26994
28602
|
}
|
|
28603
|
+
case "blocks-table": {
|
|
28604
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
28605
|
+
}
|
|
28606
|
+
case "blocks-filter": {
|
|
28607
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
28608
|
+
}
|
|
28609
|
+
case "blocks-form": {
|
|
28610
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
28611
|
+
}
|
|
28612
|
+
case "blocks-edit-table": {
|
|
28613
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
28614
|
+
}
|
|
26995
28615
|
default:
|
|
26996
28616
|
return null;
|
|
26997
28617
|
}
|
|
@@ -27084,7 +28704,7 @@ var styles = {
|
|
|
27084
28704
|
tabTitle,
|
|
27085
28705
|
tabLabel
|
|
27086
28706
|
};
|
|
27087
|
-
const CustomTabItem = ({ title, icon }) => {
|
|
28707
|
+
const CustomTabItem = ({ title: title2, icon }) => {
|
|
27088
28708
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
27089
28709
|
className: styles.customTabItem
|
|
27090
28710
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -27094,7 +28714,7 @@ const CustomTabItem = ({ title, icon }) => {
|
|
|
27094
28714
|
size: "small"
|
|
27095
28715
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
27096
28716
|
className: styles.tabLabel
|
|
27097
|
-
},
|
|
28717
|
+
}, title2)));
|
|
27098
28718
|
};
|
|
27099
28719
|
function SimpleFtp({ schema }) {
|
|
27100
28720
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
@@ -27110,7 +28730,7 @@ function SimpleFtp({ schema }) {
|
|
|
27110
28730
|
}, /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
27111
28731
|
title: "\u641C\u7D22\u533A",
|
|
27112
28732
|
icon: "search"
|
|
27113
|
-
}, /* @__PURE__ */ React$1.createElement(FilterPanel, {
|
|
28733
|
+
}, /* @__PURE__ */ React$1.createElement(FilterPanel$2, {
|
|
27114
28734
|
schema: schema.getFilterPanel()
|
|
27115
28735
|
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
27116
28736
|
title: "\u9876\u90E8\u64CD\u4F5C\u533A",
|