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

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.
Files changed (74) hide show
  1. package/README.MD +148 -9
  2. package/build/index.cjs.js +25 -19
  3. package/build/index.es.js +2329 -724
  4. package/build/style.css +1 -1
  5. package/package.json +2 -2
  6. package/src/components/address-select/formily.jsx +1 -1
  7. package/src/components/ajax-schema-form/formily-table-form-proxy.jsx +1 -1
  8. package/src/components/ajax-schema-form/formily.jsx +1 -1
  9. package/src/components/ajax-schema-form/table-form-proxy.jsx +1 -1
  10. package/src/components/ajax-schema-form/table-form.jsx +1 -1
  11. package/src/components/data-source-select/formily.jsx +1 -1
  12. package/src/components/dynamic-value/base/formily.jsx +1 -1
  13. package/src/components/dynamic-value/date/formily.jsx +1 -1
  14. package/src/components/formily-select/index.tsx +1 -1
  15. package/src/components/params-select/formily.jsx +1 -1
  16. package/src/components/time-range/formily.jsx +1 -1
  17. package/src/hooks/useSchema.jsx +5 -5
  18. package/src/hooks/useSwagger.jsx +2 -2
  19. package/src/schema/base-schema/AjaxSchema.js +1 -1
  20. package/src/schema/base-schema/AjaxSchemaQueue.js +1 -1
  21. package/src/schema/blocks/edit-table.js +57 -0
  22. package/src/schema/blocks/filter.js +49 -0
  23. package/src/schema/blocks/form.js +49 -0
  24. package/src/schema/blocks/index.js +101 -0
  25. package/src/schema/blocks/table.js +57 -0
  26. package/src/schema/detail/detail-item.js +10 -2
  27. package/src/schema/detail/index.js +26 -18
  28. package/src/schema/edit-table/header-toolbar.js +1 -1
  29. package/src/schema/edit-table/index.js +5 -5
  30. package/src/schema/edit-table/table.js +10 -2
  31. package/src/schema/formily-form/data-source.js +1 -1
  32. package/src/schema/formily-form/form-schema.js +1 -1
  33. package/src/schema/formily-form/index.js +8 -8
  34. package/src/schema/formily-form-v2/form-info.js +2 -2
  35. package/src/schema/formily-form-v2/form-items.js +1 -1
  36. package/src/schema/formily-form-v2/index.js +3 -3
  37. package/src/schema/ftp/data-source.js +1 -1
  38. package/src/schema/ftp/filter.js +2 -2
  39. package/src/schema/ftp/header-toolbar.js +1 -1
  40. package/src/schema/ftp/index.js +4 -4
  41. package/src/schema/ftp/middle-item.js +1 -1
  42. package/src/schema/ftp/table.js +9 -3
  43. package/src/schema/util.js +3 -3
  44. package/src/services/index.js +1 -1
  45. package/src/template/blocks/EditTable.jsx +62 -0
  46. package/src/template/blocks/Filter.jsx +137 -0
  47. package/src/template/blocks/Form.jsx +136 -0
  48. package/src/template/blocks/Table.jsx +79 -0
  49. package/src/template/blocks/index.module.scss +33 -0
  50. package/src/template/const.js +18 -1
  51. package/src/template/detail/DetailItems.jsx +9 -1
  52. package/src/template/detail/components/Actions.jsx +1 -1
  53. package/src/template/detail/components/DetailCard.jsx +8 -5
  54. package/src/template/detail/components/DetailColumns.jsx +296 -0
  55. package/src/template/detail/components/DetailColumns.module.scss +18 -0
  56. package/src/template/detail/components/DetailCustom.jsx +2 -2
  57. package/src/template/detail/components/DetailTable.jsx +13 -8
  58. package/src/template/detail/components/MultiAjaxSchemaForm.jsx +1 -1
  59. package/src/template/edit-table/HeaderToolbar.jsx +1 -1
  60. package/src/template/edit-table/Table.jsx +56 -3
  61. package/src/template/formily-form-v2/FormInfo.jsx +1 -1
  62. package/src/template/formily-form-v2/FormItems.jsx +4 -8
  63. package/src/template/formilyform/components/AsyncDataSourceSetter/index.tsx +1 -1
  64. package/src/template/formilyform/components/SubmitActionSetter/index.tsx +1 -1
  65. package/src/template/ftp/DataSource.jsx +1 -1
  66. package/src/template/ftp/Filter.jsx +4 -4
  67. package/src/template/ftp/HeaderToolbar.jsx +1 -1
  68. package/src/template/ftp/Middle.jsx +4 -4
  69. package/src/template/ftp/Table.jsx +94 -9
  70. package/src/template/simple-ftp/Table.jsx +2 -2
  71. package/src/toolbar.jsx +2 -2
  72. package/src/utils/buildFieldsToCompJson.js +3 -3
  73. package/src/utils/persistentStorage.js +1 -1
  74. 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, Switch, Tab, CnSwitch, CnNumberPicker, CnRadioGroup, CnRadio, CnMessage, CnTooltip, CnButton, CnIcon, CnDrawer, CnCard, CnTab, CnTabItem } from "@cainiaofe/cn-ui";
10
+ import { Message, Radio, Select as Select$2, Checkbox, Grid, Button, Table, Input as Input$1, formilyReact, Icon, TimePicker2, ConfigProvider, formilyCore, CnForm, Range, Rating, componentMap, Card, Form, Dialog, CnAsyncSelect, Box, Collapse, Balloon, NumberPicker, CnSwitch, CnTooltip, Switch, Tab, CnNumberPicker, CnRadioGroup, CnRadio, CnMessage, CnButton, CnIcon, CnDrawer, CnCard, CnTab, CnTabItem } from "@cainiaofe/cn-ui";
11
11
  import { isArray as isArray$6, isObject as isObject$e, keys as keys$4, isString, remove } from "lodash";
12
12
  import axios from "axios";
13
13
  import { useDebounceFn, useToggle } from "ahooks";
@@ -1225,8 +1225,8 @@ const CURRENT_EDITOR_VERSION = "0.1.15";
1225
1225
  class Schema extends EventEmitter {
1226
1226
  constructor(props) {
1227
1227
  super();
1228
- const { title = "", host = "https://mock.alibaba-inc.com", editorVersion = "" } = props || {};
1229
- this.title = title;
1228
+ const { title: title2 = "", host = "https://mock.alibaba-inc.com", editorVersion = "" } = props || {};
1229
+ this.title = title2;
1230
1230
  this.host = host;
1231
1231
  this.type = "page";
1232
1232
  this.editorVersion = editorVersion ? editorVersion : CURRENT_EDITOR_VERSION;
@@ -1245,8 +1245,8 @@ class Schema extends EventEmitter {
1245
1245
  this.host = host;
1246
1246
  }
1247
1247
  init(data) {
1248
- const { title, host, editorVersion } = data || {};
1249
- this.title = title;
1248
+ const { title: title2, host, editorVersion } = data || {};
1249
+ this.title = title2;
1250
1250
  this.host = host;
1251
1251
  this.editorVersion = editorVersion;
1252
1252
  }
@@ -1430,16 +1430,19 @@ function object2Array(obj, pre = "") {
1430
1430
  };
1431
1431
  }).flat(Infinity);
1432
1432
  }
