@para-ui/core 4.0.0-rc → 4.0.0-rc.2
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 +15 -21
- 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 +8 -38
- 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 +5 -5
- package/CheckboxGroup/index.d.ts +2 -2
- package/CheckboxGroup/index.js +4 -4
- package/Collapse/index.js +5 -5
- package/CollapseBox/index.js +12 -20
- package/CollapseLayout/index.js +21 -21
- 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/CopyText/index.js +3 -3
- package/DatePicker/generatePicker/index.d.ts +22 -22
- package/DatePicker/index.js +10 -9
- package/DatePicker/util.d.ts +1 -1
- package/Descriptions/index.d.ts +38 -0
- package/Descriptions/index.js +23 -0
- 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 +40 -38
- package/Drawer/interface.d.ts +4 -6
- 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 +3 -3
- 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 +9 -10
- package/FunctionModal/modalContext.d.ts +3 -3
- package/GlobalContext/componentsProps.d.ts +7 -7
- package/GlobalContext/confirmLocale.d.ts +1 -2
- package/GlobalContext/index.d.ts +2 -2
- package/GlobalContext/index.js +3 -2
- package/GlobalContext/useFormatMessage.d.ts +1 -1
- package/Help/index.js +2 -2
- package/HelperText/index.js +1 -1
- package/InputLang/index.d.ts +2 -2
- package/InputLang/index.js +8 -8
- package/InputNumber/index.d.ts +4 -2
- package/InputNumber/index.js +27 -15
- package/Label/index.js +2 -2
- package/Loading/index.js +1 -1
- package/Menu/index.js +17 -17
- package/Menu/interface.d.ts +1 -1
- package/Message/index.js +13 -13
- package/Modal/Confirm/index.d.ts +3 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +20 -17
- package/Modal/lang/index.d.ts +8 -0
- package/MultiBox/index.d.ts +2 -2
- package/MultiBox/index.js +4 -4
- package/Notification/index.js +2 -2
- package/OperateBtn/index.d.ts +2 -2
- package/OperateBtn/index.js +49 -49
- package/PageHeader/index.js +45 -34
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +19 -19
- package/PasswordRules/index.js +8 -8
- package/PopConfirm/index.js +8 -7
- 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 +43 -42
- package/Progress/utils.d.ts +4 -4
- package/Querying/index.d.ts +1 -1
- package/Querying/index.js +3 -3
- package/README.md +7 -0
- package/Radio/index.d.ts +1 -1
- package/Radio/index.js +5 -5
- package/RadioGroup/index.d.ts +2 -2
- package/RadioGroup/index.js +4 -4
- package/Search/index.js +1 -1
- package/Select/index.d.ts +3 -3
- package/Select/index.js +43 -43
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +26 -34
- package/Selector/interface.d.ts +6 -6
- package/SelectorPicker/index.d.ts +4 -4
- package/SelectorPicker/index.js +10 -10
- package/SingleBox/index.d.ts +2 -2
- package/SingleBox/index.js +4 -4
- package/Slider/index.js +1 -1
- package/Slider/interface.d.ts +1 -1
- package/Status/index.d.ts +4 -4
- package/Status/index.js +6 -7
- package/Stepper/index.d.ts +5 -5
- package/Stepper/index.js +23 -23
- package/Styles/theme.scss +1 -0
- package/Switch/index.d.ts +7 -7
- package/Switch/index.js +38 -21
- 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 +35 -35
- 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 +27 -19
- 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 +19 -16
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +2 -2
- 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 +18 -11
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.js +22 -25
- 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 +10 -11
- package/Upload/interface.d.ts +1 -1
- package/_verture/{index-8469865e.js → index-024bbc9b.js} +3 -3
- package/_verture/{index-19947788.js → index-05f7bf11.js} +3 -1
- package/_verture/{index-e1b800aa.js → index-50f56891.js} +49 -25
- package/_verture/{index-1c8d3e94.js → index-649b450f.js} +102 -48
- package/_verture/{index-47297a40.js → index-692e29c1.js} +53 -46
- package/_verture/{modalContext-670eab09.js → modalContext-11c51a45.js} +25 -25
- package/index.d.ts +4 -0
- package/index.js +14 -11
- package/locale/en-US.d.ts +19 -0
- package/locale/index.d.ts +38 -0
- package/locale/index.js +40 -2
- package/locale/zh-CN.d.ts +19 -0
- package/package.json +4 -2
- 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 +4 -4
- package/umd/Checkbox.js +2 -2
- package/umd/CheckboxGroup.js +2 -2
- package/umd/Collapse.js +5 -5
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +2 -2
- package/umd/DatePicker.js +2 -2
- package/umd/Descriptions.js +1 -0
- 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/Empty.js +1 -1
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +4 -4
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +2 -2
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +2 -2
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +2 -2
- package/umd/Loading.js +1 -1
- package/umd/Menu.js +3 -3
- package/umd/Message.js +2 -2
- package/umd/Modal.js +4 -4
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +2 -2
- package/umd/OperateBtn.js +4 -4
- package/umd/PageHeader.js +4 -4
- package/umd/Pagination.js +2 -2
- package/umd/PasswordRules.js +4 -4
- package/umd/PopConfirm.js +2 -2
- package/umd/Progress.js +3 -3
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +2 -2
- package/umd/RadioGroup.js +2 -2
- package/umd/Search.js +7 -7
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +2 -2
- package/umd/Slider.js +1 -1
- package/umd/Status.js +2 -2
- package/umd/Stepper.js +1 -1
- package/umd/Switch.js +5 -5
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +6 -6
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +2 -2
- package/umd/Title.js +7 -7
- package/umd/ToggleButton.js +4 -4
- package/umd/Transfer.js +3 -3
- package/umd/Tree.js +2 -2
- package/umd/Upload.js +2 -2
- package/umd/locale.js +1 -1
package/Message/index.js
CHANGED
|
@@ -11,15 +11,15 @@ import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
|
11
11
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
12
12
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
13
13
|
|
|
14
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/1 下午5:48\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-message-box {\n /*从上到下进入*/\n /*从上到下*/\n}\n.paraui-v4-message-box--message-float {\n position: fixed;\n top: 3%;\n left: 0;\n z-index: 9999;\n text-align: center;\n width: 100%;\n pointer-events: none;\n}\n.paraui-v4-message-box .msg-icon {\n position: absolute;\n top:
|
|
14
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/1 下午5:48\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-message-box {\n /*从上到下进入*/\n /*从上到下*/\n}\n.paraui-v4-message-box--message-float {\n position: fixed;\n top: 3%;\n left: 0;\n z-index: 9999;\n text-align: center;\n width: 100%;\n pointer-events: none;\n}\n.paraui-v4-message-box .msg-icon {\n position: absolute;\n top: 11px;\n left: 16px;\n line-height: 0;\n}\n.paraui-v4-message-box .msg-icon svg {\n font-size: 18px;\n color: currentColor;\n}\n.paraui-v4-message-box .msg-text {\n display: inline-block;\n width: 352px;\n word-wrap: break-word;\n margin-right: 32px;\n margin-left: 24px;\n line-height: 20px;\n word-break: break-all;\n}\n.paraui-v4-message-box .msg-text--title {\n font-weight: 700;\n}\n.paraui-v4-message-box .msg-text--noicon {\n margin-left: 0;\n}\n.paraui-v4-message-box .msg-text .msg-desc {\n display: block;\n margin-top: 8px;\n font-weight: 400;\n word-wrap: break-word;\n}\n.paraui-v4-message-box .msg-close {\n width: 18px;\n height: 18px;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n right: 16px;\n top: 11px;\n cursor: pointer;\n line-height: 0;\n pointer-events: auto;\n}\n.paraui-v4-message-box .msg-close svg {\n font-size: 18px;\n color: currentColor;\n}\n.paraui-v4-message-box .msg-item-fill .msg-wrapper {\n width: 100%;\n}\n.paraui-v4-message-box .msg-wrapper {\n position: relative;\n display: inline-block;\n margin: 10px auto;\n min-height: 40px;\n padding: 10px 16px;\n border-radius: 4px;\n font-size: 14px;\n text-align: left;\n}\n.paraui-v4-message-box .msg-wrapper.msg-wrapper-title {\n padding: 16px 16px;\n}\n.paraui-v4-message-box .msg-wrapper.msg-wrapper-title .msg-icon {\n top: 17px;\n}\n.paraui-v4-message-box .msg-wrapper.msg-wrapper-title .msg-close {\n top: 17px;\n}\n.paraui-v4-message-box .msg-info {\n background-color: rgb(240, 245, 255);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-message-box .msg-info .msg-close {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-message-box .msg-info .msg-close:hover {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-message-box .msg-warn {\n background-color: rgb(255, 246, 235);\n color: rgb(255, 147, 38);\n}\n.paraui-v4-message-box .msg-warn .msg-close {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-message-box .msg-warn .msg-close:hover {\n background-color: rgba(255, 147, 38, 0.1);\n}\n.paraui-v4-message-box .msg-error {\n background-color: rgb(255, 235, 235);\n color: rgb(244, 66, 66);\n}\n.paraui-v4-message-box .msg-error .msg-close {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-message-box .msg-error .msg-close:hover {\n background-color: rgba(244, 66, 66, 0.1);\n}\n.paraui-v4-message-box .msg-success {\n background-color: rgb(232, 252, 239);\n color: rgb(19, 191, 76);\n}\n.paraui-v4-message-box .msg-success .msg-close {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-message-box .msg-success .msg-close:hover {\n background-color: rgba(19, 191, 76, 0.1);\n}\n.paraui-v4-message-box .message-fadeInDown {\n animation-duration: 0.5s;\n animation-name: messageFadeInDown;\n}\n@keyframes messageFadeInDown {\n from {\n opacity: 0;\n transform: translate(0, -50px); /* 标准语法 */\n }\n to {\n opacity: 1;\n transform: translate(0, 0); /* 标准语法 */\n }\n}";
|
|
15
15
|
styleInject(css_248z);
|
|
16
16
|
|
|
17
17
|
//图标map
|
|
18
18
|
var iconMapping = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
info: jsx(WarningCircleF, {}),
|
|
20
|
+
warn: jsx(WarningCircleF, {}),
|
|
21
|
+
error: jsx(CloseCircleF, {}),
|
|
22
|
+
success: jsx(CompleteIcon, {})
|
|
23
23
|
};
|
|
24
24
|
//获取window
|
|
25
25
|
var getMsgWindow = function getMsgWindow() {
|
|
@@ -37,7 +37,7 @@ var template = function template(_ref) {
|
|
|
37
37
|
hideIcon = _ref.hideIcon;
|
|
38
38
|
var item = document.createElement('div');
|
|
39
39
|
item.className = "msg-item";
|
|
40
|
-
item.id = id ||
|
|
40
|
+
item.id = id || '';
|
|
41
41
|
item.innerHTML = "<div class=\"msg-wrapper message-fadeInDown msg-".concat(type, "\">\n ").concat(icon ? "<div class=\"msg-icon\"></div>" : '', "\n <div class=\"msg-text\"></div>\n ").concat(close ? "<div class=\"msg-close\"></div>" : '', "\n </div>\n ");
|
|
42
42
|
var msgWrapper = item.querySelector('.msg-wrapper');
|
|
43
43
|
var msgBox = item.querySelector('.msg-text');
|
|
@@ -72,7 +72,7 @@ var MessageBar = function MessageBar(props) {
|
|
|
72
72
|
type = props.type;
|
|
73
73
|
var pId = createParentId();
|
|
74
74
|
var mId = getMsgId();
|
|
75
|
-
var cls = getParentClassName(props.className ||
|
|
75
|
+
var cls = getParentClassName(props.className || '');
|
|
76
76
|
if (className) cls += " ".concat(className);
|
|
77
77
|
useEffect(function () {
|
|
78
78
|
var parent = document.getElementById(pId);
|
|
@@ -94,7 +94,7 @@ var MessageBar = function MessageBar(props) {
|
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
var createParentId = function createParentId() {
|
|
97
|
-
return "msgbox_"
|
|
97
|
+
return "msgbox_".concat(String(Math.random() * 100000 | 0 + new Date().getTime()));
|
|
98
98
|
};
|
|
99
99
|
//消息box id
|
|
100
100
|
var parentId = createParentId();
|
|
@@ -125,7 +125,7 @@ var renderContent = function renderContent(box, _ref2, removeTime, autoClose, fi
|
|
|
125
125
|
desc: desc,
|
|
126
126
|
hideIcon: hideIcon
|
|
127
127
|
});
|
|
128
|
-
if (fill && item) item.classList.add(
|
|
128
|
+
if (fill && item) item.classList.add('msg-item-fill');
|
|
129
129
|
box === null || box === void 0 ? void 0 : box.appendChild(item);
|
|
130
130
|
var iconDom = document.querySelector("#".concat(id, " .msg-icon"));
|
|
131
131
|
if (iconDom && icon && !hideIcon) ReactDOM.render(icon, iconDom);
|
|
@@ -154,7 +154,7 @@ var Msg = function Msg(config, removeTime, type, parentId) {
|
|
|
154
154
|
duration = (_b = getMsgConf().duration) !== null && _b !== void 0 ? _b : removeTime,
|
|
155
155
|
className = '';
|
|
156
156
|
var autoClose = !isNaN(duration) && duration > 0;
|
|
157
|
-
if (typeof config ===
|
|
157
|
+
if (typeof config === 'string') text = config;else if (_typeof(config) === 'object') {
|
|
158
158
|
text = config.text || '';
|
|
159
159
|
desc = config.desc;
|
|
160
160
|
icon = config.icon || iconMapping[type];
|
|
@@ -162,7 +162,7 @@ var Msg = function Msg(config, removeTime, type, parentId) {
|
|
|
162
162
|
hideIcon = config.hideIcon || false;
|
|
163
163
|
if (config.maxCount > 0) maxCount = config.maxCount || Infinity;
|
|
164
164
|
}
|
|
165
|
-
if (_typeof(config) ===
|
|
165
|
+
if (_typeof(config) === 'object' && typeof config.close === 'boolean') close = config.close;else close = !autoClose;
|
|
166
166
|
var parent = document.getElementById(parentId);
|
|
167
167
|
if (!parent) {
|
|
168
168
|
parent = document.createElement('div');
|
|
@@ -185,10 +185,10 @@ var Msg = function Msg(config, removeTime, type, parentId) {
|
|
|
185
185
|
dropEleWhenExceedLimit(parent, maxCount);
|
|
186
186
|
};
|
|
187
187
|
var getParentClassName = function getParentClassName(className) {
|
|
188
|
-
return "".concat($prefixCls, "-message-box").concat(className ?
|
|
188
|
+
return "".concat($prefixCls, "-message-box").concat(className ? " ".concat(className) : '');
|
|
189
189
|
};
|
|
190
190
|
var getMsgId = function getMsgId() {
|
|
191
|
-
return
|
|
191
|
+
return "msgitem_".concat(String(Math.random() * 100000 | 0 + new Date().getTime()));
|
|
192
192
|
};
|
|
193
193
|
//超出maxCount 删除之前元素
|
|
194
194
|
var dropEleWhenExceedLimit = function dropEleWhenExceedLimit(parent, maxCount) {
|
package/Modal/Confirm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { ButtonProps } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../../Button';
|
|
3
3
|
import './index.scss';
|
|
4
|
-
type ConfirmType =
|
|
4
|
+
type ConfirmType = 'success' | 'info' | 'error' | 'warn' | 'warning';
|
|
5
5
|
interface ConfirmDialogProps {
|
|
6
6
|
/**图标类型*/
|
|
7
7
|
type?: ConfirmType;
|
package/Modal/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
|
-
import { Confirm, ConfirmObject } from
|
|
3
|
+
import { Confirm, ConfirmObject } from './Confirm';
|
|
4
4
|
import './index.scss';
|
|
5
5
|
type ModalSize = 'sm' | 'md' | 'lg' | 'auto' | 'fullScreen';
|
|
6
6
|
export interface ModalProps {
|
package/Modal/index.js
CHANGED
|
@@ -6,42 +6,41 @@ import Dialog from 'rc-dialog';
|
|
|
6
6
|
import { Button } from '../Button/index.js';
|
|
7
7
|
import CloseIcon from '@para-ui/icons/Close';
|
|
8
8
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
9
|
-
import { d as defaultModalLocale } from '../_verture/index-
|
|
9
|
+
import { d as defaultModalLocale } from '../_verture/index-05f7bf11.js';
|
|
10
10
|
import ReactDOM from 'react-dom';
|
|
11
11
|
import clsx from 'clsx';
|
|
12
12
|
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
13
13
|
import AutoTips from '../AutoTips/index.js';
|
|
14
14
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
15
15
|
import CompleteIcon from '@para-ui/icons/CheckCircleF';
|
|
16
|
-
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
17
|
-
import InfoOutlined from '@para-ui/icons/WarningCircle';
|
|
18
16
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
17
|
+
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
19
18
|
import { UUID } from '@paraview/lib';
|
|
20
19
|
import { getConfirmLocale } from '@para-ui/core/GlobalContext';
|
|
21
20
|
import '../_verture/typeof-adeedc13.js';
|
|
22
21
|
import '../_verture/slicedToArray-a8206399.js';
|
|
23
22
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
24
23
|
import '@para-ui/icons/LoadingF';
|
|
25
|
-
import '@para-ui/icons/Forbid';
|
|
26
24
|
import '../Tooltip/index.js';
|
|
27
25
|
import 'rc-tooltip';
|
|
28
26
|
import 'rc-tooltip/lib/placements';
|
|
27
|
+
import '@para-ui/icons/Forbid';
|
|
29
28
|
import '@para-ui/icons/Down';
|
|
30
29
|
import '../_verture/index-e9007d6a.js';
|
|
31
30
|
import 'rc-dropdown';
|
|
32
31
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
33
32
|
import 'dayjs';
|
|
34
33
|
|
|
35
|
-
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午7:00\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-confirm.paraui-v4-modal .paraui-v4-modal-body {\n padding: 0;\n}\n.paraui-v4-confirm .confirm-wrapper {\n width: 416px;\n outline: none;\n}\n.paraui-v4-confirm .confirm-content {\n position: relative;\n padding:
|
|
34
|
+
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午7:00\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-confirm.paraui-v4-modal .paraui-v4-modal-body {\n padding: 0;\n}\n.paraui-v4-confirm .confirm-wrapper {\n width: 416px;\n outline: none;\n}\n.paraui-v4-confirm .confirm-content {\n position: relative;\n padding: 16px;\n border-radius: 8px;\n}\n.paraui-v4-confirm .confirm-content-close {\n position: absolute;\n top: 16px;\n right: 16px;\n border: none;\n}\n.paraui-v4-confirm .confirm-content-close svg {\n font-size: 18px;\n}\n.paraui-v4-confirm .confirm-content-icon {\n float: left;\n margin-top: 2px;\n color: rgb(255, 147, 38);\n}\n.paraui-v4-confirm .confirm-content-icon svg {\n font-size: 18px;\n color: inherit;\n}\n.paraui-v4-confirm .confirm-content-icon--warn, .paraui-v4-confirm .confirm-content-icon-warning {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-confirm .confirm-content-icon--error {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-confirm .confirm-content-icon--success {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-confirm .confirm-content-icon--info {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-confirm .confirm-content-body {\n margin: 0 16px 0 26px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-confirm .confirm-content-body .confirm-body-title {\n display: block;\n margin-bottom: 10px;\n font-size: 14px;\n font-weight: 700;\n}\n.paraui-v4-confirm .confirm-content-actions {\n margin-top: 12px;\n text-align: right;\n}\n.paraui-v4-confirm .confirm-content-actions > button + button {\n margin-left: 16px;\n}";
|
|
36
35
|
styleInject(css_248z$1);
|
|
37
36
|
|
|
38
37
|
//图标
|
|
39
38
|
var iconMap = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
success: jsx(CompleteIcon, {}),
|
|
40
|
+
warn: jsx(WarningCircleF, {}),
|
|
41
|
+
warning: jsx(WarningCircleF, {}),
|
|
42
|
+
error: jsx(CloseCircleF, {}),
|
|
43
|
+
info: jsx(WarningCircleF, {})
|
|
45
44
|
};
|
|
46
45
|
//confirm modal
|
|
47
46
|
var ConfirmDialog = function ConfirmDialog(props) {
|
|
@@ -110,7 +109,11 @@ var ConfirmDialog = function ConfirmDialog(props) {
|
|
|
110
109
|
}))]
|
|
111
110
|
}));
|
|
112
111
|
};
|
|
113
|
-
return jsx(Modal, Object.assign({
|
|
112
|
+
return jsx(Modal, Object.assign({
|
|
113
|
+
bodyStyle: {
|
|
114
|
+
minHeight: 'auto'
|
|
115
|
+
}
|
|
116
|
+
}, restProps, {
|
|
114
117
|
onOk: handleOk,
|
|
115
118
|
onCancel: handleCancel,
|
|
116
119
|
title: "",
|
|
@@ -227,7 +230,7 @@ var Confirm = {
|
|
|
227
230
|
destroyAll: destroyAllConfirm
|
|
228
231
|
};
|
|
229
232
|
|
|
230
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/13 下午6:54\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-modal-close {\n color: rgb(92, 101, 115);\n}\n\n.paraui-v4-modal {\n
|
|
233
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/6/13 下午6:54\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-modal-close {\n color: rgb(92, 101, 115);\n}\n\n.paraui-v4-modal {\n position: relative;\n top: 100px;\n width: auto;\n max-width: calc(100vw - 32px);\n padding-bottom: 24px;\n margin: 0 auto;\n font-size: 14px;\n line-height: 1.5715;\n color: rgb(29, 33, 38);\n pointer-events: none;\n}\n.paraui-v4-modal.paraui-v4-modal-sm .paraui-v4-modal-content {\n width: 430px;\n max-height: 250px;\n}\n.paraui-v4-modal.paraui-v4-modal-md .paraui-v4-modal-content {\n width: 486px;\n max-height: 610px;\n}\n.paraui-v4-modal.paraui-v4-modal-lg .paraui-v4-modal-content {\n width: 948px;\n max-height: 610px;\n}\n.paraui-v4-modal.paraui-v4-modal-fullscreen {\n width: 100%;\n max-width: 100%;\n height: 100%;\n}\n.paraui-v4-modal.paraui-v4-modal-zoom-enter, .paraui-v4-modal.paraui-v4-modal-zoom-appear {\n user-select: none;\n opacity: 0;\n transform: none;\n animation-duration: 0.3s;\n}\n.paraui-v4-modal-mask {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1500;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n}\n.paraui-v4-modal-mask-hidden {\n display: none;\n}\n.paraui-v4-modal-wrap {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1500;\n overflow: auto;\n outline: 0;\n -webkit-overflow-scrolling: touch;\n}\n.paraui-v4-modal .paraui-v4-modal-content {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow-y: auto;\n pointer-events: auto;\n background-color: white;\n border-radius: 4px;\n}\n.paraui-v4-modal.paraui-v4-modal-without-mask .paraui-v4-modal-content {\n box-shadow: 0 2px 8px 0 rgb(234, 236, 241);\n}\n.paraui-v4-modal .paraui-v4-modal-title {\n position: relative;\n height: 50px;\n padding: 15px 20px;\n font-size: 14px;\n font-weight: 700;\n line-height: 20px;\n color: rgb(29, 33, 38);\n overflow-wrap: break-word;\n}\n.paraui-v4-modal .paraui-v4-modal-title .paraui-v4-modal-close {\n position: absolute;\n top: 11px;\n right: 15px;\n z-index: 10;\n border: 0;\n}\n.paraui-v4-modal .paraui-v4-modal-title .paraui-v4-modal-close .paraui-v4-modal-close-icon {\n font-size: 18px;\n}\n.paraui-v4-modal .paraui-v4-modal-title .paraui-v4-modal-title-text {\n width: calc(100% - 28px);\n}\n.paraui-v4-modal .paraui-v4-modal-body {\n flex: auto;\n padding: 0 20px;\n overflow-y: auto;\n overflow-wrap: break-word;\n}\n.paraui-v4-modal .paraui-v4-modal-footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n height: 72px;\n padding: 0 20px;\n text-align: right;\n}\n.paraui-v4-modal .paraui-v4-modal-footer > button + button {\n margin-left: 16px;\n}\n.paraui-v4-modal-open {\n overflow: hidden;\n}\n.paraui-v4-modal-centered {\n text-align: center;\n}\n.paraui-v4-modal-centered::before {\n display: inline-block;\n width: 0;\n height: 100%;\n vertical-align: middle;\n content: \"\";\n}\n.paraui-v4-modal-centered .paraui-v4-modal {\n top: 0;\n display: inline-block;\n padding-bottom: 0;\n text-align: left;\n vertical-align: middle;\n}\n@media (max-width: 767px) {\n .paraui-v4-modal .paraui-v4-modal {\n max-width: calc(100vw - 16px);\n margin: 8px auto;\n }\n .paraui-v4-modal .paraui-v4-modal-centered .paraui-v4-modal {\n flex: 1;\n }\n}\n\n.paraui-v4-modal-zoom-enter,\n.paraui-v4-modal-zoom-appear {\n opacity: 0;\n transform: scale(0);\n animation-duration: 0.2s;\n animation-play-state: paused;\n animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);\n animation-fill-mode: both;\n}\n\n.paraui-v4-modal-zoom-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);\n}\n\n.paraui-v4-modal-zoom-enter.paraui-v4-modal-zoom-enter-active,\n.paraui-v4-modal-zoom-appear.paraui-v4-modal-zoom-appear-active {\n animation-name: paraui-v4ModalZoomIn;\n animation-play-state: running;\n}\n\n.paraui-v4-modal-zoom-leave.paraui-v4-modal-zoom-leave-active {\n pointer-events: none;\n animation-name: paraui-v4ModalZoomOut;\n animation-play-state: running;\n}\n\n.paraui-v4-modal-zoom-enter-prepare,\n.paraui-v4-modal-zoom-appear-prepare {\n transform: none;\n}\n\n.paraui-v4-modal-fade-enter,\n.paraui-v4-modal-fade-appear {\n opacity: 0;\n animation-duration: 0.2s;\n animation-play-state: paused;\n animation-timing-function: linear;\n animation-fill-mode: both;\n}\n\n.paraui-v4-modal-fade-leave {\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-play-state: paused;\n animation-timing-function: linear;\n}\n\n.paraui-v4-modal-fade-enter.paraui-v4-modal-fade-enter-active,\n.paraui-v4-modal-fade-appear.paraui-v4-modal-fade-appear-active {\n animation-name: paraui-v4ModalFadeIn;\n animation-play-state: running;\n}\n\n.paraui-v4-modal-fade-leave.paraui-v4-modal-fade-leave-active {\n pointer-events: none;\n animation-name: paraui-v4ModalFadeOut;\n animation-play-state: running;\n}\n\n@keyframes paraui-v4ModalZoomIn {\n 0% {\n opacity: 0;\n transform: scale(0.2);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes paraui-v4ModalZoomOut {\n 0% {\n transform: scale(1);\n }\n 100% {\n opacity: 0;\n transform: scale(0.2);\n }\n}\n@keyframes paraui-v4ModalFadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes paraui-v4ModalFadeOut {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}";
|
|
231
234
|
styleInject(css_248z);
|
|
232
235
|
|
|
233
236
|
//鼠标位置内部使用
|
|
@@ -324,12 +327,12 @@ var Modal = function Modal(props) {
|
|
|
324
327
|
};
|
|
325
328
|
//自定义内容样式
|
|
326
329
|
var getContentStyle = function getContentStyle() {
|
|
327
|
-
return Object.assign(Object.assign(
|
|
328
|
-
width: contentWidth,
|
|
329
|
-
height: contentHeight,
|
|
330
|
+
return Object.assign(Object.assign({
|
|
330
331
|
maxHeight: 478,
|
|
331
|
-
minHeight: 118
|
|
332
|
-
|
|
332
|
+
minHeight: 118,
|
|
333
|
+
width: contentWidth,
|
|
334
|
+
height: contentHeight
|
|
335
|
+
}, bodyStyle), contentStyle);
|
|
333
336
|
};
|
|
334
337
|
//header
|
|
335
338
|
var renderHeader = function renderHeader() {
|
package/Modal/lang/index.d.ts
CHANGED
package/MultiBox/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { TextFieldProps } from '../TextField';
|
|
8
|
-
import { LabelTooltipProps } from
|
|
9
|
-
import { HelperTextDetailProps } from
|
|
8
|
+
import { LabelTooltipProps } from '../Label';
|
|
9
|
+
import { HelperTextDetailProps } from '../HelperText';
|
|
10
10
|
import './index.scss';
|
|
11
11
|
interface ReplaceFieldsProps {
|
|
12
12
|
/** key索引 */
|
package/MultiBox/index.js
CHANGED
|
@@ -47,7 +47,7 @@ var localeJson = {
|
|
|
47
47
|
en: en
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-multi-box {\n width: 100%;\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}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item {\n display: flex;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input {\n flex: 1;\n display: flex;\n align-items: center;\n align-items: flex-start;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input.multi-box-content-item-input-error > .multi-box-separator {\n padding-bottom: 20px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field:first-child {\n margin-right: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field {\n flex: 1;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field .paraui-v4-helper-text {\n min-height: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-separator {\n padding-bottom: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n margin: 0 10px;\n line-height: 1;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box {\n display: flex;\n align-items: center;\n margin-left: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n cursor: pointer;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box svg {\n font-size: 20px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box > .multi-box-add {\n text-align: center;\n border: 1px dashed;\n border-color: rgb(212, 218, 227);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n cursor: pointer;\n background-color: rgb(247, 248, 250);\n color: rgb(46, 101, 230);\n font-size: 14px;\n}\n.paraui-v4-multi-box > .multi-box-add > svg {\n font-size: 16px;\n color: rgb(46, 101, 230);\n margin-right:
|
|
50
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-multi-box {\n width: 100%;\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}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item {\n display: flex;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input {\n flex: 1;\n display: flex;\n align-items: center;\n align-items: flex-start;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input.multi-box-content-item-input-error > .multi-box-separator {\n padding-bottom: 20px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field:first-child {\n margin-right: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field {\n flex: 1;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field .paraui-v4-helper-text {\n min-height: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-separator {\n padding-bottom: 10px;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n margin: 0 10px;\n line-height: 1;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box {\n display: flex;\n align-items: center;\n margin-left: 10px;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n cursor: pointer;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover svg {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-multi-box > .multi-box-content > .multi-box-content-item > .opera-box > .del-box svg {\n font-size: 20px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box > .multi-box-add {\n text-align: center;\n border: 1px dashed;\n border-color: rgb(212, 218, 227);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 4px;\n cursor: pointer;\n background-color: rgb(247, 248, 250);\n color: rgb(46, 101, 230);\n font-size: 14px;\n}\n.paraui-v4-multi-box > .multi-box-add > svg {\n font-size: 16px;\n color: rgb(46, 101, 230);\n margin-right: 4px;\n}\n.paraui-v4-multi-box > .multi-box-add:hover {\n border-color: rgb(87, 131, 235);\n background-color: rgb(240, 245, 255);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-separator > .multi-box-content > .multi-box-content-item > .multi-box-content-item-input > .multi-box-text-field:first-child {\n margin-right: 0;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n cursor: not-allowed;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover {\n background-color: transparent;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box:hover svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-content > .multi-box-content-item > .opera-box > .del-box svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-add {\n border-color: rgb(212, 218, 227);\n cursor: not-allowed;\n background-color: rgb(247, 248, 250);\n color: rgb(161, 168, 179);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-add > svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-disabled > .multi-box-add:hover {\n border-color: rgb(212, 218, 227);\n color: rgb(161, 168, 179);\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-small > .multi-box-add {\n height: 28px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-small > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 28px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-small > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 28px;\n height: 28px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-medium > .multi-box-add {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-medium > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-medium > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 32px;\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-large > .multi-box-add {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-large > .multi-box-content > .multi-box-content-item > .opera-box {\n height: 32px;\n}\n.paraui-v4-multi-box.paraui-v4-multi-box-large > .multi-box-content > .multi-box-content-item > .opera-box > .del-box {\n width: 32px;\n height: 32px;\n}";
|
|
51
51
|
styleInject(css_248z);
|
|
52
52
|
|
|
53
53
|
var MultiBox = function MultiBox(props) {
|
|
@@ -156,7 +156,7 @@ var MultiBox = function MultiBox(props) {
|
|
|
156
156
|
var handLabelClass = function handLabelClass() {
|
|
157
157
|
var str = 'multi-box-label';
|
|
158
158
|
if (labelTooltip && labelTooltip.className) {
|
|
159
|
-
str +=
|
|
159
|
+
str += " ".concat(labelTooltip.className);
|
|
160
160
|
}
|
|
161
161
|
return str;
|
|
162
162
|
};
|
|
@@ -251,8 +251,8 @@ var MultiBox = function MultiBox(props) {
|
|
|
251
251
|
};
|
|
252
252
|
/** 处理class */
|
|
253
253
|
var handClass = function handClass() {
|
|
254
|
-
var str = $prefixCls
|
|
255
|
-
if (className) str +=
|
|
254
|
+
var str = "".concat($prefixCls, "-multi-box multi-box");
|
|
255
|
+
if (className) str += " ".concat(className);
|
|
256
256
|
if (size) str += " ".concat($prefixCls, "-multi-box-").concat(size);
|
|
257
257
|
if (error) str += " ".concat($prefixCls, "-multi-box-error");
|
|
258
258
|
if (disabled === true) str += " ".concat($prefixCls, "-multi-box-disabled");
|
package/Notification/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
|
11
11
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
12
12
|
import '../_verture/typeof-adeedc13.js';
|
|
13
13
|
|
|
14
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n * @author Hanz\n * @date 2022/1/13 上午10:30\n * @description 通知提醒框\n */\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-notification {\n position: fixed;\n padding: 0;\n color: rgb(29, 33, 38);\n font-size: 14px;\n z-index: 9999;\n}\n.paraui-v4-notification-topLeft .paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-bottomLeft .paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-topLeft .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active, .paraui-v4-notification-bottomLeft .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active {\n animation-name: NotificationLeftFadeIn;\n}\n.paraui-v4-notification-hook-holder, .paraui-v4-notification-notice {\n position: relative;\n width: 440px;\n max-width: calc(100vw - 48px);\n margin-top: 20px;\n margin-left: auto;\n overflow: hidden;\n word-wrap: break-word;\n background: #fff;\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px
|
|
14
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n * @author Hanz\n * @date 2022/1/13 上午10:30\n * @description 通知提醒框\n */\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-notification {\n position: fixed;\n padding: 0;\n color: rgb(29, 33, 38);\n font-size: 14px;\n z-index: 9999;\n}\n.paraui-v4-notification-topLeft .paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-bottomLeft .paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-topLeft .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active, .paraui-v4-notification-bottomLeft .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active {\n animation-name: NotificationLeftFadeIn;\n}\n.paraui-v4-notification-hook-holder, .paraui-v4-notification-notice {\n position: relative;\n width: 440px;\n max-width: calc(100vw - 48px);\n margin-top: 20px;\n margin-left: auto;\n overflow: hidden;\n word-wrap: break-word;\n background: #fff;\n border-radius: 4px;\n box-shadow: 0px 2px 8px 0px rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-notification-hook-holder:first-child, .paraui-v4-notification-notice:first-child {\n margin-top: 0;\n}\n.paraui-v4-notification-topLeft .paraui-v4-notification-hook-holder, .paraui-v4-notification-topLeft .paraui-v4-notification-notice, .paraui-v4-notification-bottomLeft .paraui-v4-notification-hook-holder, .paraui-v4-notification-bottomLeft .paraui-v4-notification-notice {\n margin-right: auto;\n margin-left: 0;\n}\n.paraui-v4-notification-hook-holder > .paraui-v4-notification-notice {\n margin-bottom: 0;\n box-shadow: none;\n}\n.paraui-v4-notification-notice {\n padding: 16px;\n line-height: 1.5715;\n}\n.paraui-v4-notification-notice-content {\n position: relative;\n}\n.paraui-v4-notification-notice-message {\n margin-bottom: 10px;\n color: rgb(29, 33, 38);\n font-size: 14px;\n font-weight: 700;\n line-height: 20px;\n}\n.paraui-v4-notification-notice-message-single-line-auto-margin {\n display: block;\n width: calc(264px - 100%);\n max-width: 4px;\n background-color: transparent;\n pointer-events: none;\n}\n.paraui-v4-notification-notice-message-single-line-auto-margin::before {\n display: block;\n content: \"\";\n}\n.paraui-v4-notification-notice-description {\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n}\n.paraui-v4-notification-notice-closable .paraui-v4-notification-notice-message {\n padding-right: 24px;\n}\n.paraui-v4-notification-notice-with-icon .paraui-v4-notification-notice-message {\n margin-bottom: 8px;\n margin-left: 24px;\n}\n.paraui-v4-notification-notice-with-icon .paraui-v4-notification-notice-description {\n margin-left: 24px;\n}\n.paraui-v4-notification-notice-without-description .paraui-v4-notification-notice-message {\n margin-bottom: 0;\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon {\n position: absolute;\n top: 0px;\n font-size: 18px;\n line-height: 24px;\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-success {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-info {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-warning {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-notification .paraui-v4-notification-notice-icon-error {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-notification-notice-close {\n position: absolute;\n top: 16px;\n right: 16px;\n color: rgb(92, 101, 115);\n outline: none;\n}\n.paraui-v4-notification-notice-close:hover {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-notification .paraui-v4-notification-close-icon {\n font-size: 18px;\n cursor: pointer;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-notification .paraui-v4-notification-close-icon:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-notification-notice-btn {\n float: right;\n margin-top: 12px;\n}\n.paraui-v4-notification .notification-fade-effect {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n}\n.paraui-v4-notification-fade-enter, .paraui-v4-notification-fade-appear {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n opacity: 0;\n animation-play-state: paused;\n}\n.paraui-v4-notification-fade-leave {\n animation-duration: 0.24s;\n animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);\n animation-fill-mode: both;\n animation-play-state: paused;\n}\n.paraui-v4-notification-fade-enter.paraui-v4-notification-fade-enter-active, .paraui-v4-notification-fade-appear.paraui-v4-notification-fade-appear-active {\n animation-name: NotificationFadeIn;\n animation-play-state: running;\n}\n.paraui-v4-notification-fade-leave.paraui-v4-notification-fade-leave-active {\n animation-name: NotificationFadeOut;\n animation-play-state: running;\n}\n@keyframes NotificationFadeIn {\n 0% {\n left: 440px;\n opacity: 0;\n }\n 100% {\n left: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationLeftFadeIn {\n 0% {\n right: 440px;\n opacity: 0;\n }\n 100% {\n right: 0;\n opacity: 1;\n }\n}\n@keyframes NotificationFadeOut {\n 0% {\n max-height: 150px;\n margin-bottom: 16px;\n opacity: 1;\n }\n 100% {\n max-height: 0;\n margin-bottom: 0;\n padding-top: 0;\n padding-bottom: 0;\n opacity: 0;\n }\n}";
|
|
15
15
|
styleInject(css_248z);
|
|
16
16
|
|
|
17
17
|
//通知框实例存储
|
|
@@ -198,7 +198,7 @@ function getNoticeProps(args, prefixCls) {
|
|
|
198
198
|
}) : null;
|
|
199
199
|
return {
|
|
200
200
|
content: jsxs("div", Object.assign({
|
|
201
|
-
className: "".concat(iconNode ? "".concat(prefixCls, "-with-icon") : '', " ").concat(description ? '' : prefixCls
|
|
201
|
+
className: "".concat(iconNode ? "".concat(prefixCls, "-with-icon") : '', " ").concat(description ? '' : "".concat(prefixCls, "-without-description"))
|
|
202
202
|
}, {
|
|
203
203
|
children: [iconNode, jsxs("div", Object.assign({
|
|
204
204
|
className: "".concat(prefixCls, "-message")
|
package/OperateBtn/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface OperateBtnListProps {
|
|
|
20
20
|
/** 图标 */
|
|
21
21
|
icon?: React.ReactNode;
|
|
22
22
|
/** 定位方向 */
|
|
23
|
-
placement?:
|
|
23
|
+
placement?: 'top-start' | 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top';
|
|
24
24
|
/** 是否禁用 */
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
/** 设置危险按钮 */
|
|
@@ -49,7 +49,7 @@ export interface OperateBtnProps {
|
|
|
49
49
|
/** 下拉框样式 */
|
|
50
50
|
popoverClassName?: string;
|
|
51
51
|
/** 定位方向 */
|
|
52
|
-
placement?:
|
|
52
|
+
placement?: 'top-start' | 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top';
|
|
53
53
|
/** 点击是否关闭更多 */
|
|
54
54
|
clickCloseMore?: boolean;
|
|
55
55
|
/** 点击事件, 如果listItem里面存在onClick事件,则不触发改事件 */
|
package/OperateBtn/index.js
CHANGED
|
@@ -9,23 +9,36 @@ import { Tooltip } from '../Tooltip/index.js';
|
|
|
9
9
|
import { Popover } from '../Popover/index.js';
|
|
10
10
|
import AutoTips from '../AutoTips/index.js';
|
|
11
11
|
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
12
|
+
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
13
|
+
import clsx from 'clsx';
|
|
12
14
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
13
15
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
14
16
|
import '../_verture/typeof-c310ee4a.js';
|
|
15
17
|
import '../_verture/typeof-adeedc13.js';
|
|
16
|
-
import 'clsx';
|
|
17
18
|
import '@para-ui/icons/LoadingF';
|
|
18
|
-
import '@para-ui/icons/Forbid';
|
|
19
19
|
import '@para-ui/icons/Down';
|
|
20
20
|
import '../_verture/index-e9007d6a.js';
|
|
21
21
|
import 'rc-dropdown';
|
|
22
22
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
23
23
|
import 'dayjs';
|
|
24
24
|
import '@paraview/lib';
|
|
25
|
-
import '../_verture/useFormatMessage-703f8b20.js';
|
|
26
|
-
import '@para-ui/core/GlobalContext';
|
|
27
25
|
import 'rc-tooltip';
|
|
28
26
|
import 'rc-tooltip/lib/placements';
|
|
27
|
+
import '@para-ui/icons/Forbid';
|
|
28
|
+
import '@para-ui/core/GlobalContext';
|
|
29
|
+
|
|
30
|
+
var en = {
|
|
31
|
+
more: 'more'
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
var zh = {
|
|
35
|
+
more: '更多'
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var localeJson = {
|
|
39
|
+
zh: zh,
|
|
40
|
+
en: en
|
|
41
|
+
};
|
|
29
42
|
|
|
30
43
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2022/4/13 10:48 AM\n* @description 表格操作按钮\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-operate-btn {\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 display: flex;\n align-items: center;\n}\n.paraui-v4-operate-btn > .operate-btn-line {\n display: inline-block;\n width: 1px;\n background-color: rgb(213, 224, 250);\n margin: 0 10px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-small > .operate-btn-line {\n height: 12px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-small button svg {\n font-size: 18px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-medium > .operate-btn-line {\n height: 12px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-medium button svg {\n font-size: 18px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-large > .operate-btn-line {\n height: 12px;\n}\n.paraui-v4-operate-btn.paraui-v4-operate-btn-large button svg {\n font-size: 18px;\n}\n\n.paraui-v4-operate-btn-popover .operate-btn-list {\n padding: 4px 0;\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item {\n padding: 0 10px;\n max-width: 120px;\n cursor: pointer;\n color: rgb(29, 33, 38);\n line-height: 30px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item-disabled {\n cursor: not-allowed;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item-disabled:hover {\n background-color: white;\n}\n.paraui-v4-operate-btn-popover .operate-btn-list > .operate-btn-list-item-danger {\n color: rgb(244, 66, 66);\n}";
|
|
31
44
|
styleInject(css_248z);
|
|
@@ -48,6 +61,7 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
48
61
|
loadingMapping = props.loadingMapping,
|
|
49
62
|
_props$key = props.key,
|
|
50
63
|
key = _props$key === void 0 ? 'key' : _props$key;
|
|
64
|
+
useFormatMessage('OperateBtn', localeJson);
|
|
51
65
|
var _useState = useState(false),
|
|
52
66
|
_useState2 = _slicedToArray(_useState, 2),
|
|
53
67
|
openMoreCom = _useState2[0],
|
|
@@ -110,14 +124,10 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
110
124
|
}));
|
|
111
125
|
};
|
|
112
126
|
};
|
|
113
|
-
// 点击更多
|
|
114
|
-
var clickMore = function clickMore() {
|
|
115
|
-
setOpenMoreCom(true);
|
|
116
|
-
};
|
|
117
127
|
// 关闭显示更多
|
|
118
128
|
var closeMore = function closeMore(bol) {
|
|
119
|
-
if (bol) return;
|
|
120
|
-
setOpenMoreCom(
|
|
129
|
+
//if (bol) return;
|
|
130
|
+
setOpenMoreCom(Boolean(bol));
|
|
121
131
|
};
|
|
122
132
|
// 处理loading
|
|
123
133
|
var handLoadStatus = function handLoadStatus(item, index) {
|
|
@@ -132,18 +142,26 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
132
142
|
};
|
|
133
143
|
// 处理handClassPopover
|
|
134
144
|
var handClassPopover = function handClassPopover() {
|
|
135
|
-
var str = $prefixCls
|
|
136
|
-
if (popoverClassName) str +=
|
|
145
|
+
var str = "".concat($prefixCls, "-operate-btn-popover");
|
|
146
|
+
if (popoverClassName) str += " ".concat(popoverClassName);
|
|
137
147
|
return str;
|
|
138
148
|
};
|
|
139
149
|
var morePopoverContent = function morePopoverContent() {
|
|
140
150
|
var arr = (list === null || list === void 0 ? void 0 : list.slice(showNum, list === null || list === void 0 ? void 0 : list.length)) || [];
|
|
141
151
|
var handPopoverClass = function handPopoverClass(item) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
152
|
+
return clsx('operate-btn-list-item', item.className, {
|
|
153
|
+
'operate-btn-list-item-disabled': item.disabled,
|
|
154
|
+
'operate-btn-list-item-danger': item.danger
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
var handleBox = function handleBox(item, children, index) {
|
|
158
|
+
return jsx("div", Object.assign({
|
|
159
|
+
className: handPopoverClass(item),
|
|
160
|
+
onClick: clickItem(item, index + showNum),
|
|
161
|
+
style: style
|
|
162
|
+
}, {
|
|
163
|
+
children: children
|
|
164
|
+
}), index);
|
|
147
165
|
};
|
|
148
166
|
return jsx("div", Object.assign({
|
|
149
167
|
className: "operate-btn-list"
|
|
@@ -154,27 +172,14 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
154
172
|
disabled: true,
|
|
155
173
|
title: item.label || item.toolTipTitle
|
|
156
174
|
}, {
|
|
157
|
-
children:
|
|
158
|
-
className: handPopoverClass(item),
|
|
159
|
-
onClick: clickItem(item, index + showNum),
|
|
160
|
-
style: style
|
|
161
|
-
}, {
|
|
162
|
-
children: item.label || item.toolTipTitle
|
|
163
|
-
}), index)
|
|
175
|
+
children: handleBox(item, item.label || item.toolTipTitle, index)
|
|
164
176
|
}), index);
|
|
165
177
|
}
|
|
166
|
-
return jsx(
|
|
167
|
-
|
|
168
|
-
onClick: clickItem(item, index + showNum),
|
|
169
|
-
style: style
|
|
178
|
+
return handleBox(item, jsx(AutoTips, Object.assign({
|
|
179
|
+
tipMaxWidth: 'none'
|
|
170
180
|
}, {
|
|
171
|
-
children:
|
|
172
|
-
|
|
173
|
-
placement: 'top-start'
|
|
174
|
-
}, {
|
|
175
|
-
children: item.label || item.toolTipTitle
|
|
176
|
-
}))
|
|
177
|
-
}), index);
|
|
181
|
+
children: item.label || item.toolTipTitle
|
|
182
|
+
})), index);
|
|
178
183
|
})
|
|
179
184
|
}));
|
|
180
185
|
};
|
|
@@ -186,16 +191,17 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
186
191
|
visible: openMoreCom,
|
|
187
192
|
content: morePopoverContent(),
|
|
188
193
|
onVisibleChange: closeMore,
|
|
189
|
-
overlayClassName: handClassPopover()
|
|
194
|
+
overlayClassName: handClassPopover(),
|
|
195
|
+
trigger: 'hover'
|
|
190
196
|
}, {
|
|
191
197
|
children: jsx(Button.IconButton, Object.assign({
|
|
192
198
|
variant: 'text',
|
|
193
|
-
toolTipTitle
|
|
194
|
-
TooltipProps
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
onClick
|
|
199
|
+
/*toolTipTitle={!openMoreCom && intl('more')}
|
|
200
|
+
TooltipProps={{
|
|
201
|
+
placement,
|
|
202
|
+
arrow: false
|
|
203
|
+
}}*/
|
|
204
|
+
//onClick={clickMore}
|
|
199
205
|
className: 'operate-btn-more'
|
|
200
206
|
}, {
|
|
201
207
|
children: jsx(More, {})
|
|
@@ -203,14 +209,8 @@ var OperateBtn = function OperateBtn(props) {
|
|
|
203
209
|
}))
|
|
204
210
|
});
|
|
205
211
|
};
|
|
206
|
-
var handClass = function handClass() {
|
|
207
|
-
var str = $prefixCls + '-operate-btn';
|
|
208
|
-
if (className) str += ' ' + className;
|
|
209
|
-
if (size) str += " ".concat($prefixCls, "-operate-btn-").concat(size);
|
|
210
|
-
return str;
|
|
211
|
-
};
|
|
212
212
|
return jsxs("div", Object.assign({
|
|
213
|
-
className:
|
|
213
|
+
className: clsx("".concat($prefixCls, "-operate-btn"), className, "".concat($prefixCls, "-operate-btn-").concat(size)),
|
|
214
214
|
style: style
|
|
215
215
|
}, {
|
|
216
216
|
children: [list === null || list === void 0 ? void 0 : list.map(function (item, index) {
|