@para-ui/core 2.2.40 → 2.2.42
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/AutoBox/index.d.ts +34 -34
- package/AutoTips/index.d.ts +27 -27
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.d.ts +39 -39
- package/Breadcrumbs/index.js +1 -1
- package/Button/SplitButton.d.ts +61 -61
- package/Button/index.d.ts +56 -56
- package/Button/lang/en_US.d.ts +4 -4
- package/Button/lang/index.d.ts +9 -9
- package/Button/lang/zh_CN.d.ts +4 -4
- package/ButtonGroup/index.d.ts +33 -33
- package/ButtonGroup/index.js +2 -2
- package/Carousel/index.d.ts +30 -30
- package/Cascader/index.d.ts +54 -54
- package/Cascader/lang/en_US.d.ts +4 -4
- package/Cascader/lang/index.d.ts +9 -9
- package/Cascader/lang/zh_CN.d.ts +4 -4
- package/Checkbox/index.d.ts +40 -40
- package/CheckboxGroup/index.d.ts +46 -46
- package/CheckboxGroup/index.js +2 -2
- package/Collapse/collapsePanel.d.ts +30 -30
- package/Collapse/index.d.ts +57 -57
- package/Collapse/motion.d.ts +5 -5
- package/Collapse/util.d.ts +11 -11
- package/CollapseBox/index.d.ts +27 -27
- package/CollapseBox/util.d.ts +5 -5
- package/CollapseLayout/index.d.ts +51 -51
- package/ColorPicker/index.d.ts +4 -4
- package/ComboSelect/WithTabsCombo/index.d.ts +11 -11
- package/ComboSelect/WithTabsCombo/interface.d.ts +141 -141
- package/ComboSelect/index.d.ts +11 -11
- package/ComboSelect/index.js +1 -1
- package/ComboSelect/interface.d.ts +149 -149
- package/ComboSelect/lang/en_US.d.ts +9 -9
- package/ComboSelect/lang/index.d.ts +19 -19
- package/ComboSelect/lang/zh_CN.d.ts +9 -9
- package/ComboSelect/utils.d.ts +12 -12
- package/Container/index.d.ts +77 -77
- package/DatePicker/PickerButton.d.ts +3 -3
- package/DatePicker/PickerTag.d.ts +3 -3
- package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -4
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -11
- package/DatePicker/generatePicker/index.d.ts +77 -77
- package/DatePicker/index.d.ts +18 -18
- package/DatePicker/lang/en_US.d.ts +3 -3
- package/DatePicker/lang/index.d.ts +7 -7
- package/DatePicker/lang/zh_CN.d.ts +3 -3
- package/DatePicker/util.d.ts +20 -20
- package/Desktop/index.d.ts +55 -55
- package/Drawer/index.d.ts +11 -11
- package/Drawer/interface.d.ts +83 -83
- package/Drawer/lang/en_US.d.ts +5 -5
- package/Drawer/lang/index.d.ts +11 -11
- package/Drawer/lang/zh_CN.d.ts +5 -5
- package/Dropdown/index.d.ts +39 -39
- package/DynamicMultiBox/formItem.d.ts +13 -13
- package/DynamicMultiBox/index.d.ts +4 -4
- package/DynamicMultiBox/index.js +2 -2
- package/DynamicMultiBox/interface.d.ts +161 -161
- package/DynamicMultiBox/rowForm.d.ts +24 -24
- package/Empty/images/index.d.ts +2 -2
- package/Empty/index.d.ts +30 -30
- package/Empty/lang/en_US.d.ts +6 -6
- package/Empty/lang/index.d.ts +13 -13
- package/Empty/lang/zh_CN.d.ts +6 -6
- package/Form/index.d.ts +181 -181
- package/Form/index.js +2 -2
- package/FormItem/compoments/defaultCompoments/index.d.ts +19 -19
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -8
- package/FormItem/compoments/formFile/index.d.ts +38 -38
- package/FormItem/compoments/formRadioGroup/index.d.ts +8 -8
- package/FormItem/compoments/formSelect/index.d.ts +18 -18
- package/FormItem/errorTips.d.ts +12 -12
- package/FormItem/index.d.ts +152 -152
- package/FormItem/index.js +2 -2
- package/FormItem/itemType.d.ts +42 -42
- package/FormItem/validateFunction.d.ts +15 -15
- package/FunctionModal/dialog.d.ts +58 -58
- package/FunctionModal/index.d.ts +8 -8
- package/FunctionModal/modalContext.d.ts +14 -14
- package/GlobalContext/componentsProps.d.ts +21 -21
- package/GlobalContext/confirmLocale.d.ts +7 -7
- package/GlobalContext/constant.d.ts +7 -7
- package/GlobalContext/index.d.ts +28 -28
- package/GlobalContext/intl.d.ts +34 -34
- package/GlobalContext/useFormatMessage.d.ts +3 -3
- package/Help/index.d.ts +20 -20
- package/HelperText/index.d.ts +19 -19
- package/Hooks/useGlobalProps.d.ts +1 -1
- package/InputLang/index.d.ts +49 -49
- package/InputLang/index.js +1 -1
- package/InputNumber/index.d.ts +74 -74
- package/Label/index.d.ts +35 -35
- package/Loading/index.d.ts +17 -17
- package/Menu/footerExpansion.d.ts +9 -9
- package/Menu/index.d.ts +10 -10
- package/Menu/interface.d.ts +139 -139
- package/Menu/logo.d.ts +9 -9
- package/Menu/verticalMenuList.d.ts +14 -14
- package/Message/index.d.ts +73 -73
- package/Modal/Confirm/index.d.ts +66 -66
- package/Modal/index.d.ts +61 -61
- package/Modal/lang/en_US.d.ts +5 -5
- package/Modal/lang/index.d.ts +11 -11
- package/Modal/lang/zh_CN.d.ts +5 -5
- package/MultiBox/index.d.ts +54 -54
- package/MultiBox/index.js +3 -3
- package/Notification/index.d.ts +52 -52
- package/OperateBtn/index.d.ts +59 -59
- package/OperateBtn/index.js +1 -1
- package/OperateBtn/lang/en_US.d.ts +4 -4
- package/OperateBtn/lang/index.d.ts +9 -9
- package/OperateBtn/lang/zh_CN.d.ts +4 -4
- package/PageHeader/horizontalMeun.d.ts +9 -9
- package/PageHeader/horizontalMeunRight.d.ts +9 -9
- package/PageHeader/index.d.ts +10 -10
- package/PageHeader/interface.d.ts +167 -167
- package/Pagination/index.d.ts +33 -33
- package/Pagination/index.js +1 -1
- package/Pagination/lang/en_US.d.ts +8 -8
- package/Pagination/lang/index.d.ts +17 -17
- package/Pagination/lang/zh_CN.d.ts +8 -8
- package/ParauiProvider/index.d.ts +12 -12
- package/PasswordRules/index.d.ts +46 -46
- package/PopConfirm/index.d.ts +56 -56
- package/PopConfirm/lang/en_US.d.ts +5 -5
- package/PopConfirm/lang/index.d.ts +11 -11
- package/PopConfirm/lang/zh_CN.d.ts +5 -5
- package/Popover/index.d.ts +14 -14
- package/PopoverNew/TooltipNew/index.d.ts +11 -11
- package/PopoverNew/TooltipNew/interface.d.ts +31 -31
- package/PopoverNew/TooltipNew/utils.d.ts +18 -18
- package/PopoverNew/index.d.ts +16 -16
- package/Popper/index.d.ts +13 -13
- package/Progress/Line.d.ts +47 -47
- package/Progress/Steps.d.ts +17 -17
- package/Progress/index.d.ts +81 -81
- package/Progress/utils.d.ts +6 -6
- package/Querying/images/index.d.ts +2 -2
- package/Querying/index.d.ts +26 -26
- package/Querying/lang/en_US.d.ts +4 -4
- package/Querying/lang/index.d.ts +9 -9
- package/Querying/lang/zh_CN.d.ts +4 -4
- package/README.md +750 -739
- package/Radio/index.d.ts +38 -38
- package/RadioGroup/index.d.ts +47 -47
- package/RadioGroup/index.js +2 -2
- package/Search/index.d.ts +56 -56
- package/Search/index.js +1 -1
- package/Select/index.d.ts +96 -96
- package/Select/index.js +1 -1
- package/Select/lang/en_US.d.ts +5 -5
- package/Select/lang/index.d.ts +11 -11
- package/Select/lang/zh_CN.d.ts +5 -5
- package/SelectInput/index.d.ts +11 -11
- package/SelectInput/index.js +1 -1
- package/Selector/index.d.ts +11 -11
- package/Selector/index.js +2 -2
- package/Selector/interface.d.ts +428 -428
- package/Selector/lang/en_US.d.ts +11 -11
- package/Selector/lang/index.d.ts +23 -23
- package/Selector/lang/zh_CN.d.ts +11 -11
- package/Selector/selectorData/index.d.ts +10 -10
- package/Selector/selectorMain/index.d.ts +10 -10
- package/Selector/selectorNode/index.d.ts +10 -10
- package/Selector/util.d.ts +15 -15
- package/SelectorPicker/index.d.ts +53 -53
- package/SelectorPicker/index.js +2 -2
- package/SingleBox/index.d.ts +42 -42
- package/SingleBox/index.js +1 -1
- package/Slider/index.d.ts +14 -14
- package/Slider/interface.d.ts +102 -102
- package/Split/index.d.ts +7 -7
- package/Stepper/icons.d.ts +5 -5
- package/Stepper/index.d.ts +39 -39
- package/Switch/index.d.ts +78 -78
- package/Table/index.d.ts +10 -10
- package/Table/index.js +1 -1
- package/Table/interface.d.ts +271 -271
- package/Table/lang/en_US.d.ts +8 -8
- package/Table/lang/index.d.ts +17 -17
- package/Table/lang/zh_CN.d.ts +8 -8
- package/Table/tableBody.d.ts +9 -9
- package/Table/tableBodyElement/index.d.ts +15 -15
- package/Table/tableBodyInterface.d.ts +67 -67
- package/Table/tableContainer/index.d.ts +16 -16
- package/Table/tableElement/index.d.ts +15 -15
- package/Table/tableHead.d.ts +9 -9
- package/Table/tableHeadElement/index.d.ts +15 -15
- package/Table/tableHeadInterface.d.ts +30 -30
- package/Table/tablePagination.d.ts +9 -9
- package/Table/tablePaginationInterFace.d.ts +24 -24
- package/Table/tdElement/index.d.ts +15 -15
- package/Table/thElement/index.d.ts +15 -15
- package/Table/trElement/index.d.ts +15 -15
- package/Table/util.d.ts +28 -28
- package/Tabs/index.d.ts +48 -48
- package/Tag/TagGroup.d.ts +66 -66
- package/Tag/index.d.ts +34 -34
- package/TextField/index.d.ts +95 -95
- package/TextField/index.js +1 -1
- package/TimePicker/index.d.ts +22 -22
- package/TimePicker/locale/en_US.d.ts +3 -3
- package/TimePicker/locale/zh_CN.d.ts +3 -3
- package/TimePicker/style/index.d.ts +1 -1
- package/Timeline/index.d.ts +22 -22
- package/Title/index.d.ts +30 -30
- package/ToggleButton/ToggleButtonGroup.d.ts +49 -49
- package/ToggleButton/index.d.ts +49 -49
- package/Tooltip/index.d.ts +14 -14
- package/Transfer/index.d.ts +37 -37
- package/Transfer/index.js +1 -1
- package/Transfer/lang/en_US.d.ts +8 -8
- package/Transfer/lang/index.d.ts +17 -17
- package/Transfer/lang/zh_CN.d.ts +8 -8
- package/Tree/OperateBar/index.d.ts +13 -13
- package/Tree/Tree.d.ts +4 -4
- package/Tree/index.d.ts +5 -5
- package/Tree/index.js +1 -1
- package/Tree/interface.d.ts +207 -207
- package/Tree/lang/en_US.d.ts +8 -8
- package/Tree/lang/index.d.ts +17 -17
- package/Tree/lang/zh_CN.d.ts +8 -8
- package/Tree/utils/tools.d.ts +26 -26
- package/Tree/utils/treeUtil.d.ts +15 -15
- package/Upload/Dragger/index.d.ts +10 -10
- package/Upload/ErroTip/index.d.ts +13 -13
- package/Upload/ImageUpload/index.d.ts +14 -14
- package/Upload/ImgCrop/EasyCrop.d.ts +17 -17
- package/Upload/ImgCrop/constants.d.ts +7 -7
- package/Upload/ImgCrop/index.d.ts +6 -6
- package/Upload/ImgCrop/interface.d.ts +48 -48
- package/Upload/UploadList/index.d.ts +5 -5
- package/Upload/index.d.ts +15 -15
- package/Upload/interface.d.ts +134 -134
- package/Upload/lang/en_US.d.ts +12 -12
- package/Upload/lang/index.d.ts +25 -25
- package/Upload/lang/zh_CN.d.ts +12 -12
- package/cdn/AutoTips/index.js +1 -1
- package/cdn/Breadcrumbs/index.js +1 -1
- package/cdn/ButtonGroup/index.js +2 -2
- package/cdn/Cascader/index.js +6 -6
- package/cdn/CheckboxGroup/index.js +2 -2
- package/cdn/ColorPicker/index.js +1 -1
- package/cdn/ComboSelect/index.js +2 -2
- package/cdn/DatePicker/index.js +8 -8
- package/cdn/Dropdown/index.js +3 -3
- package/cdn/DynamicMultiBox/index.js +7 -7
- package/cdn/Form/index.js +3 -3
- package/cdn/FormItem/index.js +3 -3
- package/cdn/InputLang/index.js +1 -1
- package/cdn/MultiBox/index.js +1 -1
- package/cdn/OperateBtn/index.js +1 -1
- package/cdn/Pagination/index.js +2 -2
- package/cdn/PopoverNew/index.js +3 -3
- package/cdn/RadioGroup/index.js +2 -2
- package/cdn/Search/index.js +5 -5
- package/cdn/Select/index.js +2 -2
- package/cdn/SelectInput/index.js +2 -2
- package/cdn/Selector/index.js +10 -10
- package/cdn/SelectorPicker/index.js +10 -10
- package/cdn/SingleBox/index.js +1 -1
- package/cdn/Slider/index.js +3 -3
- package/cdn/Table/index.js +2 -2
- package/cdn/Tabs/index.js +1 -1
- package/cdn/TextField/index.js +1 -1
- package/cdn/TimePicker/index.js +10 -10
- package/cdn/Transfer/index.js +1 -1
- package/cdn/Tree/index.js +1 -1
- package/cdn/Upload/index.js +10 -10
- package/index.d.ts +142 -142
- package/index.js +2 -2
- package/package.json +131 -131
- package/style.css +1 -1
package/AutoBox/index.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/9 16:16
|
|
4
|
-
* @description 超出自适应盒子
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface AutoBoxProps {
|
|
9
|
-
/** 样式class */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** style */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** list选项 */
|
|
14
|
-
list?: any[];
|
|
15
|
-
/** 指定渲染几项,存在这个参数,则不自适应 */
|
|
16
|
-
showNum?: number;
|
|
17
|
-
/** 下拉框样式 */
|
|
18
|
-
popoverClassName?: string;
|
|
19
|
-
/** 自定义更多内容 */
|
|
20
|
-
moreCustomize?: ReactNode;
|
|
21
|
-
/** 隐藏更多按钮 */
|
|
22
|
-
hideMore?: boolean;
|
|
23
|
-
/** 打开下拉框 */
|
|
24
|
-
openMore?: boolean;
|
|
25
|
-
/** 定位元素 */
|
|
26
|
-
anchorEl?: any;
|
|
27
|
-
/** 关闭弹窗 */
|
|
28
|
-
onCloseMore?: () => void;
|
|
29
|
-
/** 显示更多 */
|
|
30
|
-
onShowMore?: (bol: boolean) => void;
|
|
31
|
-
[name: string]: any;
|
|
32
|
-
}
|
|
33
|
-
export declare const AutoBox: FunctionComponent<AutoBoxProps>;
|
|
34
|
-
export default AutoBox;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/9 16:16
|
|
4
|
+
* @description 超出自适应盒子
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface AutoBoxProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** list选项 */
|
|
14
|
+
list?: any[];
|
|
15
|
+
/** 指定渲染几项,存在这个参数,则不自适应 */
|
|
16
|
+
showNum?: number;
|
|
17
|
+
/** 下拉框样式 */
|
|
18
|
+
popoverClassName?: string;
|
|
19
|
+
/** 自定义更多内容 */
|
|
20
|
+
moreCustomize?: ReactNode;
|
|
21
|
+
/** 隐藏更多按钮 */
|
|
22
|
+
hideMore?: boolean;
|
|
23
|
+
/** 打开下拉框 */
|
|
24
|
+
openMore?: boolean;
|
|
25
|
+
/** 定位元素 */
|
|
26
|
+
anchorEl?: any;
|
|
27
|
+
/** 关闭弹窗 */
|
|
28
|
+
onCloseMore?: () => void;
|
|
29
|
+
/** 显示更多 */
|
|
30
|
+
onShowMore?: (bol: boolean) => void;
|
|
31
|
+
[name: string]: any;
|
|
32
|
+
}
|
|
33
|
+
export declare const AutoBox: FunctionComponent<AutoBoxProps>;
|
|
34
|
+
export default AutoBox;
|
package/AutoTips/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/9 15:15
|
|
4
|
-
* @description 超出...
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface AutoTipsProps {
|
|
9
|
-
/** 样式class */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** style */
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
/** 超出显示的内容 */
|
|
14
|
-
tips?: React.ReactNode;
|
|
15
|
-
/** 文字下拉提示箭头 */
|
|
16
|
-
arrow?: boolean;
|
|
17
|
-
/** 显示文字还是元素 */
|
|
18
|
-
beyondText?: boolean;
|
|
19
|
-
/** 定位方向 */
|
|
20
|
-
placement?: "top-start" | "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top" | undefined;
|
|
21
|
-
/** interactive */
|
|
22
|
-
interactive?: boolean;
|
|
23
|
-
children?: any;
|
|
24
|
-
[name: string]: any;
|
|
25
|
-
}
|
|
26
|
-
declare const AutoTips: FunctionComponent<AutoTipsProps>;
|
|
27
|
-
export default AutoTips;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/9 15:15
|
|
4
|
+
* @description 超出...
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface AutoTipsProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 超出显示的内容 */
|
|
14
|
+
tips?: React.ReactNode;
|
|
15
|
+
/** 文字下拉提示箭头 */
|
|
16
|
+
arrow?: boolean;
|
|
17
|
+
/** 显示文字还是元素 */
|
|
18
|
+
beyondText?: boolean;
|
|
19
|
+
/** 定位方向 */
|
|
20
|
+
placement?: "top-start" | "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top" | undefined;
|
|
21
|
+
/** interactive */
|
|
22
|
+
interactive?: boolean;
|
|
23
|
+
children?: any;
|
|
24
|
+
[name: string]: any;
|
|
25
|
+
}
|
|
26
|
+
declare const AutoTips: FunctionComponent<AutoTipsProps>;
|
|
27
|
+
export default AutoTips;
|
package/AutoTips/index.js
CHANGED
|
@@ -12,4 +12,4 @@ object-assign
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
r(7418);var n=r(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s},5893:function(e,t,r){"use strict";e.exports=r(5251)},9271:function(e,t,r){var n=r(3379),o=r(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,t,r){var n=r(3379),o=r(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=r[u]||0,l="".concat(u," ").concat(s);r[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:b(p,t),references:1}),n.push(l)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,m=0;function b(e,t){var r,n,o;if(t.singleton){var i=m++;r=v||(v=s(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=s(t),n=d.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=u(e,t),s=0;s<r.length;s++){var l=c(r[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=i}}}},7371:function(e,t,r){"use strict";var n=r(5893),o=r(670),i=r(5744),a=r.n(i),c=(r(2310),function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)}),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};t.default=function(e){var t,r=e.placement,i=void 0===r?"top-start":r,s=e.className,l=e.arrow,f=void 0===l||l,p=e.PopperProps,d=e.boundariesElement,v=void 0===d?"scrollParent":d,m=u(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=c(c({},e.classes),{popper:a()("paraui-tooltip",s,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==i?void 0:i.includes("left"))||(null==i?void 0:i.includes("right")),"paraui-tooltip-top-bottom":(null==i?void 0:i.includes("top"))||(null==i?void 0:i.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,c({},m,{enterTouchDelay:0,arrow:f,placement:i,classes:b,PopperProps:c(c({},p),{modifiers:{preventOverflow:{boundariesElement:v}}})}))}},670:function(e){"use strict";e.exports=t},5744:function(e){"use strict";e.exports=r},8156:function(t){"use strict";t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return function(){"use strict";i.r(a);var e=i(5893),t=i(8156),r=i(7371),n=(i(9271),function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)});a.default=function(o){var i=o.children,a=o.arrow,c=void 0!==a&&a,u=o.placement,s=void 0===u?"bottom-start":u,l=o.tips,f=void 0===l?"":l,p=o.className,d=void 0===p?"":p,v=o.beyondText,m=void 0===v||v,b=o.interactive,y=void 0===b||b,h=o.style,g=(0,t.useRef)(),O=(0,t.useRef)(),w=(0,t.useState)(""),x=w[0],j=w[1];(0,t.useEffect)((function(){j(f)}),[f]);var P;return(0,e.jsx)("div",n({ref:g,className:(P="paraui-auto-tips",d&&(P+=" "+d),P),onMouseOver:function(){var e="",t=g.current
|
|
15
|
+
r(7418);var n=r(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(l=t.ref),t)c.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:l,props:i,_owner:a.current}}t.jsx=s},5893:function(e,t,r){"use strict";e.exports=r(5251)},9271:function(e,t,r){var n=r(3379),o=r(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,t,r){var n=r(3379),o=r(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function c(e){for(var t=-1,r=0;r<a.length;r++)if(a[r].identifier===e){t=r;break}return t}function u(e,t){for(var r={},n=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],s=r[u]||0,l="".concat(u," ").concat(s);r[u]=s+1;var f=c(l),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(p)):a.push({identifier:l,updater:b(p,t),references:1}),n.push(l)}return n}function s(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=r.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,f=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function p(e,t,r,n){var o=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,r){var n=r.css,o=r.media,i=r.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var v=null,m=0;function b(e,t){var r,n,o;if(t.singleton){var i=m++;r=v||(v=s(t)),n=p.bind(null,r,i,!1),o=p.bind(null,r,i,!0)}else r=s(t),n=d.bind(null,r,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(r)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var r=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<r.length;n++){var o=c(r[n]);a[o].references--}for(var i=u(e,t),s=0;s<r.length;s++){var l=c(r[s]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}r=i}}}},7371:function(e,t,r){"use strict";var n=r(5893),o=r(670),i=r(5744),a=r.n(i),c=(r(2310),function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)}),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};t.default=function(e){var t,r=e.placement,i=void 0===r?"top-start":r,s=e.className,l=e.arrow,f=void 0===l||l,p=e.PopperProps,d=e.boundariesElement,v=void 0===d?"scrollParent":d,m=u(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=c(c({},e.classes),{popper:a()("paraui-tooltip",s,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==i?void 0:i.includes("left"))||(null==i?void 0:i.includes("right")),"paraui-tooltip-top-bottom":(null==i?void 0:i.includes("top"))||(null==i?void 0:i.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,c({},m,{enterTouchDelay:0,arrow:f,placement:i,classes:b,PopperProps:c(c({},p),{modifiers:{preventOverflow:{boundariesElement:v}}})}))}},670:function(e){"use strict";e.exports=t},5744:function(e){"use strict";e.exports=r},8156:function(t){"use strict";t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,exports:{}};return n[e](r,r.exports,i),r.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var a={};return function(){"use strict";i.r(a);var e=i(5893),t=i(8156),r=i(7371),n=(i(9271),function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)});a.default=function(o){var i=o.children,a=o.arrow,c=void 0!==a&&a,u=o.placement,s=void 0===u?"bottom-start":u,l=o.tips,f=void 0===l?"":l,p=o.className,d=void 0===p?"":p,v=o.beyondText,m=void 0===v||v,b=o.interactive,y=void 0===b||b,h=o.style,g=(0,t.useRef)(),O=(0,t.useRef)(),w=(0,t.useState)(""),x=w[0],j=w[1];(0,t.useEffect)((function(){j(f)}),[f]);var P;return(0,e.jsx)("div",n({ref:g,className:(P="paraui-auto-tips",d&&(P+=" "+d),P),onMouseOver:function(){var e="",t=g.current,r=t.getBoundingClientRect();g.current&&t.scrollWidth>r.width&&(e=f||(m?t.innerText:i)),j(e)},style:h},{children:(0,e.jsx)(r.default,n({arrow:c,title:x,placement:s,interactive:y,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,e.jsx)("div",n({className:"auto-tips-content",ref:O},{children:i}))}))}))}}(),a}()}));
|
package/Breadcrumbs/index.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author linhd
|
|
3
|
-
* @date 2021/8/3 10:59
|
|
4
|
-
* @description 面包屑
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface listOptions {
|
|
9
|
-
/** 每一项显示名 */
|
|
10
|
-
label: ReactNode;
|
|
11
|
-
/** 每一项最大宽度 */
|
|
12
|
-
maxWidth?: string;
|
|
13
|
-
/** 是否可点击 */
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
[name: string]: any;
|
|
16
|
-
}
|
|
17
|
-
export interface BreadcrumbsProps {
|
|
18
|
-
/** 样式class */
|
|
19
|
-
className?: string;
|
|
20
|
-
/** style */
|
|
21
|
-
style?: React.CSSProperties;
|
|
22
|
-
/** 每一项最大宽度 */
|
|
23
|
-
maxWidth?: string;
|
|
24
|
-
/** 初始化数据 */
|
|
25
|
-
list: listOptions[];
|
|
26
|
-
/** 中间符号 */
|
|
27
|
-
separator?: string;
|
|
28
|
-
/** 弹出框样式class */
|
|
29
|
-
popoverClassName?: string;
|
|
30
|
-
/** 是否收缩 */
|
|
31
|
-
isShrink?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* 点击菜单
|
|
34
|
-
* @param ops 当前点击菜单数据
|
|
35
|
-
*/
|
|
36
|
-
onClickItem?: (ops: listOptions) => void;
|
|
37
|
-
}
|
|
38
|
-
export declare const Breadcrumbs: FunctionComponent<BreadcrumbsProps>;
|
|
39
|
-
export default Breadcrumbs;
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2021/8/3 10:59
|
|
4
|
+
* @description 面包屑
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface listOptions {
|
|
9
|
+
/** 每一项显示名 */
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
/** 每一项最大宽度 */
|
|
12
|
+
maxWidth?: string;
|
|
13
|
+
/** 是否可点击 */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
[name: string]: any;
|
|
16
|
+
}
|
|
17
|
+
export interface BreadcrumbsProps {
|
|
18
|
+
/** 样式class */
|
|
19
|
+
className?: string;
|
|
20
|
+
/** style */
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
/** 每一项最大宽度 */
|
|
23
|
+
maxWidth?: string;
|
|
24
|
+
/** 初始化数据 */
|
|
25
|
+
list: listOptions[];
|
|
26
|
+
/** 中间符号 */
|
|
27
|
+
separator?: string;
|
|
28
|
+
/** 弹出框样式class */
|
|
29
|
+
popoverClassName?: string;
|
|
30
|
+
/** 是否收缩 */
|
|
31
|
+
isShrink?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 点击菜单
|
|
34
|
+
* @param ops 当前点击菜单数据
|
|
35
|
+
*/
|
|
36
|
+
onClickItem?: (ops: listOptions) => void;
|
|
37
|
+
}
|
|
38
|
+
export declare const Breadcrumbs: FunctionComponent<BreadcrumbsProps>;
|
|
39
|
+
export default Breadcrumbs;
|
package/Breadcrumbs/index.js
CHANGED
|
@@ -12,4 +12,4 @@ object-assign
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
t(7418);var n=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,i={},u=null,l=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)s.call(r,n)&&!c.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,t){"use strict";e.exports=t(5251)},9271:function(e,r,t){var n=t(3379),o=t(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},4047:function(e,r,t){var n=t(3379),o=t(4044);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},8939:function(e,r,t){var n=t(3379),o=t(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,r,t){var n=t(3379),o=t(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function s(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function c(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],c=r.base?i[0]+r.base:i[0],u=t[c]||0,l="".concat(c," ").concat(u);t[c]=u+1;var p=s(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:l,updater:v(d,r),references:1}),n.push(l)}return n}function u(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,p=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function d(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function f(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var b=null,m=0;function v(e,r){var t,n,o;if(r.singleton){var i=m++;t=b||(b=u(r)),n=d.bind(null,t,i,!1),o=d.bind(null,t,i,!0)}else t=u(r),n=f.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=c(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=s(t[n]);a[o].references--}for(var i=c(e,r),u=0;u<t.length;u++){var l=s(t[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},7839:function(e,r,t){"use strict";var n=t(5893),o=t(8156),i=t(7371),a=(t(9271),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)});r.default=function(e){var r=e.children,t=e.arrow,s=void 0!==t&&t,c=e.placement,u=void 0===c?"bottom-start":c,l=e.tips,p=void 0===l?"":l,d=e.className,f=void 0===d?"":d,b=e.beyondText,m=void 0===b||b,v=e.interactive,h=void 0===v||v,y=e.style,g=(0,o.useRef)(),x=(0,o.useRef)(),j=(0,o.useState)(""),w=j[0],O=j[1];(0,o.useEffect)((function(){O(p)}),[p]);var S;return(0,n.jsx)("div",a({ref:g,className:(S="paraui-auto-tips",f&&(S+=" "+f),S),onMouseOver:function(){var e="",t=g.current.getBoundingClientRect(),n=x.current.getBoundingClientRect();g.current&&n.width>t.width&&(e=p||(m?g.current.innerText:r)),O(e)},style:y},{children:(0,n.jsx)(i.default,a({arrow:s,title:w,placement:u,interactive:h,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",a({className:"auto-tips-content",ref:x},{children:r}))}))}))}},7083:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=(t(8939),function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},i.apply(this,arguments)}),a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.className,s=e.children,c=e.classes,u=e.style,l=a(e,["className","children","classes","style"]);return(0,n.jsx)(o.Popover,i({style:i({zIndex:1300},u),className:(r="paraui-popover",t&&(r+=" "+t),r),classes:{paper:c?"paraui-popover-paper ".concat(c):"paraui-popover-paper"}},l,{children:s}))}},7371:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=t(5744),a=t.n(i),s=(t(2310),function(){return s=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},s.apply(this,arguments)}),c=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.placement,i=void 0===t?"top-start":t,u=e.className,l=e.arrow,p=void 0===l||l,d=e.PopperProps,f=e.boundariesElement,b=void 0===f?"scrollParent":f,m=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),v=s(s({},e.classes),{popper:a()("paraui-tooltip",u,null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==i?void 0:i.includes("left"))||(null==i?void 0:i.includes("right")),"paraui-tooltip-top-bottom":(null==i?void 0:i.includes("top"))||(null==i?void 0:i.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,s({},m,{enterTouchDelay:0,arrow:p,placement:i,classes:v,PopperProps:s(s({},d),{modifiers:{preventOverflow:{boundariesElement:b}}})}))}},670:function(e){"use strict";e.exports=r},7037:function(e){"use strict";e.exports=n},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=t},8156:function(r){"use strict";r.exports=e}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,exports:{}};return i[e](t,t.exports,s),t.exports}s.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(r,{a:r}),r},s.d=function(e,r){for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c={};return function(){"use strict";s.r(c),s.d(c,{Breadcrumbs:function(){return p}});var e=s(5893),r=s(8156),t=s(7083),n=s(7839),o=s(7037),i=s.n(o),a=s(8543),u=(s(4047),function(){return u=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},u.apply(this,arguments)}),l=function(e,r,t){if(t||2===arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return e.concat(n||Array.prototype.slice.call(r))},p=function(o){var s=o.maxWidth,c=void 0===s?"":s,p=o.className,d=o.list,f=o.separator,b=void 0===f?"/":f,m=o.popoverClassName,v=o.isShrink,h=void 0===v||v,y=o.onClickItem,g=o.style,x=(0,r.useState)("breadcrumbs-"+(0,a.UUID)())[0],j=(0,r.useState)([]),w=j[0],O=j[1],S=(0,r.useState)(0),N=S[0],P=S[1],_=(0,r.useState)(!1),k=_[0],C=_[1],E=(0,r.useState)({})[0],M=(0,r.useRef)();(0,r.useEffect)((function(){setTimeout((function(){var e=document.querySelector("."+x);e&&P(e.offsetWidth)})),O(l([],d,!0))}),[d]),(0,r.useEffect)((function(){return h?(setTimeout((function(){T()})),window.addEventListener("resize",T)):window.removeEventListener("resize",T),function(){window.removeEventListener("resize",T)}}),[w,N,h]);var T=function(){if(!(d.length<=2||0===N)){var e=document.querySelector("."+x);if(e&&N)if(e.parentNode&&e.parentNode.offsetWidth>=N){if(!E.scroll)return;E.scroll=!1,O(l([],d,!0)),C(!1)}else{if(E.scroll)return;E.scroll=!0;var r=[];r.push(d[0]),r.push({more:"more-breadcrumbs"}),r.push(d[d.length-1]),O(l([],r,!0))}}},R=function(e){return function(){e.disabled||("more-breadcrumbs"===e.more?C(!0):y&&y(e))}},q=function(){C(!1)},I=function(){var e="paraui-breadcrumbs "+x;return h&&(e+=" paraui-breadcrumbs-shrink"),p&&(e+=" "+p),e},L=function(e,r,t){var n=" breadcrumbs-item";return r===t.length-1&&(n+=" current-breadcrumbs"),e.disabled?n+=" breadcrumbs-item-disabled":n+=" breadcrumbs-item-click",n},U=(0,r.useMemo)((function(){return k&&(0,e.jsx)(t.default,u({open:k,anchorEl:M.current,onClose:q,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(n="paraui-breadcrumbs-popover",m&&(n+=" "+m),n)},{children:(0,e.jsx)("div",u({className:I()},{children:d.map((function(t,n){var o=d.length-1!==n;return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:R(t),className:L(t,n,d)},{children:t.label})),o&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:b}))]},n)}))}))}));var n}),[k,M,b,d,m]),z=function(e){var r={};return c&&(r.maxWidth=c),e.maxWidth&&(r.maxWidth=e.maxWidth),r};return(0,e.jsxs)("div",u({className:I(),style:g,ref:M},{children:[w.map((function(t,o){var a=w.length-1!==o;return"more-breadcrumbs"===t.more?(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:R(t),className:"more-breadcrumbs"},{children:(0,e.jsx)(i(),{})})),a&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:b}))]},o):(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({style:z(t),onClick:R(t),className:L(t,o,w)},{children:(0,e.jsx)(n.default,{children:t.label})})),a&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:b}))]},o)})),U]}))};c.default=p}(),c}()}));
|
|
15
|
+
t(7418);var n=t(8156),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,r,t){var n,i={},u=null,l=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(l=r.ref),r)s.call(r,n)&&!c.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}r.jsx=u,r.jsxs=u},5893:function(e,r,t){"use strict";e.exports=t(5251)},9271:function(e,r,t){var n=t(3379),o=t(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},4047:function(e,r,t){var n=t(3379),o=t(4044);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},8939:function(e,r,t){var n=t(3379),o=t(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},2310:function(e,r,t){var n=t(3379),o=t(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:("body","body"),singleton:!1};n(o,i);e.exports=o.locals||{}},3379:function(e,r,t){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(r){if(void 0===e[r]){var t=document.querySelector(r);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[r]=t}return e[r]}}(),a=[];function s(e){for(var r=-1,t=0;t<a.length;t++)if(a[t].identifier===e){r=t;break}return r}function c(e,r){for(var t={},n=[],o=0;o<e.length;o++){var i=e[o],c=r.base?i[0]+r.base:i[0],u=t[c]||0,l="".concat(c," ").concat(u);t[c]=u+1;var p=s(l),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(d)):a.push({identifier:l,updater:v(d,r),references:1}),n.push(l)}return n}function u(e){var r=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=t.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){r.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(r);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}return r}var l,p=(l=[],function(e,r){return l[e]=r,l.filter(Boolean).join("\n")});function d(e,r,t,n){var o=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=p(r,o);else{var i=document.createTextNode(o),a=e.childNodes;a[r]&&e.removeChild(a[r]),a.length?e.insertBefore(i,a[r]):e.appendChild(i)}}function f(e,r,t){var n=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var b=null,m=0;function v(e,r){var t,n,o;if(r.singleton){var i=m++;t=b||(b=u(r)),n=d.bind(null,t,i,!1),o=d.bind(null,t,i,!0)}else t=u(r),n=f.bind(null,t,r),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;n(e=r)}else o()}}e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=o());var t=c(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var o=s(t[n]);a[o].references--}for(var i=c(e,r),u=0;u<t.length;u++){var l=s(t[u]);0===a[l].references&&(a[l].updater(),a.splice(l,1))}t=i}}}},7839:function(e,r,t){"use strict";var n=t(5893),o=t(8156),i=t(7371),a=(t(9271),function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)});r.default=function(e){var r=e.children,t=e.arrow,s=void 0!==t&&t,c=e.placement,u=void 0===c?"bottom-start":c,l=e.tips,p=void 0===l?"":l,d=e.className,f=void 0===d?"":d,b=e.beyondText,m=void 0===b||b,v=e.interactive,h=void 0===v||v,y=e.style,g=(0,o.useRef)(),x=(0,o.useRef)(),j=(0,o.useState)(""),w=j[0],O=j[1];(0,o.useEffect)((function(){O(p)}),[p]);var S;return(0,n.jsx)("div",a({ref:g,className:(S="paraui-auto-tips",f&&(S+=" "+f),S),onMouseOver:function(){var e="",t=g.current,n=t.getBoundingClientRect();g.current&&t.scrollWidth>n.width&&(e=p||(m?t.innerText:r)),O(e)},style:y},{children:(0,n.jsx)(i.default,a({arrow:s,title:w,placement:u,interactive:h,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",a({className:"auto-tips-content",ref:x},{children:r}))}))}))}},7083:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=(t(8939),function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},i.apply(this,arguments)}),a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.className,s=e.children,c=e.classes,u=e.style,l=a(e,["className","children","classes","style"]);return(0,n.jsx)(o.Popover,i({style:i({zIndex:1300},u),className:(r="paraui-popover",t&&(r+=" "+t),r),classes:{paper:c?"paraui-popover-paper ".concat(c):"paraui-popover-paper"}},l,{children:s}))}},7371:function(e,r,t){"use strict";var n=t(5893),o=t(670),i=t(5744),a=t.n(i),s=(t(2310),function(){return s=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},s.apply(this,arguments)}),c=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};r.default=function(e){var r,t=e.placement,i=void 0===t?"top-start":t,u=e.className,l=e.arrow,p=void 0===l||l,d=e.PopperProps,f=e.boundariesElement,b=void 0===f?"scrollParent":f,m=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),v=s(s({},e.classes),{popper:a()("paraui-tooltip",u,null===(r=e.classes)||void 0===r?void 0:r.popper,{"paraui-tooltip-left-right":(null==i?void 0:i.includes("left"))||(null==i?void 0:i.includes("right")),"paraui-tooltip-top-bottom":(null==i?void 0:i.includes("top"))||(null==i?void 0:i.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,s({},m,{enterTouchDelay:0,arrow:p,placement:i,classes:v,PopperProps:s(s({},d),{modifiers:{preventOverflow:{boundariesElement:b}}})}))}},670:function(e){"use strict";e.exports=r},7037:function(e){"use strict";e.exports=n},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=t},8156:function(r){"use strict";r.exports=e}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,exports:{}};return i[e](t,t.exports,s),t.exports}s.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(r,{a:r}),r},s.d=function(e,r){for(var t in r)s.o(r,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},s.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c={};return function(){"use strict";s.r(c),s.d(c,{Breadcrumbs:function(){return p}});var e=s(5893),r=s(8156),t=s(7083),n=s(7839),o=s(7037),i=s.n(o),a=s(8543),u=(s(4047),function(){return u=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},u.apply(this,arguments)}),l=function(e,r,t){if(t||2===arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return e.concat(n||Array.prototype.slice.call(r))},p=function(o){var s=o.maxWidth,c=void 0===s?"":s,p=o.className,d=o.list,f=o.separator,b=void 0===f?"/":f,m=o.popoverClassName,v=o.isShrink,h=void 0===v||v,y=o.onClickItem,g=o.style,x=(0,r.useState)("breadcrumbs-"+(0,a.UUID)())[0],j=(0,r.useState)([]),w=j[0],O=j[1],S=(0,r.useState)(0),N=S[0],P=S[1],_=(0,r.useState)(!1),k=_[0],E=_[1],C=(0,r.useState)({})[0],M=(0,r.useRef)();(0,r.useEffect)((function(){setTimeout((function(){var e=document.querySelector("."+x);e&&P(e.offsetWidth)})),O(l([],d,!0))}),[d]),(0,r.useEffect)((function(){return h?(setTimeout((function(){T()})),window.addEventListener("resize",T)):window.removeEventListener("resize",T),function(){window.removeEventListener("resize",T)}}),[w,N,h]);var T=function(){if(!(d.length<=2||0===N)){var e=document.querySelector("."+x);if(e&&N)if(e.parentNode&&e.parentNode.offsetWidth>=N){if(!C.scroll)return;C.scroll=!1,O(l([],d,!0)),E(!1)}else{if(C.scroll)return;C.scroll=!0;var r=[];r.push(d[0]),r.push({more:"more-breadcrumbs"}),r.push(d[d.length-1]),O(l([],r,!0))}}},q=function(e){return function(){e.disabled||("more-breadcrumbs"===e.more?E(!0):y&&y(e))}},I=function(){E(!1)},R=function(){var e="paraui-breadcrumbs "+x;return h&&(e+=" paraui-breadcrumbs-shrink"),p&&(e+=" "+p),e},L=function(e,r,t){var n=" breadcrumbs-item";return r===t.length-1&&(n+=" current-breadcrumbs"),e.disabled?n+=" breadcrumbs-item-disabled":n+=" breadcrumbs-item-click",n},U=(0,r.useMemo)((function(){return k&&(0,e.jsx)(t.default,u({open:k,anchorEl:M.current,onClose:I,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},className:(n="paraui-breadcrumbs-popover",m&&(n+=" "+m),n)},{children:(0,e.jsx)("div",u({className:R()},{children:d.map((function(t,n){var o=d.length-1!==n;return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:q(t),className:L(t,n,d)},{children:t.label})),o&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:b}))]},n)}))}))}));var n}),[k,M,b,d,m]),W=function(e){var r={};return c&&(r.maxWidth=c),e.maxWidth&&(r.maxWidth=e.maxWidth),r};return(0,e.jsxs)("div",u({className:R(),style:g,ref:M},{children:[w.map((function(t,o){var a=w.length-1!==o;return"more-breadcrumbs"===t.more?(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({onClick:q(t),className:"more-breadcrumbs"},{children:(0,e.jsx)(i(),{})})),a&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:b}))]},o):(0,e.jsxs)(r.Fragment,{children:[(0,e.jsx)("div",u({style:W(t),onClick:q(t),className:L(t,o,w)},{children:(0,e.jsx)(n.default,{children:t.label})})),a&&(0,e.jsx)("div",u({className:"breadcrumbs-separator"},{children:b}))]},o)})),U]}))};c.default=p}(),c}()}));
|
package/Button/SplitButton.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/4 上午10:22
|
|
4
|
-
* @description 分体式按钮组
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { PopperPlacementType } from '@material-ui/core';
|
|
8
|
-
import { ButtonProps } from '../Button';
|
|
9
|
-
interface Option {
|
|
10
|
-
/**
|
|
11
|
-
* 按钮文字
|
|
12
|
-
*/
|
|
13
|
-
label: string;
|
|
14
|
-
/**
|
|
15
|
-
* 按钮value
|
|
16
|
-
*/
|
|
17
|
-
value?: any;
|
|
18
|
-
/**
|
|
19
|
-
* 禁用按钮
|
|
20
|
-
*/
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
[name: string]: any;
|
|
23
|
-
}
|
|
24
|
-
type GroupOption = Array<Option>;
|
|
25
|
-
export interface SplitButtonProps {
|
|
26
|
-
/**
|
|
27
|
-
* 分体式按钮文本
|
|
28
|
-
*/
|
|
29
|
-
buttonText?: React.ReactNode;
|
|
30
|
-
/** 按钮选项数组 */
|
|
31
|
-
options?: Option[] | GroupOption[];
|
|
32
|
-
/** cls */
|
|
33
|
-
className?: string;
|
|
34
|
-
/** style */
|
|
35
|
-
style?: React.CSSProperties;
|
|
36
|
-
/** popperClassName */
|
|
37
|
-
popperClassName?: string;
|
|
38
|
-
/** popperStyle */
|
|
39
|
-
popperStyle?: React.CSSProperties;
|
|
40
|
-
/** 禁用按钮组 */
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/** 浮层位置 */
|
|
43
|
-
placement?: PopperPlacementType;
|
|
44
|
-
/** button props */
|
|
45
|
-
buttonProps?: ButtonProps;
|
|
46
|
-
/**
|
|
47
|
-
* click callback
|
|
48
|
-
* @param option
|
|
49
|
-
* @param evt
|
|
50
|
-
*/
|
|
51
|
-
onClick?: (option: Option, evt?: React.MouseEvent<HTMLElement>) => void;
|
|
52
|
-
/**
|
|
53
|
-
* 自定义选项渲染
|
|
54
|
-
* @param option
|
|
55
|
-
*/
|
|
56
|
-
optionRender?: (option: Option) => React.ReactNode;
|
|
57
|
-
/** 图标按钮 */
|
|
58
|
-
iconButton?: boolean;
|
|
59
|
-
}
|
|
60
|
-
export default function SplitButton(props: SplitButtonProps): JSX.Element;
|
|
61
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/4 上午10:22
|
|
4
|
+
* @description 分体式按钮组
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { PopperPlacementType } from '@material-ui/core';
|
|
8
|
+
import { ButtonProps } from '../Button';
|
|
9
|
+
interface Option {
|
|
10
|
+
/**
|
|
11
|
+
* 按钮文字
|
|
12
|
+
*/
|
|
13
|
+
label: string;
|
|
14
|
+
/**
|
|
15
|
+
* 按钮value
|
|
16
|
+
*/
|
|
17
|
+
value?: any;
|
|
18
|
+
/**
|
|
19
|
+
* 禁用按钮
|
|
20
|
+
*/
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
[name: string]: any;
|
|
23
|
+
}
|
|
24
|
+
type GroupOption = Array<Option>;
|
|
25
|
+
export interface SplitButtonProps {
|
|
26
|
+
/**
|
|
27
|
+
* 分体式按钮文本
|
|
28
|
+
*/
|
|
29
|
+
buttonText?: React.ReactNode;
|
|
30
|
+
/** 按钮选项数组 */
|
|
31
|
+
options?: Option[] | GroupOption[];
|
|
32
|
+
/** cls */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** style */
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
|
+
/** popperClassName */
|
|
37
|
+
popperClassName?: string;
|
|
38
|
+
/** popperStyle */
|
|
39
|
+
popperStyle?: React.CSSProperties;
|
|
40
|
+
/** 禁用按钮组 */
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/** 浮层位置 */
|
|
43
|
+
placement?: PopperPlacementType;
|
|
44
|
+
/** button props */
|
|
45
|
+
buttonProps?: ButtonProps;
|
|
46
|
+
/**
|
|
47
|
+
* click callback
|
|
48
|
+
* @param option
|
|
49
|
+
* @param evt
|
|
50
|
+
*/
|
|
51
|
+
onClick?: (option: Option, evt?: React.MouseEvent<HTMLElement>) => void;
|
|
52
|
+
/**
|
|
53
|
+
* 自定义选项渲染
|
|
54
|
+
* @param option
|
|
55
|
+
*/
|
|
56
|
+
optionRender?: (option: Option) => React.ReactNode;
|
|
57
|
+
/** 图标按钮 */
|
|
58
|
+
iconButton?: boolean;
|
|
59
|
+
}
|
|
60
|
+
export default function SplitButton(props: SplitButtonProps): JSX.Element;
|
|
61
|
+
export {};
|
package/Button/index.d.ts
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/4 上午10:21
|
|
4
|
-
* @description 按钮
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent } from 'react';
|
|
7
|
-
import { ButtonProps as MuiButtonProps, IconButtonProps as MuiIconButtonProps } from "@material-ui/core";
|
|
8
|
-
import { TooltipProps } from '../Tooltip';
|
|
9
|
-
import SplitButton from "./SplitButton";
|
|
10
|
-
import './index.scss';
|
|
11
|
-
export interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {
|
|
12
|
-
variant?: 'contained' | 'outlined' | 'text';
|
|
13
|
-
/** 设置按钮载入状态 */
|
|
14
|
-
loading?: boolean | {
|
|
15
|
-
delay: number;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* 禁用时提示文字 disabled 为true有效
|
|
19
|
-
*/
|
|
20
|
-
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
21
|
-
/**
|
|
22
|
-
* tooltip props
|
|
23
|
-
*/
|
|
24
|
-
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
25
|
-
/**
|
|
26
|
-
* 设置危险按钮
|
|
27
|
-
*/
|
|
28
|
-
danger?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IconButtonProps extends Omit<MuiIconButtonProps, 'size'> {
|
|
31
|
-
/** 按钮形状 */
|
|
32
|
-
variant?: 'contained' | 'outlined' | 'text';
|
|
33
|
-
size?: 'small' | 'medium' | 'large';
|
|
34
|
-
/** tooltip title */
|
|
35
|
-
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
36
|
-
/** 设置按钮载入状态 */
|
|
37
|
-
loading?: boolean | {
|
|
38
|
-
delay: number;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* tooltip props
|
|
42
|
-
*/
|
|
43
|
-
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
44
|
-
/**
|
|
45
|
-
* 设置危险按钮
|
|
46
|
-
*/
|
|
47
|
-
danger?: boolean;
|
|
48
|
-
}
|
|
49
|
-
declare const InternalButton: FunctionComponent<ButtonProps>;
|
|
50
|
-
declare const IconButton: FunctionComponent<IconButtonProps>;
|
|
51
|
-
type mergedButtonType = typeof InternalButton & {
|
|
52
|
-
IconButton: typeof IconButton;
|
|
53
|
-
SplitButton: typeof SplitButton;
|
|
54
|
-
};
|
|
55
|
-
export declare const Button: mergedButtonType;
|
|
56
|
-
export default Button;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/4 上午10:21
|
|
4
|
+
* @description 按钮
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
import { ButtonProps as MuiButtonProps, IconButtonProps as MuiIconButtonProps } from "@material-ui/core";
|
|
8
|
+
import { TooltipProps } from '../Tooltip';
|
|
9
|
+
import SplitButton from "./SplitButton";
|
|
10
|
+
import './index.scss';
|
|
11
|
+
export interface ButtonProps extends Omit<MuiButtonProps, 'variant'> {
|
|
12
|
+
variant?: 'contained' | 'outlined' | 'text';
|
|
13
|
+
/** 设置按钮载入状态 */
|
|
14
|
+
loading?: boolean | {
|
|
15
|
+
delay: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 禁用时提示文字 disabled 为true有效
|
|
19
|
+
*/
|
|
20
|
+
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
21
|
+
/**
|
|
22
|
+
* tooltip props
|
|
23
|
+
*/
|
|
24
|
+
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
25
|
+
/**
|
|
26
|
+
* 设置危险按钮
|
|
27
|
+
*/
|
|
28
|
+
danger?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface IconButtonProps extends Omit<MuiIconButtonProps, 'size'> {
|
|
31
|
+
/** 按钮形状 */
|
|
32
|
+
variant?: 'contained' | 'outlined' | 'text';
|
|
33
|
+
size?: 'small' | 'medium' | 'large';
|
|
34
|
+
/** tooltip title */
|
|
35
|
+
toolTipTitle?: NonNullable<React.ReactNode>;
|
|
36
|
+
/** 设置按钮载入状态 */
|
|
37
|
+
loading?: boolean | {
|
|
38
|
+
delay: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* tooltip props
|
|
42
|
+
*/
|
|
43
|
+
TooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
|
|
44
|
+
/**
|
|
45
|
+
* 设置危险按钮
|
|
46
|
+
*/
|
|
47
|
+
danger?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare const InternalButton: FunctionComponent<ButtonProps>;
|
|
50
|
+
declare const IconButton: FunctionComponent<IconButtonProps>;
|
|
51
|
+
type mergedButtonType = typeof InternalButton & {
|
|
52
|
+
IconButton: typeof IconButton;
|
|
53
|
+
SplitButton: typeof SplitButton;
|
|
54
|
+
};
|
|
55
|
+
export declare const Button: mergedButtonType;
|
|
56
|
+
export default Button;
|
package/Button/lang/en_US.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
moreActions: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
moreActions: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
package/Button/lang/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
zh: {
|
|
3
|
-
moreActions: string;
|
|
4
|
-
};
|
|
5
|
-
en: {
|
|
6
|
-
moreActions: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
zh: {
|
|
3
|
+
moreActions: string;
|
|
4
|
+
};
|
|
5
|
+
en: {
|
|
6
|
+
moreActions: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
package/Button/lang/zh_CN.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
moreActions: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
moreActions: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
package/ButtonGroup/index.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Hanz
|
|
3
|
-
* @date 2021/8/4 上午10:21
|
|
4
|
-
* @description 按钮组
|
|
5
|
-
*/
|
|
6
|
-
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import { ButtonProps } from '../Button';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export interface ButtonItem extends ButtonProps {
|
|
10
|
-
/** 图标*/
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
/** 文本*/
|
|
13
|
-
text?: ReactNode;
|
|
14
|
-
[key: string]: any;
|
|
15
|
-
}
|
|
16
|
-
export interface ButtonGroupProps {
|
|
17
|
-
/** 按钮组模式 */
|
|
18
|
-
mode?: 'icon' | 'iconSplit' | 'text';
|
|
19
|
-
/** 按钮组数据 */
|
|
20
|
-
data: ButtonItem[];
|
|
21
|
-
/** cls */
|
|
22
|
-
className?: string;
|
|
23
|
-
/** 显示tooltip */
|
|
24
|
-
showToolTip?: boolean;
|
|
25
|
-
/** 禁用按钮组 */
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
/**自定义样式*/
|
|
28
|
-
style?: React.CSSProperties;
|
|
29
|
-
/** onClick */
|
|
30
|
-
onClick?: (item: ButtonItem, event?: React.MouseEvent) => void;
|
|
31
|
-
}
|
|
32
|
-
export declare const ButtonGroup: FunctionComponent<ButtonGroupProps>;
|
|
33
|
-
export default ButtonGroup;
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/4 上午10:21
|
|
4
|
+
* @description 按钮组
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { ButtonProps } from '../Button';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export interface ButtonItem extends ButtonProps {
|
|
10
|
+
/** 图标*/
|
|
11
|
+
icon?: ReactNode;
|
|
12
|
+
/** 文本*/
|
|
13
|
+
text?: ReactNode;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export interface ButtonGroupProps {
|
|
17
|
+
/** 按钮组模式 */
|
|
18
|
+
mode?: 'icon' | 'iconSplit' | 'text';
|
|
19
|
+
/** 按钮组数据 */
|
|
20
|
+
data: ButtonItem[];
|
|
21
|
+
/** cls */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** 显示tooltip */
|
|
24
|
+
showToolTip?: boolean;
|
|
25
|
+
/** 禁用按钮组 */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**自定义样式*/
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
/** onClick */
|
|
30
|
+
onClick?: (item: ButtonItem, event?: React.MouseEvent) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const ButtonGroup: FunctionComponent<ButtonGroupProps>;
|
|
33
|
+
export default ButtonGroup;
|