1433
- class TableSchema$1 extends JSONWatch {
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
- /*! js-cookie v3.0.5 | MIT */
1562
- function assign(target) {
1563
- for (var i = 1; i < arguments.length; i++) {
1564
- var source = arguments[i];
1565
- for (var key in source) {
1566
- target[key] = source[key];
1567
- }
1568
- }
1569
- return target;
1570
- }
1571
- var defaultConverter = {
1572
- read: function(value) {
1573
- if (value[0] === '"') {
1574
- value = value.slice(1, -1);
1575
- }
1576
- return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
1577
- },
1578
- write: function(value) {
1579
- return encodeURIComponent(value).replace(
1580
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1581
- decodeURIComponent
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
- name = encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1598
- var stringifiedAttributes = "";
1599
- for (var attributeName in attributes) {
1600
- if (!attributes[attributeName]) {
1601
- continue;
1602
- }
1603
- stringifiedAttributes += "; " + attributeName;
1604
- if (attributes[attributeName] === true) {
1605
- continue;
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
- stringifiedAttributes += "=" + attributes[attributeName].split(";")[0];
1600
+ return result;
1608
1601
  }
1609
- return document.cookie = name + "=" + converter.write(value, name) + stringifiedAttributes;
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
- var cookies = document.cookie ? document.cookie.split("; ") : [];
1616
- var jar = {};
1617
- for (var i = 0; i < cookies.length; i++) {
1618
- var parts = cookies[i].split("=");
1619
- var value = parts.slice(1).join("=");
1620
- try {
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
- } catch (e) {
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
- return name ? jar[name] : jar;
1630
- }
1631
- return Object.create(
1632
- {
1633
- set,
1634
- get: get2,
1635
- remove: function(name, attributes) {
1636
- set(
1637
- name,
1638
- "",
1639
- assign({}, attributes, {
1640
- expires: -1
1641
- })
1642
- );
1643
- },
1644
- withAttributes: function(attributes) {
1645
- return init$1(this.converter, assign({}, this.attributes, attributes));
1646
- },
1647
- withConverter: function(converter2) {
1648
- return init$1(assign({}, this.converter, converter2), this.attributes);
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
- attributes: { value: Object.freeze(defaultAttributes) },
1653
- converter: { value: Object.freeze(converter) }
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
- var api = init$1(defaultConverter, { path: "/" });
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 api == null ? void 0 : api.get("CNUICOOKIESIZE");
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 = (api2, apiMeta) => {
1975
- if (!api2 || !apiMeta) {
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[api2]) {
1980
- throw Error(`mdd-tool columns complier error: api meta has not api: ${api2}`);
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[api2], "post")) {
2019
+ if (Object.prototype.hasOwnProperty.call(paths[api], "post")) {
1985
2020
  method = "post";
1986
- apiInfo = paths[api2]["post"];
1987
- } else if (Object.prototype.hasOwnProperty.call(paths[api2], "get")) {
2021
+ apiInfo = paths[api]["post"];
2022
+ } else if (Object.prototype.hasOwnProperty.call(paths[api], "get")) {
1988
2023
  method = "get";
1989
- apiInfo = paths[api2]["get"];
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: api2,
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 = title || description || key;
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(api2, swaggerInfo) {
2472
+ function getApiInfo(api, swaggerInfo) {
2436
2473
  const realSwaggerInfo = jsonSchemaRefParser(transferOpenAPI3ToSwagger2$1(swaggerInfo));
2437
- return buildSwaggerApiJson(api2, realSwaggerInfo);
2474
+ return buildSwaggerApiJson(api, realSwaggerInfo);
2438
2475
  }
2439
- function api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema = {}) {
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: api2,
2463
- url: api2
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: api2,
2509
- url: api2
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: api2,
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: api2,
2582
- url: api2
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: false
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(api2, schemaType, swaggerInfo, extraSchema = {}) {
2615
- const apiInfo = getApiInfo(api2, swaggerInfo);
2616
- return api2SchemaFromSwaggerApiInfo(api2, schemaType, apiInfo, extraSchema);
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$1 extends Schema {
2793
+ class FtpSchema extends Schema {
2751
2794
  constructor(props, isCompleteSchema = false) {
2752
- const { api: api2, filter, headerToolbar, table, tabs, middleModules, ...more2 } = isCompleteSchema ? props.body : props;
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(api2);
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$1(table);
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: api2, filter, headerToolbar, table, tabs, middleModules } = body;
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(api2);
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$1, "Filter", Filter);
2924
- __publicField(FtpSchema$1, "HeaderToolbar", HeaderToolbar$1);
2925
- __publicField(FtpSchema$1, "Table", TableSchema$1);
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: api2, initApi, effectApi, baseInfo, fields: fields2, ...more2 } = isCompleteSchema ? props.body : props;
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(api2);
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: api2, initApi = [], effectApi = [], baseInfo, fields: fields2 } = body;
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(api2);
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 = false,
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 FtpSchema extends Schema {
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 _objectAssign_4_1_1_objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
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 _fastDeepEqual_3_1_3_fastDeepEqual = function equal(a, b) {
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 (!_fastDeepEqual_3_1_3_fastDeepEqual(collected, nextValue)) {
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$c = {
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 _hox_1_1_6_hox = {};
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 _reactReconciler_0_26_2_reactReconciler = { exports: {} };
8090
+ var reactReconciler = { exports: {} };
7804
8091
  var reactReconciler_production_min = { exports: {} };
7805
- var _scheduler_0_20_2_scheduler = { exports: {} };
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
- _scheduler_0_20_2_scheduler.exports = scheduler_production_min;
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 = _objectAssign_4_1_1_objectAssign, ba = React$1, m2 = _scheduler_0_20_2_scheduler.exports;
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
- _reactReconciler_0_26_2_reactReconciler.exports = reactReconciler_production_min.exports;
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(_reactReconciler_0_26_2_reactReconciler.exports);
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(_hox_1_1_6_hox, "__esModule", { value: true });
13283
+ Object.defineProperty(hox, "__esModule", { value: true });
12997
13284
  var create_model_1 = createModel$2;
12998
- var createModel = _hox_1_1_6_hox.createModel = create_model_1.createModel;
12999
- _hox_1_1_6_hox.createLazyModel = create_model_1.createLazyModel;
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
- _hox_1_1_6_hox.withModel = with_model_1.withModel;
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, api2, method, request = []) {
13349
+ function createApiSelectItem(summary, api, method, request = []) {
13063
13350
  return {
13064
13351
  summary,
13065
- label: `${summary} - ${method} ${api2}`,
13066
- value: api2,
13067
- url: api2,
13352
+ label: `${summary} - ${method} ${api}`,
13353
+ value: api,
13354
+ url: api,
13068
13355
  method,
13069
13356
  request,
13070
- parameters: api2.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 api2 = paths[key];
13077
- const apiPost = api2.post || api2.POST;
13078
- const apiGet = api2.get || api2.GET;
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(api2) {
13152
- const { url, method = "get", ...more2 } = api2 || {};
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, api2, mainDataSource, moreProps) => {
14151
+ const buildSchema = (schemaType, api, mainDataSource, moreProps) => {
13865
14152
  let schemaObj = null;
13866
14153
  if (schemaType === "ftp") {
13867
- schemaObj = new FtpSchema$1({ host: api2, title: "" });
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: api2, title: "" });
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: api2, title: "" });
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: api2, title: "", ...moreProps });
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: api2, title: "", initDataSource: realDataSource });
14191
+ schemaObj = new DetailSchema({ host: api, title: "", initDataSource: realDataSource });
13905
14192
  }
13906
14193
  } else if (schemaType === "edit-table") {
13907
- schemaObj = new FtpSchema({ host: api2, title: "", ...moreProps });
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 (api2.indexOf("?") === -1 && api2.indexOf("mocks") === -1) {
13935
- axios.defaults.baseURL = api2;
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: api2, ...more2 } = body || {};
14231
+ const { type, api, ...more2 } = body || {};
13945
14232
  if (!host || !type) {
13946
14233
  return null;
13947
14234
  }
13948
- return buildSchema(type, host, api2, more2);
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$c.staticValueOkBtn,
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$c.staticValueOkBtn,
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$c.staticValueOkBtn,
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$c.staticValueOkBtn,
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$c.tableDeleteBtn,
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$c.dsTitle
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$c.watchContainer
14979
+ className: styles$e.watchContainer
14693
14980
  }, /* @__PURE__ */ React$1.createElement("div", {
14694
- className: styles$c.dsTitleWatch
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$c.staticValueOkBtn,
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$c.staticValueOkBtn,
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$c.staticValueOkBtn,
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$c.staticValueOkBtn,
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$c.staticValueOkBtn,
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$c.dsTitle
15341
+ className: styles$e.dsTitle
15055
15342
  }, "\u683C\u5F0F\u5316\u51FA\u53C2:"), /* @__PURE__ */ React$1.createElement("div", {
15056
- className: styles$c.actionButton
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$c.dsContainer
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$c.dsType
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$c.dsJSONContent
15405
+ className: styles$e.dsJSONContent
15119
15406
  }, /* @__PURE__ */ React$1.createElement("div", {
15120
- className: styles$c.dsJSONContentTip
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$c.dsAjaxContent
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$c.secondConfirm
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$b = {
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$b.staticValueOkBtn,
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$b.staticValueOkBtn,
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$b.staticValueOkBtn,
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$b.staticValueOkBtn,
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$b.staticValueOkBtn,
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$b.tableDeleteBtn,
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$b.dsContainer
15917
+ className: styles$d.dsContainer
15631
15918
  }, /* @__PURE__ */ React$1.createElement("div", {
15632
- className: styles$b.dsAjaxContent
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$a = {
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$a.container
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$a.footer
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 api2 = swagger.getApi(value);
16472
- if (api2) {
16473
- schema.setAjaxRequest(value, api2.method);
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: "\u81EA\u5B9A\u4E49",
16908
- value: "custom"
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 = ({ moduleDataSource = {} }) => {
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,173 +19676,49 @@ 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 Columns = {
19199
- text: TextSchema,
19200
- tpl: TplSchema,
19201
- tag: TagSchema,
19202
- "single-enum": EnumSchema,
19203
- date: DateSchema,
19204
- custom: CustomSchema,
19205
- num: NumSchema,
19206
- clipboard: ClipboardSchema,
19207
- list: ListSchema,
19208
- "tooltip-text": TooltipText,
19209
- images: Images,
19210
- "cn-tag": CnTag,
19211
- "cn-number": CnNumber,
19212
- "cn-bank": CnBank,
19213
- "cn-image-text": CnImageText,
19214
- "cn-progress": CnProgress,
19215
- "cn-graphics-percent": cnGraphicsPercent
19216
- };
19217
- var TablePagination = {
19218
- form: {
19219
- labelCol: 6,
19220
- wrapperCol: 16
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
- disableGlobalConfig: {
19238
- type: "boolean",
19239
- title: "\u7981\u7528\u5168\u5C40\u914D\u7F6E",
19240
- "x-decorator": "CnFormItem",
19241
- "x-component": "Switch",
19242
- "x-validator": [],
19243
- "x-component-props": {},
19244
- "x-decorator-props": {
19245
- tip: "\u5F00\u542F\u7981\u7528\u5168\u5C40\u914D\u7F6E\u540E\uFF0C\u624D\u80FD\u8BBE\u7F6E\u9ED8\u8BA4\u6BCF\u9875\u6761\u6570"
19246
- },
19247
- name: "disableGlobalConfig",
19248
- default: false,
19249
- "x-designable-id": "v80d22232s7cnp"
19250
- },
19251
- defaultPageSize: {
19252
- type: "number",
19253
- title: "\u6BCF\u9875\u6570\u91CF",
19254
- "x-decorator": "CnFormItem",
19255
- "x-component": "CnNumberPicker",
19256
- "x-validator": [],
19257
- "x-component-props": {
19258
- placeholder: "\u8BF7\u8F93\u5165\u6BCF\u9875\u6570\u91CF"
19259
- },
19260
- "x-decorator-props": {
19261
- tip: ""
19262
- },
19263
- default: "20",
19264
- "x-designable-id": "ecc63shkjtk",
19265
- description: "",
19266
- name: "defaultPageSize",
19267
- "x-reactions": {
19268
- dependencies: [
19269
- {
19270
- property: "value",
19271
- type: "any",
19272
- source: "paging",
19273
- name: "paging"
19274
- },
19275
- {
19276
- property: "value",
19277
- type: "any",
19278
- source: "disableGlobalConfig",
19279
- name: "disableGlobalConfig"
19280
- }
19281
- ],
19282
- fulfill: {
19283
- state: {
19284
- hidden: "{{$deps.paging === false || $deps.disableGlobalConfig === false}}"
19285
- }
19286
- }
19287
- }
19288
- },
19289
- pageSizeList: {
19290
- type: "string",
19291
- title: "\u5206\u9875\u53EF\u9009\u5927\u5C0F",
19292
- "x-decorator": "CnFormItem",
19293
- "x-component": "Input",
19294
- "x-validator": [],
19295
- "x-component-props": {
19296
- placeholder: "\u8BF7\u8F93\u5165\u5206\u9875\u6570\u503C\uFF0C\u9017\u53F7\u9694\u5F00\uFF0C eg: 10,20,30,50"
19297
- },
19298
- default: "",
19299
- "x-decorator-props": {},
19300
- name: "pageSizeList",
19301
- "x-designable-id": "v80d22232s7cnp222",
19302
- "x-reactions": {
19303
- dependencies: [
19304
- {
19305
- property: "value",
19306
- type: "any",
19307
- source: "paging",
19308
- name: "paging"
19309
- }
19310
- ],
19311
- fulfill: {
19312
- state: {
19313
- hidden: "{{$deps.paging === false }}"
19314
- }
19315
- }
19316
- }
19317
- }
19318
- },
19319
- "x-designable-id": "c1f6xiczrp8"
19320
- }
19321
- };
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"
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"
19359
19722
  },
19360
19723
  name: "serverI18nKey",
19361
19724
  "x-designable-id": "sxbtip22223122mzk"
@@ -19398,8 +19761,229 @@ var formCommon = () => {
19398
19761
  }
19399
19762
  }
19400
19763
  }
19401
- }
19402
- };
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",
19943
+ type: "any",
19944
+ source: "disableGlobalConfig",
19945
+ name: "disableGlobalConfig"
19946
+ }
19947
+ ],
19948
+ fulfill: {
19949
+ state: {
19950
+ hidden: "{{$deps.paging === false || $deps.disableGlobalConfig === false}}"
19951
+ }
19952
+ }
19953
+ }
19954
+ },
19955
+ pageSizeList: {
19956
+ type: "string",
19957
+ title: "\u5206\u9875\u53EF\u9009\u5927\u5C0F",
19958
+ "x-decorator": "CnFormItem",
19959
+ "x-component": "Input",
19960
+ "x-validator": [],
19961
+ "x-component-props": {
19962
+ placeholder: "\u8BF7\u8F93\u5165\u5206\u9875\u6570\u503C\uFF0C\u9017\u53F7\u9694\u5F00\uFF0C eg: 10,20,30,50"
19963
+ },
19964
+ default: "",
19965
+ "x-decorator-props": {},
19966
+ name: "pageSizeList",
19967
+ "x-designable-id": "v80d22232s7cnp222",
19968
+ "x-reactions": {
19969
+ dependencies: [
19970
+ {
19971
+ property: "value",
19972
+ type: "any",
19973
+ source: "paging",
19974
+ name: "paging"
19975
+ }
19976
+ ],
19977
+ fulfill: {
19978
+ state: {
19979
+ hidden: "{{$deps.paging === false }}"
19980
+ }
19981
+ }
19982
+ }
19983
+ }
19984
+ },
19985
+ "x-designable-id": "c1f6xiczrp8"
19986
+ }
19403
19987
  };
19404
19988
  const getEditCommonColumnProps = () => {
19405
19989
  return {
@@ -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"
@@ -23202,15 +23834,282 @@ var AddressSelectSchema = () => {
23202
23834
  "x-validator": [],
23203
23835
  "x-component-props": {},
23204
23836
  "x-decorator-props": {},
23205
- name: "required",
23206
- "x-designable-id": "ff3dus7pijt"
23207
- }
23208
- },
23209
- "x-designable-id": "yk7opli2cp8"
23837
+ name: "required",
23838
+ "x-designable-id": "ff3dus7pijt"
23839
+ }
23840
+ },
23841
+ "x-designable-id": "yk7opli2cp8"
23842
+ }
23843
+ };
23844
+ };
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
+ }
23210
24108
  }
23211
24109
  };
23212
24110
  };
