doui-react 1.0.2 → 2.0.1-dev
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/es/api/component/common.d.ts +2 -2
- package/es/api/component/common.js +3 -0
- package/es/api/component/global-style.d.ts +0 -1
- package/es/api/component/global-style.js +2 -3
- package/es/api/component/react-dom.js +20 -28
- package/es/button/component/index.js +8 -9
- package/es/button/type/index.d.ts +3 -7
- package/es/checkbox/type/index.d.ts +1 -1
- package/es/date-picker/component/index.js +13 -17
- package/es/date-picker/type/index.d.ts +5 -14
- package/es/form/component/constant.js +2 -2
- package/es/form/component/form-item-map.d.ts +2 -1
- package/es/form/component/form-item-map.js +2 -1
- package/es/form/component/form-item.js +1 -3
- package/es/form/component/form-list.d.ts +2 -2
- package/es/form/component/utils.d.ts +37 -27
- package/es/form/component/utils.js +2 -2
- package/es/form/style/form-item.d.ts +1 -1
- package/es/form/style/form-item.js +4 -11
- package/es/form/style/index.js +2 -2
- package/es/form/type/form-item.d.ts +5 -6
- package/es/form/type/form-list.d.ts +2 -2
- package/es/form/type/index.d.ts +3 -3
- package/es/grid/component/pagination.d.ts +72 -15
- package/es/hooks/hook/use-fetch.js +5 -12
- package/es/icon/hook/index.d.ts +108 -103
- package/es/input/component/number.d.ts +1 -1
- package/es/input/component/number.js +8 -30
- package/es/input/component/utils.d.ts +0 -1
- package/es/input/component/utils.js +0 -3
- package/es/input/type/index.d.ts +3 -3
- package/es/modal-prompt/component/utils.js +2 -1
- package/es/modal-prompt/type/index.d.ts +2 -2
- package/es/open-modal/component/footer.d.ts +1 -1
- package/es/open-modal/component/footer.js +2 -4
- package/es/open-modal/component/index.js +16 -1
- package/es/open-modal/component/modal.js +16 -6
- package/es/open-modal/component/utils.js +2 -6
- package/es/open-modal/hook/use-modal.js +1 -1
- package/es/open-modal/style/index.js +2 -2
- package/es/open-modal/style/wrap.js +1 -1
- package/es/open-modal/type/index.d.ts +6 -1
- package/es/radio/component/abstract-box.d.ts +68 -96
- package/es/radio/component/abstract-box.js +1 -5
- package/es/radio/component/use-radio.d.ts +7 -5
- package/es/radio/component/utils.js +1 -1
- package/es/radio/type/index.d.ts +2 -2
- package/es/select/component/use-select-options.d.ts +1 -1
- package/es/select/component/use-select-options.js +5 -2
- package/es/select/component/use-select.js +4 -7
- package/es/select/component/utils.d.ts +1 -2
- package/es/select/type/index.d.ts +3 -2
- package/es/stack/style/index.d.ts +2 -1
- package/es/switch/type/index.d.ts +2 -2
- package/es/table/component/action-button.js +0 -1
- package/es/table/component/filter.d.ts +1 -1
- package/es/table/component/filter.js +1 -1
- package/es/table/component/sort.d.ts +1 -1
- package/es/table/component/time.js +2 -2
- package/es/table/component/utils.d.ts +3 -77
- package/es/table/component/utils.js +5 -8
- package/es/table/hook/search.d.ts +1 -1
- package/es/table/hook/search.js +8 -6
- package/es/table/type/action.d.ts +2 -7
- package/es/table/type/column.d.ts +3 -3
- package/es/tabs/component/utils.d.ts +8 -8
- package/es/tabs/type/index.d.ts +1 -1
- package/es/text/component/index.js +15 -16
- package/es/text/component/use-text.d.ts +3 -2
- package/es/text/component/use-text.js +12 -19
- package/es/text/component/utils.d.ts +1 -1
- package/es/text/style/index.js +1 -1
- package/es/text/type/index.d.ts +2 -2
- package/es/tooltip/component/index.d.ts +34 -24
- package/es/tooltip/component/index.js +6 -2
- package/es/tooltip/type/index.d.ts +1 -1
- package/es/tree/component/index.d.ts +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree-select/component/use-tree-select.js +4 -4
- package/es/tree-select/style/index.js +1 -1
- package/es/virtual-list/component/index.d.ts +1 -1
- package/es/virtual-list/component/index.js +4 -2
- package/es/virtual-list/type/index.d.ts +2 -1
- package/lib/api/component/common.d.ts +2 -2
- package/lib/api/component/common.js +3 -0
- package/lib/api/component/global-style.d.ts +0 -1
- package/lib/api/component/global-style.js +3 -4
- package/lib/api/component/react-dom.js +22 -30
- package/lib/button/component/index.js +8 -9
- package/lib/button/type/index.d.ts +3 -7
- package/lib/checkbox/type/index.d.ts +1 -1
- package/lib/date-picker/component/index.js +13 -17
- package/lib/date-picker/type/index.d.ts +5 -14
- package/lib/form/component/constant.js +2 -2
- package/lib/form/component/form-item-map.d.ts +2 -1
- package/lib/form/component/form-item-map.js +2 -1
- package/lib/form/component/form-item.js +1 -3
- package/lib/form/component/form-list.d.ts +2 -2
- package/lib/form/component/utils.d.ts +37 -27
- package/lib/form/component/utils.js +2 -2
- package/lib/form/style/form-item.d.ts +1 -1
- package/lib/form/style/form-item.js +4 -11
- package/lib/form/style/index.js +1 -1
- package/lib/form/type/form-item.d.ts +5 -6
- package/lib/form/type/form-list.d.ts +2 -2
- package/lib/form/type/index.d.ts +3 -3
- package/lib/grid/component/pagination.d.ts +72 -15
- package/lib/hooks/hook/use-fetch.js +5 -12
- package/lib/icon/hook/index.d.ts +108 -103
- package/lib/input/component/number.d.ts +1 -1
- package/lib/input/component/number.js +7 -28
- package/lib/input/component/utils.d.ts +0 -1
- package/lib/input/component/utils.js +0 -4
- package/lib/input/type/index.d.ts +3 -3
- package/lib/modal-prompt/component/utils.js +2 -1
- package/lib/modal-prompt/type/index.d.ts +2 -2
- package/lib/open-modal/component/footer.d.ts +1 -1
- package/lib/open-modal/component/footer.js +2 -4
- package/lib/open-modal/component/index.js +17 -1
- package/lib/open-modal/component/modal.js +14 -4
- package/lib/open-modal/component/utils.js +2 -6
- package/lib/open-modal/hook/use-modal.js +1 -1
- package/lib/open-modal/style/index.js +1 -1
- package/lib/open-modal/style/wrap.js +1 -1
- package/lib/open-modal/type/index.d.ts +6 -1
- package/lib/radio/component/abstract-box.d.ts +68 -96
- package/lib/radio/component/abstract-box.js +1 -5
- package/lib/radio/component/use-radio.d.ts +7 -5
- package/lib/radio/component/utils.js +1 -1
- package/lib/radio/type/index.d.ts +2 -2
- package/lib/select/component/use-select-options.d.ts +1 -1
- package/lib/select/component/use-select-options.js +5 -2
- package/lib/select/component/use-select.js +4 -7
- package/lib/select/component/utils.d.ts +1 -2
- package/lib/select/type/index.d.ts +3 -2
- package/lib/stack/style/index.d.ts +2 -1
- package/lib/switch/type/index.d.ts +2 -2
- package/lib/table/component/action-button.js +0 -1
- package/lib/table/component/filter.d.ts +1 -1
- package/lib/table/component/filter.js +1 -1
- package/lib/table/component/sort.d.ts +1 -1
- package/lib/table/component/time.js +2 -2
- package/lib/table/component/utils.d.ts +3 -77
- package/lib/table/component/utils.js +5 -8
- package/lib/table/hook/search.d.ts +1 -1
- package/lib/table/hook/search.js +8 -6
- package/lib/table/type/action.d.ts +2 -7
- package/lib/table/type/column.d.ts +3 -3
- package/lib/tabs/component/utils.d.ts +8 -8
- package/lib/tabs/type/index.d.ts +1 -1
- package/lib/text/component/index.js +15 -16
- package/lib/text/component/use-text.d.ts +3 -2
- package/lib/text/component/use-text.js +11 -18
- package/lib/text/component/utils.d.ts +1 -1
- package/lib/text/style/index.js +1 -1
- package/lib/text/type/index.d.ts +2 -2
- package/lib/tooltip/component/index.d.ts +34 -24
- package/lib/tooltip/component/index.js +6 -2
- package/lib/tooltip/type/index.d.ts +1 -1
- package/lib/tree/component/index.d.ts +1 -1
- package/lib/tree/style/index.js +1 -1
- package/lib/tree-select/component/use-tree-select.js +4 -4
- package/lib/tree-select/style/index.js +1 -1
- package/lib/virtual-list/component/index.d.ts +1 -1
- package/lib/virtual-list/component/index.js +4 -2
- package/lib/virtual-list/type/index.d.ts +2 -1
- package/package.json +10 -13
|
@@ -4,45 +4,55 @@ import { TooltipProps } from "..";
|
|
|
4
4
|
export declare const tooltipOverlayClassName: string;
|
|
5
5
|
export declare function getTooltipProps(props: TooltipProps): {
|
|
6
6
|
color?: string | undefined;
|
|
7
|
-
title?: import("react").ReactNode | import("antd/
|
|
8
|
-
overlay?: import("react").ReactNode | import("antd/
|
|
7
|
+
title?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
8
|
+
overlay?: import("react").ReactNode | import("antd/es/_util/getRenderPropValue").RenderFunction;
|
|
9
|
+
styles?: Partial<Record<"body" | "root", import("react").CSSProperties>> | undefined;
|
|
10
|
+
classNames: Partial<Record<"body" | "root", string>>;
|
|
9
11
|
style?: import("react").CSSProperties | undefined;
|
|
10
12
|
className?: string | undefined;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
rootClassName?: string | undefined;
|
|
14
|
+
placement?: import("antd/es/tooltip").TooltipPlacement | undefined;
|
|
15
|
+
builtinPlacements?: import("@rc-component/trigger").BuildInPlacements | undefined;
|
|
13
16
|
openClassName?: string | undefined;
|
|
14
|
-
arrowPointAtCenter
|
|
15
|
-
|
|
17
|
+
arrowPointAtCenter?: boolean | undefined;
|
|
18
|
+
arrow: boolean | {
|
|
19
|
+
arrowPointAtCenter?: boolean | undefined;
|
|
20
|
+
pointAtCenter?: boolean | undefined;
|
|
21
|
+
};
|
|
22
|
+
autoAdjustOverflow?: boolean | import("antd/es/tooltip").AdjustOverflow | undefined;
|
|
16
23
|
getPopupContainer: typeof getPopupContainer;
|
|
17
24
|
children?: import("react").ReactNode;
|
|
18
|
-
|
|
25
|
+
destroyTooltipOnHide?: boolean | {
|
|
26
|
+
keepParent?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
destroyOnHidden?: boolean | undefined;
|
|
19
29
|
open?: boolean | undefined;
|
|
20
|
-
defaultVisible?: boolean | undefined;
|
|
21
30
|
defaultOpen?: boolean | undefined;
|
|
22
|
-
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
23
31
|
onOpenChange?: ((visible: boolean) => void) | undefined;
|
|
24
|
-
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
25
32
|
afterOpenChange?: ((visible: boolean) => void) | undefined;
|
|
26
|
-
|
|
33
|
+
visible?: boolean | undefined;
|
|
34
|
+
defaultVisible?: boolean | undefined;
|
|
35
|
+
onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
36
|
+
afterVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
27
37
|
animation?: string | undefined;
|
|
28
|
-
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
29
|
-
id?: string | undefined;
|
|
30
|
-
prefixCls?: string | undefined;
|
|
31
|
-
onPopupAlign?: ((element: HTMLElement, align: import("rc-trigger/lib/interface").AlignType) => void) | undefined;
|
|
32
|
-
trigger?: string | string[] | undefined;
|
|
33
38
|
transitionName?: string | undefined;
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
prefixCls?: string | undefined;
|
|
40
|
+
zIndex?: number | undefined;
|
|
41
|
+
forceRender?: boolean | undefined;
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
align?: import("@rc-component/trigger").AlignType | undefined;
|
|
44
|
+
motion?: import("rc-motion").CSSMotionProps | undefined;
|
|
36
45
|
mouseEnterDelay?: number | undefined;
|
|
37
46
|
mouseLeaveDelay?: number | undefined;
|
|
47
|
+
onPopupAlign?: ((element: HTMLElement, align: import("@rc-component/trigger").AlignType) => void) | undefined;
|
|
48
|
+
overlayClassName?: string | undefined;
|
|
49
|
+
overlayStyle?: import("react").CSSProperties | undefined;
|
|
50
|
+
trigger?: import("@rc-component/trigger").ActionType | import("@rc-component/trigger").ActionType[] | undefined;
|
|
51
|
+
popupVisible?: boolean | undefined;
|
|
52
|
+
fresh?: boolean | undefined;
|
|
38
53
|
getTooltipContainer?: ((node: HTMLElement) => HTMLElement) | undefined;
|
|
39
|
-
|
|
40
|
-
keepParent?: boolean | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
align?: import("rc-trigger/lib/interface").AlignType | undefined;
|
|
43
|
-
showArrow?: boolean | undefined;
|
|
54
|
+
showArrow?: boolean | import("@rc-component/trigger").ArrowType | undefined;
|
|
44
55
|
arrowContent?: import("react").ReactNode;
|
|
45
|
-
popupVisible?: boolean | undefined;
|
|
46
56
|
overlayInnerStyle?: import("react").CSSProperties | undefined;
|
|
47
57
|
};
|
|
48
58
|
export declare function Tooltip(props: TooltipProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -17,8 +17,12 @@ var _templateObject;
|
|
|
17
17
|
var tooltipOverlayClassName = exports.tooltipOverlayClassName = (0, _css.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n --tooltip-background-color: #02334a;\n\n .ant-tooltip-inner {\n border-radius: 8px;\n white-space: pre-wrap;\n line-height: 1.3;\n background-color: var(--tooltip-background-color);\n }\n\n .ant-tooltip-arrow-content {\n --antd-arrow-background-color: var(--tooltip-background-color);\n }\n"])));
|
|
18
18
|
function getTooltipProps(props) {
|
|
19
19
|
return (0, _objectSpread2.default)({
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
classNames: {
|
|
21
|
+
root: tooltipOverlayClassName
|
|
22
|
+
},
|
|
23
|
+
arrow: {
|
|
24
|
+
pointAtCenter: true
|
|
25
|
+
},
|
|
22
26
|
getPopupContainer: _api.getPopupContainer
|
|
23
27
|
}, props);
|
|
24
28
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TreeProps } from
|
|
1
|
+
import { TreeProps } from "..";
|
|
2
2
|
export declare function Tree(props: TreeProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/lib/tree/style/index.js
CHANGED
|
@@ -9,6 +9,6 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _templateObject;
|
|
11
11
|
var style = {
|
|
12
|
-
wrapper: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n\n .ant-select-tree,\n .ant-tree-select-dropdown {\n background: unset;\n box-shadow: unset;\n }\n\n .ant-select-selector,\n .ant-select-arrow {\n
|
|
12
|
+
wrapper: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n\n .ant-select-tree,\n .ant-tree-select-dropdown {\n background: unset;\n box-shadow: unset;\n }\n\n .ant-select-selector,\n .ant-select-arrow {\n display: none !important;\n\n ~ div {\n position: unset !important;\n }\n }\n\n .ant-tree-select-dropdown {\n position: unset !important;\n width: 100% !important;\n min-width: unset !important;\n padding: 0;\n }\n "])))
|
|
13
13
|
};
|
|
14
14
|
var _default = exports.default = style;
|
|
@@ -9,11 +9,10 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _checkbox = require("../../checkbox");
|
|
11
11
|
var _useSelect2 = require("../../select/component/use-select");
|
|
12
|
-
var _css = require("@emotion/css");
|
|
13
12
|
var _style = _interopRequireDefault(require("../style"));
|
|
14
13
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
14
|
var _excluded = ["presetProcessOption", "treeNodeAlign"],
|
|
16
|
-
_excluded2 = ["optionFilterProp", "optionLabelProp", "options", "
|
|
15
|
+
_excluded2 = ["optionFilterProp", "optionLabelProp", "options", "activeBackgroundColor", "indent", "multiple"];
|
|
17
16
|
function useTreeSelect(_ref) {
|
|
18
17
|
var presetProcessOption = _ref.presetProcessOption,
|
|
19
18
|
_ref$treeNodeAlign = _ref.treeNodeAlign,
|
|
@@ -25,7 +24,6 @@ function useTreeSelect(_ref) {
|
|
|
25
24
|
treeNodeFilterProp = _useSelect.optionFilterProp,
|
|
26
25
|
treeNodeLabelProp = _useSelect.optionLabelProp,
|
|
27
26
|
treeData = _useSelect.options,
|
|
28
|
-
popupClassName = _useSelect.popupClassName,
|
|
29
27
|
_useSelect$activeBack = _useSelect.activeBackgroundColor,
|
|
30
28
|
activeBackgroundColor = _useSelect$activeBack === void 0 ? '#e6f7ff' : _useSelect$activeBack,
|
|
31
29
|
indent = _useSelect.indent,
|
|
@@ -58,7 +56,9 @@ function useTreeSelect(_ref) {
|
|
|
58
56
|
treeNodeLabelProp: treeNodeLabelProp,
|
|
59
57
|
treeData: treeData,
|
|
60
58
|
multiple: multiple,
|
|
61
|
-
|
|
59
|
+
classNames: {
|
|
60
|
+
root: classString
|
|
61
|
+
},
|
|
62
62
|
treeCheckable: multiple,
|
|
63
63
|
treeExpandAction: multiple ? false : 'click',
|
|
64
64
|
treeIcon: multiple
|
|
@@ -16,7 +16,7 @@ var style = {
|
|
|
16
16
|
indent = _ref.indent,
|
|
17
17
|
switcherIcon = _ref.switcherIcon,
|
|
18
18
|
treeNodeAlign = _ref.treeNodeAlign;
|
|
19
|
-
return (0, _css.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n span.ant-select-tree-node-content-wrapper {\n display: flex;\n align-items: ", ";\n overflow: hidden;\n\n &.ant-select-tree-node-selected {\n background-color: ", ";\n }\n }\n\n .ant-select-tree .ant-select-tree-treenode {\n &:has(.ant-select-tree-indent-unit) .ant-select-tree-node-content-wrapper {\n margin-left: ", ";\n }\n\n .ant-select-tree-switcher {\n display: ", ";\n }\n\n .ant-select-tree-checkbox {\n display: none !important;\n }\n\n .ant-select-tree-iconEle {\n width: unset;\n height: unset;\n margin-right: 10px;\n }\n\n .ant-select-tree-title {\n min-width: 0;\n overflow: hidden;\n }\n }\n "])), (0, _style.getAlign)(treeNodeAlign), activeBackgroundColor, (0, _api.transformValueWithStyleUnit)(indent), switcherIcon === false ? 'none' : undefined);
|
|
19
|
+
return (0, _css.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n span.ant-select-tree-node-content-wrapper {\n display: flex;\n align-items: ", ";\n overflow: hidden;\n\n &.ant-select-tree-node-selected {\n background-color: ", ";\n }\n }\n\n .ant-select-tree .ant-select-tree-treenode {\n &:has(.ant-select-tree-indent-unit) .ant-select-tree-node-content-wrapper {\n margin-left: ", ";\n }\n\n .ant-select-tree-switcher {\n display: ", ";\n }\n\n .ant-select-tree-checkbox {\n display: none !important;\n }\n\n .ant-select-tree-iconEle {\n width: unset;\n height: unset;\n margin-right: 10px;\n }\n\n .ant-select-tree-title {\n min-width: 0;\n overflow: hidden;\n }\n\n &.filter-node:not(.ant-select-tree-treenode-disabled) .ant-select-tree-title {\n color: inherit;\n font-weight: inherit;\n }\n }\n "])), (0, _style.getAlign)(treeNodeAlign), activeBackgroundColor, (0, _api.transformValueWithStyleUnit)(indent), switcherIcon === false ? 'none' : undefined);
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
var _default = exports.default = style;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VirtualListProps } from "..";
|
|
2
|
-
export declare function VirtualList({ data, emptyText, children, ...props }: VirtualListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function VirtualList({ refs, data, emptyText, children, ...props }: VirtualListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -11,9 +11,10 @@ var _empty = require("../../empty");
|
|
|
11
11
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
12
12
|
var _reactVirtuoso = require("react-virtuoso");
|
|
13
13
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
14
|
-
var _excluded = ["data", "emptyText", "children"];
|
|
14
|
+
var _excluded = ["refs", "data", "emptyText", "children"];
|
|
15
15
|
function VirtualList(_ref) {
|
|
16
|
-
var
|
|
16
|
+
var refs = _ref.refs,
|
|
17
|
+
data = _ref.data,
|
|
17
18
|
emptyText = _ref.emptyText,
|
|
18
19
|
children = _ref.children,
|
|
19
20
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -27,6 +28,7 @@ function VirtualList(_ref) {
|
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
30
|
return (0, _jsxRuntime.jsx)(_reactVirtuoso.Virtuoso, (0, _objectSpread2.default)({
|
|
31
|
+
ref: refs,
|
|
30
32
|
data: data,
|
|
31
33
|
itemContent: function itemContent(index, item, context) {
|
|
32
34
|
return children(item, index, context);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { BaseComponentProps } from "../../api";
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { VirtuosoProps } from 'react-virtuoso';
|
|
3
|
-
export interface VirtualListProps extends VirtuosoProps<any, any
|
|
4
|
+
export interface VirtualListProps extends Omit<VirtuosoProps<any, any>, 'children'>, BaseComponentProps {
|
|
4
5
|
/**
|
|
5
6
|
* @description 数据
|
|
6
7
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doui-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1-dev",
|
|
4
4
|
"description": "A React UI library based on Ant Design",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "father build",
|
|
15
|
-
"build:docs": "dumi build",
|
|
16
15
|
"build:all": "npm-run-all build build:docs",
|
|
16
|
+
"build:docs": "dumi build",
|
|
17
17
|
"dev": "PORT=3060 dumi dev",
|
|
18
18
|
"lint": "yarn lint:es && yarn lint:css && tsc --noEmit && father doctor",
|
|
19
19
|
"lint:css": "stylelint \".dumi/**/*.less\" --allow-empty-input",
|
|
20
20
|
"lint:es": "eslint \"{src,__tests__,.dumi/theme}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
21
|
-
"setup": "husky && dumi setup && patch-package",
|
|
22
21
|
"prepare": "if [ -z \"$SKIP_PREPARE\" ]; then yarn setup; fi",
|
|
23
22
|
"prepublishOnly": "yarn lint && yarn build",
|
|
24
23
|
"preview:docs": "dumi preview --port 3060",
|
|
24
|
+
"setup": "husky && dumi setup && patch-package",
|
|
25
25
|
"test": "jest --coverage"
|
|
26
26
|
},
|
|
27
27
|
"lint-staged": {
|
|
@@ -42,15 +42,14 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ant-design/icons": "^
|
|
45
|
+
"@ant-design/icons": "^5.6.1",
|
|
46
46
|
"@babel/runtime": "^7.26.0",
|
|
47
47
|
"@emotion/css": "^11.13.5",
|
|
48
48
|
"@emotion/react": "^11.11.1",
|
|
49
|
+
"dayjs": "^1.11.13",
|
|
49
50
|
"delay": "^5.0.0",
|
|
50
51
|
"lodash": "^4.17.21",
|
|
51
52
|
"match-path-parser": "^8.2.2",
|
|
52
|
-
"moment": "^2.30.1",
|
|
53
|
-
"moment-timezone": "^0.5.47",
|
|
54
53
|
"query-string": "^7.1.3",
|
|
55
54
|
"rc-resize-observer": "^1.4.3",
|
|
56
55
|
"react-copy-to-clipboard": "^5.1.0",
|
|
@@ -82,9 +81,9 @@
|
|
|
82
81
|
"@types/he": "^1.2.3",
|
|
83
82
|
"@types/jest": "^29",
|
|
84
83
|
"@types/lodash": "^4.14.195",
|
|
85
|
-
"@types/react": "^
|
|
84
|
+
"@types/react": "^18.2.27",
|
|
86
85
|
"@types/react-copy-to-clipboard": "^5.0.7",
|
|
87
|
-
"@types/react-dom": "^
|
|
86
|
+
"@types/react-dom": "^18.2.12",
|
|
88
87
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
89
88
|
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
90
89
|
"@typescript-eslint/parser": "^8.20.0",
|
|
@@ -92,9 +91,7 @@
|
|
|
92
91
|
"@umijs/test": "^4",
|
|
93
92
|
"@utopia/eslint-config-react": "^0.0.13",
|
|
94
93
|
"@utopia/prettier-config-base": "^0.0.13",
|
|
95
|
-
"antd": "~4",
|
|
96
94
|
"cross-env": "^7",
|
|
97
|
-
"dayjs": "^1.11.13",
|
|
98
95
|
"dumi": "2.4.17",
|
|
99
96
|
"eslint": "^8.23.0",
|
|
100
97
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
@@ -126,8 +123,8 @@
|
|
|
126
123
|
"rc-footer": "0.6.8",
|
|
127
124
|
"rc-util": "^5.41.0",
|
|
128
125
|
"re-resizable": "^6.11.0",
|
|
129
|
-
"react": "^
|
|
130
|
-
"react-dom": "^
|
|
126
|
+
"react": "^18.2.0",
|
|
127
|
+
"react-dom": "^18.2.0",
|
|
131
128
|
"react-intersection-observer": "^9.8.2",
|
|
132
129
|
"react-typed": "^2.0.12",
|
|
133
130
|
"stylelint": "^14.9.1",
|
|
@@ -137,7 +134,7 @@
|
|
|
137
134
|
"typescript": "^5"
|
|
138
135
|
},
|
|
139
136
|
"peerDependencies": {
|
|
140
|
-
"antd": "^
|
|
137
|
+
"antd": "^5",
|
|
141
138
|
"react": ">=16.9.0",
|
|
142
139
|
"react-dom": ">=16.9.0"
|
|
143
140
|
},
|