@teamix/pro 1.6.0-beta.7 → 1.6.1-beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/dist/pro.all.min.css +1 -1
  2. package/dist/pro.css +1 -1
  3. package/dist/pro.js +1662 -619
  4. package/dist/pro.min.css +1 -1
  5. package/dist/pro.min.js +1 -1
  6. package/dist/pro.xconsole.min.css +1 -1
  7. package/es/actions/index.d.ts +6 -6
  8. package/es/actions/index.js +13 -13
  9. package/es/form/Components/FormItem2/index.js +5 -5
  10. package/es/form/Components/__builtins__/hooks/useClickAway.js +1 -1
  11. package/es/form/Components/__builtins__/icons.js +2 -2
  12. package/es/form/Components/__builtins__/index.d.ts +5 -5
  13. package/es/form/Components/__builtins__/index.js +6 -6
  14. package/es/form/Components/form-layout/index.js +2 -2
  15. package/es/form/Components/form-layout/useResponsiveFormLayout.js +1 -1
  16. package/es/form/Filter/AdvancedFilter.js +1 -1
  17. package/es/form/Filter/index2.js +2 -2
  18. package/es/form/ProForm/index.d.ts +2 -2
  19. package/es/form/ProForm/index.js +12 -17
  20. package/es/index.d.ts +1 -1
  21. package/es/index.js +1 -1
  22. package/es/info/index.d.ts +6 -2
  23. package/es/info/index.js +1 -2
  24. package/es/info/utils/utils.d.ts +1 -1
  25. package/es/sidebar/utils/index.d.ts +2 -2
  26. package/es/table/components/Filter/index.js +3 -3
  27. package/es/table/index.d.ts +3 -4
  28. package/es/table/index.js +105 -44
  29. package/es/table/index.scss +26 -0
  30. package/es/table/typing.d.ts +7 -1
  31. package/es/table/utils/columnRender.d.ts +1 -0
  32. package/es/table/utils/columnRender.js +41 -1
  33. package/es/table/utils/genAutoWidthColumns.d.ts +30 -0
  34. package/es/table/utils/genAutoWidthColumns.js +327 -0
  35. package/lib/actions/index.d.ts +6 -6
  36. package/lib/actions/index.js +11 -11
  37. package/lib/form/Components/FormItem2/index.js +39 -39
  38. package/lib/form/Components/__builtins__/icons.js +2 -2
  39. package/lib/form/Components/__builtins__/index.d.ts +5 -5
  40. package/lib/form/Components/__builtins__/index.js +27 -27
  41. package/lib/form/Components/form-layout/index.js +3 -3
  42. package/lib/form/Components/form-layout/useResponsiveFormLayout.js +1 -1
  43. package/lib/form/Filter/AdvancedFilter.js +1 -1
  44. package/lib/form/Filter/index2.js +2 -2
  45. package/lib/form/ProForm/index.d.ts +2 -2
  46. package/lib/form/ProForm/index.js +11 -16
  47. package/lib/index.d.ts +1 -1
  48. package/lib/index.js +1 -1
  49. package/lib/info/index.d.ts +6 -2
  50. package/lib/info/index.js +1 -2
  51. package/lib/info/utils/utils.d.ts +1 -1
  52. package/lib/sidebar/utils/index.d.ts +2 -2
  53. package/lib/table/components/Filter/index.js +3 -3
  54. package/lib/table/index.d.ts +3 -4
  55. package/lib/table/index.js +104 -43
  56. package/lib/table/index.scss +26 -0
  57. package/lib/table/typing.d.ts +7 -1
  58. package/lib/table/utils/columnRender.d.ts +1 -0
  59. package/lib/table/utils/columnRender.js +44 -3
  60. package/lib/table/utils/genAutoWidthColumns.d.ts +30 -0
  61. package/lib/table/utils/genAutoWidthColumns.js +342 -0
  62. package/package.json +1 -1
  63. package/es/form/utils/parseSchema.d.ts +0 -3
  64. package/es/form/utils/parseSchema.js +0 -38
  65. package/es/utils/aspect.d.ts +0 -2
  66. package/es/utils/aspect.js +0 -60
  67. package/lib/form/utils/parseSchema.d.ts +0 -3
  68. package/lib/form/utils/parseSchema.js +0 -45
  69. package/lib/utils/aspect.d.ts +0 -2
  70. package/lib/utils/aspect.js +0 -67
