@easyv/react-components 0.0.16 → 0.0.18
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.
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import 'rc-color-picker/assets/index.css';
|
|
3
3
|
import './Panel.less';
|
|
4
4
|
interface ColorPickerPanelProps {
|
|
5
|
-
record?: unknown;
|
|
6
5
|
color: string;
|
|
7
|
-
active: number;
|
|
8
6
|
onChange: (color: string) => void;
|
|
9
7
|
}
|
|
10
8
|
declare const _default: import("react").NamedExoticComponent<ColorPickerPanelProps>;
|
package/dist/Modal/index.less
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
.arco-modal {
|
|
2
2
|
.arco-modal-header {
|
|
3
|
+
height: 56px;
|
|
4
|
+
padding: 0 24px;
|
|
5
|
+
|
|
3
6
|
.arco-modal-title {
|
|
4
7
|
text-align: left;
|
|
5
8
|
}
|
|
6
9
|
}
|
|
10
|
+
|
|
11
|
+
.arco-modal-close-icon {
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.arco-modal-content {
|
|
16
|
+
padding: 24px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.arco-modal-footer {
|
|
20
|
+
padding: 12px 24px;
|
|
21
|
+
}
|
|
7
22
|
}
|
|
8
23
|
|
|
9
24
|
.arco-modal-simple {
|
package/dist/RangeColor/Panel.js
CHANGED
|
@@ -87,6 +87,9 @@ function CustomColorPicker(_ref, ref) {
|
|
|
87
87
|
}, [color, active]);
|
|
88
88
|
var handleColorChange = function handleColorChange(colorValue, used) {
|
|
89
89
|
// 判断颜色有没有更改,没有更改就不要执行。进来的第一次会把焦点定位到输入框中,点击其他地方时会失焦,会自动触发ColorPicker中的onchange事件,导致更新一次
|
|
90
|
+
if (!color[active]) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
90
93
|
if (color[active].color.replace(/\s/g, '') === colorValue) {
|
|
91
94
|
return;
|
|
92
95
|
}
|
|
@@ -153,8 +156,7 @@ function CustomColorPicker(_ref, ref) {
|
|
|
153
156
|
className: 'arco-color-picker-scroll-container',
|
|
154
157
|
children: [/*#__PURE__*/_jsx(ColorPicker, {
|
|
155
158
|
color: localColor,
|
|
156
|
-
onChange: handleColorChange
|
|
157
|
-
active: active
|
|
159
|
+
onChange: handleColorChange
|
|
158
160
|
}), /*#__PURE__*/_jsxs("div", {
|
|
159
161
|
className: 'arco-color-picker-recent',
|
|
160
162
|
children: [/*#__PURE__*/_jsxs("div", {
|