23213
- var ImportComponentSchema = ({ moduleDataSource = {} }) => {
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
- ...formCommon(),
23223
- defaultValue: {
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\u6A21\u5757\u5730\u5740",
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: "path",
23276
- enum: (moduleDataSource == null ? void 0 : moduleDataSource.l4ModuleOptions) || [],
24135
+ name: "blockPath",
24136
+ enum: (blocksDataSource == null ? void 0 : blocksDataSource.filter((b) => b.mddTemplateType === "blocks-edit-table")) || [],
23277
24137
  default: "",
23278
- "x-designable-id": "9efgu22662lzttsh"
24138
+ "x-designable-id": "9efgulzttsh"
23279
24139
  },
23280
- params: {
23281
- type: "string",
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
- const fields = {
23299
- input: InputSchema,
23300
- batchInput: BatchInputSchema,
23301
- "input-textarea": InputSchema,
23302
- "input-password": InputSchema,
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 = cloneDeep_1(fields);
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$9 = {
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$2 } = Collapse;
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$9)({
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$9.itemComponent
24724
+ className: styles$b.itemComponent
23827
24725
  }, /* @__PURE__ */ React$1.createElement("label", {
23828
- className: styles$9.itemLabel
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$9.itemComponent
24745
+ className: styles$b.itemComponent
23848
24746
  }, /* @__PURE__ */ React$1.createElement("label", {
23849
- className: styles$9.itemLabel
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$9.itemClose,
24756
+ className: styles$b.itemClose,
23859
24757
  onClick: onRemove
23860
24758
  }));
23861
24759
  };
23862
- const ContentRender$1 = (props) => {
23863
- const { values, effects, onChange, schema, index: index2, extraFieldSchema: extraFieldSchema2, updateForceFLag } = props;
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$9.collapseContent
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$9.mddTableForm
24881
+ className: styles$b.mddTableForm
23973
24882
  }, /* @__PURE__ */ React$1.createElement("div", {
23974
- className: styles$9.tableFormTitle
23975
- }, /* @__PURE__ */ React$1.createElement("div", null, title, tip && /* @__PURE__ */ React$1.createElement(Tooltip, {
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$9.tableFormAction
24891
+ className: styles$b.tableFormAction
23983
24892
  }, actionContent)), /* @__PURE__ */ React$1.createElement("div", {
23984
- className: styles$9.tableFormContent
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 || `${title}_${idx}`;
23991
- return /* @__PURE__ */ React$1.createElement(Panel$2, {
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$1, {
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$9.tableFormBottom
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$8 = {
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$8.content
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$8.mddForm,
25026
+ className: styles$a.mddForm,
24110
25027
  style: style2
24111
25028
  }, /* @__PURE__ */ React$1.createElement("div", {
24112
- className: styles$8.FormTitle
24113
- }, title), help && /* @__PURE__ */ React$1.createElement("div", {
24114
- className: styles$8.FormTitleHelp
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$8.FormContent,
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,
@@ -24526,34 +25459,38 @@ function HeaderToolbarPanel$1({ schema, moduleMap }) {
24526
25459
  }
24527
25460
  }));
24528
25461
  }
24529
- function TablePanel$2({ schema, swaggerFields = [] }) {
25462
+ function TablePanel$3({ schema, swaggerFields = [] }) {
24530
25463
  var _a2;
24531
25464
  const columnMddFormRef = React$1.useRef();
24532
25465
  const bulkMddFormRef = React$1.useRef();
24533
25466
  const operateMddFormRef = React$1.useRef();
25467
+ const rowDoubleClickRef = React$1.useRef();
24534
25468
  const [_2, forceUpdate] = useState({});
24535
25469
  const [visibleRowDetail, setVisibleRowDetail] = useState(!!((_a2 = schema.get("rowDetailModule")) == null ? void 0 : _a2.path));
24536
25470
  useEffect(() => {
24537
25471
  schema.on("$updated", (changeData, ignoreUpdate) => {
24538
25472
  !ignoreUpdate && forceUpdate({});
24539
25473
  });
24540
- hackRowDetail(schema);
25474
+ hackRowDetail$1(schema);
24541
25475
  }, []);
24542
25476
  const primaryKey = schema.get("primaryKey");
24543
25477
  const bulkActions = schema.get("bulkActions");
24544
25478
  const columns = schema.get("columns");
24545
25479
  const actionColumns = schema.get("actionColumns");
25480
+ const rowDoubleClick = schema.get("rowDoubleClick");
24546
25481
  const pagination = schema.get("pagination");
24547
25482
  const tree = schema.get("tree");
24548
25483
  const showIndex = schema.get("showIndex");
24549
25484
  const hideCommonToolbar = schema.get("hideCommonToolbar");
25485
+ const actionMaxCharNum = schema.get("actionMaxCharNum");
24550
25486
  const actionWidth = schema.get("actionWidth");
24551
25487
  const showSelect = schema.get("showSelect");
24552
25488
  const rowDetailModule = schema.get("rowDetailModule");
24553
25489
  const remoteSort = schema.get("remoteSort");
25490
+ const treeLinkageCheck = schema.get("treeLinkageCheck");
24554
25491
  const loadChildrenDataApiPanel = schema.getLoadChildrenDataApiPanel();
24555
25492
  const onAddHandle = (key) => {
24556
- var _a3, _b2, _c;
25493
+ var _a3, _b2, _c, _d;
24557
25494
  switch (key) {
24558
25495
  case "bulkActions":
24559
25496
  schema.add(
@@ -24603,10 +25540,26 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24603
25540
  );
24604
25541
  (_c = operateMddFormRef.current) == null ? void 0 : _c.updateData(schema.get("actionColumns"));
24605
25542
  break;
25543
+ case "rowDoubleClick":
25544
+ schema.add(
25545
+ {
25546
+ type: "button",
25547
+ action: {
25548
+ type: "url",
25549
+ params: {
25550
+ record: "$TABLE.RECORD_DATA"
25551
+ }
25552
+ }
25553
+ },
25554
+ "rowDoubleClick",
25555
+ true
25556
+ );
25557
+ (_d = rowDoubleClickRef.current) == null ? void 0 : _d.updateData(schema.get("rowDoubleClick"));
25558
+ break;
24606
25559
  }
24607
25560
  };
24608
25561
  const onRemoveHandle = (index2, key) => {
24609
- var _a3, _b2, _c;
25562
+ var _a3, _b2, _c, _d;
24610
25563
  schema.remove(index2, key, true);
24611
25564
  if (key === "bulkActions") {
24612
25565
  (_a3 = bulkMddFormRef.current) == null ? void 0 : _a3.updateData(schema.get("bulkActions"));
@@ -24614,11 +25567,16 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24614
25567
  (_b2 = columnMddFormRef.current) == null ? void 0 : _b2.updateData(schema.get("columns"));
24615
25568
  } else if (key === "actionColumns") {
24616
25569
  (_c = operateMddFormRef.current) == null ? void 0 : _c.updateData(schema.get("actionColumns"));
25570
+ } else if (key === "rowDoubleClick") {
25571
+ (_d = rowDoubleClickRef.current) == null ? void 0 : _d.updateData(schema.get("rowDoubleClick"));
24617
25572
  }
24618
25573
  };
24619
25574
  const onChangeHandle = ({ index: index2, record }, key) => {
24620
25575
  schema.update(index2, record, key, true);
24621
25576
  };
25577
+ const onActionMaxCharNum = (value) => {
25578
+ schema.update("", value ? Number(value) : "", "actionMaxCharNum");
25579
+ };
24622
25580
  const onActionWidthChange = (value) => {
24623
25581
  schema.update("", value ? Number(value) : "", "actionWidth");
24624
25582
  };
@@ -24671,8 +25629,48 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24671
25629
  onSort: (newList) => {
24672
25630
  schema.setItemAll(newList, "actionColumns", true);
24673
25631
  }
25632
+ }), /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
25633
+ ref: rowDoubleClickRef,
25634
+ data: rowDoubleClick,
25635
+ title: () => {
25636
+ var _a3;
25637
+ return /* @__PURE__ */ React$1.createElement("div", {
25638
+ style: { display: "flex", alignItems: "center", gap: 6 }
25639
+ }, "\u914D\u7F6E\u884C\u53CC\u51FB\u4E8B\u4EF6", /* @__PURE__ */ React$1.createElement(CnSwitch, {
25640
+ size: "small",
25641
+ checked: ((_a3 = schema.get("rowDoubleClick")) == null ? void 0 : _a3.length) > 0,
25642
+ onChange: (checked) => {
25643
+ if (checked)
25644
+ onAddHandle("rowDoubleClick");
25645
+ else
25646
+ onRemoveHandle(0, "rowDoubleClick");
25647
+ }
25648
+ }), /* @__PURE__ */ React$1.createElement(CnTooltip, {
25649
+ trigger: /* @__PURE__ */ React$1.createElement(Icon, {
25650
+ type: "prompt"
25651
+ })
25652
+ }, "\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"));
25653
+ },
25654
+ titleType: [],
25655
+ draggable: false,
25656
+ titleRender: () => "\u884C\u53CC\u51FB \u4E8B\u4EF6\u914D\u7F6E",
25657
+ onRemove: () => {
25658
+ },
25659
+ onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "rowDoubleClick")
24674
25660
  }), /* @__PURE__ */ React$1.createElement("div", {
24675
25661
  style: { marginLeft: "10px", marginBottom: 8 }
25662
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u64CD\u4F5C\u5217\u6309\u94AE\u6700\u957F\u5B57\u7B26\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
25663
+ value: actionMaxCharNum,
25664
+ size: "small",
25665
+ onChange: onActionMaxCharNum,
25666
+ min: 1,
25667
+ max: 10
25668
+ }), /* @__PURE__ */ React$1.createElement("span", {
25669
+ className: "mdd-tip"
25670
+ }, /* @__PURE__ */ React$1.createElement(Icon, {
25671
+ type: "prompt"
25672
+ }), " \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", {
25673
+ style: { marginLeft: "10px", marginBottom: 8 }
24676
25674
  }, /* @__PURE__ */ React$1.createElement("label", null, "\u64CD\u4F5C\u5217\u5BBD\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
24677
25675
  value: actionWidth,
24678
25676
  size: "small",
@@ -24683,10 +25681,11 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24683
25681
  type: "prompt"
24684
25682
  }), " \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
25683
  style: { marginLeft: "10px", marginBottom: 8 }
24686
- }, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
25684
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
24687
25685
  value: schema.get("maxHeight"),
24688
25686
  size: "small",
24689
- onChange: (v2) => onBaseInfoChange("maxHeight", v2)
25687
+ onChange: (v2) => onBaseInfoChange("maxHeight", v2),
25688
+ min: 0
24690
25689
  }), /* @__PURE__ */ React$1.createElement("span", {
24691
25690
  className: "mdd-tip"
24692
25691
  }, /* @__PURE__ */ React$1.createElement(Icon, {
@@ -24726,7 +25725,18 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24726
25725
  }, /* @__PURE__ */ React$1.createElement(Icon, {
24727
25726
  type: "prompt"
24728
25727
  }), " \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: "10px", marginBottom: 8, display: "flex" }
25728
+ style: { marginLeft: "20px", marginBottom: 8, display: "flex" }
25729
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u7236\u5B50\u8282\u70B9\u7EA7\u8054\u52FE\u9009\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
25730
+ autoWidth: true,
25731
+ checked: treeLinkageCheck,
25732
+ size: "small",
25733
+ onChange: (v2) => onBaseInfoChange("treeLinkageCheck", v2)
25734
+ }), /* @__PURE__ */ React$1.createElement("span", {
25735
+ className: "mdd-tip"
25736
+ }, /* @__PURE__ */ React$1.createElement(Icon, {
25737
+ type: "prompt"
25738
+ }), " ", "\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", {
25739
+ style: { marginLeft: "20px", marginBottom: 8, display: "flex" }
24730
25740
  }, /* @__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
25741
  schema: loadChildrenDataApiPanel,
24732
25742
  isSelectType: false
@@ -24748,7 +25758,7 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24748
25758
  type: "prompt"
24749
25759
  }), " \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7", " ")), /* @__PURE__ */ React$1.createElement("div", {
24750
25760
  style: { marginLeft: "10px", marginBottom: 8 }
24751
- }, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u5F71\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
25761
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
24752
25762
  autoWidth: true,
24753
25763
  checked: hideCommonToolbar,
24754
25764
  size: "small",
@@ -24757,7 +25767,7 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24757
25767
  className: "mdd-tip"
24758
25768
  }, /* @__PURE__ */ React$1.createElement(Icon, {
24759
25769
  type: "prompt"
24760
- }), " \u662F\u5426\u5F71\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", {
25770
+ }), " \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
25771
  style: { marginLeft: "10px", marginBottom: 8 }
24762
25772
  }, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u53EF\u9009\u62E9\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
24763
25773
  autoWidth: true,
@@ -24821,13 +25831,13 @@ function TablePanel$2({ schema, swaggerFields = [] }) {
24821
25831
  type: "prompt"
24822
25832
  }), " \u5982\u679C\u6709\u6027\u80FD\u95EE\u9898\u53EF\u4EE5\u5173\u95ED\u8BE5\u5C5E\u6027\uFF0C\u540C\u65F6\u624B\u52A8\u8BBE\u7F6E\u5217\u5BBD")));
24823
25833
  }