@@ -1,15 +1,15 @@
1
- import { TooltipProps } from '@alicloudfe/components/types/balloon';
1
+ import React, { ReactNode } from 'react';
2
2
  import { ButtonProps } from '@alicloudfe/components/types/button';
3
3
  import { MenuButtonProps } from '@alicloudfe/components/types/menu-button';
4
- import React, { ReactNode } from 'react';
4
+ import { TooltipProps } from '@alicloudfe/components/types/balloon';
5
+ import { LinkAction } from './link';
6
+ import { RequestAction } from './request';
5
7
  import { DialogAction } from './dialog';
6
8
  import { DialogFormAction } from './dialog-form';
7
- import { DialogInfoAction } from './dialog-info';
8
9
  import { DialogTableAction } from './dialog-table';
9
- import './index.scss';
10
- import { LinkAction } from './link';
10
+ import { DialogInfoAction } from './dialog-info';
11
11
  import { PopConfirmAction } from './pop-confirm';
12
- import { RequestAction } from './request';
12
+ import './index.scss';
13
13
  export declare type ProActionConfig = ({
14
14
  type: 'dialog-form' | 'drawer-form';
15
15
  } & DialogFormAction) | ({
@@ -17,28 +17,28 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
17
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
  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; }
19
19
  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; }
20
- import { Balloon, Button, Divider, Menu, MenuButton } from '@alicloudfe/components';
21
- import Icon from '@teamix/icon';
22
- import { getMessage, getTargetValue, usePrefixCls } from '@teamix/utils';
23
- import cls from 'classnames';
24
20
  import React from 'react';
21
+ import cls from 'classnames';
22
+ import { Button, MenuButton, Menu, Divider, Balloon } from '@alicloudfe/components';
23
+ import Icon from '@teamix/icon';
24
+ import { getTargetValue, getMessage, usePrefixCls } from '@teamix/utils';
25
+ import { useLinkAction } from './link';
26
+ import { useRequestAction } from './request';
27
+ import { useDialogAction } from './dialog';
25
28
  import { useConfirmAction } from './confirm';
26
29
  import { useDangerConfirmAction } from './danger-confirm';
27
- import { useDangerPopConfirmAction } from './danger-pop-confirm';
28
- import { useDialogAction } from './dialog';
30
+ import { useNoticeAction } from './notice';
31
+ import { useErrorAction } from './error';
29
32
  import { useDialogFormAction } from './dialog-form';
30
- import { useDialogInfoAction } from './dialog-info';
31
33
  import { useDialogTableAction } from './dialog-table';
34
+ import { useDialogInfoAction } from './dialog-info';
32
35
  import { useDrawerAction } from './drawer';
33
36
  import { useDrawerFormAction } from './drawer-form';
34
- import { useDrawerInfoAction } from './drawer-info';
35
37
  import { useDrawerTableAction } from './drawer-table';
36
- import { useErrorAction } from './error';
37
- import './index.scss';
38
- import { useLinkAction } from './link';
39
- import { useNoticeAction } from './notice';
38
+ import { useDrawerInfoAction } from './drawer-info';
40
39
  import { usePopConfirmAction } from './pop-confirm';
41
- import { useRequestAction } from './request';
40
+ import { useDangerPopConfirmAction } from './danger-pop-confirm';
41
+ import './index.scss';
42
42
  var RegistedActions = new Map();
