@ant-design/pro-components 3.0.0-beta.2 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pro-components.min.js +1 -1
- package/es/card/components/Card/index.js +1 -2
- package/es/card/components/CheckCard/Group.js +1 -1
- package/es/descriptions/index.js +1 -2
- package/es/descriptions/useFetchData.js +1 -1
- package/es/field/components/Cascader/index.d.ts +2 -2
- package/es/field/components/Checkbox/index.d.ts +1 -1
- package/es/field/components/ColorPicker/index.d.ts +1 -1
- package/es/field/components/DatePicker/index.d.ts +2 -2
- package/es/field/components/Digit/index.js +1 -1
- package/es/field/components/DigitRange/index.js +1 -1
- package/es/field/components/Money/index.js +1 -2
- package/es/field/components/Password/index.js +1 -1
- package/es/field/components/Radio/index.d.ts +1 -1
- package/es/field/components/RangePicker/index.d.ts +2 -2
- package/es/field/components/Segmented/index.d.ts +1 -1
- package/es/field/components/Segmented/index.js +1 -1
- package/es/field/components/Select/LightSelect/index.d.ts +1 -1
- package/es/field/components/Select/LightSelect/index.js +1 -1
- package/es/field/components/Select/index.d.ts +1 -1
- package/es/field/components/Switch/index.d.ts +1 -1
- package/es/field/components/Switch/index.js +1 -1
- package/es/field/components/TextArea/index.js +1 -1
- package/es/field/components/TextArea/readonly.js +1 -1
- package/es/field/components/TreeSelect/index.d.ts +2 -2
- package/es/field/components/TreeSelect/index.js +1 -1
- package/es/form/BaseForm/BaseForm.js +2 -3
- package/es/form/BaseForm/Submitter/index.js +1 -1
- package/es/form/components/Dependency/index.js +1 -1
- package/es/form/components/Digit/DigitRange.d.ts +1 -1
- package/es/form/components/FieldSet/index.js +1 -1
- package/es/form/components/FormItem/index.js +1 -1
- package/es/form/components/List/ListContainer.js +1 -1
- package/es/form/components/List/ListItem.js +1 -2
- package/es/form/components/List/index.d.ts +2 -2
- package/es/form/components/List/index.js +1 -1
- package/es/form/components/SchemaForm/valueType/dependency.js +1 -1
- package/es/form/components/SchemaForm/valueType/field.js +1 -1
- package/es/form/components/Text/index.js +1 -1
- package/es/form/layouts/DrawerForm/index.js +1 -2
- package/es/form/layouts/LightFilter/index.js +1 -1
- package/es/form/layouts/ModalForm/index.js +1 -1
- package/es/form/layouts/ProForm/index.d.ts +1 -1
- package/es/form/layouts/QueryFilter/index.js +1 -3
- package/es/form/layouts/StepsForm/StepForm.js +1 -2
- package/es/form/layouts/StepsForm/index.js +1 -2
- package/es/layout/ProLayout.js +3 -5
- package/es/layout/components/FooterToolbar/index.js +2 -2
- package/es/layout/components/Help/ProHelpDrawer.js +1 -1
- package/es/layout/components/Help/ProHelpModal.js +1 -1
- package/es/layout/components/Help/ProHelpPanel.js +1 -1
- package/es/layout/components/SettingDrawer/index.js +1 -2
- package/es/layout/components/SiderMenu/index.js +1 -1
- package/es/list/Item.js +1 -1
- package/es/list/ListView.js +1 -1
- package/es/provider/intl.js +1 -1
- package/es/table/Store/Provide.js +1 -1
- package/es/table/components/ColumnSetting/index.js +1 -1
- package/es/table/components/DragSortTable/index.js +1 -1
- package/es/table/components/EditableTable/index.js +1 -1
- package/es/table/components/Form/FormRender.js +1 -1
- package/es/table/components/Form/index.js +1 -1
- package/es/table/components/ListToolBar/HeaderMenu.js +1 -1
- package/es/table/utils/cellRenderToFromItem.js +1 -1
- package/es/table/utils/columnRender.js +1 -1
- package/es/utils/components/InlineErrorFormItem/index.js +1 -1
- package/es/utils/conversionMomentValue/index.js +1 -1
- package/es/utils/transformKeySubmitValue/index.js +1 -1
- package/es/utils/useEditableArray/index.js +1 -1
- package/es/utils/useEditableMap/index.js +2 -2
- package/es/utils/useMountMergeState/index.d.ts +1 -1
- package/es/utils/useMountMergeState/index.js +1 -1
- package/lib/card/components/Card/index.js +4 -5
- package/lib/card/components/CheckCard/Group.js +2 -2
- package/lib/descriptions/index.js +3 -4
- package/lib/descriptions/useFetchData.js +3 -3
- package/lib/field/components/Cascader/index.d.ts +2 -2
- package/lib/field/components/Checkbox/index.d.ts +1 -1
- package/lib/field/components/ColorPicker/index.d.ts +1 -1
- package/lib/field/components/DatePicker/index.d.ts +2 -2
- package/lib/field/components/Digit/index.js +2 -2
- package/lib/field/components/DigitRange/index.js +2 -2
- package/lib/field/components/Money/index.js +3 -4
- package/lib/field/components/Password/index.js +2 -2
- package/lib/field/components/Radio/index.d.ts +1 -1
- package/lib/field/components/RangePicker/index.d.ts +2 -2
- package/lib/field/components/Segmented/index.d.ts +1 -1
- package/lib/field/components/Segmented/index.js +2 -2
- package/lib/field/components/Select/LightSelect/index.d.ts +1 -1
- package/lib/field/components/Select/LightSelect/index.js +2 -2
- package/lib/field/components/Select/index.d.ts +1 -1
- package/lib/field/components/Switch/index.d.ts +1 -1
- package/lib/field/components/Switch/index.js +2 -2
- package/lib/field/components/TextArea/index.js +2 -2
- package/lib/field/components/TextArea/readonly.js +2 -2
- package/lib/field/components/TreeSelect/index.d.ts +2 -2
- package/lib/field/components/TreeSelect/index.js +2 -2
- package/lib/form/BaseForm/BaseForm.js +11 -12
- package/lib/form/BaseForm/Submitter/index.js +3 -3
- package/lib/form/components/Dependency/index.js +5 -5
- package/lib/form/components/Digit/DigitRange.d.ts +1 -1
- package/lib/form/components/FieldSet/index.js +2 -2
- package/lib/form/components/FormItem/index.js +3 -3
- package/lib/form/components/List/ListContainer.js +2 -2
- package/lib/form/components/List/ListItem.js +3 -4
- package/lib/form/components/List/index.d.ts +2 -2
- package/lib/form/components/List/index.js +2 -2
- package/lib/form/components/SchemaForm/valueType/dependency.js +2 -2
- package/lib/form/components/SchemaForm/valueType/field.js +2 -2
- package/lib/form/components/Text/index.js +2 -2
- package/lib/form/layouts/DrawerForm/index.js +4 -5
- package/lib/form/layouts/LightFilter/index.js +2 -2
- package/lib/form/layouts/ModalForm/index.js +3 -3
- package/lib/form/layouts/ProForm/index.d.ts +1 -1
- package/lib/form/layouts/QueryFilter/index.js +2 -2
- package/lib/form/layouts/StepsForm/StepForm.js +3 -4
- package/lib/form/layouts/StepsForm/index.js +3 -4
- package/lib/layout/ProLayout.js +6 -8
- package/lib/layout/components/FooterToolbar/index.js +2 -2
- package/lib/layout/components/Help/ProHelpDrawer.js +2 -2
- package/lib/layout/components/Help/ProHelpModal.js +2 -2
- package/lib/layout/components/Help/ProHelpPanel.js +3 -3
- package/lib/layout/components/SettingDrawer/index.js +4 -5
- package/lib/layout/components/SiderMenu/index.js +2 -2
- package/lib/list/Item.js +2 -2
- package/lib/list/ListView.js +2 -2
- package/lib/provider/intl.js +2 -2
- package/lib/table/Store/Provide.js +3 -3
- package/lib/table/components/ColumnSetting/index.js +3 -3
- package/lib/table/components/DragSortTable/index.js +2 -2
- package/lib/table/components/EditableTable/index.js +6 -6
- package/lib/table/components/Form/FormRender.js +4 -4
- package/lib/table/components/Form/index.js +3 -3
- package/lib/table/components/ListToolBar/HeaderMenu.js +2 -2
- package/lib/table/utils/cellRenderToFromItem.js +2 -2
- package/lib/table/utils/columnRender.js +2 -2
- package/lib/utils/components/InlineErrorFormItem/index.js +3 -3
- package/lib/utils/conversionMomentValue/index.js +2 -2
- package/lib/utils/transformKeySubmitValue/index.js +3 -3
- package/lib/utils/useEditableArray/index.js +10 -10
- package/lib/utils/useEditableMap/index.js +3 -3
- package/lib/utils/useMountMergeState/index.d.ts +1 -1
- package/lib/utils/useMountMergeState/index.js +2 -2
- package/package.json +3 -3
|
@@ -5,11 +5,10 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
6
|
var _excluded = ["className", "style", "bodyStyle", "headStyle", "title", "subTitle", "extra", "wrap", "layout", "loading", "gutter", "tooltip", "split", "headerBordered", "variant", "boxShadow", "children", "size", "actions", "ghost", "hoverable", "direction", "collapsed", "collapsible", "collapsibleIconRender", "colStyle", "defaultCollapsed", "onCollapse", "checked", "onChecked", "tabs", "type"];
|
|
7
7
|
import { RightOutlined } from '@ant-design/icons';
|
|
8
|
+
import { omit, useMergedState } from '@rc-component/util';
|
|
8
9
|
import { ConfigProvider, Tabs } from 'antd';
|
|
9
10
|
import useBreakpoint from 'antd/lib/grid/hooks/useBreakpoint';
|
|
10
11
|
import classNames from 'classnames';
|
|
11
|
-
import { useMergedState } from 'rc-util';
|
|
12
|
-
import omit from 'rc-util/lib/omit';
|
|
13
12
|
import React, { useContext } from 'react';
|
|
14
13
|
import { LabelIconTip } from "../../../utils";
|
|
15
14
|
import Actions from "../Actions";
|
|
@@ -5,9 +5,9 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
6
|
var _excluded = ["prefixCls", "className", "style", "options", "loading", "multiple", "bordered", "onChange"];
|
|
7
7
|
import { RightOutlined } from '@ant-design/icons';
|
|
8
|
+
import { omit } from '@rc-component/util';
|
|
8
9
|
import { ConfigProvider, Skeleton } from 'antd';
|
|
9
10
|
import classNames from 'classnames';
|
|
10
|
-
import omit from 'rc-util/lib/omit';
|
|
11
11
|
import React, { createContext, useCallback, useContext, useMemo, useRef, useState } from 'react';
|
|
12
12
|
import { ProConfigProvider, proTheme } from "../../../provider";
|
|
13
13
|
import { useMountMergeState } from "../../../utils";
|
package/es/descriptions/index.js
CHANGED
|
@@ -6,9 +6,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
6
6
|
var _excluded = ["valueEnum", "render", "renderText", "mode", "plain", "dataIndex", "request", "params", "editable"],
|
|
7
7
|
_excluded2 = ["request", "columns", "params", "dataSource", "onDataSourceChange", "formProps", "editable", "loading", "onLoadingChange", "actionRef", "onRequestError", "emptyText", "contentStyle"];
|
|
8
8
|
import { CheckOutlined, CloseOutlined, EditOutlined } from '@ant-design/icons';
|
|
9
|
+
import { get, toArray } from '@rc-component/util';
|
|
9
10
|
import { ConfigProvider, Descriptions, Space } from 'antd';
|
|
10
|
-
import { get } from 'rc-util';
|
|
11
|
-
import toArray from 'rc-util/lib/Children/toArray';
|
|
12
11
|
import React, { useContext, useEffect } from 'react';
|
|
13
12
|
import ValueTypeToComponent from "../field/ValueTypeToComponent";
|
|
14
13
|
import ProForm, { ProFormField } from "../form";
|
|
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
|
-
import { useMergedState } from 'rc-util';
|
|
5
|
+
import { useMergedState } from '@rc-component/util';
|
|
6
6
|
import { useEffect } from 'react';
|
|
7
7
|
var useFetchData = function useFetchData(getData, options) {
|
|
8
8
|
var _ref = options || {},
|
|
@@ -11,7 +11,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../../../provide
|
|
|
11
11
|
options?: (string | number | import("antd").CheckboxOptionType<any>)[] | undefined;
|
|
12
12
|
radioType?: "button" | "radio" | undefined;
|
|
13
13
|
placeholder?: string | undefined;
|
|
14
|
-
variant?: "
|
|
14
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
text: string;
|
|
17
17
|
valueEnum?: import("src/utils/typing").ProFieldValueEnumType | undefined;
|
|
@@ -19,7 +19,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../../../provide
|
|
|
19
19
|
request?: import("src/utils/typing").ProFieldRequestData | undefined;
|
|
20
20
|
params?: any;
|
|
21
21
|
fieldProps?: any;
|
|
22
|
-
variant?: "
|
|
22
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
23
23
|
id?: string | undefined;
|
|
24
24
|
children?: React.ReactNode;
|
|
25
25
|
defaultKeyWords?: string | undefined;
|
|
@@ -15,7 +15,7 @@ declare const _default: React.ForwardRefExoticComponent<import("src/provider").B
|
|
|
15
15
|
request?: import("src/utils/typing").ProFieldRequestData | undefined;
|
|
16
16
|
params?: any;
|
|
17
17
|
fieldProps?: any;
|
|
18
|
-
variant?: "
|
|
18
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
19
19
|
id?: string | undefined;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
defaultKeyWords?: string | undefined;
|
|
@@ -3,5 +3,5 @@ import React from 'react';
|
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<import("src/provider").BaseProFieldFC & import("src/provider").ProRenderFieldPropsType & {
|
|
4
4
|
text: string;
|
|
5
5
|
mode?: "read" | "edit" | "update" | undefined;
|
|
6
|
-
} & Partial<Omit<ColorPickerProps, "
|
|
6
|
+
} & Partial<Omit<ColorPickerProps, "value" | "mode">> & React.RefAttributes<any>>;
|
|
7
7
|
export default _default;
|
|
@@ -4,7 +4,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../../../provide
|
|
|
4
4
|
text: string | number;
|
|
5
5
|
format?: string | undefined;
|
|
6
6
|
showTime?: boolean | undefined;
|
|
7
|
-
variant?: "
|
|
8
|
-
picker?: "date" | "time" | "
|
|
7
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
8
|
+
picker?: "date" | "time" | "month" | "week" | "quarter" | "year" | undefined;
|
|
9
9
|
} & ProFieldLightProps & React.RefAttributes<any>>;
|
|
10
10
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { omit } from '@rc-component/util';
|
|
2
3
|
import { InputNumber } from 'antd';
|
|
3
|
-
import omit from 'rc-util/lib/omit';
|
|
4
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import { useIntl } from "../../../provider";
|
|
6
6
|
import { isNil } from "../../../utils";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
|
+
import { useMergedState } from '@rc-component/util';
|
|
4
5
|
import { Input, InputNumber, Space } from 'antd';
|
|
5
|
-
import { useMergedState } from 'rc-util';
|
|
6
6
|
import React, { useRef } from 'react';
|
|
7
7
|
import { proTheme, useIntl } from "../../../provider";
|
|
8
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -3,9 +3,8 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
var _excluded = ["contentRender", "numberFormatOptions", "numberPopoverRender", "open"],
|
|
5
5
|
_excluded2 = ["text", "mode", "render", "formItemRender", "fieldProps", "proFieldKey", "plain", "valueEnum", "placeholder", "locale", "customSymbol", "numberFormatOptions", "numberPopoverRender"];
|
|
6
|
+
import { omit, useMergedState } from '@rc-component/util';
|
|
6
7
|
import { InputNumber, Popover } from 'antd';
|
|
7
|
-
import { useMergedState } from 'rc-util';
|
|
8
|
-
import omit from 'rc-util/lib/omit';
|
|
9
8
|
import React, { useCallback, useMemo } from 'react';
|
|
10
9
|
import { intlMap as allIntlMap, useIntl } from "../../../provider";
|
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -3,8 +3,8 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["text", "mode", "render", "formItemRender", "fieldProps", "proFieldKey"];
|
|
5
5
|
import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons';
|
|
6
|
+
import { useMergedState } from '@rc-component/util';
|
|
6
7
|
import { Input, Space } from 'antd';
|
|
7
|
-
import { useMergedState } from 'rc-util';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { useIntl } from "../../../provider";
|
|
10
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -15,7 +15,7 @@ declare const _default: React.ForwardRefExoticComponent<import("src/provider").B
|
|
|
15
15
|
request?: import("src/utils/typing").ProFieldRequestData | undefined;
|
|
16
16
|
params?: any;
|
|
17
17
|
fieldProps?: any;
|
|
18
|
-
variant?: "
|
|
18
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
19
19
|
id?: string | undefined;
|
|
20
20
|
children?: React.ReactNode;
|
|
21
21
|
defaultKeyWords?: string | undefined;
|
|
@@ -3,8 +3,8 @@ import type { ProFieldLightProps } from '../../PureProField';
|
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<import("../../../provider").BaseProFieldFC & import("../../../provider").ProRenderFieldPropsType & {
|
|
4
4
|
text: string[];
|
|
5
5
|
format?: string | undefined;
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
7
7
|
showTime?: boolean | undefined;
|
|
8
|
-
picker?: "date" | "time" | "
|
|
8
|
+
picker?: "date" | "time" | "month" | "week" | "quarter" | "year" | undefined;
|
|
9
9
|
} & ProFieldLightProps & React.RefAttributes<any>>;
|
|
10
10
|
export default _default;
|
|
@@ -9,7 +9,7 @@ declare const _default: React.ForwardRefExoticComponent<import("src/provider").B
|
|
|
9
9
|
request?: import("src/utils/typing").ProFieldRequestData | undefined;
|
|
10
10
|
params?: any;
|
|
11
11
|
fieldProps?: any;
|
|
12
|
-
variant?: "
|
|
12
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
13
13
|
id?: string | undefined;
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
defaultKeyWords?: string | undefined;
|
|
@@ -3,8 +3,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
5
|
var _excluded = ["mode", "render", "formItemRender", "fieldProps", "emptyText"];
|
|
6
|
+
import { omit } from '@rc-component/util';
|
|
6
7
|
import { Segmented, Spin } from 'antd';
|
|
7
|
-
import omit from 'rc-util/lib/omit';
|
|
8
8
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
9
9
|
import { objectToMap, proFieldParsingText } from "../../../utils";
|
|
10
10
|
import { useFieldFetchData } from "../Select";
|
|
@@ -30,6 +30,6 @@ declare const _default: React.ForwardRefExoticComponent<SelectProps<any, import(
|
|
|
30
30
|
*/
|
|
31
31
|
fetchDataOnSearch?: boolean | undefined;
|
|
32
32
|
/** 变体类型 */
|
|
33
|
-
variant?: "
|
|
33
|
+
variant?: "outlined" | "borderless" | "filled" | "underlined" | undefined;
|
|
34
34
|
} & ProFieldLightProps & SelectProps<any, import("antd/es/select").DefaultOptionType> & React.RefAttributes<any>>;
|
|
35
35
|
export default _default;
|
|
@@ -5,9 +5,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
5
5
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
6
6
|
var _excluded = ["label", "prefixCls", "onChange", "value", "mode", "children", "defaultValue", "size", "showSearch", "disabled", "style", "className", "options", "onSearch", "allowClear", "labelInValue", "fieldNames", "lightLabel", "labelTrigger", "optionFilterProp", "optionLabelProp", "valueMaxLength", "fetchDataOnSearch", "fetchData", "variant"];
|
|
7
7
|
import { SearchOutlined } from '@ant-design/icons';
|
|
8
|
+
import { toArray } from '@rc-component/util';
|
|
8
9
|
import { ConfigProvider, Input, Select } from 'antd';
|
|
9
10
|
import classNames from 'classnames';
|
|
10
|
-
import toArray from 'rc-util/lib/Children/toArray';
|
|
11
11
|
import React, { useContext, useMemo, useState } from 'react';
|
|
12
12
|
import { FieldLabel, useStyle } from "../../../../utils";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -45,7 +45,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../../../provide
|
|
|
45
45
|
params?: any;
|
|
46
46
|
/** 组件的全局设置 */
|
|
47
47
|
fieldProps?: any;
|
|
48
|
-
variant?: "
|
|
48
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
49
49
|
id?: string | undefined;
|
|
50
50
|
children?: ReactNode;
|
|
51
51
|
/** 默认搜素条件 */
|
|
@@ -3,6 +3,6 @@ import React from 'react';
|
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<import("../../../provider").BaseProFieldFC & import("../../../provider").ProRenderFieldPropsType & {
|
|
4
4
|
text: boolean;
|
|
5
5
|
fieldProps?: SwitchProps | undefined;
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
7
7
|
} & React.RefAttributes<any>>;
|
|
8
8
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { omit } from '@rc-component/util';
|
|
2
3
|
import { Switch } from 'antd';
|
|
3
|
-
import omit from 'rc-util/lib/omit';
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import { useIntl } from "../../../provider";
|
|
6
6
|
import { FieldLabel } from "../../../utils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { omit } from '@rc-component/util';
|
|
2
3
|
import { Input } from 'antd';
|
|
3
|
-
import omit from 'rc-util/lib/omit';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from "../../../provider";
|
|
6
6
|
import FieldTextAreaReadonly from "./readonly";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import { omit } from '@rc-component/util';
|
|
3
4
|
import { ConfigProvider } from 'antd';
|
|
4
5
|
import classNames from 'classnames';
|
|
5
|
-
import omit from 'rc-util/lib/omit';
|
|
6
6
|
import React, { useContext } from 'react';
|
|
7
7
|
import { useStyle } from "../../../utils";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -17,7 +17,7 @@ export type TreeSelectFieldProps = TreeSelectProps<any> & {
|
|
|
17
17
|
declare const _default: React.ForwardRefExoticComponent<import("../../../provider").BaseProFieldFC & import("../../../provider").ProRenderFieldPropsType & {
|
|
18
18
|
options?: (string | number | import("antd").CheckboxOptionType<any>)[] | undefined;
|
|
19
19
|
radioType?: "button" | "radio" | undefined;
|
|
20
|
-
variant?: "
|
|
20
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
21
21
|
} & {
|
|
22
22
|
text: string;
|
|
23
23
|
valueEnum?: import("src/utils/typing").ProFieldValueEnumType | undefined;
|
|
@@ -25,7 +25,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../../../provide
|
|
|
25
25
|
request?: import("src/utils/typing").ProFieldRequestData | undefined;
|
|
26
26
|
params?: any;
|
|
27
27
|
fieldProps?: any;
|
|
28
|
-
variant?: "
|
|
28
|
+
variant?: "outlined" | "borderless" | "filled" | undefined;
|
|
29
29
|
id?: string | undefined;
|
|
30
30
|
children?: React.ReactNode;
|
|
31
31
|
defaultKeyWords?: string | undefined;
|
|
@@ -3,9 +3,9 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["radioType", "formItemRender", "mode", "light", "label", "render", "variant"],
|
|
5
5
|
_excluded2 = ["onSearch", "onClear", "onChange", "onBlur", "showSearch", "autoClearSearchValue", "treeData", "fetchDataOnSearch", "searchValue"];
|
|
6
|
+
import { useMergedState } from '@rc-component/util';
|
|
6
7
|
import { ConfigProvider, Spin, TreeSelect } from 'antd';
|
|
7
8
|
import classNames from 'classnames';
|
|
8
|
-
import { useMergedState } from 'rc-util';
|
|
9
9
|
import React, { useContext, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
10
10
|
import { useIntl } from "../../../provider";
|
|
11
11
|
import { FieldLabel, objectToMap, proFieldParsingText } from "../../../utils";
|
|
@@ -8,11 +8,10 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
8
8
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
9
|
var _excluded = ["children", "contentRender", "submitter", "fieldProps", "formItemProps", "groupProps", "transformKey", "formRef", "onInit", "form", "loading", "formComponentType", "extraUrlParams", "syncToUrl", "onUrlSearchChange", "onReset", "omitNil", "isKeyPressSubmit", "autoFocusFirstInput", "grid", "rowProps", "colProps"],
|
|
10
10
|
_excluded2 = ["extraUrlParams", "syncToUrl", "isKeyPressSubmit", "syncToUrlAsImportant", "syncToInitialValues", "children", "contentRender", "submitter", "fieldProps", "proFieldProps", "formItemProps", "groupProps", "dateFormatter", "formRef", "onInit", "form", "formComponentType", "onReset", "grid", "rowProps", "colProps", "omitNil", "request", "params", "initialValues", "formKey", "readonly", "onLoadingChange", "loading"];
|
|
11
|
-
/* eslint-disable react-hooks/exhaustive-deps */import {
|
|
11
|
+
/* eslint-disable react-hooks/exhaustive-deps */import { get, set as namePathSet, omit, set, warning } from '@rc-component/util';
|
|
12
|
+
import { useUrlSearchParams } from '@umijs/use-params';
|
|
12
13
|
import { ConfigProvider, Form, Spin } from 'antd';
|
|
13
14
|
import classNames from 'classnames';
|
|
14
|
-
import { get, set as namePathSet, set, warning } from 'rc-util';
|
|
15
|
-
import omit from 'rc-util/lib/omit';
|
|
16
15
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
17
16
|
import { ProConfigProvider } from "../../provider";
|
|
18
17
|
import { ProFormContext, conversionMomentValue, isDeepEqualReact, nanoid, runFunction, transformKeySubmitValue, useFetchData, useMountMergeState, usePrevious, useRefFunction, useStyle } from "../../utils";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { omit } from '@rc-component/util';
|
|
2
3
|
import { Button, Form } from 'antd';
|
|
3
|
-
import omit from 'rc-util/lib/omit';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { proTheme, useIntl } from "../../../provider";
|
|
6
6
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["name", "originDependencies", "children", "ignoreFormListField"];
|
|
4
|
+
import { get, set } from '@rc-component/util';
|
|
4
5
|
import { Form } from 'antd';
|
|
5
6
|
import { merge } from 'lodash-es';
|
|
6
|
-
import { get, set } from 'rc-util';
|
|
7
7
|
import React, { useContext, useMemo } from 'react';
|
|
8
8
|
import { isDeepEqualReact, ProFormContext } from "../../../utils";
|
|
9
9
|
import { FormListContext } from "../List";
|
|
@@ -13,7 +13,7 @@ export type ProFormDigitRangeProps = ProFormFieldItemProps<RangeInputNumberProps
|
|
|
13
13
|
separatorWidth?: number;
|
|
14
14
|
};
|
|
15
15
|
declare const ForwardRefProFormDigit: React.ForwardRefExoticComponent<{
|
|
16
|
-
fieldProps?: Partial<import("../../typing").FieldProps<any> & Omit<InputNumberProps<number>, "
|
|
16
|
+
fieldProps?: Partial<import("../../typing").FieldProps<any> & Omit<InputNumberProps<number>, "value" | "onChange" | "placeholder" | "defaultValue"> & {
|
|
17
17
|
value?: ValuePair | undefined;
|
|
18
18
|
defaultValue?: ValuePair | undefined;
|
|
19
19
|
onChange?: ((value?: ValuePair) => void) | undefined;
|
|
@@ -4,8 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
var _ref3;
|
|
5
5
|
var _excluded = ["children", "value", "valuePropName", "onChange", "fieldProps", "space", "type", "transform", "convertValue", "lightProps"],
|
|
6
6
|
_excluded2 = ["children", "space", "valuePropName"];
|
|
7
|
+
import { toArray } from '@rc-component/util';
|
|
7
8
|
import { Space } from 'antd';
|
|
8
|
-
import toArray from 'rc-util/lib/Children/toArray';
|
|
9
9
|
import React, { useCallback, useImperativeHandle } from 'react';
|
|
10
10
|
import { runFunction, useRefFunction } from "../../../utils";
|
|
11
11
|
import { useGridHelpers } from "../../helpers";
|
|
@@ -4,8 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
4
4
|
var _excluded = ["children", "onChange", "onBlur", "ignoreFormItem", "valuePropName"],
|
|
5
5
|
_excluded2 = ["children", "addonAfter", "addonBefore", "valuePropName", "addonWarpStyle", "convertValue", "help"],
|
|
6
6
|
_excluded3 = ["valueType", "transform", "dataFormat", "ignoreFormItem", "lightProps", "children"];
|
|
7
|
+
import { omit } from '@rc-component/util';
|
|
7
8
|
import { ConfigProvider, Form } from 'antd';
|
|
8
|
-
import omit from 'rc-util/lib/omit';
|
|
9
9
|
import React, { useContext, useEffect, useMemo } from 'react';
|
|
10
10
|
import { isDropdownValueType, omitUndefined, useDeepCompareMemo, useRefFunction } from "../../../utils";
|
|
11
11
|
import { LightWrapper } from "../../BaseForm";
|
|
@@ -3,8 +3,8 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import { PlusOutlined } from '@ant-design/icons';
|
|
6
|
+
import { omit } from '@rc-component/util';
|
|
6
7
|
import { Button } from 'antd';
|
|
7
|
-
import omit from 'rc-util/lib/omit';
|
|
8
8
|
import { useContext, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import { ProProvider, useIntl } from "../../../provider";
|
|
10
10
|
import { nanoid, runFunction } from "../../../utils";
|
|
@@ -6,10 +6,9 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
7
|
var _excluded = ["creatorButtonProps", "deleteIconProps", "copyIconProps", "arrowSort", "upIconProps", "downIconProps", "itemContainerRender", "itemRender", "alwaysShowItemLabel", "prefixCls", "creatorRecord", "action", "actionGuard", "children", "actionRender", "fields", "meta", "field", "index", "formInstance", "originName", "containerClassName", "containerStyle", "min", "max", "count"];
|
|
8
8
|
import { ArrowDownOutlined, ArrowUpOutlined, CopyOutlined, DeleteOutlined, LoadingOutlined } from '@ant-design/icons';
|
|
9
|
+
import { set, toArray } from '@rc-component/util';
|
|
9
10
|
import { ConfigProvider, Tooltip } from 'antd';
|
|
10
11
|
import classNames from 'classnames';
|
|
11
|
-
import { set } from 'rc-util';
|
|
12
|
-
import toArray from 'rc-util/lib/Children/toArray';
|
|
13
12
|
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
14
13
|
import { FormListContext } from '.';
|
|
15
14
|
import { ProProvider } from "../../../provider";
|
|
@@ -6,9 +6,9 @@ import type { ReactNode } from 'react';
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import type { ProFormGridConfig } from '../../typing';
|
|
8
8
|
import type { ChildrenItemFunction, FormListActionGuard, ProFromListCommonProps } from './ListItem';
|
|
9
|
-
declare const FormListContext: React.Context<(FormListFieldData & {
|
|
9
|
+
declare const FormListContext: React.Context<Record<string, any> | (FormListFieldData & {
|
|
10
10
|
listName: NamePath;
|
|
11
|
-
})
|
|
11
|
+
})>;
|
|
12
12
|
export type FormListActionType<T = any> = FormListOperation & {
|
|
13
13
|
get: (index: number) => T | undefined;
|
|
14
14
|
getList: () => T[] | undefined;
|
|
@@ -3,9 +3,9 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["transform", "actionRender", "creatorButtonProps", "label", "alwaysShowItemLabel", "tooltip", "creatorRecord", "itemRender", "rules", "itemContainerRender", "fieldExtraRender", "copyIconProps", "children", "deleteIconProps", "arrowSort", "upIconProps", "downIconProps", "actionRef", "style", "prefixCls", "actionGuard", "min", "max", "colProps", "wrapperCol", "rowProps", "onAfterAdd", "onAfterRemove", "isValidateList", "emptyListMessage", "className", "containerClassName", "containerStyle", "readonly"];
|
|
5
5
|
import { ArrowDownOutlined, ArrowUpOutlined, CopyOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
6
|
+
import { warning } from '@rc-component/util';
|
|
6
7
|
import { ConfigProvider, Form } from 'antd';
|
|
7
8
|
import classNames from 'classnames';
|
|
8
|
-
import { warning } from 'rc-util';
|
|
9
9
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
|
|
10
10
|
import { useIntl } from "../../../provider";
|
|
11
11
|
import { ProFormContext } from "../../../utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import { warning } from 'rc-util';
|
|
2
|
+
import { warning } from '@rc-component/util';
|
|
3
3
|
import ProFormDependency from "../../Dependency";
|
|
4
4
|
import { createElement as _createElement } from "react";
|
|
5
5
|
var noteOnce = warning.noteOnce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
var _excluded = ["key"];
|
|
4
|
-
import omit from 'rc-util
|
|
4
|
+
import { omit } from '@rc-component/util';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { omitUndefined } from "../../../../utils";
|
|
7
7
|
import ProFormDependency from "../../Dependency";
|
|
@@ -3,8 +3,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["fieldProps", "proFieldProps"],
|
|
5
5
|
_excluded2 = ["fieldProps", "proFieldProps"];
|
|
6
|
+
import { omit } from '@rc-component/util';
|
|
6
7
|
import { Form, Popover } from 'antd';
|
|
7
|
-
import omit from 'rc-util/lib/omit';
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
import { FieldPassword } from "../../../field";
|
|
10
10
|
import { ProConfigProvider } from "../../../provider";
|
|
@@ -5,10 +5,9 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
5
5
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
6
6
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
7
|
var _excluded = ["children", "trigger", "drawerProps", "onFinish", "submitTimeout", "title", "width", "resize", "onOpenChange", "open"];
|
|
8
|
+
import { merge, useMergedState, warning } from '@rc-component/util';
|
|
8
9
|
import { ConfigProvider, Drawer } from 'antd';
|
|
9
10
|
import classNames from 'classnames';
|
|
10
|
-
import { useMergedState, warning } from 'rc-util';
|
|
11
|
-
import { merge } from 'rc-util/lib/utils/set';
|
|
12
11
|
import React, { useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
13
12
|
import { createPortal } from 'react-dom';
|
|
14
13
|
import { isBrowser, omitUndefined, useRefFunction } from "../../../utils";
|
|
@@ -4,9 +4,9 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
var _excluded = ["size", "collapse", "collapseLabel", "initialValues", "onValuesChange", "form", "placement", "formRef", "variant", "ignoreRules", "footerRender"];
|
|
6
6
|
import { FilterOutlined } from '@ant-design/icons';
|
|
7
|
+
import { omit } from '@rc-component/util';
|
|
7
8
|
import { ConfigProvider } from 'antd';
|
|
8
9
|
import classNames from 'classnames';
|
|
9
|
-
import omit from 'rc-util/lib/omit';
|
|
10
10
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
11
11
|
import { useIntl } from "../../../provider";
|
|
12
12
|
import { FieldLabel, FilterDropdown } from "../../../utils";
|
|
@@ -4,9 +4,9 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
6
|
var _excluded = ["children", "trigger", "onOpenChange", "modalProps", "onFinish", "submitTimeout", "title", "width", "open"];
|
|
7
|
+
import { useMergedState, warning } from '@rc-component/util';
|
|
7
8
|
import { ConfigProvider, Modal } from 'antd';
|
|
8
9
|
import { merge } from 'lodash-es';
|
|
9
|
-
import { useMergedState, warning } from 'rc-util';
|
|
10
10
|
import React, { useCallback, useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
11
11
|
import { createPortal } from 'react-dom';
|
|
12
12
|
import { BaseForm } from "../../BaseForm";
|
|
@@ -14,7 +14,7 @@ declare namespace ProForm {
|
|
|
14
14
|
var Provider: React.FC<import("antd/es/form/context").FormProviderProps>;
|
|
15
15
|
var useFormInstance: typeof import("antd/es/form/hooks/useFormInstance").default;
|
|
16
16
|
var EditOrReadOnlyContext: React.Context<{
|
|
17
|
-
mode: "
|
|
17
|
+
mode: "read" | "edit" | "update";
|
|
18
18
|
}>;
|
|
19
19
|
}
|
|
20
20
|
export { ProForm };
|
|
@@ -3,12 +3,10 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
var _excluded = ["collapsed", "layout", "defaultCollapsed", "defaultColsNumber", "defaultFormItemsNumber", "span", "searchGutter", "searchText", "resetText", "optionRender", "collapseRender", "onReset", "onCollapse", "labelWidth", "style", "split", "preserve", "ignoreRules", "showHiddenNum", "submitterColSpanProps"];
|
|
5
5
|
var _document;
|
|
6
|
-
/* eslint-disable no-param-reassign */
|
|
7
|
-
|
|
6
|
+
/* eslint-disable no-param-reassign */import { useMergedState } from '@rc-component/util';
|
|
8
7
|
import { Col, ConfigProvider, Form, Row } from 'antd';
|
|
9
8
|
import classNames from 'classnames';
|
|
10
9
|
import RcResizeObserver from 'rc-resize-observer';
|
|
11
|
-
import { useMergedState } from 'rc-util';
|
|
12
10
|
import React, { useContext, useMemo } from 'react';
|
|
13
11
|
import { ProProvider, useIntl } from "../../../provider";
|
|
14
12
|
import { isBrowser, useMountMergeState } from "../../../utils";
|
|
@@ -3,8 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
5
|
var _excluded = ["onFinish", "step", "formRef", "title", "stepProps"];
|
|
6
|
-
import { warning } from 'rc-util';
|
|
7
|
-
import omit from 'rc-util/lib/omit';
|
|
6
|
+
import { omit, warning } from '@rc-component/util';
|
|
8
7
|
import { useContext, useEffect, useImperativeHandle, useRef } from 'react';
|
|
9
8
|
import { BaseForm } from "../../BaseForm";
|
|
10
9
|
import { StepFormProvide, StepsFormProvide } from "./index";
|
|
@@ -6,10 +6,9 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
|
6
6
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
7
7
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
8
8
|
var _excluded = ["current", "onCurrentChange", "submitter", "stepsFormRender", "stepsRender", "stepFormRender", "stepsProps", "onFinish", "formProps", "containerStyle", "formRef", "formMapRef", "layoutRender"];
|
|
9
|
+
import { toArray, useMergedState } from '@rc-component/util';
|
|
9
10
|
import { Button, Col, ConfigProvider, Form, Row, Space, Steps } from 'antd';
|
|
10
11
|
import classNames from 'classnames';
|
|
11
|
-
import { useMergedState } from 'rc-util';
|
|
12
|
-
import toArray from 'rc-util/lib/Children/toArray';
|
|
13
12
|
import React, { useCallback, useContext, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
14
13
|
import { ProConfigProvider, useIntl } from "../../../provider";
|
|
15
14
|
import { merge, useRefFunction } from "../../../utils";
|
package/es/layout/ProLayout.js
CHANGED
|
@@ -6,11 +6,10 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
var _excluded = ["id", "defaultMessage"],
|
|
8
8
|
_excluded2 = ["fixSiderbar", "navTheme", "layout"];
|
|
9
|
+
import { omit, useMergedState, warning } from '@rc-component/util';
|
|
9
10
|
import { getMatchMenu } from '@umijs/route-utils';
|
|
10
11
|
import { ConfigProvider, Layout } from 'antd';
|
|
11
12
|
import classNames from 'classnames';
|
|
12
|
-
import { useMergedState, warning } from 'rc-util';
|
|
13
|
-
import omit from 'rc-util/lib/omit';
|
|
14
13
|
import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
15
14
|
import useSWR, { useSWRConfig } from 'swr';
|
|
16
15
|
import { ProConfigProvider, ProProvider, isNeedOpenHash } from "../provider";
|
|
@@ -457,8 +456,8 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
457
456
|
},
|
|
458
457
|
components: {
|
|
459
458
|
Menu: {
|
|
460
|
-
|
|
461
|
-
|
|
459
|
+
itemBg: ((_token$layout3 = token.layout) === null || _token$layout3 === void 0 || (_token$layout3 = _token$layout3.sider) === null || _token$layout3 === void 0 ? void 0 : _token$layout3.colorMenuBackground) || 'transparent',
|
|
460
|
+
subMenuItemBg: ((_token$layout4 = token.layout) === null || _token$layout4 === void 0 || (_token$layout4 = _token$layout4.sider) === null || _token$layout4 === void 0 ? void 0 : _token$layout4.colorMenuBackground) || 'transparent',
|
|
462
461
|
itemBorderRadius: token.borderRadius,
|
|
463
462
|
itemSelectedBg: ((_token$layout5 = token.layout) === null || _token$layout5 === void 0 || (_token$layout5 = _token$layout5.sider) === null || _token$layout5 === void 0 ? void 0 : _token$layout5.colorBgMenuItemSelected) || (token === null || token === void 0 ? void 0 : token.colorBgTextHover),
|
|
464
463
|
itemHoverBg: ((_token$layout6 = token.layout) === null || _token$layout6 === void 0 || (_token$layout6 = _token$layout6.sider) === null || _token$layout6 === void 0 ? void 0 : _token$layout6.colorBgMenuItemHover) || (token === null || token === void 0 ? void 0 : token.colorBgTextHover),
|
|
@@ -472,7 +471,6 @@ var BaseProLayout = function BaseProLayout(props) {
|
|
|
472
471
|
// 悬浮态
|
|
473
472
|
itemSelectedColor: ((_token$layout11 = token.layout) === null || _token$layout11 === void 0 || (_token$layout11 = _token$layout11.sider) === null || _token$layout11 === void 0 ? void 0 : _token$layout11.colorTextMenuSelected) || 'rgba(0, 0, 0, 1)',
|
|
474
473
|
popupBg: token === null || token === void 0 ? void 0 : token.colorBgElevated,
|
|
475
|
-
subMenuItemBg: token === null || token === void 0 ? void 0 : token.colorBgElevated,
|
|
476
474
|
darkSubMenuItemBg: 'transparent',
|
|
477
475
|
darkPopupBg: token === null || token === void 0 ? void 0 : token.colorBgElevated
|
|
478
476
|
}
|
|
@@ -2,9 +2,9 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children", "className", "extra", "portalDom", "style", "renderContent"];
|
|
5
|
-
/* eslint-disable react-hooks/exhaustive-deps */import {
|
|
5
|
+
/* eslint-disable react-hooks/exhaustive-deps */import { omit } from '@rc-component/util';
|
|
6
|
+
import { ConfigProvider } from 'antd';
|
|
6
7
|
import classNames from 'classnames';
|
|
7
|
-
import omit from 'rc-util/lib/omit';
|
|
8
8
|
import React, { useContext, useEffect, useMemo } from 'react';
|
|
9
9
|
import { createPortal } from 'react-dom';
|
|
10
10
|
import { isBrowser } from "../../../utils";
|
|
@@ -2,8 +2,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["drawerProps"];
|
|
5
|
+
import { useMergedState } from '@rc-component/util';
|
|
5
6
|
import { Drawer } from 'antd';
|
|
6
|
-
import { useMergedState } from 'rc-util';
|
|
7
7
|
import { ProHelpPanel } from "./ProHelpPanel";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
/**
|