24824
- function hackRowDetail(schema) {
25834
+ function hackRowDetail$1(schema) {
24825
25835
  const rowDetail = schema.get("rowDetail");
24826
25836
  if (rowDetail) {
24827
25837
  schema.set("rowDetail", void 0);
24828
25838
  }
24829
25839
  }
24830
- var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
25840
+ var immutabilityHelper = { exports: {} };
24831
25841
  (function(module, exports) {
24832
25842
  Object.defineProperty(exports, "__esModule", { value: true });
24833
25843
  function stringifiable(obj) {
@@ -24849,7 +25859,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
24849
25859
  function type(obj) {
24850
25860
  return toString2.call(obj).slice(8, -1);
24851
25861
  }
24852
- var assign2 = Object.assign || function(target, source) {
25862
+ var assign = Object.assign || function(target, source) {
24853
25863
  getAllKeys2(source).forEach(function(key) {
24854
25864
  if (hasOwnProperty2.call(source, key)) {
24855
25865
  target[key] = source[key];
@@ -24863,11 +25873,11 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
24863
25873
  return Object.keys(obj);
24864
25874
  };
24865
25875
  function copy(object) {
24866
- return Array.isArray(object) ? assign2(object.constructor(object.length), object) : type(object) === "Map" ? new Map(object) : type(object) === "Set" ? new Set(object) : object && typeof object === "object" ? assign2(Object.create(Object.getPrototypeOf(object)), object) : object;
25876
+ 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
25877
  }
24868
25878
  var Context = function() {
24869
25879
  function Context2() {
24870
- this.commands = assign2({}, defaultCommands);
25880
+ this.commands = assign({}, defaultCommands);
24871
25881
  this.update = this.update.bind(this);
24872
25882
  this.update.extend = this.extend = this.extend.bind(this);
24873
25883
  this.update.isEquals = function(x, y) {
@@ -25026,7 +26036,7 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
25026
26036
  exports.isEquals = defaultContext.update.isEquals;
25027
26037
  exports.extend = defaultContext.extend;
25028
26038
  exports.default = defaultContext.update;
25029
- exports.default.default = module.exports = assign2(exports.default, exports);
26039
+ exports.default.default = module.exports = assign(exports.default, exports);
25030
26040
  function invariantPushAndUnshift(value, spec, command) {
25031
26041
  invariant2(Array.isArray(value), function() {
25032
26042
  return "update(): expected target of " + stringifiable(command) + " to be an array; got " + stringifiable(value) + ".";
@@ -25073,8 +26083,8 @@ var _immutabilityHelper_3_1_1_immutabilityHelper = { exports: {} };
25073
26083
  return "update(): " + stringifiable(command) + " expects a target of type Set or Map; got " + stringifiable(typeOfTarget);
25074
26084
  });
25075
26085
  }
25076
- })(_immutabilityHelper_3_1_1_immutabilityHelper, _immutabilityHelper_3_1_1_immutabilityHelper.exports);
25077
- var update = /* @__PURE__ */ getDefaultExportFromCjs(_immutabilityHelper_3_1_1_immutabilityHelper.exports);
26086
+ })(immutabilityHelper, immutabilityHelper.exports);
26087
+ var update = /* @__PURE__ */ getDefaultExportFromCjs(immutabilityHelper.exports);
25078
26088
  const mddTableArray$1 = "_mddTableArray_16ght_1";
25079
26089
  const tableArrayTitle$1 = "_tableArrayTitle_16ght_14";
25080
26090
  const tableArrayContent$1 = "_tableArrayContent_16ght_18";
@@ -25082,7 +26092,7 @@ const tableArrayBottom$1 = "_tableArrayBottom_16ght_32";
25082
26092
  const itemTitle$1 = "_itemTitle_16ght_39";
25083
26093
  const collapseContent$1 = "_collapseContent_16ght_69";
25084
26094
  const itemClose$1 = "_itemClose_16ght_73";
25085
- var styles$7 = {
26095
+ var styles$9 = {
25086
26096
  mddTableArray: mddTableArray$1,
25087
26097
  tableArrayTitle: tableArrayTitle$1,
25088
26098
  tableArrayContent: tableArrayContent$1,
@@ -25094,11 +26104,13 @@ var styles$7 = {
25094
26104
  itemClose: itemClose$1
25095
26105
  };
25096
26106
  const DRAG_KEY$1 = "TableArrayPanelTitle";
25097
- const { Panel: Panel$1 } = Collapse;
26107
+ const { Panel: Panel$2 } = Collapse;
25098
26108
  const TitleRender$1 = (props) => {
25099
26109
  const ref = useRef(null);
25100
26110
  const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
25101
- } } = props;
26111
+ }, otherInfo } = props;
26112
+ const { dataMap, getModule } = useModule$1();
26113
+ const moduleDataSource = getModule("$ModuleDataSource");
25102
26114
  const [{ isOver }, drop] = useDrop({
25103
26115
  accept: DRAG_KEY$1,
25104
26116
  collect(monitor) {
@@ -25125,7 +26137,7 @@ const TitleRender$1 = (props) => {
25125
26137
  });
25126
26138
  const opacity = isDragging ? 0 : 1;
25127
26139
  draggable && drag(drop(ref));
25128
- const cls = classnames.bind(styles$7)({
26140
+ const cls = classnames.bind(styles$9)({
25129
26141
  itemTitle: "itemTitle",
25130
26142
  "drop-over-upward": isOver && index2 < sourceItem.index,
25131
26143
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -25135,16 +26147,18 @@ const TitleRender$1 = (props) => {
25135
26147
  className: cls,
25136
26148
  style: { cursor: draggable ? "move" : "default", opacity },
25137
26149
  onClick: (e) => e.stopPropagation()
25138
- }, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
26150
+ }, customRender && customRender({ data, index: index2, onChange, moduleDataSource, otherInfo }), /* @__PURE__ */ React$1.createElement(Icon, {
25139
26151
  type: "close",
25140
26152
  size: "small",
25141
- className: styles$7.itemClose,
26153
+ className: styles$9.itemClose,
25142
26154
  onClick: onRemove
25143
26155
  }));
25144
26156
  };
25145
26157
  function MddTableSimpleArray(props) {
26158
+ var _a2;
25146
26159
  const {
25147
- title = "",
26160
+ title: title2 = "",
26161
+ tip,
25148
26162
  data = [],
25149
26163
  onChange = () => {
25150
26164
  },
@@ -25154,7 +26168,8 @@ function MddTableSimpleArray(props) {
25154
26168
  onRemove,
25155
26169
  draggable = true,
25156
26170
  titleRender,
25157
- contentRender: contentRender2
26171
+ contentRender: contentRender2,
26172
+ otherInfo
25158
26173
  } = props;
25159
26174
  const onSortUpdate = useCallback(
25160
26175
  (dragIndex, hoverIndex) => {
@@ -25173,17 +26188,23 @@ function MddTableSimpleArray(props) {
25173
26188
  onChange({ record, index: index2, data });
25174
26189
  };
25175
26190
  return /* @__PURE__ */ React$1.createElement("div", {
25176
- className: styles$7.mddTableArray
26191
+ className: styles$9.mddTableArray
25177
26192
  }, /* @__PURE__ */ React$1.createElement("div", {
25178
- className: styles$7.tableArrayTitle
25179
- }, title), /* @__PURE__ */ React$1.createElement("div", {
25180
- className: styles$7.tableArrayContent
26193
+ className: styles$9.tableArrayTitle
26194
+ }, title2, tip && /* @__PURE__ */ React$1.createElement(Balloon, {
26195
+ trigger: /* @__PURE__ */ React$1.createElement(Icon, {
26196
+ type: "help",
26197
+ size: "small"
26198
+ }),
26199
+ align: "t"
26200
+ }, tip)), /* @__PURE__ */ React$1.createElement("div", {
26201
+ className: styles$9.tableArrayContent
25181
26202
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
25182
26203
  backend: HTML5Backend
25183
26204
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
25184
26205
  accordion: true
25185
- }, data.map((item, idx) => {
25186
- return /* @__PURE__ */ React$1.createElement(Panel$1, {
26206
+ }, (_a2 = data == null ? void 0 : data.map) == null ? void 0 : _a2.call(data, (item, idx) => {
26207
+ return /* @__PURE__ */ React$1.createElement(Panel$2, {
25187
26208
  title: /* @__PURE__ */ React$1.createElement(TitleRender$1, {
25188
26209
  index: idx,
25189
26210
  draggable,
@@ -25193,31 +26214,32 @@ function MddTableSimpleArray(props) {
25193
26214
  onRemove: () => onRemove(idx),
25194
26215
  data: item,
25195
26216
  onSortUpdate,
25196
- customRender: titleRender
26217
+ customRender: titleRender,
26218
+ otherInfo
25197
26219
  })
25198
26220
  }, /* @__PURE__ */ React$1.createElement("div", {
25199
- className: styles$7.collapseContent
25200
- }, contentRender2({ data: item, index: idx, onChange: onTableArrayChange })));
26221
+ className: styles$9.collapseContent
26222
+ }, contentRender2({ data: item, index: idx, onChange: onTableArrayChange, otherInfo })));
25201
26223
  })))), /* @__PURE__ */ React$1.createElement("div", {
25202
- className: styles$7.tableArrayBottom
26224
+ className: styles$9.tableArrayBottom
25203
26225
  }, /* @__PURE__ */ React$1.createElement(Button, {
25204
26226
  onClick: onAdd,
25205
26227
  style: { padding: "0 48px" }
25206
26228
  }, "\u6DFB\u52A0\u9879")));
25207
26229
  }
25208
- const customTabItem$4 = "_customTabItem_119xt_1";
25209
- const tabTitle$4 = "_tabTitle_119xt_5";
25210
- const tabLabel$4 = "_tabLabel_119xt_9";
25211
- const middleBox = "_middleBox_119xt_20";
25212
- const middleBoxLeft = "_middleBoxLeft_119xt_26";
25213
- const middleBoxRight = "_middleBoxRight_119xt_31";
25214
- var styles$6 = {
25215
- customTabItem: customTabItem$4,
25216
- tabTitle: tabTitle$4,
25217
- tabLabel: tabLabel$4,
25218
- middleBox,
25219
- middleBoxLeft,
25220
- middleBoxRight
26230
+ const customTabItem$5 = "_customTabItem_119xt_1";
26231
+ const tabTitle$5 = "_tabTitle_119xt_5";
26232
+ const tabLabel$5 = "_tabLabel_119xt_9";
26233
+ const middleBox$1 = "_middleBox_119xt_20";
26234
+ const middleBoxLeft$1 = "_middleBoxLeft_119xt_26";
26235
+ const middleBoxRight$1 = "_middleBoxRight_119xt_31";
26236
+ var styles$8 = {
26237
+ customTabItem: customTabItem$5,
26238
+ tabTitle: tabTitle$5,
26239
+ tabLabel: tabLabel$5,
26240
+ middleBox: middleBox$1,
26241
+ middleBoxLeft: middleBoxLeft$1,
26242
+ middleBoxRight: middleBoxRight$1
25221
26243
  };
25222
26244
  const Middle_Module_Opts = [
25223
26245
  {
@@ -25251,8 +26273,8 @@ function Middle(props) {
25251
26273
  };
25252
26274
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
25253
26275
  data: schema.getMiddlePanel(),
25254
- titleRender: customTitleRender$1,
25255
- contentRender,
26276
+ titleRender: customTitleRender$2,
26277
+ contentRender: contentRender$1,
25256
26278
  title: "\u914D\u7F6E\u4E2D\u95F4\u6A21\u5757\u533A\u57DF",
25257
26279
  onChange: onChangeHandle,
25258
26280
  onSort: onSortHandle,
@@ -25260,11 +26282,11 @@ function Middle(props) {
25260
26282
  onRemove: onRemoveHandle
25261
26283
  }));
25262
26284
  }
25263
- function customTitleRender$1(props) {
26285
+ function customTitleRender$2(props) {
25264
26286
  const { data, index: index2 } = props;
25265
26287
  return /* @__PURE__ */ React$1.createElement("div", null, "\u4E2D\u95F4\u6A21\u5757", index2 + 1);
25266
26288
  }
25267
- function contentRender(props) {
26289
+ function contentRender$1(props) {
25268
26290
  const { data: schema, index: index2, onChange } = props;
25269
26291
  const onBaseInfoChange = (key, value) => {
25270
26292
  schema.set(key, value);
@@ -25272,47 +26294,47 @@ function contentRender(props) {
25272
26294
  };
25273
26295
  const moduleValue = schema.get("value");
25274
26296
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
25275
- className: styles$6.middleBox
26297
+ className: styles$8.middleBox
25276
26298
  }, /* @__PURE__ */ React$1.createElement("label", {
25277
- className: styles$6.middleBoxLeft
26299
+ className: styles$8.middleBoxLeft
25278
26300
  }, "\u6E32\u67D3\u6A21\u5757\uFF1A"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
25279
26301
  dataSource: Middle_Module_Opts,
25280
26302
  size: "small",
25281
- className: styles$6.middleBoxRight,
26303
+ className: styles$8.middleBoxRight,
25282
26304
  value: moduleValue,
25283
26305
  onChange: (val) => onBaseInfoChange("value", val)
25284
26306
  })), /* @__PURE__ */ React$1.createElement("div", {
25285
- className: styles$6.middleBox
26307
+ className: styles$8.middleBox
25286
26308
  }, /* @__PURE__ */ React$1.createElement("label", {
25287
- className: styles$6.middleBoxLeft
26309
+ className: styles$8.middleBoxLeft
25288
26310
  }, "\u6A21\u5757\u53C2\u6570\uFF1A"), /* @__PURE__ */ React$1.createElement(TableFormProxy, {
25289
- className: styles$6.middleBoxRight,
26311
+ className: styles$8.middleBoxRight,
25290
26312
  value: schema.get("params"),
25291
26313
  onChange: (v2) => onBaseInfoChange("params", v2)
25292
26314
  })), moduleValue === "ftp-tabs" && /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement("div", {
25293
- className: styles$6.middleBox
26315
+ className: styles$8.middleBox
25294
26316
  }, /* @__PURE__ */ React$1.createElement("label", {
25295
- className: styles$6.middleBoxLeft
26317
+ className: styles$8.middleBoxLeft
25296
26318
  }, "\u63A5\u53E3\u8BF7\u6C42KEY\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
25297
- className: styles$6.middleBoxRight,
26319
+ className: styles$8.middleBoxRight,
25298
26320
  value: schema.get("dataIndex"),
25299
26321
  size: "small",
25300
26322
  onChange: (v2) => onBaseInfoChange("dataIndex", v2)
25301
26323
  })), /* @__PURE__ */ React$1.createElement("div", {
25302
- className: styles$6.middleBox
26324
+ className: styles$8.middleBox
25303
26325
  }, /* @__PURE__ */ React$1.createElement("label", {
25304
- className: styles$6.middleBoxLeft
26326
+ className: styles$8.middleBoxLeft
25305
26327
  }, "\u9ED8\u8BA4\u503C\uFF1A"), /* @__PURE__ */ React$1.createElement(DynamicValueBase, {
25306
- className: styles$6.middleBoxRight,
26328
+ className: styles$8.middleBoxRight,
25307
26329
  value: schema.get("defaultTabValue"),
25308
26330
  size: "small",
25309
26331
  onChange: (v2) => onBaseInfoChange("defaultTabValue", v2)
25310
26332
  })), /* @__PURE__ */ React$1.createElement("div", {
25311
- className: styles$6.middleBox
26333
+ className: styles$8.middleBox
25312
26334
  }, /* @__PURE__ */ React$1.createElement("label", {
25313
- className: styles$6.middleBoxLeft
26335
+ className: styles$8.middleBoxLeft
25314
26336
  }, "\u591A\u6807\u7B7E\u6570\u636E\u6E90\uFF1A"), /* @__PURE__ */ React$1.createElement("div", {
25315
- className: styles$6.middleBoxRight
26337
+ className: styles$8.middleBoxRight
25316
26338
  }, /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
25317
26339
  schema: schema.getSourcePanel(),
25318
26340
  isSelectType: false
@@ -25325,24 +26347,317 @@ function contentRender(props) {
25325
26347
  href: "https://alidocs.dingtalk.com/i/nodes/dpYLaezmVNRMGX56C1ZxqyYdVrMqPxX6"
25326
26348
  }, "\u6587\u6863"))))));
25327
26349
  }
25328
- const CustomTabItem$4 = ({ title, icon }) => {
26350
+ const CustomTabItem$5 = ({ title: title2, icon }) => {
26351
+ return /* @__PURE__ */ React$1.createElement("div", {
26352
+ className: styles$8.customTabItem
26353
+ }, /* @__PURE__ */ React$1.createElement("div", {
26354
+ className: styles$8.tabTitle
26355
+ }, /* @__PURE__ */ React$1.createElement(Icon, {
26356
+ type: icon,
26357
+ size: "small"
26358
+ }), /* @__PURE__ */ React$1.createElement("span", {
26359
+ className: styles$8.tabLabel
26360
+ }, title2)));
26361
+ };
26362
+ function FtpBuild$1({ schema, moduleMap }) {
26363
+ const { getApiFields } = useSwagger$1();
26364
+ const apiSchema = schema.getDataSourcePanel();
26365
+ const { parameterFields = [], responseFields = [] } = React$1.useMemo(() => {
26366
+ return getApiFields(apiSchema == null ? void 0 : apiSchema.getApiUrl(), "ftp") || {};
26367
+ }, [apiSchema, getApiFields]);
26368
+ return /* @__PURE__ */ React$1.createElement(Tab, {
26369
+ animation: false,
26370
+ lazyLoad: false,
26371
+ shape: "wrapped",
26372
+ tabPosition: "left",
26373
+ className: "build-page-tab",
26374
+ tabRender: (key, props) => /* @__PURE__ */ React$1.createElement(CustomTabItem$5, {
26375
+ key,
26376
+ ...props
26377
+ })
26378
+ }, /* @__PURE__ */ React$1.createElement(Tab.Item, {
26379
+ title: "\u641C\u7D22\u533A",
26380
+ icon: "search"
26381
+ }, /* @__PURE__ */ React$1.createElement(FilterPanel$2, {
26382
+ schema: schema.getFilterPanel(),
26383
+ swaggerFields: parameterFields
26384
+ })), /* @__PURE__ */ React$1.createElement(Tab.Item, {
26385
+ title: "\u4E2D\u95F4\u6A21\u5757\u533A",
26386
+ icon: "flag"
26387
+ }, /* @__PURE__ */ React$1.createElement(Middle, {
26388
+ schema,
26389
+ moduleMap
26390
+ })), /* @__PURE__ */ React$1.createElement(Tab.Item, {
26391
+ title: "\u9876\u90E8\u64CD\u4F5C\u533A",
26392
+ icon: "set"
26393
+ }, /* @__PURE__ */ React$1.createElement(HeaderToolbarPanel$1, {
26394
+ schema: schema.getHeaderToolbarPanel(),
26395
+ moduleMap
26396
+ })), /* @__PURE__ */ React$1.createElement(Tab.Item, {
26397
+ title: "\u5185\u5BB9\u533A",
26398
+ icon: "detail"
26399
+ }, /* @__PURE__ */ React$1.createElement(TablePanel$3, {
26400
+ schema: schema.getTablePanel(),
26401
+ swaggerFields: responseFields,
26402
+ moduleMap
26403
+ })), /* @__PURE__ */ React$1.createElement(Tab.Item, {
26404
+ title: "\u4E3B\u6570\u636E\u6E90",
26405
+ icon: "filter"
26406
+ }, /* @__PURE__ */ React$1.createElement("div", {
26407
+ style: { marginLeft: "10px" }
26408
+ }, /* @__PURE__ */ React$1.createElement("div", {
26409
+ style: { marginBottom: 8 }
26410
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u5217\u8868\u6570\u636E\u6E90\uFF1A")), /* @__PURE__ */ React$1.createElement(AjaxSchemaForm, {
26411
+ hasDelete: true,
26412
+ schema: schema.getDataSourcePanel(),
26413
+ isSelectType: false
26414
+ }))));
26415
+ }
26416
+ function TablePanel$2({ schema }) {
26417
+ const columnMddFormRef = React$1.useRef();
26418
+ const [_2, forceUpdate] = useState({});
26419
+ useEffect(() => {
26420
+ schema.on("$updated", (changeData, ignoreUpdate) => {
26421
+ !ignoreUpdate && forceUpdate({});
26422
+ });
26423
+ hackRowDetail(schema);
26424
+ }, []);
26425
+ const columns = schema.get("columns");
26426
+ const onAddHandle = (key) => {
26427
+ var _a2;
26428
+ switch (key) {
26429
+ case "columns":
26430
+ schema.add(
26431
+ {
26432
+ type: "text",
26433
+ label: "\u5C55\u793A\u9879",
26434
+ name: ""
26435
+ },
26436
+ "columns",
26437
+ true
26438
+ );
26439
+ (_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
26440
+ break;
26441
+ }
26442
+ };
26443
+ const onRemoveHandle = (index2, key) => {
26444
+ var _a2;
26445
+ schema.remove(index2, key, true);
26446
+ if (key === "columns") {
26447
+ (_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
26448
+ }
26449
+ };
26450
+ const onChangeHandle = ({ index: index2, record }, key) => {
26451
+ schema.update(index2, record, key, true);
26452
+ };
26453
+ return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
26454
+ ref: columnMddFormRef,
26455
+ data: columns,
26456
+ title: "\u914D\u7F6E\u8868\u683C\u5217",
26457
+ componentOptions: columnsTypeOptionsWithCnTable.filter((col) => col.value !== "blocks-table"),
26458
+ onAdd: () => onAddHandle("columns"),
26459
+ onRemove: (index2) => onRemoveHandle(index2, "columns"),
26460
+ onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "columns"),
26461
+ onSort: (newList) => {
26462
+ schema.setItemAll(newList, "columns", true);
26463
+ }
26464
+ }));
26465
+ }
26466
+ function hackRowDetail(schema) {
26467
+ const rowDetail = schema.get("rowDetail");
26468
+ if (rowDetail) {
26469
+ schema.set("rowDetail", void 0);
26470
+ }
26471
+ }
26472
+ const Default_Add_Schema$1 = {
26473
+ type: "input",
26474
+ label: "\u8F93\u5165\u6846",
26475
+ name: "",
26476
+ input: propFields.input
26477
+ };
26478
+ function FilterPanel$1({ schema, swaggerFields = [] }) {
26479
+ const mddFormRef = React$1.useRef();
26480
+ const [_2, forceUpdate] = React$1.useState({});
26481
+ React$1.useEffect(() => {
26482
+ schema.on("$updated", (changeData, ignoreUpdate) => {
26483
+ !ignoreUpdate && forceUpdate({});
26484
+ });
26485
+ }, []);
26486
+ const fields2 = schema.get("fields");
26487
+ const refreshMddTableForm = () => {
26488
+ var _a2;
26489
+ (_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
26490
+ };
26491
+ const onAddHandle = () => {
26492
+ schema.add(Default_Add_Schema$1, "fields", true);
26493
+ refreshMddTableForm();
26494
+ };
26495
+ const onRemoveHandle = (index2) => {
26496
+ schema.remove(index2, "fields", true);
26497
+ refreshMddTableForm();
26498
+ };
26499
+ const onChangeHandle = ({ index: index2, record }) => {
26500
+ for (const k2 in propFields) {
26501
+ if (record.type !== k2) {
26502
+ !["name"].includes(k2) && delete record[k2];
26503
+ }
26504
+ }
26505
+ schema.update(index2, record, "fields", true);
26506
+ };
26507
+ return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
26508
+ ref: mddFormRef,
26509
+ data: fields2,
26510
+ penetrateType: PenetrateTypes.FILTER,
26511
+ componentOptions,
26512
+ title: "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
26513
+ onAdd: onAddHandle,
26514
+ onRemove: onRemoveHandle,
26515
+ onChange: onChangeHandle,
26516
+ swaggerFieldDataSource: swaggerFields,
26517
+ onSort: (newList) => {
26518
+ schema.setFieldsAll(newList, true);
26519
+ }
26520
+ }));
26521
+ }
26522
+ const Default_Add_Schema = {
26523
+ type: "input",
26524
+ label: "\u8F93\u5165\u6846",
26525
+ name: "",
26526
+ input: propFields.input
26527
+ };
26528
+ function FilterPanel({ schema, swaggerFields = [] }) {
26529
+ const mddFormRef = React$1.useRef();
26530
+ const [_2, forceUpdate] = React$1.useState({});
26531
+ React$1.useEffect(() => {
26532
+ schema.on("$updated", (changeData, ignoreUpdate) => {
26533
+ !ignoreUpdate && forceUpdate({});
26534
+ });
26535
+ }, []);
26536
+ const fields2 = schema.get("fields");
26537
+ const refreshMddTableForm = () => {
26538
+ var _a2;
26539
+ (_a2 = mddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("fields"));
26540
+ };
26541
+ const onAddHandle = () => {
26542
+ schema.add(Default_Add_Schema, "fields", true);
26543
+ refreshMddTableForm();
26544
+ };
26545
+ const onRemoveHandle = (index2) => {
26546
+ schema.remove(index2, "fields", true);
26547
+ refreshMddTableForm();
26548
+ };
26549
+ const onChangeHandle = ({ index: index2, record }) => {
26550
+ for (const k2 in propFields) {
26551
+ if (record.type !== k2) {
26552
+ !["name"].includes(k2) && delete record[k2];
26553
+ }
26554
+ }
26555
+ schema.update(index2, record, "fields", true);
26556
+ };
26557
+ return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
26558
+ ref: mddFormRef,
26559
+ data: fields2,
26560
+ penetrateType: PenetrateTypes.FORM,
26561
+ componentOptions: FormComponentOptions,
26562
+ title: "\u914D\u7F6E\u8868\u5355\u9879",
26563
+ onAdd: onAddHandle,
26564
+ onRemove: onRemoveHandle,
26565
+ onChange: onChangeHandle,
26566
+ swaggerFieldDataSource: swaggerFields,
26567
+ onSort: (newList) => {
26568
+ schema.setFieldsAll(newList, true);
26569
+ }
26570
+ }));
26571
+ }
26572
+ function EditTablePanel({ schema }) {
26573
+ const columnMddFormRef = React$1.useRef();
26574
+ const [_2, forceUpdate] = useState({});
26575
+ useEffect(() => {
26576
+ schema.on("$updated", (changeData, ignoreUpdate) => {
26577
+ !ignoreUpdate && forceUpdate({});
26578
+ });
26579
+ }, []);
26580
+ const columns = schema.get("columns");
26581
+ const onAddHandle = (key) => {
26582
+ var _a2;
26583
+ switch (key) {
26584
+ case "columns":
26585
+ schema.add(
26586
+ {
26587
+ type: "text",
26588
+ label: "\u5C55\u793A\u9879",
26589
+ name: ""
26590
+ },
26591
+ "columns",
26592
+ true
26593
+ );
26594
+ (_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
26595
+ break;
26596
+ }
26597
+ };
26598
+ const onRemoveHandle = (index2, key) => {
26599
+ var _a2;
26600
+ schema.remove(index2, key, true);
26601
+ (_a2 = columnMddFormRef.current) == null ? void 0 : _a2.updateData(schema.get("columns"));
26602
+ };
26603
+ const onChangeHandle = ({ index: index2, record }, key) => {
26604
+ schema.update(index2, record, key, true);
26605
+ };
26606
+ return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement(MddTableForm$1, {
26607
+ ref: columnMddFormRef,
26608
+ data: columns,
26609
+ title: "\u914D\u7F6E\u53EF\u7F16\u8F91\u8868\u683C\u5217",
26610
+ componentOptions: columnsTypeOptionsWithEditCnTable.filter(
26611
+ (col) => !["blocks-edit-table", "blocks-table"].includes(col.value)
26612
+ ),
26613
+ onAdd: () => onAddHandle("columns"),
26614
+ onRemove: (index2) => onRemoveHandle(index2, "columns"),
26615
+ onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }, "columns"),
26616
+ onSort: (newList) => {
26617
+ schema.setItemAll(newList, "columns", true);
26618
+ }
26619
+ }));
26620
+ }
26621
+ const customTabItem$4 = "_customTabItem_119xt_1";
26622
+ const tabTitle$4 = "_tabTitle_119xt_5";
26623
+ const tabLabel$4 = "_tabLabel_119xt_9";
26624
+ const middleBox = "_middleBox_119xt_20";
26625
+ const middleBoxLeft = "_middleBoxLeft_119xt_26";
26626
+ const middleBoxRight = "_middleBoxRight_119xt_31";
26627
+ var styles$7 = {
26628
+ customTabItem: customTabItem$4,
26629
+ tabTitle: tabTitle$4,
26630
+ tabLabel: tabLabel$4,
26631
+ middleBox,
26632
+ middleBoxLeft,
26633
+ middleBoxRight
26634
+ };
26635
+ const PanelComMap = {
26636
+ "blocks-table": TablePanel$2,
26637
+ "blocks-filter": FilterPanel$1,
26638
+ "blocks-form": FilterPanel,
26639
+ "blocks-edit-table": EditTablePanel
26640
+ };
26641
+ const TitleMap = {
26642
+ "blocks-table": "\u5217\u8868\u9879",
26643
+ "blocks-filter": "\u641C\u7D22\u9879",
26644
+ "blocks-form": "\u8868\u5355\u9879",
26645
+ "blocks-edit-table": "\u53EF\u7F16\u8F91\u8868\u683C\u9879"
26646
+ };
26647
+ const CustomTabItem$4 = ({ title: title2, icon }) => {
25329
26648
  return /* @__PURE__ */ React$1.createElement("div", {
25330
- className: styles$6.customTabItem
26649
+ className: styles$7.customTabItem
25331
26650
  }, /* @__PURE__ */ React$1.createElement("div", {
25332
- className: styles$6.tabTitle
26651
+ className: styles$7.tabTitle
25333
26652
  }, /* @__PURE__ */ React$1.createElement(Icon, {
25334
26653
  type: icon,
25335
26654
  size: "small"
25336
26655
  }), /* @__PURE__ */ React$1.createElement("span", {
25337
- className: styles$6.tabLabel
25338
- }, title)));
26656
+ className: styles$7.tabLabel
26657
+ }, title2)));
25339
26658
  };
