@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.
- package/dist/pro.all.min.css +1 -1
- package/dist/pro.css +1 -1
- package/dist/pro.js +1662 -619
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.xconsole.min.css +1 -1
- package/es/actions/index.d.ts +6 -6
- package/es/actions/index.js +13 -13
- package/es/form/Components/FormItem2/index.js +5 -5
- package/es/form/Components/__builtins__/hooks/useClickAway.js +1 -1
- package/es/form/Components/__builtins__/icons.js +2 -2
- package/es/form/Components/__builtins__/index.d.ts +5 -5
- package/es/form/Components/__builtins__/index.js +6 -6
- package/es/form/Components/form-layout/index.js +2 -2
- package/es/form/Components/form-layout/useResponsiveFormLayout.js +1 -1
- package/es/form/Filter/AdvancedFilter.js +1 -1
- package/es/form/Filter/index2.js +2 -2
- package/es/form/ProForm/index.d.ts +2 -2
- package/es/form/ProForm/index.js +12 -17
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/info/index.d.ts +6 -2
- package/es/info/index.js +1 -2
- package/es/info/utils/utils.d.ts +1 -1
- package/es/sidebar/utils/index.d.ts +2 -2
- package/es/table/components/Filter/index.js +3 -3
- package/es/table/index.d.ts +3 -4
- package/es/table/index.js +105 -44
- package/es/table/index.scss +26 -0
- package/es/table/typing.d.ts +7 -1
- package/es/table/utils/columnRender.d.ts +1 -0
- package/es/table/utils/columnRender.js +41 -1
- package/es/table/utils/genAutoWidthColumns.d.ts +30 -0
- package/es/table/utils/genAutoWidthColumns.js +327 -0
- package/lib/actions/index.d.ts +6 -6
- package/lib/actions/index.js +11 -11
- package/lib/form/Components/FormItem2/index.js +39 -39
- package/lib/form/Components/__builtins__/icons.js +2 -2
- package/lib/form/Components/__builtins__/index.d.ts +5 -5
- package/lib/form/Components/__builtins__/index.js +27 -27
- package/lib/form/Components/form-layout/index.js +3 -3
- package/lib/form/Components/form-layout/useResponsiveFormLayout.js +1 -1
- package/lib/form/Filter/AdvancedFilter.js +1 -1
- package/lib/form/Filter/index2.js +2 -2
- package/lib/form/ProForm/index.d.ts +2 -2
- package/lib/form/ProForm/index.js +11 -16
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/info/index.d.ts +6 -2
- package/lib/info/index.js +1 -2
- package/lib/info/utils/utils.d.ts +1 -1
- package/lib/sidebar/utils/index.d.ts +2 -2
- package/lib/table/components/Filter/index.js +3 -3
- package/lib/table/index.d.ts +3 -4
- package/lib/table/index.js +104 -43
- package/lib/table/index.scss +26 -0
- package/lib/table/typing.d.ts +7 -1
- package/lib/table/utils/columnRender.d.ts +1 -0
- package/lib/table/utils/columnRender.js +44 -3
- package/lib/table/utils/genAutoWidthColumns.d.ts +30 -0
- package/lib/table/utils/genAutoWidthColumns.js +342 -0
- package/package.json +1 -1
- package/es/form/utils/parseSchema.d.ts +0 -3
- package/es/form/utils/parseSchema.js +0 -38
- package/es/utils/aspect.d.ts +0 -2
- package/es/utils/aspect.js +0 -60
- package/lib/form/utils/parseSchema.d.ts +0 -3
- package/lib/form/utils/parseSchema.js +0 -45
- package/lib/utils/aspect.d.ts +0 -2
- package/lib/utils/aspect.js +0 -67
package/es/actions/index.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import {
|
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
|
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 './
|
10
|
-
import { LinkAction } from './link';
|
10
|
+
import { DialogInfoAction } from './dialog-info';
|
11
11
|
import { PopConfirmAction } from './pop-confirm';
|
12
|
-
import
|
12
|
+
import './index.scss';
|
13
13
|
export declare type ProActionConfig = ({
|
14
14
|
type: 'dialog-form' | 'drawer-form';
|
15
15
|
} & DialogFormAction) | ({
|
package/es/actions/index.js
CHANGED
@@ -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 {
|
28
|
-
import {
|
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 {
|
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 {
|
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 {
|
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
|
17
|
-
import
|
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();
|
@@ -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 './
|
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 './
|
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 './
|
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 './
|
8
|
-
export * from './
|
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
|
/**
|
package/es/form/Filter/index2.js
CHANGED
@@ -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';
|
package/es/form/ProForm/index.js
CHANGED
@@ -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 {
|
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 {
|
11
|
-
import {
|
12
|
-
import
|
13
|
-
import
|
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
|
-
|
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
|
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.
|
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
package/es/info/index.d.ts
CHANGED
@@ -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
|
6
|
-
|
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
|
181
|
+
export default ProInfo;
|
package/es/info/utils/utils.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare function getLayout(width: number): "
|
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?: "
|
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'?: "
|
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:
|
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:
|
190
|
+
type: "text",
|
191
191
|
value: label,
|
192
192
|
render: {
|
193
193
|
ellipsis: true
|
package/es/table/index.d.ts
CHANGED
@@ -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
|
6
|
-
export default
|
4
|
+
declare const ProTable: (props: ProTableProps) => JSX.Element;
|
5
|
+
export default ProTable;
|