gxxc-ui 1.0.0
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/LICENSE +21 -0
- package/README.md +41 -0
- package/dist/AmountCellUI/index.d.ts +11 -0
- package/dist/AmountCellUI/index.js +123 -0
- package/dist/AnchorUI/demo/anchor-button.d.ts +3 -0
- package/dist/AnchorUI/demo/anchor-button.js +85 -0
- package/dist/AnchorUI/demo/use-anchor.d.ts +3 -0
- package/dist/AnchorUI/demo/use-anchor.js +69 -0
- package/dist/AnchorUI/index.d.ts +4 -0
- package/dist/AnchorUI/index.js +56 -0
- package/dist/AnchorUI/index.scss +21 -0
- package/dist/BackUI/index.d.ts +14 -0
- package/dist/BackUI/index.js +35 -0
- package/dist/BackUI/index.scss +26 -0
- package/dist/BroadcastUI/index.d.ts +12 -0
- package/dist/BroadcastUI/index.js +62 -0
- package/dist/BroadcastUI/index.scss +43 -0
- package/dist/ButtonUI/index.d.ts +9 -0
- package/dist/ButtonUI/index.js +17 -0
- package/dist/ButtonUI/index.scss +6 -0
- package/dist/CellUI/index.d.ts +13 -0
- package/dist/CellUI/index.js +78 -0
- package/dist/CellUI/index.scss +28 -0
- package/dist/Components/index.d.ts +2 -0
- package/dist/Components/index.js +4 -0
- package/dist/DateUI/index.d.ts +5 -0
- package/dist/DateUI/index.js +116 -0
- package/dist/DateUI/index.scss +3 -0
- package/dist/DescriptionsUI/index.d.ts +19 -0
- package/dist/DescriptionsUI/index.js +72 -0
- package/dist/DescriptionsUI/index.scss +88 -0
- package/dist/EmptyUI/emptyImage.d.ts +3 -0
- package/dist/EmptyUI/emptyImage.js +12 -0
- package/dist/EmptyUI/index.d.ts +9 -0
- package/dist/EmptyUI/index.js +13 -0
- package/dist/EmptyUI/index.scss +10 -0
- package/dist/FilterUI/index.d.ts +28 -0
- package/dist/FilterUI/index.js +252 -0
- package/dist/FilterUI/index.scss +80 -0
- package/dist/FormUI/index.d.ts +4 -0
- package/dist/FormUI/index.js +45 -0
- package/dist/FormUI/index.scss +64 -0
- package/dist/IconUI/index.d.ts +27 -0
- package/dist/IconUI/index.js +22 -0
- package/dist/IconUI/material/dictionary.d.ts +4 -0
- package/dist/IconUI/material/dictionary.js +71 -0
- package/dist/IconUI/material/dictionary.scss +58 -0
- package/dist/IconUI/material/material.d.ts +16 -0
- package/dist/IconUI/material/material.js +476 -0
- package/dist/IconUI/material/rally.d.ts +22 -0
- package/dist/IconUI/material/rally.js +50 -0
- package/dist/ImageUI/index.d.ts +13 -0
- package/dist/ImageUI/index.js +159 -0
- package/dist/ImageUI/index.scss +59 -0
- package/dist/InputUI/index.d.ts +7 -0
- package/dist/InputUI/index.js +114 -0
- package/dist/InputUI/index.scss +24 -0
- package/dist/LoadingUI/index.d.ts +4 -0
- package/dist/LoadingUI/index.js +13 -0
- package/dist/LoadingUI/index.scss +47 -0
- package/dist/MessageUI/index.d.ts +3 -0
- package/dist/MessageUI/index.js +9 -0
- package/dist/MessageUI/index.scss +50 -0
- package/dist/ModalUI/index.d.ts +4 -0
- package/dist/ModalUI/index.js +98 -0
- package/dist/ModalUI/index.scss +45 -0
- package/dist/NotificationUI/index.d.ts +3 -0
- package/dist/NotificationUI/index.js +30 -0
- package/dist/NotificationUI/index.scss +0 -0
- package/dist/PasswordStrongUI/index.d.ts +8 -0
- package/dist/PasswordStrongUI/index.js +67 -0
- package/dist/PasswordStrongUI/index.scss +35 -0
- package/dist/RichEditorUI/index.d.ts +10 -0
- package/dist/RichEditorUI/index.js +68 -0
- package/dist/RichEditorUI/index.scss +20 -0
- package/dist/SearchUI/index.d.ts +4 -0
- package/dist/SearchUI/index.js +55 -0
- package/dist/SearchUI/index.scss +20 -0
- package/dist/SelectUI/index.d.ts +13 -0
- package/dist/SelectUI/index.js +87 -0
- package/dist/SelectUI/index.scss +13 -0
- package/dist/StatisticUI/index.d.ts +20 -0
- package/dist/StatisticUI/index.js +70 -0
- package/dist/StatisticUI/index.scss +6 -0
- package/dist/SwitchUI/index.d.ts +4 -0
- package/dist/SwitchUI/index.js +24 -0
- package/dist/SwitchUI/index.scss +0 -0
- package/dist/TableUI/demo/index.scss +7 -0
- package/dist/TableUI/demo/setting.d.ts +4 -0
- package/dist/TableUI/demo/setting.js +107 -0
- package/dist/TableUI/index.d.ts +12 -0
- package/dist/TableUI/index.js +109 -0
- package/dist/TableUI/index.scss +40 -0
- package/dist/TableUI/material/Button/index.d.ts +4 -0
- package/dist/TableUI/material/Button/index.js +20 -0
- package/dist/TableUI/material/Button/index.scss +35 -0
- package/dist/TableUI/material/HideMultipleLines/index.d.ts +4 -0
- package/dist/TableUI/material/HideMultipleLines/index.js +48 -0
- package/dist/TableUI/material/HideMultipleLines/index.scss +11 -0
- package/dist/TableUI/material/MultiLine/index.d.ts +4 -0
- package/dist/TableUI/material/MultiLine/index.js +23 -0
- package/dist/TableUI/material/MultiLine/index.scss +25 -0
- package/dist/TableUI/material/Operate/index.d.ts +3 -0
- package/dist/TableUI/material/Operate/index.js +43 -0
- package/dist/TableUI/material/Operate/index.scss +25 -0
- package/dist/TableUI/material/Setting/index.d.ts +3 -0
- package/dist/TableUI/material/Setting/index.js +211 -0
- package/dist/TableUI/material/Setting/index.scss +52 -0
- package/dist/TagUI/index.d.ts +17 -0
- package/dist/TagUI/index.js +118 -0
- package/dist/TagUI/index.scss +41 -0
- package/dist/TestUI/index.d.ts +3 -0
- package/dist/TestUI/index.js +5 -0
- package/dist/TestUI/index.scss +0 -0
- package/dist/TextUI/index.d.ts +7 -0
- package/dist/TextUI/index.js +17 -0
- package/dist/TextUI/index.scss +10 -0
- package/dist/Tiga/demo/demoQuick.d.ts +3 -0
- package/dist/Tiga/demo/demoQuick.js +104 -0
- package/dist/Tiga/demo/demoQuickType.d.ts +8 -0
- package/dist/Tiga/demo/demoQuickType.js +94 -0
- package/dist/Tiga/index.d.ts +4 -0
- package/dist/Tiga/index.js +68 -0
- package/dist/Tiga/index.scss +0 -0
- package/dist/Tiga/material/quickType.d.ts +29 -0
- package/dist/Tiga/material/quickType.js +75 -0
- package/dist/UploadUI/index.d.ts +23 -0
- package/dist/UploadUI/index.js +383 -0
- package/dist/UploadUI/index.scss +202 -0
- package/dist/UploadUI/type.d.ts +4 -0
- package/dist/UploadUI/type.js +30 -0
- package/dist/VesselUI/index.d.ts +3 -0
- package/dist/VesselUI/index.js +199 -0
- package/dist/VesselUI/type.d.ts +64 -0
- package/dist/VesselUI/type.js +1 -0
- package/dist/VideoPreviewUI/index.d.ts +11 -0
- package/dist/VideoPreviewUI/index.js +65 -0
- package/dist/VideoPreviewUI/index.scss +32 -0
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.js +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +34 -0
- package/package.json +87 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["className", "src", "preview", "maskType", "clickOtherButton", "style"];
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
import { DownloadOutlined, RotateLeftOutlined, RotateRightOutlined, SwapOutlined, UndoOutlined, ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons';
|
|
12
|
+
import { Image, Space } from 'antd';
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { IconUI } from "./..";
|
|
15
|
+
import "./index.scss";
|
|
16
|
+
var ImageUI = function ImageUI(props) {
|
|
17
|
+
var className = props.className,
|
|
18
|
+
src = props.src,
|
|
19
|
+
preview = props.preview,
|
|
20
|
+
_props$maskType = props.maskType,
|
|
21
|
+
maskType = _props$maskType === void 0 ? 1 : _props$maskType,
|
|
22
|
+
clickOtherButton = props.clickOtherButton,
|
|
23
|
+
style = props.style,
|
|
24
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
25
|
+
var onDownload = function onDownload() {
|
|
26
|
+
fetch(src).then(function (response) {
|
|
27
|
+
return response.blob();
|
|
28
|
+
}).then(function (blob) {
|
|
29
|
+
var url = URL.createObjectURL(new Blob([blob]));
|
|
30
|
+
var link = document.createElement('a');
|
|
31
|
+
link.href = url;
|
|
32
|
+
link.download = 'image.png';
|
|
33
|
+
document.body.appendChild(link);
|
|
34
|
+
link.click();
|
|
35
|
+
URL.revokeObjectURL(url);
|
|
36
|
+
link.remove();
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var clickRight = function clickRight(e) {
|
|
40
|
+
e.stopPropagation();
|
|
41
|
+
if (clickOtherButton) {
|
|
42
|
+
clickOtherButton();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
//蒙层类型
|
|
47
|
+
var renderMask = function renderMask() {
|
|
48
|
+
switch (maskType) {
|
|
49
|
+
case 1:
|
|
50
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: "sicImageUI-mask"
|
|
52
|
+
}, /*#__PURE__*/React.createElement(IconUI, {
|
|
53
|
+
name: "PreviewOpen",
|
|
54
|
+
size: "14",
|
|
55
|
+
fill: "#fff"
|
|
56
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
57
|
+
className: "sicImageUI-mask-name"
|
|
58
|
+
}, "\u9884\u89C8"));
|
|
59
|
+
case 2:
|
|
60
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: "sicImageUI-mask"
|
|
62
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "sicImageUI-mask-left"
|
|
64
|
+
}, /*#__PURE__*/React.createElement(IconUI, {
|
|
65
|
+
name: "PreviewOpen",
|
|
66
|
+
size: "14",
|
|
67
|
+
fill: "#fff"
|
|
68
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: "sicImageUI-mask-name"
|
|
70
|
+
}, "\u9884\u89C8")), /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: "sicImageUI-mask-right",
|
|
72
|
+
onClick: clickRight
|
|
73
|
+
}, /*#__PURE__*/React.createElement(IconUI, {
|
|
74
|
+
name: "Export",
|
|
75
|
+
size: "14",
|
|
76
|
+
fill: "#fff"
|
|
77
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
className: "sicImageUI-mask-name"
|
|
79
|
+
}, "\u4E0A\u4F20")));
|
|
80
|
+
case 3:
|
|
81
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
className: "sicImageUI-mask"
|
|
83
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
className: "sicImageUI-mask-left"
|
|
85
|
+
}, /*#__PURE__*/React.createElement(IconUI, {
|
|
86
|
+
name: "PreviewOpen",
|
|
87
|
+
size: "14",
|
|
88
|
+
fill: "#fff"
|
|
89
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
className: "sicImageUI-mask-name"
|
|
91
|
+
}, "\u9884\u89C8")), /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
className: "sicImageUI-mask-right",
|
|
93
|
+
onClick: clickRight
|
|
94
|
+
}, /*#__PURE__*/React.createElement(IconUI, {
|
|
95
|
+
name: "Delete",
|
|
96
|
+
size: "14",
|
|
97
|
+
fill: "var(--red)"
|
|
98
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
99
|
+
className: "sicImageUI-mask-delete"
|
|
100
|
+
}, "\u5220\u9664")));
|
|
101
|
+
default:
|
|
102
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: "sicImageUI-mask"
|
|
104
|
+
}, /*#__PURE__*/React.createElement(IconUI, {
|
|
105
|
+
name: "PreviewOpen",
|
|
106
|
+
size: "14",
|
|
107
|
+
fill: "#fff"
|
|
108
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
className: "sicImageUI-mask-name"
|
|
110
|
+
}, "\u9884\u89C8"));
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
var previewConfig = {
|
|
114
|
+
mask: renderMask(),
|
|
115
|
+
toolbarRender: function toolbarRender(_, _ref) {
|
|
116
|
+
var scale = _ref.transform.scale,
|
|
117
|
+
_ref$actions = _ref.actions,
|
|
118
|
+
onFlipY = _ref$actions.onFlipY,
|
|
119
|
+
onFlipX = _ref$actions.onFlipX,
|
|
120
|
+
onRotateLeft = _ref$actions.onRotateLeft,
|
|
121
|
+
onRotateRight = _ref$actions.onRotateRight,
|
|
122
|
+
onZoomOut = _ref$actions.onZoomOut,
|
|
123
|
+
onZoomIn = _ref$actions.onZoomIn,
|
|
124
|
+
onReset = _ref$actions.onReset;
|
|
125
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
126
|
+
size: 12,
|
|
127
|
+
className: "sicImageUI-toolbar"
|
|
128
|
+
}, /*#__PURE__*/React.createElement(DownloadOutlined, {
|
|
129
|
+
onClick: onDownload
|
|
130
|
+
}), /*#__PURE__*/React.createElement(SwapOutlined, {
|
|
131
|
+
rotate: 90,
|
|
132
|
+
onClick: onFlipY
|
|
133
|
+
}), /*#__PURE__*/React.createElement(SwapOutlined, {
|
|
134
|
+
onClick: onFlipX
|
|
135
|
+
}), /*#__PURE__*/React.createElement(RotateLeftOutlined, {
|
|
136
|
+
onClick: onRotateLeft
|
|
137
|
+
}), /*#__PURE__*/React.createElement(RotateRightOutlined, {
|
|
138
|
+
onClick: onRotateRight
|
|
139
|
+
}), /*#__PURE__*/React.createElement(ZoomOutOutlined, {
|
|
140
|
+
disabled: scale === 1,
|
|
141
|
+
onClick: onZoomOut
|
|
142
|
+
}), /*#__PURE__*/React.createElement(ZoomInOutlined, {
|
|
143
|
+
disabled: scale === 50,
|
|
144
|
+
onClick: onZoomIn
|
|
145
|
+
}), /*#__PURE__*/React.createElement(UndoOutlined, {
|
|
146
|
+
onClick: onReset
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
var mergedPreview = typeof preview === 'boolean' ? preview : _objectSpread(_objectSpread({}, previewConfig), preview);
|
|
151
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
className: "sicImageUI ".concat(className !== null && className !== void 0 ? className : ''),
|
|
153
|
+
style: style
|
|
154
|
+
}, /*#__PURE__*/React.createElement(Image, _extends({
|
|
155
|
+
src: src,
|
|
156
|
+
preview: mergedPreview
|
|
157
|
+
}, otherProps)));
|
|
158
|
+
};
|
|
159
|
+
export default ImageUI;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.sicImageUI {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
.ant-image {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
.ant-image-img {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
object-fit: cover;
|
|
13
|
+
}
|
|
14
|
+
&-mask {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
&-left,
|
|
21
|
+
&-right {
|
|
22
|
+
width: 50%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
}
|
|
28
|
+
.sicImageUI-mask-name {
|
|
29
|
+
margin-left: 2px;
|
|
30
|
+
}
|
|
31
|
+
.sicImageUI-mask-delete {
|
|
32
|
+
margin-left: 2px;
|
|
33
|
+
color: var(--red);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-toolbar {
|
|
38
|
+
position: fixed;
|
|
39
|
+
bottom: 32px;
|
|
40
|
+
left: 50%;
|
|
41
|
+
padding: 0px 24px;
|
|
42
|
+
color: #fff;
|
|
43
|
+
font-size: 20px;
|
|
44
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
45
|
+
border-radius: 100px;
|
|
46
|
+
transform: translateX(-50%);
|
|
47
|
+
.anticon {
|
|
48
|
+
padding: 12px;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
.anticon[disabled] {
|
|
52
|
+
cursor: not-allowed;
|
|
53
|
+
opacity: 0.3;
|
|
54
|
+
}
|
|
55
|
+
.anticon:hover {
|
|
56
|
+
opacity: 0.3;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["value", "onChange", "onchangeTime"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
14
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
|
+
import React, { useState, useEffect } from 'react';
|
|
18
|
+
import { Input, InputNumber } from 'antd';
|
|
19
|
+
import "./index.scss";
|
|
20
|
+
var timer;
|
|
21
|
+
var InputUI = function InputUI(props) {
|
|
22
|
+
var value = props.value,
|
|
23
|
+
onChange = props.onChange,
|
|
24
|
+
onchangeTime = props.onchangeTime,
|
|
25
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
26
|
+
var _useState = useState(),
|
|
27
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
+
reactValue = _useState2[0],
|
|
29
|
+
setReactValue = _useState2[1];
|
|
30
|
+
useEffect(function () {
|
|
31
|
+
setReactValue(value);
|
|
32
|
+
return function () {
|
|
33
|
+
clearTimeout(timer);
|
|
34
|
+
};
|
|
35
|
+
}, [value]);
|
|
36
|
+
var valueChange = function valueChange(e) {
|
|
37
|
+
var _e$target;
|
|
38
|
+
setReactValue(e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
|
|
39
|
+
if (onchangeTime) {
|
|
40
|
+
clearTimeout(timer);
|
|
41
|
+
timer = setTimeout(function () {
|
|
42
|
+
var _e$target2;
|
|
43
|
+
onChange === null || onChange === void 0 || onChange(e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
|
|
44
|
+
}, onchangeTime);
|
|
45
|
+
} else {
|
|
46
|
+
var _e$target3;
|
|
47
|
+
onChange === null || onChange === void 0 || onChange(e === null || e === void 0 || (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return /*#__PURE__*/React.createElement(Input, _extends({
|
|
51
|
+
value: reactValue,
|
|
52
|
+
onChange: function onChange(e) {
|
|
53
|
+
return valueChange(e);
|
|
54
|
+
}
|
|
55
|
+
}, otherProps));
|
|
56
|
+
};
|
|
57
|
+
var Range = function Range(props) {
|
|
58
|
+
var _value$input, _value$input2;
|
|
59
|
+
var value = props.value,
|
|
60
|
+
onChange = props.onChange,
|
|
61
|
+
min = props.min,
|
|
62
|
+
max = props.max,
|
|
63
|
+
_props$placeholder = props.placeholder,
|
|
64
|
+
placeholder = _props$placeholder === void 0 ? ['请输入', '请输入'] : _props$placeholder,
|
|
65
|
+
style = props.style;
|
|
66
|
+
var _useState3 = useState(),
|
|
67
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
68
|
+
input1 = _useState4[0],
|
|
69
|
+
setInput1 = _useState4[1];
|
|
70
|
+
var _useState5 = useState(),
|
|
71
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
72
|
+
input2 = _useState6[0],
|
|
73
|
+
setInput2 = _useState6[1];
|
|
74
|
+
var triggerChange = function triggerChange(changedValue) {
|
|
75
|
+
onChange === null || onChange === void 0 || onChange(_objectSpread(_objectSpread({
|
|
76
|
+
input1: input1,
|
|
77
|
+
input2: input2
|
|
78
|
+
}, value), changedValue));
|
|
79
|
+
};
|
|
80
|
+
var onInput1 = function onInput1(e) {
|
|
81
|
+
setInput1(e);
|
|
82
|
+
triggerChange({
|
|
83
|
+
input1: e
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
var onInput2 = function onInput2(e) {
|
|
87
|
+
setInput2(e);
|
|
88
|
+
triggerChange({
|
|
89
|
+
input2: e
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: "sic-inputui-range",
|
|
94
|
+
style: style
|
|
95
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
96
|
+
className: "range-input1",
|
|
97
|
+
placeholder: placeholder[0],
|
|
98
|
+
min: min,
|
|
99
|
+
max: max,
|
|
100
|
+
value: (_value$input = value === null || value === void 0 ? void 0 : value.input1) !== null && _value$input !== void 0 ? _value$input : input1,
|
|
101
|
+
onChange: onInput1
|
|
102
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
103
|
+
className: "range-to"
|
|
104
|
+
}, " - "), /*#__PURE__*/React.createElement(InputNumber, {
|
|
105
|
+
className: "range-input2",
|
|
106
|
+
placeholder: placeholder[1],
|
|
107
|
+
min: min,
|
|
108
|
+
max: max,
|
|
109
|
+
value: (_value$input2 = value === null || value === void 0 ? void 0 : value.input2) !== null && _value$input2 !== void 0 ? _value$input2 : input2,
|
|
110
|
+
onChange: onInput2
|
|
111
|
+
}));
|
|
112
|
+
};
|
|
113
|
+
InputUI.Range = Range;
|
|
114
|
+
export default InputUI;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.sic-inputui-range {
|
|
2
|
+
width: 100%;
|
|
3
|
+
border: 1px solid #d9d9d9;
|
|
4
|
+
border-radius: 6px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
.ant-input-number-outlined {
|
|
8
|
+
border: none;
|
|
9
|
+
}
|
|
10
|
+
.ant-input-number-input {
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
.range-input1,
|
|
14
|
+
.range-input2 {
|
|
15
|
+
width: calc((100% - 20px) / 2);
|
|
16
|
+
}
|
|
17
|
+
.range-to {
|
|
18
|
+
width: 20px;
|
|
19
|
+
height: 20px;
|
|
20
|
+
line-height: 20px;
|
|
21
|
+
text-align: center;
|
|
22
|
+
color: #d9d9d9;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
var LoadingUI = function LoadingUI(props) {
|
|
4
|
+
var _props$isShowLoading = props.isShowLoading,
|
|
5
|
+
isShowLoading = _props$isShowLoading === void 0 ? true : _props$isShowLoading,
|
|
6
|
+
children = props.children;
|
|
7
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isShowLoading ? /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
className: "sic-loadingui"
|
|
9
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "sic-loadingui-animation"
|
|
11
|
+
})) : children);
|
|
12
|
+
};
|
|
13
|
+
export default LoadingUI;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.sic-loadingui {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
&-animation {
|
|
8
|
+
width: 100px;
|
|
9
|
+
height: 100px;
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
position: relative;
|
|
12
|
+
animation: rotate 1s linear infinite;
|
|
13
|
+
}
|
|
14
|
+
&-animation::before {
|
|
15
|
+
content: '';
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: 0px;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
border: 6px solid var(--themeColor);
|
|
21
|
+
animation: prixClipFix 5s linear infinite;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@keyframes rotate {
|
|
26
|
+
100% {
|
|
27
|
+
transform: rotate(360deg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes prixClipFix {
|
|
32
|
+
0% {
|
|
33
|
+
clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
|
|
34
|
+
}
|
|
35
|
+
25% {
|
|
36
|
+
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
|
|
37
|
+
}
|
|
38
|
+
50% {
|
|
39
|
+
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
|
|
40
|
+
}
|
|
41
|
+
75% {
|
|
42
|
+
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
|
|
43
|
+
}
|
|
44
|
+
100% {
|
|
45
|
+
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.sic-message {
|
|
2
|
+
top: 5%;
|
|
3
|
+
.sic-message-notice-wrapper {
|
|
4
|
+
.sic-message-notice-content {
|
|
5
|
+
padding: 0;
|
|
6
|
+
|
|
7
|
+
.sic-message-success,
|
|
8
|
+
.sic-message-error,
|
|
9
|
+
.sic-message-info,
|
|
10
|
+
.sic-message-warning,
|
|
11
|
+
.sic-message-loading {
|
|
12
|
+
> .anticon {
|
|
13
|
+
color: #fff;
|
|
14
|
+
font-size: 18px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.sic-message-custom-content {
|
|
18
|
+
color: #fff;
|
|
19
|
+
font-size: 18px;
|
|
20
|
+
line-height: 22px;
|
|
21
|
+
font-family: var(--fontFamily);
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
}
|
|
24
|
+
.anticon-check-circle,
|
|
25
|
+
.anticon-close-circle {
|
|
26
|
+
color: #fff;
|
|
27
|
+
}
|
|
28
|
+
.sic-message-custom-content {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
padding: 20px 20px;
|
|
31
|
+
border-radius: 8px;
|
|
32
|
+
}
|
|
33
|
+
.sic-message-success {
|
|
34
|
+
background-color: #38b865;
|
|
35
|
+
}
|
|
36
|
+
.sic-message-error {
|
|
37
|
+
background-color: var(--red);
|
|
38
|
+
}
|
|
39
|
+
.sic-message-info {
|
|
40
|
+
background-color: #2e64fa;
|
|
41
|
+
}
|
|
42
|
+
.sic-message-warning {
|
|
43
|
+
background-color: #faad14;
|
|
44
|
+
}
|
|
45
|
+
.sic-message-loading {
|
|
46
|
+
background-color: #2e64fa;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var _excluded = ["className", "isOpen", "setIsOpen", "title", "icon", "type", "confirm", "children"];
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11
|
+
import React, { useRef, useState, Fragment } from 'react';
|
|
12
|
+
import { Modal } from 'antd';
|
|
13
|
+
import Draggable from 'react-draggable';
|
|
14
|
+
import "./index.scss";
|
|
15
|
+
var RenderTitle = function RenderTitle(title, icon, type) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(Fragment, null, (title || icon) && /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: "sicModalui-header"
|
|
18
|
+
}, title && /*#__PURE__*/React.createElement("div", null, title), icon && /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: "sicModalui-header-icon ".concat(type !== null && type !== void 0 ? type : '')
|
|
20
|
+
}, icon)));
|
|
21
|
+
};
|
|
22
|
+
var ModalUI = function ModalUI(props) {
|
|
23
|
+
var className = props.className,
|
|
24
|
+
isOpen = props.isOpen,
|
|
25
|
+
setIsOpen = props.setIsOpen,
|
|
26
|
+
title = props.title,
|
|
27
|
+
icon = props.icon,
|
|
28
|
+
type = props.type,
|
|
29
|
+
confirm = props.confirm,
|
|
30
|
+
children = props.children,
|
|
31
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
32
|
+
var _useState = useState(true),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
disabled = _useState2[0],
|
|
35
|
+
setDisabled = _useState2[1];
|
|
36
|
+
var _useState3 = useState({
|
|
37
|
+
left: 0,
|
|
38
|
+
top: 0,
|
|
39
|
+
bottom: 0,
|
|
40
|
+
right: 0
|
|
41
|
+
}),
|
|
42
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
+
bounds = _useState4[0],
|
|
44
|
+
setBounds = _useState4[1];
|
|
45
|
+
var draggleRef = useRef(null);
|
|
46
|
+
var _onStart = function onStart(_event, uiData) {
|
|
47
|
+
var _draggleRef$current;
|
|
48
|
+
var _window$document$docu = window.document.documentElement,
|
|
49
|
+
clientWidth = _window$document$docu.clientWidth,
|
|
50
|
+
clientHeight = _window$document$docu.clientHeight;
|
|
51
|
+
var targetRect = (_draggleRef$current = draggleRef.current) === null || _draggleRef$current === void 0 ? void 0 : _draggleRef$current.getBoundingClientRect();
|
|
52
|
+
if (!targetRect) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
setBounds({
|
|
56
|
+
left: -targetRect.left + uiData.x,
|
|
57
|
+
right: clientWidth - (targetRect.right - uiData.x),
|
|
58
|
+
top: -targetRect.top + uiData.y,
|
|
59
|
+
bottom: clientHeight - (targetRect.bottom - uiData.y)
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
return /*#__PURE__*/React.createElement(Modal, _extends({
|
|
63
|
+
className: "sicModalui ".concat(className !== null && className !== void 0 ? className : '', " ").concat(type !== null && type !== void 0 ? type : ''),
|
|
64
|
+
open: isOpen,
|
|
65
|
+
title: /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
style: {
|
|
67
|
+
width: '100%',
|
|
68
|
+
cursor: 'move'
|
|
69
|
+
},
|
|
70
|
+
onMouseOver: function onMouseOver() {
|
|
71
|
+
if (disabled) {
|
|
72
|
+
setDisabled(false);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
onMouseOut: function onMouseOut() {
|
|
76
|
+
return setDisabled(true);
|
|
77
|
+
}
|
|
78
|
+
}, RenderTitle(title, icon, type)),
|
|
79
|
+
onCancel: function onCancel() {
|
|
80
|
+
return setIsOpen(undefined);
|
|
81
|
+
},
|
|
82
|
+
onOk: confirm,
|
|
83
|
+
closeIcon: !icon,
|
|
84
|
+
modalRender: function modalRender(modal) {
|
|
85
|
+
return /*#__PURE__*/React.createElement(Draggable, {
|
|
86
|
+
disabled: disabled,
|
|
87
|
+
bounds: bounds,
|
|
88
|
+
nodeRef: draggleRef,
|
|
89
|
+
onStart: function onStart(event, uiData) {
|
|
90
|
+
return _onStart(event, uiData);
|
|
91
|
+
}
|
|
92
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
ref: draggleRef
|
|
94
|
+
}, modal));
|
|
95
|
+
}
|
|
96
|
+
}, otherProps), children);
|
|
97
|
+
};
|
|
98
|
+
export default ModalUI;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.sicModalui {
|
|
2
|
+
.ant-modal-content {
|
|
3
|
+
padding: 12px 20px;
|
|
4
|
+
border-radius: 0;
|
|
5
|
+
.ant-modal-close {
|
|
6
|
+
width: 20px;
|
|
7
|
+
height: 20px;
|
|
8
|
+
inset-inline-end: 20px;
|
|
9
|
+
}
|
|
10
|
+
.ant-modal-header {
|
|
11
|
+
margin-bottom: 12px;
|
|
12
|
+
}
|
|
13
|
+
.ant-modal-footer {
|
|
14
|
+
margin-top: 12px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
&-header {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
line-height: 20px;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
padding-bottom: 12px;
|
|
24
|
+
border-bottom: 1px solid #e3e3e3;
|
|
25
|
+
&-icon {
|
|
26
|
+
height: 20px;
|
|
27
|
+
width: 20px;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
color: var(--textBlack);
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
background-color: #d9d9d9;
|
|
35
|
+
}
|
|
36
|
+
&-icon.primary {
|
|
37
|
+
color: var(--themeColor);
|
|
38
|
+
background-color: var(--themeColor2);
|
|
39
|
+
}
|
|
40
|
+
&-icon.danger {
|
|
41
|
+
color: var(--red);
|
|
42
|
+
background-color: rgba(255, 120, 117, 0.2);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|