25340
- function FtpBuild$1({ schema, moduleMap }) {
25341
- const { getApiFields } = useSwagger$1();
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]);
26659
+ function BlocksBuild({ schema, moduleMap }) {
26660
+ const Panel2 = PanelComMap[schema.type];
25346
26661
  return /* @__PURE__ */ React$1.createElement(Tab, {
25347
26662
  animation: false,
25348
26663
  lazyLoad: false,
@@ -25354,42 +26669,11 @@ function FtpBuild$1({ schema, moduleMap }) {
25354
26669
  ...props
25355
26670
  })
25356
26671
  }, /* @__PURE__ */ React$1.createElement(Tab.Item, {
25357
- title: "\u641C\u7D22\u533A",
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",
26672
+ title: TitleMap[schema.type],
25376
26673
  icon: "detail"
25377
- }, /* @__PURE__ */ React$1.createElement(TablePanel$2, {
25378
- schema: schema.getTablePanel(),
25379
- swaggerFields: responseFields,
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
- }))));
26674
+ }, /* @__PURE__ */ React$1.createElement(Panel2, {
26675
+ schema: schema.getPanel()
26676
+ })));
25393
26677
  }
25394
26678
  const mddTableArray = "_mddTableArray_16ght_1";
25395
26679
  const tableArrayTitle = "_tableArrayTitle_16ght_14";
