@cniot/mdd-editor 0.2.0-beta.4 → 0.2.0-beta.41
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 +151 -9
- package/build/index.cjs.js +25 -19
- package/build/index.es.js +2327 -716
- package/build/style.css +1 -1
- package/package.json +2 -2
- 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 +5 -5
- package/src/schema/edit-table/table.js +10 -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 +18 -1
- 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 +56 -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 +7 -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 +11 -5
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,
|
|
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, Switch, NumberPicker, CnSwitch, CnTooltip, 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",
|
|
@@ -2604,16 +2641,22 @@ function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {
|
|
|
2604
2641
|
},
|
|
2605
2642
|
tree: false,
|
|
2606
2643
|
showIndex: false,
|
|
2607
|
-
hideCommonToolbar:
|
|
2644
|
+
hideCommonToolbar: true
|
|
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) {
|
|
@@ -2747,15 +2790,15 @@ class MiddleItem extends JSONWatch {
|
|
|
2747
2790
|
delete() {
|
|
2748
2791
|
}
|
|
2749
2792
|
}
|
|
2750
|
-
class FtpSchema
|
|
2793
|
+
class FtpSchema 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));
|
|
@@ -2920,9 +2963,229 @@ class FtpSchema$1 extends Schema {
|
|
|
2920
2963
|
super.emit(EVENT_KEY.SCHEMA_UPDATE, { schemaJson: this.getAllJSON(), schema: this });
|
|
2921
2964
|
}
|
|
2922
2965
|
}
|
|
2923
|
-
__publicField(FtpSchema
|
|
2924
|
-
__publicField(FtpSchema
|
|
2925
|
-
__publicField(FtpSchema
|
|
2966
|
+
__publicField(FtpSchema, "Filter", Filter);
|
|
2967
|
+
__publicField(FtpSchema, "HeaderToolbar", HeaderToolbar$1);
|
|
2968
|
+
__publicField(FtpSchema, "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$1 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$1,
|
|
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
|
}
|
|
@@ -3496,12 +3775,16 @@ class TableSchema extends JSONWatch {
|
|
|
3496
3775
|
primaryKey = "id",
|
|
3497
3776
|
tree = false,
|
|
3498
3777
|
showIndex = false,
|
|
3499
|
-
hideCommonToolbar =
|
|
3778
|
+
hideCommonToolbar = true,
|
|
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,
|
|
3787
|
+
storageKey = Date.now()
|
|
3505
3788
|
} = props || {};
|
|
3506
3789
|
super({
|
|
3507
3790
|
columns,
|
|
@@ -3510,7 +3793,11 @@ class TableSchema extends JSONWatch {
|
|
|
3510
3793
|
pagination,
|
|
3511
3794
|
tree,
|
|
3512
3795
|
showIndex,
|
|
3513
|
-
hideCommonToolbar
|
|
3796
|
+
hideCommonToolbar,
|
|
3797
|
+
useVirtual,
|
|
3798
|
+
columnsAutoWidth,
|
|
3799
|
+
maxHeight,
|
|
3800
|
+
storageKey
|
|
3514
3801
|
});
|
|
3515
3802
|
}
|
|
3516
3803
|
setFieldsAll(columns, ignoreUpdate = false) {
|
|
@@ -3572,7 +3859,7 @@ class HeaderToolbar extends JSONWatch {
|
|
|
3572
3859
|
return this.data || [];
|
|
3573
3860
|
}
|
|
3574
3861
|
}
|
|
3575
|
-
class
|
|
3862
|
+
class EditTableSchema extends Schema {
|
|
3576
3863
|
constructor(props, isCompleteSchema = false) {
|
|
3577
3864
|
const {
|
|
3578
3865
|
initApi,
|
|
@@ -3839,7 +4126,7 @@ function shouldUseNative() {
|
|
|
3839
4126
|
return false;
|
|
3840
4127
|
}
|
|
3841
4128
|
}
|
|
3842
|
-
var
|
|
4129
|
+
var objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
3843
4130
|
var from;
|
|
3844
4131
|
var to = toObject(target);
|
|
3845
4132
|
var symbols;
|
|
@@ -5231,7 +5518,7 @@ function createSingletonDndContext(backend, context = getGlobalContext(), option
|
|
|
5231
5518
|
function getGlobalContext() {
|
|
5232
5519
|
return typeof global !== "undefined" ? global : window;
|
|
5233
5520
|
}
|
|
5234
|
-
var
|
|
5521
|
+
var fastDeepEqual = function equal(a, b) {
|
|
5235
5522
|
if (a === b)
|
|
5236
5523
|
return true;
|
|
5237
5524
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
@@ -5276,7 +5563,7 @@ function useCollector(monitor, collect, onUpdate) {
|
|
|
5276
5563
|
);
|
|
5277
5564
|
const updateCollected = useCallback(() => {
|
|
5278
5565
|
const nextValue = collect(monitor);
|
|
5279
|
-
if (!
|
|
5566
|
+
if (!fastDeepEqual(collected, nextValue)) {
|
|
5280
5567
|
setCollected(nextValue);
|
|
5281
5568
|
if (onUpdate) {
|
|
5282
5569
|
onUpdate();
|
|
@@ -7688,7 +7975,7 @@ const dsTitleWatch$1 = "_dsTitleWatch_mxilv_32";
|
|
|
7688
7975
|
const staticValueOkBtn$1 = "_staticValueOkBtn_mxilv_37";
|
|
7689
7976
|
const tableDeleteBtn$1 = "_tableDeleteBtn_mxilv_41";
|
|
7690
7977
|
const secondConfirm$1 = "_secondConfirm_mxilv_45";
|
|
7691
|
-
var styles$
|
|
7978
|
+
var styles$e = {
|
|
7692
7979
|
dsType: dsType$1,
|
|
7693
7980
|
dsJSONContent: dsJSONContent$1,
|
|
7694
7981
|
dsJSONContentTip: dsJSONContentTip$1,
|
|
@@ -7735,7 +8022,7 @@ const schemaScenarioList = async (params) => {
|
|
|
7735
8022
|
return null;
|
|
7736
8023
|
return res;
|
|
7737
8024
|
};
|
|
7738
|
-
var
|
|
8025
|
+
var hox = {};
|
|
7739
8026
|
var createModel$2 = {};
|
|
7740
8027
|
var container$1 = {};
|
|
7741
8028
|
var __values$1 = commonjsGlobal && commonjsGlobal.__values || function(o) {
|
|
@@ -7800,9 +8087,9 @@ function Executor(props) {
|
|
|
7800
8087
|
}
|
|
7801
8088
|
executor.Executor = Executor;
|
|
7802
8089
|
var renderer = {};
|
|
7803
|
-
var
|
|
8090
|
+
var reactReconciler = { exports: {} };
|
|
7804
8091
|
var reactReconciler_production_min = { exports: {} };
|
|
7805
|
-
var
|
|
8092
|
+
var scheduler = { exports: {} };
|
|
7806
8093
|
var scheduler_production_min = {};
|
|
7807
8094
|
/** @license React v0.20.2
|
|
7808
8095
|
* scheduler.production.min.js
|
|
@@ -8086,7 +8373,7 @@ var scheduler_production_min = {};
|
|
|
8086
8373
|
};
|
|
8087
8374
|
})(scheduler_production_min);
|
|
8088
8375
|
{
|
|
8089
|
-
|
|
8376
|
+
scheduler.exports = scheduler_production_min;
|
|
8090
8377
|
}
|
|
8091
8378
|
/** @license React v0.26.2
|
|
8092
8379
|
* react-reconciler.production.min.js
|
|
@@ -8099,7 +8386,7 @@ var scheduler_production_min = {};
|
|
|
8099
8386
|
(function(module) {
|
|
8100
8387
|
module.exports = function $$$reconciler($$$hostConfig) {
|
|
8101
8388
|
var exports = {};
|
|
8102
|
-
var aa =
|
|
8389
|
+
var aa = objectAssign, ba = React$1, m2 = scheduler.exports;
|
|
8103
8390
|
function q2(a) {
|
|
8104
8391
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
|
|
8105
8392
|
b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
@@ -12742,13 +13029,13 @@ var scheduler_production_min = {};
|
|
|
12742
13029
|
};
|
|
12743
13030
|
})(reactReconciler_production_min);
|
|
12744
13031
|
{
|
|
12745
|
-
|
|
13032
|
+
reactReconciler.exports = reactReconciler_production_min.exports;
|
|
12746
13033
|
}
|
|
12747
13034
|
var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
12748
13035
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12749
13036
|
};
|
|
12750
13037
|
Object.defineProperty(renderer, "__esModule", { value: true });
|
|
12751
|
-
var react_reconciler_1 = __importDefault$1(
|
|
13038
|
+
var react_reconciler_1 = __importDefault$1(reactReconciler.exports);
|
|
12752
13039
|
var reconciler = react_reconciler_1.default({
|
|
12753
13040
|
now: Date.now,
|
|
12754
13041
|
getRootHostContext: function() {
|
|
@@ -12993,12 +13280,12 @@ function withModel(useModelOrUseModels, mapModelToProps) {
|
|
|
12993
13280
|
};
|
|
12994
13281
|
}
|
|
12995
13282
|
withModel$1.withModel = withModel;
|
|
12996
|
-
Object.defineProperty(
|
|
13283
|
+
Object.defineProperty(hox, "__esModule", { value: true });
|
|
12997
13284
|
var create_model_1 = createModel$2;
|
|
12998
|
-
var createModel =
|
|
12999
|
-
|
|
13285
|
+
var createModel = hox.createModel = create_model_1.createModel;
|
|
13286
|
+
hox.createLazyModel = create_model_1.createLazyModel;
|
|
13000
13287
|
var with_model_1 = withModel$1;
|
|
13001
|
-
|
|
13288
|
+
hox.withModel = with_model_1.withModel;
|
|
13002
13289
|
function useSwagger() {
|
|
13003
13290
|
const [apiList, setApiList] = useState([]);
|
|
13004
13291
|
const [swaggerInfo, setSwaggerInfo] = useState(null);
|
|
@@ -13059,23 +13346,23 @@ function useSwagger() {
|
|
|
13059
13346
|
}
|
|
13060
13347
|
};
|
|
13061
13348
|
}
|
|
13062
|
-
function createApiSelectItem(summary,
|
|
13349
|
+
function createApiSelectItem(summary, api, method, request = []) {
|
|
13063
13350
|
return {
|
|
13064
13351
|
summary,
|
|
13065
|
-
label: `${summary} - ${method} ${
|
|
13066
|
-
value:
|
|
13067
|
-
url:
|
|
13352
|
+
label: `${summary} - ${method} ${api}`,
|
|
13353
|
+
value: api,
|
|
13354
|
+
url: api,
|
|
13068
13355
|
method,
|
|
13069
13356
|
request,
|
|
13070
|
-
parameters:
|
|
13357
|
+
parameters: api.parameters
|
|
13071
13358
|
};
|
|
13072
13359
|
}
|
|
13073
13360
|
const getDataSourceArray$1 = (paths = {}) => {
|
|
13074
13361
|
try {
|
|
13075
13362
|
return Object.keys(paths).map((key) => {
|
|
13076
|
-
const
|
|
13077
|
-
const apiPost =
|
|
13078
|
-
const apiGet =
|
|
13363
|
+
const api = paths[key];
|
|
13364
|
+
const apiPost = api.post || api.POST;
|
|
13365
|
+
const apiGet = api.get || api.GET;
|
|
13079
13366
|
if (apiPost) {
|
|
13080
13367
|
return createApiSelectItem(apiPost.summary, key, "POST");
|
|
13081
13368
|
} else if (apiGet) {
|
|
@@ -13148,8 +13435,8 @@ class PersistentStorage {
|
|
|
13148
13435
|
}
|
|
13149
13436
|
var storage = new PersistentStorage();
|
|
13150
13437
|
class DataSourceSchema extends JSONWatch {
|
|
13151
|
-
constructor(
|
|
13152
|
-
const { url, method = "get", ...more2 } =
|
|
13438
|
+
constructor(api) {
|
|
13439
|
+
const { url, method = "get", ...more2 } = api || {};
|
|
13153
13440
|
super({
|
|
13154
13441
|
url,
|
|
13155
13442
|
method,
|
|
@@ -13861,10 +14148,10 @@ function emitterVSCodeMessage(action, content2) {
|
|
|
13861
14148
|
function emitSave(fileMapContent) {
|
|
13862
14149
|
emitterVSCodeMessage(EMIT_EVENT_ACTION_SAVE, fileMapContent);
|
|
13863
14150
|
}
|
|
13864
|
-
const buildSchema = (schemaType,
|
|
14151
|
+
const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
|
|
13865
14152
|
let schemaObj = null;
|
|
13866
14153
|
if (schemaType === "ftp") {
|
|
13867
|
-
schemaObj = new FtpSchema
|
|
14154
|
+
schemaObj = new FtpSchema({ host: api, title: "" });
|
|
13868
14155
|
const realDataSource = {
|
|
13869
14156
|
...mainDataSource,
|
|
13870
14157
|
type: "ajax",
|
|
@@ -13877,14 +14164,14 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13877
14164
|
};
|
|
13878
14165
|
schemaObj.getDataSourcePanel().update(realDataSource);
|
|
13879
14166
|
} else if (schemaType === "formily-form") {
|
|
13880
|
-
schemaObj = new FormilyFormSchema({ host:
|
|
14167
|
+
schemaObj = new FormilyFormSchema({ host: api, title: "" });
|
|
13881
14168
|
const realDataSource = {
|
|
13882
14169
|
...mainDataSource,
|
|
13883
14170
|
type: "ajax"
|
|
13884
14171
|
};
|
|
13885
14172
|
schemaObj.getDataSourcePanel().update(realDataSource);
|
|
13886
14173
|
} else if (schemaType === "formily-form-v2") {
|
|
13887
|
-
schemaObj = new FormilyFormV2Schema({ host:
|
|
14174
|
+
schemaObj = new FormilyFormV2Schema({ host: api, title: "" });
|
|
13888
14175
|
const realDataSource = {
|
|
13889
14176
|
...mainDataSource,
|
|
13890
14177
|
type: "ajax"
|
|
@@ -13892,7 +14179,7 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13892
14179
|
schemaObj.getApiPanel().update(realDataSource);
|
|
13893
14180
|
} else if (schemaType === "detail") {
|
|
13894
14181
|
if (moreProps == null ? void 0 : moreProps.children) {
|
|
13895
|
-
schemaObj = new DetailSchema({ host:
|
|
14182
|
+
schemaObj = new DetailSchema({ host: api, title: "", ...moreProps });
|
|
13896
14183
|
} else {
|
|
13897
14184
|
const realDataSource = {
|
|
13898
14185
|
...mainDataSource,
|
|
@@ -13901,10 +14188,10 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13901
14188
|
detailData: "$RET.data"
|
|
13902
14189
|
}
|
|
13903
14190
|
};
|
|
13904
|
-
schemaObj = new DetailSchema({ host:
|
|
14191
|
+
schemaObj = new DetailSchema({ host: api, title: "", initDataSource: realDataSource });
|
|
13905
14192
|
}
|
|
13906
14193
|
} else if (schemaType === "edit-table") {
|
|
13907
|
-
schemaObj = new
|
|
14194
|
+
schemaObj = new EditTableSchema({ host: api, title: "", ...moreProps });
|
|
13908
14195
|
const realDataSource = {
|
|
13909
14196
|
...mainDataSource,
|
|
13910
14197
|
type: "ajax",
|
|
@@ -13931,8 +14218,8 @@ const buildSchema = (schemaType, api2, mainDataSource, moreProps) => {
|
|
|
13931
14218
|
}
|
|
13932
14219
|
}, 500)
|
|
13933
14220
|
);
|
|
13934
|
-
if (
|
|
13935
|
-
axios.defaults.baseURL =
|
|
14221
|
+
if (api.indexOf("?") === -1 && api.indexOf("mocks") === -1) {
|
|
14222
|
+
axios.defaults.baseURL = api;
|
|
13936
14223
|
}
|
|
13937
14224
|
return schemaObj;
|
|
13938
14225
|
};
|
|
@@ -13941,11 +14228,11 @@ const buildSchemaObjFromSchema = (schema) => {
|
|
|
13941
14228
|
return null;
|
|
13942
14229
|
}
|
|
13943
14230
|
const { host, body } = schema;
|
|
13944
|
-
const { type, api
|
|
14231
|
+
const { type, api, ...more2 } = body || {};
|
|
13945
14232
|
if (!host || !type) {
|
|
13946
14233
|
return null;
|
|
13947
14234
|
}
|
|
13948
|
-
return buildSchema(type, host,
|
|
14235
|
+
return buildSchema(type, host, api, more2);
|
|
13949
14236
|
};
|
|
13950
14237
|
function useSchema() {
|
|
13951
14238
|
const { fetchSwaggerInfo } = useSwagger$1();
|
|
@@ -14588,7 +14875,7 @@ function DataSourceSelect(props) {
|
|
|
14588
14875
|
size: "small",
|
|
14589
14876
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
14590
14877
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14591
|
-
className: styles$
|
|
14878
|
+
className: styles$e.staticValueOkBtn,
|
|
14592
14879
|
size: "small",
|
|
14593
14880
|
onClick: onOkQuery
|
|
14594
14881
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14599,7 +14886,7 @@ function DataSourceSelect(props) {
|
|
|
14599
14886
|
size: "small",
|
|
14600
14887
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
14601
14888
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14602
|
-
className: styles$
|
|
14889
|
+
className: styles$e.staticValueOkBtn,
|
|
14603
14890
|
size: "small",
|
|
14604
14891
|
onClick: onOkRecordData
|
|
14605
14892
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14610,7 +14897,7 @@ function DataSourceSelect(props) {
|
|
|
14610
14897
|
size: "small",
|
|
14611
14898
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
14612
14899
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14613
|
-
className: styles$
|
|
14900
|
+
className: styles$e.staticValueOkBtn,
|
|
14614
14901
|
size: "small",
|
|
14615
14902
|
onClick: onOkParams
|
|
14616
14903
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14621,7 +14908,7 @@ function DataSourceSelect(props) {
|
|
|
14621
14908
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14622
14909
|
size: "small"
|
|
14623
14910
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14624
|
-
className: styles$
|
|
14911
|
+
className: styles$e.staticValueOkBtn,
|
|
14625
14912
|
size: "small",
|
|
14626
14913
|
onClick: onOkStatic
|
|
14627
14914
|
}, "\u786E\u5B9A")) : null) : null);
|
|
@@ -14650,12 +14937,12 @@ function DataSourceSelect(props) {
|
|
|
14650
14937
|
type: "primary",
|
|
14651
14938
|
text: true,
|
|
14652
14939
|
size: "small",
|
|
14653
|
-
className: styles$
|
|
14940
|
+
className: styles$e.tableDeleteBtn,
|
|
14654
14941
|
onClick: () => commonTableDelete(value2, index2, record, "params")
|
|
14655
14942
|
}, "\u5220\u9664"));
|
|
14656
14943
|
};
|
|
14657
14944
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
14658
|
-
className: styles$
|
|
14945
|
+
className: styles$e.dsTitle
|
|
14659
14946
|
}, "\u5165\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
|
|
14660
14947
|
style: { marginBottom: 8 }
|
|
14661
14948
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
@@ -14689,9 +14976,9 @@ function DataSourceSelect(props) {
|
|
|
14689
14976
|
};
|
|
14690
14977
|
const renderWatch = () => {
|
|
14691
14978
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
14692
|
-
className: styles$
|
|
14979
|
+
className: styles$e.watchContainer
|
|
14693
14980
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
14694
|
-
className: styles$
|
|
14981
|
+
className: styles$e.dsTitleWatch
|
|
14695
14982
|
}, "\u89E6\u53D1\u65F6\u673A:"), /* @__PURE__ */ React$1.createElement(Select$2, {
|
|
14696
14983
|
mode: "multiple",
|
|
14697
14984
|
showSearch: true,
|
|
@@ -14969,7 +15256,7 @@ function DataSourceSelect(props) {
|
|
|
14969
15256
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14970
15257
|
size: "small"
|
|
14971
15258
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14972
|
-
className: styles$
|
|
15259
|
+
className: styles$e.staticValueOkBtn,
|
|
14973
15260
|
size: "small",
|
|
14974
15261
|
onClick: onOkQuery
|
|
14975
15262
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14980,7 +15267,7 @@ function DataSourceSelect(props) {
|
|
|
14980
15267
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14981
15268
|
size: "small"
|
|
14982
15269
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14983
|
-
className: styles$
|
|
15270
|
+
className: styles$e.staticValueOkBtn,
|
|
14984
15271
|
size: "small",
|
|
14985
15272
|
onClick: onOkStatic
|
|
14986
15273
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$RET" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -14991,7 +15278,7 @@ function DataSourceSelect(props) {
|
|
|
14991
15278
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
14992
15279
|
size: "small"
|
|
14993
15280
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
14994
|
-
className: styles$
|
|
15281
|
+
className: styles$e.staticValueOkBtn,
|
|
14995
15282
|
size: "small",
|
|
14996
15283
|
onClick: onOkRet
|
|
14997
15284
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15002,7 +15289,7 @@ function DataSourceSelect(props) {
|
|
|
15002
15289
|
size: "small",
|
|
15003
15290
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15004
15291
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15005
|
-
className: styles$
|
|
15292
|
+
className: styles$e.staticValueOkBtn,
|
|
15006
15293
|
size: "small",
|
|
15007
15294
|
onClick: onOkParams
|
|
15008
15295
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15013,7 +15300,7 @@ function DataSourceSelect(props) {
|
|
|
15013
15300
|
size: "small",
|
|
15014
15301
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15015
15302
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15016
|
-
className: styles$
|
|
15303
|
+
className: styles$e.staticValueOkBtn,
|
|
15017
15304
|
size: "small",
|
|
15018
15305
|
onClick: onOkRecordData
|
|
15019
15306
|
}, "\u786E\u5B9A")) : null) : null);
|
|
@@ -15051,9 +15338,9 @@ function DataSourceSelect(props) {
|
|
|
15051
15338
|
}, "\u5220\u9664");
|
|
15052
15339
|
};
|
|
15053
15340
|
return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
|
|
15054
|
-
className: styles$
|
|
15341
|
+
className: styles$e.dsTitle
|
|
15055
15342
|
}, "\u683C\u5F0F\u5316\u51FA\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
|
|
15056
|
-
className: styles$
|
|
15343
|
+
className: styles$e.actionButton
|
|
15057
15344
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
15058
15345
|
onClick: onResponseAdd,
|
|
15059
15346
|
size: "small"
|
|
@@ -15083,9 +15370,9 @@ function DataSourceSelect(props) {
|
|
|
15083
15370
|
})));
|
|
15084
15371
|
};
|
|
15085
15372
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
15086
|
-
className: styles$
|
|
15373
|
+
className: styles$e.dsContainer
|
|
15087
15374
|
}, hasExtra && !defaultAjax ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
|
|
15088
|
-
className: styles$
|
|
15375
|
+
className: styles$e.dsType
|
|
15089
15376
|
}, /* @__PURE__ */ React$1.createElement(RadioGroup$1, {
|
|
15090
15377
|
value: typeValue,
|
|
15091
15378
|
onChange: onTypeChange,
|
|
@@ -15115,9 +15402,9 @@ function DataSourceSelect(props) {
|
|
|
15115
15402
|
filter: mainDataSourceFilter,
|
|
15116
15403
|
...selectProps
|
|
15117
15404
|
}) : null, hasExtra && typeValue === "json" ? /* @__PURE__ */ React$1.createElement("div", {
|
|
15118
|
-
className: styles$
|
|
15405
|
+
className: styles$e.dsJSONContent
|
|
15119
15406
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
15120
|
-
className: styles$
|
|
15407
|
+
className: styles$e.dsJSONContentTip
|
|
15121
15408
|
}, "\u8BF7\u8F93\u5165json(\u63D0\u793A\uFF1Ajson\u7684key\u9700\u8981\u52A0\u4E0A\u53CC\u5F15\u53F7)"), /* @__PURE__ */ React$1.createElement(MonacoEditor, {
|
|
15122
15409
|
value: codeMirrorJsonObj,
|
|
15123
15410
|
onChange: (v2, viewUpdate) => {
|
|
@@ -15130,9 +15417,9 @@ function DataSourceSelect(props) {
|
|
|
15130
15417
|
}
|
|
15131
15418
|
}
|
|
15132
15419
|
})) : null, hasExtra && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
|
|
15133
|
-
className: styles$
|
|
15420
|
+
className: styles$e.dsAjaxContent
|
|
15134
15421
|
}, showWatch && !defaultAjax && renderWatch(), renderParamsTable(), renderFormatResponse()) : null, hasExtra && showSecondConfirm && typeValue === "ajax" ? /* @__PURE__ */ React$1.createElement("div", {
|
|
15135
|
-
className: styles$
|
|
15422
|
+
className: styles$e.secondConfirm
|
|
15136
15423
|
}, /* @__PURE__ */ React$1.createElement(Checkbox, {
|
|
15137
15424
|
checked: secondConfirmValue,
|
|
15138
15425
|
onChange: secondConfirmChange
|
|
@@ -15163,7 +15450,7 @@ const dsTitleWatch = "_dsTitleWatch_1islj_28";
|
|
|
15163
15450
|
const staticValueOkBtn = "_staticValueOkBtn_1islj_33";
|
|
15164
15451
|
const tableDeleteBtn = "_tableDeleteBtn_1islj_37";
|
|
15165
15452
|
const secondConfirm = "_secondConfirm_1islj_41";
|
|
15166
|
-
var styles$
|
|
15453
|
+
var styles$d = {
|
|
15167
15454
|
dsType,
|
|
15168
15455
|
dsJSONContent,
|
|
15169
15456
|
dsJSONContentTip,
|
|
@@ -15526,7 +15813,7 @@ function ParamsSelect(props) {
|
|
|
15526
15813
|
size: "small",
|
|
15527
15814
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15528
15815
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15529
|
-
className: styles$
|
|
15816
|
+
className: styles$d.staticValueOkBtn,
|
|
15530
15817
|
size: "small",
|
|
15531
15818
|
onClick: onOkQuery
|
|
15532
15819
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$PARAMS" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15537,7 +15824,7 @@ function ParamsSelect(props) {
|
|
|
15537
15824
|
size: "small",
|
|
15538
15825
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15539
15826
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15540
|
-
className: styles$
|
|
15827
|
+
className: styles$d.staticValueOkBtn,
|
|
15541
15828
|
size: "small",
|
|
15542
15829
|
onClick: onOkParams
|
|
15543
15830
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$TABLE.RECORD_DATA" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15548,7 +15835,7 @@ function ParamsSelect(props) {
|
|
|
15548
15835
|
size: "small",
|
|
15549
15836
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15550
15837
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15551
|
-
className: styles$
|
|
15838
|
+
className: styles$d.staticValueOkBtn,
|
|
15552
15839
|
size: "small",
|
|
15553
15840
|
onClick: onOkRecordData
|
|
15554
15841
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "$FORM" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15559,7 +15846,7 @@ function ParamsSelect(props) {
|
|
|
15559
15846
|
size: "small",
|
|
15560
15847
|
placeholder: "\u8BF7\u8F93\u5165\u503C"
|
|
15561
15848
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15562
|
-
className: styles$
|
|
15849
|
+
className: styles$d.staticValueOkBtn,
|
|
15563
15850
|
size: "small",
|
|
15564
15851
|
onClick: onOkForm
|
|
15565
15852
|
}, "\u786E\u5B9A")) : null, panelSelectValue === "staticValue" ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -15570,7 +15857,7 @@ function ParamsSelect(props) {
|
|
|
15570
15857
|
placeholder: "\u8BF7\u8F93\u5165\u503C",
|
|
15571
15858
|
size: "small"
|
|
15572
15859
|
}), /* @__PURE__ */ React$1.createElement(Button, {
|
|
15573
|
-
className: styles$
|
|
15860
|
+
className: styles$d.staticValueOkBtn,
|
|
15574
15861
|
size: "small",
|
|
15575
15862
|
onClick: onOkStatic
|
|
15576
15863
|
}, "\u786E\u5B9A")) : null) : null);
|
|
@@ -15599,7 +15886,7 @@ function ParamsSelect(props) {
|
|
|
15599
15886
|
type: "primary",
|
|
15600
15887
|
text: true,
|
|
15601
15888
|
size: "small",
|
|
15602
|
-
className: styles$
|
|
15889
|
+
className: styles$d.tableDeleteBtn,
|
|
15603
15890
|
onClick: () => commonTableDelete(value2, index2, record, "params")
|
|
15604
15891
|
}, "\u5220\u9664"));
|
|
15605
15892
|
};
|
|
@@ -15627,9 +15914,9 @@ function ParamsSelect(props) {
|
|
|
15627
15914
|
})));
|
|
15628
15915
|
};
|
|
15629
15916
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
15630
|
-
className: styles$
|
|
15917
|
+
className: styles$d.dsContainer
|
|
15631
15918
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
15632
|
-
className: styles$
|
|
15919
|
+
className: styles$d.dsAjaxContent
|
|
15633
15920
|
}, renderParamsTable()));
|
|
15634
15921
|
}
|
|
15635
15922
|
const { connect: connect$7, mapReadPretty: mapReadPretty$6, mapProps: mapProps$7 } = formilyReact;
|
|
@@ -15748,11 +16035,12 @@ const mapStatus = (props, field) => {
|
|
|
15748
16035
|
};
|
|
15749
16036
|
const patchDataSource = (dataSource = []) => {
|
|
15750
16037
|
const removeEmptyChildren = (data) => {
|
|
16038
|
+
var _a2, _b2;
|
|
15751
16039
|
const result = { ...data };
|
|
15752
16040
|
if (!result.children || result.children.length === 0) {
|
|
15753
16041
|
delete result.children;
|
|
15754
16042
|
} else {
|
|
15755
|
-
result.children = result.children.map(removeEmptyChildren);
|
|
16043
|
+
result.children = (_b2 = (_a2 = result.children) == null ? void 0 : _a2.map) == null ? void 0 : _b2.call(_a2, removeEmptyChildren);
|
|
15756
16044
|
}
|
|
15757
16045
|
return result;
|
|
15758
16046
|
};
|
|
@@ -15803,7 +16091,7 @@ Select$1.AutoComplete = connect$4(
|
|
|
15803
16091
|
);
|
|
15804
16092
|
const container = "_container_t9q14_1";
|
|
15805
16093
|
const footer = "_footer_t9q14_8";
|
|
15806
|
-
var styles$
|
|
16094
|
+
var styles$c = {
|
|
15807
16095
|
container,
|
|
15808
16096
|
footer
|
|
15809
16097
|
};
|
|
@@ -15903,14 +16191,14 @@ const FormilyForm = (props) => {
|
|
|
15903
16191
|
fixedSpan: 8
|
|
15904
16192
|
},
|
|
15905
16193
|
size: "small",
|
|
15906
|
-
className: styles$
|
|
16194
|
+
className: styles$c.container
|
|
15907
16195
|
},
|
|
15908
16196
|
...restProps
|
|
15909
16197
|
}, /* @__PURE__ */ React$1.createElement(SchemaField, {
|
|
15910
16198
|
components,
|
|
15911
16199
|
schema: schema == null ? void 0 : schema.schema
|
|
15912
16200
|
}), children, !hiddenSubmit && /* @__PURE__ */ React$1.createElement("div", {
|
|
15913
|
-
className: styles$
|
|
16201
|
+
className: styles$c.footer
|
|
15914
16202
|
}, /* @__PURE__ */ React$1.createElement(Submit, {
|
|
15915
16203
|
...SubmitProps
|
|
15916
16204
|
}, "\u63D0\u4EA4")));
|
|
@@ -16379,7 +16667,7 @@ function AjaxSchemaForm(props) {
|
|
|
16379
16667
|
generateFastJson
|
|
16380
16668
|
}) : null);
|
|
16381
16669
|
}
|
|
16382
|
-
function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
|
|
16670
|
+
function AjaxFormDialog({ title: title2 = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldSchema, visible, onClose, selectTypes, generateFastJson }) {
|
|
16383
16671
|
const swagger = useSwagger$1();
|
|
16384
16672
|
const schema = React$1.useMemo(() => {
|
|
16385
16673
|
return oldSchema.clone();
|
|
@@ -16399,7 +16687,7 @@ function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldS
|
|
|
16399
16687
|
const type = schema.getViewType();
|
|
16400
16688
|
return /* @__PURE__ */ React$1.createElement(Dialog, {
|
|
16401
16689
|
footerActions: ["cancel", "ok"],
|
|
16402
|
-
title,
|
|
16690
|
+
title: title2,
|
|
16403
16691
|
v2: true,
|
|
16404
16692
|
visible,
|
|
16405
16693
|
centered: true,
|
|
@@ -16468,9 +16756,9 @@ function AjaxFormDialog({ title = "\u6570\u636E\u6E90\u914D\u7F6E", schema: oldS
|
|
|
16468
16756
|
dataSource: swagger.apiList,
|
|
16469
16757
|
defaultValue: schema.get("url"),
|
|
16470
16758
|
onChange: (value) => {
|
|
16471
|
-
const
|
|
16472
|
-
if (
|
|
16473
|
-
schema.setAjaxRequest(value,
|
|
16759
|
+
const api = swagger.getApi(value);
|
|
16760
|
+
if (api) {
|
|
16761
|
+
schema.setAjaxRequest(value, api.method);
|
|
16474
16762
|
} else {
|
|
16475
16763
|
schema.set("url", value);
|
|
16476
16764
|
}
|
|
@@ -16904,8 +17192,13 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
16904
17192
|
},
|
|
16905
17193
|
{
|
|
16906
17194
|
children: [],
|
|
16907
|
-
label: "\
|
|
16908
|
-
value: "
|
|
17195
|
+
label: "onePage \u6253\u5F00\u5206\u680F",
|
|
17196
|
+
value: "onePage"
|
|
17197
|
+
},
|
|
17198
|
+
{
|
|
17199
|
+
children: [],
|
|
17200
|
+
label: "\u81EA\u5B9A\u4E49",
|
|
17201
|
+
value: "custom"
|
|
16909
17202
|
},
|
|
16910
17203
|
{
|
|
16911
17204
|
children: [],
|
|
@@ -17004,6 +17297,37 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17004
17297
|
},
|
|
17005
17298
|
"x-designable-id": "9ifgulzttsh"
|
|
17006
17299
|
},
|
|
17300
|
+
cols: {
|
|
17301
|
+
title: "\u5360\u5217\u5BBD",
|
|
17302
|
+
"x-decorator": "CnFormItem",
|
|
17303
|
+
"x-component": "NumberPicker",
|
|
17304
|
+
"x-component-props": {
|
|
17305
|
+
step: 1,
|
|
17306
|
+
min: 1,
|
|
17307
|
+
max: 23
|
|
17308
|
+
},
|
|
17309
|
+
"x-decorator-props": {
|
|
17310
|
+
tip: "\u6700\u5C0F\u4E3A 1\uFF0C\u6700\u5927\u4E3A 23\uFF0C\u9ED8\u8BA4 \u4E3A6\uFF0C\u4E3B\u9875\u9762\u5360\u5217\u5BBD \u4F1A\u81EA\u52A8\u51CF\u53BB\u5F53\u524D cols"
|
|
17311
|
+
},
|
|
17312
|
+
name: "cols",
|
|
17313
|
+
default: "",
|
|
17314
|
+
"x-reactions": {
|
|
17315
|
+
dependencies: [
|
|
17316
|
+
{
|
|
17317
|
+
property: "value",
|
|
17318
|
+
type: "any",
|
|
17319
|
+
source: "action.type",
|
|
17320
|
+
name: "type"
|
|
17321
|
+
}
|
|
17322
|
+
],
|
|
17323
|
+
fulfill: {
|
|
17324
|
+
state: {
|
|
17325
|
+
visible: "{{$deps.type === 'onePage'}}"
|
|
17326
|
+
}
|
|
17327
|
+
}
|
|
17328
|
+
},
|
|
17329
|
+
"x-designable-id": "9efgulzttsh"
|
|
17330
|
+
},
|
|
17007
17331
|
selectValue: {
|
|
17008
17332
|
title: "\u6A21\u5757\u5730\u5740",
|
|
17009
17333
|
"x-decorator": "CnFormItem",
|
|
@@ -17032,7 +17356,7 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17032
17356
|
],
|
|
17033
17357
|
fulfill: {
|
|
17034
17358
|
state: {
|
|
17035
|
-
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'custom'}}"
|
|
17359
|
+
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'custom'}}"
|
|
17036
17360
|
}
|
|
17037
17361
|
}
|
|
17038
17362
|
},
|
|
@@ -17326,7 +17650,7 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17326
17650
|
],
|
|
17327
17651
|
fulfill: {
|
|
17328
17652
|
state: {
|
|
17329
|
-
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'url' || $deps.type === 'custom' }}"
|
|
17653
|
+
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage' || $deps.type === 'url' || $deps.type === 'custom' || $deps.type === 'updateOtherColumns' }}"
|
|
17330
17654
|
}
|
|
17331
17655
|
}
|
|
17332
17656
|
}
|
|
@@ -17352,7 +17676,7 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17352
17676
|
],
|
|
17353
17677
|
fulfill: {
|
|
17354
17678
|
state: {
|
|
17355
|
-
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer'}}"
|
|
17679
|
+
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"
|
|
17356
17680
|
}
|
|
17357
17681
|
}
|
|
17358
17682
|
},
|
|
@@ -17430,6 +17754,33 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17430
17754
|
},
|
|
17431
17755
|
"x-designable-id": "jtknf7sgpow"
|
|
17432
17756
|
},
|
|
17757
|
+
parentRefreshWhenClose: {
|
|
17758
|
+
type: "boolean",
|
|
17759
|
+
title: "\u5173\u95ED\u65F6\u5237\u65B0\u7236\u7EA7\u5217\u8868",
|
|
17760
|
+
"x-decorator": "CnFormItem",
|
|
17761
|
+
"x-component": "Switch",
|
|
17762
|
+
"x-validator": [],
|
|
17763
|
+
"x-component-props": {},
|
|
17764
|
+
"x-decorator-props": {
|
|
17765
|
+
tip: "\u4EC5\u5728 \u5173\u95ED onePage \u5206\u680F\u65F6\u3001\u6216 \u901A\u8FC7\u3010\u5173\u95ED\u6309\u94AE X\u3011\u3010\u70B9\u51FBmask\u533A\u57DF\u3011\u3010\u952E\u76D8esc\u6309\u952E\u3011\u5173\u95ED\u5F39\u7A97\u65F6 \u5237\u65B0\u7236\u7EA7\u5217\u8868"
|
|
17766
|
+
},
|
|
17767
|
+
name: "parentRefreshWhenClose",
|
|
17768
|
+
"x-reactions": {
|
|
17769
|
+
dependencies: [
|
|
17770
|
+
{
|
|
17771
|
+
property: "value",
|
|
17772
|
+
type: "string | number",
|
|
17773
|
+
source: "action.type",
|
|
17774
|
+
name: "type"
|
|
17775
|
+
}
|
|
17776
|
+
],
|
|
17777
|
+
fulfill: {
|
|
17778
|
+
state: {
|
|
17779
|
+
visible: "{{$deps.type === 'dialog' || $deps.type === 'drawer' || $deps.type === 'onePage'}}"
|
|
17780
|
+
}
|
|
17781
|
+
}
|
|
17782
|
+
}
|
|
17783
|
+
},
|
|
17433
17784
|
size: {
|
|
17434
17785
|
type: "string",
|
|
17435
17786
|
title: "\u5F39\u7A97\u5C3A\u5BF8",
|
|
@@ -17481,7 +17832,9 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17481
17832
|
"x-decorator": "CnFormItem",
|
|
17482
17833
|
"x-component": "Input",
|
|
17483
17834
|
"x-validator": [],
|
|
17484
|
-
"x-component-props": {
|
|
17835
|
+
"x-component-props": {
|
|
17836
|
+
hasClear: true
|
|
17837
|
+
},
|
|
17485
17838
|
"x-decorator-props": {},
|
|
17486
17839
|
name: "width",
|
|
17487
17840
|
default: "50%",
|
|
@@ -17508,7 +17861,9 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17508
17861
|
"x-decorator": "CnFormItem",
|
|
17509
17862
|
"x-component": "Input",
|
|
17510
17863
|
"x-validator": [],
|
|
17511
|
-
"x-component-props": {
|
|
17864
|
+
"x-component-props": {
|
|
17865
|
+
hasClear: true
|
|
17866
|
+
},
|
|
17512
17867
|
"x-decorator-props": {},
|
|
17513
17868
|
name: "height",
|
|
17514
17869
|
"x-reactions": {
|
|
@@ -17622,6 +17977,58 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17622
17977
|
},
|
|
17623
17978
|
"x-designable-id": "9if44453estsh"
|
|
17624
17979
|
},
|
|
17980
|
+
successMessage: {
|
|
17981
|
+
type: "string",
|
|
17982
|
+
title: "\u81EA\u5B9A\u4E49\u6210\u529F\u6587\u6848",
|
|
17983
|
+
"x-decorator": "CnFormItem",
|
|
17984
|
+
"x-component": "Input",
|
|
17985
|
+
"x-validator": [],
|
|
17986
|
+
"x-component-props": {},
|
|
17987
|
+
"x-decorator-props": {},
|
|
17988
|
+
name: "successMessage",
|
|
17989
|
+
"x-reactions": {
|
|
17990
|
+
dependencies: [
|
|
17991
|
+
{
|
|
17992
|
+
property: "value",
|
|
17993
|
+
type: "string | number",
|
|
17994
|
+
source: "action.type",
|
|
17995
|
+
name: "type"
|
|
17996
|
+
}
|
|
17997
|
+
],
|
|
17998
|
+
fulfill: {
|
|
17999
|
+
state: {
|
|
18000
|
+
visible: "{{$deps.type === 'ajax'}}"
|
|
18001
|
+
}
|
|
18002
|
+
}
|
|
18003
|
+
},
|
|
18004
|
+
"x-designable-id": "9ifgjasdussstsh"
|
|
18005
|
+
},
|
|
18006
|
+
errorMessage: {
|
|
18007
|
+
type: "string",
|
|
18008
|
+
title: "\u81EA\u5B9A\u4E49\u5931\u8D25\u6587\u6848",
|
|
18009
|
+
"x-decorator": "CnFormItem",
|
|
18010
|
+
"x-component": "Input",
|
|
18011
|
+
"x-validator": [],
|
|
18012
|
+
"x-component-props": {},
|
|
18013
|
+
"x-decorator-props": {},
|
|
18014
|
+
name: "errorMessage",
|
|
18015
|
+
"x-reactions": {
|
|
18016
|
+
dependencies: [
|
|
18017
|
+
{
|
|
18018
|
+
property: "value",
|
|
18019
|
+
type: "string | number",
|
|
18020
|
+
source: "action.type",
|
|
18021
|
+
name: "type"
|
|
18022
|
+
}
|
|
18023
|
+
],
|
|
18024
|
+
fulfill: {
|
|
18025
|
+
state: {
|
|
18026
|
+
visible: "{{$deps.type === 'ajax'}}"
|
|
18027
|
+
}
|
|
18028
|
+
}
|
|
18029
|
+
},
|
|
18030
|
+
"x-designable-id": "9ifgja09sdussstsh"
|
|
18031
|
+
},
|
|
17625
18032
|
shouldRender: {
|
|
17626
18033
|
title: "\u6761\u4EF6\u6E32\u67D3",
|
|
17627
18034
|
"x-decorator": "CnFormItem",
|
|
@@ -17689,6 +18096,38 @@ const formilySchema = ({ moduleDataSource = {} }) => {
|
|
|
17689
18096
|
}
|
|
17690
18097
|
},
|
|
17691
18098
|
"x-designable-id": "jtknf7sgpow"
|
|
18099
|
+
},
|
|
18100
|
+
delayLoadingMessageDuration: {
|
|
18101
|
+
type: "string",
|
|
18102
|
+
title: "loading\u63D0\u793A\u6700\u957F\u65F6\u957F",
|
|
18103
|
+
"x-decorator": "CnFormItem",
|
|
18104
|
+
"x-component": "NumberPicker",
|
|
18105
|
+
"x-validator": [],
|
|
18106
|
+
"x-component-props": {
|
|
18107
|
+
innerAfter: "\u6BEB\u79D2",
|
|
18108
|
+
step: 1e3,
|
|
18109
|
+
min: 1e3
|
|
18110
|
+
},
|
|
18111
|
+
"x-decorator-props": {
|
|
18112
|
+
tip: "\u4EC5\u5F53 \u8BE5\u63A5\u53E3 \u54CD\u5E94\u65F6\u95F4 \u8FC7\u957F(\u4F8B\u5982 \u8D85\u8FC710\u79D2)\u65F6\u4F7F\u7528\uFF0C\u5176\u4ED6\u60C5\u51B5\u4E0D\u63A8\u8350\u4F7F\u7528\u3002key\uFF1AdelayLoadingMessageDuration"
|
|
18113
|
+
},
|
|
18114
|
+
name: "delayLoadingMessageDuration",
|
|
18115
|
+
"x-reactions": {
|
|
18116
|
+
dependencies: [
|
|
18117
|
+
{
|
|
18118
|
+
property: "value",
|
|
18119
|
+
type: "string | number",
|
|
18120
|
+
source: "action.type",
|
|
18121
|
+
name: "type"
|
|
18122
|
+
}
|
|
18123
|
+
],
|
|
18124
|
+
fulfill: {
|
|
18125
|
+
state: {
|
|
18126
|
+
visible: "{{$deps.type === 'ajax'}}"
|
|
18127
|
+
}
|
|
18128
|
+
}
|
|
18129
|
+
},
|
|
18130
|
+
"x-designable-id": "9ifgussstsh"
|
|
17692
18131
|
}
|
|
17693
18132
|
}
|
|
17694
18133
|
},
|
|
@@ -17771,6 +18210,10 @@ const dataAdaptor$2 = (data, isValue) => {
|
|
|
17771
18210
|
secondConfirm: secondConfirm2,
|
|
17772
18211
|
secondConfirmTitle,
|
|
17773
18212
|
secondConfirmContent,
|
|
18213
|
+
isDisabled,
|
|
18214
|
+
successMessage,
|
|
18215
|
+
errorMessage,
|
|
18216
|
+
delayLoadingMessageDuration,
|
|
17774
18217
|
...otherAction
|
|
17775
18218
|
} = action || {};
|
|
17776
18219
|
if (type === "ajax") {
|
|
@@ -17782,6 +18225,10 @@ const dataAdaptor$2 = (data, isValue) => {
|
|
|
17782
18225
|
secondConfirm: secondConfirm2,
|
|
17783
18226
|
secondConfirmTitle,
|
|
17784
18227
|
secondConfirmContent,
|
|
18228
|
+
isDisabled,
|
|
18229
|
+
successMessage,
|
|
18230
|
+
errorMessage,
|
|
18231
|
+
delayLoadingMessageDuration,
|
|
17785
18232
|
...dataSource
|
|
17786
18233
|
};
|
|
17787
18234
|
} else {
|
|
@@ -17792,9 +18239,13 @@ const dataAdaptor$2 = (data, isValue) => {
|
|
|
17792
18239
|
...otherAction
|
|
17793
18240
|
},
|
|
17794
18241
|
shouldRender,
|
|
18242
|
+
isDisabled,
|
|
17795
18243
|
secondConfirm: secondConfirm2,
|
|
17796
18244
|
secondConfirmTitle,
|
|
17797
18245
|
secondConfirmContent,
|
|
18246
|
+
successMessage,
|
|
18247
|
+
delayLoadingMessageDuration,
|
|
18248
|
+
errorMessage,
|
|
17798
18249
|
...otherAction
|
|
17799
18250
|
};
|
|
17800
18251
|
}
|
|
@@ -18105,8 +18556,12 @@ var PrimaryKey = {
|
|
|
18105
18556
|
"x-designable-id": "c1f6xiczrp8"
|
|
18106
18557
|
}
|
|
18107
18558
|
};
|
|
18108
|
-
var commonColumnProps = () => {
|
|
18559
|
+
var commonColumnProps = ({ listSchema = [] }) => {
|
|
18109
18560
|
var _a2;
|
|
18561
|
+
const columnsOpts = (listSchema == null ? void 0 : listSchema.map((item) => ({
|
|
18562
|
+
...item,
|
|
18563
|
+
value: item.name || item.label
|
|
18564
|
+
}))) || [];
|
|
18110
18565
|
return {
|
|
18111
18566
|
width: {
|
|
18112
18567
|
type: "number",
|
|
@@ -18284,6 +18739,25 @@ var commonColumnProps = () => {
|
|
|
18284
18739
|
},
|
|
18285
18740
|
name: "tooltip",
|
|
18286
18741
|
"x-designable-id": "sxbti21112zmzk"
|
|
18742
|
+
},
|
|
18743
|
+
parentHeaderColumn: {
|
|
18744
|
+
type: "string",
|
|
18745
|
+
title: "\u8868\u5934\u5206\u7EC4\u7236\u7EA7\u5217",
|
|
18746
|
+
"x-decorator": "CnFormItem",
|
|
18747
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
18748
|
+
"x-validator": [],
|
|
18749
|
+
"x-component-props": {
|
|
18750
|
+
style: {
|
|
18751
|
+
width: "200px"
|
|
18752
|
+
},
|
|
18753
|
+
size: "small"
|
|
18754
|
+
},
|
|
18755
|
+
"x-decorator-props": {
|
|
18756
|
+
tip: "\u8BBE\u7F6E\u7236\u7EA7\u540E\uFF0C\u5F53\u524D\u5217\u8868\u5934\u4F1A\u663E\u793A\u5728\u7236\u7EA7\u5217\u7684\u4E0B\u9762"
|
|
18757
|
+
},
|
|
18758
|
+
enum: columnsOpts,
|
|
18759
|
+
name: "parentHeaderColumn",
|
|
18760
|
+
"x-designable-id": "sxbti11221112zmzk"
|
|
18287
18761
|
}
|
|
18288
18762
|
};
|
|
18289
18763
|
};
|
|
@@ -18302,7 +18776,7 @@ const shouldCopyClipboard = {
|
|
|
18302
18776
|
"x-designable-id": "sxbti22331112zmzk"
|
|
18303
18777
|
}
|
|
18304
18778
|
};
|
|
18305
|
-
var TextSchema = () => {
|
|
18779
|
+
var TextSchema = (params) => {
|
|
18306
18780
|
return {
|
|
18307
18781
|
form: {
|
|
18308
18782
|
labelCol: 6,
|
|
@@ -18311,14 +18785,14 @@ var TextSchema = () => {
|
|
|
18311
18785
|
schema: {
|
|
18312
18786
|
type: "object",
|
|
18313
18787
|
properties: {
|
|
18314
|
-
...commonColumnProps(),
|
|
18788
|
+
...commonColumnProps(params),
|
|
18315
18789
|
...shouldCopyClipboard
|
|
18316
18790
|
},
|
|
18317
18791
|
"x-designable-id": "j744a1rk494"
|
|
18318
18792
|
}
|
|
18319
18793
|
};
|
|
18320
18794
|
};
|
|
18321
|
-
var TplSchema = () => {
|
|
18795
|
+
var TplSchema = (params) => {
|
|
18322
18796
|
return {
|
|
18323
18797
|
form: {
|
|
18324
18798
|
labelCol: 6,
|
|
@@ -18327,7 +18801,7 @@ var TplSchema = () => {
|
|
|
18327
18801
|
schema: {
|
|
18328
18802
|
type: "object",
|
|
18329
18803
|
properties: {
|
|
18330
|
-
...commonColumnProps(),
|
|
18804
|
+
...commonColumnProps(params),
|
|
18331
18805
|
tpl: {
|
|
18332
18806
|
type: "string",
|
|
18333
18807
|
title: "\u6A21\u677F\u8868\u8FBE\u5F0F",
|
|
@@ -18353,7 +18827,7 @@ var TplSchema = () => {
|
|
|
18353
18827
|
}
|
|
18354
18828
|
};
|
|
18355
18829
|
};
|
|
18356
|
-
var TagSchema = () => {
|
|
18830
|
+
var TagSchema = (params) => {
|
|
18357
18831
|
return {
|
|
18358
18832
|
form: {
|
|
18359
18833
|
labelCol: 4,
|
|
@@ -18362,7 +18836,7 @@ var TagSchema = () => {
|
|
|
18362
18836
|
schema: {
|
|
18363
18837
|
type: "object",
|
|
18364
18838
|
properties: {
|
|
18365
|
-
...commonColumnProps(),
|
|
18839
|
+
...commonColumnProps(params),
|
|
18366
18840
|
dataSource: {
|
|
18367
18841
|
type: "array",
|
|
18368
18842
|
title: "\u6807\u7B7E\u9879",
|
|
@@ -18566,7 +19040,7 @@ var TagSchema = () => {
|
|
|
18566
19040
|
}
|
|
18567
19041
|
};
|
|
18568
19042
|
};
|
|
18569
|
-
var DateSchema = () => {
|
|
19043
|
+
var DateSchema = (params) => {
|
|
18570
19044
|
return {
|
|
18571
19045
|
form: {
|
|
18572
19046
|
labelCol: 6,
|
|
@@ -18575,7 +19049,7 @@ var DateSchema = () => {
|
|
|
18575
19049
|
schema: {
|
|
18576
19050
|
type: "object",
|
|
18577
19051
|
properties: {
|
|
18578
|
-
...commonColumnProps(),
|
|
19052
|
+
...commonColumnProps(params),
|
|
18579
19053
|
format: {
|
|
18580
19054
|
type: "string",
|
|
18581
19055
|
title: "\u65E5\u671F\u663E\u793A\u683C\u5F0F",
|
|
@@ -18606,6 +19080,18 @@ var DateSchema = () => {
|
|
|
18606
19080
|
{
|
|
18607
19081
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
18608
19082
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
19083
|
+
},
|
|
19084
|
+
{
|
|
19085
|
+
label: "DD/MM/YYYY",
|
|
19086
|
+
value: "DD/MM/YYYY"
|
|
19087
|
+
},
|
|
19088
|
+
{
|
|
19089
|
+
label: "DD/MM/YYYY HH:mm",
|
|
19090
|
+
value: "DD/MM/YYYY HH:mm"
|
|
19091
|
+
},
|
|
19092
|
+
{
|
|
19093
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
19094
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
18609
19095
|
}
|
|
18610
19096
|
],
|
|
18611
19097
|
"x-designable-id": "sxb8qjazmzk",
|
|
@@ -18617,7 +19103,8 @@ var DateSchema = () => {
|
|
|
18617
19103
|
}
|
|
18618
19104
|
};
|
|
18619
19105
|
};
|
|
18620
|
-
var CustomSchema = (
|
|
19106
|
+
var CustomSchema = (params) => {
|
|
19107
|
+
const { moduleDataSource = {} } = params || {};
|
|
18621
19108
|
return {
|
|
18622
19109
|
form: {
|
|
18623
19110
|
labelCol: 6,
|
|
@@ -18626,7 +19113,7 @@ var CustomSchema = ({ moduleDataSource = {} }) => {
|
|
|
18626
19113
|
schema: {
|
|
18627
19114
|
type: "object",
|
|
18628
19115
|
properties: {
|
|
18629
|
-
...commonColumnProps(),
|
|
19116
|
+
...commonColumnProps(params),
|
|
18630
19117
|
customType: {
|
|
18631
19118
|
title: "\u81EA\u5B9A\u4E49\u7C7B\u578B",
|
|
18632
19119
|
"x-decorator": "CnFormItem",
|
|
@@ -18689,7 +19176,7 @@ var CustomSchema = ({ moduleDataSource = {} }) => {
|
|
|
18689
19176
|
}
|
|
18690
19177
|
};
|
|
18691
19178
|
};
|
|
18692
|
-
var EnumSchema = () => {
|
|
19179
|
+
var EnumSchema = (params) => {
|
|
18693
19180
|
return {
|
|
18694
19181
|
form: {
|
|
18695
19182
|
labelCol: 4,
|
|
@@ -18698,7 +19185,7 @@ var EnumSchema = () => {
|
|
|
18698
19185
|
schema: {
|
|
18699
19186
|
type: "object",
|
|
18700
19187
|
properties: {
|
|
18701
|
-
...commonColumnProps(),
|
|
19188
|
+
...commonColumnProps(params),
|
|
18702
19189
|
dataSource: {
|
|
18703
19190
|
type: "array",
|
|
18704
19191
|
title: "\u679A\u4E3E\u9879",
|
|
@@ -18815,7 +19302,7 @@ var EnumSchema = () => {
|
|
|
18815
19302
|
}
|
|
18816
19303
|
};
|
|
18817
19304
|
};
|
|
18818
|
-
var NumSchema = () => {
|
|
19305
|
+
var NumSchema = (params) => {
|
|
18819
19306
|
return {
|
|
18820
19307
|
form: {
|
|
18821
19308
|
labelCol: 6,
|
|
@@ -18824,7 +19311,7 @@ var NumSchema = () => {
|
|
|
18824
19311
|
schema: {
|
|
18825
19312
|
type: "object",
|
|
18826
19313
|
properties: {
|
|
18827
|
-
...commonColumnProps(),
|
|
19314
|
+
...commonColumnProps(params),
|
|
18828
19315
|
format: {
|
|
18829
19316
|
title: "\u6570\u503C\u683C\u5F0F",
|
|
18830
19317
|
"x-decorator": "CnFormItem",
|
|
@@ -18863,7 +19350,7 @@ var NumSchema = () => {
|
|
|
18863
19350
|
}
|
|
18864
19351
|
};
|
|
18865
19352
|
};
|
|
18866
|
-
var ClipboardSchema = () => {
|
|
19353
|
+
var ClipboardSchema = (params) => {
|
|
18867
19354
|
return {
|
|
18868
19355
|
form: {
|
|
18869
19356
|
labelCol: 6,
|
|
@@ -18872,13 +19359,13 @@ var ClipboardSchema = () => {
|
|
|
18872
19359
|
schema: {
|
|
18873
19360
|
type: "object",
|
|
18874
19361
|
properties: {
|
|
18875
|
-
...commonColumnProps()
|
|
19362
|
+
...commonColumnProps(params)
|
|
18876
19363
|
},
|
|
18877
19364
|
"x-designable-id": "j741121rk494"
|
|
18878
19365
|
}
|
|
18879
19366
|
};
|
|
18880
19367
|
};
|
|
18881
|
-
var ListSchema = () => {
|
|
19368
|
+
var ListSchema = (params) => {
|
|
18882
19369
|
return {
|
|
18883
19370
|
form: {
|
|
18884
19371
|
labelCol: 6,
|
|
@@ -18887,7 +19374,7 @@ var ListSchema = () => {
|
|
|
18887
19374
|
schema: {
|
|
18888
19375
|
type: "object",
|
|
18889
19376
|
properties: {
|
|
18890
|
-
...commonColumnProps(),
|
|
19377
|
+
...commonColumnProps(params),
|
|
18891
19378
|
showNum: {
|
|
18892
19379
|
type: "number",
|
|
18893
19380
|
title: "\u663E\u793A\u5728\u8868\u683C\u5217\u7684\u6761\u6570",
|
|
@@ -18948,7 +19435,7 @@ var ListSchema = () => {
|
|
|
18948
19435
|
}
|
|
18949
19436
|
};
|
|
18950
19437
|
};
|
|
18951
|
-
var TooltipText = () => {
|
|
19438
|
+
var TooltipText = (params) => {
|
|
18952
19439
|
return {
|
|
18953
19440
|
form: {
|
|
18954
19441
|
labelCol: 6,
|
|
@@ -18957,7 +19444,7 @@ var TooltipText = () => {
|
|
|
18957
19444
|
schema: {
|
|
18958
19445
|
type: "object",
|
|
18959
19446
|
properties: {
|
|
18960
|
-
...commonColumnProps(),
|
|
19447
|
+
...commonColumnProps(params),
|
|
18961
19448
|
align: {
|
|
18962
19449
|
title: "\u6D6E\u5C42\u65B9\u5411",
|
|
18963
19450
|
"x-decorator": "CnFormItem",
|
|
@@ -18998,7 +19485,7 @@ var TooltipText = () => {
|
|
|
18998
19485
|
}
|
|
18999
19486
|
};
|
|
19000
19487
|
};
|
|
19001
|
-
var Images = () => {
|
|
19488
|
+
var Images = (params) => {
|
|
19002
19489
|
return {
|
|
19003
19490
|
form: {
|
|
19004
19491
|
labelCol: 6,
|
|
@@ -19007,7 +19494,7 @@ var Images = () => {
|
|
|
19007
19494
|
schema: {
|
|
19008
19495
|
type: "object",
|
|
19009
19496
|
properties: {
|
|
19010
|
-
...commonColumnProps(),
|
|
19497
|
+
...commonColumnProps(params),
|
|
19011
19498
|
isFile: {
|
|
19012
19499
|
type: "boolean",
|
|
19013
19500
|
title: "\u662F\u5426\u662F\u9644\u4EF6",
|
|
@@ -19105,7 +19592,7 @@ var Images = () => {
|
|
|
19105
19592
|
}
|
|
19106
19593
|
};
|
|
19107
19594
|
};
|
|
19108
|
-
var CnTag = () => {
|
|
19595
|
+
var CnTag = (params) => {
|
|
19109
19596
|
return {
|
|
19110
19597
|
form: {
|
|
19111
19598
|
labelCol: 6,
|
|
@@ -19114,13 +19601,13 @@ var CnTag = () => {
|
|
|
19114
19601
|
schema: {
|
|
19115
19602
|
type: "object",
|
|
19116
19603
|
properties: {
|
|
19117
|
-
...commonColumnProps()
|
|
19604
|
+
...commonColumnProps(params)
|
|
19118
19605
|
},
|
|
19119
19606
|
"x-designable-id": "kv084cg1qw7"
|
|
19120
19607
|
}
|
|
19121
19608
|
};
|
|
19122
19609
|
};
|
|
19123
|
-
var CnNumber = () => {
|
|
19610
|
+
var CnNumber = (params) => {
|
|
19124
19611
|
return {
|
|
19125
19612
|
form: {
|
|
19126
19613
|
labelCol: 6,
|
|
@@ -19129,13 +19616,13 @@ var CnNumber = () => {
|
|
|
19129
19616
|
schema: {
|
|
19130
19617
|
type: "object",
|
|
19131
19618
|
properties: {
|
|
19132
|
-
...commonColumnProps()
|
|
19619
|
+
...commonColumnProps(params)
|
|
19133
19620
|
},
|
|
19134
19621
|
"x-designable-id": "kv084cg1qw7"
|
|
19135
19622
|
}
|
|
19136
19623
|
};
|
|
19137
19624
|
};
|
|
19138
|
-
var CnBank = () => {
|
|
19625
|
+
var CnBank = (params) => {
|
|
19139
19626
|
return {
|
|
19140
19627
|
form: {
|
|
19141
19628
|
labelCol: 6,
|
|
@@ -19144,13 +19631,13 @@ var CnBank = () => {
|
|
|
19144
19631
|
schema: {
|
|
19145
19632
|
type: "object",
|
|
19146
19633
|
properties: {
|
|
19147
|
-
...commonColumnProps()
|
|
19634
|
+
...commonColumnProps(params)
|
|
19148
19635
|
},
|
|
19149
19636
|
"x-designable-id": "kv084cg1qw7"
|
|
19150
19637
|
}
|
|
19151
19638
|
};
|
|
19152
19639
|
};
|
|
19153
|
-
var CnImageText = () => {
|
|
19640
|
+
var CnImageText = (params) => {
|
|
19154
19641
|
return {
|
|
19155
19642
|
form: {
|
|
19156
19643
|
labelCol: 6,
|
|
@@ -19159,13 +19646,13 @@ var CnImageText = () => {
|
|
|
19159
19646
|
schema: {
|
|
19160
19647
|
type: "object",
|
|
19161
19648
|
properties: {
|
|
19162
|
-
...commonColumnProps()
|
|
19649
|
+
...commonColumnProps(params)
|
|
19163
19650
|
},
|
|
19164
19651
|
"x-designable-id": "kv084cg1qw7"
|
|
19165
19652
|
}
|
|
19166
19653
|
};
|
|
19167
19654
|
};
|
|
19168
|
-
var CnProgress = () => {
|
|
19655
|
+
var CnProgress = (params) => {
|
|
19169
19656
|
return {
|
|
19170
19657
|
form: {
|
|
19171
19658
|
labelCol: 6,
|
|
@@ -19174,13 +19661,13 @@ var CnProgress = () => {
|
|
|
19174
19661
|
schema: {
|
|
19175
19662
|
type: "object",
|
|
19176
19663
|
properties: {
|
|
19177
|
-
...commonColumnProps()
|
|
19664
|
+
...commonColumnProps(params)
|
|
19178
19665
|
},
|
|
19179
19666
|
"x-designable-id": "kv084cg1qw7"
|
|
19180
19667
|
}
|
|
19181
19668
|
};
|
|
19182
19669
|
};
|
|
19183
|
-
var cnGraphicsPercent = () => {
|
|
19670
|
+
var cnGraphicsPercent = (params) => {
|
|
19184
19671
|
return {
|
|
19185
19672
|
form: {
|
|
19186
19673
|
labelCol: 6,
|
|
@@ -19189,91 +19676,270 @@ var cnGraphicsPercent = () => {
|
|
|
19189
19676
|
schema: {
|
|
19190
19677
|
type: "object",
|
|
19191
19678
|
properties: {
|
|
19192
|
-
...commonColumnProps()
|
|
19679
|
+
...commonColumnProps(params)
|
|
19193
19680
|
},
|
|
19194
19681
|
"x-designable-id": "kv084cg3331qw7"
|
|
19195
19682
|
}
|
|
19196
19683
|
};
|
|
19197
19684
|
};
|
|
19198
|
-
var
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
|
|
19206
|
-
|
|
19207
|
-
|
|
19208
|
-
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19213
|
-
|
|
19214
|
-
|
|
19215
|
-
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
|
|
19221
|
-
|
|
19222
|
-
schema: {
|
|
19223
|
-
type: "object",
|
|
19224
|
-
properties: {
|
|
19225
|
-
paging: {
|
|
19226
|
-
type: "boolean",
|
|
19227
|
-
title: "\u5F00\u542F\u5206\u9875",
|
|
19228
|
-
"x-decorator": "CnFormItem",
|
|
19229
|
-
"x-component": "Switch",
|
|
19230
|
-
"x-validator": [],
|
|
19231
|
-
"x-component-props": {},
|
|
19232
|
-
"x-decorator-props": {},
|
|
19233
|
-
name: "paging",
|
|
19234
|
-
default: true,
|
|
19235
|
-
"x-designable-id": "v80d32s7cnp"
|
|
19685
|
+
var formCommon = () => {
|
|
19686
|
+
var _a2;
|
|
19687
|
+
return {
|
|
19688
|
+
hasClear: {
|
|
19689
|
+
type: "boolean",
|
|
19690
|
+
title: "\u6709\u6E05\u9664\u6309\u94AE",
|
|
19691
|
+
"x-decorator": "CnFormItem",
|
|
19692
|
+
"x-component": "Switch",
|
|
19693
|
+
name: "hasClear",
|
|
19694
|
+
"x-validator": [],
|
|
19695
|
+
default: true,
|
|
19696
|
+
"x-component-props": {},
|
|
19697
|
+
"x-decorator-props": {},
|
|
19698
|
+
"x-designable-id": "r52k3272222"
|
|
19699
|
+
},
|
|
19700
|
+
tooltip: {
|
|
19701
|
+
type: "string",
|
|
19702
|
+
title: "\u63D0\u793A",
|
|
19703
|
+
"x-decorator": "CnFormItem",
|
|
19704
|
+
"x-component": "Input",
|
|
19705
|
+
"x-validator": [],
|
|
19706
|
+
"x-component-props": {},
|
|
19707
|
+
"x-decorator-props": {
|
|
19708
|
+
tip: "\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"
|
|
19236
19709
|
},
|
|
19237
|
-
|
|
19238
|
-
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
"x-designable-id": "v80d22232s7cnp"
|
|
19710
|
+
name: "tooltip",
|
|
19711
|
+
"x-designable-id": "sxbtip2222mzk"
|
|
19712
|
+
},
|
|
19713
|
+
serverI18nKey: {
|
|
19714
|
+
type: "string",
|
|
19715
|
+
title: "\u56FD\u9645\u5316KEY",
|
|
19716
|
+
"x-decorator": "CnFormItem",
|
|
19717
|
+
"x-component": "Input",
|
|
19718
|
+
"x-validator": [],
|
|
19719
|
+
"x-component-props": {},
|
|
19720
|
+
"x-decorator-props": {
|
|
19721
|
+
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"
|
|
19250
19722
|
},
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19255
|
-
|
|
19256
|
-
|
|
19257
|
-
|
|
19258
|
-
|
|
19259
|
-
|
|
19260
|
-
|
|
19261
|
-
|
|
19262
|
-
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19266
|
-
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19271
|
-
|
|
19272
|
-
|
|
19273
|
-
|
|
19274
|
-
|
|
19275
|
-
|
|
19276
|
-
|
|
19723
|
+
name: "serverI18nKey",
|
|
19724
|
+
"x-designable-id": "sxbtip22223122mzk"
|
|
19725
|
+
},
|
|
19726
|
+
serverDataHandleType: {
|
|
19727
|
+
type: "string",
|
|
19728
|
+
title: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u7C7B\u578B",
|
|
19729
|
+
"x-decorator": "CnFormItem",
|
|
19730
|
+
"x-component": "Select",
|
|
19731
|
+
"x-validator": [],
|
|
19732
|
+
"x-component-props": {
|
|
19733
|
+
useDetailValue: true,
|
|
19734
|
+
hasClear: true
|
|
19735
|
+
},
|
|
19736
|
+
"x-decorator-props": {
|
|
19737
|
+
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"
|
|
19738
|
+
},
|
|
19739
|
+
name: "serverDataHandleType",
|
|
19740
|
+
enum: ((_a2 = window == null ? void 0 : window.__MDD_ModuleDataSource) == null ? void 0 : _a2.l4DataHandleOptions) || [{ label: "JSON\u5904\u7406", value: "json" }],
|
|
19741
|
+
"x-designable-id": "sxbtip2222311236622mzk"
|
|
19742
|
+
},
|
|
19743
|
+
serverDataHandleParams: {
|
|
19744
|
+
type: "string",
|
|
19745
|
+
title: "\u670D\u52A1\u7AEF\u6570\u636E\u5904\u7406\u53C2\u6570",
|
|
19746
|
+
"x-decorator": "CnFormItem",
|
|
19747
|
+
"x-component": "Input",
|
|
19748
|
+
"x-validator": [],
|
|
19749
|
+
"x-component-props": {},
|
|
19750
|
+
"x-decorator-props": {
|
|
19751
|
+
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"
|
|
19752
|
+
},
|
|
19753
|
+
name: "serverDataHandleParams",
|
|
19754
|
+
"x-designable-id": "sxasd223122mzk",
|
|
19755
|
+
"x-reactions": {
|
|
19756
|
+
dependencies: [".serverDataHandleType"],
|
|
19757
|
+
when: "{{$deps[0]}}",
|
|
19758
|
+
fulfill: {
|
|
19759
|
+
state: {
|
|
19760
|
+
value: '{{$deps[0]?.params || ""}}'
|
|
19761
|
+
}
|
|
19762
|
+
}
|
|
19763
|
+
}
|
|
19764
|
+
}
|
|
19765
|
+
};
|
|
19766
|
+
};
|
|
19767
|
+
var messageSchema = () => {
|
|
19768
|
+
return {
|
|
19769
|
+
form: {
|
|
19770
|
+
labelCol: 6,
|
|
19771
|
+
wrapperCol: 16
|
|
19772
|
+
},
|
|
19773
|
+
schema: {
|
|
19774
|
+
type: "object",
|
|
19775
|
+
properties: {
|
|
19776
|
+
messageType: {
|
|
19777
|
+
type: "string",
|
|
19778
|
+
title: "\u7C7B\u578B",
|
|
19779
|
+
"x-decorator": "CnFormItem",
|
|
19780
|
+
"x-component": "Select",
|
|
19781
|
+
"x-validator": [],
|
|
19782
|
+
"x-component-props": {},
|
|
19783
|
+
"x-decorator-props": {},
|
|
19784
|
+
default: "success",
|
|
19785
|
+
name: "messageType",
|
|
19786
|
+
enum: [
|
|
19787
|
+
{ label: "loading", value: "loading" },
|
|
19788
|
+
{ label: "warning", value: "warning" },
|
|
19789
|
+
{ label: "error", value: "error" },
|
|
19790
|
+
{ label: "success", value: "success" },
|
|
19791
|
+
{ label: "help", value: "help" },
|
|
19792
|
+
{ label: "notice", value: "notice" }
|
|
19793
|
+
]
|
|
19794
|
+
},
|
|
19795
|
+
title: {
|
|
19796
|
+
type: "string",
|
|
19797
|
+
title: "\u6807\u9898",
|
|
19798
|
+
"x-decorator": "CnFormItem",
|
|
19799
|
+
"x-component": "Input",
|
|
19800
|
+
"x-validator": [],
|
|
19801
|
+
"x-component-props": {},
|
|
19802
|
+
"x-decorator-props": {
|
|
19803
|
+
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"
|
|
19804
|
+
},
|
|
19805
|
+
default: "",
|
|
19806
|
+
name: "title"
|
|
19807
|
+
},
|
|
19808
|
+
messageChildren: {
|
|
19809
|
+
type: "string",
|
|
19810
|
+
title: "\u5185\u5BB9",
|
|
19811
|
+
"x-decorator": "CnFormItem",
|
|
19812
|
+
"x-component": "Input",
|
|
19813
|
+
"x-validator": [],
|
|
19814
|
+
"x-component-props": {},
|
|
19815
|
+
"x-decorator-props": {
|
|
19816
|
+
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"
|
|
19817
|
+
},
|
|
19818
|
+
default: "",
|
|
19819
|
+
name: "messageChildren"
|
|
19820
|
+
},
|
|
19821
|
+
iconType: {
|
|
19822
|
+
type: "string",
|
|
19823
|
+
title: "\u56FE\u6807\u7C7B\u578B",
|
|
19824
|
+
"x-decorator": "CnFormItem",
|
|
19825
|
+
"x-component": "Input",
|
|
19826
|
+
"x-validator": [],
|
|
19827
|
+
"x-component-props": {},
|
|
19828
|
+
"x-decorator-props": {
|
|
19829
|
+
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"
|
|
19830
|
+
},
|
|
19831
|
+
default: "",
|
|
19832
|
+
name: "iconType"
|
|
19833
|
+
}
|
|
19834
|
+
},
|
|
19835
|
+
"x-designable-id": "loa7444w8t3"
|
|
19836
|
+
}
|
|
19837
|
+
};
|
|
19838
|
+
};
|
|
19839
|
+
var Columns = {
|
|
19840
|
+
text: TextSchema,
|
|
19841
|
+
tpl: TplSchema,
|
|
19842
|
+
tag: TagSchema,
|
|
19843
|
+
"single-enum": EnumSchema,
|
|
19844
|
+
date: DateSchema,
|
|
19845
|
+
custom: CustomSchema,
|
|
19846
|
+
num: NumSchema,
|
|
19847
|
+
clipboard: ClipboardSchema,
|
|
19848
|
+
list: ListSchema,
|
|
19849
|
+
"tooltip-text": TooltipText,
|
|
19850
|
+
images: Images,
|
|
19851
|
+
message: (...args) => {
|
|
19852
|
+
const _schema = messageSchema(...args);
|
|
19853
|
+
_schema.schema.properties = {
|
|
19854
|
+
colSpan: {
|
|
19855
|
+
type: "number",
|
|
19856
|
+
title: "\u8DE8\u5217\u8BBE\u7F6E",
|
|
19857
|
+
"x-decorator": "CnFormItem",
|
|
19858
|
+
"x-component": "CnNumberPicker",
|
|
19859
|
+
"x-validator": [],
|
|
19860
|
+
"x-component-props": {
|
|
19861
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
19862
|
+
style: {
|
|
19863
|
+
width: "200px"
|
|
19864
|
+
}
|
|
19865
|
+
},
|
|
19866
|
+
"x-decorator-props": {
|
|
19867
|
+
tip: "\u5355\u4E2A\u8868\u5355\u9879\u4E00\u884C\u8DE8\u51E0\u5217\uFF0C\u9ED8\u8BA4\u4E09\u5217"
|
|
19868
|
+
},
|
|
19869
|
+
default: 3,
|
|
19870
|
+
"x-designable-id": "r52k327v2zu"
|
|
19871
|
+
},
|
|
19872
|
+
..._schema.schema.properties
|
|
19873
|
+
};
|
|
19874
|
+
return _schema;
|
|
19875
|
+
},
|
|
19876
|
+
"cn-tag": CnTag,
|
|
19877
|
+
"cn-number": CnNumber,
|
|
19878
|
+
"cn-bank": CnBank,
|
|
19879
|
+
"cn-image-text": CnImageText,
|
|
19880
|
+
"cn-progress": CnProgress,
|
|
19881
|
+
"cn-graphics-percent": cnGraphicsPercent
|
|
19882
|
+
};
|
|
19883
|
+
var TablePagination = {
|
|
19884
|
+
form: {
|
|
19885
|
+
labelCol: 6,
|
|
19886
|
+
wrapperCol: 16
|
|
19887
|
+
},
|
|
19888
|
+
schema: {
|
|
19889
|
+
type: "object",
|
|
19890
|
+
properties: {
|
|
19891
|
+
paging: {
|
|
19892
|
+
type: "boolean",
|
|
19893
|
+
title: "\u5F00\u542F\u5206\u9875",
|
|
19894
|
+
"x-decorator": "CnFormItem",
|
|
19895
|
+
"x-component": "Switch",
|
|
19896
|
+
"x-validator": [],
|
|
19897
|
+
"x-component-props": {},
|
|
19898
|
+
"x-decorator-props": {},
|
|
19899
|
+
name: "paging",
|
|
19900
|
+
default: true,
|
|
19901
|
+
"x-designable-id": "v80d32s7cnp"
|
|
19902
|
+
},
|
|
19903
|
+
disableGlobalConfig: {
|
|
19904
|
+
type: "boolean",
|
|
19905
|
+
title: "\u7981\u7528\u5168\u5C40\u914D\u7F6E",
|
|
19906
|
+
"x-decorator": "CnFormItem",
|
|
19907
|
+
"x-component": "Switch",
|
|
19908
|
+
"x-validator": [],
|
|
19909
|
+
"x-component-props": {},
|
|
19910
|
+
"x-decorator-props": {
|
|
19911
|
+
tip: "\u5F00\u542F\u7981\u7528\u5168\u5C40\u914D\u7F6E\u540E\uFF0C\u624D\u80FD\u8BBE\u7F6E\u9ED8\u8BA4\u6BCF\u9875\u6761\u6570"
|
|
19912
|
+
},
|
|
19913
|
+
name: "disableGlobalConfig",
|
|
19914
|
+
default: false,
|
|
19915
|
+
"x-designable-id": "v80d22232s7cnp"
|
|
19916
|
+
},
|
|
19917
|
+
defaultPageSize: {
|
|
19918
|
+
type: "number",
|
|
19919
|
+
title: "\u6BCF\u9875\u6570\u91CF",
|
|
19920
|
+
"x-decorator": "CnFormItem",
|
|
19921
|
+
"x-component": "CnNumberPicker",
|
|
19922
|
+
"x-validator": [],
|
|
19923
|
+
"x-component-props": {
|
|
19924
|
+
placeholder: "\u8BF7\u8F93\u5165\u6BCF\u9875\u6570\u91CF"
|
|
19925
|
+
},
|
|
19926
|
+
"x-decorator-props": {
|
|
19927
|
+
tip: ""
|
|
19928
|
+
},
|
|
19929
|
+
default: "20",
|
|
19930
|
+
"x-designable-id": "ecc63shkjtk",
|
|
19931
|
+
description: "",
|
|
19932
|
+
name: "defaultPageSize",
|
|
19933
|
+
"x-reactions": {
|
|
19934
|
+
dependencies: [
|
|
19935
|
+
{
|
|
19936
|
+
property: "value",
|
|
19937
|
+
type: "any",
|
|
19938
|
+
source: "paging",
|
|
19939
|
+
name: "paging"
|
|
19940
|
+
},
|
|
19941
|
+
{
|
|
19942
|
+
property: "value",
|
|
19277
19943
|
type: "any",
|
|
19278
19944
|
source: "disableGlobalConfig",
|
|
19279
19945
|
name: "disableGlobalConfig"
|
|
@@ -19319,88 +19985,6 @@ var TablePagination = {
|
|
|
19319
19985
|
"x-designable-id": "c1f6xiczrp8"
|
|
19320
19986
|
}
|
|
19321
19987
|
};
|
|
19322
|
-
var formCommon = () => {
|
|
19323
|
-
var _a2;
|
|
19324
|
-
return {
|
|
19325
|
-
hasClear: {
|
|
19326
|
-
type: "boolean",
|
|
19327
|
-
title: "\u6709\u6E05\u9664\u6309\u94AE",
|
|
19328
|
-
"x-decorator": "CnFormItem",
|
|
19329
|
-
"x-component": "Switch",
|
|
19330
|
-
name: "hasClear",
|
|
19331
|
-
"x-validator": [],
|
|
19332
|
-
default: true,
|
|
19333
|
-
"x-component-props": {},
|
|
19334
|
-
"x-decorator-props": {},
|
|
19335
|
-
"x-designable-id": "r52k3272222"
|
|
19336
|
-
},
|
|
19337
|
-
tooltip: {
|
|
19338
|
-
type: "string",
|
|
19339
|
-
title: "\u63D0\u793A",
|
|
19340
|
-
"x-decorator": "CnFormItem",
|
|
19341
|
-
"x-component": "Input",
|
|
19342
|
-
"x-validator": [],
|
|
19343
|
-
"x-component-props": {},
|
|
19344
|
-
"x-decorator-props": {
|
|
19345
|
-
tip: "\u8868\u5355\u9879\u63D0\u793A\u4FE1\u606F"
|
|
19346
|
-
},
|
|
19347
|
-
name: "tooltip",
|
|
19348
|
-
"x-designable-id": "sxbtip2222mzk"
|
|
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
19988
|
const getEditCommonColumnProps = () => {
|
|
19405
19989
|
return {
|
|
19406
19990
|
width: commonColumnProps.width,
|
|
@@ -21983,6 +22567,18 @@ var DatePicker2Schema = () => {
|
|
|
21983
22567
|
{
|
|
21984
22568
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
21985
22569
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
22570
|
+
},
|
|
22571
|
+
{
|
|
22572
|
+
label: "DD/MM/YYYY",
|
|
22573
|
+
value: "DD/MM/YYYY"
|
|
22574
|
+
},
|
|
22575
|
+
{
|
|
22576
|
+
label: "DD/MM/YYYY HH:mm",
|
|
22577
|
+
value: "DD/MM/YYYY HH:mm"
|
|
22578
|
+
},
|
|
22579
|
+
{
|
|
22580
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
22581
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
21986
22582
|
}
|
|
21987
22583
|
],
|
|
21988
22584
|
"x-designable-id": "sxb8qjzzmzk"
|
|
@@ -22035,6 +22631,18 @@ var DatePicker2Schema = () => {
|
|
|
22035
22631
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
22036
22632
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
22037
22633
|
},
|
|
22634
|
+
{
|
|
22635
|
+
label: "DD/MM/YYYY",
|
|
22636
|
+
value: "DD/MM/YYYY"
|
|
22637
|
+
},
|
|
22638
|
+
{
|
|
22639
|
+
label: "DD/MM/YYYY HH:mm",
|
|
22640
|
+
value: "DD/MM/YYYY HH:mm"
|
|
22641
|
+
},
|
|
22642
|
+
{
|
|
22643
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
22644
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
22645
|
+
},
|
|
22038
22646
|
{
|
|
22039
22647
|
label: "\u65F6\u95F4\u6233",
|
|
22040
22648
|
value: "timestamp"
|
|
@@ -22577,6 +23185,18 @@ var DateRangePickerSchema = () => {
|
|
|
22577
23185
|
{
|
|
22578
23186
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
22579
23187
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
23188
|
+
},
|
|
23189
|
+
{
|
|
23190
|
+
label: "DD/MM/YYYY",
|
|
23191
|
+
value: "DD/MM/YYYY"
|
|
23192
|
+
},
|
|
23193
|
+
{
|
|
23194
|
+
label: "DD/MM/YYYY HH:mm",
|
|
23195
|
+
value: "DD/MM/YYYY HH:mm"
|
|
23196
|
+
},
|
|
23197
|
+
{
|
|
23198
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
23199
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
22580
23200
|
}
|
|
22581
23201
|
],
|
|
22582
23202
|
"x-designable-id": "sxb8qjzzmzk",
|
|
@@ -22632,6 +23252,18 @@ var DateRangePickerSchema = () => {
|
|
|
22632
23252
|
label: "YYYY-MM-DD HH:mm:ss",
|
|
22633
23253
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
22634
23254
|
},
|
|
23255
|
+
{
|
|
23256
|
+
label: "DD/MM/YYYY",
|
|
23257
|
+
value: "DD/MM/YYYY"
|
|
23258
|
+
},
|
|
23259
|
+
{
|
|
23260
|
+
label: "DD/MM/YYYY HH:mm",
|
|
23261
|
+
value: "DD/MM/YYYY HH:mm"
|
|
23262
|
+
},
|
|
23263
|
+
{
|
|
23264
|
+
label: "DD/MM/YYYY HH:mm:ss",
|
|
23265
|
+
value: "DD/MM/YYYY HH:mm:ss"
|
|
23266
|
+
},
|
|
22635
23267
|
{
|
|
22636
23268
|
label: "\u65F6\u95F4\u6233",
|
|
22637
23269
|
value: "timestamp"
|
|
@@ -23210,7 +23842,274 @@ var AddressSelectSchema = () => {
|
|
|
23210
23842
|
}
|
|
23211
23843
|
};
|
|
23212
23844
|
};
|
|
23213
|
-
var ImportComponentSchema = ({ moduleDataSource = {} }) => {
|
|
23845
|
+
var ImportComponentSchema = ({ moduleDataSource = {} }) => {
|
|
23846
|
+
return {
|
|
23847
|
+
form: {
|
|
23848
|
+
labelCol: 6,
|
|
23849
|
+
wrapperCol: 16
|
|
23850
|
+
},
|
|
23851
|
+
schema: {
|
|
23852
|
+
type: "object",
|
|
23853
|
+
properties: {
|
|
23854
|
+
...formCommon(),
|
|
23855
|
+
defaultValue: {
|
|
23856
|
+
type: "string",
|
|
23857
|
+
title: "\u9ED8\u8BA4\u503C",
|
|
23858
|
+
"x-decorator": "CnFormItem",
|
|
23859
|
+
"x-component": "FormilyDynamicValueBase",
|
|
23860
|
+
"x-validator": [],
|
|
23861
|
+
"x-component-props": {
|
|
23862
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
23863
|
+
},
|
|
23864
|
+
"x-decorator-props": {},
|
|
23865
|
+
name: "defaultValue",
|
|
23866
|
+
"x-designable-id": "hso2223bll3"
|
|
23867
|
+
},
|
|
23868
|
+
placeholder: {
|
|
23869
|
+
type: "string",
|
|
23870
|
+
title: "\u8F93\u5165\u63D0\u793A",
|
|
23871
|
+
"x-decorator": "CnFormItem",
|
|
23872
|
+
"x-component": "Input",
|
|
23873
|
+
"x-validator": [],
|
|
23874
|
+
"x-component-props": {
|
|
23875
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
23876
|
+
},
|
|
23877
|
+
"x-decorator-props": {},
|
|
23878
|
+
default: "\u8BF7\u8F93\u5165",
|
|
23879
|
+
name: "placeholder",
|
|
23880
|
+
"x-designable-id": "f8sf666"
|
|
23881
|
+
},
|
|
23882
|
+
required: {
|
|
23883
|
+
type: "boolean",
|
|
23884
|
+
title: "\u662F\u5426\u5FC5\u586B",
|
|
23885
|
+
"x-decorator": "CnFormItem",
|
|
23886
|
+
"x-component": "Switch",
|
|
23887
|
+
"x-validator": [],
|
|
23888
|
+
"x-component-props": {},
|
|
23889
|
+
"x-decorator-props": {},
|
|
23890
|
+
name: "required",
|
|
23891
|
+
"x-designable-id": "3hv88e2efyl"
|
|
23892
|
+
},
|
|
23893
|
+
path: {
|
|
23894
|
+
title: "\u6A21\u5757\u5730\u5740",
|
|
23895
|
+
"x-decorator": "CnFormItem",
|
|
23896
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
23897
|
+
"x-validator": [],
|
|
23898
|
+
"x-component-props": {
|
|
23899
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",
|
|
23900
|
+
hasClear: true,
|
|
23901
|
+
size: "small",
|
|
23902
|
+
style: {
|
|
23903
|
+
width: "100%"
|
|
23904
|
+
}
|
|
23905
|
+
},
|
|
23906
|
+
"x-decorator-props": {},
|
|
23907
|
+
name: "path",
|
|
23908
|
+
enum: (moduleDataSource == null ? void 0 : moduleDataSource.l4ModuleOptions) || [],
|
|
23909
|
+
default: "",
|
|
23910
|
+
"x-designable-id": "9efgu22662lzttsh"
|
|
23911
|
+
},
|
|
23912
|
+
params: {
|
|
23913
|
+
type: "string",
|
|
23914
|
+
title: "\u53C2\u6570",
|
|
23915
|
+
"x-decorator": "CnFormItem",
|
|
23916
|
+
"x-component": "FormilyTableFormProxy",
|
|
23917
|
+
"x-validator": [],
|
|
23918
|
+
"x-component-props": {
|
|
23919
|
+
showFastList: true
|
|
23920
|
+
},
|
|
23921
|
+
"x-decorator-props": {},
|
|
23922
|
+
name: "params",
|
|
23923
|
+
"x-designable-id": "t0uv42662o8e9uy"
|
|
23924
|
+
}
|
|
23925
|
+
},
|
|
23926
|
+
"x-designable-id": "loa748844w8t3"
|
|
23927
|
+
}
|
|
23928
|
+
};
|
|
23929
|
+
};
|
|
23930
|
+
const fields = {
|
|
23931
|
+
input: InputSchema,
|
|
23932
|
+
batchInput: BatchInputSchema,
|
|
23933
|
+
"input-textarea": addProperties(InputSchema, {
|
|
23934
|
+
rows: {
|
|
23935
|
+
type: "number",
|
|
23936
|
+
title: "\u884C\u6570",
|
|
23937
|
+
"x-decorator": "CnFormItem",
|
|
23938
|
+
"x-component": "CnNumberPicker",
|
|
23939
|
+
"x-component-props": {
|
|
23940
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
23941
|
+
min: 1,
|
|
23942
|
+
step: 1,
|
|
23943
|
+
style: {
|
|
23944
|
+
width: "200px"
|
|
23945
|
+
}
|
|
23946
|
+
},
|
|
23947
|
+
name: "rows"
|
|
23948
|
+
}
|
|
23949
|
+
}),
|
|
23950
|
+
"input-password": InputSchema,
|
|
23951
|
+
"number-picker": NumberPickerSchema,
|
|
23952
|
+
"number-range-picker": NumberRangePickerSchema,
|
|
23953
|
+
select: SelectSchema,
|
|
23954
|
+
"time-picker2": TimePicker2Schema,
|
|
23955
|
+
"date-picker2": DatePicker2Schema,
|
|
23956
|
+
switch: SwitchSchema,
|
|
23957
|
+
radio: radioSchema,
|
|
23958
|
+
"check-box": CheckboxSchema,
|
|
23959
|
+
"cascader-select": CascadSelectSchema,
|
|
23960
|
+
"date-range-picker": DateRangePickerSchema,
|
|
23961
|
+
"time-range-picker": TimeRangePickerSchema,
|
|
23962
|
+
"address-select": AddressSelectSchema,
|
|
23963
|
+
"import-component": ImportComponentSchema
|
|
23964
|
+
};
|
|
23965
|
+
const copyFields$1 = cloneDeep_1(fields);
|
|
23966
|
+
const filterItems = Object.keys(copyFields$1).reduce((result, key) => {
|
|
23967
|
+
var _a2, _b2, _c;
|
|
23968
|
+
const field = copyFields$1[key];
|
|
23969
|
+
if ((_a2 = field == null ? void 0 : field.schema) == null ? void 0 : _a2.properties) {
|
|
23970
|
+
field.schema.properties = {
|
|
23971
|
+
...filterCommon,
|
|
23972
|
+
...field.schema.properties
|
|
23973
|
+
};
|
|
23974
|
+
}
|
|
23975
|
+
if ((_c = (_b2 = field == null ? void 0 : field.formilySchema) == null ? void 0 : _b2.schema) == null ? void 0 : _c.properties) {
|
|
23976
|
+
field.formilySchema.schema.properties = {
|
|
23977
|
+
...filterCommon,
|
|
23978
|
+
...field.formilySchema.schema.properties
|
|
23979
|
+
};
|
|
23980
|
+
}
|
|
23981
|
+
return {
|
|
23982
|
+
...result,
|
|
23983
|
+
[key]: field
|
|
23984
|
+
};
|
|
23985
|
+
}, {});
|
|
23986
|
+
var BlocksTable = (params) => {
|
|
23987
|
+
const { blocksDataSource = [] } = params || {};
|
|
23988
|
+
return {
|
|
23989
|
+
form: {
|
|
23990
|
+
labelCol: 6,
|
|
23991
|
+
wrapperCol: 16
|
|
23992
|
+
},
|
|
23993
|
+
schema: {
|
|
23994
|
+
type: "object",
|
|
23995
|
+
properties: {
|
|
23996
|
+
blockPath: {
|
|
23997
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
23998
|
+
"x-decorator": "CnFormItem",
|
|
23999
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
24000
|
+
"x-validator": [],
|
|
24001
|
+
"x-component-props": {
|
|
24002
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
24003
|
+
hasClear: true,
|
|
24004
|
+
size: "small",
|
|
24005
|
+
style: {
|
|
24006
|
+
width: "100%"
|
|
24007
|
+
}
|
|
24008
|
+
},
|
|
24009
|
+
"x-decorator-props": {},
|
|
24010
|
+
name: "blockPath",
|
|
24011
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-table")) || [],
|
|
24012
|
+
default: "",
|
|
24013
|
+
"x-designable-id": "9efgulzttsh"
|
|
24014
|
+
},
|
|
24015
|
+
parentDataIndex: {
|
|
24016
|
+
type: "string",
|
|
24017
|
+
title: "\u7236\u7EA7 dataIndex",
|
|
24018
|
+
"x-decorator": "CnFormItem",
|
|
24019
|
+
"x-component": "Input",
|
|
24020
|
+
"x-validator": [],
|
|
24021
|
+
"x-component-props": {},
|
|
24022
|
+
"x-decorator-props": {
|
|
24023
|
+
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"
|
|
24024
|
+
},
|
|
24025
|
+
name: "parentDataIndex",
|
|
24026
|
+
"x-designable-id": "sxbti2p222233122mzk"
|
|
24027
|
+
},
|
|
24028
|
+
shouldRender: {
|
|
24029
|
+
title: "\u6761\u4EF6\u6E32\u67D3",
|
|
24030
|
+
"x-decorator": "CnFormItem",
|
|
24031
|
+
"x-component": "Input",
|
|
24032
|
+
"x-validator": [],
|
|
24033
|
+
"x-component-props": {
|
|
24034
|
+
placeholder: "\u6839\u636E\u6761\u4EF6\u5224\u65AD \u6574\u4E2A\u533A\u5757 \u662F\u5426\u6E32\u67D3"
|
|
24035
|
+
},
|
|
24036
|
+
name: "shouldRender"
|
|
24037
|
+
},
|
|
24038
|
+
"x-designable-id": "loa5555d8t3"
|
|
24039
|
+
}
|
|
24040
|
+
}
|
|
24041
|
+
};
|
|
24042
|
+
};
|
|
24043
|
+
var BlocksFilter = (params) => {
|
|
24044
|
+
const { blocksDataSource = [] } = params || {};
|
|
24045
|
+
return {
|
|
24046
|
+
form: {
|
|
24047
|
+
labelCol: 6,
|
|
24048
|
+
wrapperCol: 16
|
|
24049
|
+
},
|
|
24050
|
+
schema: {
|
|
24051
|
+
type: "object",
|
|
24052
|
+
properties: {
|
|
24053
|
+
blockPath: {
|
|
24054
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
24055
|
+
"x-decorator": "CnFormItem",
|
|
24056
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
24057
|
+
"x-validator": [],
|
|
24058
|
+
"x-component-props": {
|
|
24059
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
24060
|
+
hasClear: true,
|
|
24061
|
+
size: "small",
|
|
24062
|
+
style: {
|
|
24063
|
+
width: "100%"
|
|
24064
|
+
}
|
|
24065
|
+
},
|
|
24066
|
+
"x-decorator-props": {},
|
|
24067
|
+
name: "blockPath",
|
|
24068
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-filter")) || [],
|
|
24069
|
+
default: "",
|
|
24070
|
+
"x-designable-id": "9efgulzttsh"
|
|
24071
|
+
},
|
|
24072
|
+
"x-designable-id": "loa5555d8t3"
|
|
24073
|
+
}
|
|
24074
|
+
}
|
|
24075
|
+
};
|
|
24076
|
+
};
|
|
24077
|
+
var BlocksForm = (params) => {
|
|
24078
|
+
const { blocksDataSource = [] } = params || {};
|
|
24079
|
+
return {
|
|
24080
|
+
form: {
|
|
24081
|
+
labelCol: 6,
|
|
24082
|
+
wrapperCol: 16
|
|
24083
|
+
},
|
|
24084
|
+
schema: {
|
|
24085
|
+
type: "object",
|
|
24086
|
+
properties: {
|
|
24087
|
+
blockPath: {
|
|
24088
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
24089
|
+
"x-decorator": "CnFormItem",
|
|
24090
|
+
"x-component": "FormilySelect.AutoComplete",
|
|
24091
|
+
"x-validator": [],
|
|
24092
|
+
"x-component-props": {
|
|
24093
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
24094
|
+
hasClear: true,
|
|
24095
|
+
size: "small",
|
|
24096
|
+
style: {
|
|
24097
|
+
width: "100%"
|
|
24098
|
+
}
|
|
24099
|
+
},
|
|
24100
|
+
"x-decorator-props": {},
|
|
24101
|
+
name: "blockPath",
|
|
24102
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-form")) || [],
|
|
24103
|
+
default: "",
|
|
24104
|
+
"x-designable-id": "9efgulzttsh"
|
|
24105
|
+
},
|
|
24106
|
+
"x-designable-id": "loa5555d8t3"
|
|
24107
|
+
}
|
|
24108
|
+
}
|
|
24109
|
+
};
|
|
24110
|
+
};
|
|
24111
|
+
var BlocksEditTable = (params) => {
|
|
24112
|
+
const { blocksDataSource = [] } = params || {};
|
|
23214
24113
|
return {
|
|
23215
24114
|
form: {
|
|
23216
24115
|
labelCol: 6,
|
|
@@ -23219,52 +24118,13 @@ var ImportComponentSchema = ({ moduleDataSource = {} }) => {
|
|
|
23219
24118
|
schema: {
|
|
23220
24119
|
type: "object",
|
|
23221
24120
|
properties: {
|
|
23222
|
-
|
|
23223
|
-
|
|
23224
|
-
type: "string",
|
|
23225
|
-
title: "\u9ED8\u8BA4\u503C",
|
|
23226
|
-
"x-decorator": "CnFormItem",
|
|
23227
|
-
"x-component": "FormilyDynamicValueBase",
|
|
23228
|
-
"x-validator": [],
|
|
23229
|
-
"x-component-props": {
|
|
23230
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
23231
|
-
},
|
|
23232
|
-
"x-decorator-props": {},
|
|
23233
|
-
name: "defaultValue",
|
|
23234
|
-
"x-designable-id": "hso2223bll3"
|
|
23235
|
-
},
|
|
23236
|
-
placeholder: {
|
|
23237
|
-
type: "string",
|
|
23238
|
-
title: "\u8F93\u5165\u63D0\u793A",
|
|
23239
|
-
"x-decorator": "CnFormItem",
|
|
23240
|
-
"x-component": "Input",
|
|
23241
|
-
"x-validator": [],
|
|
23242
|
-
"x-component-props": {
|
|
23243
|
-
placeholder: "\u8BF7\u8F93\u5165"
|
|
23244
|
-
},
|
|
23245
|
-
"x-decorator-props": {},
|
|
23246
|
-
default: "\u8BF7\u8F93\u5165",
|
|
23247
|
-
name: "placeholder",
|
|
23248
|
-
"x-designable-id": "f8sf666"
|
|
23249
|
-
},
|
|
23250
|
-
required: {
|
|
23251
|
-
type: "boolean",
|
|
23252
|
-
title: "\u662F\u5426\u5FC5\u586B",
|
|
23253
|
-
"x-decorator": "CnFormItem",
|
|
23254
|
-
"x-component": "Switch",
|
|
23255
|
-
"x-validator": [],
|
|
23256
|
-
"x-component-props": {},
|
|
23257
|
-
"x-decorator-props": {},
|
|
23258
|
-
name: "required",
|
|
23259
|
-
"x-designable-id": "3hv88e2efyl"
|
|
23260
|
-
},
|
|
23261
|
-
path: {
|
|
23262
|
-
title: "\u6A21\u5757\u5730\u5740",
|
|
24121
|
+
blockPath: {
|
|
24122
|
+
title: "\u533A\u5757\u5730\u5740",
|
|
23263
24123
|
"x-decorator": "CnFormItem",
|
|
23264
24124
|
"x-component": "FormilySelect.AutoComplete",
|
|
23265
24125
|
"x-validator": [],
|
|
23266
24126
|
"x-component-props": {
|
|
23267
|
-
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\
|
|
24127
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u533A\u5757\u5730\u5740",
|
|
23268
24128
|
hasClear: true,
|
|
23269
24129
|
size: "small",
|
|
23270
24130
|
style: {
|
|
@@ -23272,69 +24132,22 @@ var ImportComponentSchema = ({ moduleDataSource = {} }) => {
|
|
|
23272
24132
|
}
|
|
23273
24133
|
},
|
|
23274
24134
|
"x-decorator-props": {},
|
|
23275
|
-
name: "
|
|
23276
|
-
enum: (
|
|
24135
|
+
name: "blockPath",
|
|
24136
|
+
enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-edit-table")) || [],
|
|
23277
24137
|
default: "",
|
|
23278
|
-
"x-designable-id": "
|
|
24138
|
+
"x-designable-id": "9efgulzttsh"
|
|
23279
24139
|
},
|
|
23280
|
-
|
|
23281
|
-
|
|
23282
|
-
title: "\u53C2\u6570",
|
|
23283
|
-
"x-decorator": "CnFormItem",
|
|
23284
|
-
"x-component": "FormilyTableFormProxy",
|
|
23285
|
-
"x-validator": [],
|
|
23286
|
-
"x-component-props": {
|
|
23287
|
-
showFastList: true
|
|
23288
|
-
},
|
|
23289
|
-
"x-decorator-props": {},
|
|
23290
|
-
name: "params",
|
|
23291
|
-
"x-designable-id": "t0uv42662o8e9uy"
|
|
23292
|
-
}
|
|
23293
|
-
},
|
|
23294
|
-
"x-designable-id": "loa748844w8t3"
|
|
24140
|
+
"x-designable-id": "loa5555d8t3"
|
|
24141
|
+
}
|
|
23295
24142
|
}
|
|
23296
24143
|
};
|
|
23297
24144
|
};
|
|
23298
|
-
|
|
23299
|
-
|
|
23300
|
-
|
|
23301
|
-
"
|
|
23302
|
-
"
|
|
23303
|
-
"number-picker": NumberPickerSchema,
|
|
23304
|
-
"number-range-picker": NumberRangePickerSchema,
|
|
23305
|
-
select: SelectSchema,
|
|
23306
|
-
"time-picker2": TimePicker2Schema,
|
|
23307
|
-
"date-picker2": DatePicker2Schema,
|
|
23308
|
-
switch: SwitchSchema,
|
|
23309
|
-
radio: radioSchema,
|
|
23310
|
-
"check-box": CheckboxSchema,
|
|
23311
|
-
"cascader-select": CascadSelectSchema,
|
|
23312
|
-
"date-range-picker": DateRangePickerSchema,
|
|
23313
|
-
"time-range-picker": TimeRangePickerSchema,
|
|
23314
|
-
"address-select": AddressSelectSchema,
|
|
23315
|
-
"import-component": ImportComponentSchema
|
|
24145
|
+
var BlocksSchemaSet = {
|
|
24146
|
+
"blocks-table": BlocksTable,
|
|
24147
|
+
"blocks-filter": BlocksFilter,
|
|
24148
|
+
"blocks-form": BlocksForm,
|
|
24149
|
+
"blocks-edit-table": BlocksEditTable
|
|
23316
24150
|
};
|
|
23317
|
-
const copyFields$1 = cloneDeep_1(fields);
|
|
23318
|
-
const filterItems = Object.keys(copyFields$1).reduce((result, key) => {
|
|
23319
|
-
var _a2, _b2, _c;
|
|
23320
|
-
const field = copyFields$1[key];
|
|
23321
|
-
if ((_a2 = field == null ? void 0 : field.schema) == null ? void 0 : _a2.properties) {
|
|
23322
|
-
field.schema.properties = {
|
|
23323
|
-
...filterCommon,
|
|
23324
|
-
...field.schema.properties
|
|
23325
|
-
};
|
|
23326
|
-
}
|
|
23327
|
-
if ((_c = (_b2 = field == null ? void 0 : field.formilySchema) == null ? void 0 : _b2.schema) == null ? void 0 : _c.properties) {
|
|
23328
|
-
field.formilySchema.schema.properties = {
|
|
23329
|
-
...filterCommon,
|
|
23330
|
-
...field.formilySchema.schema.properties
|
|
23331
|
-
};
|
|
23332
|
-
}
|
|
23333
|
-
return {
|
|
23334
|
-
...result,
|
|
23335
|
-
[key]: field
|
|
23336
|
-
};
|
|
23337
|
-
}, {});
|
|
23338
24151
|
var CnFormItem = {
|
|
23339
24152
|
f_gridSpan: {
|
|
23340
24153
|
type: "number",
|
|
@@ -23465,6 +24278,78 @@ var cncardSubSchema = {
|
|
|
23465
24278
|
"x-designable-id": "loa7444w8t3"
|
|
23466
24279
|
}
|
|
23467
24280
|
};
|
|
24281
|
+
var GlobalPhonePickerSchema = () => {
|
|
24282
|
+
return {
|
|
24283
|
+
form: {
|
|
24284
|
+
labelCol: 6,
|
|
24285
|
+
wrapperCol: 16
|
|
24286
|
+
},
|
|
24287
|
+
schema: {
|
|
24288
|
+
type: "object",
|
|
24289
|
+
properties: {
|
|
24290
|
+
...formCommon(),
|
|
24291
|
+
defaultValue: {
|
|
24292
|
+
type: "number",
|
|
24293
|
+
title: "\u9ED8\u8BA4\u503C",
|
|
24294
|
+
"x-decorator": "CnFormItem",
|
|
24295
|
+
"x-component": "FormilyDynamicValueBase",
|
|
24296
|
+
"x-validator": [],
|
|
24297
|
+
"x-component-props": {
|
|
24298
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
24299
|
+
style: {
|
|
24300
|
+
width: "200px"
|
|
24301
|
+
}
|
|
24302
|
+
},
|
|
24303
|
+
"x-decorator-props": {},
|
|
24304
|
+
name: "defaultValue",
|
|
24305
|
+
"x-designable-id": "t0uv4o8e9uy"
|
|
24306
|
+
},
|
|
24307
|
+
placeholder: {
|
|
24308
|
+
type: "string",
|
|
24309
|
+
title: "\u8F93\u5165\u63D0\u793A",
|
|
24310
|
+
"x-decorator": "CnFormItem",
|
|
24311
|
+
"x-component": "Input",
|
|
24312
|
+
"x-validator": [],
|
|
24313
|
+
"x-component-props": {
|
|
24314
|
+
placeholder: "\u8BF7\u8F93\u5165"
|
|
24315
|
+
},
|
|
24316
|
+
default: "\u8BF7\u8F93\u5165",
|
|
24317
|
+
"x-decorator-props": {},
|
|
24318
|
+
name: "placeholder",
|
|
24319
|
+
"x-designable-id": "bt66ecxl3px"
|
|
24320
|
+
},
|
|
24321
|
+
defaultCountryCode: {
|
|
24322
|
+
type: "string",
|
|
24323
|
+
title: "\u9ED8\u8BA4\u56FD\u5BB6\u533A\u53F7",
|
|
24324
|
+
"x-decorator": "CnFormItem",
|
|
24325
|
+
"x-component": "Input",
|
|
24326
|
+
"x-validator": [],
|
|
24327
|
+
default: "86",
|
|
24328
|
+
"x-component-props": {
|
|
24329
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
24330
|
+
style: {
|
|
24331
|
+
width: "200px"
|
|
24332
|
+
}
|
|
24333
|
+
},
|
|
24334
|
+
"x-decorator-props": {},
|
|
24335
|
+
"x-designable-id": "jl0fyw111xdg12353m"
|
|
24336
|
+
},
|
|
24337
|
+
required: {
|
|
24338
|
+
type: "boolean",
|
|
24339
|
+
title: "\u662F\u5426\u5FC5\u586B",
|
|
24340
|
+
"x-decorator": "CnFormItem",
|
|
24341
|
+
"x-component": "Switch",
|
|
24342
|
+
"x-validator": [],
|
|
24343
|
+
"x-component-props": {},
|
|
24344
|
+
"x-decorator-props": {},
|
|
24345
|
+
name: "required",
|
|
24346
|
+
"x-designable-id": "jl0fywxdg3m"
|
|
24347
|
+
}
|
|
24348
|
+
},
|
|
24349
|
+
"x-designable-id": "loa7444w8t3"
|
|
24350
|
+
}
|
|
24351
|
+
};
|
|
24352
|
+
};
|
|
23468
24353
|
var uploadSchema = {
|
|
23469
24354
|
form: {
|
|
23470
24355
|
labelCol: 6,
|
|
@@ -23657,7 +24542,12 @@ var uploadSchema = {
|
|
|
23657
24542
|
"x-designable-id": "loa7444w8t3"
|
|
23658
24543
|
}
|
|
23659
24544
|
};
|
|
23660
|
-
const copyFields =
|
|
24545
|
+
const copyFields = {
|
|
24546
|
+
...cloneDeep_1(fields),
|
|
24547
|
+
"global-phone-picker": GlobalPhonePickerSchema,
|
|
24548
|
+
message: messageSchema,
|
|
24549
|
+
upload: uploadSchema
|
|
24550
|
+
};
|
|
23661
24551
|
const formItems = Object.keys(copyFields).reduce((result, key) => {
|
|
23662
24552
|
const field = copyFields[key];
|
|
23663
24553
|
if (typeof field === "function") {
|
|
@@ -23693,12 +24583,19 @@ function fillFormSchema(field) {
|
|
|
23693
24583
|
}
|
|
23694
24584
|
formItems.cncard = cncardSchema;
|
|
23695
24585
|
formItems["cncard-sub"] = cncardSubSchema;
|
|
23696
|
-
formItems.upload = uploadSchema;
|
|
23697
24586
|
var CompSchema = {
|
|
23698
24587
|
...filterItems,
|
|
23699
24588
|
...OperationsSchemaSet,
|
|
23700
|
-
...TableSchemaSet
|
|
24589
|
+
...TableSchemaSet,
|
|
24590
|
+
...BlocksSchemaSet
|
|
23701
24591
|
};
|
|
24592
|
+
function addProperties(schema, properties) {
|
|
24593
|
+
const _schema = JSON.parse(JSON.stringify(schema()));
|
|
24594
|
+
Object.entries(properties).forEach(([key, value]) => {
|
|
24595
|
+
_schema.schema.properties[key] = value;
|
|
24596
|
+
});
|
|
24597
|
+
return () => _schema;
|
|
24598
|
+
}
|
|
23702
24599
|
function useModule() {
|
|
23703
24600
|
const [dataMap, setDataMap] = useState({});
|
|
23704
24601
|
const getModule = (key) => {
|
|
@@ -23729,7 +24626,7 @@ const itemComponent$1 = "_itemComponent_tl8oe_70";
|
|
|
23729
24626
|
const itemLabel$1 = "_itemLabel_tl8oe_76";
|
|
23730
24627
|
const collapseContent$2 = "_collapseContent_tl8oe_81";
|
|
23731
24628
|
const itemClose$2 = "_itemClose_tl8oe_85";
|
|
23732
|
-
var styles$
|
|
24629
|
+
var styles$b = {
|
|
23733
24630
|
mddTableForm,
|
|
23734
24631
|
tableFormTitle,
|
|
23735
24632
|
tableFormContent,
|
|
@@ -23743,7 +24640,7 @@ var styles$9 = {
|
|
|
23743
24640
|
itemClose: itemClose$2
|
|
23744
24641
|
};
|
|
23745
24642
|
const DRAG_KEY$2 = "PanelTitle";
|
|
23746
|
-
const { Panel: Panel$
|
|
24643
|
+
const { Panel: Panel$3 } = Collapse;
|
|
23747
24644
|
const { Tooltip } = Balloon;
|
|
23748
24645
|
const TitleRender$2 = (props) => {
|
|
23749
24646
|
const ref = useRef(null);
|
|
@@ -23757,7 +24654,8 @@ const TitleRender$2 = (props) => {
|
|
|
23757
24654
|
componentOptions: componentOptions2,
|
|
23758
24655
|
titleType = ["label", "name", "type"],
|
|
23759
24656
|
penetrateType,
|
|
23760
|
-
swaggerFieldDataSource
|
|
24657
|
+
swaggerFieldDataSource,
|
|
24658
|
+
customRender
|
|
23761
24659
|
} = props;
|
|
23762
24660
|
const [value, setValue] = useState(data);
|
|
23763
24661
|
const { label, name, type, groupKey } = value || {};
|
|
@@ -23807,7 +24705,7 @@ const TitleRender$2 = (props) => {
|
|
|
23807
24705
|
setValue({ ...value });
|
|
23808
24706
|
onChange(value, key);
|
|
23809
24707
|
};
|
|
23810
|
-
const cls = classnames.bind(styles$
|
|
24708
|
+
const cls = classnames.bind(styles$b)({
|
|
23811
24709
|
itemTitle: "itemTitle",
|
|
23812
24710
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
23813
24711
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -23816,16 +24714,16 @@ const TitleRender$2 = (props) => {
|
|
|
23816
24714
|
ref,
|
|
23817
24715
|
className: cls,
|
|
23818
24716
|
style: { cursor: draggable ? "move" : "default", opacity },
|
|
23819
|
-
onClick: (e) => e.stopPropagation()
|
|
23820
|
-
}, titleType.includes("label") && /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
24717
|
+
onClick: (e) => draggable && e.stopPropagation()
|
|
24718
|
+
}, customRender == null ? void 0 : customRender(props), titleType.includes("label") && /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
23821
24719
|
size: "small",
|
|
23822
24720
|
value: label,
|
|
23823
24721
|
onChange: (v2) => titleChange("label", v2),
|
|
23824
24722
|
placeholder: "\u8F93\u5165\u4E2D\u6587\u540D"
|
|
23825
24723
|
}), titleType.includes("type") && /* @__PURE__ */ React$1.createElement("div", {
|
|
23826
|
-
className: styles$
|
|
24724
|
+
className: styles$b.itemComponent
|
|
23827
24725
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
23828
|
-
className: styles$
|
|
24726
|
+
className: styles$b.itemLabel
|
|
23829
24727
|
}, "\u7EC4\u4EF6: "), /* @__PURE__ */ React$1.createElement(Select$2, {
|
|
23830
24728
|
size: "small",
|
|
23831
24729
|
autoWidth: false,
|
|
@@ -23844,9 +24742,9 @@ const TitleRender$2 = (props) => {
|
|
|
23844
24742
|
onChange: (v2) => titleChange("name", v2),
|
|
23845
24743
|
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u53D8\u91CF\u540D"
|
|
23846
24744
|
}), titleType.includes("groupKey") && /* @__PURE__ */ React$1.createElement("div", {
|
|
23847
|
-
className: styles$
|
|
24745
|
+
className: styles$b.itemComponent
|
|
23848
24746
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
23849
|
-
className: styles$
|
|
24747
|
+
className: styles$b.itemLabel
|
|
23850
24748
|
}, "\u5206\u7EC4: "), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
23851
24749
|
size: "small",
|
|
23852
24750
|
value: groupKey,
|
|
@@ -23855,20 +24753,29 @@ const TitleRender$2 = (props) => {
|
|
|
23855
24753
|
})), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
23856
24754
|
type: "close",
|
|
23857
24755
|
size: "small",
|
|
23858
|
-
className: styles$
|
|
24756
|
+
className: styles$b.itemClose,
|
|
23859
24757
|
onClick: onRemove
|
|
23860
24758
|
}));
|
|
23861
24759
|
};
|
|
23862
|
-
const ContentRender$
|
|
23863
|
-
|
|
24760
|
+
const ContentRender$2 = (props) => {
|
|
24761
|
+
var _a2, _b2;
|
|
24762
|
+
const { values, effects, onChange, schema, index: index2, extraFieldSchema: extraFieldSchema2, updateForceFLag, listSchema } = props;
|
|
23864
24763
|
const { type, label, name } = values;
|
|
23865
24764
|
const { formilySchema: formilySchema2, dataAdaptor: dataAdaptor2 } = schema || {};
|
|
24765
|
+
const [uuid, setUuid] = useState(uuidv4());
|
|
23866
24766
|
const { dataMap, getModule } = useModule$1();
|
|
23867
24767
|
const moduleDataSource = getModule("$ModuleDataSource");
|
|
24768
|
+
const blocksDataSource = getModule("$BlocksDataSource");
|
|
24769
|
+
React$1.useEffect(
|
|
24770
|
+
debounce_1(() => {
|
|
24771
|
+
setUuid(uuidv4());
|
|
24772
|
+
}, 500),
|
|
24773
|
+
[`${(_a2 = props == null ? void 0 : props.values) == null ? void 0 : _a2.label}_${(_b2 = props == null ? void 0 : props.values) == null ? void 0 : _b2.name}`]
|
|
24774
|
+
);
|
|
23868
24775
|
const realSchema = useMemo(() => {
|
|
23869
|
-
const srcSchema = getRealSchema(formilySchema2 || schema, { moduleDataSource });
|
|
24776
|
+
const srcSchema = getRealSchema(formilySchema2 || schema, { moduleDataSource, listSchema, blocksDataSource });
|
|
23870
24777
|
return getRealCompSchema(srcSchema, extraFieldSchema2);
|
|
23871
|
-
}, [formilySchema2, schema, extraFieldSchema2, moduleDataSource]);
|
|
24778
|
+
}, [formilySchema2, schema, extraFieldSchema2, moduleDataSource, uuid, listSchema]);
|
|
23872
24779
|
const formilyForm = useMemo(() => {
|
|
23873
24780
|
const realValues = dataAdaptor2 ? dataAdaptor2(values, true) : values;
|
|
23874
24781
|
return {
|
|
@@ -23894,7 +24801,7 @@ const ContentRender$1 = (props) => {
|
|
|
23894
24801
|
};
|
|
23895
24802
|
}, [type, updateForceFLag, realSchema]);
|
|
23896
24803
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
23897
|
-
className: styles$
|
|
24804
|
+
className: styles$b.collapseContent
|
|
23898
24805
|
}, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
|
|
23899
24806
|
...formilyForm,
|
|
23900
24807
|
hiddenSubmit: true
|
|
@@ -23902,7 +24809,7 @@ const ContentRender$1 = (props) => {
|
|
|
23902
24809
|
};
|
|
23903
24810
|
function MddTableForm(props, ref) {
|
|
23904
24811
|
const {
|
|
23905
|
-
title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
24812
|
+
title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
23906
24813
|
tip = "",
|
|
23907
24814
|
actionContent = null,
|
|
23908
24815
|
data = [],
|
|
@@ -23917,7 +24824,9 @@ function MddTableForm(props, ref) {
|
|
|
23917
24824
|
penetrateType,
|
|
23918
24825
|
effects = {},
|
|
23919
24826
|
swaggerFieldDataSource = [],
|
|
23920
|
-
extraFieldSchema: extraFieldSchema2
|
|
24827
|
+
extraFieldSchema: extraFieldSchema2,
|
|
24828
|
+
titleRender,
|
|
24829
|
+
hideAddButton
|
|
23921
24830
|
} = props;
|
|
23922
24831
|
const [_2, _update] = useState(0);
|
|
23923
24832
|
const [sortUpdateFlag, setSortUpdateFlag] = useState({});
|
|
@@ -23969,26 +24878,26 @@ function MddTableForm(props, ref) {
|
|
|
23969
24878
|
forceUpdate();
|
|
23970
24879
|
};
|
|
23971
24880
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
23972
|
-
className: styles$
|
|
24881
|
+
className: styles$b.mddTableForm
|
|
23973
24882
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
23974
|
-
className: styles$
|
|
23975
|
-
}, /* @__PURE__ */ React$1.createElement("div", null,
|
|
24883
|
+
className: styles$b.tableFormTitle
|
|
24884
|
+
}, /* @__PURE__ */ React$1.createElement("div", null, typeof title2 === "function" ? title2() : title2, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
|
|
23976
24885
|
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
23977
24886
|
type: "help",
|
|
23978
24887
|
size: "small"
|
|
23979
24888
|
}),
|
|
23980
24889
|
align: "t"
|
|
23981
24890
|
}, tip)), actionContent && /* @__PURE__ */ React$1.createElement("div", {
|
|
23982
|
-
className: styles$
|
|
24891
|
+
className: styles$b.tableFormAction
|
|
23983
24892
|
}, actionContent)), /* @__PURE__ */ React$1.createElement("div", {
|
|
23984
|
-
className: styles$
|
|
24893
|
+
className: styles$b.tableFormContent
|
|
23985
24894
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
23986
24895
|
backend: HTML5Backend
|
|
23987
24896
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
23988
24897
|
accordion: true
|
|
23989
24898
|
}, dataRef.current.map((item, idx) => {
|
|
23990
|
-
item.name || item.dataIndex || `${
|
|
23991
|
-
return /* @__PURE__ */ React$1.createElement(Panel$
|
|
24899
|
+
item.name || item.dataIndex || `${title2}_${idx}`;
|
|
24900
|
+
return /* @__PURE__ */ React$1.createElement(Panel$3, {
|
|
23992
24901
|
title: /* @__PURE__ */ React$1.createElement(TitleRender$2, {
|
|
23993
24902
|
index: idx,
|
|
23994
24903
|
draggable,
|
|
@@ -24003,15 +24912,17 @@ function MddTableForm(props, ref) {
|
|
|
24003
24912
|
onSortUpdate,
|
|
24004
24913
|
penetrateType,
|
|
24005
24914
|
titleType,
|
|
24006
|
-
componentOptions: props.componentOptions
|
|
24915
|
+
componentOptions: props.componentOptions,
|
|
24916
|
+
customRender: titleRender
|
|
24007
24917
|
})
|
|
24008
|
-
}, /* @__PURE__ */ React$1.createElement(ContentRender$
|
|
24918
|
+
}, /* @__PURE__ */ React$1.createElement(ContentRender$2, {
|
|
24009
24919
|
updateForceFLag: sortUpdateFlag[idx],
|
|
24010
24920
|
values: item,
|
|
24011
24921
|
index: idx,
|
|
24012
24922
|
schema: CompSchemaMap[item.type],
|
|
24013
24923
|
extraFieldSchema: extraFieldSchema2,
|
|
24014
24924
|
effects,
|
|
24925
|
+
listSchema: dataRef.current,
|
|
24015
24926
|
onChange: ({ record }) => {
|
|
24016
24927
|
const { type, name, label, groupKey, ...otherProps } = dataRef.current[idx];
|
|
24017
24928
|
const newRecord = { ...record, label, name, groupKey };
|
|
@@ -24021,8 +24932,8 @@ function MddTableForm(props, ref) {
|
|
|
24021
24932
|
onTableFormChange({ index: idx, record: newRecord });
|
|
24022
24933
|
}
|
|
24023
24934
|
}));
|
|
24024
|
-
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
24025
|
-
className: styles$
|
|
24935
|
+
})))), !hideAddButton && /* @__PURE__ */ React$1.createElement("div", {
|
|
24936
|
+
className: styles$b.tableFormBottom
|
|
24026
24937
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
24027
24938
|
onClick: onAddHandle,
|
|
24028
24939
|
style: { padding: "0 48px" }
|
|
@@ -24046,6 +24957,12 @@ function getRealCompSchema(srcSchema, extraFieldSchema2) {
|
|
|
24046
24957
|
}
|
|
24047
24958
|
return srcSchema;
|
|
24048
24959
|
}
|
|
24960
|
+
function uuidv4() {
|
|
24961
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
24962
|
+
var r = Math.random() * 16 | 0, v2 = c == "x" ? r : r & 3 | 8;
|
|
24963
|
+
return v2.toString(16);
|
|
24964
|
+
});
|
|
24965
|
+
}
|
|
24049
24966
|
const PenetrateTypes = {
|
|
24050
24967
|
FILTER: "filter",
|
|
24051
24968
|
FORM: "form"
|
|
@@ -24056,14 +24973,14 @@ const FormTitle = "_FormTitle_1e2nn_20";
|
|
|
24056
24973
|
const FormTitleHelp = "_FormTitleHelp_1e2nn_24";
|
|
24057
24974
|
const FormContent = "_FormContent_1e2nn_30";
|
|
24058
24975
|
const content = "_content_1e2nn_35";
|
|
24059
|
-
var styles$
|
|
24976
|
+
var styles$a = {
|
|
24060
24977
|
mddForm,
|
|
24061
24978
|
FormTitle,
|
|
24062
24979
|
FormTitleHelp,
|
|
24063
24980
|
FormContent,
|
|
24064
24981
|
content
|
|
24065
24982
|
};
|
|
24066
|
-
const ContentRender = (props) => {
|
|
24983
|
+
const ContentRender$1 = (props) => {
|
|
24067
24984
|
const { values, index: index2, effects, onChange, schema } = props;
|
|
24068
24985
|
const formilyForm = useMemo(() => {
|
|
24069
24986
|
return {
|
|
@@ -24086,7 +25003,7 @@ const ContentRender = (props) => {
|
|
|
24086
25003
|
};
|
|
24087
25004
|
}, [schema]);
|
|
24088
25005
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
24089
|
-
className: styles$
|
|
25006
|
+
className: styles$a.content
|
|
24090
25007
|
}, /* @__PURE__ */ React$1.createElement(FormilyForm$1, {
|
|
24091
25008
|
...formilyForm,
|
|
24092
25009
|
hiddenSubmit: true
|
|
@@ -24094,7 +25011,7 @@ const ContentRender = (props) => {
|
|
|
24094
25011
|
};
|
|
24095
25012
|
function MddForm(props) {
|
|
24096
25013
|
const {
|
|
24097
|
-
title = "\u914D\u7F6E\u5206\u9875",
|
|
25014
|
+
title: title2 = "\u914D\u7F6E\u5206\u9875",
|
|
24098
25015
|
help,
|
|
24099
25016
|
data = {},
|
|
24100
25017
|
type,
|
|
@@ -24106,16 +25023,16 @@ function MddForm(props) {
|
|
|
24106
25023
|
contentStyle
|
|
24107
25024
|
} = props;
|
|
24108
25025
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
24109
|
-
className: styles$
|
|
25026
|
+
className: styles$a.mddForm,
|
|
24110
25027
|
style: style2
|
|
24111
25028
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
24112
|
-
className: styles$
|
|
24113
|
-
},
|
|
24114
|
-
className: styles$
|
|
25029
|
+
className: styles$a.FormTitle
|
|
25030
|
+
}, title2), help && /* @__PURE__ */ React$1.createElement("div", {
|
|
25031
|
+
className: styles$a.FormTitleHelp
|
|
24115
25032
|
}, help), /* @__PURE__ */ React$1.createElement("div", {
|
|
24116
|
-
className: styles$
|
|
25033
|
+
className: styles$a.FormContent,
|
|
24117
25034
|
style: contentStyle
|
|
24118
|
-
}, children || /* @__PURE__ */ React$1.createElement(ContentRender, {
|
|
25035
|
+
}, children || /* @__PURE__ */ React$1.createElement(ContentRender$1, {
|
|
24119
25036
|
values: data,
|
|
24120
25037
|
schema: CompSchema[type],
|
|
24121
25038
|
effects,
|
|
@@ -24200,6 +25117,10 @@ const componentOptions = [
|
|
|
24200
25117
|
label: "\u81EA\u5B9A\u4E49\u6A21\u5757"
|
|
24201
25118
|
}
|
|
24202
25119
|
];
|
|
25120
|
+
const FormComponentOptions = [...componentOptions];
|
|
25121
|
+
FormComponentOptions.splice(3, 0, { value: "input-password", label: "\u5BC6\u7801\u8F93\u5165\u6846" });
|
|
25122
|
+
FormComponentOptions.splice(3, 0, { value: "message", label: "\u4FE1\u606F\u63D0\u793A" });
|
|
25123
|
+
FormComponentOptions.splice(3, 0, { value: "global-phone-picker", label: "\u56FD\u9645\u7535\u8BDD\u8F93\u5165\u6846" });
|
|
24203
25124
|
const columnsTypeOptions = [
|
|
24204
25125
|
{
|
|
24205
25126
|
value: "text",
|
|
@@ -24267,6 +25188,10 @@ const columnsTypeOptionsWithCnTable = [
|
|
|
24267
25188
|
{
|
|
24268
25189
|
value: "cn-bank",
|
|
24269
25190
|
label: "\u94F6\u884C\u5361\u53F7"
|
|
25191
|
+
},
|
|
25192
|
+
{
|
|
25193
|
+
value: "blocks-table",
|
|
25194
|
+
label: "\u5217\u8868\u533A\u5757"
|
|
24270
25195
|
}
|
|
24271
25196
|
];
|
|
24272
25197
|
const columnsTypeOptionsWithEditCnTable = [
|
|
@@ -24306,6 +25231,14 @@ const columnsTypeOptionsWithEditCnTable = [
|
|
|
24306
25231
|
value: "edit-cascader-select",
|
|
24307
25232
|
label: "\u7EA7\u8054\u9009\u62E9\u5668"
|
|
24308
25233
|
},
|
|
25234
|
+
{
|
|
25235
|
+
value: "blocks-table",
|
|
25236
|
+
label: "\u5217\u8868\u533A\u5757"
|
|
25237
|
+
},
|
|
25238
|
+
{
|
|
25239
|
+
value: "blocks-edit-table",
|
|
25240
|
+
label: "\u53EF\u7F16\u8F91\u8868\u683C\u533A\u5757"
|
|
25241
|
+
},
|
|
24309
25242
|
{
|
|
24310
25243
|
value: "edit-custom",
|
|
24311
25244
|
label: "\u81EA\u5B9A\u4E49"
|
|
@@ -24321,7 +25254,7 @@ const labelDataSource$1 = [
|
|
|
24321
25254
|
value: "left"
|
|
24322
25255
|
}
|
|
24323
25256
|
];
|
|
24324
|
-
const Default_Add_Schema = {
|
|
25257
|
+
const Default_Add_Schema$2 = {
|
|
24325
25258
|
type: "input",
|
|
24326
25259
|
label: "\u8F93\u5165\u6846",
|
|
24327
25260
|
name: "",
|
|
@@ -24379,7 +25312,7 @@ const FormColOpts$1 = [
|
|
|
24379
25312
|
value: 8
|
|
24380
25313
|
}
|
|
24381
25314
|
];
|
|
24382
|
-
function FilterPanel({ schema, swaggerFields = [] }) {
|
|
25315
|
+
function FilterPanel$2({ schema, swaggerFields = [] }) {
|
|
24383
25316
|
const mddFormRef = React$1.useRef();
|
|
24384
25317
|
const [_2, forceUpdate] = React$1.useState({});
|
|
24385
25318
|
React$1.useEffect(() => {
|
|
@@ -24393,7 +25326,7 @@ function FilterPanel({ schema, swaggerFields = [] }) {
|
|
|
24393
25326
|
(_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
|
|
24394
25327
|
};
|
|
24395
25328
|
const onAddHandle = () => {
|
|
24396
|
-
schema.add(Default_Add_Schema, true);
|
|
25329
|
+
schema.add(Default_Add_Schema$2, true);
|
|
24397
25330
|
refreshMddTableForm();
|
|
24398
25331
|
};
|
|
24399
25332
|
const onRemoveHandle = (index2) => {
|
|
@@ -24412,7 +25345,7 @@ function FilterPanel({ schema, swaggerFields = [] }) {
|
|
|
24412
25345
|
ref: mddFormRef,
|
|
24413
25346
|
data: fields2,
|
|
24414
25347
|
penetrateType: PenetrateTypes.FILTER,
|
|
24415
|
-
componentOptions,
|
|
25348
|
+
componentOptions: [...componentOptions, { value: "blocks-filter", label: "\u7B5B\u9009\u9879\u533A\u5757" }],
|
|
24416
25349
|
title: "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
24417
25350
|
onAdd: onAddHandle,
|
|
24418
25351
|
onRemove: onRemoveHandle,
|
|
@@ -24431,6 +25364,12 @@ function FilterPanel({ schema, swaggerFields = [] }) {
|
|
|
24431
25364
|
schema.set(item.name, item.value);
|
|
24432
25365
|
}
|
|
24433
25366
|
}, /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
25367
|
+
label: "\u9ED8\u8BA4\u5C55\u5F00:",
|
|
25368
|
+
name: "defaultExpand",
|
|
25369
|
+
help: "\u4EC5\u5728 \u65B0\u7248\u5E03\u5C40\u4E2D\u751F\u6548"
|
|
25370
|
+
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
25371
|
+
defaultChecked: schema.get("defaultExpand")
|
|
25372
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
24434
25373
|
label: "\u6587\u672C\u4F4D\u7F6E:",
|
|
24435
25374
|
name: "labelAlign"
|
|
24436
25375
|
}, /* @__PURE__ */ React$1.createElement(Select$2, {
|
|
@@ -24526,34 +25465,38 @@ function HeaderToolbarPanel$1({ schema, moduleMap }) {
|
|
|
24526
25465
|
}
|
|
24527
25466
|
}));
|
|
24528
25467
|
}
|
|
24529
|
-
function TablePanel$
|
|
25468
|
+
function TablePanel$3({ schema, swaggerFields = [] }) {
|
|
24530
25469
|
var _a2;
|
|
24531
25470
|
const columnMddFormRef = React$1.useRef();
|
|
24532
25471
|
const bulkMddFormRef = React$1.useRef();
|
|
24533
25472
|
const operateMddFormRef = React$1.useRef();
|
|
25473
|
+
const rowDoubleClickRef = React$1.useRef();
|
|
24534
25474
|
const [_2, forceUpdate] = useState({});
|
|
24535
25475
|
const [visibleRowDetail, setVisibleRowDetail] = useState(!!((_a2 = schema.get("rowDetailModule")) == null ? void 0 : _a2.path));
|
|
24536
25476
|
useEffect(() => {
|
|
24537
25477
|
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
24538
25478
|
!ignoreUpdate && forceUpdate({});
|
|
24539
25479
|
});
|
|
24540
|
-
hackRowDetail(schema);
|
|
25480
|
+
hackRowDetail$1(schema);
|
|
24541
25481
|
}, []);
|
|
24542
25482
|
const primaryKey = schema.get("primaryKey");
|
|
24543
25483
|
const bulkActions = schema.get("bulkActions");
|
|
24544
25484
|
const columns = schema.get("columns");
|
|
24545
25485
|
const actionColumns = schema.get("actionColumns");
|
|
25486
|
+
const rowDoubleClick = schema.get("rowDoubleClick");
|
|
24546
25487
|
const pagination = schema.get("pagination");
|
|
24547
25488
|
const tree = schema.get("tree");
|
|
24548
25489
|
const showIndex = schema.get("showIndex");
|
|
24549
25490
|
const hideCommonToolbar = schema.get("hideCommonToolbar");
|
|
25491
|
+
const actionMaxCharNum = schema.get("actionMaxCharNum");
|
|
24550
25492
|
const actionWidth = schema.get("actionWidth");
|
|
24551
25493
|
const showSelect = schema.get("showSelect");
|
|
24552
25494
|
const rowDetailModule = schema.get("rowDetailModule");
|
|
24553
25495
|
const remoteSort = schema.get("remoteSort");
|
|
25496
|
+
const treeLinkageCheck = schema.get("treeLinkageCheck");
|
|
24554
25497
|
const loadChildrenDataApiPanel = schema.getLoadChildrenDataApiPanel();
|
|
24555
25498
|
const onAddHandle = (key) => {
|
|
24556
|
-
var _a3, _b2, _c;
|
|
25499
|
+
var _a3, _b2, _c, _d;
|
|
24557
25500
|
switch (key) {
|
|
24558
25501
|
case "bulkActions":
|
|
24559
25502
|
schema.add(
|
|
@@ -24603,10 +25546,26 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24603
25546
|
);
|
|
24604
25547
|
(_c = operateMddFormRef.current) == null ? void 0 : _c.updateData(schema.get("actionColumns"));
|
|
24605
25548
|
break;
|
|
25549
|
+
case "rowDoubleClick":
|
|
25550
|
+
schema.add(
|
|
25551
|
+
{
|
|
25552
|
+
type: "button",
|
|
25553
|
+
action: {
|
|
25554
|
+
type: "url",
|
|
25555
|
+
params: {
|
|
25556
|
+
record: "$TABLE.RECORD_DATA"
|
|
25557
|
+
}
|
|
25558
|
+
}
|
|
25559
|
+
},
|
|
25560
|
+
"rowDoubleClick",
|
|
25561
|
+
true
|
|
25562
|
+
);
|
|
25563
|
+
(_d = rowDoubleClickRef.current) == null ? void 0 : _d.updateData(schema.get("rowDoubleClick"));
|
|
25564
|
+
break;
|
|
24606
25565
|
}
|
|
24607
25566
|
};
|
|
24608
25567
|
const onRemoveHandle = (index2, key) => {
|
|
24609
|
-
var _a3, _b2, _c;
|
|
25568
|
+
var _a3, _b2, _c, _d;
|
|
24610
25569
|
schema.remove(index2, key, true);
|
|
24611
25570
|
if (key === "bulkActions") {
|
|
24612
25571
|
(_a3 = bulkMddFormRef.current) == null ? void 0 : _a3.updateData(schema.get("bulkActions"));
|
|
@@ -24614,11 +25573,16 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24614
25573
|
(_b2 = columnMddFormRef.current) == null ? void 0 : _b2.updateData(schema.get("columns"));
|
|
24615
25574
|
} else if (key === "actionColumns") {
|
|
24616
25575
|
(_c = operateMddFormRef.current) == null ? void 0 : _c.updateData(schema.get("actionColumns"));
|
|
25576
|
+
} else if (key === "rowDoubleClick") {
|
|
25577
|
+
(_d = rowDoubleClickRef.current) == null ? void 0 : _d.updateData(schema.get("rowDoubleClick"));
|
|
24617
25578
|
}
|
|
24618
25579
|
};
|
|
24619
25580
|
const onChangeHandle = ({ index: index2, record }, key) => {
|
|
24620
25581
|
schema.update(index2, record, key, true);
|
|
24621
25582
|
};
|
|
25583
|
+
const onActionMaxCharNum = (value) => {
|
|
25584
|
+
schema.update("", value ? Number(value) : "", "actionMaxCharNum");
|
|
25585
|
+
};
|
|
24622
25586
|
const onActionWidthChange = (value) => {
|
|
24623
25587
|
schema.update("", value ? Number(value) : "", "actionWidth");
|
|
24624
25588
|
};
|
|
@@ -24671,8 +25635,48 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24671
25635
|
onSort: (newList) => {
|
|
24672
25636
|
schema.setItemAll(newList, "actionColumns", true);
|
|
24673
25637
|
}
|
|
25638
|
+
}), /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
25639
|
+
ref: rowDoubleClickRef,
|
|
25640
|
+
data: rowDoubleClick,
|
|
25641
|
+
title: () => {
|
|
25642
|
+
var _a3;
|
|
25643
|
+
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25644
|
+
style: { display: "flex", alignItems: "center", gap: 6 }
|
|
25645
|
+
}, "\u914D\u7F6E\u884C\u53CC\u51FB\u4E8B\u4EF6", /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
25646
|
+
size: "small",
|
|
25647
|
+
checked: ((_a3 = schema.get("rowDoubleClick")) == null ? void 0 : _a3.length) > 0,
|
|
25648
|
+
onChange: (checked) => {
|
|
25649
|
+
if (checked)
|
|
25650
|
+
onAddHandle("rowDoubleClick");
|
|
25651
|
+
else
|
|
25652
|
+
onRemoveHandle(0, "rowDoubleClick");
|
|
25653
|
+
}
|
|
25654
|
+
}), /* @__PURE__ */ React$1.createElement(CnTooltip, {
|
|
25655
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25656
|
+
type: "prompt"
|
|
25657
|
+
})
|
|
25658
|
+
}, "\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"));
|
|
25659
|
+
},
|
|
25660
|
+
titleType: [],
|
|
25661
|
+
draggable: false,
|
|
25662
|
+
titleRender: () => "\u884C\u53CC\u51FB \u4E8B\u4EF6\u914D\u7F6E",
|
|
25663
|
+
onRemove: () => {
|
|
25664
|
+
},
|
|
25665
|
+
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "rowDoubleClick")
|
|
24674
25666
|
}), /* @__PURE__ */ React$1.createElement("div", {
|
|
24675
25667
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
25668
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u64CD\u4F5C\u5217\u6309\u94AE\u6700\u957F\u5B57\u7B26\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
25669
|
+
value: actionMaxCharNum,
|
|
25670
|
+
size: "small",
|
|
25671
|
+
onChange: onActionMaxCharNum,
|
|
25672
|
+
min: 1,
|
|
25673
|
+
max: 10
|
|
25674
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25675
|
+
className: "mdd-tip"
|
|
25676
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25677
|
+
type: "prompt"
|
|
25678
|
+
}), " \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", {
|
|
25679
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24676
25680
|
}, /* @__PURE__ */ React$1.createElement("label", null, "\u64CD\u4F5C\u5217\u5BBD\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
24677
25681
|
value: actionWidth,
|
|
24678
25682
|
size: "small",
|
|
@@ -24683,10 +25687,11 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24683
25687
|
type: "prompt"
|
|
24684
25688
|
}), " \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", {
|
|
24685
25689
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24686
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(
|
|
25690
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
24687
25691
|
value: schema.get("maxHeight"),
|
|
24688
25692
|
size: "small",
|
|
24689
|
-
onChange: (v2) => onBaseInfoChange("maxHeight", v2)
|
|
25693
|
+
onChange: (v2) => onBaseInfoChange("maxHeight", v2),
|
|
25694
|
+
min: 0
|
|
24690
25695
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
24691
25696
|
className: "mdd-tip"
|
|
24692
25697
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
@@ -24726,7 +25731,18 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24726
25731
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
24727
25732
|
type: "prompt"
|
|
24728
25733
|
}), " \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", {
|
|
24729
|
-
style: { marginLeft: "
|
|
25734
|
+
style: { marginLeft: "20px", marginBottom: 8, display: "flex" }
|
|
25735
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u7236\u5B50\u8282\u70B9\u7EA7\u8054\u52FE\u9009\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
25736
|
+
autoWidth: true,
|
|
25737
|
+
checked: treeLinkageCheck,
|
|
25738
|
+
size: "small",
|
|
25739
|
+
onChange: (v2) => onBaseInfoChange("treeLinkageCheck", v2)
|
|
25740
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25741
|
+
className: "mdd-tip"
|
|
25742
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25743
|
+
type: "prompt"
|
|
25744
|
+
}), " ", "\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", {
|
|
25745
|
+
style: { marginLeft: "20px", marginBottom: 8, display: "flex" }
|
|
24730
25746
|
}, /* @__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, {
|
|
24731
25747
|
schema: loadChildrenDataApiPanel,
|
|
24732
25748
|
isSelectType: false
|
|
@@ -24748,7 +25764,7 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24748
25764
|
type: "prompt"
|
|
24749
25765
|
}), " \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7", " ")), /* @__PURE__ */ React$1.createElement("div", {
|
|
24750
25766
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24751
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\
|
|
25767
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
24752
25768
|
autoWidth: true,
|
|
24753
25769
|
checked: hideCommonToolbar,
|
|
24754
25770
|
size: "small",
|
|
@@ -24757,7 +25773,7 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24757
25773
|
className: "mdd-tip"
|
|
24758
25774
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
24759
25775
|
type: "prompt"
|
|
24760
|
-
}), " \u662F\u5426\
|
|
25776
|
+
}), " \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", {
|
|
24761
25777
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
24762
25778
|
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u53EF\u9009\u62E9\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
24763
25779
|
autoWidth: true,
|
|
@@ -24821,13 +25837,13 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
|
|
|
24821
25837
|
type: "prompt"
|
|
24822
25838
|
}), " \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")));
|
|
24823
25839
|
}
|
|
24824
|
-
function hackRowDetail(schema) {
|
|
25840
|
+
function hackRowDetail$1(schema) {
|
|
24825
25841
|
const rowDetail = schema.get("rowDetail");
|
|
24826
25842
|
if (rowDetail) {
|
|
24827
25843
|
schema.set("rowDetail", void 0);
|
|
24828
25844
|
}
|
|
24829
25845
|
}
|
|
24830
|
-
var
|
|
25846
|
+
var immutabilityHelper = { exports: {} };
|
|
24831
25847
|
(function(module, exports) {
|
|
24832
25848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24833
25849
|
function stringifiable(obj) {
|
|
@@ -24849,7 +25865,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
24849
25865
|
function type(obj) {
|
|
24850
25866
|
return toString2.call(obj).slice(8, -1);
|
|
24851
25867
|
}
|
|
24852
|
-
var
|
|
25868
|
+
var assign = Object.assign || function(target, source) {
|
|
24853
25869
|
getAllKeys2(source).forEach(function(key) {
|
|
24854
25870
|
if (hasOwnProperty2.call(source, key)) {
|
|
24855
25871
|
target[key] = source[key];
|
|
@@ -24863,11 +25879,11 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
24863
25879
|
return Object.keys(obj);
|
|
24864
25880
|
};
|
|
24865
25881
|
function copy(object) {
|
|
24866
|
-
return Array.isArray(object) ?
|
|
25882
|
+
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;
|
|
24867
25883
|
}
|
|
24868
25884
|
var Context = function() {
|
|
24869
25885
|
function Context2() {
|
|
24870
|
-
this.commands =
|
|
25886
|
+
this.commands = assign({}, defaultCommands);
|
|
24871
25887
|
this.update = this.update.bind(this);
|
|
24872
25888
|
this.update.extend = this.extend = this.extend.bind(this);
|
|
24873
25889
|
this.update.isEquals = function(x, y) {
|
|
@@ -25026,7 +26042,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
25026
26042
|
exports.isEquals = defaultContext.update.isEquals;
|
|
25027
26043
|
exports.extend = defaultContext.extend;
|
|
25028
26044
|
exports.default = defaultContext.update;
|
|
25029
|
-
exports.default.default = module.exports =
|
|
26045
|
+
exports.default.default = module.exports = assign(exports.default, exports);
|
|
25030
26046
|
function invariantPushAndUnshift(value, spec, command) {
|
|
25031
26047
|
invariant2(Array.isArray(value), function() {
|
|
25032
26048
|
return "update(): expected target of " + stringifiable(command) + " to be an array; got " + stringifiable(value) + ".";
|
|
@@ -25073,8 +26089,8 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
|
|
|
25073
26089
|
return "update(): " + stringifiable(command) + " expects a target of type Set or Map; got " + stringifiable(typeOfTarget);
|
|
25074
26090
|
});
|
|
25075
26091
|
}
|
|
25076
|
-
})(
|
|
25077
|
-
var update = /* @__PURE__ */ getDefaultExportFromCjs(
|
|
26092
|
+
})(immutabilityHelper, immutabilityHelper.exports);
|
|
26093
|
+
var update = /* @__PURE__ */ getDefaultExportFromCjs(immutabilityHelper.exports);
|
|
25078
26094
|
const mddTableArray$1 = "_mddTableArray_16ght_1";
|
|
25079
26095
|
const tableArrayTitle$1 = "_tableArrayTitle_16ght_14";
|
|
25080
26096
|
const tableArrayContent$1 = "_tableArrayContent_16ght_18";
|
|
@@ -25082,7 +26098,7 @@ const tableArrayBottom$1 = "_tableArrayBottom_16ght_32";
|
|
|
25082
26098
|
const itemTitle$1 = "_itemTitle_16ght_39";
|
|
25083
26099
|
const collapseContent$1 = "_collapseContent_16ght_69";
|
|
25084
26100
|
const itemClose$1 = "_itemClose_16ght_73";
|
|
25085
|
-
var styles$
|
|
26101
|
+
var styles$9 = {
|
|
25086
26102
|
mddTableArray: mddTableArray$1,
|
|
25087
26103
|
tableArrayTitle: tableArrayTitle$1,
|
|
25088
26104
|
tableArrayContent: tableArrayContent$1,
|
|
@@ -25094,11 +26110,13 @@ var styles$7 = {
|
|
|
25094
26110
|
itemClose: itemClose$1
|
|
25095
26111
|
};
|
|
25096
26112
|
const DRAG_KEY$1 = "TableArrayPanelTitle";
|
|
25097
|
-
const { Panel: Panel$
|
|
26113
|
+
const { Panel: Panel$2 } = Collapse;
|
|
25098
26114
|
const TitleRender$1 = (props) => {
|
|
25099
26115
|
const ref = useRef(null);
|
|
25100
26116
|
const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
|
|
25101
|
-
} } = props;
|
|
26117
|
+
}, otherInfo } = props;
|
|
26118
|
+
const { dataMap, getModule } = useModule$1();
|
|
26119
|
+
const moduleDataSource = getModule("$ModuleDataSource");
|
|
25102
26120
|
const [{ isOver }, drop] = useDrop({
|
|
25103
26121
|
accept: DRAG_KEY$1,
|
|
25104
26122
|
collect(monitor) {
|
|
@@ -25125,7 +26143,7 @@ const TitleRender$1 = (props) => {
|
|
|
25125
26143
|
});
|
|
25126
26144
|
const opacity = isDragging ? 0 : 1;
|
|
25127
26145
|
draggable && drag(drop(ref));
|
|
25128
|
-
const cls = classnames.bind(styles$
|
|
26146
|
+
const cls = classnames.bind(styles$9)({
|
|
25129
26147
|
itemTitle: "itemTitle",
|
|
25130
26148
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
25131
26149
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -25135,16 +26153,18 @@ const TitleRender$1 = (props) => {
|
|
|
25135
26153
|
className: cls,
|
|
25136
26154
|
style: { cursor: draggable ? "move" : "default", opacity },
|
|
25137
26155
|
onClick: (e) => e.stopPropagation()
|
|
25138
|
-
}, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26156
|
+
}, customRender && customRender({ data, index: index2, onChange, moduleDataSource, otherInfo }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25139
26157
|
type: "close",
|
|
25140
26158
|
size: "small",
|
|
25141
|
-
className: styles$
|
|
26159
|
+
className: styles$9.itemClose,
|
|
25142
26160
|
onClick: onRemove
|
|
25143
26161
|
}));
|
|
25144
26162
|
};
|
|
25145
26163
|
function MddTableSimpleArray(props) {
|
|
26164
|
+
var _a2;
|
|
25146
26165
|
const {
|
|
25147
|
-
title = "",
|
|
26166
|
+
title: title2 = "",
|
|
26167
|
+
tip,
|
|
25148
26168
|
data = [],
|
|
25149
26169
|
onChange = () => {
|
|
25150
26170
|
},
|
|
@@ -25154,7 +26174,8 @@ function MddTableSimpleArray(props) {
|
|
|
25154
26174
|
onRemove,
|
|
25155
26175
|
draggable = true,
|
|
25156
26176
|
titleRender,
|
|
25157
|
-
contentRender: contentRender2
|
|
26177
|
+
contentRender: contentRender2,
|
|
26178
|
+
otherInfo
|
|
25158
26179
|
} = props;
|
|
25159
26180
|
const onSortUpdate = useCallback(
|
|
25160
26181
|
(dragIndex, hoverIndex) => {
|
|
@@ -25173,17 +26194,23 @@ function MddTableSimpleArray(props) {
|
|
|
25173
26194
|
onChange({ record, index: index2, data });
|
|
25174
26195
|
};
|
|
25175
26196
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25176
|
-
className: styles$
|
|
26197
|
+
className: styles$9.mddTableArray
|
|
25177
26198
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25178
|
-
className: styles$
|
|
25179
|
-
},
|
|
25180
|
-
|
|
26199
|
+
className: styles$9.tableArrayTitle
|
|
26200
|
+
}, title2, tip && /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
26201
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26202
|
+
type: "help",
|
|
26203
|
+
size: "small"
|
|
26204
|
+
}),
|
|
26205
|
+
align: "t"
|
|
26206
|
+
}, tip)), /* @__PURE__ */ React$1.createElement("div", {
|
|
26207
|
+
className: styles$9.tableArrayContent
|
|
25181
26208
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
25182
26209
|
backend: HTML5Backend
|
|
25183
26210
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
25184
26211
|
accordion: true
|
|
25185
|
-
}, data.map((item, idx) => {
|
|
25186
|
-
return /* @__PURE__ */ React$1.createElement(Panel$
|
|
26212
|
+
}, (_a2 = data == null ? void 0 : data.map) == null ? void 0 : _a2.call(data, (item, idx) => {
|
|
26213
|
+
return /* @__PURE__ */ React$1.createElement(Panel$2, {
|
|
25187
26214
|
title: /* @__PURE__ */ React$1.createElement(TitleRender$1, {
|
|
25188
26215
|
index: idx,
|
|
25189
26216
|
draggable,
|
|
@@ -25193,31 +26220,32 @@ function MddTableSimpleArray(props) {
|
|
|
25193
26220
|
onRemove: () => onRemove(idx),
|
|
25194
26221
|
data: item,
|
|
25195
26222
|
onSortUpdate,
|
|
25196
|
-
customRender: titleRender
|
|
26223
|
+
customRender: titleRender,
|
|
26224
|
+
otherInfo
|
|
25197
26225
|
})
|
|
25198
26226
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25199
|
-
className: styles$
|
|
25200
|
-
}, contentRender2({ data: item, index: idx, onChange: onTableArrayChange })));
|
|
26227
|
+
className: styles$9.collapseContent
|
|
26228
|
+
}, contentRender2({ data: item, index: idx, onChange: onTableArrayChange, otherInfo })));
|
|
25201
26229
|
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
25202
|
-
className: styles$
|
|
26230
|
+
className: styles$9.tableArrayBottom
|
|
25203
26231
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
25204
26232
|
onClick: onAdd,
|
|
25205
26233
|
style: { padding: "0 48px" }
|
|
25206
26234
|
}, "\u6DFB\u52A0\u9879")));
|
|
25207
26235
|
}
|
|
25208
|
-
const customTabItem$
|
|
25209
|
-
const tabTitle$
|
|
25210
|
-
const tabLabel$
|
|
25211
|
-
const middleBox = "_middleBox_119xt_20";
|
|
25212
|
-
const middleBoxLeft = "_middleBoxLeft_119xt_26";
|
|
25213
|
-
const middleBoxRight = "_middleBoxRight_119xt_31";
|
|
25214
|
-
var styles$
|
|
25215
|
-
customTabItem: customTabItem$
|
|
25216
|
-
tabTitle: tabTitle$
|
|
25217
|
-
tabLabel: tabLabel$
|
|
25218
|
-
middleBox,
|
|
25219
|
-
middleBoxLeft,
|
|
25220
|
-
middleBoxRight
|
|
26236
|
+
const customTabItem$5 = "_customTabItem_119xt_1";
|
|
26237
|
+
const tabTitle$5 = "_tabTitle_119xt_5";
|
|
26238
|
+
const tabLabel$5 = "_tabLabel_119xt_9";
|
|
26239
|
+
const middleBox$1 = "_middleBox_119xt_20";
|
|
26240
|
+
const middleBoxLeft$1 = "_middleBoxLeft_119xt_26";
|
|
26241
|
+
const middleBoxRight$1 = "_middleBoxRight_119xt_31";
|
|
26242
|
+
var styles$8 = {
|
|
26243
|
+
customTabItem: customTabItem$5,
|
|
26244
|
+
tabTitle: tabTitle$5,
|
|
26245
|
+
tabLabel: tabLabel$5,
|
|
26246
|
+
middleBox: middleBox$1,
|
|
26247
|
+
middleBoxLeft: middleBoxLeft$1,
|
|
26248
|
+
middleBoxRight: middleBoxRight$1
|
|
25221
26249
|
};
|
|
25222
26250
|
const Middle_Module_Opts = [
|
|
25223
26251
|
{
|
|
@@ -25251,8 +26279,8 @@ function Middle(props) {
|
|
|
25251
26279
|
};
|
|
25252
26280
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
|
|
25253
26281
|
data: schema.getMiddlePanel(),
|
|
25254
|
-
titleRender: customTitleRender$
|
|
25255
|
-
contentRender,
|
|
26282
|
+
titleRender: customTitleRender$2,
|
|
26283
|
+
contentRender: contentRender$1,
|
|
25256
26284
|
title: "\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",
|
|
25257
26285
|
onChange: onChangeHandle,
|
|
25258
26286
|
onSort: onSortHandle,
|
|
@@ -25260,11 +26288,11 @@ function Middle(props) {
|
|
|
25260
26288
|
onRemove: onRemoveHandle
|
|
25261
26289
|
}));
|
|
25262
26290
|
}
|
|
25263
|
-
function customTitleRender$
|
|
26291
|
+
function customTitleRender$2(props) {
|
|
25264
26292
|
const { data, index: index2 } = props;
|
|
25265
26293
|
return /* @__PURE__ */ React$1.createElement("div", null, "\u4E2D\u95F4\u6A21\u5757", index2 + 1);
|
|
25266
26294
|
}
|
|
25267
|
-
function contentRender(props) {
|
|
26295
|
+
function contentRender$1(props) {
|
|
25268
26296
|
const { data: schema, index: index2, onChange } = props;
|
|
25269
26297
|
const onBaseInfoChange = (key, value) => {
|
|
25270
26298
|
schema.set(key, value);
|
|
@@ -25272,47 +26300,47 @@ function contentRender(props) {
|
|
|
25272
26300
|
};
|
|
25273
26301
|
const moduleValue = schema.get("value");
|
|
25274
26302
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
25275
|
-
className: styles$
|
|
26303
|
+
className: styles$8.middleBox
|
|
25276
26304
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25277
|
-
className: styles$
|
|
26305
|
+
className: styles$8.middleBoxLeft
|
|
25278
26306
|
}, "\u6E32\u67D3\u6A21\u5757\uFF1A"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
|
|
25279
26307
|
dataSource: Middle_Module_Opts,
|
|
25280
26308
|
size: "small",
|
|
25281
|
-
className: styles$
|
|
26309
|
+
className: styles$8.middleBoxRight,
|
|
25282
26310
|
value: moduleValue,
|
|
25283
26311
|
onChange: (val) => onBaseInfoChange("value", val)
|
|
25284
26312
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25285
|
-
className: styles$
|
|
26313
|
+
className: styles$8.middleBox
|
|
25286
26314
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25287
|
-
className: styles$
|
|
26315
|
+
className: styles$8.middleBoxLeft
|
|
25288
26316
|
}, "\u6A21\u5757\u53C2\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(TableFormProxy, {
|
|
25289
|
-
className: styles$
|
|
26317
|
+
className: styles$8.middleBoxRight,
|
|
25290
26318
|
value: schema.get("params"),
|
|
25291
26319
|
onChange: (v2) => onBaseInfoChange("params", v2)
|
|
25292
26320
|
})), moduleValue === "ftp-tabs" && /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
|
|
25293
|
-
className: styles$
|
|
26321
|
+
className: styles$8.middleBox
|
|
25294
26322
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25295
|
-
className: styles$
|
|
26323
|
+
className: styles$8.middleBoxLeft
|
|
25296
26324
|
}, "\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
25297
|
-
className: styles$
|
|
26325
|
+
className: styles$8.middleBoxRight,
|
|
25298
26326
|
value: schema.get("dataIndex"),
|
|
25299
26327
|
size: "small",
|
|
25300
26328
|
onChange: (v2) => onBaseInfoChange("dataIndex", v2)
|
|
25301
26329
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25302
|
-
className: styles$
|
|
26330
|
+
className: styles$8.middleBox
|
|
25303
26331
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25304
|
-
className: styles$
|
|
26332
|
+
className: styles$8.middleBoxLeft
|
|
25305
26333
|
}, "\u9ED8\u8BA4\u503C\uFF1A"), /* @__PURE__ */ React$1.createElement(DynamicValueBase, {
|
|
25306
|
-
className: styles$
|
|
26334
|
+
className: styles$8.middleBoxRight,
|
|
25307
26335
|
value: schema.get("defaultTabValue"),
|
|
25308
26336
|
size: "small",
|
|
25309
26337
|
onChange: (v2) => onBaseInfoChange("defaultTabValue", v2)
|
|
25310
26338
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25311
|
-
className: styles$
|
|
26339
|
+
className: styles$8.middleBox
|
|
25312
26340
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
25313
|
-
className: styles$
|
|
26341
|
+
className: styles$8.middleBoxLeft
|
|
25314
26342
|
}, "\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"), /* @__PURE__ */ React$1.createElement("div", {
|
|
25315
|
-
className: styles$
|
|
26343
|
+
className: styles$8.middleBoxRight
|
|
25316
26344
|
}, /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
25317
26345
|
schema: schema.getSourcePanel(),
|
|
25318
26346
|
isSelectType: false
|
|
@@ -25325,24 +26353,317 @@ function contentRender(props) {
|
|
|
25325
26353
|
href: "https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"
|
|
25326
26354
|
}, "\u6587\u6863"))))));
|
|
25327
26355
|
}
|
|
25328
|
-
const CustomTabItem$
|
|
26356
|
+
const CustomTabItem$5 = ({ title: title2, icon }) => {
|
|
26357
|
+
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26358
|
+
className: styles$8.customTabItem
|
|
26359
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
26360
|
+
className: styles$8.tabTitle
|
|
26361
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26362
|
+
type: icon,
|
|
26363
|
+
size: "small"
|
|
26364
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26365
|
+
className: styles$8.tabLabel
|
|
26366
|
+
}, title2)));
|
|
26367
|
+
};
|
|
26368
|
+
function FtpBuild$1({ schema, moduleMap }) {
|
|
26369
|
+
const { getApiFields } = useSwagger$1();
|
|
26370
|
+
const apiSchema = schema.getDataSourcePanel();
|
|
26371
|
+
const { parameterFields = [], responseFields = [] } = React$1.useMemo(() => {
|
|
26372
|
+
return getApiFields(apiSchema == null ? void 0 : apiSchema.getApiUrl(), "ftp") || {};
|
|
26373
|
+
}, [apiSchema, getApiFields]);
|
|
26374
|
+
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
26375
|
+
animation: false,
|
|
26376
|
+
lazyLoad: false,
|
|
26377
|
+
shape: "wrapped",
|
|
26378
|
+
tabPosition: "left",
|
|
26379
|
+
className: "build-page-tab",
|
|
26380
|
+
tabRender: (key, props) => /* @__PURE__ */ React$1.createElement(CustomTabItem$5, {
|
|
26381
|
+
key,
|
|
26382
|
+
...props
|
|
26383
|
+
})
|
|
26384
|
+
}, /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26385
|
+
title: "\u641C\u7D22\u533A",
|
|
26386
|
+
icon: "search"
|
|
26387
|
+
}, /* @__PURE__ */ React$1.createElement(FilterPanel$2, {
|
|
26388
|
+
schema: schema.getFilterPanel(),
|
|
26389
|
+
swaggerFields: parameterFields
|
|
26390
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26391
|
+
title: "\u4E2D\u95F4\u6A21\u5757\u533A",
|
|
26392
|
+
icon: "flag"
|
|
26393
|
+
}, /* @__PURE__ */ React$1.createElement(Middle, {
|
|
26394
|
+
schema,
|
|
26395
|
+
moduleMap
|
|
26396
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26397
|
+
title: "\u9876\u90E8\u64CD\u4F5C\u533A",
|
|
26398
|
+
icon: "set"
|
|
26399
|
+
}, /* @__PURE__ */ React$1.createElement(HeaderToolbarPanel$1, {
|
|
26400
|
+
schema: schema.getHeaderToolbarPanel(),
|
|
26401
|
+
moduleMap
|
|
26402
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26403
|
+
title: "\u5185\u5BB9\u533A",
|
|
26404
|
+
icon: "detail"
|
|
26405
|
+
}, /* @__PURE__ */ React$1.createElement(TablePanel$3, {
|
|
26406
|
+
schema: schema.getTablePanel(),
|
|
26407
|
+
swaggerFields: responseFields,
|
|
26408
|
+
moduleMap
|
|
26409
|
+
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26410
|
+
title: "\u4E3B\u6570\u636E\u6E90",
|
|
26411
|
+
icon: "filter"
|
|
26412
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
26413
|
+
style: { marginLeft: "10px" }
|
|
26414
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
26415
|
+
style: { marginBottom: 8 }
|
|
26416
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u5217\u8868\u6570\u636E\u6E90\uFF1A")), /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
26417
|
+
hasDelete: true,
|
|
26418
|
+
schema: schema.getDataSourcePanel(),
|
|
26419
|
+
isSelectType: false
|
|
26420
|
+
}))));
|
|
26421
|
+
}
|
|
26422
|
+
function TablePanel$2({ schema }) {
|
|
26423
|
+
const columnMddFormRef = React$1.useRef();
|
|
26424
|
+
const [_2, forceUpdate] = useState({});
|
|
26425
|
+
useEffect(() => {
|
|
26426
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26427
|
+
!ignoreUpdate && forceUpdate({});
|
|
26428
|
+
});
|
|
26429
|
+
hackRowDetail(schema);
|
|
26430
|
+
}, []);
|
|
26431
|
+
const columns = schema.get("columns");
|
|
26432
|
+
const onAddHandle = (key) => {
|
|
26433
|
+
var _a2;
|
|
26434
|
+
switch (key) {
|
|
26435
|
+
case "columns":
|
|
26436
|
+
schema.add(
|
|
26437
|
+
{
|
|
26438
|
+
type: "text",
|
|
26439
|
+
label: "\u5C55\u793A\u9879",
|
|
26440
|
+
name: ""
|
|
26441
|
+
},
|
|
26442
|
+
"columns",
|
|
26443
|
+
true
|
|
26444
|
+
);
|
|
26445
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26446
|
+
break;
|
|
26447
|
+
}
|
|
26448
|
+
};
|
|
26449
|
+
const onRemoveHandle = (index2, key) => {
|
|
26450
|
+
var _a2;
|
|
26451
|
+
schema.remove(index2, key, true);
|
|
26452
|
+
if (key === "columns") {
|
|
26453
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26454
|
+
}
|
|
26455
|
+
};
|
|
26456
|
+
const onChangeHandle = ({ index: index2, record }, key) => {
|
|
26457
|
+
schema.update(index2, record, key, true);
|
|
26458
|
+
};
|
|
26459
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26460
|
+
ref: columnMddFormRef,
|
|
26461
|
+
data: columns,
|
|
26462
|
+
title: "\u914D\u7F6E\u8868\u683C\u5217",
|
|
26463
|
+
componentOptions: columnsTypeOptionsWithCnTable.filter((col) => col.value !== "blocks-table"),
|
|
26464
|
+
onAdd: () => onAddHandle("columns"),
|
|
26465
|
+
onRemove: (index2) => onRemoveHandle(index2, "columns"),
|
|
26466
|
+
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "columns"),
|
|
26467
|
+
onSort: (newList) => {
|
|
26468
|
+
schema.setItemAll(newList, "columns", true);
|
|
26469
|
+
}
|
|
26470
|
+
}));
|
|
26471
|
+
}
|
|
26472
|
+
function hackRowDetail(schema) {
|
|
26473
|
+
const rowDetail = schema.get("rowDetail");
|
|
26474
|
+
if (rowDetail) {
|
|
26475
|
+
schema.set("rowDetail", void 0);
|
|
26476
|
+
}
|
|
26477
|
+
}
|
|
26478
|
+
const Default_Add_Schema$1 = {
|
|
26479
|
+
type: "input",
|
|
26480
|
+
label: "\u8F93\u5165\u6846",
|
|
26481
|
+
name: "",
|
|
26482
|
+
input: propFields.input
|
|
26483
|
+
};
|
|
26484
|
+
function FilterPanel$1({ schema, swaggerFields = [] }) {
|
|
26485
|
+
const mddFormRef = React$1.useRef();
|
|
26486
|
+
const [_2, forceUpdate] = React$1.useState({});
|
|
26487
|
+
React$1.useEffect(() => {
|
|
26488
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26489
|
+
!ignoreUpdate && forceUpdate({});
|
|
26490
|
+
});
|
|
26491
|
+
}, []);
|
|
26492
|
+
const fields2 = schema.get("fields");
|
|
26493
|
+
const refreshMddTableForm = () => {
|
|
26494
|
+
var _a2;
|
|
26495
|
+
(_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
|
|
26496
|
+
};
|
|
26497
|
+
const onAddHandle = () => {
|
|
26498
|
+
schema.add(Default_Add_Schema$1, "fields", true);
|
|
26499
|
+
refreshMddTableForm();
|
|
26500
|
+
};
|
|
26501
|
+
const onRemoveHandle = (index2) => {
|
|
26502
|
+
schema.remove(index2, "fields", true);
|
|
26503
|
+
refreshMddTableForm();
|
|
26504
|
+
};
|
|
26505
|
+
const onChangeHandle = ({ index: index2, record }) => {
|
|
26506
|
+
for (const k2 in propFields) {
|
|
26507
|
+
if (record.type !== k2) {
|
|
26508
|
+
!["name"].includes(k2) && delete record[k2];
|
|
26509
|
+
}
|
|
26510
|
+
}
|
|
26511
|
+
schema.update(index2, record, "fields", true);
|
|
26512
|
+
};
|
|
26513
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26514
|
+
ref: mddFormRef,
|
|
26515
|
+
data: fields2,
|
|
26516
|
+
penetrateType: PenetrateTypes.FILTER,
|
|
26517
|
+
componentOptions,
|
|
26518
|
+
title: "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
26519
|
+
onAdd: onAddHandle,
|
|
26520
|
+
onRemove: onRemoveHandle,
|
|
26521
|
+
onChange: onChangeHandle,
|
|
26522
|
+
swaggerFieldDataSource: swaggerFields,
|
|
26523
|
+
onSort: (newList) => {
|
|
26524
|
+
schema.setFieldsAll(newList, true);
|
|
26525
|
+
}
|
|
26526
|
+
}));
|
|
26527
|
+
}
|
|
26528
|
+
const Default_Add_Schema = {
|
|
26529
|
+
type: "input",
|
|
26530
|
+
label: "\u8F93\u5165\u6846",
|
|
26531
|
+
name: "",
|
|
26532
|
+
input: propFields.input
|
|
26533
|
+
};
|
|
26534
|
+
function FilterPanel({ schema, swaggerFields = [] }) {
|
|
26535
|
+
const mddFormRef = React$1.useRef();
|
|
26536
|
+
const [_2, forceUpdate] = React$1.useState({});
|
|
26537
|
+
React$1.useEffect(() => {
|
|
26538
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26539
|
+
!ignoreUpdate && forceUpdate({});
|
|
26540
|
+
});
|
|
26541
|
+
}, []);
|
|
26542
|
+
const fields2 = schema.get("fields");
|
|
26543
|
+
const refreshMddTableForm = () => {
|
|
26544
|
+
var _a2;
|
|
26545
|
+
(_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
|
|
26546
|
+
};
|
|
26547
|
+
const onAddHandle = () => {
|
|
26548
|
+
schema.add(Default_Add_Schema, "fields", true);
|
|
26549
|
+
refreshMddTableForm();
|
|
26550
|
+
};
|
|
26551
|
+
const onRemoveHandle = (index2) => {
|
|
26552
|
+
schema.remove(index2, "fields", true);
|
|
26553
|
+
refreshMddTableForm();
|
|
26554
|
+
};
|
|
26555
|
+
const onChangeHandle = ({ index: index2, record }) => {
|
|
26556
|
+
for (const k2 in propFields) {
|
|
26557
|
+
if (record.type !== k2) {
|
|
26558
|
+
!["name"].includes(k2) && delete record[k2];
|
|
26559
|
+
}
|
|
26560
|
+
}
|
|
26561
|
+
schema.update(index2, record, "fields", true);
|
|
26562
|
+
};
|
|
26563
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26564
|
+
ref: mddFormRef,
|
|
26565
|
+
data: fields2,
|
|
26566
|
+
penetrateType: PenetrateTypes.FORM,
|
|
26567
|
+
componentOptions: FormComponentOptions,
|
|
26568
|
+
title: "\u914D\u7F6E\u8868\u5355\u9879",
|
|
26569
|
+
onAdd: onAddHandle,
|
|
26570
|
+
onRemove: onRemoveHandle,
|
|
26571
|
+
onChange: onChangeHandle,
|
|
26572
|
+
swaggerFieldDataSource: swaggerFields,
|
|
26573
|
+
onSort: (newList) => {
|
|
26574
|
+
schema.setFieldsAll(newList, true);
|
|
26575
|
+
}
|
|
26576
|
+
}));
|
|
26577
|
+
}
|
|
26578
|
+
function EditTablePanel({ schema }) {
|
|
26579
|
+
const columnMddFormRef = React$1.useRef();
|
|
26580
|
+
const [_2, forceUpdate] = useState({});
|
|
26581
|
+
useEffect(() => {
|
|
26582
|
+
schema.on("$updated", (changeData, ignoreUpdate) => {
|
|
26583
|
+
!ignoreUpdate && forceUpdate({});
|
|
26584
|
+
});
|
|
26585
|
+
}, []);
|
|
26586
|
+
const columns = schema.get("columns");
|
|
26587
|
+
const onAddHandle = (key) => {
|
|
26588
|
+
var _a2;
|
|
26589
|
+
switch (key) {
|
|
26590
|
+
case "columns":
|
|
26591
|
+
schema.add(
|
|
26592
|
+
{
|
|
26593
|
+
type: "text",
|
|
26594
|
+
label: "\u5C55\u793A\u9879",
|
|
26595
|
+
name: ""
|
|
26596
|
+
},
|
|
26597
|
+
"columns",
|
|
26598
|
+
true
|
|
26599
|
+
);
|
|
26600
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26601
|
+
break;
|
|
26602
|
+
}
|
|
26603
|
+
};
|
|
26604
|
+
const onRemoveHandle = (index2, key) => {
|
|
26605
|
+
var _a2;
|
|
26606
|
+
schema.remove(index2, key, true);
|
|
26607
|
+
(_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
|
|
26608
|
+
};
|
|
26609
|
+
const onChangeHandle = ({ index: index2, record }, key) => {
|
|
26610
|
+
schema.update(index2, record, key, true);
|
|
26611
|
+
};
|
|
26612
|
+
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
|
|
26613
|
+
ref: columnMddFormRef,
|
|
26614
|
+
data: columns,
|
|
26615
|
+
title: "\u914D\u7F6E\u53EF\u7F16\u8F91\u8868\u683C\u5217",
|
|
26616
|
+
componentOptions: columnsTypeOptionsWithEditCnTable.filter(
|
|
26617
|
+
(col) => !["blocks-edit-table", "blocks-table"].includes(col.value)
|
|
26618
|
+
),
|
|
26619
|
+
onAdd: () => onAddHandle("columns"),
|
|
26620
|
+
onRemove: (index2) => onRemoveHandle(index2, "columns"),
|
|
26621
|
+
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "columns"),
|
|
26622
|
+
onSort: (newList) => {
|
|
26623
|
+
schema.setItemAll(newList, "columns", true);
|
|
26624
|
+
}
|
|
26625
|
+
}));
|
|
26626
|
+
}
|
|
26627
|
+
const customTabItem$4 = "_customTabItem_119xt_1";
|
|
26628
|
+
const tabTitle$4 = "_tabTitle_119xt_5";
|
|
26629
|
+
const tabLabel$4 = "_tabLabel_119xt_9";
|
|
26630
|
+
const middleBox = "_middleBox_119xt_20";
|
|
26631
|
+
const middleBoxLeft = "_middleBoxLeft_119xt_26";
|
|
26632
|
+
const middleBoxRight = "_middleBoxRight_119xt_31";
|
|
26633
|
+
var styles$7 = {
|
|
26634
|
+
customTabItem: customTabItem$4,
|
|
26635
|
+
tabTitle: tabTitle$4,
|
|
26636
|
+
tabLabel: tabLabel$4,
|
|
26637
|
+
middleBox,
|
|
26638
|
+
middleBoxLeft,
|
|
26639
|
+
middleBoxRight
|
|
26640
|
+
};
|
|
26641
|
+
const PanelComMap = {
|
|
26642
|
+
"blocks-table": TablePanel$2,
|
|
26643
|
+
"blocks-filter": FilterPanel$1,
|
|
26644
|
+
"blocks-form": FilterPanel,
|
|
26645
|
+
"blocks-edit-table": EditTablePanel
|
|
26646
|
+
};
|
|
26647
|
+
const TitleMap = {
|
|
26648
|
+
"blocks-table": "\u5217\u8868\u9879",
|
|
26649
|
+
"blocks-filter": "\u641C\u7D22\u9879",
|
|
26650
|
+
"blocks-form": "\u8868\u5355\u9879",
|
|
26651
|
+
"blocks-edit-table": "\u53EF\u7F16\u8F91\u8868\u683C\u9879"
|
|
26652
|
+
};
|
|
26653
|
+
const CustomTabItem$4 = ({ title: title2, icon }) => {
|
|
25329
26654
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25330
|
-
className: styles$
|
|
26655
|
+
className: styles$7.customTabItem
|
|
25331
26656
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25332
|
-
className: styles$
|
|
26657
|
+
className: styles$7.tabTitle
|
|
25333
26658
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25334
26659
|
type: icon,
|
|
25335
26660
|
size: "small"
|
|
25336
26661
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25337
|
-
className: styles$
|
|
25338
|
-
},
|
|
26662
|
+
className: styles$7.tabLabel
|
|
26663
|
+
}, title2)));
|
|
25339
26664
|
};
|
|
25340
|
-
function
|
|
25341
|
-
const
|
|
25342
|
-
const apiSchema = schema.getDataSourcePanel();
|
|
25343
|
-
const { parameterFields = [], responseFields = [] } = React$1.useMemo(() => {
|
|
25344
|
-
return getApiFields(apiSchema == null ? void 0 : apiSchema.getApiUrl(), "ftp") || {};
|
|
25345
|
-
}, [apiSchema, getApiFields]);
|
|
26665
|
+
function BlocksBuild({ schema, moduleMap }) {
|
|
26666
|
+
const Panel2 = PanelComMap[schema.type];
|
|
25346
26667
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
25347
26668
|
animation: false,
|
|
25348
26669
|
lazyLoad: false,
|
|
@@ -25354,42 +26675,11 @@ function FtpBuild$1({ schema, moduleMap }) {
|
|
|
25354
26675
|
...props
|
|
25355
26676
|
})
|
|
25356
26677
|
}, /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25357
|
-
title:
|
|
25358
|
-
icon: "search"
|
|
25359
|
-
}, /* @__PURE__ */ React$1.createElement(FilterPanel, {
|
|
25360
|
-
schema: schema.getFilterPanel(),
|
|
25361
|
-
swaggerFields: parameterFields
|
|
25362
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25363
|
-
title: "\u4E2D\u95F4\u6A21\u5757\u533A",
|
|
25364
|
-
icon: "flag"
|
|
25365
|
-
}, /* @__PURE__ */ React$1.createElement(Middle, {
|
|
25366
|
-
schema,
|
|
25367
|
-
moduleMap
|
|
25368
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25369
|
-
title: "\u9876\u90E8\u64CD\u4F5C\u533A",
|
|
25370
|
-
icon: "set"
|
|
25371
|
-
}, /* @__PURE__ */ React$1.createElement(HeaderToolbarPanel$1, {
|
|
25372
|
-
schema: schema.getHeaderToolbarPanel(),
|
|
25373
|
-
moduleMap
|
|
25374
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25375
|
-
title: "\u5185\u5BB9\u533A",
|
|
26678
|
+
title: TitleMap[schema.type],
|
|
25376
26679
|
icon: "detail"
|
|
25377
|
-
}, /* @__PURE__ */ React$1.createElement(
|
|
25378
|
-
schema: schema.
|
|
25379
|
-
|
|
25380
|
-
moduleMap
|
|
25381
|
-
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
25382
|
-
title: "\u4E3B\u6570\u636E\u6E90",
|
|
25383
|
-
icon: "filter"
|
|
25384
|
-
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25385
|
-
style: { marginLeft: "10px" }
|
|
25386
|
-
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25387
|
-
style: { marginBottom: 8 }
|
|
25388
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u5217\u8868\u6570\u636E\u6E90\uFF1A")), /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
|
|
25389
|
-
hasDelete: true,
|
|
25390
|
-
schema: schema.getDataSourcePanel(),
|
|
25391
|
-
isSelectType: false
|
|
25392
|
-
}))));
|
|
26680
|
+
}, /* @__PURE__ */ React$1.createElement(Panel2, {
|
|
26681
|
+
schema: schema.getPanel()
|
|
26682
|
+
})));
|
|
25393
26683
|
}
|
|
25394
26684
|
const mddTableArray = "_mddTableArray_16ght_1";
|
|
25395
26685
|
const tableArrayTitle = "_tableArrayTitle_16ght_14";
|
|
@@ -25398,7 +26688,7 @@ const tableArrayBottom = "_tableArrayBottom_16ght_32";
|
|
|
25398
26688
|
const itemTitle = "_itemTitle_16ght_39";
|
|
25399
26689
|
const collapseContent = "_collapseContent_16ght_69";
|
|
25400
26690
|
const itemClose = "_itemClose_16ght_73";
|
|
25401
|
-
var styles$
|
|
26691
|
+
var styles$6 = {
|
|
25402
26692
|
mddTableArray,
|
|
25403
26693
|
tableArrayTitle,
|
|
25404
26694
|
tableArrayContent,
|
|
@@ -25410,7 +26700,7 @@ var styles$5 = {
|
|
|
25410
26700
|
itemClose
|
|
25411
26701
|
};
|
|
25412
26702
|
const DRAG_KEY = "TableArrayPanelTitle";
|
|
25413
|
-
const { Panel } = Collapse;
|
|
26703
|
+
const { Panel: Panel$1 } = Collapse;
|
|
25414
26704
|
const TitleRender = (props) => {
|
|
25415
26705
|
const ref = useRef(null);
|
|
25416
26706
|
const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
|
|
@@ -25441,7 +26731,7 @@ const TitleRender = (props) => {
|
|
|
25441
26731
|
});
|
|
25442
26732
|
const opacity = isDragging ? 0 : 1;
|
|
25443
26733
|
draggable && drag(drop(ref));
|
|
25444
|
-
const cls = classnames.bind(styles$
|
|
26734
|
+
const cls = classnames.bind(styles$6)({
|
|
25445
26735
|
itemTitle: "itemTitle",
|
|
25446
26736
|
"drop-over-upward": isOver && index2 < sourceItem.index,
|
|
25447
26737
|
"drop-over-downward": isOver && index2 > sourceItem.index
|
|
@@ -25454,7 +26744,7 @@ const TitleRender = (props) => {
|
|
|
25454
26744
|
}, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
|
|
25455
26745
|
type: "close",
|
|
25456
26746
|
size: "small",
|
|
25457
|
-
className: styles$
|
|
26747
|
+
className: styles$6.itemClose,
|
|
25458
26748
|
onClick: onRemove
|
|
25459
26749
|
}));
|
|
25460
26750
|
};
|
|
@@ -25468,7 +26758,7 @@ const getTypeContentMap = (typeContent2) => {
|
|
|
25468
26758
|
};
|
|
25469
26759
|
function MddTableArray(props) {
|
|
25470
26760
|
const {
|
|
25471
|
-
title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
26761
|
+
title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
|
|
25472
26762
|
data = [],
|
|
25473
26763
|
onChange = () => {
|
|
25474
26764
|
},
|
|
@@ -25498,11 +26788,11 @@ function MddTableArray(props) {
|
|
|
25498
26788
|
onChange({ record, index: index2, data });
|
|
25499
26789
|
};
|
|
25500
26790
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
25501
|
-
className: styles$
|
|
26791
|
+
className: styles$6.mddTableArray
|
|
25502
26792
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25503
|
-
className: styles$
|
|
25504
|
-
},
|
|
25505
|
-
className: styles$
|
|
26793
|
+
className: styles$6.tableArrayTitle
|
|
26794
|
+
}, title2), /* @__PURE__ */ React$1.createElement("div", {
|
|
26795
|
+
className: styles$6.tableArrayContent
|
|
25506
26796
|
}, /* @__PURE__ */ React$1.createElement(DndProvider, {
|
|
25507
26797
|
backend: HTML5Backend
|
|
25508
26798
|
}, /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
@@ -25510,7 +26800,7 @@ function MddTableArray(props) {
|
|
|
25510
26800
|
}, data.map((item, idx) => {
|
|
25511
26801
|
var _a2;
|
|
25512
26802
|
const type = item instanceof JSONWatch ? item.get("type") : item == null ? void 0 : item.type;
|
|
25513
|
-
return /* @__PURE__ */ React$1.createElement(Panel, {
|
|
26803
|
+
return /* @__PURE__ */ React$1.createElement(Panel$1, {
|
|
25514
26804
|
title: /* @__PURE__ */ React$1.createElement(TitleRender, {
|
|
25515
26805
|
index: idx,
|
|
25516
26806
|
draggable,
|
|
@@ -25524,10 +26814,10 @@ function MddTableArray(props) {
|
|
|
25524
26814
|
customRender: titleRender
|
|
25525
26815
|
})
|
|
25526
26816
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
25527
|
-
className: styles$
|
|
26817
|
+
className: styles$6.collapseContent
|
|
25528
26818
|
}, (_a2 = typeContentMap[type]) == null ? void 0 : _a2.contentRender({ data: item, index: idx, onChange: onTableArrayChange })));
|
|
25529
26819
|
})))), /* @__PURE__ */ React$1.createElement("div", {
|
|
25530
|
-
className: styles$
|
|
26820
|
+
className: styles$6.tableArrayBottom
|
|
25531
26821
|
}, /* @__PURE__ */ React$1.createElement(Button, {
|
|
25532
26822
|
onClick: onAdd,
|
|
25533
26823
|
style: { padding: "0 48px" }
|
|
@@ -25630,6 +26920,8 @@ function ActionsPanel({ schema }) {
|
|
|
25630
26920
|
}
|
|
25631
26921
|
}));
|
|
25632
26922
|
}
|
|
26923
|
+
const _columnsTypeOptions = [...columnsTypeOptions];
|
|
26924
|
+
_columnsTypeOptions.splice(5, 0, { value: "message", label: "\u4FE1\u606F\u63D0\u793A" });
|
|
25633
26925
|
const extraFieldSchema = {
|
|
25634
26926
|
renderToTitle: {
|
|
25635
26927
|
title: "\u6E32\u67D3\u5230\u6807\u9898",
|
|
@@ -25759,7 +27051,7 @@ function DetailCard(props) {
|
|
|
25759
27051
|
title: "",
|
|
25760
27052
|
extraFieldSchema,
|
|
25761
27053
|
swaggerFieldDataSource: responseFields,
|
|
25762
|
-
componentOptions:
|
|
27054
|
+
componentOptions: _columnsTypeOptions,
|
|
25763
27055
|
onAdd: () => onAddHandle(),
|
|
25764
27056
|
onRemove: (index2) => onRemoveHandle(index2),
|
|
25765
27057
|
onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }),
|
|
@@ -25949,7 +27241,7 @@ function DetailTable(props) {
|
|
|
25949
27241
|
onChange: ({ index: index2, record }) => onPaginationChangeHandle({ index: index2, record })
|
|
25950
27242
|
}), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
25951
27243
|
labelAlign: "left",
|
|
25952
|
-
label: "\u662F\u5426\
|
|
27244
|
+
label: "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A:",
|
|
25953
27245
|
name: "hideCommonToolbar"
|
|
25954
27246
|
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
25955
27247
|
autoWidth: true,
|
|
@@ -25957,10 +27249,11 @@ function DetailTable(props) {
|
|
|
25957
27249
|
defaultChecked: data.get("hideCommonToolbar")
|
|
25958
27250
|
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
25959
27251
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
25960
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(
|
|
27252
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
25961
27253
|
value: data.get("maxHeight"),
|
|
25962
27254
|
size: "small",
|
|
25963
|
-
onChange: (v2) => tablePropsChange("maxHeight", v2)
|
|
27255
|
+
onChange: (v2) => tablePropsChange("maxHeight", v2),
|
|
27256
|
+
min: 0
|
|
25964
27257
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
25965
27258
|
className: "mdd-tip"
|
|
25966
27259
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
@@ -26035,6 +27328,246 @@ function DetailStaticStep(props) {
|
|
|
26035
27328
|
single: true
|
|
26036
27329
|
})));
|
|
26037
27330
|
}
|
|
27331
|
+
const title = "_title_10adh_1";
|
|
27332
|
+
const titleItem = "_titleItem_10adh_7";
|
|
27333
|
+
const titleItemLabel = "_titleItemLabel_10adh_12";
|
|
27334
|
+
var styles$5 = {
|
|
27335
|
+
title,
|
|
27336
|
+
titleItem,
|
|
27337
|
+
titleItemLabel
|
|
27338
|
+
};
|
|
27339
|
+
const { Panel } = Collapse;
|
|
27340
|
+
function DetailColumns(props) {
|
|
27341
|
+
const { data, index: idx, onChange } = props;
|
|
27342
|
+
const [_2, forceUpdate] = React$1.useState({});
|
|
27343
|
+
React$1.useEffect(() => {
|
|
27344
|
+
data.set("hideCardTitle", true);
|
|
27345
|
+
forceUpdate();
|
|
27346
|
+
return () => {
|
|
27347
|
+
data.set("hideCardTitle", false);
|
|
27348
|
+
forceUpdate();
|
|
27349
|
+
};
|
|
27350
|
+
}, []);
|
|
27351
|
+
const onAddHandle = () => {
|
|
27352
|
+
data.add(
|
|
27353
|
+
{
|
|
27354
|
+
moduleName: "",
|
|
27355
|
+
hideSelfCard: true,
|
|
27356
|
+
params: [],
|
|
27357
|
+
canUpdateOtherColumns: true,
|
|
27358
|
+
canBeUpdated: true
|
|
27359
|
+
},
|
|
27360
|
+
"columnsBoxes"
|
|
27361
|
+
);
|
|
27362
|
+
forceUpdate({});
|
|
27363
|
+
};
|
|
27364
|
+
const onRemoveHandle = (index2) => {
|
|
27365
|
+
data.remove(index2, "columnsBoxes");
|
|
27366
|
+
forceUpdate({});
|
|
27367
|
+
};
|
|
27368
|
+
const onChangeHandle = ({ index: index2, record }) => {
|
|
27369
|
+
data.update(index2, record, "columnsBoxes");
|
|
27370
|
+
forceUpdate({});
|
|
27371
|
+
};
|
|
27372
|
+
return /* @__PURE__ */ React$1.createElement(Form, {
|
|
27373
|
+
labelCol: { span: 4 },
|
|
27374
|
+
wrapperCol: { span: 19 },
|
|
27375
|
+
size: "small",
|
|
27376
|
+
onChange: (values, item) => {
|
|
27377
|
+
data.set(item.name, item.value);
|
|
27378
|
+
onChange({ index: idx, record: data });
|
|
27379
|
+
}
|
|
27380
|
+
}, /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27381
|
+
labelAlign: "left",
|
|
27382
|
+
label: "\u5E03\u5C40\u65B9\u5F0F",
|
|
27383
|
+
name: "columnsDirection"
|
|
27384
|
+
}, /* @__PURE__ */ React$1.createElement(CnRadioGroup, {
|
|
27385
|
+
defaultValue: data.get("columnsDirection")
|
|
27386
|
+
}, /* @__PURE__ */ React$1.createElement(CnRadio, {
|
|
27387
|
+
value: "row"
|
|
27388
|
+
}, "\u5DE6\u53F3\u5E03\u5C40"), /* @__PURE__ */ React$1.createElement(CnRadio, {
|
|
27389
|
+
value: "column"
|
|
27390
|
+
}, "\u4E0A\u4E0B\u5E03\u5C40"))), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27391
|
+
labelAlign: "left",
|
|
27392
|
+
label: "\u9AD8\u5EA6",
|
|
27393
|
+
name: "height"
|
|
27394
|
+
}, /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
|
|
27395
|
+
defaultValue: data.get("height"),
|
|
27396
|
+
min: 0,
|
|
27397
|
+
max: 100,
|
|
27398
|
+
innerAfter: "%",
|
|
27399
|
+
style: { width: 90 }
|
|
27400
|
+
}), /* @__PURE__ */ React$1.createElement(CnTooltip, {
|
|
27401
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27402
|
+
type: "prompt",
|
|
27403
|
+
style: { marginLeft: 6 }
|
|
27404
|
+
})
|
|
27405
|
+
}, "0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27406
|
+
labelAlign: "left",
|
|
27407
|
+
label: "\u9690\u85CF\u7236\u7EA7\u5361\u7247",
|
|
27408
|
+
name: "hideCard"
|
|
27409
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27410
|
+
checked: data.get("hideCard")
|
|
27411
|
+
})), !data.get("hideCard") && /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27412
|
+
labelAlign: "left",
|
|
27413
|
+
label: "\u9690\u85CF\u7236\u7EA7\u5361\u7247\u5934\u90E8",
|
|
27414
|
+
name: "hideCardTitle"
|
|
27415
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27416
|
+
checked: data.get("hideCardTitle")
|
|
27417
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27418
|
+
labelAlign: "top",
|
|
27419
|
+
label: ""
|
|
27420
|
+
}, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
|
|
27421
|
+
data: data.get("columnsBoxes"),
|
|
27422
|
+
titleRender: customTitleRender$1,
|
|
27423
|
+
contentRender,
|
|
27424
|
+
title: "\u914D\u7F6E\u5206\u680F\u4FE1\u606F",
|
|
27425
|
+
tip: "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24",
|
|
27426
|
+
onChange: onChangeHandle,
|
|
27427
|
+
onSort: (newList) => {
|
|
27428
|
+
data.setItemAll(newList, "columnsBoxes");
|
|
27429
|
+
forceUpdate({});
|
|
27430
|
+
},
|
|
27431
|
+
onAdd: onAddHandle,
|
|
27432
|
+
onRemove: (index2) => onRemoveHandle(index2),
|
|
27433
|
+
otherInfo: { columnsDirection: data.get("columnsDirection") }
|
|
27434
|
+
})), data.get("hideCardTitle") ? null : /* @__PURE__ */ React$1.createElement(ActionsPanel, {
|
|
27435
|
+
schema: data
|
|
27436
|
+
}));
|
|
27437
|
+
}
|
|
27438
|
+
function customTitleRender$1(props) {
|
|
27439
|
+
const { data, index: index2, onChange, moduleDataSource, otherInfo = {} } = props;
|
|
27440
|
+
return /* @__PURE__ */ React$1.createElement("div", {
|
|
27441
|
+
className: styles$5.title
|
|
27442
|
+
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
27443
|
+
className: styles$5.titleItem
|
|
27444
|
+
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
27445
|
+
className: styles$5.titleItemLabel
|
|
27446
|
+
}, "\u6A21\u5757\u5730\u5740"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
|
|
27447
|
+
placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",
|
|
27448
|
+
hasClear: true,
|
|
27449
|
+
size: "small",
|
|
27450
|
+
style: {
|
|
27451
|
+
minWidth: 280
|
|
27452
|
+
},
|
|
27453
|
+
dataSource: (moduleDataSource == null ? void 0 : moduleDataSource.l4ModuleOptions) || moduleDataSource || [],
|
|
27454
|
+
value: data == null ? void 0 : data.moduleName,
|
|
27455
|
+
onChange: (v2) => onChange({ ...data, moduleName: v2 })
|
|
27456
|
+
})), (otherInfo == null ? void 0 : otherInfo.columnsDirection) === "row" && /* @__PURE__ */ React$1.createElement("div", {
|
|
27457
|
+
className: styles$5.titleItem
|
|
27458
|
+
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
27459
|
+
className: styles$5.titleItemLabel
|
|
27460
|
+
}, /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
27461
|
+
trigger: /* @__PURE__ */ React$1.createElement("div", {
|
|
27462
|
+
style: { display: "flex", alignItems: "center" }
|
|
27463
|
+
}, "\u5360\u5217\u6570 ", /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27464
|
+
type: "help",
|
|
27465
|
+
size: "small"
|
|
27466
|
+
})),
|
|
27467
|
+
align: "t"
|
|
27468
|
+
}, /* @__PURE__ */ React$1.createElement("b", null, "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24"))), /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
|
|
27469
|
+
size: "small",
|
|
27470
|
+
min: 0,
|
|
27471
|
+
max: 24,
|
|
27472
|
+
value: data == null ? void 0 : data.cols,
|
|
27473
|
+
onChange: (v2) => onChange({ ...data, cols: v2 }),
|
|
27474
|
+
placeholder: "\u5360\u5217\u6570 \u4E4B\u548C\u5E94\u4E3A24"
|
|
27475
|
+
})));
|
|
27476
|
+
}
|
|
27477
|
+
const layoutConfig = {
|
|
27478
|
+
wrapperCol: { span: 16 },
|
|
27479
|
+
labelCol: { span: 8 }
|
|
27480
|
+
};
|
|
27481
|
+
function contentRender(props) {
|
|
27482
|
+
return /* @__PURE__ */ React$1.createElement(ContentRender, {
|
|
27483
|
+
...props
|
|
27484
|
+
});
|
|
27485
|
+
}
|
|
27486
|
+
const ContentRender = (props) => {
|
|
27487
|
+
const { data, index: index2, onChange, otherInfo = {} } = props;
|
|
27488
|
+
return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, (otherInfo == null ? void 0 : otherInfo.columnsDirection) === "column" && /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27489
|
+
wrapperCol: { span: 20 },
|
|
27490
|
+
labelCol: { span: 4 },
|
|
27491
|
+
label: "\u9AD8\u5EA6",
|
|
27492
|
+
name: ""
|
|
27493
|
+
}, /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
|
|
27494
|
+
min: 0,
|
|
27495
|
+
max: 100,
|
|
27496
|
+
innerAfter: "%",
|
|
27497
|
+
style: { width: 90 },
|
|
27498
|
+
defaultValue: data == null ? void 0 : data.height,
|
|
27499
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, height: v2 } })
|
|
27500
|
+
}), /* @__PURE__ */ React$1.createElement(CnTooltip, {
|
|
27501
|
+
trigger: /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27502
|
+
type: "prompt",
|
|
27503
|
+
style: { marginLeft: 6 }
|
|
27504
|
+
})
|
|
27505
|
+
}, "\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, {
|
|
27506
|
+
name: "",
|
|
27507
|
+
wrapperCol: { span: 20 },
|
|
27508
|
+
labelCol: { span: 4 },
|
|
27509
|
+
style: { position: "relative" },
|
|
27510
|
+
label: /* @__PURE__ */ React$1.createElement("div", null, "\u53C2\u6570", /* @__PURE__ */ React$1.createElement("a", {
|
|
27511
|
+
rel: "noreferrer",
|
|
27512
|
+
target: "_blank",
|
|
27513
|
+
href: "https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",
|
|
27514
|
+
title: "\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",
|
|
27515
|
+
className: "help-link"
|
|
27516
|
+
}, "\u5E2E\u52A9"))
|
|
27517
|
+
}, /* @__PURE__ */ React$1.createElement(FormilyTableFormProxy, {
|
|
27518
|
+
keyTitle: "key(\u53C2\u6570\u540D)",
|
|
27519
|
+
valueTitle: "value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",
|
|
27520
|
+
value: data == null ? void 0 : data.params,
|
|
27521
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, params: v2 } })
|
|
27522
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27523
|
+
wrapperCol: { span: 20 },
|
|
27524
|
+
labelCol: { span: 4 },
|
|
27525
|
+
label: "\u9690\u85CF \u5F53\u524D\u680F \u5361\u7247",
|
|
27526
|
+
name: ""
|
|
27527
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27528
|
+
defaultChecked: data == null ? void 0 : data.hideSelfCard,
|
|
27529
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, hideSelfCard: v2 } })
|
|
27530
|
+
})), /* @__PURE__ */ React$1.createElement(Collapse, {
|
|
27531
|
+
accordion: true
|
|
27532
|
+
}, /* @__PURE__ */ React$1.createElement(Panel, {
|
|
27533
|
+
title: /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
27534
|
+
trigger: /* @__PURE__ */ React$1.createElement("div", {
|
|
27535
|
+
style: { width: "fit-content", display: "flex", alignItems: "center" }
|
|
27536
|
+
}, "\u5176\u4ED6\u914D\u7F6E\uFF1A", /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27537
|
+
type: "help",
|
|
27538
|
+
size: "small"
|
|
27539
|
+
})),
|
|
27540
|
+
align: "t"
|
|
27541
|
+
}, "\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")))
|
|
27542
|
+
}, /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27543
|
+
...layoutConfig,
|
|
27544
|
+
label: "\u53EF\u4EE5\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0",
|
|
27545
|
+
name: ""
|
|
27546
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27547
|
+
defaultChecked: data == null ? void 0 : data.canUpdateOtherColumns,
|
|
27548
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, canUpdateOtherColumns: v2 } })
|
|
27549
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27550
|
+
...layoutConfig,
|
|
27551
|
+
label: "\u53EF\u88AB\u5176\u4ED6\u5206\u680F\u5237\u65B0",
|
|
27552
|
+
name: ""
|
|
27553
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27554
|
+
defaultChecked: data == null ? void 0 : data.canBeUpdated,
|
|
27555
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, canBeUpdated: v2 } })
|
|
27556
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27557
|
+
...layoutConfig,
|
|
27558
|
+
label: /* @__PURE__ */ React$1.createElement(Balloon, {
|
|
27559
|
+
trigger: /* @__PURE__ */ React$1.createElement("div", null, "\u5F53\u524D\u5206\u680F\u4E3AFTP\u65F6\u81EA\u52A8\u5237\u65B0", /* @__PURE__ */ React$1.createElement(Icon, {
|
|
27560
|
+
type: "help",
|
|
27561
|
+
size: "small"
|
|
27562
|
+
})),
|
|
27563
|
+
align: "t"
|
|
27564
|
+
}, /* @__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")),
|
|
27565
|
+
name: ""
|
|
27566
|
+
}, /* @__PURE__ */ React$1.createElement(CnSwitch, {
|
|
27567
|
+
defaultChecked: data == null ? void 0 : data.autoUpdateWhenIsFTP,
|
|
27568
|
+
onChange: (v2) => onChange({ index: index2, record: { ...data, autoUpdateWhenIsFTP: v2 } })
|
|
27569
|
+
})))));
|
|
27570
|
+
};
|
|
26038
27571
|
const customTabItem$3 = "_customTabItem_1lh1l_1";
|
|
26039
27572
|
const tabTitle$3 = "_tabTitle_1lh1l_5";
|
|
26040
27573
|
const tabLabel$3 = "_tabLabel_1lh1l_9";
|
|
@@ -26086,6 +27619,15 @@ const typeContent = [
|
|
|
26086
27619
|
});
|
|
26087
27620
|
}
|
|
26088
27621
|
},
|
|
27622
|
+
{
|
|
27623
|
+
label: "\u5E03\u5C40",
|
|
27624
|
+
value: "detail-columns",
|
|
27625
|
+
contentRender: (props) => {
|
|
27626
|
+
return /* @__PURE__ */ React$1.createElement(DetailColumns, {
|
|
27627
|
+
...props
|
|
27628
|
+
});
|
|
27629
|
+
}
|
|
27630
|
+
},
|
|
26089
27631
|
{
|
|
26090
27632
|
label: "\u5185\u5D4C\u9875\u9762",
|
|
26091
27633
|
value: "import-component",
|
|
@@ -26178,7 +27720,7 @@ function DetailItems({ schema = {} }) {
|
|
|
26178
27720
|
onRemove: onRemoveHandle
|
|
26179
27721
|
}));
|
|
26180
27722
|
}
|
|
26181
|
-
const CustomTabItem$3 = ({ title, icon }) => {
|
|
27723
|
+
const CustomTabItem$3 = ({ title: title2, icon }) => {
|
|
26182
27724
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26183
27725
|
className: styles$4.customTabItem
|
|
26184
27726
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26188,7 +27730,7 @@ const CustomTabItem$3 = ({ title, icon }) => {
|
|
|
26188
27730
|
size: "small"
|
|
26189
27731
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26190
27732
|
className: styles$4.tabLabel
|
|
26191
|
-
},
|
|
27733
|
+
}, title2)));
|
|
26192
27734
|
};
|
|
26193
27735
|
function DetailBuild({ schema }) {
|
|
26194
27736
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
@@ -26232,6 +27774,18 @@ function DetailBuild({ schema }) {
|
|
|
26232
27774
|
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
26233
27775
|
autoWidth: true,
|
|
26234
27776
|
defaultChecked: schema.get("hasAnchor")
|
|
27777
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27778
|
+
label: "\u662F\u5426\u6491\u6EE1\u7236\u5BB9\u5668:",
|
|
27779
|
+
name: "fullHeight"
|
|
27780
|
+
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
27781
|
+
autoWidth: true,
|
|
27782
|
+
defaultChecked: schema.get("fullHeight")
|
|
27783
|
+
})), /* @__PURE__ */ React$1.createElement(Form.Item, {
|
|
27784
|
+
label: "\u662F\u5426\u5E26\u6709\u767D\u8272\u80CC\u666F:",
|
|
27785
|
+
name: "whiteBackground"
|
|
27786
|
+
}, /* @__PURE__ */ React$1.createElement(Switch, {
|
|
27787
|
+
autoWidth: true,
|
|
27788
|
+
defaultChecked: schema.get("whiteBackground")
|
|
26235
27789
|
}))))), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
26236
27790
|
title: "\u5185\u5BB9\u533A",
|
|
26237
27791
|
icon: "detail"
|
|
@@ -26414,8 +27968,6 @@ function FormInfoPanel({ schema }) {
|
|
|
26414
27968
|
defaultValue: schema.get("cancelText")
|
|
26415
27969
|
})))));
|
|
26416
27970
|
}
|
|
26417
|
-
const FormComponentOptions = [...componentOptions];
|
|
26418
|
-
FormComponentOptions.splice(3, 0, { value: "input-password", label: "\u5BC6\u7801\u8F93\u5165\u6846" });
|
|
26419
27971
|
function FormItemsPanel({ schema, swaggerFields = [] }) {
|
|
26420
27972
|
const mddFormRef = React$1.useRef();
|
|
26421
27973
|
const [_2, forceUpdate] = React$1.useState({});
|
|
@@ -26457,7 +28009,7 @@ function FormItemsPanel({ schema, swaggerFields = [] }) {
|
|
|
26457
28009
|
ref: mddFormRef,
|
|
26458
28010
|
data: fields2 || [],
|
|
26459
28011
|
penetrateType: PenetrateTypes.FORM,
|
|
26460
|
-
componentOptions: FormComponentOptions,
|
|
28012
|
+
componentOptions: [...FormComponentOptions, , { value: "blocks-form", label: "\u8868\u5355\u533A\u5757" }],
|
|
26461
28013
|
swaggerFieldDataSource: swaggerFields,
|
|
26462
28014
|
title: "\u914D\u7F6E\u8868\u5355\u9879",
|
|
26463
28015
|
onAdd: onAddHandle,
|
|
@@ -26476,7 +28028,7 @@ var styles$3 = {
|
|
|
26476
28028
|
tabTitle: tabTitle$2,
|
|
26477
28029
|
tabLabel: tabLabel$2
|
|
26478
28030
|
};
|
|
26479
|
-
const CustomTabItem$2 = ({ title, icon }) => {
|
|
28031
|
+
const CustomTabItem$2 = ({ title: title2, icon }) => {
|
|
26480
28032
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26481
28033
|
className: styles$3.customTabItem
|
|
26482
28034
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26486,9 +28038,9 @@ const CustomTabItem$2 = ({ title, icon }) => {
|
|
|
26486
28038
|
size: "small"
|
|
26487
28039
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26488
28040
|
className: styles$3.tabLabel
|
|
26489
|
-
},
|
|
28041
|
+
}, title2)));
|
|
26490
28042
|
};
|
|
26491
|
-
const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
|
|
28043
|
+
const CustomKV$1 = ({ title: title2 = "", subTitle = "", children }) => {
|
|
26492
28044
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26493
28045
|
className: "formily-form-v2-kv"
|
|
26494
28046
|
}, /* @__PURE__ */ React$1.createElement(Box, {
|
|
@@ -26497,7 +28049,7 @@ const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
|
|
|
26497
28049
|
className: "formily-form-v2-title-wrapper"
|
|
26498
28050
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
26499
28051
|
className: "title"
|
|
26500
|
-
},
|
|
28052
|
+
}, title2), /* @__PURE__ */ React$1.createElement("label", {
|
|
26501
28053
|
className: "subTitle"
|
|
26502
28054
|
}, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
|
|
26503
28055
|
};
|
|
@@ -26615,6 +28167,7 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
|
|
|
26615
28167
|
}, []);
|
|
26616
28168
|
const primaryKey = schema.get("primaryKey");
|
|
26617
28169
|
const columns = schema.get("columns");
|
|
28170
|
+
const showIndex = schema.get("showIndex");
|
|
26618
28171
|
const onAddHandle = (key) => {
|
|
26619
28172
|
var _a2;
|
|
26620
28173
|
switch (key) {
|
|
@@ -26643,6 +28196,9 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
|
|
|
26643
28196
|
const onPrimaryKeyChange = (value) => {
|
|
26644
28197
|
schema.update("", value, "primaryKey");
|
|
26645
28198
|
};
|
|
28199
|
+
const onBaseInfoChange = (key, value) => {
|
|
28200
|
+
schema.update("", value, key);
|
|
28201
|
+
};
|
|
26646
28202
|
return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
|
|
26647
28203
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
26648
28204
|
}, /* @__PURE__ */ React$1.createElement("label", null, "\u4E3B\u952E\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
|
|
@@ -26663,15 +28219,56 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
|
|
|
26663
28219
|
}
|
|
26664
28220
|
}), /* @__PURE__ */ React$1.createElement("div", {
|
|
26665
28221
|
style: { marginLeft: "10px", marginBottom: 8 }
|
|
26666
|
-
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(
|
|
28222
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
|
|
26667
28223
|
value: schema.get("maxHeight"),
|
|
26668
28224
|
size: "small",
|
|
26669
|
-
onChange: (v2) => schema.update("", v2, "maxHeight")
|
|
28225
|
+
onChange: (v2) => schema.update("", v2, "maxHeight"),
|
|
28226
|
+
min: 0
|
|
26670
28227
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26671
28228
|
className: "mdd-tip"
|
|
26672
28229
|
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
26673
28230
|
type: "prompt"
|
|
26674
|
-
}), " \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)"))
|
|
28231
|
+
}), " \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", {
|
|
28232
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
28233
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
28234
|
+
autoWidth: true,
|
|
28235
|
+
checked: showIndex,
|
|
28236
|
+
size: "small",
|
|
28237
|
+
onChange: (v2) => onBaseInfoChange("showIndex", v2)
|
|
28238
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
28239
|
+
className: "mdd-tip"
|
|
28240
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
28241
|
+
type: "prompt"
|
|
28242
|
+
}), " \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7", " ")), /* @__PURE__ */ React$1.createElement("div", {
|
|
28243
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
28244
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
28245
|
+
autoWidth: true,
|
|
28246
|
+
checked: schema.get("useVirtual"),
|
|
28247
|
+
size: "small",
|
|
28248
|
+
onChange: (v2) => onBaseInfoChange("useVirtual", v2)
|
|
28249
|
+
})), /* @__PURE__ */ React$1.createElement("div", {
|
|
28250
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
28251
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u5F00\u542F\u81EA\u52A8\u5217\u5BBD\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
28252
|
+
autoWidth: true,
|
|
28253
|
+
checked: schema.get("columnsAutoWidth"),
|
|
28254
|
+
size: "small",
|
|
28255
|
+
onChange: (v2) => onBaseInfoChange("columnsAutoWidth", v2)
|
|
28256
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
28257
|
+
className: "mdd-tip"
|
|
28258
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
28259
|
+
type: "prompt"
|
|
28260
|
+
}), " \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")), /* @__PURE__ */ React$1.createElement("div", {
|
|
28261
|
+
style: { marginLeft: "10px", marginBottom: 8 }
|
|
28262
|
+
}, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
|
|
28263
|
+
autoWidth: true,
|
|
28264
|
+
checked: schema.get("hideCommonToolbar"),
|
|
28265
|
+
size: "small",
|
|
28266
|
+
onChange: (v2) => onBaseInfoChange("hideCommonToolbar", v2)
|
|
28267
|
+
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
28268
|
+
className: "mdd-tip"
|
|
28269
|
+
}, /* @__PURE__ */ React$1.createElement(Icon, {
|
|
28270
|
+
type: "prompt"
|
|
28271
|
+
}), " \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")));
|
|
26675
28272
|
}
|
|
26676
28273
|
function HeaderToolbarPanel({ schema }) {
|
|
26677
28274
|
const mddFormRef = React$1.useRef();
|
|
@@ -26731,7 +28328,7 @@ var styles$2 = {
|
|
|
26731
28328
|
kvTitle,
|
|
26732
28329
|
kvSubTitle
|
|
26733
28330
|
};
|
|
26734
|
-
var CustomKV = ({ title = "", subTitle = "", children }) => {
|
|
28331
|
+
var CustomKV = ({ title: title2 = "", subTitle = "", children }) => {
|
|
26735
28332
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26736
28333
|
className: styles$2.kvContainer
|
|
26737
28334
|
}, /* @__PURE__ */ React$1.createElement(Box, {
|
|
@@ -26740,7 +28337,7 @@ var CustomKV = ({ title = "", subTitle = "", children }) => {
|
|
|
26740
28337
|
className: styles$2.kvWrapper
|
|
26741
28338
|
}, /* @__PURE__ */ React$1.createElement("label", {
|
|
26742
28339
|
className: styles$2.kvTitle
|
|
26743
|
-
},
|
|
28340
|
+
}, title2), /* @__PURE__ */ React$1.createElement("label", {
|
|
26744
28341
|
className: styles$2.kvSubTitle
|
|
26745
28342
|
}, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
|
|
26746
28343
|
};
|
|
@@ -26752,7 +28349,7 @@ var styles$1 = {
|
|
|
26752
28349
|
tabTitle: tabTitle$1,
|
|
26753
28350
|
tabLabel: tabLabel$1
|
|
26754
28351
|
};
|
|
26755
|
-
const CustomTabItem$1 = ({ title, icon }) => {
|
|
28352
|
+
const CustomTabItem$1 = ({ title: title2, icon }) => {
|
|
26756
28353
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
26757
28354
|
className: styles$1.customTabItem
|
|
26758
28355
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -26762,7 +28359,7 @@ const CustomTabItem$1 = ({ title, icon }) => {
|
|
|
26762
28359
|
size: "small"
|
|
26763
28360
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
26764
28361
|
className: styles$1.tabLabel
|
|
26765
|
-
},
|
|
28362
|
+
}, title2)));
|
|
26766
28363
|
};
|
|
26767
28364
|
function FtpBuild({ schema }) {
|
|
26768
28365
|
const [_2, forceUpdate] = React$1.useState({});
|
|
@@ -27002,6 +28599,7 @@ function MDDEditor(props) {
|
|
|
27002
28599
|
customSchema,
|
|
27003
28600
|
moduleDataSource,
|
|
27004
28601
|
refreshModuleDataSource,
|
|
28602
|
+
blocksDataSource,
|
|
27005
28603
|
moduleMap = /* @__PURE__ */ new Map(),
|
|
27006
28604
|
scriptTopButtons = []
|
|
27007
28605
|
} = props;
|
|
@@ -27012,7 +28610,8 @@ function MDDEditor(props) {
|
|
|
27012
28610
|
React$1.useEffect(() => {
|
|
27013
28611
|
setModules({
|
|
27014
28612
|
$ModuleDataSource: moduleDataSource,
|
|
27015
|
-
$RefreshModuleDataSource: refreshModuleDataSource
|
|
28613
|
+
$RefreshModuleDataSource: refreshModuleDataSource,
|
|
28614
|
+
$BlocksDataSource: blocksDataSource
|
|
27016
28615
|
});
|
|
27017
28616
|
console.log("moduleDataSource: ", moduleDataSource);
|
|
27018
28617
|
window.__MDD_ModuleDataSource = moduleDataSource;
|
|
@@ -27112,7 +28711,7 @@ function getCompAndSchemaFromSchemaJson(schemaJson, customComponent, customSchem
|
|
|
27112
28711
|
}
|
|
27113
28712
|
switch (schemaJson.body.type) {
|
|
27114
28713
|
case "ftp": {
|
|
27115
|
-
return [customComponent || FtpBuild$1, customSchema || FtpSchema
|
|
28714
|
+
return [customComponent || FtpBuild$1, customSchema || FtpSchema];
|
|
27116
28715
|
}
|
|
27117
28716
|
case "formily-form-v2": {
|
|
27118
28717
|
return [customComponent || FormBuild, customSchema || FormilyFormV2Schema];
|
|
@@ -27121,7 +28720,19 @@ function getCompAndSchemaFromSchemaJson(schemaJson, customComponent, customSchem
|
|
|
27121
28720
|
return [customComponent || DetailBuild, customSchema || DetailSchema];
|
|
27122
28721
|
}
|
|
27123
28722
|
case "edit-table": {
|
|
27124
|
-
return [customComponent || FtpBuild, customSchema ||
|
|
28723
|
+
return [customComponent || FtpBuild, customSchema || EditTableSchema];
|
|
28724
|
+
}
|
|
28725
|
+
case "blocks-table": {
|
|
28726
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
28727
|
+
}
|
|
28728
|
+
case "blocks-filter": {
|
|
28729
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
28730
|
+
}
|
|
28731
|
+
case "blocks-form": {
|
|
28732
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
28733
|
+
}
|
|
28734
|
+
case "blocks-edit-table": {
|
|
28735
|
+
return [customComponent || BlocksBuild, customSchema || BlocksSchema];
|
|
27125
28736
|
}
|
|
27126
28737
|
default:
|
|
27127
28738
|
return null;
|
|
@@ -27215,7 +28826,7 @@ var styles = {
|
|
|
27215
28826
|
tabTitle,
|
|
27216
28827
|
tabLabel
|
|
27217
28828
|
};
|
|
27218
|
-
const CustomTabItem = ({ title, icon }) => {
|
|
28829
|
+
const CustomTabItem = ({ title: title2, icon }) => {
|
|
27219
28830
|
return /* @__PURE__ */ React$1.createElement("div", {
|
|
27220
28831
|
className: styles.customTabItem
|
|
27221
28832
|
}, /* @__PURE__ */ React$1.createElement("div", {
|
|
@@ -27225,7 +28836,7 @@ const CustomTabItem = ({ title, icon }) => {
|
|
|
27225
28836
|
size: "small"
|
|
27226
28837
|
}), /* @__PURE__ */ React$1.createElement("span", {
|
|
27227
28838
|
className: styles.tabLabel
|
|
27228
|
-
},
|
|
28839
|
+
}, title2)));
|
|
27229
28840
|
};
|
|
27230
28841
|
function SimpleFtp({ schema }) {
|
|
27231
28842
|
return /* @__PURE__ */ React$1.createElement(Tab, {
|
|
@@ -27241,7 +28852,7 @@ function SimpleFtp({ schema }) {
|
|
|
27241
28852
|
}, /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
27242
28853
|
title: "\u641C\u7D22\u533A",
|
|
27243
28854
|
icon: "search"
|
|
27244
|
-
}, /* @__PURE__ */ React$1.createElement(FilterPanel, {
|
|
28855
|
+
}, /* @__PURE__ */ React$1.createElement(FilterPanel$2, {
|
|
27245
28856
|
schema: schema.getFilterPanel()
|
|
27246
28857
|
})), /* @__PURE__ */ React$1.createElement(Tab.Item, {
|
|
27247
28858
|
title: "\u9876\u90E8\u64CD\u4F5C\u533A",
|
|
@@ -27327,4 +28938,4 @@ function getDefaultIndexStyle() {
|
|
|
27327
28938
|
// }
|
|
27328
28939
|
`;
|
|
27329
28940
|
}
|
|
27330
|
-
export { DetailBuild, DetailSchema, EVENT_KEY, FtpBuild as EditTableBuild,
|
|
28941
|
+
export { DetailBuild, DetailSchema, EVENT_KEY, FtpBuild as EditTableBuild, EditTableSchema, FormBuild, FormilyFormV2Schema, FtpBuild$1 as FtpBuild, FtpSchema, MDD_SCHEMA_LS_KEY, PERSISTENT_STORE_LS_KEY, SWAGGER_DT, SWAGGER_FT, SimpleFtp, api2SchemaFromSwagger, api2SchemaFromSwaggerApiInfo, buildFieldsToCompJson, buildSwaggerApiJson, calcWordWidth, MDDEditor as default, getApiInfo, getDefaultFomrLabelAlign, getDefaultIndexScript, getDefaultIndexStyle, getGlobalSizeFromCookie, getLocalProjectSwaggerOpts, getSwaggerInfoFromJson, upperFirst$1 as upperFirst, useModule$1 as useModule, useSchema$1 as useSchema, useSwagger$1 as useSwagger };
|