@para-ui/core 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoBox/index.js +180 -68
- package/AutoBox/protal.d.ts +17 -0
- package/AutoTips/index.js +4 -3
- package/Breadcrumbs/index.js +10 -7
- package/Button/index.js +15 -14
- package/ButtonGroup/index.js +3 -2
- package/Carousel/index.js +7 -5
- package/Cascader/index.d.ts +3 -1
- package/Cascader/index.js +13 -5
- package/Checkbox/index.js +27 -8
- package/CheckboxGroup/index.d.ts +2 -5
- package/CheckboxGroup/index.js +13 -10
- package/Collapse/index.js +11 -10
- package/CollapseBox/index.js +7 -6
- package/ComboSelect/index.js +161 -67
- package/ComboSelect/interface.d.ts +10 -9
- package/Container/index.js +24 -23
- package/DatePicker/index.js +12 -17
- package/DatePicker/util.d.ts +0 -1
- package/Desktop/index.js +6 -5
- package/Drawer/index.js +10 -9
- package/Dropdown/index.js +59 -6
- package/Empty/index.js +7 -6
- package/Form/index.js +6 -5
- package/FormItem/compoments/formFile/index.d.ts +16 -16
- package/FormItem/index.d.ts +19 -19
- package/FormItem/index.js +3 -2
- package/FunctionModal/index.js +3 -2
- package/GlobalContext/constant.d.ts +8 -0
- package/Help/index.js +3 -2
- package/HelperText/index.d.ts +9 -5
- package/HelperText/index.js +9 -4
- package/InputLang/index.d.ts +2 -5
- package/InputLang/index.js +13 -7
- package/InputNumber/index.d.ts +2 -5
- package/InputNumber/index.js +15 -12
- package/Label/index.d.ts +2 -0
- package/Label/index.js +12 -8
- package/Loading/index.js +5 -4
- package/Menu/index.js +18 -17
- package/Message/index.js +5 -4
- package/Modal/index.js +28 -26
- package/MultiBox/index.d.ts +2 -5
- package/MultiBox/index.js +13 -6
- package/Notification/index.js +3 -2
- package/OperateBtn/index.js +15 -12
- package/PageHeader/index.js +18 -18
- package/Pagination/index.js +10 -4
- package/ParauiProvider/index.js +1 -1
- package/PopConfirm/index.js +3 -2
- package/Popover/index.js +7 -4
- package/Progress/index.d.ts +2 -0
- package/Progress/index.js +13 -9
- package/Querying/index.js +6 -5
- package/README.md +30 -0
- package/Radio/index.js +22 -8
- package/RadioGroup/index.d.ts +2 -5
- package/RadioGroup/index.js +10 -7
- package/Search/index.js +13 -8
- package/Select/index.d.ts +2 -5
- package/Select/index.js +23 -20
- package/SelectInput/index.js +3 -2
- package/Selector/index.js +189 -81
- package/Selector/interface.d.ts +17 -7
- package/Selector/lang/en_US.d.ts +1 -0
- package/Selector/lang/zh_CN.d.ts +1 -0
- package/SelectorPicker/index.d.ts +2 -5
- package/SelectorPicker/index.js +20 -17
- package/SingleBox/index.d.ts +2 -5
- package/SingleBox/index.js +11 -6
- package/Slider/index.d.ts +4 -4
- package/Slider/index.js +9 -4
- package/Split/index.js +8 -7
- package/Stepper/index.js +7 -3
- package/Switch/index.js +10 -12
- package/Table/index.js +528 -300
- package/Table/interface.d.ts +45 -1
- package/Table/tableElement/index.d.ts +2 -2
- package/Table/util.d.ts +13 -1
- package/Tabs/index.js +7 -6
- package/Tag/index.js +12 -14
- package/TextField/index.d.ts +2 -5
- package/TextField/index.js +20 -18
- package/TimePicker/index.js +1 -0
- package/Timeline/index.js +13 -12
- package/Title/index.d.ts +30 -0
- package/Title/index.js +49 -0
- package/ToggleButton/index.js +13 -13
- package/Tooltip/index.js +59 -12
- package/Tooltip/interface.d.ts +2 -0
- package/Transfer/index.d.ts +6 -2
- package/Transfer/index.js +74 -37
- package/Transfer/lang/en_US.d.ts +2 -0
- package/Transfer/lang/zh_CN.d.ts +2 -0
- package/Tree/index.js +3 -2
- package/Tree/utils/tools.d.ts +0 -1
- package/Upload/ImgCrop/EasyCrop.d.ts +1 -1
- package/Upload/ImgCrop/constants.d.ts +1 -1
- package/Upload/ImgCrop/interface.d.ts +5 -0
- package/Upload/index.js +56 -45
- package/_verture/constant-bf34e6fa.js +11 -0
- package/_verture/{index-abfdd262.js → index-3136f653.js} +63 -31
- package/_verture/{index-5bb4b5d7.js → index-77832168.js} +30 -17
- package/_verture/{modalContext-59669f93.js → modalContext-f1a611ab.js} +0 -0
- package/index.d.ts +2 -0
- package/index.js +7 -5
- package/package.json +2 -1
package/AutoBox/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { useState, useRef, useEffect,
|
|
2
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import { useState, useRef, useEffect, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { Popover } from '../Popover/index.js';
|
|
5
|
-
import
|
|
5
|
+
import { createPortal } from 'react-dom';
|
|
6
6
|
import { UUID } from '@paraview/lib';
|
|
7
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
8
|
+
import More from '@para-ui/icons/More';
|
|
7
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
10
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
9
11
|
import '../Tooltip/index.js';
|
|
@@ -11,7 +13,117 @@ import 'rc-tooltip';
|
|
|
11
13
|
import 'rc-tooltip/lib/placements';
|
|
12
14
|
import 'clsx';
|
|
13
15
|
|
|
14
|
-
var
|
|
16
|
+
var Protal = function Protal(props) {
|
|
17
|
+
var children = props.children,
|
|
18
|
+
className = props.className,
|
|
19
|
+
anchorEl = props.anchorEl,
|
|
20
|
+
onClose = props.onClose;
|
|
21
|
+
|
|
22
|
+
var _useState = useState({}),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
styleCom = _useState2[0],
|
|
25
|
+
setStyleCom = _useState2[1];
|
|
26
|
+
|
|
27
|
+
var constData = useRef({
|
|
28
|
+
uuid: $prefixCls + '-protal-box-content-' + UUID()
|
|
29
|
+
});
|
|
30
|
+
var domRef = useRef();
|
|
31
|
+
var contentRef = useRef();
|
|
32
|
+
useEffect(function () {
|
|
33
|
+
handStyle();
|
|
34
|
+
window.addEventListener('click', clickFunc);
|
|
35
|
+
return function () {
|
|
36
|
+
domRef && domRef.current && domRef.current.remove();
|
|
37
|
+
window.removeEventListener('click', clickFunc);
|
|
38
|
+
};
|
|
39
|
+
}, []);
|
|
40
|
+
/**
|
|
41
|
+
* 查找元素
|
|
42
|
+
* @param el 当前元素
|
|
43
|
+
* @param selector 查找元素class
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
var closest = function closest(el, selector) {
|
|
47
|
+
var matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;
|
|
48
|
+
|
|
49
|
+
while (el) {
|
|
50
|
+
if (matchesSelector.call(el, selector)) {
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
el = el.parentElement;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return el;
|
|
58
|
+
};
|
|
59
|
+
/** 全局监听点击事件 */
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
var clickFunc = function clickFunc(e) {
|
|
63
|
+
if (!constData.current) return;
|
|
64
|
+
var bol = closest(e.target, '.' + constData.current.uuid); // 是否存在下拉当中
|
|
65
|
+
|
|
66
|
+
if (!bol) onClose && onClose();
|
|
67
|
+
};
|
|
68
|
+
/** 处理内容的定位样式 */
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
var handStyle = function handStyle() {
|
|
72
|
+
if (!anchorEl || !contentRef.current) return;
|
|
73
|
+
var posDomRect = anchorEl.getBoundingClientRect();
|
|
74
|
+
var contentDomRect = contentRef.current.getBoundingClientRect();
|
|
75
|
+
var json = {
|
|
76
|
+
opacity: 1,
|
|
77
|
+
left: posDomRect.left,
|
|
78
|
+
top: posDomRect.top + posDomRect.height
|
|
79
|
+
};
|
|
80
|
+
var winHeight = window.innerHeight;
|
|
81
|
+
var winWidth = window.innerWidth;
|
|
82
|
+
|
|
83
|
+
if (json.left + contentDomRect.width > winWidth) {
|
|
84
|
+
json.left = winWidth - contentDomRect.width - 8;
|
|
85
|
+
if (json.left < 0) json.left = 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (json.top + contentDomRect.height > winHeight) {
|
|
89
|
+
json.top = winHeight - contentDomRect.height - 8;
|
|
90
|
+
if (json.top < 0) json.top = 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
setStyleCom(json);
|
|
94
|
+
};
|
|
95
|
+
/** 处理className */
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
var handClass = function handClass() {
|
|
99
|
+
var str = $prefixCls + '-protal-box';
|
|
100
|
+
if (className) str += ' ' + className;
|
|
101
|
+
return str;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
var handContent = function handContent() {
|
|
105
|
+
return jsxs("div", Object.assign({
|
|
106
|
+
className: handClass(),
|
|
107
|
+
ref: domRef
|
|
108
|
+
}, {
|
|
109
|
+
children: [jsx("div", {
|
|
110
|
+
className: "protal-mask"
|
|
111
|
+
}), jsx("div", Object.assign({
|
|
112
|
+
className: 'protal-content ' + constData.current.uuid,
|
|
113
|
+
style: styleCom,
|
|
114
|
+
ref: contentRef
|
|
115
|
+
}, {
|
|
116
|
+
children: children
|
|
117
|
+
}))]
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
return jsx(Fragment, {
|
|
122
|
+
children: /*#__PURE__*/createPortal(handContent(), document.getElementsByTagName('body')[0])
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-auto-box {\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n}\n.paraui-v3-auto-box > .auto-box-more {\n display: inline-block;\n height: 100%;\n cursor: pointer;\n}\n\n.paraui-v3-auto-box-popover .auto-box-popover-content {\n display: flex;\n flex-direction: column;\n}\n\n.paraui-v3-protal-box {\n position: fixed;\n z-index: 1500;\n inset: 0px;\n}\n.paraui-v3-protal-box .protal-mask {\n z-index: -1;\n position: fixed;\n inset: 0px;\n background-color: transparent;\n}\n.paraui-v3-protal-box .protal-content {\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n background-color: white;\n outline: 0;\n position: absolute;\n max-width: calc(100% - 32px);\n min-width: 16px;\n max-height: calc(100% - 32px);\n min-height: 16px;\n overflow-x: hidden;\n overflow-y: auto;\n opacity: 0;\n transform: none;\n transition: opacity 243ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 162ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}";
|
|
15
127
|
styleInject(css_248z);
|
|
16
128
|
|
|
17
129
|
var AutoBox = function AutoBox(props) {
|
|
@@ -45,15 +157,9 @@ var AutoBox = function AutoBox(props) {
|
|
|
45
157
|
setOpenMoreCom = _useState6[1]; // 显示更多
|
|
46
158
|
|
|
47
159
|
|
|
48
|
-
var _useState7 = useState(
|
|
49
|
-
_useState8 = _slicedToArray(_useState7,
|
|
50
|
-
|
|
51
|
-
setAnchorElCom = _useState8[1]; // 更多定位元素
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var _useState9 = useState({}),
|
|
55
|
-
_useState10 = _slicedToArray(_useState9, 1),
|
|
56
|
-
timer = _useState10[0];
|
|
160
|
+
var _useState7 = useState({}),
|
|
161
|
+
_useState8 = _slicedToArray(_useState7, 1),
|
|
162
|
+
timer = _useState8[0];
|
|
57
163
|
|
|
58
164
|
var posDom = useRef(); // 监听打开更多
|
|
59
165
|
|
|
@@ -61,11 +167,7 @@ var AutoBox = function AutoBox(props) {
|
|
|
61
167
|
if (props.openMore !== undefined) {
|
|
62
168
|
setOpenMoreCom(props.openMore);
|
|
63
169
|
}
|
|
64
|
-
}, [props.openMore]);
|
|
65
|
-
|
|
66
|
-
useEffect(function () {
|
|
67
|
-
if (anchorEl) setAnchorElCom(anchorEl);
|
|
68
|
-
}, [anchorEl]);
|
|
170
|
+
}, [props.openMore]);
|
|
69
171
|
useEffect(function () {
|
|
70
172
|
if (props.showNum !== undefined) return;
|
|
71
173
|
changeSize();
|
|
@@ -87,17 +189,17 @@ var AutoBox = function AutoBox(props) {
|
|
|
87
189
|
} else {
|
|
88
190
|
onShowMore && onShowMore(false);
|
|
89
191
|
}
|
|
90
|
-
}, [list, morePos, onShowMore]);
|
|
192
|
+
}, [list, morePos, onShowMore]);
|
|
193
|
+
|
|
194
|
+
var onVisibleChange = function onVisibleChange(bol) {
|
|
195
|
+
if (bol) return setOpenMoreCom(true);
|
|
196
|
+
closeMore();
|
|
197
|
+
}; // 关闭显示更多
|
|
198
|
+
|
|
91
199
|
|
|
92
200
|
var closeMore = function closeMore() {
|
|
93
201
|
setOpenMoreCom(false);
|
|
94
202
|
onCloseMore && onCloseMore();
|
|
95
|
-
}; // 点击显示更多
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var clickMore = function clickMore(e) {
|
|
99
|
-
setOpenMoreCom(true);
|
|
100
|
-
setAnchorElCom(posDom.current);
|
|
101
203
|
}; // 关闭显示更多
|
|
102
204
|
|
|
103
205
|
|
|
@@ -135,7 +237,7 @@ var AutoBox = function AutoBox(props) {
|
|
|
135
237
|
|
|
136
238
|
|
|
137
239
|
var handClass = function handClass() {
|
|
138
|
-
var str = '
|
|
240
|
+
var str = $prefixCls + '-auto-box';
|
|
139
241
|
if (classOne) str += ' ' + classOne;
|
|
140
242
|
if (className) str += ' ' + className;
|
|
141
243
|
return str;
|
|
@@ -143,60 +245,70 @@ var AutoBox = function AutoBox(props) {
|
|
|
143
245
|
|
|
144
246
|
|
|
145
247
|
var handClassPopover = function handClassPopover() {
|
|
146
|
-
var str = '
|
|
248
|
+
var str = $prefixCls + '-auto-box-popover';
|
|
147
249
|
if (popoverClassName) str += ' ' + popoverClassName;
|
|
148
250
|
return str;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
open: openMoreCom,
|
|
156
|
-
anchorEl: anchorElCom,
|
|
157
|
-
onClose: closeMore,
|
|
158
|
-
anchorOrigin: {
|
|
159
|
-
vertical: 'bottom',
|
|
160
|
-
horizontal: 'left'
|
|
161
|
-
},
|
|
162
|
-
transformOrigin: {
|
|
163
|
-
vertical: 'top',
|
|
164
|
-
horizontal: 'left'
|
|
165
|
-
},
|
|
166
|
-
className: handClassPopover()
|
|
251
|
+
}; // 处理更多内容
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
var handMoreDom = function handMoreDom() {
|
|
255
|
+
return jsx("div", Object.assign({
|
|
256
|
+
className: "auto-box-popover-content"
|
|
167
257
|
}, {
|
|
168
|
-
children:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
children: item
|
|
175
|
-
}, index);
|
|
176
|
-
})
|
|
177
|
-
}))
|
|
258
|
+
children: list && list.map(function (item, index) {
|
|
259
|
+
if (morePos !== null && morePos > index) return null;
|
|
260
|
+
return jsx(Fragment$1, {
|
|
261
|
+
children: item
|
|
262
|
+
}, index);
|
|
263
|
+
})
|
|
178
264
|
}));
|
|
179
|
-
}
|
|
265
|
+
};
|
|
266
|
+
/** 处理更多按钮 */
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
var handMoreBtn = function handMoreBtn() {
|
|
270
|
+
if (morePos !== null && list.length > morePos && !hideMore) {
|
|
271
|
+
return jsx(Popover, Object.assign({
|
|
272
|
+
open: openMoreCom,
|
|
273
|
+
content: handMoreDom(),
|
|
274
|
+
overlayClassName: handClassPopover(),
|
|
275
|
+
placement: "bottomLeft",
|
|
276
|
+
onVisibleChange: onVisibleChange
|
|
277
|
+
}, {
|
|
278
|
+
children: jsx("div", Object.assign({
|
|
279
|
+
className: "auto-box-more",
|
|
280
|
+
ref: posDom
|
|
281
|
+
}, {
|
|
282
|
+
children: moreCustomize ? moreCustomize : jsx(More, {})
|
|
283
|
+
}))
|
|
284
|
+
}));
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
/** 自定义更多按钮 */
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
var handCustomDialog = function handCustomDialog() {
|
|
291
|
+
if (anchorEl && openMoreCom) {
|
|
292
|
+
return jsx(Protal, Object.assign({
|
|
293
|
+
className: handClassPopover(),
|
|
294
|
+
anchorEl: anchorEl,
|
|
295
|
+
onClose: closeMore
|
|
296
|
+
}, {
|
|
297
|
+
children: handMoreDom()
|
|
298
|
+
}));
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
|
|
180
302
|
return jsxs("div", Object.assign({
|
|
181
303
|
className: handClass(),
|
|
182
304
|
style: style
|
|
183
305
|
}, {
|
|
184
306
|
children: [list.map(function (item, index) {
|
|
185
307
|
if (morePos !== null && morePos <= index) return null;
|
|
186
|
-
return jsx(Fragment, {
|
|
308
|
+
return jsx(Fragment$1, {
|
|
187
309
|
children: item
|
|
188
310
|
}, index);
|
|
189
|
-
}),
|
|
190
|
-
if (morePos !== null && list.length > morePos && !hideMore) {
|
|
191
|
-
return jsx("div", Object.assign({
|
|
192
|
-
className: "auto-box-more",
|
|
193
|
-
ref: posDom,
|
|
194
|
-
onClick: clickMore
|
|
195
|
-
}, {
|
|
196
|
-
children: moreCustomize ? moreCustomize : jsx(More, {})
|
|
197
|
-
}));
|
|
198
|
-
}
|
|
199
|
-
}(), MoreMemo]
|
|
311
|
+
}), handMoreBtn(), handCustomDialog()]
|
|
200
312
|
}));
|
|
201
313
|
};
|
|
202
314
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2022/8/10 10:32 AM
|
|
4
|
+
* @description 全局弹窗-自定义用的
|
|
5
|
+
*/
|
|
6
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
export interface ProtalBoxProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
/** 定位元素 */
|
|
10
|
+
anchorEl?: any;
|
|
11
|
+
/** 关闭事件 */
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export declare const Protal: FunctionComponent<ProtalBoxProps>;
|
|
17
|
+
export default Protal;
|
package/AutoTips/index.js
CHANGED
|
@@ -2,13 +2,14 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useEffect } from 'react';
|
|
4
4
|
import { Tooltip } from '../Tooltip/index.js';
|
|
5
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
5
6
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
6
7
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
7
8
|
import 'rc-tooltip';
|
|
8
9
|
import 'rc-tooltip/lib/placements';
|
|
9
10
|
import 'clsx';
|
|
10
11
|
|
|
11
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/11/1 20:28\n* @description 文字隐藏...\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-auto-tips {\n max-width: 100%;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.paraui-auto-tips > .auto-tips-content {\n display: inline;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.paraui-auto-tips-tooltip > div {\n max-height: calc(100vh - 25px);\n overflow: auto;\n}";
|
|
12
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/11/1 20:28\n* @description 文字隐藏...\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-auto-tips {\n max-width: 100%;\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.paraui-v3-auto-tips > .auto-tips-content {\n display: inline;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.paraui-v3-auto-tips-tooltip > div {\n max-height: calc(100vh - 25px);\n overflow: auto;\n}";
|
|
12
13
|
styleInject(css_248z);
|
|
13
14
|
|
|
14
15
|
var AutoTips = function AutoTips(props) {
|
|
@@ -53,7 +54,7 @@ var AutoTips = function AutoTips(props) {
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
var handClass = function handClass() {
|
|
56
|
-
var str = '
|
|
57
|
+
var str = $prefixCls + '-auto-tips';
|
|
57
58
|
if (className) str += ' ' + className;
|
|
58
59
|
return str;
|
|
59
60
|
};
|
|
@@ -70,7 +71,7 @@ var AutoTips = function AutoTips(props) {
|
|
|
70
71
|
placement: placement,
|
|
71
72
|
interactive: interactive,
|
|
72
73
|
boundariesElement: 'viewport',
|
|
73
|
-
className: '
|
|
74
|
+
className: $prefixCls + '-auto-tips-tooltip'
|
|
74
75
|
}, {
|
|
75
76
|
children: jsx("div", Object.assign({
|
|
76
77
|
className: "auto-tips-content"
|
package/Breadcrumbs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { Popover } from '../Popover/index.js';
|
|
|
6
6
|
import AutoTips from '../AutoTips/index.js';
|
|
7
7
|
import More from '@para-ui/icons/More';
|
|
8
8
|
import { UUID } from '@paraview/lib';
|
|
9
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
9
10
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
11
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
11
12
|
import '../Tooltip/index.js';
|
|
@@ -13,7 +14,7 @@ import 'rc-tooltip';
|
|
|
13
14
|
import 'rc-tooltip/lib/placements';
|
|
14
15
|
import 'clsx';
|
|
15
16
|
|
|
16
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n * @author linhd\n * @date 2021年10月25日 14:58:12\n * @description 面包屑\n */\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-breadcrumbs {\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n line-height: 0;\n height: 17px;\n}\n.paraui-breadcrumbs.paraui-breadcrumbs-shrink {\n white-space: nowrap;\n}\n.paraui-breadcrumbs > div {\n display: inline-block;\n line-height: 17px;\n vertical-align: middle;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-breadcrumbs > div svg {\n font-size: 14px;\n vertical-align: middle;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-breadcrumbs > div span {\n display: inline-block;\n line-height: 0;\n vertical-align: middle;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-breadcrumbs > div .
|
|
17
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n * @author linhd\n * @date 2021年10月25日 14:58:12\n * @description 面包屑\n */\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-breadcrumbs {\n display: inline-block;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n line-height: 0;\n height: 17px;\n}\n.paraui-v3-breadcrumbs.paraui-v3-breadcrumbs-shrink {\n white-space: nowrap;\n}\n.paraui-v3-breadcrumbs > div {\n display: inline-block;\n line-height: 17px;\n vertical-align: middle;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-breadcrumbs > div svg {\n font-size: 14px;\n vertical-align: middle;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-breadcrumbs > div span {\n display: inline-block;\n line-height: 0;\n vertical-align: middle;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-breadcrumbs > div .breadcrumbs-auto-tips {\n line-height: 0;\n}\n.paraui-v3-breadcrumbs > div .breadcrumbs-auto-tips .auto-tips-content {\n line-height: 17px;\n}\n.paraui-v3-breadcrumbs > div .breadcrumbs-auto-tips span {\n line-height: 17px;\n}\n.paraui-v3-breadcrumbs > .breadcrumbs-separator {\n user-select: none;\n margin: 0 8px;\n}\n.paraui-v3-breadcrumbs > .breadcrumbs-item-click {\n cursor: pointer;\n}\n.paraui-v3-breadcrumbs > .breadcrumbs-item-click:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-breadcrumbs > .breadcrumbs-item-click:hover svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-breadcrumbs > .breadcrumbs-item-click:hover span {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-breadcrumbs > .breadcrumbs-item-disabled {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-breadcrumbs > .more-breadcrumbs {\n cursor: pointer;\n}\n.paraui-v3-breadcrumbs > .current-breadcrumbs {\n color: rgba(46, 55, 67, 0.7);\n font-weight: 700;\n}\n\n.paraui-v3-breadcrumbs-popover > .component-popover-content > .component-popover-inner {\n display: flex;\n align-items: center;\n height: 36px;\n line-height: 0;\n padding: 0 12px;\n}";
|
|
17
18
|
styleInject(css_248z);
|
|
18
19
|
|
|
19
20
|
var Breadcrumbs = function Breadcrumbs(props) {
|
|
@@ -29,7 +30,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
29
30
|
onClickItem = props.onClickItem,
|
|
30
31
|
style = props.style;
|
|
31
32
|
|
|
32
|
-
var _useState = useState('breadcrumbs-' + UUID()),
|
|
33
|
+
var _useState = useState($prefixCls + '-breadcrumbs-' + UUID()),
|
|
33
34
|
_useState2 = _slicedToArray(_useState, 1),
|
|
34
35
|
classStr = _useState2[0];
|
|
35
36
|
|
|
@@ -113,7 +114,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
113
114
|
|
|
114
115
|
|
|
115
116
|
var popoverHandClass = function popoverHandClass() {
|
|
116
|
-
var str = '
|
|
117
|
+
var str = $prefixCls + '-breadcrumbs-popover';
|
|
117
118
|
if (popoverClassName) str += ' ' + popoverClassName;
|
|
118
119
|
return str;
|
|
119
120
|
}; // 关闭弹出菜单
|
|
@@ -125,8 +126,8 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
125
126
|
|
|
126
127
|
|
|
127
128
|
var handClass = function handClass() {
|
|
128
|
-
var str = '
|
|
129
|
-
if (isShrink) str +=
|
|
129
|
+
var str = $prefixCls + '-breadcrumbs ' + classStr;
|
|
130
|
+
if (isShrink) str += " ".concat($prefixCls, "-breadcrumbs-shrink");
|
|
130
131
|
if (className) str += ' ' + className;
|
|
131
132
|
return str;
|
|
132
133
|
};
|
|
@@ -198,9 +199,11 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
198
199
|
onClick: handleClick(item),
|
|
199
200
|
className: handClassItem(item, index, listCom)
|
|
200
201
|
}, {
|
|
201
|
-
children: jsx(AutoTips, {
|
|
202
|
+
children: jsx(AutoTips, Object.assign({
|
|
203
|
+
className: 'breadcrumbs-auto-tips'
|
|
204
|
+
}, {
|
|
202
205
|
children: item.label
|
|
203
|
-
})
|
|
206
|
+
}))
|
|
204
207
|
})), showSeparator && jsx("div", Object.assign({
|
|
205
208
|
className: "breadcrumbs-separator"
|
|
206
209
|
}, {
|
package/Button/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
|
8
8
|
import Forbid from '@para-ui/icons/Forbid';
|
|
9
9
|
import { Tooltip } from '../Tooltip/index.js';
|
|
10
10
|
import Down from '@para-ui/icons/Down';
|
|
11
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
11
12
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
12
13
|
import { Dropdown } from '../Dropdown/index.js';
|
|
13
14
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
|
|
@@ -29,7 +30,7 @@ var localeJson = {
|
|
|
29
30
|
en: en
|
|
30
31
|
};
|
|
31
32
|
|
|
32
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/21 下午5:16\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n@keyframes loadingSpin {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-button {\n border: 0;\n cursor: pointer;\n display: inline-flex;\n outline: 0;\n position: relative;\n align-items: center;\n user-select: none;\n vertical-align: middle;\n justify-content: center;\n text-decoration: none;\n background-color: transparent;\n appearance: none;\n -webkit-tap-highlight-color: transparent;\n padding: 0 16px;\n line-height: 1.5715;\n border-radius: 4px;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n white-space: nowrap;\n color: rgb(255, 255, 255);\n box-sizing: border-box;\n letter-spacing: 0.02857em;\n transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.paraui-button-label {\n width: 100%;\n display: inherit;\n align-items: inherit;\n justify-content: inherit;\n}\n.paraui-button-icon {\n display: inherit;\n margin-right: 4px;\n}\n.paraui-button-icon svg {\n color: inherit;\n font-size: 16px;\n}\n.paraui-button-icon-end {\n margin-right: 0;\n margin-left: 4px;\n}\n.paraui-button-icon-loading {\n animation: loadingSpin 1s infinite linear;\n}\n.paraui-button-loading {\n pointer-events: none;\n}\n.paraui-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(54, 102, 214);\n box-shadow: none;\n}\n.paraui-button-contained:hover {\n background-color: rgba(54, 102, 214, 0.8);\n box-shadow: none;\n}\n.paraui-button-contained.paraui-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-button-contained.paraui-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-button-contained[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-button-contained[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-button-contained.paraui-button-dangerous {\n background-color: rgb(235, 96, 84);\n}\n.paraui-button-contained.paraui-button-dangerous:hover {\n background-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-button-outlined {\n color: rgba(46, 55, 67, 0.7);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n}\n.paraui-button-outlined:hover {\n color: rgb(54, 102, 214);\n border-color: rgba(54, 102, 214, 0.2);\n background-color: rgb(255, 255, 255);\n box-shadow: none;\n}\n.paraui-button-outlined.paraui-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-button-outlined.paraui-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-button-outlined[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-button-outlined[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-button-outlined.paraui-button-dangerous {\n color: rgb(235, 96, 84);\n border-color: rgb(235, 96, 84);\n}\n.paraui-button-outlined.paraui-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n border-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-button-text {\n color: rgba(46, 55, 67, 0.7);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n color: rgb(54, 102, 214);\n background-color: transparent;\n border: none;\n}\n.paraui-button-text:hover {\n color: rgba(54, 102, 214, 0.8);\n background-color: transparent;\n box-shadow: none;\n}\n.paraui-button-text.paraui-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-button-text.paraui-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-button-text[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: transparent;\n border: none;\n}\n.paraui-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-button-text.paraui-button-dangerous {\n color: rgb(235, 96, 84);\n}\n.paraui-button-text.paraui-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n}\n.paraui-button-large {\n height: 36px;\n}\n.paraui-button-medium {\n height: 32px;\n}\n.paraui-button-small {\n height: 28px;\n}\n.paraui-button--disabled {\n display: inline-block;\n}\n\n.paraui-icon-button {\n flex: 0 0 auto;\n overflow: visible;\n text-align: center;\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n padding: 0;\n border-radius: 4px;\n}\n.paraui-icon-button-loading {\n pointer-events: none;\n}\n.paraui-icon-button-loading .loading-icon {\n display: inline-flex;\n animation: loadingSpin 1s infinite linear;\n}\n.paraui-icon-button .paraui-icon {\n color: inherit;\n font-size: 16px;\n}\n.paraui-icon-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(54, 102, 214);\n box-shadow: none;\n}\n.paraui-icon-button-contained:hover {\n background-color: rgba(54, 102, 214, 0.8);\n box-shadow: none;\n}\n.paraui-icon-button-contained.paraui-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-icon-button-contained.paraui-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-icon-button-contained[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-icon-button-contained[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-icon-button-contained.paraui-icon-button-dangerous {\n background-color: rgb(235, 96, 84);\n}\n.paraui-icon-button-contained.paraui-icon-button-dangerous:hover {\n background-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-icon-button-outlined {\n color: rgba(46, 55, 67, 0.7);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n}\n.paraui-icon-button-outlined:hover {\n color: rgb(54, 102, 214);\n border-color: rgba(54, 102, 214, 0.2);\n box-shadow: none;\n background-color: rgb(255, 255, 255);\n}\n.paraui-icon-button-outlined.paraui-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-icon-button-outlined.paraui-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-icon-button-outlined[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n box-shadow: none;\n cursor: default;\n pointer-events: none;\n}\n.paraui-icon-button-outlined[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-icon-button-outlined.paraui-icon-button-dangerous {\n color: rgb(235, 96, 84);\n border-color: rgb(235, 96, 84);\n}\n.paraui-icon-button-outlined.paraui-icon-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n border-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-icon-button-text {\n color: rgb(54, 102, 214);\n}\n.paraui-icon-button-text:hover {\n color: rgba(54, 102, 214, 0.8);\n background-color: transparent;\n}\n.paraui-icon-button-text.paraui-button-link-disabled {\n pointer-events: none;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-icon-button-text.paraui-button-link-disabled:hover {\n background-color: transparent;\n}\n.paraui-icon-button-text[disabled] {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-icon-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-icon-button-text.paraui-icon-button-dangerous {\n color: rgb(235, 96, 84);\n}\n.paraui-icon-button-text.paraui-icon-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n}\n.paraui-icon-button-text.paraui-icon-button-large {\n width: auto;\n height: auto;\n}\n.paraui-icon-button-text.paraui-icon-button-large svg {\n font-size: 28px;\n}\n.paraui-icon-button-text.paraui-icon-button-medium {\n width: auto;\n height: auto;\n}\n.paraui-icon-button-text.paraui-icon-button-medium svg {\n font-size: 24px;\n}\n.paraui-icon-button-text.paraui-icon-button-small {\n width: auto;\n height: auto;\n}\n.paraui-icon-button-text.paraui-icon-button-small svg {\n font-size: 20px;\n}\n.paraui-icon-button-large {\n width: 36px;\n height: 36px;\n}\n.paraui-icon-button-medium {\n width: 32px;\n height: 32px;\n}\n.paraui-icon-button-small {\n width: 28px;\n height: 28px;\n}\n\n.paraui-button-split {\n display: inline-block;\n}\n.paraui-button-split .paraui-button-split--active {\n color: rgb(54, 102, 214);\n box-shadow: none;\n}\n.paraui-button-split-list {\n padding: 8px 0;\n border-radius: 4px;\n background-color: rgb(255, 255, 255);\n}\n.paraui-button-split-list ul .split-li {\n min-width: 140px;\n padding: 11px 12px;\n color: rgb(46, 55, 67);\n font-size: 14px;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.3s, color 0.3s;\n}\n.paraui-button-split-list ul .split-li:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-button-split-list ul .split-li.split-li--active {\n color: rgb(54, 102, 214);\n}\n.paraui-button-split-list ul .split-li.split-li--active:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-button-split-list ul .split-li.split-li--disabled {\n color: rgba(46, 55, 67, 0.4);\n cursor: not-allowed;\n}\n.paraui-button-split-list ul .split-li.split-li--disabled:hover {\n background-color: rgb(255, 255, 255);\n}\n.paraui-button-split-list ul .split-li-group:not(:first-child) {\n position: relative;\n margin-top: 16px;\n}\n.paraui-button-split-list ul .split-li-group:not(:first-child):before {\n content: \"\";\n position: absolute;\n top: -8px;\n left: 8px;\n right: 8px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n}";
|
|
33
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/21 下午5:16\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n@keyframes buttonLoadingSpin {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v3-button {\n border: 0;\n cursor: pointer;\n display: inline-flex;\n outline: 0;\n position: relative;\n align-items: center;\n user-select: none;\n vertical-align: middle;\n justify-content: center;\n text-decoration: none;\n background-color: transparent;\n appearance: none;\n -webkit-tap-highlight-color: transparent;\n padding: 0 16px;\n line-height: 1.5715;\n border-radius: 4px;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n white-space: nowrap;\n color: rgb(255, 255, 255);\n box-sizing: border-box;\n letter-spacing: 0.02857em;\n transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.paraui-v3-button .button-label {\n width: 100%;\n display: inherit;\n align-items: inherit;\n justify-content: inherit;\n}\n.paraui-v3-button .button-icon {\n display: inherit;\n margin-right: 4px;\n}\n.paraui-v3-button .button-icon svg {\n color: inherit;\n font-size: 16px;\n}\n.paraui-v3-button .button-icon-end {\n margin-right: 0;\n margin-left: 4px;\n}\n.paraui-v3-button .button-icon-loading {\n animation: buttonLoadingSpin 1s infinite linear;\n}\n.paraui-v3-button-loading {\n pointer-events: none;\n}\n.paraui-v3-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(54, 102, 214);\n}\n.paraui-v3-button-contained:hover {\n background-color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-button-contained.paraui-v3-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-button-contained.paraui-v3-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-button-contained[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-button-contained[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-button-contained.paraui-v3-button-dangerous {\n background-color: rgb(235, 96, 84);\n}\n.paraui-v3-button-contained.paraui-v3-button-dangerous:hover {\n background-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-v3-button-outlined {\n color: rgba(46, 55, 67, 0.7);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-button-outlined:hover {\n color: rgb(54, 102, 214);\n border-color: rgba(54, 102, 214, 0.2);\n background-color: rgb(255, 255, 255);\n}\n.paraui-v3-button-outlined.paraui-v3-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-button-outlined.paraui-v3-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-button-outlined[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-button-outlined[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-button-outlined.paraui-v3-button-dangerous {\n color: rgb(235, 96, 84);\n border-color: rgb(235, 96, 84);\n}\n.paraui-v3-button-outlined.paraui-v3-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n border-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-v3-button-text {\n color: rgb(54, 102, 214);\n background-color: transparent;\n border: none;\n}\n.paraui-v3-button-text:hover {\n color: rgba(54, 102, 214, 0.8);\n background-color: transparent;\n}\n.paraui-v3-button-text.paraui-v3-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-button-text.paraui-v3-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-button-text[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: transparent;\n border: none;\n}\n.paraui-v3-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v3-button-text.paraui-v3-button-dangerous {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-button-text.paraui-v3-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n}\n.paraui-v3-button-large {\n height: 36px;\n}\n.paraui-v3-button-medium {\n height: 32px;\n}\n.paraui-v3-button-small {\n height: 28px;\n}\n.paraui-v3-button--disabled {\n display: inline-block;\n}\n\n.paraui-v3-icon-button {\n flex: 0 0 auto;\n overflow: visible;\n text-align: center;\n transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n padding: 0;\n border-radius: 4px;\n}\n.paraui-v3-icon-button-loading {\n pointer-events: none;\n}\n.paraui-v3-icon-button-loading .button-loading-icon {\n display: inline-flex;\n animation: buttonLoadingSpin 1s infinite linear;\n}\n.paraui-v3-icon-button svg {\n color: inherit;\n font-size: 16px;\n}\n.paraui-v3-icon-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(54, 102, 214);\n}\n.paraui-v3-icon-button-contained:hover {\n background-color: rgba(54, 102, 214, 0.8);\n box-shadow: none;\n}\n.paraui-v3-icon-button-contained.paraui-v3-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-icon-button-contained.paraui-v3-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-icon-button-contained[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-icon-button-contained[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-icon-button-contained.paraui-v3-icon-button-dangerous {\n background-color: rgb(235, 96, 84);\n}\n.paraui-v3-icon-button-contained.paraui-v3-icon-button-dangerous:hover {\n background-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-v3-icon-button-outlined {\n color: rgba(46, 55, 67, 0.7);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-icon-button-outlined:hover {\n color: rgb(54, 102, 214);\n border-color: rgba(54, 102, 214, 0.2);\n box-shadow: none;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v3-icon-button-outlined.paraui-v3-button-link-disabled {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-icon-button-outlined.paraui-v3-button-link-disabled:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-icon-button-outlined[disabled] {\n color: rgba(46, 55, 67, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border: 1px solid rgba(171, 176, 185, 0.4);\n cursor: default;\n pointer-events: none;\n}\n.paraui-v3-icon-button-outlined[disabled]:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-icon-button-outlined.paraui-v3-icon-button-dangerous {\n color: rgb(235, 96, 84);\n border-color: rgb(235, 96, 84);\n}\n.paraui-v3-icon-button-outlined.paraui-v3-icon-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n border-color: rgba(235, 96, 84, 0.8);\n}\n.paraui-v3-icon-button-text {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-icon-button-text:hover {\n color: rgba(54, 102, 214, 0.8);\n background-color: transparent;\n}\n.paraui-v3-icon-button-text.paraui-v3-button-link-disabled {\n pointer-events: none;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-icon-button-text.paraui-v3-button-link-disabled:hover {\n background-color: transparent;\n}\n.paraui-v3-icon-button-text[disabled] {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-icon-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-dangerous {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-dangerous:hover {\n color: rgba(235, 96, 84, 0.8);\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-large {\n width: auto;\n height: auto;\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-large svg {\n font-size: 28px;\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-medium {\n width: auto;\n height: auto;\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-medium svg {\n font-size: 24px;\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-small {\n width: auto;\n height: auto;\n}\n.paraui-v3-icon-button-text.paraui-v3-icon-button-small svg {\n font-size: 20px;\n}\n.paraui-v3-icon-button-large {\n width: 36px;\n height: 36px;\n}\n.paraui-v3-icon-button-medium {\n width: 32px;\n height: 32px;\n}\n.paraui-v3-icon-button-small {\n width: 28px;\n height: 28px;\n}\n\n.paraui-v3-button-split {\n display: inline-block;\n}\n.paraui-v3-button-split .paraui-v3-button-split--active {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-button-split-list {\n padding: 8px 0;\n border-radius: 4px;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v3-button-split-list ul .split-li {\n min-width: 140px;\n padding: 11px 12px;\n color: rgb(46, 55, 67);\n font-size: 14px;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.3s, color 0.3s;\n}\n.paraui-v3-button-split-list ul .split-li:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-button-split-list ul .split-li.split-li--active {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-button-split-list ul .split-li.split-li--active:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-button-split-list ul .split-li.split-li--disabled {\n color: rgba(46, 55, 67, 0.4);\n cursor: not-allowed;\n}\n.paraui-v3-button-split-list ul .split-li.split-li--disabled:hover {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v3-button-split-list ul .split-li-group:not(:first-child) {\n position: relative;\n margin-top: 16px;\n}\n.paraui-v3-button-split-list ul .split-li-group:not(:first-child):before {\n content: \"\";\n position: absolute;\n top: -8px;\n left: 8px;\n right: 8px;\n border-top: 1px solid rgba(171, 176, 185, 0.2);\n}";
|
|
33
34
|
styleInject(css_248z);
|
|
34
35
|
|
|
35
36
|
function SplitButton(props) {
|
|
@@ -65,7 +66,7 @@ function SplitButton(props) {
|
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
setSelectedIndex(index);
|
|
68
|
-
(_a = btnRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(
|
|
69
|
+
(_a = btnRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove("".concat($prefixCls, "-button-split--active"));
|
|
69
70
|
onClick === null || onClick === void 0 ? void 0 : onClick(opt, event);
|
|
70
71
|
}; //渲染按钮列表
|
|
71
72
|
|
|
@@ -91,7 +92,7 @@ function SplitButton(props) {
|
|
|
91
92
|
};
|
|
92
93
|
|
|
93
94
|
return jsx("div", Object.assign({
|
|
94
|
-
className:
|
|
95
|
+
className: "".concat($prefixCls, "-button-split-list")
|
|
95
96
|
}, {
|
|
96
97
|
children: jsx("ul", {
|
|
97
98
|
children: options.map(function (opt, index) {
|
|
@@ -140,7 +141,7 @@ function SplitButton(props) {
|
|
|
140
141
|
};
|
|
141
142
|
|
|
142
143
|
return jsx("div", Object.assign({
|
|
143
|
-
className: clsx(
|
|
144
|
+
className: clsx("".concat($prefixCls, "-button-split"), className),
|
|
144
145
|
style: style
|
|
145
146
|
}, {
|
|
146
147
|
children: jsx(Dropdown, Object.assign({
|
|
@@ -182,19 +183,19 @@ var InternalButton = function InternalButton(props) {
|
|
|
182
183
|
var isLinkBtn = ('href' in props); //cls
|
|
183
184
|
|
|
184
185
|
var makeCls = function makeCls() {
|
|
185
|
-
return clsx(
|
|
186
|
+
return clsx("".concat($prefixCls, "-button"), className, "".concat($prefixCls, "-button-").concat(variant), "".concat($prefixCls, "-button-").concat(size), hasLoading && "".concat($prefixCls, "-button-loading"), danger && !disabled && "".concat($prefixCls, "-button-dangerous"), isLinkBtn && "".concat($prefixCls, "-button-link"), isLinkBtn && disabled && "".concat($prefixCls, "-button-link-disabled"));
|
|
186
187
|
}; //渲染按钮图标
|
|
187
188
|
|
|
188
189
|
|
|
189
190
|
var renderBtnIcon = function renderBtnIcon(pos) {
|
|
190
191
|
if (!hasLoading) {
|
|
191
192
|
if (pos === 'start' && startIcon) return jsx("span", Object.assign({
|
|
192
|
-
className: '
|
|
193
|
+
className: 'button-icon'
|
|
193
194
|
}, {
|
|
194
195
|
children: startIcon
|
|
195
196
|
}));
|
|
196
197
|
if (pos === 'end' && endIcon) return jsx("span", Object.assign({
|
|
197
|
-
className: '
|
|
198
|
+
className: 'button-icon button-icon-end'
|
|
198
199
|
}, {
|
|
199
200
|
children: endIcon
|
|
200
201
|
}));
|
|
@@ -209,7 +210,7 @@ var InternalButton = function InternalButton(props) {
|
|
|
209
210
|
}
|
|
210
211
|
|
|
211
212
|
if (pos === 'start') return jsx("span", Object.assign({
|
|
212
|
-
className: '
|
|
213
|
+
className: 'button-icon button-icon-loading'
|
|
213
214
|
}, {
|
|
214
215
|
children: jsx(LoadingOutlined, {})
|
|
215
216
|
}));
|
|
@@ -243,7 +244,7 @@ var InternalButton = function InternalButton(props) {
|
|
|
243
244
|
className: makeCls()
|
|
244
245
|
}, {
|
|
245
246
|
children: [renderBtnIcon('start'), children && jsx("span", Object.assign({
|
|
246
|
-
className: '
|
|
247
|
+
className: 'button-label'
|
|
247
248
|
}, {
|
|
248
249
|
children: children
|
|
249
250
|
})), renderBtnIcon('end')]
|
|
@@ -256,7 +257,7 @@ var InternalButton = function InternalButton(props) {
|
|
|
256
257
|
className: makeCls()
|
|
257
258
|
}, {
|
|
258
259
|
children: [renderBtnIcon('start'), children && jsx("span", Object.assign({
|
|
259
|
-
className: '
|
|
260
|
+
className: 'button-label'
|
|
260
261
|
}, {
|
|
261
262
|
children: children
|
|
262
263
|
})), renderBtnIcon('end')]
|
|
@@ -270,7 +271,7 @@ var InternalButton = function InternalButton(props) {
|
|
|
270
271
|
title: generateTooltipTitle()
|
|
271
272
|
}, {
|
|
272
273
|
children: jsx("span", Object.assign({
|
|
273
|
-
className:
|
|
274
|
+
className: "".concat($prefixCls, "-button--disabled")
|
|
274
275
|
}, {
|
|
275
276
|
children: renderButton()
|
|
276
277
|
}))
|
|
@@ -306,7 +307,7 @@ var IconButton = function IconButton(props) {
|
|
|
306
307
|
var isLinkBtn = ('href' in props); //cls
|
|
307
308
|
|
|
308
309
|
var makeCls = function makeCls() {
|
|
309
|
-
return clsx(
|
|
310
|
+
return clsx("".concat($prefixCls, "-button ").concat($prefixCls, "-icon-button"), className, "".concat($prefixCls, "-icon-button-").concat(variant), "".concat($prefixCls, "-icon-button-").concat(size), hasLoading && "".concat($prefixCls, "-icon-button-loading"), danger && !disabled && "".concat($prefixCls, "-icon-button-dangerous"), isLinkBtn && "".concat($prefixCls, "-button-link"), isLinkBtn && disabled && "".concat($prefixCls, "-button-link-disabled"));
|
|
310
311
|
}; //tooltip title
|
|
311
312
|
|
|
312
313
|
|
|
@@ -339,7 +340,7 @@ var IconButton = function IconButton(props) {
|
|
|
339
340
|
}
|
|
340
341
|
|
|
341
342
|
return jsx("span", Object.assign({
|
|
342
|
-
className: 'loading-icon'
|
|
343
|
+
className: 'button-loading-icon'
|
|
343
344
|
}, {
|
|
344
345
|
children: jsx(LoadingOutlined, {})
|
|
345
346
|
}));
|
|
@@ -373,7 +374,7 @@ var IconButton = function IconButton(props) {
|
|
|
373
374
|
title: generateTooltipTitle()
|
|
374
375
|
}, {
|
|
375
376
|
children: disabled ? jsx("span", Object.assign({
|
|
376
|
-
className:
|
|
377
|
+
className: "".concat($prefixCls, "-button--disabled")
|
|
377
378
|
}, {
|
|
378
379
|
children: renderIconButton()
|
|
379
380
|
})) : renderIconButton()
|
package/ButtonGroup/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { Button } from '../Button/index.js';
|
|
|
5
5
|
import { Tooltip } from '../Tooltip/index.js';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import Forbid from '@para-ui/icons/Forbid';
|
|
8
|
+
import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
|
|
8
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
9
10
|
import '../_verture/typeof-498dd2b1.js';
|
|
10
11
|
import '../_verture/slicedToArray-d7722f4b.js';
|
|
@@ -17,7 +18,7 @@ import '@para-ui/core/GlobalContext';
|
|
|
17
18
|
import 'rc-tooltip';
|
|
18
19
|
import 'rc-tooltip/lib/placements';
|
|
19
20
|
|
|
20
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/26 下午2:39\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-button-group {\n display: inline-flex;\n align-items: center;\n}\n.paraui-button-group-iconSplit .paraui-icon-button:not(:last-child) {\n margin-right: 8px;\n}\n.paraui-button-group-iconSplit.paraui-button-group-tooltip > span:not(:last-child) {\n margin-right: 8px;\n}\n.paraui-button-group-icon {\n border: 1px solid rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-button-group-icon .paraui-icon-button {\n border: none;\n border-radius: 0;\n}\n.paraui-button-group-icon .paraui-icon-button:not(:last-child) {\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-button-group-icon .paraui-icon-button:first-child {\n border-radius: 4px 0 0 4px;\n}\n.paraui-button-group-icon .paraui-icon-button:last-child {\n border-radius: 0 4px 4px 0;\n}\n.paraui-button-group-icon.paraui-button-group-tooltip > span .paraui-icon-button {\n border: none;\n border-radius: 0;\n}\n.paraui-button-group-icon.paraui-button-group-tooltip > span:not(:last-child) .paraui-icon-button {\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-button-group-icon.paraui-button-group-tooltip > span:first-child .paraui-icon-button {\n border-radius: 4px 0 0 4px;\n}\n.paraui-button-group-icon.paraui-button-group-tooltip > span:last-child .paraui-icon-button {\n border-radius: 0 4px 4px 0;\n}\n.paraui-button-group-text .paraui-button {\n border: none;\n border-radius: 0;\n}\n.paraui-button-group-text .paraui-button:not(:last-child) {\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n}";
|
|
21
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/26 下午2:39\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-button-group {\n display: inline-flex;\n align-items: center;\n}\n.paraui-v3-button-group-iconSplit .paraui-v3-icon-button:not(:last-child) {\n margin-right: 8px;\n}\n.paraui-v3-button-group-iconSplit.paraui-v3-button-group-tooltip > span:not(:last-child) {\n margin-right: 8px;\n}\n.paraui-v3-button-group-icon {\n border: 1px solid rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-v3-button-group-icon .paraui-v3-icon-button {\n border: none;\n border-radius: 0;\n}\n.paraui-v3-button-group-icon .paraui-v3-icon-button:not(:last-child) {\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-button-group-icon .paraui-v3-icon-button:first-child {\n border-radius: 4px 0 0 4px;\n}\n.paraui-v3-button-group-icon .paraui-v3-icon-button:last-child {\n border-radius: 0 4px 4px 0;\n}\n.paraui-v3-button-group-icon.paraui-v3-button-group-tooltip > span .paraui-v3-icon-button {\n border: none;\n border-radius: 0;\n}\n.paraui-v3-button-group-icon.paraui-v3-button-group-tooltip > span:not(:last-child) .paraui-v3-icon-button {\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-button-group-icon.paraui-v3-button-group-tooltip > span:first-child .paraui-v3-icon-button {\n border-radius: 4px 0 0 4px;\n}\n.paraui-v3-button-group-icon.paraui-v3-button-group-tooltip > span:last-child .paraui-v3-icon-button {\n border-radius: 0 4px 4px 0;\n}\n.paraui-v3-button-group-text .paraui-v3-button {\n border: none;\n border-radius: 0;\n}\n.paraui-v3-button-group-text .paraui-v3-button:not(:last-child) {\n border-right: 1px solid rgba(171, 176, 185, 0.4);\n}";
|
|
21
22
|
styleInject(css_248z);
|
|
22
23
|
|
|
23
24
|
var ButtonGroup = function ButtonGroup(props) {
|
|
@@ -118,7 +119,7 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
118
119
|
};
|
|
119
120
|
|
|
120
121
|
return jsx("div", Object.assign({
|
|
121
|
-
className: clsx(
|
|
122
|
+
className: clsx("".concat($prefixCls, "-button-group"), "".concat($prefixCls, "-button-group-").concat(mode), className, showToolTip && "".concat($prefixCls, "-button-group-tooltip")),
|
|
122
123
|
style: style
|
|
123
124
|
}, {
|
|
124
125
|
children: renderButtonGroup()
|