@@ -25398,7 +26682,7 @@ const tableArrayBottom = "_tableArrayBottom_16ght_32";
25398
26682
  const itemTitle = "_itemTitle_16ght_39";
25399
26683
  const collapseContent = "_collapseContent_16ght_69";
25400
26684
  const itemClose = "_itemClose_16ght_73";
25401
- var styles$5 = {
26685
+ var styles$6 = {
25402
26686
  mddTableArray,
25403
26687
  tableArrayTitle,
25404
26688
  tableArrayContent,
@@ -25410,7 +26694,7 @@ var styles$5 = {
25410
26694
  itemClose
25411
26695
  };
25412
26696
  const DRAG_KEY = "TableArrayPanelTitle";
25413
- const { Panel } = Collapse;
26697
+ const { Panel: Panel$1 } = Collapse;
25414
26698
  const TitleRender = (props) => {
25415
26699
  const ref = useRef(null);
25416
26700
  const { data, onSortUpdate, index: index2, draggable, onRemove, onChange, customRender = () => {
@@ -25441,7 +26725,7 @@ const TitleRender = (props) => {
25441
26725
  });
25442
26726
  const opacity = isDragging ? 0 : 1;
25443
26727
  draggable && drag(drop(ref));
25444
- const cls = classnames.bind(styles$5)({
26728
+ const cls = classnames.bind(styles$6)({
25445
26729
  itemTitle: "itemTitle",
25446
26730
  "drop-over-upward": isOver && index2 < sourceItem.index,
25447
26731
  "drop-over-downward": isOver && index2 > sourceItem.index
@@ -25454,7 +26738,7 @@ const TitleRender = (props) => {
25454
26738
  }, customRender && customRender({ data, index: index2, onChange }), /* @__PURE__ */ React$1.createElement(Icon, {
25455
26739
  type: "close",
25456
26740
  size: "small",
25457
- className: styles$5.itemClose,
26741
+ className: styles$6.itemClose,
25458
26742
  onClick: onRemove
25459
26743
  }));
25460
26744
  };
@@ -25468,7 +26752,7 @@ const getTypeContentMap = (typeContent2) => {
25468
26752
  };
25469
26753
  function MddTableArray(props) {
25470
26754
  const {
25471
- title = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
26755
+ title: title2 = "\u914D\u7F6E\u67E5\u8BE2\u6761\u4EF6",
25472
26756
  data = [],
25473
26757
  onChange = () => {
25474
26758
  },
@@ -25498,11 +26782,11 @@ function MddTableArray(props) {
25498
26782
  onChange({ record, index: index2, data });
25499
26783
  };
25500
26784
  return /* @__PURE__ */ React$1.createElement("div", {
25501
- className: styles$5.mddTableArray
26785
+ className: styles$6.mddTableArray
25502
26786
  }, /* @__PURE__ */ React$1.createElement("div", {
25503
- className: styles$5.tableArrayTitle
25504
- }, title), /* @__PURE__ */ React$1.createElement("div", {
25505
- className: styles$5.tableArrayContent
26787
+ className: styles$6.tableArrayTitle
26788
+ }, title2), /* @__PURE__ */ React$1.createElement("div", {
26789
+ className: styles$6.tableArrayContent
25506
26790
  }, /* @__PURE__ */ React$1.createElement(DndProvider, {
25507
26791
  backend: HTML5Backend
25508
26792
  }, /* @__PURE__ */ React$1.createElement(Collapse, {
@@ -25510,7 +26794,7 @@ function MddTableArray(props) {
25510
26794
  }, data.map((item, idx) => {
25511
26795
  var _a2;
25512
26796
  const type = item instanceof JSONWatch ? item.get("type") : item == null ? void 0 : item.type;
25513
- return /* @__PURE__ */ React$1.createElement(Panel, {
26797
+ return /* @__PURE__ */ React$1.createElement(Panel$1, {
25514
26798
  title: /* @__PURE__ */ React$1.createElement(TitleRender, {
25515
26799
  index: idx,
25516
26800
  draggable,
@@ -25524,10 +26808,10 @@ function MddTableArray(props) {
25524
26808
  customRender: titleRender
25525
26809
  })
25526
26810
  }, /* @__PURE__ */ React$1.createElement("div", {
25527
- className: styles$5.collapseContent
26811
+ className: styles$6.collapseContent
25528
26812
  }, (_a2 = typeContentMap[type]) == null ? void 0 : _a2.contentRender({ data: item, index: idx, onChange: onTableArrayChange })));
25529
26813
  })))), /* @__PURE__ */ React$1.createElement("div", {
25530
- className: styles$5.tableArrayBottom
26814
+ className: styles$6.tableArrayBottom
25531
26815
  }, /* @__PURE__ */ React$1.createElement(Button, {
25532
26816
  onClick: onAdd,
25533
26817
  style: { padding: "0 48px" }
@@ -25630,6 +26914,8 @@ function ActionsPanel({ schema }) {
25630
26914
  }
25631
26915
  }));
25632
26916
  }
26917
+ const _columnsTypeOptions = [...columnsTypeOptions];
26918
+ _columnsTypeOptions.splice(5, 0, { value: "message", label: "\u4FE1\u606F\u63D0\u793A" });
25633
26919
  const extraFieldSchema = {
25634
26920
  renderToTitle: {
25635
26921
  title: "\u6E32\u67D3\u5230\u6807\u9898",
@@ -25759,7 +27045,7 @@ function DetailCard(props) {
25759
27045
  title: "",
25760
27046
  extraFieldSchema,
25761
27047
  swaggerFieldDataSource: responseFields,
25762
- componentOptions: columnsTypeOptions,
27048
+ componentOptions: _columnsTypeOptions,
25763
27049
  onAdd: () => onAddHandle(),
25764
27050
  onRemove: (index2) => onRemoveHandle(index2),
25765
27051
  onChange: ({ index: index2, record }) => onChangeHandle({ index: index2, record }),
@@ -25949,7 +27235,7 @@ function DetailTable(props) {
25949
27235
  onChange: ({ index: index2, record }) => onPaginationChangeHandle({ index: index2, record })
25950
27236
  }), /* @__PURE__ */ React$1.createElement(Form.Item, {
25951
27237
  labelAlign: "left",
25952
- label: "\u662F\u5426\u5F71\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A:",
27238
+ label: "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A:",
25953
27239
  name: "hideCommonToolbar"
25954
27240
  }, /* @__PURE__ */ React$1.createElement(Switch, {
25955
27241
  autoWidth: true,
@@ -25957,10 +27243,11 @@ function DetailTable(props) {
25957
27243
  defaultChecked: data.get("hideCommonToolbar")
25958
27244
  })), /* @__PURE__ */ React$1.createElement("div", {
25959
27245
  style: { marginLeft: "10px", marginBottom: 8 }
25960
- }, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
27246
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
25961
27247
  value: data.get("maxHeight"),
25962
27248
  size: "small",
25963
- onChange: (v2) => tablePropsChange("maxHeight", v2)
27249
+ onChange: (v2) => tablePropsChange("maxHeight", v2),
27250
+ min: 0
25964
27251
  }), /* @__PURE__ */ React$1.createElement("span", {
25965
27252
  className: "mdd-tip"
25966
27253
  }, /* @__PURE__ */ React$1.createElement(Icon, {
@@ -26035,6 +27322,246 @@ function DetailStaticStep(props) {
26035
27322
  single: true
26036
27323
  })));
26037
27324
  }
27325
+ const title = "_title_10adh_1";
27326
+ const titleItem = "_titleItem_10adh_7";
27327
+ const titleItemLabel = "_titleItemLabel_10adh_12";
27328
+ var styles$5 = {
27329
+ title,
27330
+ titleItem,
27331
+ titleItemLabel
27332
+ };
27333
+ const { Panel } = Collapse;
27334
+ function DetailColumns(props) {
27335
+ const { data, index: idx, onChange } = props;
27336
+ const [_2, forceUpdate] = React$1.useState({});
27337
+ React$1.useEffect(() => {
27338
+ data.set("hideCardTitle", true);
27339
+ forceUpdate();
27340
+ return () => {
27341
+ data.set("hideCardTitle", false);
27342
+ forceUpdate();
27343
+ };
27344
+ }, []);
27345
+ const onAddHandle = () => {
27346
+ data.add(
27347
+ {
27348
+ moduleName: "",
27349
+ hideSelfCard: true,
27350
+ params: [],
27351
+ canUpdateOtherColumns: true,
27352
+ canBeUpdated: true
27353
+ },
27354
+ "columnsBoxes"
27355
+ );
27356
+ forceUpdate({});
27357
+ };
27358
+ const onRemoveHandle = (index2) => {
27359
+ data.remove(index2, "columnsBoxes");
27360
+ forceUpdate({});
27361
+ };
27362
+ const onChangeHandle = ({ index: index2, record }) => {
27363
+ data.update(index2, record, "columnsBoxes");
27364
+ forceUpdate({});
27365
+ };
27366
+ return /* @__PURE__ */ React$1.createElement(Form, {
27367
+ labelCol: { span: 4 },
27368
+ wrapperCol: { span: 19 },
27369
+ size: "small",
27370
+ onChange: (values, item) => {
27371
+ data.set(item.name, item.value);
27372
+ onChange({ index: idx, record: data });
27373
+ }
27374
+ }, /* @__PURE__ */ React$1.createElement(Form.Item, {
27375
+ labelAlign: "left",
27376
+ label: "\u5E03\u5C40\u65B9\u5F0F",
27377
+ name: "columnsDirection"
27378
+ }, /* @__PURE__ */ React$1.createElement(CnRadioGroup, {
27379
+ defaultValue: data.get("columnsDirection")
27380
+ }, /* @__PURE__ */ React$1.createElement(CnRadio, {
27381
+ value: "row"
27382
+ }, "\u5DE6\u53F3\u5E03\u5C40"), /* @__PURE__ */ React$1.createElement(CnRadio, {
27383
+ value: "column"
27384
+ }, "\u4E0A\u4E0B\u5E03\u5C40"))), /* @__PURE__ */ React$1.createElement(Form.Item, {
27385
+ labelAlign: "left",
27386
+ label: "\u9AD8\u5EA6",
27387
+ name: "height"
27388
+ }, /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
27389
+ defaultValue: data.get("height"),
27390
+ min: 0,
27391
+ max: 100,
27392
+ innerAfter: "%",
27393
+ style: { width: 90 }
27394
+ }), /* @__PURE__ */ React$1.createElement(CnTooltip, {
27395
+ trigger: /* @__PURE__ */ React$1.createElement(Icon, {
27396
+ type: "prompt",
27397
+ style: { marginLeft: 6 }
27398
+ })
27399
+ }, "0-100 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u81EA\u52A8\u9AD8\u5EA6")), /* @__PURE__ */ React$1.createElement(Form.Item, {
27400
+ labelAlign: "left",
27401
+ label: "\u9690\u85CF\u7236\u7EA7\u5361\u7247",
27402
+ name: "hideCard"
27403
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
27404
+ checked: data.get("hideCard")
27405
+ })), !data.get("hideCard") && /* @__PURE__ */ React$1.createElement(Form.Item, {
27406
+ labelAlign: "left",
27407
+ label: "\u9690\u85CF\u7236\u7EA7\u5361\u7247\u5934\u90E8",
27408
+ name: "hideCardTitle"
27409
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
27410
+ checked: data.get("hideCardTitle")
27411
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
27412
+ labelAlign: "top",
27413
+ label: ""
27414
+ }, /* @__PURE__ */ React$1.createElement(MddTableSimpleArray, {
27415
+ data: data.get("columnsBoxes"),
27416
+ titleRender: customTitleRender$1,
27417
+ contentRender,
27418
+ title: "\u914D\u7F6E\u5206\u680F\u4FE1\u606F",
27419
+ tip: "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24",
27420
+ onChange: onChangeHandle,
27421
+ onSort: (newList) => {
27422
+ data.setItemAll(newList, "columnsBoxes");
27423
+ forceUpdate({});
27424
+ },
27425
+ onAdd: onAddHandle,
27426
+ onRemove: (index2) => onRemoveHandle(index2),
27427
+ otherInfo: { columnsDirection: data.get("columnsDirection") }
27428
+ })), data.get("hideCardTitle") ? null : /* @__PURE__ */ React$1.createElement(ActionsPanel, {
27429
+ schema: data
27430
+ }));
27431
+ }
27432
+ function customTitleRender$1(props) {
27433
+ const { data, index: index2, onChange, moduleDataSource, otherInfo = {} } = props;
27434
+ return /* @__PURE__ */ React$1.createElement("div", {
27435
+ className: styles$5.title
27436
+ }, /* @__PURE__ */ React$1.createElement("div", {
27437
+ className: styles$5.titleItem
27438
+ }, /* @__PURE__ */ React$1.createElement("label", {
27439
+ className: styles$5.titleItemLabel
27440
+ }, "\u6A21\u5757\u5730\u5740"), /* @__PURE__ */ React$1.createElement(Select$2.AutoComplete, {
27441
+ placeholder: "\u8BF7\u9009\u62E9\u6216\u8005\u8F93\u5165\u6A21\u5757\u5730\u5740",
27442
+ hasClear: true,
27443
+ size: "small",
27444
+ style: {
27445
+ minWidth: 280
27446
+ },
27447
+ dataSource: (moduleDataSource == null ? void 0 : moduleDataSource.l4ModuleOptions) || moduleDataSource || [],
27448
+ value: data == null ? void 0 : data.moduleName,
27449
+ onChange: (v2) => onChange({ ...data, moduleName: v2 })
27450
+ })), (otherInfo == null ? void 0 : otherInfo.columnsDirection) === "row" && /* @__PURE__ */ React$1.createElement("div", {
27451
+ className: styles$5.titleItem
27452
+ }, /* @__PURE__ */ React$1.createElement("label", {
27453
+ className: styles$5.titleItemLabel
27454
+ }, /* @__PURE__ */ React$1.createElement(Balloon, {
27455
+ trigger: /* @__PURE__ */ React$1.createElement("div", {
27456
+ style: { display: "flex", alignItems: "center" }
27457
+ }, "\u5360\u5217\u6570 ", /* @__PURE__ */ React$1.createElement(Icon, {
27458
+ type: "help",
27459
+ size: "small"
27460
+ })),
27461
+ align: "t"
27462
+ }, /* @__PURE__ */ React$1.createElement("b", null, "\u5DE6\u53F3\u5E03\u5C40\u65F6\uFF0C\u5360\u5217\u6570\u4E4B\u548C\u5E94\u4E3A24"))), /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
27463
+ size: "small",
27464
+ min: 0,
27465
+ max: 24,
27466
+ value: data == null ? void 0 : data.cols,
27467
+ onChange: (v2) => onChange({ ...data, cols: v2 }),
27468
+ placeholder: "\u5360\u5217\u6570 \u4E4B\u548C\u5E94\u4E3A24"
27469
+ })));
27470
+ }
27471
+ const layoutConfig = {
27472
+ wrapperCol: { span: 16 },
27473
+ labelCol: { span: 8 }
27474
+ };
27475
+ function contentRender(props) {
27476
+ return /* @__PURE__ */ React$1.createElement(ContentRender, {
27477
+ ...props
27478
+ });
27479
+ }
27480
+ const ContentRender = (props) => {
27481
+ const { data, index: index2, onChange, otherInfo = {} } = props;
27482
+ return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, (otherInfo == null ? void 0 : otherInfo.columnsDirection) === "column" && /* @__PURE__ */ React$1.createElement(Form.Item, {
27483
+ wrapperCol: { span: 20 },
27484
+ labelCol: { span: 4 },
27485
+ label: "\u9AD8\u5EA6",
27486
+ name: ""
27487
+ }, /* @__PURE__ */ React$1.createElement(CnNumberPicker, {
27488
+ min: 0,
27489
+ max: 100,
27490
+ innerAfter: "%",
27491
+ style: { width: 90 },
27492
+ defaultValue: data == null ? void 0 : data.height,
27493
+ onChange: (v2) => onChange({ index: index2, record: { ...data, height: v2 } })
27494
+ }), /* @__PURE__ */ React$1.createElement(CnTooltip, {
27495
+ trigger: /* @__PURE__ */ React$1.createElement(Icon, {
27496
+ type: "prompt",
27497
+ style: { marginLeft: 6 }
27498
+ })
27499
+ }, "\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, {
27500
+ name: "",
27501
+ wrapperCol: { span: 20 },
27502
+ labelCol: { span: 4 },
27503
+ style: { position: "relative" },
27504
+ label: /* @__PURE__ */ React$1.createElement("div", null, "\u53C2\u6570", /* @__PURE__ */ React$1.createElement("a", {
27505
+ rel: "noreferrer",
27506
+ target: "_blank",
27507
+ href: "https://yuque.antfin.com/docs/share/b146be2b-dec0-4f0d-80e4-c11a34a701bc",
27508
+ title: "\u5728vscode\u63D2\u4EF6\u4E2D\u6309\u4F4Fctrl\u518D\u70B9\u51FB\u67E5\u770B",
27509
+ className: "help-link"
27510
+ }, "\u5E2E\u52A9"))
27511
+ }, /* @__PURE__ */ React$1.createElement(FormilyTableFormProxy, {
27512
+ keyTitle: "key(\u53C2\u6570\u540D)",
27513
+ valueTitle: "value(\u53C2\u6570\u503C) - .$ALL \u53EF\u83B7\u53D6\u6574\u4E2A\u52A8\u6001\u5BF9\u8C61",
27514
+ value: data == null ? void 0 : data.params,
27515
+ onChange: (v2) => onChange({ index: index2, record: { ...data, params: v2 } })
27516
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
27517
+ wrapperCol: { span: 20 },
27518
+ labelCol: { span: 4 },
27519
+ label: "\u9690\u85CF \u5F53\u524D\u680F \u5361\u7247",
27520
+ name: ""
27521
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
27522
+ defaultChecked: data == null ? void 0 : data.hideSelfCard,
27523
+ onChange: (v2) => onChange({ index: index2, record: { ...data, hideSelfCard: v2 } })
27524
+ })), /* @__PURE__ */ React$1.createElement(Collapse, {
27525
+ accordion: true
27526
+ }, /* @__PURE__ */ React$1.createElement(Panel, {
27527
+ title: /* @__PURE__ */ React$1.createElement(Balloon, {
27528
+ trigger: /* @__PURE__ */ React$1.createElement("div", {
27529
+ style: { width: "fit-content", display: "flex", alignItems: "center" }
27530
+ }, "\u5176\u4ED6\u914D\u7F6E\uFF1A", /* @__PURE__ */ React$1.createElement(Icon, {
27531
+ type: "help",
27532
+ size: "small"
27533
+ })),
27534
+ align: "t"
27535
+ }, "\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")))
27536
+ }, /* @__PURE__ */ React$1.createElement(Form.Item, {
27537
+ ...layoutConfig,
27538
+ label: "\u53EF\u4EE5\u89E6\u53D1\u5176\u4ED6\u5206\u680F\u5237\u65B0",
27539
+ name: ""
27540
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
27541
+ defaultChecked: data == null ? void 0 : data.canUpdateOtherColumns,
27542
+ onChange: (v2) => onChange({ index: index2, record: { ...data, canUpdateOtherColumns: v2 } })
27543
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
27544
+ ...layoutConfig,
27545
+ label: "\u53EF\u88AB\u5176\u4ED6\u5206\u680F\u5237\u65B0",
27546
+ name: ""
27547
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
27548
+ defaultChecked: data == null ? void 0 : data.canBeUpdated,
27549
+ onChange: (v2) => onChange({ index: index2, record: { ...data, canBeUpdated: v2 } })
27550
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
27551
+ ...layoutConfig,
27552
+ label: /* @__PURE__ */ React$1.createElement(Balloon, {
27553
+ trigger: /* @__PURE__ */ React$1.createElement("div", null, "\u5F53\u524D\u5206\u680F\u4E3AFTP\u65F6\u81EA\u52A8\u5237\u65B0", /* @__PURE__ */ React$1.createElement(Icon, {
27554
+ type: "help",
27555
+ size: "small"
27556
+ })),
27557
+ align: "t"
27558
+ }, /* @__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")),
27559
+ name: ""
27560
+ }, /* @__PURE__ */ React$1.createElement(CnSwitch, {
27561
+ defaultChecked: data == null ? void 0 : data.autoUpdateWhenIsFTP,
27562
+ onChange: (v2) => onChange({ index: index2, record: { ...data, autoUpdateWhenIsFTP: v2 } })
27563
+ })))));
27564
+ };
26038
27565
  const customTabItem$3 = "_customTabItem_1lh1l_1";
26039
27566
  const tabTitle$3 = "_tabTitle_1lh1l_5";
26040
27567
  const tabLabel$3 = "_tabLabel_1lh1l_9";
@@ -26086,6 +27613,15 @@ const typeContent = [
26086
27613
  });
26087
27614
  }
26088
27615
  },
27616
+ {
27617
+ label: "\u5E03\u5C40",
27618
+ value: "detail-columns",
27619
+ contentRender: (props) => {
27620
+ return /* @__PURE__ */ React$1.createElement(DetailColumns, {
27621
+ ...props
27622
+ });
27623
+ }
27624
+ },
26089
27625
  {
26090
27626
  label: "\u5185\u5D4C\u9875\u9762",
26091
27627
  value: "import-component",
@@ -26178,7 +27714,7 @@ function DetailItems({ schema = {} }) {
26178
27714
  onRemove: onRemoveHandle
26179
27715
  }));
26180
27716
  }
26181
- const CustomTabItem$3 = ({ title, icon }) => {
27717
+ const CustomTabItem$3 = ({ title: title2, icon }) => {
26182
27718
  return /* @__PURE__ */ React$1.createElement("div", {
26183
27719
  className: styles$4.customTabItem
26184
27720
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26188,7 +27724,7 @@ const CustomTabItem$3 = ({ title, icon }) => {
26188
27724
  size: "small"
26189
27725
  }), /* @__PURE__ */ React$1.createElement("span", {
26190
27726
  className: styles$4.tabLabel
26191
- }, title)));
27727
+ }, title2)));
26192
27728
  };