43
43
  export function registerActionHandler(id, extendActionId, defaultConfig) {
44
44
  RegistedActions.set(id, {
@@ -10,13 +10,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
10
  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; }
11
11
  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; }
12
12
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- import { Balloon } from '@alicloudfe/components';
13
+ import React, { useState, useRef, useEffect } from 'react';
14
+ import cls from 'classnames';
15
+ import { usePrefixCls, pickDataProps, QuestionCircleOutlinedIcon, CloseCircleOutlinedIcon, CheckCircleOutlinedIcon, ExclamationCircleOutlinedIcon } from '../__builtins__';
14
16
  import { isVoidField } from '@formily/core';
15
17
  import { connect, mapProps } from '@formily/react';
16
- import cls from 'classnames';
17
- import React, { useEffect, useRef, useState } from 'react';
18
- import { FormLayoutShallowContext, useFormLayout } from '../form-layout';
19
- import { CheckCircleOutlinedIcon, CloseCircleOutlinedIcon, ExclamationCircleOutlinedIcon, pickDataProps, QuestionCircleOutlinedIcon, usePrefixCls } from '../__builtins__';
18
+ import { useFormLayout, FormLayoutShallowContext } from '../form-layout';
19
+ import { Balloon } from '@alicloudfe/components';
20
20
  var useFormItemLayout = function useFormItemLayout(props) {
21
21
  var _ref, _props$layout, _props$colon, _props$labelAlign, _ref2, _props$labelAlign2, _props$labelWrap, _props$labelWidth, _props$wrapperWidth, _props$labelCol, _props$wrapperCol, _props$wrapperAlign, _props$wrapperWrap, _props$fullness, _props$size, _props$inset, _props$bordered, _ref3, _props$feedbackLayout, _ref4, _props$tooltipLayout, _ref5, _props$tooltipIcon;
22
22
  var layout = useFormLayout();
@@ -1,4 +1,4 @@
1
- import { useEffect, useRef } from 'react';
1
+ import { useRef, useEffect } from 'react';
2
2
  var defaultEvent = 'click';
3
3
  function getTargetElement(target, defaultElement) {
4
4
  if (!target) {
@@ -4,10 +4,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  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; }
6
6
  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; }
7
- import { Button } from '@alicloudfe/components';
8
- import cls from 'classnames';
9
7
  import React from 'react';
8
+ import cls from 'classnames';
10
9
  import { usePrefixCls } from './hooks/usePrefixCls';
10
+ import { Button } from '@alicloudfe/components';
11
11
  export var Icon = /*#__PURE__*/React.forwardRef(function (originalProps, ref) {
12
12
  var prefix = usePrefixCls('formily-icon');
13
13
  var text = originalProps.text,
@@ -1,8 +1,8 @@
1
- export * from './empty';
1
+ export * from './moment';
2
2
  export * from './hooks';
3
- export * from './icons';
4
- export * from './loading';
5
- export * from './mapSize';
6
3
  export * from './mapStatus';
7
- export * from './moment';
4
+ export * from './mapSize';
5
+ export * from './empty';
6
+ export * from './loading';
8
7
  export * from './pickDataProps';
8
+ export * from './icons';
@@ -1,8 +1,8 @@
1
- export * from './empty';
1
+ export * from './moment';
2
2
  export * from './hooks';
3
- export * from './icons';
4
- export * from './loading';
5
- export * from './mapSize';
6
3
  export * from './mapStatus';
7
- export * from './moment';
8
- export * from './pickDataProps';
4
+ export * from './mapSize';
5
+ export * from './empty';
6
+ export * from './loading';
7
+ export * from './pickDataProps';
8
+ export * from './icons';
@@ -4,10 +4,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
4
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
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
6
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- import cls from 'classnames';
8
7
  import React, { createContext, useContext } from 'react';
9
- import { usePrefixCls } from '../__builtins__';
10
8
  import { useResponsiveFormLayout } from './useResponsiveFormLayout';
9
+ import { usePrefixCls } from '../__builtins__';
10
+ import cls from 'classnames';
11
11
  export var FormLayoutDeepContext = /*#__PURE__*/createContext({});
12
12
  export var FormLayoutShallowContext = /*#__PURE__*/createContext({});
13
13
  export var useFormDeepLayout = function useFormDeepLayout() {
@@ -10,8 +10,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
10
10
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
11
  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; }
12
12
  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; }
13
+ import { useRef, useState, useEffect } from 'react';
13
14
  import { isArr, isValid } from '@formily/shared';
14
- import { useEffect, useRef, useState } from 'react';
15
15
  var calcBreakpointIndex = function calcBreakpointIndex(breakpoints, width) {
16
16
  for (var i = 0; i < breakpoints.length; i++) {
17
17
  if (width <= breakpoints[i]) {
@@ -10,8 +10,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
10
10
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
11
  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; }
12
12
  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; }
13
- import { cls, getMessage, isBool, usePrefixCls } from '@teamix/utils';
14
13
  import React, { memo, useEffect, useMemo } from 'react';
14
+ import { usePrefixCls, getMessage, cls, isBool } from '@teamix/utils';
15
15
  import ProForm from '../ProForm';
16
16
  import { mergeArrayValue } from '../utils';
17
17
  /**
@@ -10,9 +10,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  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; }
11
11
  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; }
12
12
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
- import { createForm } from '@formily/core';
14
- import { cls, getMessage, usePrefixCls } from '@teamix/utils';
15
13
  import React, { memo, useMemo } from 'react';
14
+ import { usePrefixCls, getMessage, cls } from '@teamix/utils';
15
+ import { createForm } from '@formily/core';
16
16
  import ProForm from '../ProForm';
17
17
  import { mergeArrayValue } from '../utils';
18
18
  import './index2.scss';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ProFormProps } from '../typing';
3
3
  import './index.scss';
4
- declare const _default: React.FC<ProFormProps>;
5
- export default _default;
4
+ declare const ProForm: React.FC<ProFormProps>;
5
+ export default ProForm;
@@ -4,27 +4,25 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
4
4
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
5
  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; }
6
6
  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; }
7
- import { Affix } from '@alicloudfe/components';
7
+ import React, { memo, useEffect, useMemo, useRef } from 'react';
8
+ import { usePrefixCls, cls, getLanguage, getGlobalConfig } from '@teamix/utils';
8
9
  import { createForm, onFieldValueChange, onFormValuesChange, registerValidateLocale, setValidateLanguage } from '@formily/core';
9
10
  import { toJS } from '@formily/reactive';
10
- import { ArrayCards, ArrayCollapse, ArrayItems, ArrayTable, Editable, Form, FormButtonGroup, FormCollapse, FormDialog, FormDrawer, FormGrid, FormItem, FormLayout, FormStep, FormTab, Reset, SelectTable, Space, Submit, Upload } from '@teamix/formily';
11
- import { cls, getGlobalConfig, getLanguage, usePrefixCls } from '@teamix/utils';
12
- import React, { memo, useEffect, useMemo, useRef } from 'react';
13
- import { ProComponentAspect } from '../../utils/aspect';
11
+ import { Form, Upload, SelectTable, FormLayout, FormItem, ArrayCollapse, ArrayCards, ArrayItems, ArrayTable, Space, FormGrid, FormTab, FormCollapse, FormStep, Editable, FormDialog, FormDrawer, FormButtonGroup, Submit, Reset } from '@teamix/formily';
12
+ import { Affix } from '@alicloudfe/components';
13
+ import ProFieldComponents from '../Components/ProField';
14
+ import addCascadeEffect from './addCascadeEffect';
14
15
  import { EditableDialog, EditableDrawer, EditablePopover } from '../Components/Editable';
15
16
  import FormGroup from '../Components/FormGroup';
16
- import FormItem2 from '../Components/FormItem2';
17
17
  import LightFilter from '../Components/LightFilter';
18
- import ProFieldComponents from '../Components/ProField';
19
18
  import Text from '../Components/Text/index';
20
- import validateLocale from '../locales/validate';
21
19
  import SchemaForm from '../SchemaForm';
22
- import { parseSchema } from '../utils/parseSchema';
23
- import addCascadeEffect from './addCascadeEffect';
24
- import './index.scss';
25
- import useAutoLayout from './useAutoLayout';
26
20
  import useAutoSubmit from './useAutoSubmit';
21
+ import useAutoLayout from './useAutoLayout';
27
22
  import useInitialRequest from './useInitialRequest';
23
+ import validateLocale from '../locales/validate';
24
+ import './index.scss';
25
+ import FormItem2 from '../Components/FormItem2';
28
26
  registerValidateLocale(validateLocale);
29
27
  var formilyComponents = {
30
28
  FormLayout: FormLayout,
@@ -69,7 +67,7 @@ var ProForm = /*#__PURE__*/memo(function (_ref) {
69
67
  onInitialComplete = _ref.onInitialComplete,
70
68
  className = _ref.className,
71
69
  validateFirst = _ref.validateFirst,
72
- schemaProps = _ref.schema,
70
+ schema = _ref.schema,
73
71
  children = _ref.children,
74
72
  otherProps = _objectWithoutProperties(_ref, _excluded);
75
73
  var formRef = useRef();
@@ -80,9 +78,6 @@ var ProForm = /*#__PURE__*/memo(function (_ref) {
80
78
  var mergedScope = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, context), globalScope), scope), {}, {
81
79
  context: context
82
80
  });
83
- var schema = useMemo(function () {
84
- return parseSchema(schemaProps !== null && schemaProps !== void 0 ? schemaProps : []);
85
- }, [schemaProps]);
86
81
  var form = useMemo(function () {
87
82
  var nextForm = outerForm || createForm({
88
83
  validateFirst: validateFirst
@@ -154,4 +149,4 @@ ProForm.defaultProps = {
154
149
  breakpoints: true,
155
150
  labelAlign: 'left'
156
151
  };
157
- export default ProComponentAspect(ProForm, 'ProForm');
152
+ export default ProForm;
package/es/index.d.ts CHANGED
@@ -30,5 +30,5 @@ export * from './sidebar';
30
30
  export * from './utils';
31
31
  export * from './timeline';
32
32
  export * from './image';
33
- declare const version = "1.6.0-beta.7";
33
+ declare const version = "1.6.1-beta";
34
34
  export { version, ProAction, ProCard, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProSkeleton, ProTable, ProSidebar, ProTimeline, TeamixIcon, ProImage, hooks, nocode, templates, utils, };
package/es/index.js CHANGED
@@ -37,7 +37,7 @@ export * from './sidebar';
37
37
  export * from './utils';
38
38
  export * from './timeline';
39
39
  export * from './image';
40
- var version = '1.6.0-beta.7';
40
+ var version = '1.6.1-beta';
41
41
  // By TeamixTest
42
42
  window.postMessage({
43
43
  source: 'teamix-test-devtools',
@@ -2,5 +2,9 @@ import React from 'react';
2
2
  import './index.scss';
3
3
  import { ProInfoProps } from './typing';
4
4
  export * from './typing';
5
- declare const _default: React.FC<ProInfoProps>;
6
- export default _default;
5
+ declare const ProInfo: {
6
+ (props: ProInfoProps): JSX.Element;
7
+ Group: React.FC<import("./typing").ProInfoGroupProps>;
8
+ ProInfoGroup: React.FC<import("./typing").ProInfoGroupProps>;
9
+ };
10
+ export default ProInfo;
package/es/info/index.js CHANGED
@@ -21,7 +21,6 @@ import { ProInfoGroupContext, useActionType } from './utils';
21
21
  import { doCommonRequest, cls } from '@teamix/utils';
22
22
  import { useSize } from '@teamix/hooks';
23
23
  import { ProCard } from '..';
24
- import { ProComponentAspect } from '../utils/aspect';
25
24
  export * from './typing';
26
25
  var ProInfo = function ProInfo(props) {
27
26
  var _ref;
@@ -179,4 +178,4 @@ var ProInfo = function ProInfo(props) {
179
178
  };
180
179
  ProInfo.Group = ProInfoGroup;
181
180
  ProInfo.ProInfoGroup = ProInfoGroup;
182
- export default ProComponentAspect(ProInfo, 'ProInfo');
181
+ export default ProInfo;
@@ -1 +1 @@
1
- export declare function getLayout(width: number): "l" | "xs" | "xl" | "s" | "m";
1
+ export declare function getLayout(width: number): "xs" | "xl" | "l" | "s" | "m";
@@ -141,7 +141,7 @@ export declare function getTreeNodeProps(item: ProSidebarDataSourceItem): {
141
141
  results?: number | undefined;
142
142
  security?: string | undefined;
143
143
  unselectable?: "on" | "off" | undefined;
144
- inputMode?: "none" | "url" | "text" | "search" | "tel" | "email" | "numeric" | "decimal" | undefined;
144
+ inputMode?: "url" | "none" | "text" | "search" | "tel" | "email" | "numeric" | "decimal" | undefined;
145
145
  is?: string | undefined;
146
146
  'aria-activedescendant'?: string | undefined;
147
147
  'aria-atomic'?: (boolean | "false" | "true") | undefined;
@@ -156,7 +156,7 @@ export declare function getTreeNodeProps(item: ProSidebarDataSourceItem): {
156
156
  'aria-describedby'?: string | undefined;
157
157
  'aria-details'?: string | undefined;
158
158
  'aria-disabled'?: (boolean | "false" | "true") | undefined;
159
- 'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup" | undefined;
159
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
160
160
  'aria-errormessage'?: string | undefined;
161
161
  'aria-expanded'?: (boolean | "false" | "true") | undefined;
162
162
  'aria-flowto'?: string | undefined;
@@ -77,7 +77,7 @@ var Filter = function Filter(props) {
77
77
  }
78
78
  // console.log(filters);
79
79
  return filters;
80
- }, []);
80
+ }, [column]);
81
81
  // 点击确定回调
82
82
  var onFilterOk = function onFilterOk() {
83
83
  var _actionRef$current2, _actionRef$current2$f, _actionRef$current$ge6, _actionRef$current3, _actionRef$current3$g, _actionRef$current3$g2, _actionRef$current4, _actionRef$current4$s, _actionRef$current5, _actionRef$current7, _actionRef$current7$r, _actionRef$current8, _actionRef$current8$r, _actionRef$current9, _actionRef$current9$c;
@@ -159,7 +159,7 @@ var Filter = function Filter(props) {
159
159
  setSelected([valueStr]);
160
160
  }
161
161
  }, /*#__PURE__*/React.createElement(ProField, {
162
- type: 'text',
162
+ type: "text",
163
163
  value: label,
164
164
  render: {
165
165
  ellipsis: true
@@ -187,7 +187,7 @@ var Filter = function Filter(props) {
187
187
  }
188
188
  }
189
189
  }, /*#__PURE__*/React.createElement(ProField, {
190
- type: 'text',
190
+ type: "text",
191
191
  value: label,
192
192
  render: {
193
193
  ellipsis: true
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
- import './index.scss';
3
1
  import { ProTableProps } from './typing';
2
+ import './index.scss';
4
3
  export * from './typing';
5
- declare const _default: React.FC<ProTableProps>;
6
- export default _default;
4
+ declare const ProTable: (props: ProTableProps) => JSX.Element;
5
+ export default ProTable;