@para-ui/core 4.0.0-rc → 4.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoBox/index.d.ts +1 -1
- package/AutoBox/index.js +12 -12
- package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
- package/AutoTips/index.d.ts +2 -2
- package/AutoTips/index.js +12 -12
- package/Badge/index.d.ts +23 -0
- package/Badge/index.js +54 -0
- package/Breadcrumbs/index.js +8 -8
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +3 -3
- package/Carousel/index.d.ts +6 -6
- package/Carousel/index.js +5 -5
- package/Cascader/Cascader.d.ts +10 -10
- package/Cascader/OptionList/Column.d.ts +3 -3
- package/Cascader/OptionList/index.d.ts +2 -2
- package/Cascader/index.d.ts +1 -1
- package/Cascader/index.js +4 -2
- package/Cascader/lang/en_US.d.ts +5 -0
- package/Cascader/lang/index.d.ts +11 -0
- package/Cascader/lang/zh_CN.d.ts +5 -0
- package/Cascader/utils/treeUtil.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/Checkbox/index.js +4 -4
- package/CheckboxGroup/index.d.ts +2 -2
- package/CheckboxGroup/index.js +3 -3
- package/Collapse/index.js +4 -4
- package/CollapseBox/index.js +12 -20
- package/CollapseLayout/index.js +20 -20
- package/ColorPicker/index.js +2 -2
- package/ComboSelect/index.js +43 -52
- package/ComboSelect/interface.d.ts +3 -3
- package/Container/index.d.ts +3 -3
- package/Container/index.js +56 -56
- package/CopyText/index.d.ts +2 -2
- package/DatePicker/generatePicker/index.d.ts +22 -22
- package/DatePicker/index.js +8 -7
- package/DatePicker/util.d.ts +1 -1
- package/Desktop/index.d.ts +1 -1
- package/Desktop/index.js +18 -13
- package/DragVerify/index.d.ts +1 -1
- package/DragVerify/index.js +13 -13
- package/Drawer/index.js +29 -33
- package/Drawer/interface.d.ts +2 -2
- package/Dropdown/index.d.ts +1 -1
- package/DynamicMultiBox/formItem.d.ts +1 -1
- package/DynamicMultiBox/index.d.ts +1 -1
- package/DynamicMultiBox/index.js +38 -35
- package/DynamicMultiBox/interface.d.ts +8 -8
- package/DynamicMultiBox/rowForm.d.ts +3 -1
- package/Empty/index.d.ts +1 -1
- package/Empty/index.js +2 -2
- package/Form/index.d.ts +12 -13
- package/Form/index.js +10 -8
- package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
- package/FormItem/compoments/formFile/index.d.ts +2 -2
- package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
- package/FormItem/compoments/formSelect/index.d.ts +7 -7
- package/FormItem/errorTips.d.ts +3 -3
- package/FormItem/index.d.ts +5 -5
- package/FormItem/index.js +3 -2
- package/FormItem/lang/en_US.d.ts +10 -0
- package/FormItem/lang/index.d.ts +21 -0
- package/FormItem/lang/zh_CN.d.ts +10 -0
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/dialog.d.ts +26 -26
- package/FunctionModal/index.d.ts +6 -6
- package/FunctionModal/index.js +6 -6
- package/FunctionModal/modalContext.d.ts +3 -3
- package/GlobalContext/componentsProps.d.ts +7 -7
- package/GlobalContext/index.d.ts +2 -2
- package/GlobalContext/useFormatMessage.d.ts +1 -1
- package/Help/index.js +1 -1
- package/HelperText/index.js +1 -1
- package/InputLang/index.d.ts +2 -2
- package/InputLang/index.js +8 -8
- package/InputNumber/index.d.ts +2 -2
- package/InputNumber/index.js +3 -3
- package/Label/index.js +2 -2
- package/Loading/index.js +1 -1
- package/Menu/index.js +14 -14
- package/Menu/interface.d.ts +1 -1
- package/Message/index.js +12 -12
- package/Modal/Confirm/index.d.ts +3 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +5 -5
- package/MultiBox/index.d.ts +2 -2
- package/MultiBox/index.js +3 -3
- package/Notification/index.js +1 -1
- package/OperateBtn/index.d.ts +2 -2
- package/OperateBtn/index.js +40 -36
- package/PageHeader/index.js +30 -30
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +17 -17
- package/PasswordRules/index.js +7 -7
- package/PopConfirm/index.js +3 -3
- package/Progress/Line.d.ts +10 -10
- package/Progress/Steps.d.ts +2 -2
- package/Progress/index.d.ts +12 -12
- package/Progress/index.js +40 -40
- package/Progress/utils.d.ts +4 -4
- package/Querying/index.d.ts +1 -1
- package/Querying/index.js +2 -2
- package/README.md +3 -0
- package/Radio/index.d.ts +1 -1
- package/Radio/index.js +4 -4
- package/RadioGroup/index.d.ts +2 -2
- package/RadioGroup/index.js +3 -3
- package/Search/index.js +1 -1
- package/Select/index.d.ts +3 -3
- package/Select/index.js +42 -42
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +15 -15
- package/Selector/interface.d.ts +6 -6
- package/SelectorPicker/index.d.ts +4 -4
- package/SelectorPicker/index.js +9 -9
- package/SingleBox/index.d.ts +2 -2
- package/SingleBox/index.js +3 -3
- package/Slider/interface.d.ts +1 -1
- package/Status/index.d.ts +4 -4
- package/Status/index.js +4 -4
- package/Stepper/index.d.ts +5 -5
- package/Stepper/index.js +23 -23
- package/Switch/index.d.ts +7 -7
- package/Switch/index.js +23 -5
- package/Switch/lang/en_US.d.ts +4 -0
- package/Switch/lang/index.d.ts +9 -0
- package/Switch/lang/zh_CN.d.ts +4 -0
- package/Table/index.js +34 -34
- package/Table/interface.d.ts +4 -4
- package/Table/tableBodyElement/index.d.ts +1 -1
- package/Table/tableBodyInterface.d.ts +2 -2
- package/Table/tableContainer/index.d.ts +1 -1
- package/Table/tableElement/index.d.ts +1 -1
- package/Table/tableHeadElement/index.d.ts +1 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +6 -6
- package/Table/tdElement/index.d.ts +1 -1
- package/Table/thElement/index.d.ts +2 -2
- package/Table/trElement/index.d.ts +1 -1
- package/Table/util.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/Tabs/index.js +25 -17
- package/Tag/TagGroup.d.ts +5 -5
- package/Tag/index.d.ts +7 -7
- package/Tag/index.js +25 -25
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +45 -27
- package/TextEditor/lang/en_US.d.ts +4 -0
- package/TextEditor/lang/index.d.ts +9 -0
- package/TextEditor/lang/zh_CN.d.ts +4 -0
- package/TextField/index.d.ts +1 -1
- package/TextField/index.js +13 -13
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +1 -1
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +14 -14
- package/Title/index.d.ts +4 -4
- package/Title/index.js +3 -3
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.d.ts +5 -1
- package/ToggleButton/index.js +17 -10
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.js +21 -21
- package/Tree/OperateBar/index.d.ts +4 -4
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +2 -2
- package/Tree/interface.d.ts +4 -4
- package/Tree/utils/tools.d.ts +1 -1
- package/Upload/Dragger/index.d.ts +2 -2
- package/Upload/ErroTip/index.d.ts +1 -1
- package/Upload/index.d.ts +2 -2
- package/Upload/index.js +7 -7
- package/Upload/interface.d.ts +1 -1
- package/_verture/{index-8469865e.js → index-0f315bca.js} +2 -2
- package/_verture/{index-e1b800aa.js → index-92e406f4.js} +48 -24
- package/_verture/{index-47297a40.js → index-bc461491.js} +45 -45
- package/_verture/{index-1c8d3e94.js → index-d251967e.js} +101 -47
- package/_verture/{modalContext-670eab09.js → modalContext-9299acc9.js} +25 -25
- package/index.d.ts +2 -0
- package/index.js +8 -7
- package/locale/en-US.d.ts +19 -0
- package/locale/index.d.ts +38 -0
- package/locale/index.js +39 -1
- package/locale/zh-CN.d.ts +19 -0
- package/package.json +3 -1
- package/umd/AutoBox.js +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Badge.js +1 -0
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +2 -2
- package/umd/ButtonGroup.js +2 -2
- package/umd/Cascader.js +5 -5
- package/umd/Checkbox.js +1 -1
- package/umd/CheckboxGroup.js +1 -1
- package/umd/Collapse.js +1 -1
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +1 -1
- package/umd/DatePicker.js +2 -2
- package/umd/Desktop.js +2 -2
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +2 -2
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +2 -2
- package/umd/Help.js +1 -1
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/InputNumber.js +1 -1
- package/umd/Label.js +1 -1
- package/umd/Loading.js +1 -1
- package/umd/Menu.js +2 -2
- package/umd/Message.js +1 -1
- package/umd/Modal.js +2 -2
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +1 -1
- package/umd/OperateBtn.js +2 -2
- package/umd/PageHeader.js +2 -2
- package/umd/Pagination.js +4 -4
- package/umd/PasswordRules.js +4 -4
- package/umd/PopConfirm.js +2 -2
- package/umd/Progress.js +1 -1
- package/umd/Radio.js +1 -1
- package/umd/RadioGroup.js +1 -1
- package/umd/Search.js +7 -7
- package/umd/Select.js +1 -1
- package/umd/SelectInput.js +1 -1
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +1 -1
- package/umd/SingleBox.js +1 -1
- package/umd/Stepper.js +1 -1
- package/umd/Switch.js +4 -4
- package/umd/Table.js +2 -2
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +2 -2
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +2 -2
- package/umd/Title.js +1 -1
- package/umd/ToggleButton.js +4 -4
- package/umd/Transfer.js +2 -2
- package/umd/Tree.js +1 -1
- package/umd/Upload.js +2 -2
- package/umd/locale.js +1 -1
package/AutoBox/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description 超出自适应盒子
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import { TooltipPlacement } from
|
|
7
|
+
import { TooltipPlacement } from '../Tooltip/interface';
|
|
8
8
|
import './index.scss';
|
|
9
9
|
export interface AutoBoxProps {
|
|
10
10
|
/** 样式class */
|
package/AutoBox/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var Protal = function Protal(props) {
|
|
|
26
26
|
styleCom = _useState2[0],
|
|
27
27
|
setStyleCom = _useState2[1];
|
|
28
28
|
var constData = useRef({
|
|
29
|
-
uuid: $prefixCls
|
|
29
|
+
uuid: "".concat($prefixCls, "-protal-box-content-").concat(UUID())
|
|
30
30
|
});
|
|
31
31
|
var domRef = useRef();
|
|
32
32
|
var contentRef = useRef();
|
|
@@ -56,7 +56,7 @@ var Protal = function Protal(props) {
|
|
|
56
56
|
/** 全局监听点击事件 */
|
|
57
57
|
var clickFunc = function clickFunc(e) {
|
|
58
58
|
if (!constData.current) return;
|
|
59
|
-
var bol = closest(e.target,
|
|
59
|
+
var bol = closest(e.target, ".".concat(constData.current.uuid)); // 是否存在下拉当中
|
|
60
60
|
if (!bol) onClose && onClose();
|
|
61
61
|
};
|
|
62
62
|
/** 处理内容的定位样式 */
|
|
@@ -83,8 +83,8 @@ var Protal = function Protal(props) {
|
|
|
83
83
|
};
|
|
84
84
|
/** 处理className */
|
|
85
85
|
var handClass = function handClass() {
|
|
86
|
-
var str = $prefixCls
|
|
87
|
-
if (className) str +=
|
|
86
|
+
var str = "".concat($prefixCls, "-protal-box");
|
|
87
|
+
if (className) str += " ".concat(className);
|
|
88
88
|
return str;
|
|
89
89
|
};
|
|
90
90
|
var handContent = function handContent() {
|
|
@@ -95,7 +95,7 @@ var Protal = function Protal(props) {
|
|
|
95
95
|
children: [jsx("div", {
|
|
96
96
|
className: "protal-mask"
|
|
97
97
|
}), jsx("div", Object.assign({
|
|
98
|
-
className:
|
|
98
|
+
className: "protal-content ".concat(constData.current.uuid),
|
|
99
99
|
style: styleCom,
|
|
100
100
|
ref: contentRef
|
|
101
101
|
}, {
|
|
@@ -150,16 +150,16 @@ var AutoBox = function AutoBox(props) {
|
|
|
150
150
|
useEffect(function () {
|
|
151
151
|
if (props.showNum !== undefined) return;
|
|
152
152
|
changeSize();
|
|
153
|
-
window.addEventListener(
|
|
153
|
+
window.addEventListener('resize', changeSize);
|
|
154
154
|
return function () {
|
|
155
|
-
window.removeEventListener(
|
|
155
|
+
window.removeEventListener('resize', changeSize);
|
|
156
156
|
clearTimeout(timer.timer);
|
|
157
157
|
};
|
|
158
158
|
}, [list]);
|
|
159
159
|
useEffect(function () {
|
|
160
160
|
if (showNum !== undefined) {
|
|
161
161
|
setMorePos(showNum);
|
|
162
|
-
window.removeEventListener(
|
|
162
|
+
window.removeEventListener('resize', changeSize);
|
|
163
163
|
}
|
|
164
164
|
}, [showNum]);
|
|
165
165
|
useEffect(function () {
|
|
@@ -209,14 +209,14 @@ var AutoBox = function AutoBox(props) {
|
|
|
209
209
|
};
|
|
210
210
|
// 处理class
|
|
211
211
|
var handClass = function handClass() {
|
|
212
|
-
var str = $prefixCls
|
|
213
|
-
if (className) str +=
|
|
212
|
+
var str = "".concat($prefixCls, "-auto-box");
|
|
213
|
+
if (className) str += " ".concat(className);
|
|
214
214
|
return str;
|
|
215
215
|
};
|
|
216
216
|
// 处理handClassPopover
|
|
217
217
|
var handClassPopover = function handClassPopover() {
|
|
218
|
-
var str = $prefixCls
|
|
219
|
-
if (popoverClassName) str +=
|
|
218
|
+
var str = "".concat($prefixCls, "-auto-box-popover");
|
|
219
|
+
if (popoverClassName) str += " ".concat(popoverClassName);
|
|
220
220
|
return str;
|
|
221
221
|
};
|
|
222
222
|
// 处理更多内容
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description 超出多行显示
|
|
5
5
|
*/
|
|
6
6
|
import { FunctionComponent } from 'react';
|
|
7
|
-
import { AutoTipsProps } from
|
|
7
|
+
import { AutoTipsProps } from '../index';
|
|
8
8
|
import './index.scss';
|
|
9
9
|
export interface AutoTipsMultilineProps extends Omit<AutoTipsProps, 'children'> {
|
|
10
10
|
/** 内容 */
|
package/AutoTips/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description 超出...
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
-
import AutoTipsMultiline from
|
|
7
|
+
import AutoTipsMultiline from './autoTipsMultiline';
|
|
8
8
|
import './index.scss';
|
|
9
9
|
export interface AutoTipsProps {
|
|
10
10
|
/** 样式class */
|
|
@@ -18,7 +18,7 @@ export interface AutoTipsProps {
|
|
|
18
18
|
/** 显示文字还是元素 */
|
|
19
19
|
beyondText?: boolean;
|
|
20
20
|
/** 定位方向 */
|
|
21
|
-
placement?:
|
|
21
|
+
placement?: 'top-start' | 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top' | undefined;
|
|
22
22
|
/** 提示最大宽度 */
|
|
23
23
|
tipMaxWidth?: number | string;
|
|
24
24
|
/** interactive */
|
package/AutoTips/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var AutoTipsMultiline = function AutoTipsMultiline(props) {
|
|
|
20
20
|
_props$arrow = props.arrow,
|
|
21
21
|
arrow = _props$arrow === void 0 ? false : _props$arrow,
|
|
22
22
|
_props$placement = props.placement,
|
|
23
|
-
placement = _props$placement === void 0 ?
|
|
23
|
+
placement = _props$placement === void 0 ? 'bottom-start' : _props$placement,
|
|
24
24
|
_props$tips = props.tips,
|
|
25
25
|
tips = _props$tips === void 0 ? '' : _props$tips,
|
|
26
26
|
_props$className = props.className,
|
|
@@ -117,7 +117,7 @@ var AutoTipsMultiline = function AutoTipsMultiline(props) {
|
|
|
117
117
|
// 判断浏览器是否是safari
|
|
118
118
|
var isSafari = function isSafari() {
|
|
119
119
|
var userAgent = navigator.userAgent;
|
|
120
|
-
if (userAgent.indexOf(
|
|
120
|
+
if (userAgent.indexOf('Safari') > -1) {
|
|
121
121
|
return true;
|
|
122
122
|
}
|
|
123
123
|
};
|
|
@@ -128,9 +128,9 @@ var AutoTipsMultiline = function AutoTipsMultiline(props) {
|
|
|
128
128
|
};
|
|
129
129
|
// 处理class
|
|
130
130
|
var handClass = function handClass() {
|
|
131
|
-
var str = $prefixCls
|
|
132
|
-
if (isSafari()) str +=
|
|
133
|
-
if (className) str +=
|
|
131
|
+
var str = "".concat($prefixCls, "-auto-tips-multiline");
|
|
132
|
+
if (isSafari()) str += " ".concat($prefixCls, "-auto-tips-multiline-safari");
|
|
133
|
+
if (className) str += " ".concat(className);
|
|
134
134
|
return str;
|
|
135
135
|
};
|
|
136
136
|
return jsx("div", Object.assign({
|
|
@@ -144,7 +144,7 @@ var AutoTipsMultiline = function AutoTipsMultiline(props) {
|
|
|
144
144
|
placement: placement,
|
|
145
145
|
interactive: interactive,
|
|
146
146
|
boundariesElement: 'viewport',
|
|
147
|
-
overlayClassName: $prefixCls
|
|
147
|
+
overlayClassName: "".concat($prefixCls, "-auto-tips-multiline-tooltip"),
|
|
148
148
|
maxWidth: handMaxWidth()
|
|
149
149
|
}, {
|
|
150
150
|
children: jsxs("div", Object.assign({
|
|
@@ -176,7 +176,7 @@ var AutoTips = function AutoTips(props) {
|
|
|
176
176
|
_props$arrow = props.arrow,
|
|
177
177
|
arrow = _props$arrow === void 0 ? false : _props$arrow,
|
|
178
178
|
_props$placement = props.placement,
|
|
179
|
-
placement = _props$placement === void 0 ?
|
|
179
|
+
placement = _props$placement === void 0 ? 'bottom-start' : _props$placement,
|
|
180
180
|
_props$tips = props.tips,
|
|
181
181
|
tips = _props$tips === void 0 ? '' : _props$tips,
|
|
182
182
|
_props$className = props.className,
|
|
@@ -233,15 +233,15 @@ var AutoTips = function AutoTips(props) {
|
|
|
233
233
|
// 判断浏览器是否是safari
|
|
234
234
|
var isSafari = function isSafari() {
|
|
235
235
|
var userAgent = navigator.userAgent;
|
|
236
|
-
if (userAgent.indexOf(
|
|
236
|
+
if (userAgent.indexOf('Safari') > -1) {
|
|
237
237
|
return true;
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
// 处理class
|
|
241
241
|
var handClass = function handClass() {
|
|
242
|
-
var str = $prefixCls
|
|
243
|
-
if (isSafari()) str +=
|
|
244
|
-
if (className) str +=
|
|
242
|
+
var str = "".concat($prefixCls, "-auto-tips");
|
|
243
|
+
if (isSafari()) str += " ".concat($prefixCls, "-auto-tips-safari");
|
|
244
|
+
if (className) str += " ".concat(className);
|
|
245
245
|
return str;
|
|
246
246
|
};
|
|
247
247
|
return jsx("div", Object.assign({
|
|
@@ -256,7 +256,7 @@ var AutoTips = function AutoTips(props) {
|
|
|
256
256
|
placement: placement,
|
|
257
257
|
interactive: interactive,
|
|
258
258
|
boundariesElement: 'viewport',
|
|
259
|
-
overlayClassName: $prefixCls
|
|
259
|
+
overlayClassName: "".concat($prefixCls, "-auto-tips-tooltip"),
|
|
260
260
|
maxWidth: tipMaxWidth
|
|
261
261
|
}, {
|
|
262
262
|
children: jsx("div", Object.assign({
|
package/Badge/index.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2023/10/23 14:19
|
|
4
|
+
* @description 消息角标
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
export interface BadgeProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 内容 */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/** 标记内容, 不传为圆点类型 */
|
|
16
|
+
sign?: ReactNode;
|
|
17
|
+
/** 背景色 */
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
/** 文字色 */
|
|
20
|
+
color?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const Badge: FunctionComponent<BadgeProps>;
|
|
23
|
+
export default Badge;
|
package/Badge/index.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
6
|
+
|
|
7
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-badge {\n display: inline-block;\n line-height: 1;\n position: relative;\n}\n.paraui-v4-badge > .pos-box {\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n transform-origin: 100% 0%;\n height: 16px;\n display: inline-block;\n background-color: rgb(244, 66, 66);\n color: rgb(255, 255, 255);\n}\n.paraui-v4-badge > .pos-box.dot {\n border-radius: 50%;\n width: 8px;\n height: 8px;\n}\n.paraui-v4-badge > .pos-box.number, .paraui-v4-badge > .pos-box.text {\n border-radius: 8px;\n font-size: 12px;\n min-width: 16px;\n text-align: center;\n line-height: 16px;\n padding: 0 4px;\n max-width: 60px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v4-badge > .pos-box.number > span, .paraui-v4-badge > .pos-box.text > span {\n transform: scale(0.83);\n display: inline-block;\n}";
|
|
8
|
+
styleInject(css_248z);
|
|
9
|
+
|
|
10
|
+
var Badge = function Badge(props) {
|
|
11
|
+
var className = props.className,
|
|
12
|
+
style = props.style,
|
|
13
|
+
children = props.children,
|
|
14
|
+
sign = props.sign,
|
|
15
|
+
backgroundColor = props.backgroundColor,
|
|
16
|
+
color = props.color;
|
|
17
|
+
// 判断数据类型
|
|
18
|
+
var handleType = function handleType() {
|
|
19
|
+
var type = _typeof(sign);
|
|
20
|
+
if (type === 'undefined') return 'dot';
|
|
21
|
+
if (type === 'number') return 'number';
|
|
22
|
+
return 'text';
|
|
23
|
+
};
|
|
24
|
+
var type = handleType();
|
|
25
|
+
// 标记内容
|
|
26
|
+
var handleSign = function handleSign() {
|
|
27
|
+
return jsxs("span", Object.assign({
|
|
28
|
+
className: "pos-box ".concat(type),
|
|
29
|
+
style: {
|
|
30
|
+
backgroundColor: backgroundColor,
|
|
31
|
+
color: color
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
children: [type === 'number' && jsx("span", {
|
|
35
|
+
children: handleNumber()
|
|
36
|
+
}), type === 'text' && jsx("span", {
|
|
37
|
+
children: sign
|
|
38
|
+
})]
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
// 处理number
|
|
42
|
+
var handleNumber = function handleNumber() {
|
|
43
|
+
if (Number(sign) > 999) return '999+';
|
|
44
|
+
return sign;
|
|
45
|
+
};
|
|
46
|
+
return jsxs("span", Object.assign({
|
|
47
|
+
className: clsx("".concat($prefixCls, "-badge"), "".concat($prefixCls, "-badge-").concat(type), className),
|
|
48
|
+
style: style
|
|
49
|
+
}, {
|
|
50
|
+
children: [children, handleSign()]
|
|
51
|
+
}));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export { Badge, Badge as default };
|
package/Breadcrumbs/index.js
CHANGED
|
@@ -82,10 +82,10 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
82
82
|
constData.current.isShrink = isShrink;
|
|
83
83
|
constData.current.minNum = minNum;
|
|
84
84
|
useEffect(function () {
|
|
85
|
-
window.addEventListener(
|
|
85
|
+
window.addEventListener('resize', winResize);
|
|
86
86
|
return function () {
|
|
87
87
|
clearTimeout(constData.current.timer);
|
|
88
|
-
window.removeEventListener(
|
|
88
|
+
window.removeEventListener('resize', winResize);
|
|
89
89
|
};
|
|
90
90
|
}, []);
|
|
91
91
|
useEffect(function () {
|
|
@@ -114,7 +114,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
114
114
|
};
|
|
115
115
|
/** 去除遮罩 */
|
|
116
116
|
var hideMask = function hideMask() {
|
|
117
|
-
boxRef.current.classList.remove($prefixCls
|
|
117
|
+
boxRef.current.classList.remove("".concat($prefixCls, "-breadcrumbs-calculation"));
|
|
118
118
|
};
|
|
119
119
|
var changeSize = function changeSize(bol) {
|
|
120
120
|
if (!constData.current.isShrink) return hideMask();
|
|
@@ -133,7 +133,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
133
133
|
// 面包屑数组长度必须大于最少显示数
|
|
134
134
|
if (constData.current.hidePos === props.list.length - constData.current.minNum - 1) return hideMask();
|
|
135
135
|
// 隐藏到最小显示数,停止
|
|
136
|
-
boxRef.current.classList.add($prefixCls
|
|
136
|
+
boxRef.current.classList.add("".concat($prefixCls, "-breadcrumbs-calculation"));
|
|
137
137
|
constData.current.timer = setTimeout(function () {
|
|
138
138
|
var boxWidth = boxRef.current.clientWidth;
|
|
139
139
|
var listWidth = boxRef.current.querySelector('.breadcrumbs-list').clientWidth;
|
|
@@ -178,15 +178,15 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
178
178
|
};
|
|
179
179
|
// 处理弹出框className
|
|
180
180
|
var popoverHandClass = function popoverHandClass() {
|
|
181
|
-
var str = $prefixCls
|
|
182
|
-
if (popoverClassName) str +=
|
|
181
|
+
var str = "".concat($prefixCls, "-breadcrumbs-popover");
|
|
182
|
+
if (popoverClassName) str += " ".concat(popoverClassName);
|
|
183
183
|
return str;
|
|
184
184
|
};
|
|
185
185
|
// 处理className
|
|
186
186
|
var handClass = function handClass() {
|
|
187
|
-
var str = $prefixCls
|
|
187
|
+
var str = "".concat($prefixCls, "-breadcrumbs");
|
|
188
188
|
if (isShrink) str += " ".concat($prefixCls, "-breadcrumbs-shrink");
|
|
189
|
-
if (className) str +=
|
|
189
|
+
if (className) str += " ".concat(className);
|
|
190
190
|
return str;
|
|
191
191
|
};
|
|
192
192
|
return jsxs("div", Object.assign({
|
package/Button/SplitButton.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import { ButtonProps } from '../Button';
|
|
8
8
|
import { Placement } from '../Dropdown';
|
|
9
9
|
import { AutoTipsProps } from '../AutoTips';
|
|
10
|
-
import { TooltipProps } from
|
|
10
|
+
import { TooltipProps } from '../Tooltip';
|
|
11
11
|
import './index.scss';
|
|
12
12
|
interface Option {
|
|
13
13
|
/**
|
package/Button/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent } from 'react';
|
|
7
7
|
import { TooltipProps } from '../Tooltip';
|
|
8
|
-
import SplitButton from
|
|
8
|
+
import SplitButton from './SplitButton';
|
|
9
9
|
import './index.scss';
|
|
10
10
|
export interface ButtonProps extends React.ButtonHTMLAttributes<any> {
|
|
11
11
|
variant?: 'contained' | 'outlined' | 'text';
|
package/Button/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var localeJson = {
|
|
|
35
35
|
en: en
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/21 下午5:16\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n@keyframes buttonLoadingSpin {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v4-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 10px;\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-v4-button .button-label {\n width: 100%;\n display: inherit;\n align-items: inherit;\n justify-content: inherit;\n}\n.paraui-v4-button .button-icon {\n display: inherit;\n margin-right: 4px;\n}\n.paraui-v4-button .button-icon svg {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v4-button .button-icon-end {\n margin-right: 0;\n margin-left: 4px;\n}\n.paraui-v4-button .button-icon-loading {\n animation: buttonLoadingSpin 1s infinite linear;\n}\n.paraui-v4-button-loading {\n pointer-events: none;\n}\n.paraui-v4-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-button-contained:hover {\n background-color: rgb(87, 131, 235);\n}\n.paraui-v4-button-contained.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-contained.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-contained[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-contained[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-contained.paraui-v4-button-dangerous {\n background-color: rgb(244, 66, 66);\n}\n.paraui-v4-button-contained.paraui-v4-button-dangerous:hover {\n background-color: rgb(246, 103, 103);\n}\n.paraui-v4-button-outlined {\n color: rgb(29, 33, 38);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-button-outlined:hover {\n color: rgb(46, 101, 230);\n border-color: rgb(87, 131, 235);\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-button-outlined.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-outlined.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-outlined[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-outlined[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-outlined.paraui-v4-button-dangerous {\n color: rgb(244, 66, 66);\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-button-outlined.paraui-v4-button-dangerous:hover {\n color: rgb(244, 66, 66);\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-button-text {\n color: rgb(46, 101, 230);\n background-color: transparent;\n border: none;\n}\n.paraui-v4-button-text:hover {\n color: rgb(87, 131, 235);\n background-color: transparent;\n}\n.paraui-v4-button-text.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-text.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-text[disabled] {\n color: rgb(29, 33, 38);\n background-color: transparent;\n border: none;\n cursor: not-allowed;\n}\n.paraui-v4-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-button-text.paraui-v4-button-dangerous {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-button-text.paraui-v4-button-dangerous:hover {\n color: rgb(246, 103, 103);\n}\n.paraui-v4-button-large {\n height: 32px;\n}\n.paraui-v4-button-medium {\n height: 28px;\n}\n.paraui-v4-button-small {\n height: 28px;\n}\n.paraui-v4-button--disabled {\n display: inline-block;\n cursor: not-allowed;\n}\n.paraui-v4-button--disabled button {\n pointer-events: none;\n}\n\n.paraui-v4-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-v4-icon-button-loading {\n pointer-events: none;\n}\n.paraui-v4-icon-button-loading .button-loading-icon {\n display: inline-flex;\n animation: buttonLoadingSpin 1s infinite linear;\n}\n.paraui-v4-icon-button svg {\n color: inherit;\n font-size: 16px;\n}\n.paraui-v4-icon-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-icon-button-contained:hover {\n background-color: rgb(87, 131, 235);\n box-shadow: none;\n}\n.paraui-v4-icon-button-contained.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-contained.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-contained[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-contained[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-contained.paraui-v4-icon-button-dangerous {\n background-color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-contained.paraui-v4-icon-button-dangerous:hover {\n background-color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-outlined {\n color: rgb(29, 33, 38);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-icon-button-outlined:hover {\n color: rgb(46, 101, 230);\n border-color: rgb(87, 131, 235);\n box-shadow: none;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-icon-button-outlined.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-outlined.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-outlined[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-outlined[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-outlined.paraui-v4-icon-button-dangerous {\n color: rgb(244, 66, 66);\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-outlined.paraui-v4-icon-button-dangerous:hover {\n color: rgb(244, 66, 66);\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-text {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-icon-button-text:hover {\n color: rgb(87, 131, 235);\n background-color: transparent;\n}\n.paraui-v4-icon-button-text.paraui-v4-button-link-disabled {\n pointer-events: none;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-icon-button-text.paraui-v4-button-link-disabled:hover {\n background-color: transparent;\n}\n.paraui-v4-icon-button-text[disabled] {\n color: rgb(161, 168, 179);\n pointer-events: none;\n}\n.paraui-v4-icon-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-dangerous {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-dangerous:hover {\n color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-large {\n width: auto;\n height: auto;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-large svg {\n font-size: 24px;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-medium {\n width: auto;\n height: auto;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-medium svg {\n font-size: 20px;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-small {\n width: auto;\n height: auto;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-small svg {\n font-size: 20px;\n}\n.paraui-v4-icon-button-activate {\n color: rgb(29, 33, 38);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n color: rgb(46, 101, 230);\n border-color: rgb(46, 101, 230);\n box-shadow: none;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-icon-button-activate.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-activate.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-activate[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-activate[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-activate.paraui-v4-icon-button-dangerous {\n color: rgb(244, 66, 66);\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-activate.paraui-v4-icon-button-dangerous:hover {\n color: rgb(244, 66, 66);\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-large {\n width: 32px;\n height: 32px;\n}\n.paraui-v4-icon-button-medium {\n width: 28px;\n height: 28px;\n}\n.paraui-v4-icon-button-small {\n width: 28px;\n height: 28px;\n}\n\n.paraui-v4-button-split {\n display: inline-block;\n}\n.paraui-v4-button-split .paraui-v4-button-split--active {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-button-split-list {\n padding: 4px 0;\n border-radius: 4px;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-button-split-list ul .split-li {\n padding: 8px 10px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.3s, color 0.3s;\n white-space: nowrap;\n}\n.paraui-v4-button-split-list ul .split-li:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--active {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--active:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--hover:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--disabled {\n color: rgb(161, 168, 179);\n cursor: not-allowed;\n}\n.paraui-v4-button-split-list ul .split-li.split-li--disabled:hover {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-button-split-list ul .split-li-group:not(:first-child) {\n position: relative;\n margin-top: 8px;\n}\n.paraui-v4-button-split-list ul .split-li-group:not(:first-child):before {\n content: \"\";\n position: absolute;\n top: -4px;\n left: 8px;\n right: 8px;\n border-top: 1px solid rgb(234, 236, 241);\n}";
|
|
38
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/21 下午5:16\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n@keyframes buttonLoadingSpin {\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v4-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 10px;\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-v4-button .button-label {\n width: 100%;\n display: inherit;\n align-items: inherit;\n justify-content: inherit;\n}\n.paraui-v4-button .button-icon {\n display: inherit;\n margin-right: 4px;\n}\n.paraui-v4-button .button-icon svg {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v4-button .button-icon-end {\n margin-right: 0;\n margin-left: 4px;\n}\n.paraui-v4-button .button-icon-loading {\n animation: buttonLoadingSpin 1s infinite linear;\n}\n.paraui-v4-button-loading {\n pointer-events: none;\n}\n.paraui-v4-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-button-contained:hover {\n background-color: rgb(87, 131, 235);\n}\n.paraui-v4-button-contained.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-contained.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-contained[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-contained[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-contained.paraui-v4-button-dangerous {\n background-color: rgb(244, 66, 66);\n}\n.paraui-v4-button-contained.paraui-v4-button-dangerous:hover {\n background-color: rgb(246, 103, 103);\n}\n.paraui-v4-button-outlined {\n color: rgb(29, 33, 38);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-button-outlined:hover {\n color: rgb(46, 101, 230);\n border-color: rgb(87, 131, 235);\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-button-outlined.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-outlined.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-outlined[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-outlined[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-outlined.paraui-v4-button-dangerous {\n color: rgb(244, 66, 66);\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-button-outlined.paraui-v4-button-dangerous:hover {\n color: rgb(244, 66, 66);\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-button-text {\n color: rgb(46, 101, 230);\n background-color: transparent;\n border: none;\n padding: unset;\n margin: 0 10px;\n}\n.paraui-v4-button-text:hover {\n color: rgb(87, 131, 235);\n background-color: transparent;\n}\n.paraui-v4-button-text.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-button-text.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-text[disabled] {\n color: rgb(29, 33, 38);\n background-color: transparent;\n border: none;\n cursor: not-allowed;\n}\n.paraui-v4-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-button-text.paraui-v4-button-dangerous {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-button-text.paraui-v4-button-dangerous:hover {\n color: rgb(246, 103, 103);\n}\n.paraui-v4-button-large {\n height: 32px;\n}\n.paraui-v4-button-medium {\n height: 28px;\n}\n.paraui-v4-button-small {\n height: 28px;\n}\n.paraui-v4-button--disabled {\n display: inline-block;\n cursor: not-allowed;\n}\n.paraui-v4-button--disabled button {\n pointer-events: none;\n}\n\n.paraui-v4-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-v4-icon-button-loading {\n pointer-events: none;\n}\n.paraui-v4-icon-button-loading .button-loading-icon {\n display: inline-flex;\n animation: buttonLoadingSpin 1s infinite linear;\n}\n.paraui-v4-icon-button svg {\n color: inherit;\n font-size: 16px;\n}\n.paraui-v4-icon-button-contained {\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-icon-button-contained:hover {\n background-color: rgb(87, 131, 235);\n box-shadow: none;\n}\n.paraui-v4-icon-button-contained.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-contained.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-contained[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-contained[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-contained.paraui-v4-icon-button-dangerous {\n background-color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-contained.paraui-v4-icon-button-dangerous:hover {\n background-color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-outlined {\n color: rgb(29, 33, 38);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-icon-button-outlined:hover {\n color: rgb(46, 101, 230);\n border-color: rgb(87, 131, 235);\n box-shadow: none;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-icon-button-outlined.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-outlined.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-outlined[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-outlined[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-outlined.paraui-v4-icon-button-dangerous {\n color: rgb(244, 66, 66);\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-outlined.paraui-v4-icon-button-dangerous:hover {\n color: rgb(244, 66, 66);\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-text {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-icon-button-text:hover {\n color: rgb(87, 131, 235);\n background-color: transparent;\n}\n.paraui-v4-icon-button-text.paraui-v4-button-link-disabled {\n pointer-events: none;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-icon-button-text.paraui-v4-button-link-disabled:hover {\n background-color: transparent;\n}\n.paraui-v4-icon-button-text[disabled] {\n color: rgb(161, 168, 179);\n pointer-events: none;\n}\n.paraui-v4-icon-button-text[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-dangerous {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-dangerous:hover {\n color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-large {\n width: auto;\n height: auto;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-large svg {\n font-size: 24px;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-medium {\n width: auto;\n height: auto;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-medium svg {\n font-size: 20px;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-small {\n width: auto;\n height: auto;\n}\n.paraui-v4-icon-button-text.paraui-v4-icon-button-small svg {\n font-size: 20px;\n}\n.paraui-v4-icon-button-activate {\n color: rgb(29, 33, 38);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n color: rgb(46, 101, 230);\n border-color: rgb(46, 101, 230);\n box-shadow: none;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-icon-button-activate.paraui-v4-button-link-disabled {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-activate.paraui-v4-button-link-disabled:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-activate[disabled] {\n color: rgb(29, 33, 38);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-icon-button-activate[disabled]:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-icon-button-activate.paraui-v4-icon-button-dangerous {\n color: rgb(244, 66, 66);\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-icon-button-activate.paraui-v4-icon-button-dangerous:hover {\n color: rgb(244, 66, 66);\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-icon-button-large {\n width: 32px;\n height: 32px;\n}\n.paraui-v4-icon-button-medium {\n width: 28px;\n height: 28px;\n}\n.paraui-v4-icon-button-small {\n width: 28px;\n height: 28px;\n}\n\n.paraui-v4-button-split {\n display: inline-block;\n}\n.paraui-v4-button-split .paraui-v4-button-split--active {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-button-split-list {\n padding: 4px 0;\n border-radius: 4px;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-button-split-list ul .split-li {\n padding: 8px 10px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n line-height: 1;\n cursor: pointer;\n transition: background-color 0.3s, color 0.3s;\n white-space: nowrap;\n}\n.paraui-v4-button-split-list ul .split-li:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--active {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--active:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--hover:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-button-split-list ul .split-li.split-li--disabled {\n color: rgb(161, 168, 179);\n cursor: not-allowed;\n}\n.paraui-v4-button-split-list ul .split-li.split-li--disabled:hover {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-button-split-list ul .split-li-group:not(:first-child) {\n position: relative;\n margin-top: 8px;\n}\n.paraui-v4-button-split-list ul .split-li-group:not(:first-child):before {\n content: \"\";\n position: absolute;\n top: -4px;\n left: 8px;\n right: 8px;\n border-top: 1px solid rgb(234, 236, 241);\n}";
|
|
39
39
|
styleInject(css_248z);
|
|
40
40
|
|
|
41
41
|
//分体式按钮
|
|
@@ -153,7 +153,7 @@ function SplitButton(props) {
|
|
|
153
153
|
if (variant) {
|
|
154
154
|
return jsx(Button.IconButton, Object.assign({
|
|
155
155
|
variant: variant,
|
|
156
|
-
size:
|
|
156
|
+
size: 'small',
|
|
157
157
|
disabled: disabled
|
|
158
158
|
}, buttonProps, {
|
|
159
159
|
children: buttonText !== null && buttonText !== void 0 ? buttonText : intl({
|
|
@@ -163,7 +163,7 @@ function SplitButton(props) {
|
|
|
163
163
|
}
|
|
164
164
|
return jsx(Button.IconButton, Object.assign({
|
|
165
165
|
variant: 'text',
|
|
166
|
-
size:
|
|
166
|
+
size: 'small',
|
|
167
167
|
disabled: disabled
|
|
168
168
|
}, buttonProps, {
|
|
169
169
|
children: buttonText !== null && buttonText !== void 0 ? buttonText : intl({
|
package/Carousel/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* @date 2022/2/28 上午11:02
|
|
4
4
|
* @description Carousel
|
|
5
5
|
*/
|
|
6
|
-
import React from
|
|
7
|
-
import { Settings } from
|
|
8
|
-
import
|
|
9
|
-
export type CarouselEffect =
|
|
10
|
-
export type DotPosition =
|
|
11
|
-
export interface CarouselProps extends Omit<Settings,
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { Settings } from 'react-slick';
|
|
8
|
+
import './index.scss';
|
|
9
|
+
export type CarouselEffect = 'scrollx' | 'fade';
|
|
10
|
+
export type DotPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
11
|
+
export interface CarouselProps extends Omit<Settings, 'dots' | 'dotsClass'> {
|
|
12
12
|
/** 动画效果函数 */
|
|
13
13
|
effect?: CarouselEffect;
|
|
14
14
|
/** style */
|
package/Carousel/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
22
22
|
_props$draggable = props.draggable,
|
|
23
23
|
draggable = _props$draggable === void 0 ? false : _props$draggable,
|
|
24
24
|
_props$dotPosition = props.dotPosition,
|
|
25
|
-
dotPosition = _props$dotPosition === void 0 ?
|
|
25
|
+
dotPosition = _props$dotPosition === void 0 ? 'bottom' : _props$dotPosition,
|
|
26
26
|
className = props.className,
|
|
27
27
|
restProps = __rest(props, ["dots", "arrows", "draggable", "dotPosition", "className"]);
|
|
28
28
|
var slickRef = React__default.useRef();
|
|
@@ -51,16 +51,16 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
51
51
|
}, [props.children]);
|
|
52
52
|
var newProps = Object.assign({}, restProps);
|
|
53
53
|
//动画效果
|
|
54
|
-
if (newProps.effect ===
|
|
54
|
+
if (newProps.effect === 'fade') {
|
|
55
55
|
newProps.fade = true;
|
|
56
56
|
}
|
|
57
57
|
var prefixCls = "".concat($prefixCls, "-carousel");
|
|
58
|
-
var dotsClass =
|
|
59
|
-
newProps.vertical = dotPosition ===
|
|
58
|
+
var dotsClass = 'slick-dots';
|
|
59
|
+
newProps.vertical = dotPosition === 'left' || dotPosition === 'right';
|
|
60
60
|
//启用dots
|
|
61
61
|
var enableDots = !!dots;
|
|
62
62
|
//dots cls
|
|
63
|
-
var dsClass = clsx(dotsClass, "".concat(dotsClass, "-").concat(dotPosition), typeof dots ===
|
|
63
|
+
var dsClass = clsx(dotsClass, "".concat(dotsClass, "-").concat(dotPosition), typeof dots === 'boolean' ? false : dots === null || dots === void 0 ? void 0 : dots.className);
|
|
64
64
|
//组件cls
|
|
65
65
|
var cls = clsx(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-vertical"), newProps.vertical));
|
|
66
66
|
return jsx("div", Object.assign({
|
package/Cascader/Cascader.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BuildInPlacements } from
|
|
2
|
-
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from
|
|
3
|
-
import type { Placement } from
|
|
4
|
-
import * as React from
|
|
5
|
-
import { SHOW_CHILD, SHOW_PARENT } from
|
|
6
|
-
import { TooltipProps } from
|
|
1
|
+
import type { BuildInPlacements } from '@rc-component/trigger/lib/interface';
|
|
2
|
+
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select';
|
|
3
|
+
import type { Placement } from 'rc-select/lib/BaseSelect';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { SHOW_CHILD, SHOW_PARENT } from './utils/commonUtil';
|
|
6
|
+
import { TooltipProps } from '../../src/Tooltip';
|
|
7
7
|
export interface ShowSearchType<OptionType extends BaseOptionType = DefaultOptionType> {
|
|
8
8
|
filter?: (inputValue: string, options: OptionType[], fieldNames: FieldNames) => boolean;
|
|
9
9
|
render?: (inputValue: string, path: OptionType[], prefixCls: string, fieldNames: FieldNames) => React.ReactNode;
|
|
@@ -33,7 +33,7 @@ export interface DefaultOptionType extends BaseOptionType {
|
|
|
33
33
|
disableCheckbox?: boolean;
|
|
34
34
|
disableTitle?: string;
|
|
35
35
|
}
|
|
36
|
-
interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> extends Omit<BaseSelectPropsWithoutPrivate,
|
|
36
|
+
interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> extends Omit<BaseSelectPropsWithoutPrivate, 'tokenSeparators' | 'labelInValue' | 'mode' | 'showSearch'> {
|
|
37
37
|
id?: string;
|
|
38
38
|
prefixCls?: string;
|
|
39
39
|
fieldNames?: FieldNames;
|
|
@@ -44,7 +44,7 @@ interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionTyp
|
|
|
44
44
|
displayRender?: (label: string[], selectedOptions?: OptionType[]) => React.ReactNode;
|
|
45
45
|
checkable?: boolean | React.ReactNode;
|
|
46
46
|
showCheckedStrategy?: ShowCheckedStrategy;
|
|
47
|
-
expandTrigger?:
|
|
47
|
+
expandTrigger?: 'hover' | 'click';
|
|
48
48
|
options?: OptionType[];
|
|
49
49
|
optionsTitle?: Array<string | null>;
|
|
50
50
|
/** @private Internal usage. Do not use in your production. */
|
|
@@ -85,10 +85,10 @@ export interface MultipleCascaderProps<OptionType extends BaseOptionType = Defau
|
|
|
85
85
|
onChange?: OnMultipleChange<OptionType>;
|
|
86
86
|
}
|
|
87
87
|
export type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>;
|
|
88
|
-
export type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>,
|
|
88
|
+
export type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>, 'onChange'> & {
|
|
89
89
|
onChange?: (value: SingleValueType | SingleValueType[], selectOptions: OptionType[] | OptionType[][]) => void;
|
|
90
90
|
};
|
|
91
|
-
export type CascaderRef = Omit<BaseSelectRef,
|
|
91
|
+
export type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>;
|
|
92
92
|
declare const Cascader: (<OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: React.PropsWithChildren<CascaderProps<OptionType>> & {
|
|
93
93
|
ref?: React.Ref<BaseSelectRef> | undefined;
|
|
94
94
|
}) => React.ReactElement) & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import type { DefaultOptionType, SingleValueType } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DefaultOptionType, SingleValueType } from '../Cascader';
|
|
3
3
|
export declare const FIX_LABEL = "__cascader_fix_label__";
|
|
4
4
|
export interface ColumnProps {
|
|
5
5
|
prefixCls: string;
|
|
@@ -18,4 +18,4 @@ export interface ColumnProps {
|
|
|
18
18
|
searchValue?: string;
|
|
19
19
|
titleIndex?: number;
|
|
20
20
|
}
|
|
21
|
-
export default function Column({ prefixCls, options, multiple, activeValue, prevValuePath, titleIndex, onToggleOpen, onSelect, onActive, checkedSet, loadingKeys, isSelectable, searchValue
|
|
21
|
+
export default function Column({ prefixCls, options, multiple, activeValue, prevValuePath, titleIndex, onToggleOpen, onSelect, onActive, checkedSet, loadingKeys, isSelectable, searchValue }: ColumnProps): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RefOptionListProps } from
|
|
2
|
-
import * as React from
|
|
1
|
+
import type { RefOptionListProps } from 'rc-select/lib/OptionList';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const RefOptionList: React.ForwardRefExoticComponent<React.RefAttributes<RefOptionListProps>>;
|
|
4
4
|
export default RefOptionList;
|
package/Cascader/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Cascader from './Cascader';
|
|
2
2
|
import './index.scss';
|
|
3
|
-
export type { CascaderProps, FieldNames, ShowSearchType, DefaultOptionType, BaseOptionType, SingleCascaderProps, MultipleCascaderProps
|
|
3
|
+
export type { CascaderProps, FieldNames, ShowSearchType, DefaultOptionType, BaseOptionType, SingleCascaderProps, MultipleCascaderProps } from './Cascader';
|
|
4
4
|
export default Cascader;
|
package/Cascader/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Cascader } from '../_verture/index-
|
|
2
|
-
export { C as default } from '../_verture/index-
|
|
1
|
+
import { C as Cascader } from '../_verture/index-92e406f4.js';
|
|
2
|
+
export { C as default } from '../_verture/index-92e406f4.js';
|
|
3
3
|
import '../_verture/defineProperty-1d116156.js';
|
|
4
4
|
import '../_verture/typeof-adeedc13.js';
|
|
5
5
|
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
@@ -27,3 +27,5 @@ import '@para-ui/icons';
|
|
|
27
27
|
import '@para-ui/icons/LoadingF';
|
|
28
28
|
import '../AutoTips/index.js';
|
|
29
29
|
import '@paraview/lib';
|
|
30
|
+
import '../_verture/useFormatMessage-703f8b20.js';
|
|
31
|
+
import '@para-ui/core/GlobalContext';
|
|
@@ -28,7 +28,7 @@ export declare function toPathOptions(valueCells: SingleValueType, options: Defa
|
|
|
28
28
|
index: number;
|
|
29
29
|
option: DefaultOptionType;
|
|
30
30
|
}[];
|
|
31
|
-
export declare function convertDataToEntities(dataNodes: DataNode[], { initWrapper, processEntity, onProcessFinished, externalGetKey, childrenPropName, fieldNames
|
|
31
|
+
export declare function convertDataToEntities(dataNodes: DataNode[], { initWrapper, processEntity, onProcessFinished, externalGetKey, childrenPropName, fieldNames }?: {
|
|
32
32
|
initWrapper?: (wrapper: any) => Wrapper;
|
|
33
33
|
processEntity?: (entity: DataEntity, wrapper: Wrapper) => void;
|
|
34
34
|
onProcessFinished?: (wrapper: Wrapper) => void;
|
package/Checkbox/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { LabelTooltipProps } from '../Label';
|
|
8
|
-
import { TooltipProps } from
|
|
8
|
+
import { TooltipProps } from '../Tooltip';
|
|
9
9
|
import './index.scss';
|
|
10
10
|
export interface CheckboxProps {
|
|
11
11
|
/** 样式class */
|