26193
27729
  function DetailBuild({ schema }) {
26194
27730
  return /* @__PURE__ */ React$1.createElement(Tab, {
@@ -26232,6 +27768,18 @@ function DetailBuild({ schema }) {
26232
27768
  }, /* @__PURE__ */ React$1.createElement(Switch, {
26233
27769
  autoWidth: true,
26234
27770
  defaultChecked: schema.get("hasAnchor")
27771
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
27772
+ label: "\u662F\u5426\u6491\u6EE1\u7236\u5BB9\u5668:",
27773
+ name: "fullHeight"
27774
+ }, /* @__PURE__ */ React$1.createElement(Switch, {
27775
+ autoWidth: true,
27776
+ defaultChecked: schema.get("fullHeight")
27777
+ })), /* @__PURE__ */ React$1.createElement(Form.Item, {
27778
+ label: "\u662F\u5426\u5E26\u6709\u767D\u8272\u80CC\u666F:",
27779
+ name: "whiteBackground"
27780
+ }, /* @__PURE__ */ React$1.createElement(Switch, {
27781
+ autoWidth: true,
27782
+ defaultChecked: schema.get("whiteBackground")
26235
27783
  }))))), /* @__PURE__ */ React$1.createElement(Tab.Item, {
26236
27784
  title: "\u5185\u5BB9\u533A",
26237
27785
  icon: "detail"
@@ -26414,8 +27962,6 @@ function FormInfoPanel({ schema }) {
26414
27962
  defaultValue: schema.get("cancelText")
26415
27963
  })))));
26416
27964
  }
26417
- const FormComponentOptions = [...componentOptions];
26418
- FormComponentOptions.splice(3, 0, { value: "input-password", label: "\u5BC6\u7801\u8F93\u5165\u6846" });
26419
27965
  function FormItemsPanel({ schema, swaggerFields = [] }) {
26420
27966
  const mddFormRef = React$1.useRef();
26421
27967
  const [_2, forceUpdate] = React$1.useState({});
@@ -26457,7 +28003,7 @@ function FormItemsPanel({ schema, swaggerFields = [] }) {
26457
28003
  ref: mddFormRef,
26458
28004
  data: fields2 || [],
26459
28005
  penetrateType: PenetrateTypes.FORM,
26460
- componentOptions: FormComponentOptions,
28006
+ componentOptions: [...FormComponentOptions, , { value: "blocks-form", label: "\u8868\u5355\u533A\u5757" }],
26461
28007
  swaggerFieldDataSource: swaggerFields,
26462
28008
  title: "\u914D\u7F6E\u8868\u5355\u9879",
26463
28009
  onAdd: onAddHandle,
@@ -26476,7 +28022,7 @@ var styles$3 = {
26476
28022
  tabTitle: tabTitle$2,
26477
28023
  tabLabel: tabLabel$2
26478
28024
  };
26479
- const CustomTabItem$2 = ({ title, icon }) => {
28025
+ const CustomTabItem$2 = ({ title: title2, icon }) => {
26480
28026
  return /* @__PURE__ */ React$1.createElement("div", {
26481
28027
  className: styles$3.customTabItem
26482
28028
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26486,9 +28032,9 @@ const CustomTabItem$2 = ({ title, icon }) => {
26486
28032
  size: "small"
26487
28033
  }), /* @__PURE__ */ React$1.createElement("span", {
26488
28034
  className: styles$3.tabLabel
26489
- }, title)));
28035
+ }, title2)));
26490
28036
  };
