@pisell/materials 6.0.12 → 6.0.14

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 (99) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +11 -11
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +11 -11
  11. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +1 -1
  12. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +1 -1
  13. package/es/components/dataSourceComponents/dataSourceForm/utils.js +6 -9
  14. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +2 -0
  15. package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +61 -0
  16. package/es/components/dataSourceComponents/dataSourceMenu/index.js +39 -10
  17. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  18. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +6 -2
  19. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +16 -1
  20. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  21. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +2 -2
  22. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +42 -5
  23. package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +1 -1
  24. package/es/components/dataSourceComponents/fields/DatePicker/type.d.ts +1 -0
  25. package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +4 -2
  26. package/es/components/dataSourceComponents/fields/index.d.ts +1 -1
  27. package/es/components/dataSourceComponents/hooks/useActions.js +9 -3
  28. package/es/components/date-picker/datePickerCpt.js +4 -2
  29. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +1 -0
  30. package/es/components/pisellDraggable/components/TreeItem/TreeItem.js +2 -1
  31. package/es/components/pisellDraggable/index.d.ts +3 -1
  32. package/es/components/pisellDraggable/index.js +89 -9
  33. package/es/components/pisellDraggable/types.d.ts +1 -0
  34. package/es/components/pisellLayout/content.d.ts +2 -0
  35. package/es/components/pisellLayout/content.js +26 -4
  36. package/es/components/pisellLayout/footer.d.ts +1 -0
  37. package/es/components/pisellLayout/footer.js +18 -3
  38. package/es/components/pisellLayout/header.d.ts +3 -0
  39. package/es/components/pisellLayout/header.js +26 -3
  40. package/es/components/pisellLayout/index.js +4 -1
  41. package/es/components/pisellLayout/index.less +23 -0
  42. package/es/components/pisellLayout/sider.d.ts +1 -0
  43. package/es/components/pisellLayout/sider.js +38 -3
  44. package/es/components/pisellMenu/PisellMenu.d.ts +5 -1
  45. package/es/components/pisellMenu/PisellMenu.js +10 -4
  46. package/es/components/pisellMenu/types.d.ts +6 -10
  47. package/es/components/table/Table/utils.d.ts +1 -1
  48. package/es/hooks/useEngineContext.js +11 -0
  49. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +1 -1
  50. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +1 -1
  51. package/lib/components/dataSourceComponents/dataSourceForm/utils.js +0 -6
  52. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +2 -0
  53. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +92 -0
  54. package/lib/components/dataSourceComponents/dataSourceMenu/index.js +36 -6
  55. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +2 -2
  56. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +6 -2
  57. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +17 -1
  58. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
  59. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +2 -2
  60. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +37 -3
  61. package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.js +1 -1
  62. package/lib/components/dataSourceComponents/fields/DatePicker/type.d.ts +1 -0
  63. package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +2 -2
  64. package/lib/components/dataSourceComponents/fields/index.d.ts +1 -1
  65. package/lib/components/dataSourceComponents/hooks/useActions.js +3 -0
  66. package/lib/components/date-picker/datePickerCpt.js +4 -2
  67. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +1 -0
  68. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.js +1 -0
  69. package/lib/components/pisellDraggable/index.d.ts +3 -1
  70. package/lib/components/pisellDraggable/index.js +59 -7
  71. package/lib/components/pisellDraggable/types.d.ts +1 -0
  72. package/lib/components/pisellLayout/content.d.ts +2 -0
  73. package/lib/components/pisellLayout/content.js +14 -3
  74. package/lib/components/pisellLayout/footer.d.ts +1 -0
  75. package/lib/components/pisellLayout/footer.js +8 -2
  76. package/lib/components/pisellLayout/header.d.ts +3 -0
  77. package/lib/components/pisellLayout/header.js +13 -2
  78. package/lib/components/pisellLayout/index.js +3 -0
  79. package/lib/components/pisellLayout/index.less +23 -0
  80. package/lib/components/pisellLayout/sider.d.ts +1 -0
  81. package/lib/components/pisellLayout/sider.js +30 -2
  82. package/lib/components/pisellMenu/PisellMenu.d.ts +5 -1
  83. package/lib/components/pisellMenu/PisellMenu.js +12 -4
  84. package/lib/components/pisellMenu/types.d.ts +6 -10
  85. package/lib/components/table/Table/utils.d.ts +1 -1
  86. package/lib/hooks/useEngineContext.js +6 -0
  87. package/lowcode/data-source-menu/meta.ts +66 -6
  88. package/lowcode/form-item-translation/meta.ts +59 -1
  89. package/lowcode/pisell-content/__screenshots__/content.png +0 -0
  90. package/lowcode/pisell-content/meta.ts +28 -5
  91. package/lowcode/pisell-footer/__screenshots__/footer.png +0 -0
  92. package/lowcode/pisell-footer/meta.ts +17 -4
  93. package/lowcode/pisell-header/__screenshots__/header.png +0 -0
  94. package/lowcode/pisell-header/meta.ts +29 -5
  95. package/lowcode/pisell-layout/__screenshots__/layout.png +0 -0
  96. package/lowcode/pisell-layout/meta.ts +10 -5
  97. package/lowcode/pisell-sider/__screenshots__/sider.png +0 -0
  98. package/lowcode/pisell-sider/meta.ts +41 -4
  99. package/package.json +30 -28
