@zat-design/sisyphus-react 4.1.3-beta.7 → 4.2.0-beta.1
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/README.md +19 -0
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProAction/components/CheckModalContent/index.js +1 -2
- package/es/ProAction/index.js +1 -3
- package/es/ProDrawerForm/components/ProDrawer/index.js +1 -2
- package/es/ProDrawerForm/components/ProModal/index.js +1 -2
- package/es/ProEditLabel/components/RenderProForm.js +1 -3
- package/es/ProEditLabel/index.js +1 -3
- package/es/ProEditTable/components/ActionButton/index.js +1 -2
- package/es/ProEditTable/components/RcTable/BaseTable.js +1 -3
- package/es/ProEditTable/components/RcTable/DraggableTable.js +1 -2
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +1 -2
- package/es/ProEditTable/components/RenderField/index.js +1 -2
- package/es/ProEditTable/components/Summary/index.js +1 -2
- package/es/ProEditTable/components/Validator/index.js +1 -2
- package/es/ProEditTable/index.js +1 -3
- package/es/ProEditTable/utils/index.js +1 -2
- package/es/ProEditTable/utils/useShouldUpdateForTable.js +7 -7
- package/es/ProEnum/index.js +1 -2
- package/es/ProForm/components/FormFooter/index.js +1 -2
- package/es/ProForm/components/base/Checkbox/index.js +1 -2
- package/es/ProForm/components/base/Input/index.js +1 -2
- package/es/ProForm/components/base/InputNumber/index.js +1 -3
- package/es/ProForm/components/base/Select/index.js +1 -2
- package/es/ProForm/components/base/Switch/index.js +1 -2
- package/es/ProForm/components/base/SwitchCheckbox/index.js +1 -2
- package/es/ProForm/components/combination/Container/index.js +1 -3
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +2 -4
- package/es/ProForm/components/combination/FormList/components/BlockFields.js +1 -2
- package/es/ProForm/components/combination/FormList/components/Empty.js +1 -3
- package/es/ProForm/components/combination/FormList/components/LineFields.js +1 -2
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -4
- package/es/ProForm/components/combination/FormList/index.js +1 -2
- package/es/ProForm/components/combination/Group/component/AddonWrapper/index.js +1 -2
- package/es/ProForm/components/combination/Group/component/ComRender.js +4 -6
- package/es/ProForm/components/combination/Group/utils/index.d.ts +11 -11
- package/es/ProForm/components/combination/ProCascader/index.js +1 -2
- package/es/ProForm/components/combination/ProModalSelect/index.js +1 -3
- package/es/ProForm/components/combination/ProNumberRange/index.js +1 -2
- package/es/ProForm/components/combination/ProRangeLimit/index.js +1 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.js +1 -2
- package/es/ProForm/components/render/ChangedWrapper.js +1 -2
- package/es/ProForm/components/render/ConfirmWrapper.js +1 -2
- package/es/ProForm/components/render/Render.js +1 -3
- package/es/ProForm/components/render/RenderFields.js +1 -2
- package/es/ProForm/index.js +1 -2
- package/es/ProForm/style/index.less +1 -0
- package/es/ProForm/utils/useForm.js +9 -5
- package/es/ProIcon/index.js +1 -2
- package/es/ProLayout/components/Layout/Header/index.js +1 -3
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +1 -2
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +1 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +6 -13
- package/es/ProLayout/components/Layout/Menu/SideMenu/index.js +1 -2
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +4 -3
- package/es/ProLayout/components/Layout/Menu/index.js +1 -3
- package/es/ProLayout/components/Layout/Notice/index.js +1 -2
- package/es/ProLayout/components/ProCollapse/index.js +1 -2
- package/es/ProLayout/components/ProHeader/index.js +1 -3
- package/es/ProLayout/components/TabsManager/components/TabItem.js +1 -2
- package/es/ProLayout/components/TabsManager/components/TabsHeader.js +1 -2
- package/es/ProLayout/components/TabsManager/index.js +1 -2
- package/es/ProLayout/index.js +1 -2
- package/es/ProLayout/style/index.less +1 -1
- package/es/ProSelect/components/AdaptiveTooltip.js +1 -2
- package/es/ProSelect/index.js +1 -3
- package/es/ProStep/components/Anchor/index.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.js +1 -2
- package/es/ProStep/components/Item/index.d.ts +0 -1
- package/es/ProStep/components/Step/index.js +1 -2
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProStep/index.js +1 -2
- package/es/ProTable/components/FormatColumn/index.js +1 -3
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +1 -3
- package/es/ProTable/components/RenderColumn/index.js +1 -3
- package/es/ProTable/components/RenderEmptyText/index.js +1 -2
- package/es/ProTable/components/RenderSummary/index.js +1 -2
- package/es/ProTable/components/RenderTableHeader/index.js +1 -2
- package/es/ProTable/components/TooltipTitle/index.js +1 -2
- package/es/ProTable/index.js +1 -3
- package/es/ProTabs/components/Card/index.js +1 -2
- package/es/ProThemeTools/component/ProTools/index.js +1 -2
- package/es/ProThemeTools/index.js +1 -2
- package/es/ProTooltip/index.js +3 -3
- package/es/ProTree/components/List.js +1 -3
- package/es/ProTree/components/ProTree.js +1 -2
- package/es/ProTree/components/ProTreeSelect/index.js +1 -3
- package/es/ProTree/components/SearchTitle.js +1 -2
- package/es/ProTree/components/Tree.js +1 -2
- package/es/ProTreeModal/components/Cascader.js +1 -3
- package/es/ProTreeModal/components/List.js +1 -3
- package/es/ProTreeModal/components/SearchTitle.js +1 -2
- package/es/ProTreeModal/components/SortableItem.js +1 -2
- package/es/ProTreeModal/components/Tree.js +1 -3
- package/es/ProTreeModal/components/Trigger.js +1 -2
- package/es/ProTreeModal/index.js +1 -3
- package/es/ProUpload/components/ButtonRender.js +1 -2
- package/es/ProUpload/components/DragRender.js +2 -3
- package/es/ProUpload/components/Example.js +1 -2
- package/es/ProUpload/components/FileItem.js +1 -2
- package/es/ProUpload/components/ImageRender.js +1 -3
- package/es/ProUpload/index.js +1 -2
- package/es/ProViewer/index.js +1 -2
- package/lib/ProEditTable/utils/useShouldUpdateForTable.js +7 -7
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -2
- package/lib/ProForm/components/combination/Group/component/ComRender.js +3 -3
- package/lib/ProForm/style/index.less +1 -0
- package/lib/ProForm/utils/useForm.js +8 -4
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +6 -13
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +4 -3
- package/lib/ProLayout/style/index.less +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.d.ts +0 -1
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProTooltip/index.js +3 -3
- package/lib/ProUpload/components/DragRender.js +1 -1
- package/package.json +15 -11
|
@@ -14,7 +14,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
14
14
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
16
|
import { Form } from 'antd';
|
|
17
|
-
import { useContext } from 'react';
|
|
17
|
+
import { useContext, useLayoutEffect } from 'react';
|
|
18
18
|
import { filterInternalFields, getFormFieldPaths, mergeNames, isListForm } from "./index";
|
|
19
19
|
import { handleScrollToError as handleScrollToErrorProEditTable } from "../../ProEditTable/utils/tools";
|
|
20
20
|
import { FormsContext } from "../../FormsProvider";
|
|
@@ -37,10 +37,14 @@ export var useForm = function useForm(originForm, options) {
|
|
|
37
37
|
var _ref2 = Form.useForm(forms[formKey] || _originForm),
|
|
38
38
|
_ref3 = _slicedToArray(_ref2, 1),
|
|
39
39
|
form = _ref3[0];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
|
|
41
|
+
// 使用 useLayoutEffect 在浏览器绘制前同步注册 form 实例,避免 React 19 StrictMode 警告
|
|
42
|
+
useLayoutEffect(() => {
|
|
43
|
+
if (formKey && forms[formKey] !== form) {
|
|
44
|
+
forms[formKey] = form;
|
|
45
|
+
form.formKey = formKey;
|
|
46
|
+
}
|
|
47
|
+
}, [formKey, form, forms]);
|
|
44
48
|
var getFieldsValue = form.getFieldsValue,
|
|
45
49
|
validateFields = form.validateFields,
|
|
46
50
|
isModified = form.isModified,
|
package/es/ProIcon/index.js
CHANGED
|
@@ -24,8 +24,7 @@ import { onBeforeInjection } from "./utils";
|
|
|
24
24
|
import locale from "../locale";
|
|
25
25
|
|
|
26
26
|
// 提取主题色相关辅助函数
|
|
27
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
28
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
29
28
|
var extractThemeColor = target => {
|
|
30
29
|
var _target$attributes, _styleAttr$value, _match$;
|
|
31
30
|
if (!target) return null;
|
|
@@ -10,9 +10,7 @@ import { Popover, Tooltip } from 'antd';
|
|
|
10
10
|
import { ProIcon } from "../../../../index";
|
|
11
11
|
import logoImg from "../../../images/logoImg.png";
|
|
12
12
|
import appsIcon from "../../../../assets/apps.svg";
|
|
13
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
14
|
var Header = props => {
|
|
17
15
|
var headerHeight = props.headerHeight,
|
|
18
16
|
pure = props.pure,
|
|
@@ -11,8 +11,7 @@ import { Icon } from "../../index";
|
|
|
11
11
|
import SideMenu from "../SideMenu";
|
|
12
12
|
import { LayoutContext } from "../../../../index";
|
|
13
13
|
import { getUrlParams, getPathNameKey, findMenuItemByKey } from "../../../../utils";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
var Link = RouterLink;
|
|
17
16
|
var FoldMenu = props => {
|
|
18
17
|
var style = props.style,
|
|
@@ -15,9 +15,7 @@ import { LayoutContext } from "../../../../index";
|
|
|
15
15
|
import { getIdsByPathName, findMenuItemByKey } from "../../../../utils";
|
|
16
16
|
import { isLeafMenuItem } from "../../../TabsManager/utils";
|
|
17
17
|
import { Icon } from "../../index";
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
19
|
var Link = RouterLink;
|
|
22
20
|
var OpenMenu = props => {
|
|
23
21
|
var _getIdsByPathName;
|
|
@@ -157,28 +157,21 @@
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
// 父级菜单不展示选中态,仅最后一级菜单显示选中高亮
|
|
160
161
|
.@{ant-prefix}-menu-submenu-selected {
|
|
161
162
|
& > .@{ant-prefix}-menu-submenu-title {
|
|
163
|
+
background: transparent !important;
|
|
164
|
+
|
|
162
165
|
.@{ant-prefix}-menu-title-content div {
|
|
163
166
|
.pro-layout-icon {
|
|
164
|
-
color: var(--zaui-
|
|
167
|
+
color: var(--zaui-text, #343434);
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
h2 {
|
|
168
|
-
color: var(--zaui-
|
|
171
|
+
color: var(--zaui-text, #343434);
|
|
172
|
+
font-weight: 400;
|
|
169
173
|
}
|
|
170
174
|
}
|
|
171
175
|
}
|
|
172
|
-
|
|
173
|
-
.@{ant-prefix}-menu-item-only-child .@{ant-prefix}-menu-title-content div {
|
|
174
|
-
.pro-layout-icon {
|
|
175
|
-
color: var(--zaui-text, #343434);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
h2 {
|
|
179
|
-
color: var(--zaui-text, #343434);
|
|
180
|
-
font-weight: 400;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
176
|
}
|
|
184
177
|
}
|
|
@@ -2,8 +2,7 @@ import { useRef } from 'react';
|
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { useSize } from 'ahooks';
|
|
4
4
|
import OpenMenu from "../OpenMenu";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
6
|
var SideMenu = props => {
|
|
8
7
|
var dataSource = props.dataSource,
|
|
9
8
|
onMenuClick = props.onMenuClick;
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
overflow-y: auto;
|
|
21
21
|
|
|
22
22
|
.@{ant-prefix}-menu-item-selected {
|
|
23
|
-
background-color:
|
|
23
|
+
background-color: transparent !important;
|
|
24
24
|
|
|
25
25
|
h2 {
|
|
26
26
|
color: var(--zaui-brand, #006aff) !important;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&::after {
|
|
30
|
-
|
|
30
|
+
display: none;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -80,7 +80,8 @@
|
|
|
80
80
|
|
|
81
81
|
// 与展开态一致:hover 使用透明背景 + 左侧品牌色半透明条
|
|
82
82
|
.@{ant-prefix}-menu-submenu-title:hover,
|
|
83
|
-
.@{ant-prefix}-menu-item:hover
|
|
83
|
+
.@{ant-prefix}-menu-item:hover,
|
|
84
|
+
.@{ant-prefix}-menu-item-selected {
|
|
84
85
|
position: relative;
|
|
85
86
|
background-color: transparent !important;
|
|
86
87
|
|
|
@@ -8,9 +8,7 @@ import { useEffect, useRef, useState, useCallback } from 'react';
|
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import OpenMenu from "./OpenMenu";
|
|
10
10
|
import FoldMenu from "./FoldMenu"; // 折叠后菜单
|
|
11
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
12
|
// 菜单宽度配置
|
|
15
13
|
var MENU_CONFIG = {
|
|
16
14
|
TRANSITION_DURATION: 300,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import tipMsg from "../../../images/tipMsg.png";
|
|
2
2
|
import close from "../../../images/close.png";
|
|
3
3
|
import locale from "../../../../locale";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
5
|
var Notice = props => {
|
|
7
6
|
var headerHeight = props.headerHeight,
|
|
8
7
|
notice = props.notice,
|
|
@@ -9,8 +9,7 @@ import { CaretRightOutlined } from '@ant-design/icons';
|
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import foldSvg from "../../../assets/fold.svg";
|
|
11
11
|
import ProIcon from "../../../ProIcon/index";
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
var ProCollapse = props => {
|
|
15
14
|
var title = props.title,
|
|
16
15
|
id = props.id,
|
|
@@ -25,9 +25,7 @@ import { Copy, ProBackBtn } from "./components";
|
|
|
25
25
|
import getEnumLabel from "../../../ProEnum/utils/getEnumLabel";
|
|
26
26
|
import locale from "../../../locale";
|
|
27
27
|
import { checkDescribeItemsHidden } from "./utils";
|
|
28
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
31
29
|
var formatAmount = tools.formatAmount;
|
|
32
30
|
var ProHeader = props => {
|
|
33
31
|
var breadcrumbColumns = props.breadcrumbColumns,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CloseOutlined } from '@ant-design/icons';
|
|
3
3
|
import { TabContextMenu } from "./TabContextMenu";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
5
|
/**
|
|
7
6
|
* 单个标签页组件
|
|
8
7
|
*/
|
|
@@ -6,8 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { useEffect, useState } from 'react';
|
|
8
8
|
import { Tabs } from 'antd';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
/**
|
|
12
11
|
* 标签页头部:监听 window 滚动(实际滚动在 window/documentElement,非 body),
|
|
13
12
|
* 滚动时添加阴影类名;仅此组件随滚动重渲染,不带动父组件内容区。
|
|
@@ -18,8 +18,7 @@ import { TabsContext } from "./components/TabsContext";
|
|
|
18
18
|
/**
|
|
19
19
|
* 标签页管理器主组件
|
|
20
20
|
*/
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
var TabsManager = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
24
23
|
var config = _ref.config,
|
|
25
24
|
children = _ref.children,
|
package/es/ProLayout/index.js
CHANGED
|
@@ -26,8 +26,7 @@ import { isLeafMenuItem } from "./components/TabsManager/utils";
|
|
|
26
26
|
import headerBg from "../assets/header_bg.png";
|
|
27
27
|
|
|
28
28
|
// 全局上下文
|
|
29
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
30
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
31
30
|
export var LayoutContext = /*#__PURE__*/createContext(undefined);
|
|
32
31
|
var ProLayout = props => {
|
|
33
32
|
var _Object$keys;
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
|
|
263
263
|
.pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
|
|
264
264
|
.pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover,
|
|
265
|
-
.pro-layout-open-menu .@{ant-prefix}-menu-item-selected{
|
|
265
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-item-selected {
|
|
266
266
|
position: relative;
|
|
267
267
|
background-color: transparent !important;
|
|
268
268
|
|
|
@@ -6,8 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Tooltip } from 'antd';
|
|
8
8
|
import { useEffect, useState } from 'react';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
var AdaptiveTooltip = _ref => {
|
|
12
11
|
var children = _ref.children;
|
|
13
12
|
var _useState = useState('right'),
|
package/es/ProSelect/index.js
CHANGED
|
@@ -24,9 +24,7 @@ import locale from "../locale";
|
|
|
24
24
|
import { getSelectList } from "./utils";
|
|
25
25
|
|
|
26
26
|
/** 将 selectList(扁平或分组)转为扁平选项列表,用于查找、回显、defaultOne */
|
|
27
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
28
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
30
28
|
function flattenOptions(list) {
|
|
31
29
|
if (!Array.isArray(list) || !list.length) return [];
|
|
32
30
|
var out = [];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import cn from 'classnames';
|
|
2
2
|
import { Badge } from 'antd';
|
|
3
3
|
import { handleScroll } from "../../utils";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
5
|
var AnchorSvg = _ref => {
|
|
7
6
|
var color = _ref.color;
|
|
8
7
|
return /*#__PURE__*/_jsxs("svg", {
|
|
@@ -15,8 +15,7 @@ import ProIcon from "../../../ProIcon/index";
|
|
|
15
15
|
import catalogSvg from "../../../assets/catalog.svg";
|
|
16
16
|
import Anchor from "../Anchor";
|
|
17
17
|
import locale from "../../../locale";
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
export var Step = _ref => {
|
|
21
20
|
var _locale$ProStep;
|
|
22
21
|
var _ref$fixedTop = _ref.fixedTop,
|
package/es/ProStep/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
2
|
import { ProStepType, ProStepContextType } from './propsType';
|
|
3
3
|
export declare const ProStepContext: import("react").Context<ProStepContextType>;
|
|
4
4
|
export declare const useStep: () => Partial<ProStepContextType>;
|
|
@@ -6,6 +6,6 @@ declare const ProStep: {
|
|
|
6
6
|
({ children, ...resetProps }: ProStepType): JSX.Element;
|
|
7
7
|
useStep: () => Partial<ProStepContextType>;
|
|
8
8
|
Item: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: import("./propsType").ProStepItemPropsType) => JSX.Element;
|
|
9
|
-
Listener: ({ children, delayTime, excludes, ...props }: import("./propsType").ListenerProps) => import("react").ReactElement<
|
|
9
|
+
Listener: ({ children, delayTime, excludes, ...props }: import("./propsType").ListenerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
10
10
|
};
|
|
11
11
|
export default ProStep;
|
package/es/ProStep/index.js
CHANGED
|
@@ -23,8 +23,7 @@ import { handleScroll, handleScrollError } from "./utils";
|
|
|
23
23
|
import Step from "./components/Step";
|
|
24
24
|
import Item from "./components/Item";
|
|
25
25
|
import Listener from "./components/Listener";
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
// 创建上下文并提供类型
|
|
29
28
|
export var ProStepContext = /*#__PURE__*/createContext(null);
|
|
30
29
|
export var useStep = () => {
|
|
@@ -23,9 +23,7 @@ import { getDecimalDigits, getOriginalValue } from "../../utils";
|
|
|
23
23
|
import { isEmpty } from "../../../utils";
|
|
24
24
|
import getEnumLabel from "../../../ProEnum/utils/getEnumLabel";
|
|
25
25
|
import { ProCascader } from "../../../ProForm/components";
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
29
27
|
var isReactElement = element => /*#__PURE__*/isValidElement(element);
|
|
30
28
|
|
|
31
29
|
// 需要从 otherProps 中排除的属性(不应传递给 RenderColumn)
|
package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js
CHANGED
|
@@ -17,9 +17,7 @@ import dragSvg from "../../../../../../../assets/drag.svg";
|
|
|
17
17
|
import ProIcon from "../../../../../../../ProIcon";
|
|
18
18
|
import { isFunction } from 'lodash';
|
|
19
19
|
import { addLevelAndParentId, treeNodeFind, transformTreeToArray, createTreeFromArray } from "./utils/index";
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
21
|
export var Row = props => {
|
|
24
22
|
var disabled = props.disabled,
|
|
25
23
|
children = props.children,
|
|
@@ -19,9 +19,7 @@ import { ReactSVG } from 'react-svg';
|
|
|
19
19
|
import { parseWidth } from "../../utils";
|
|
20
20
|
import { isEmpty, isEllipsisActive } from "../../../utils";
|
|
21
21
|
import copySvg from "../../../assets/copy.svg";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
23
|
var Paragraph = Typography.Paragraph,
|
|
26
24
|
Text = Typography.Text;
|
|
27
25
|
// @ts-ignore
|
|
@@ -2,8 +2,7 @@ import { Table } from 'antd';
|
|
|
2
2
|
import { get, isObject } from 'lodash';
|
|
3
3
|
import { tools } from '@zat-design/utils';
|
|
4
4
|
import { valueTypeRender } from "../../../ProUtils/utils";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
7
6
|
var renderSummary = props => {
|
|
8
7
|
var summary = props.summary,
|
|
9
8
|
dataSource = props.dataSource;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Button } from 'antd';
|
|
2
2
|
import { ReactSVG } from 'react-svg';
|
|
3
3
|
import { ProTreeModal } from "../../../index";
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
5
|
var RenderTableHeader = props => {
|
|
7
6
|
var _locale$ProTable, _locale$ProTable2, _locale$ProTable3;
|
|
8
7
|
var dataSource = props.dataSource;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Tooltip } from 'antd';
|
|
2
2
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
var TooltipTitle = props => {
|
|
6
5
|
var title = props.title,
|
|
7
6
|
tooltip = props.tooltip;
|
package/es/ProTable/index.js
CHANGED
|
@@ -30,9 +30,7 @@ import resetSvg from "../assets/reset.svg";
|
|
|
30
30
|
import customColumnSvg from "../assets/customColumn.svg";
|
|
31
31
|
import { getColumnDataIndex, getRowKey } from "./utils";
|
|
32
32
|
import locale from "../locale";
|
|
33
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
34
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
35
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
36
34
|
var defaultCacheTime = 1; // columns 配置保存时间为一天
|
|
37
35
|
|
|
38
36
|
// 全局上下文
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Space, Tag, Spin } from 'antd';
|
|
2
2
|
import { LoadingOutlined } from '@ant-design/icons';
|
|
3
3
|
import { tools } from '@zat-design/utils';
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
5
|
var Card = props => {
|
|
7
6
|
var total = props.total,
|
|
8
7
|
label = props.label,
|
|
@@ -16,8 +16,7 @@ import React, { useState, useEffect } from 'react';
|
|
|
16
16
|
import { setThemes } from "../../utils/index";
|
|
17
17
|
import { useProConfig } from "../../../ProConfigProvider";
|
|
18
18
|
import locale from "../../../locale";
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
var connect = function connect(Component) {
|
|
22
21
|
var ComponentWrapper = function ComponentWrapper(props) {
|
|
23
22
|
return /*#__PURE__*/_jsx(Component, _objectSpread({}, props));
|
|
@@ -25,8 +25,7 @@ import settingSvg from "../assets/setting.svg";
|
|
|
25
25
|
import { ProTools } from "./component";
|
|
26
26
|
import locale from "../locale";
|
|
27
27
|
import { useTheme, getThemeUpdaters } from "./context/ThemeContext";
|
|
28
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
29
|
var defaultCacheTime = 1; // 配置保存时间为一天
|
|
31
30
|
|
|
32
31
|
var defaultThemeConfig = {
|
package/es/ProTooltip/index.js
CHANGED
|
@@ -27,9 +27,9 @@ var findTableParent = function findTableParent(element) {
|
|
|
27
27
|
};
|
|
28
28
|
var ProTooltip = props => {
|
|
29
29
|
var _useSize;
|
|
30
|
-
var ref = useRef();
|
|
31
|
-
var childRef = useRef();
|
|
32
|
-
var contentWrapRef = useRef();
|
|
30
|
+
var ref = useRef(undefined);
|
|
31
|
+
var childRef = useRef(undefined);
|
|
32
|
+
var contentWrapRef = useRef(undefined);
|
|
33
33
|
var text = props.text,
|
|
34
34
|
_props$mode = props.mode,
|
|
35
35
|
mode = _props$mode === void 0 ? 'default' : _props$mode,
|
|
@@ -10,9 +10,7 @@ import { memo } from 'react';
|
|
|
10
10
|
import { Checkbox } from 'antd';
|
|
11
11
|
import SearchTitle from "./SearchTitle";
|
|
12
12
|
import CloseIcon from "./CloseIcon";
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
14
|
function List(props) {
|
|
17
15
|
var checkedValues = props.checkedValues,
|
|
18
16
|
disabled = props.disabled,
|
|
@@ -27,8 +27,7 @@ import { TreeView } from "./index";
|
|
|
27
27
|
import locale from "../../locale";
|
|
28
28
|
import { getFlatTreeData, getChildrenKeys, findTreeNodeByKey, getAllKeys } from "../utils";
|
|
29
29
|
import searchSVG from "../../assets/input-search.svg";
|
|
30
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
31
|
var ProTree = props => {
|
|
33
32
|
var _props$otherProps, _props$otherProps2, _locale$ProTree, _state$innerExpandKey2, _state$innerExpandKey3, _locale$ProTree2, _locale$ProTree3, _locale$ProTree4;
|
|
34
33
|
var _useProConfig = useProConfig('ProEnum'),
|
|
@@ -27,9 +27,7 @@ import { useProConfig } from "../../../ProConfigProvider";
|
|
|
27
27
|
import Container from "../../../ProForm/components/Container";
|
|
28
28
|
import AdaptiveTooltip from "../AdaptiveTooltip";
|
|
29
29
|
import { getFlatTreeData } from "../../utils";
|
|
30
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
30
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
33
31
|
var SHOW_PARENT = TreeSelect.SHOW_PARENT;
|
|
34
32
|
export var ProTreeSelect = (props, ref) => {
|
|
35
33
|
var _useRequest$options, _useRequest$options3, _selectProps$classNam, _selectProps$classNam2, _selectProps$styles, _selectProps$styles2;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
2
|
import AdaptiveTooltip from "./AdaptiveTooltip";
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
4
|
function SearchTitle(props) {
|
|
6
5
|
var label = props.label,
|
|
7
6
|
_props$searchStr = props.searchStr,
|
|
@@ -23,8 +23,7 @@ import { CaretDownOutlined } from '@ant-design/icons';
|
|
|
23
23
|
import SearchTitle from "./SearchTitle";
|
|
24
24
|
import { filterCheckedNodes, getParentKey } from "../utils";
|
|
25
25
|
import locale from "../../locale";
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
var tagsBgColors = ['rgba(0, 106, 255,0.16)', 'rgba(0, 196, 74,0.16)', 'rgba(255, 140, 0,0.16)', 'rgba(255, 80, 80,0.16)', 'rgba(97, 97, 97, 0.16)'];
|
|
29
28
|
var tagsColors = ['#006AFF', '#00C44A', '#FF8C00', '#FF5050', '#616161'];
|
|
30
29
|
function List(props) {
|
|
@@ -14,9 +14,7 @@ import { Checkbox } from 'antd';
|
|
|
14
14
|
import { useSetState } from 'ahooks';
|
|
15
15
|
import classNames from 'classnames';
|
|
16
16
|
import SearchTitle from "./SearchTitle";
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
18
|
var Cascader = props => {
|
|
21
19
|
var _dataSource$, _dataSource$2, _state$options;
|
|
22
20
|
var dataSource = props.dataSource,
|
|
@@ -15,9 +15,7 @@ import CloseIcon from "./CloseIcon";
|
|
|
15
15
|
import SortableItem from "./SortableItem";
|
|
16
16
|
import { CASCADER } from '..';
|
|
17
17
|
import { isEmpty } from "../../utils";
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
19
|
function List(props, ref) {
|
|
22
20
|
var checkedValues = props.checkedValues,
|
|
23
21
|
disabled = props.disabled,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
3
|
function SearchTitle(props) {
|
|
5
4
|
var label = props.label,
|
|
6
5
|
_props$searchStr = props.searchStr,
|
|
@@ -12,8 +12,7 @@ import ProIcon from "../../ProIcon";
|
|
|
12
12
|
import { ProTooltip } from "../../index";
|
|
13
13
|
import disabledSvg from "../../assets/disabled.svg";
|
|
14
14
|
import dragSvg from "../../assets/drag.svg";
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
16
|
var SortableItem = props => {
|
|
18
17
|
var drag = props.drag,
|
|
19
18
|
label = props.label,
|
|
@@ -19,9 +19,7 @@ import ListComponent from "./List";
|
|
|
19
19
|
import SearchTitle from "./SearchTitle";
|
|
20
20
|
import CloseIcon from "./CloseIcon";
|
|
21
21
|
import { filterCheckedNodes, getAllKeys, getParentKey } from "../utils";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
23
|
var tagsBgColors = ['rgba(0, 106, 255,0.16)', 'rgba(0, 196, 74,0.16)', 'rgba(255, 140, 0,0.16)', 'rgba(255, 80, 80,0.16)', 'rgba(97, 97, 97, 0.16)'];
|
|
26
24
|
var tagsColors = ['#006AFF', '#00C44A', '#FF8C00', '#FF5050', '#616161'];
|
|
27
25
|
function List(props, ref) {
|
|
@@ -17,8 +17,7 @@ import { ReactSVG } from 'react-svg';
|
|
|
17
17
|
import { useSetState } from 'ahooks';
|
|
18
18
|
import locale, { formatMessage } from "../../locale";
|
|
19
19
|
import viewSvg from "../../assets/view.svg";
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
21
|
function Trigger(props) {
|
|
23
22
|
var _locale$ProTreeModal2, _locale$ProTreeModal3;
|
|
24
23
|
var value = props.value,
|
package/es/ProTreeModal/index.js
CHANGED
|
@@ -21,9 +21,7 @@ import { getFlatTreeData, filterCheckedNodes, getChildrenKeys, findTreeNodeByKey
|
|
|
21
21
|
import { transformTreeToArray, treeNodeFind } from "../ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index";
|
|
22
22
|
import searchSVG from "../assets/input-search.svg";
|
|
23
23
|
import locale, { formatMessage } from "../locale";
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
25
|
var LIST = 'LIST';
|
|
28
26
|
var TREE = 'TREE';
|
|
29
27
|
export var CASCADER = 'CASCADER';
|