26491
- const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
28037
+ const CustomKV$1 = ({ title: title2 = "", subTitle = "", children }) => {
26492
28038
  return /* @__PURE__ */ React$1.createElement("div", {
26493
28039
  className: "formily-form-v2-kv"
26494
28040
  }, /* @__PURE__ */ React$1.createElement(Box, {
@@ -26497,7 +28043,7 @@ const CustomKV$1 = ({ title = "", subTitle = "", children }) => {
26497
28043
  className: "formily-form-v2-title-wrapper"
26498
28044
  }, /* @__PURE__ */ React$1.createElement("label", {
26499
28045
  className: "title"
26500
- }, title), /* @__PURE__ */ React$1.createElement("label", {
28046
+ }, title2), /* @__PURE__ */ React$1.createElement("label", {
26501
28047
  className: "subTitle"
26502
28048
  }, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
26503
28049
  };
@@ -26615,6 +28161,7 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
26615
28161
  }, []);
26616
28162
  const primaryKey = schema.get("primaryKey");
26617
28163
  const columns = schema.get("columns");
28164
+ const showIndex = schema.get("showIndex");
26618
28165
  const onAddHandle = (key) => {
26619
28166
  var _a2;
26620
28167
  switch (key) {
@@ -26643,6 +28190,9 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
26643
28190
  const onPrimaryKeyChange = (value) => {
26644
28191
  schema.update("", value, "primaryKey");
26645
28192
  };
28193
+ const onBaseInfoChange = (key, value) => {
28194
+ schema.update("", value, key);
28195
+ };
26646
28196
  return /* @__PURE__ */ React$1.createElement("div", null, /* @__PURE__ */ React$1.createElement("div", {
26647
28197
  style: { marginLeft: "10px", marginBottom: 8 }
26648
28198
  }, /* @__PURE__ */ React$1.createElement("label", null, "\u4E3B\u952E\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
@@ -26663,15 +28213,56 @@ function TablePanel$1({ schema, swaggerFields = [] }) {
26663
28213
  }
26664
28214
  }), /* @__PURE__ */ React$1.createElement("div", {
26665
28215
  style: { marginLeft: "10px", marginBottom: 8 }
26666
- }, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(Input$1, {
28216
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u6700\u5927\u9AD8\u5EA6\uFF1A"), /* @__PURE__ */ React$1.createElement(NumberPicker, {
26667
28217
  value: schema.get("maxHeight"),
26668
28218
  size: "small",
26669
- onChange: (v2) => schema.update("", v2, "maxHeight")
28219
+ onChange: (v2) => schema.update("", v2, "maxHeight"),
28220
+ min: 0
26670
28221
  }), /* @__PURE__ */ React$1.createElement("span", {
26671
28222
  className: "mdd-tip"
26672
28223
  }, /* @__PURE__ */ React$1.createElement(Icon, {
26673
28224
  type: "prompt"
26674
- }), " \u8BE5\u5C5E\u6027\u53EF\u4EE5\u5B9E\u73B0\u4E00\u5C4F\u5C55\u793A\uFF0C\u652F\u6301calc\u51FD\u6570,eg\uFF1A calc(100vh - 100px)")));
28225
+ }), " \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", {
28226
+ style: { marginLeft: "10px", marginBottom: 8 }
28227
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u663E\u793A\u5E8F\u53F7\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
28228
+ autoWidth: true,
28229
+ checked: showIndex,
28230
+ size: "small",
28231
+ onChange: (v2) => onBaseInfoChange("showIndex", v2)
28232
+ }), /* @__PURE__ */ React$1.createElement("span", {
28233
+ className: "mdd-tip"
28234
+ }, /* @__PURE__ */ React$1.createElement(Icon, {
28235
+ type: "prompt"
28236
+ }), " \u7EAF\u524D\u7AEF\u81EA\u52A8\u5E8F\u53F7", " ")), /* @__PURE__ */ React$1.createElement("div", {
28237
+ style: { marginLeft: "10px", marginBottom: 8 }
28238
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
28239
+ autoWidth: true,
28240
+ checked: schema.get("useVirtual"),
28241
+ size: "small",
28242
+ onChange: (v2) => onBaseInfoChange("useVirtual", v2)
28243
+ })), /* @__PURE__ */ React$1.createElement("div", {
28244
+ style: { marginLeft: "10px", marginBottom: 8 }
28245
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u5F00\u542F\u81EA\u52A8\u5217\u5BBD\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
28246
+ autoWidth: true,
28247
+ checked: schema.get("columnsAutoWidth"),
28248
+ size: "small",
28249
+ onChange: (v2) => onBaseInfoChange("columnsAutoWidth", v2)
28250
+ }), /* @__PURE__ */ React$1.createElement("span", {
28251
+ className: "mdd-tip"
28252
+ }, /* @__PURE__ */ React$1.createElement(Icon, {
28253
+ type: "prompt"
28254
+ }), " \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", {
28255
+ style: { marginLeft: "10px", marginBottom: 8 }
28256
+ }, /* @__PURE__ */ React$1.createElement("label", null, "\u662F\u5426\u9690\u85CF\u901A\u7528\u9876\u90E8\u64CD\u4F5C\u533A\uFF1A"), /* @__PURE__ */ React$1.createElement(Switch, {
28257
+ autoWidth: true,
28258
+ checked: schema.get("hideCommonToolbar"),
28259
+ size: "small",
28260
+ onChange: (v2) => onBaseInfoChange("hideCommonToolbar", v2)
28261
+ }), /* @__PURE__ */ React$1.createElement("span", {
28262
+ className: "mdd-tip"
28263
+ }, /* @__PURE__ */ React$1.createElement(Icon, {
28264
+ type: "prompt"
28265
+ }), " \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
28266
  }
26676
28267
  function HeaderToolbarPanel({ schema }) {
26677
28268
  const mddFormRef = React$1.useRef();
@@ -26731,7 +28322,7 @@ var styles$2 = {
26731
28322
  kvTitle,
26732
28323
  kvSubTitle
26733
28324
  };
26734
- var CustomKV = ({ title = "", subTitle = "", children }) => {
28325
+ var CustomKV = ({ title: title2 = "", subTitle = "", children }) => {
26735
28326
  return /* @__PURE__ */ React$1.createElement("div", {
26736
28327
  className: styles$2.kvContainer
26737
28328
  }, /* @__PURE__ */ React$1.createElement(Box, {
@@ -26740,7 +28331,7 @@ var CustomKV = ({ title = "", subTitle = "", children }) => {
26740
28331
  className: styles$2.kvWrapper
26741
28332
  }, /* @__PURE__ */ React$1.createElement("label", {
26742
28333
  className: styles$2.kvTitle
26743
- }, title), /* @__PURE__ */ React$1.createElement("label", {
28334
+ }, title2), /* @__PURE__ */ React$1.createElement("label", {
26744
28335
  className: styles$2.kvSubTitle
26745
28336
  }, subTitle)), /* @__PURE__ */ React$1.createElement("div", null, children));
26746
28337
  };
@@ -26752,7 +28343,7 @@ var styles$1 = {
26752
28343
  tabTitle: tabTitle$1,
26753
28344
  tabLabel: tabLabel$1
26754
28345
  };
26755
- const CustomTabItem$1 = ({ title, icon }) => {
28346
+ const CustomTabItem$1 = ({ title: title2, icon }) => {
26756
28347
  return /* @__PURE__ */ React$1.createElement("div", {
26757
28348
  className: styles$1.customTabItem
26758
28349
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -26762,7 +28353,7 @@ const CustomTabItem$1 = ({ title, icon }) => {
26762
28353
  size: "small"
26763
28354
  }), /* @__PURE__ */ React$1.createElement("span", {
26764
28355
  className: styles$1.tabLabel
26765
- }, title)));
28356
+ }, title2)));
26766
28357
  };
26767
28358
  function FtpBuild({ schema }) {
26768
28359
  const [_2, forceUpdate] = React$1.useState({});
@@ -27002,6 +28593,7 @@ function MDDEditor(props) {
27002
28593
  customSchema,
27003
28594
  moduleDataSource,
27004
28595
  refreshModuleDataSource,
28596
+ blocksDataSource,
27005
28597
  moduleMap = /* @__PURE__ */ new Map(),
27006
28598
  scriptTopButtons = []
27007
28599
  } = props;
@@ -27012,7 +28604,8 @@ function MDDEditor(props) {
27012
28604
  React$1.useEffect(() => {
27013
28605
  setModules({
27014
28606
  $ModuleDataSource: moduleDataSource,
27015
- $RefreshModuleDataSource: refreshModuleDataSource
28607
+ $RefreshModuleDataSource: refreshModuleDataSource,
28608
+ $BlocksDataSource: blocksDataSource
27016
28609
  });
27017
28610
  console.log("moduleDataSource: ", moduleDataSource);
27018
28611
  window.__MDD_ModuleDataSource = moduleDataSource;
@@ -27112,7 +28705,7 @@ function getCompAndSchemaFromSchemaJson(schemaJson, customComponent, customSchem
27112
28705
  }
27113
28706
  switch (schemaJson.body.type) {
27114
28707
  case "ftp": {
27115
- return [customComponent || FtpBuild$1, customSchema || FtpSchema$1];
28708
+ return [customComponent || FtpBuild$1, customSchema || FtpSchema];
27116
28709
  }
27117
28710
  case "formily-form-v2": {
27118
28711
  return [customComponent || FormBuild, customSchema || FormilyFormV2Schema];
@@ -27121,7 +28714,19 @@ function getCompAndSchemaFromSchemaJson(schemaJson, customComponent, customSchem
27121
28714
  return [customComponent || DetailBuild, customSchema || DetailSchema];
27122
28715
  }
27123
28716
  case "edit-table": {
27124
- return [customComponent || FtpBuild, customSchema || FtpSchema];
28717
+ return [customComponent || FtpBuild, customSchema || EditTableSchema];
28718
+ }
28719
+ case "blocks-table": {
28720
+ return [customComponent || BlocksBuild, customSchema || BlocksSchema];
28721
+ }
28722
+ case "blocks-filter": {
28723
+ return [customComponent || BlocksBuild, customSchema || BlocksSchema];
28724
+ }
28725
+ case "blocks-form": {
28726
+ return [customComponent || BlocksBuild, customSchema || BlocksSchema];
28727
+ }
28728
+ case "blocks-edit-table": {
28729
+ return [customComponent || BlocksBuild, customSchema || BlocksSchema];
27125
28730
  }
27126
28731
  default:
27127
28732
  return null;
@@ -27215,7 +28820,7 @@ var styles = {
27215
28820
  tabTitle,
27216
28821
  tabLabel
27217
28822
  };
27218
- const CustomTabItem = ({ title, icon }) => {
28823
+ const CustomTabItem = ({ title: title2, icon }) => {
27219
28824
  return /* @__PURE__ */ React$1.createElement("div", {
27220
28825
  className: styles.customTabItem
27221
28826
  }, /* @__PURE__ */ React$1.createElement("div", {
@@ -27225,7 +28830,7 @@ const CustomTabItem = ({ title, icon }) => {
27225
28830
  size: "small"
27226
28831
  }), /* @__PURE__ */ React$1.createElement("span", {
27227
28832
  className: styles.tabLabel
27228
- }, title)));
28833
+ }, title2)));
27229
28834
  };
27230
28835
  function SimpleFtp({ schema }) {
27231
28836
  return /* @__PURE__ */ React$1.createElement(Tab, {
@@ -27241,7 +28846,7 @@ function SimpleFtp({ schema }) {
27241
28846
  }, /* @__PURE__ */ React$1.createElement(Tab.Item, {
27242
28847
  title: "\u641C\u7D22\u533A",
27243
28848
  icon: "search"
27244
- }, /* @__PURE__ */ React$1.createElement(FilterPanel, {
28849
+ }, /* @__PURE__ */ React$1.createElement(FilterPanel$2, {
27245
28850
  schema: schema.getFilterPanel()
27246
28851
  })), /* @__PURE__ */ React$1.createElement(Tab.Item, {
27247
28852
  title: "\u9876\u90E8\u64CD\u4F5C\u533A",
@@ -27327,4 +28932,4 @@ function getDefaultIndexStyle() {
27327
28932
  // }
27328
28933
  `;
27329
28934
  }
27330
- export { DetailBuild, DetailSchema, EVENT_KEY, FtpBuild as EditTableBuild, FtpSchema as EditTableSchema, FormBuild, FormilyFormV2Schema, FtpBuild$1 as FtpBuild, FtpSchema$1 as 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 };
28935
+ 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 };