@@ -4,6 +4,7 @@ export interface TreeItem {
4
4
  id: UniqueIdentifier;
5
5
  children: TreeItem[];
6
6
  collapsed?: boolean;
7
+ disabledDrop?: boolean;
7
8
  }
8
9
  export declare type TreeItems = TreeItem[];
9
10
  export interface FlattenedItem extends TreeItem {
@@ -3,6 +3,8 @@ import React from 'react';
3
3
  export interface PisellContentProps extends Omit<LayoutProps, 'prefixCls'> {
4
4
  children?: React.ReactNode;
5
5
  __designMode?: string;
6
+ height?: number;
7
+ scroll?: boolean;
6
8
  }
7
9
  declare const PisellContent: React.FC<PisellContentProps>;
8
10
  export default PisellContent;
@@ -1,15 +1,25 @@
1
- var _excluded = ["children"];
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _excluded = ["children", "className", "height", "scroll"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
11
  import { Layout } from 'antd';
12
+ import classNames from 'classnames';
5
13
  import React, { useMemo } from 'react';
6
14
  import useEngineContext from "../../hooks/useEngineContext";
7
15
  var Content = Layout.Content;
8
16
  var PisellContent = function PisellContent(props) {
9
17
  var children = props.children,
18
+ className = props.className,
19
+ height = props.height,
20
+ scroll = props.scroll,
10
21
  rest = _objectWithoutProperties(props, _excluded);
11
22
  var lowCodeProps = useEngineContext();
12
-
13
23
  /**
14
24
  * @title: 内容
15
25
  * @description: 该组件的children默认注入页面内容
@@ -18,12 +28,24 @@ var PisellContent = function PisellContent(props) {
18
28
  * @Author: zhiwei.Wang
19
29
  */
20
30
  var pageContent = useMemo(function () {
31
+ var _lowCodeProps$engine, _lowCodeProps$engine$;
21
32
  // 引擎模式下没有页面内容, 只展示提示
22
33
  if (props.__designMode === 'design') {
23
34
  return 'Page content';
24
35
  }
25
- return lowCodeProps.children;
36
+ return lowCodeProps === null || lowCodeProps === void 0 ? void 0 : (_lowCodeProps$engine = lowCodeProps.engine) === null || _lowCodeProps$engine === void 0 ? void 0 : (_lowCodeProps$engine$ = _lowCodeProps$engine.props) === null || _lowCodeProps$engine$ === void 0 ? void 0 : _lowCodeProps$engine$.children;
26
37
  }, [props.__designMode]);
27
- return /*#__PURE__*/React.createElement(Content, rest, children, pageContent);
38
+ var contentStyle = useMemo(function () {
39
+ return _objectSpread({
40
+ height: height
41
+ }, rest.style);
42
+ }, [height, rest.style]);
43
+ var contentClassName = classNames('pisell-layout-content', className, {
44
+ 'pisell-layout-content-scroll': scroll
45
+ });
46
+ return /*#__PURE__*/React.createElement(Content, _extends({}, rest, {
47
+ style: contentStyle,
48
+ className: contentClassName
49
+ }), children, pageContent);
28
50
  };
29
51
  export default PisellContent;
@@ -2,6 +2,7 @@ import type { LayoutProps } from 'antd';
2
2
  import React from 'react';
3
3
  export interface PisellFooterProps extends Omit<LayoutProps, 'prefixCls'> {
4
4
  children?: React.ReactNode;
5
+ height?: number;
5
6
  }
6
7
  declare const PisellFooter: React.FC<PisellFooterProps>;
7
8
  export default PisellFooter;
@@ -1,12 +1,27 @@
1
- var _excluded = ["children"];
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _excluded = ["children", "height"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
11
  import { Layout } from 'antd';
5
- import React from 'react';
12
+ import React, { useMemo } from 'react';
6
13
  var Footer = Layout.Footer;
7
14
  var PisellFooter = function PisellFooter(props) {
8
15
  var children = props.children,
16
+ height = props.height,
9
17
  rest = _objectWithoutProperties(props, _excluded);
10
- return /*#__PURE__*/React.createElement(Footer, rest, children);
18
+ var footerStyle = useMemo(function () {
19
+ return _objectSpread({
20
+ height: height
21
+ }, rest.style);
22
+ }, [height, rest.style]);
23
+ return /*#__PURE__*/React.createElement(Footer, _extends({}, rest, {
24
+ style: footerStyle
25
+ }), children);
11
26
  };
12
27
  export default PisellFooter;
@@ -1,7 +1,10 @@
1
1
  import type { LayoutProps } from 'antd';
2
2
  import React from 'react';
3
+ import './index.less';
3
4
  export interface PisellHeaderProps extends Omit<LayoutProps, 'prefixCls'> {
4
5
  children?: React.ReactNode;
6
+ height?: number;
7
+ fixed?: boolean;
5
8
  }
6
9
  declare const PisellHeader: React.FC<PisellHeaderProps>;
7
10
  export default PisellHeader;
@@ -1,12 +1,35 @@
1
- var _excluded = ["children"];
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _excluded = ["children", "className", "height", "fixed"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
11
  import { Layout } from 'antd';
5
- import React from 'react';
12
+ import classNames from 'classnames';
13
+ import React, { useMemo } from 'react';
14
+ import "./index.less";
6
15
  var Header = Layout.Header;
7
16
  var PisellHeader = function PisellHeader(props) {
8
17
  var children = props.children,
18
+ className = props.className,
19
+ height = props.height,
20
+ fixed = props.fixed,
9
21
  rest = _objectWithoutProperties(props, _excluded);
10
- return /*#__PURE__*/React.createElement(Header, rest, children);
22
+ var headerStyle = useMemo(function () {
23
+ return _objectSpread({
24
+ height: height
25
+ }, rest.style);
26
+ }, [height, rest.style]);
27
+ var headerClassName = classNames('pisell-layout-header', className, {
28
+ // 'pisell-layout-header-fixed': fixed,
29
+ });
30
+ return /*#__PURE__*/React.createElement(Header, _extends({}, rest, {
31
+ style: headerStyle,
32
+ className: headerClassName
33
+ }), children);
11
34
  };
12
35
  export default PisellHeader;
@@ -2,10 +2,13 @@ var _excluded = ["children"];
2
2
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
4
  import { Layout } from 'antd';
5
- import React from 'react';
5
+ import React, { useEffect } from 'react';
6
6
  var PisellLayout = function PisellLayout(props) {
7
7
  var children = props.children,
8
8
  rest = _objectWithoutProperties(props, _excluded);
9
+ useEffect(function () {
10
+ document.body.id = 'body';
11
+ }, []);
9
12
  return /*#__PURE__*/React.createElement(Layout, rest, children);
10
13
  };
11
14
  PisellLayout.Header = Layout.Header;
@@ -0,0 +1,23 @@
1
+ .pisell-layout {
2
+ position: relative;
3
+ }
4
+
5
+ .pisell-layout-header {}
6
+
7
+ .pisell-layout-header-fixed {
8
+ position: sticky;
9
+ top: 0;
10
+ z-index: 100;
11
+ }
12
+
13
+ .pisell-layout-content {}
14
+
15
+ .pisell-layout-content-scroll {
16
+ overflow-y: auto;
17
+ }
18
+
19
+ .pisell-layout-sider {}
20
+
21
+ .pisell-lowcode-layout-sider-trigger {
22
+ position: unset;
23
+ }
@@ -1,5 +1,6 @@
1
1
  import type { SiderProps } from 'antd/es/layout/Sider';
2
2
  import React from 'react';
3
+ import './index.less';
3
4
  export interface PisellSiderProps extends SiderProps {
4
5
  children?: React.ReactNode;
5
6
  }
@@ -1,12 +1,47 @@
1
- var _excluded = ["children"];
1
+ var _excluded = ["children", "collapsible", "collapsed", "onCollapse"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
8
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
11
  import { Layout } from 'antd';
5
- import React from 'react';
12
+ import classNames from 'classnames';
13
+ import React, { useEffect, useState } from 'react';
14
+ import "./index.less";
6
15
  var Sider = Layout.Sider;
7
16
  var PisellSider = function PisellSider(props) {
8
17
  var children = props.children,
18
+ collapsible = props.collapsible,
19
+ collapsed = props.collapsed,
20
+ onCollapse = props.onCollapse,
9
21
  rest = _objectWithoutProperties(props, _excluded);
10
- return /*#__PURE__*/React.createElement(Sider, rest, children);
22
+ var _useState = useState(collapsed),
23
+ _useState2 = _slicedToArray(_useState, 2),
24
+ collapsedState = _useState2[0],
25
+ setCollapsedState = _useState2[1];
26
+ var className = classNames('pisell-layout-sider', props.className);
27
+ var _onCollapse = function _onCollapse(val, type) {
28
+ onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(val, type);
29
+ setCollapsedState(val);
30
+ };
31
+ useEffect(function () {
32
+ setCollapsedState(collapsed);
33
+ }, [collapsed]);
34
+ return /*#__PURE__*/React.createElement(Sider, _extends({}, rest, {
35
+ collapsible: collapsible,
36
+ collapsed: collapsedState,
37
+ onCollapse: _onCollapse,
38
+ className: className
39
+ }), /*#__PURE__*/React.createElement("div", {
40
+ className: 'pisell-layout-sider-content',
41
+ style: {
42
+ overflowY: 'auto',
43
+ height: '100%'
44
+ }
45
+ }, children));
11
46
  };
12
47
  export default PisellSider;
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
2
  import './PisellMenu.less';
3
3
  import type { PisellMenuProps } from './types';
4
- declare const PisellMenu: React.FC<PisellMenuProps>;
4
+ declare const PisellMenu: {
5
+ ({ className, style, mode, theme, defaultOpenKeys, defaultSelectedKeys, inlineCollapsed, openKeys, selectedKeys, onOpenChange, onSelect, dataSource, __designMode, children, other, ...restProps }: PisellMenuProps): React.JSX.Element;
6
+ Item: Omit<React.FunctionComponent<import("antd").MenuItemProps>, ""> & (<T extends import("antd").MenuItemProps>(props: T extends infer U extends import("antd").MenuItemProps ? unknown extends U ? import("antd").MenuItemProps : U : import("antd").MenuItemProps, context?: any) => React.ReactElement<any, any> | null);
7
+ SubMenu: React.FC<import("antd").SubMenuProps>;
8
+ };
5
9
  export default PisellMenu;
@@ -1,4 +1,4 @@
1
- var _excluded = ["className", "style", "mode", "theme", "defaultOpenKeys", "defaultSelectedKeys", "inlineCollapsed", "openKeys", "selectedKeys", "onOpenChange", "onSelect", "dataSource", "__designMode"];
1
+ var _excluded = ["className", "style", "mode", "theme", "defaultOpenKeys", "defaultSelectedKeys", "inlineCollapsed", "openKeys", "selectedKeys", "onOpenChange", "onSelect", "dataSource", "__designMode", "children", "other"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -21,6 +21,8 @@ var PisellMenu = function PisellMenu(_ref) {
21
21
  onSelect = _ref.onSelect,
22
22
  dataSource = _ref.dataSource,
23
23
  __designMode = _ref.__designMode,
24
+ children = _ref.children,
25
+ other = _ref.other,
24
26
  restProps = _objectWithoutProperties(_ref, _excluded);
25
27
  var _dataSource = useMemo(function () {
26
28
  if (Array.isArray(dataSource)) {
@@ -29,10 +31,12 @@ var PisellMenu = function PisellMenu(_ref) {
29
31
  if (__designMode === 'design') {
30
32
  return [{
31
33
  label: '菜单项1',
32
- key: 'item-1'
34
+ key: 'item-1',
35
+ path: '/item-1'
33
36
  }, {
34
37
  label: '菜单项2',
35
- key: 'item-2'
38
+ key: 'item-2',
39
+ path: '/item-2'
36
40
  }];
37
41
  }
38
42
  return [];
@@ -50,6 +54,8 @@ var PisellMenu = function PisellMenu(_ref) {
50
54
  selectedKeys: selectedKeys,
51
55
  onOpenChange: onOpenChange,
52
56
  onSelect: onSelect
53
- }, restProps));
57
+ }, restProps, other), children);
54
58
  };
59
+ PisellMenu.Item = AntdMenu.Item;
60
+ PisellMenu.SubMenu = AntdMenu.SubMenu;
55
61
  export default PisellMenu;
@@ -1,5 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import type { MenuProps } from 'antd';
2
- import type { ReactNode } from 'react';
3
3
  export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
@@ -11,20 +11,16 @@ export interface PisellMenuProps extends Omit<MenuProps, 'items'> {
11
11
  openKeys?: string[];
12
12
  selectedKeys?: string[];
13
13
  onOpenChange?: (openKeys: string[]) => void;
14
- onSelect?: (info: {
15
- key: string;
16
- keyPath: string[];
17
- item: ReactNode;
18
- domEvent: Event;
19
- selectedKeys: string[];
20
- }) => void;
21
14
  dataSource?: any;
22
15
  __designMode?: string;
16
+ other?: PisellMenuProps;
23
17
  }
24
18
  export interface MenuItemType {
25
- label: ReactNode;
26
19
  key: string;
27
- icon?: ReactNode;
20
+ label: string;
21
+ path: string;
28
22
  children?: MenuItemType[];
23
+ icon?: string | React.ReactNode;
24
+ hide?: boolean;
29
25
  type?: 'group' | 'divider';
30
26
  }
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
155
155
  sort?: SortType | undefined;
156
156
  mode: "" | "localStorage" | "remote";
157
157
  currentViewMode: ModeType;
158
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
158
+ }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
159
159
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
160
160
  export declare const stringify: (obj: Record<string, any>) => string;
161
161
  export {};
@@ -1,7 +1,18 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
7
  import { createContext, useContext } from "react";
2
8
  var defaultContext = /*#__PURE__*/createContext({});
3
9
  var useEngineContext = function useEngineContext() {
4
10
  var context = useContext(window.__appContext || defaultContext);
11
+ if ((context === null || context === void 0 ? void 0 : context.appHelper) === undefined) {
12
+ return _objectSpread(_objectSpread({}, context), {}, {
13
+ appHelper: window.__appHelper
14
+ });
15
+ }
5
16
  return context || {};
6
17
  };
7
18
  export default useEngineContext;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ModeType } from '../../type';
3
3
  export interface FormSettingContextType {
4
- onDataSourceFinish?: (values: any, result: any) => void;
4
+ onDataSourceFinish?: (values: any, result: any, form: any) => void;
5
5
  renderMode?: ModeType;
6
6
  groupInfoPosition?: 'top' | 'side';
7
7
  children?: React.ReactNode;
@@ -119,7 +119,7 @@ var SubmitButton = (props) => {
119
119
  const formattedValues = formatSubmitValues ? formatSubmitValues(filteredValues) : filteredValues;
120
120
  const result = await onSubmit(formattedValues);
121
121
  if (onDataSourceFinish) {
122
- onDataSourceFinish(formattedValues, result);
122
+ onDataSourceFinish(formattedValues, result, form);
123
123
  }
124
124
  if (refreshData) {
125
125
  refreshTableData == null ? void 0 : refreshTableData();
@@ -182,7 +182,6 @@ var withFormItem = (WrappedComponent, overlayProps) => {
182
182
  break;
183
183
  case "phone":
184
184
  rules.push({
185
- ...typeobj,
186
185
  validator: (_, value) => {
187
186
  if (!(value == null ? void 0 : value.trim())) {
188
187
  return Promise.resolve();
@@ -210,7 +209,6 @@ var withFormItem = (WrappedComponent, overlayProps) => {
210
209
  break;
211
210
  case "mobile":
212
211
  rules.push({
213
- ...typeobj,
214
212
  validator: (_, value) => {
215
213
  if (!(value == null ? void 0 : value.trim())) {
216
214
  return Promise.resolve();
@@ -259,14 +257,10 @@ var withFormItem = (WrappedComponent, overlayProps) => {
259
257
  break;
260
258
  case "subdomain":
261
259
  rules.push({
262
- ...typeobj,
263
260
  validator: (_, value) => {
264
261
  if (!value)
265
262
  return Promise.resolve();
266
263
  const subdomain = value.split(".")[0];
267
- if (!subdomain) {
268
- return Promise.resolve();
269
- }
270
264
  if (!/^[a-z0-9-]+$/.test(subdomain)) {
271
265
  return Promise.reject(
272
266
  new Error((0, import_locales.getText)("subdomain-error-pattern"))
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,92 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/dataSourceComponents/dataSourceMenu/Basic.tsx
30
+ var Basic_exports = {};
31
+ __export(Basic_exports, {
32
+ default: () => Basic_default
33
+ });
34
+ module.exports = __toCommonJS(Basic_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
37
+ var import_pisellMenu = __toESM(require("../../pisellMenu"));
38
+ var DataSourceMenu = (0, import_react.forwardRef)(
39
+ (props, ref) => {
40
+ var _a, _b, _c, _d;
41
+ const { appHelper } = (0, import_useEngineContext.default)();
42
+ const {
43
+ menuItems,
44
+ selectedKeys,
45
+ openKeys,
46
+ setOpenKeys,
47
+ getShowChildren,
48
+ handleClick
49
+ } = (_d = (_c = (_b = (_a = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.menuManager) == null ? void 0 : _d.useMenu();
50
+ const renderMenuItems = (items) => {
51
+ return items.map((item) => {
52
+ if (item.hide) {
53
+ return null;
54
+ }
55
+ const _children = getShowChildren(item.children || []);
56
+ if (_children == null ? void 0 : _children.length) {
57
+ return /* @__PURE__ */ import_react.default.createElement(
58
+ import_pisellMenu.default.SubMenu,
59
+ {
60
+ key: item.key,
61
+ title: item.label,
62
+ icon: item.icon,
63
+ router: item.path
64
+ },
65
+ renderMenuItems(_children)
66
+ );
67
+ }
68
+ return /* @__PURE__ */ import_react.default.createElement(import_pisellMenu.default.Item, { key: item.key, icon: item.icon, router: item.path }, item.label);
69
+ });
70
+ };
71
+ return /* @__PURE__ */ import_react.default.createElement(
72
+ import_pisellMenu.default,
73
+ {
74
+ ref,
75
+ mode: "inline",
76
+ selectedKeys,
77
+ openKeys,
78
+ onOpenChange: setOpenKeys,
79
+ onClick: ({ item }) => {
80
+ var _a2;
81
+ handleClick((_a2 = item.props) == null ? void 0 : _a2.router);
82
+ },
83
+ ...props,
84
+ other: {
85
+ items: void 0
86
+ }
87
+ },
88
+ renderMenuItems(menuItems)
89
+ );
90
+ }
91
+ );
92
+ var Basic_default = DataSourceMenu;
@@ -33,13 +33,43 @@ __export(dataSourceMenu_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(dataSourceMenu_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
36
37
  var import_pisellMenu = __toESM(require("../../pisellMenu"));
37
38
  var import_useVariables = __toESM(require("../hooks/useVariables"));
38
- var DataSourceMenu = (0, import_react.forwardRef)(
39
- (props, ref) => {
40
- const { dataSource } = props;
41
- const { parseVariable } = (0, import_useVariables.default)();
42
- return /* @__PURE__ */ import_react.default.createElement(import_pisellMenu.default, { ...props, dataSource: parseVariable == null ? void 0 : parseVariable(dataSource), ref });
39
+ var import_Basic = __toESM(require("./Basic"));
40
+ var DataSourceMenu = (props, ref) => {
41
+ var _a, _b, _c, _d;
42
+ const { dataSource } = props;
43
+ const { parseVariable } = (0, import_useVariables.default)();
44
+ const { appHelper } = (0, import_useEngineContext.default)();
45
+ const _dataSource = (0, import_react.useMemo)(() => {
46
+ if (Array.isArray(dataSource)) {
47
+ return dataSource;
48
+ }
49
+ if (props.__designMode === "design") {
50
+ return [
51
+ {
52
+ label: "菜单项1",
53
+ key: "item-1",
54
+ path: "/item-1"
55
+ },
56
+ {
57
+ label: "菜单项2",
58
+ key: "item-2",
59
+ path: "/item-2"
60
+ }
61
+ ];
62
+ }
63
+ if (typeof dataSource === "string") {
64
+ return parseVariable == null ? void 0 : parseVariable(dataSource);
65
+ }
66
+ return [];
67
+ }, [dataSource]);
68
+ if (props.__designMode === "design") {
69
+ return /* @__PURE__ */ import_react.default.createElement(import_pisellMenu.default, { ...props });
43
70
  }
44
- );
71
+ const MenuProvider = (_d = (_c = (_b = (_a = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.menuManager) == null ? void 0 : _d.MenuProvider;
72
+ console.log("MenuProvider11", appHelper);
73
+ return /* @__PURE__ */ import_react.default.createElement(MenuProvider, { menus: _dataSource }, /* @__PURE__ */ import_react.default.createElement(import_Basic.default, { ...props }));
74
+ };
45
75
  var dataSourceMenu_default = DataSourceMenu;
@@ -9,7 +9,7 @@ declare const useDrawerState: (operationContent?: {
9
9
  openDrawer: (item: OperationItem) => void;
10
10
  closeDrawer: () => void;
11
11
  drawerContent: import("react").ReactNode;
12
- Container: typeof Drawer | {
12
+ Container: {
13
13
  (props: import("../../../pisellModal").PisellModalProps): import("react").JSX.Element;
14
14
  confirm: (props: import("../../../pisellModal/components/functions").PisellModalFuncProps) => {
15
15
  destroy: () => void;
@@ -33,7 +33,7 @@ declare const useDrawerState: (operationContent?: {
33
33
  update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
34
34
  };
35
35
  Information: (props: import("../../../pisellModal/components/Information").InformationProps) => import("react").JSX.Element;
36
- };
36
+ } | typeof Drawer;
37
37
  containerProps: {};
38
38
  };
39
39
  export default useDrawerState;
@@ -9,12 +9,16 @@ export declare type UseFormatParams = {
9
9
  dataSourceKey: string;
10
10
  fields: Field[];
11
11
  };
12
- export declare type FormatListResultParams = {
12
+ export declare type ApiListResult = {
13
13
  list: any[];
14
14
  count: number;
15
- page: number;
16
15
  size: number;
16
+ } & ({
17
+ page: number;
17
18
  } | {
19
+ skip: number;
20
+ });
21
+ export declare type FormatListResultParams = ApiListResult | {
18
22
  data: any[];
19
23
  meta: {
20
24
  count: number;