@easyv/react-components 0.0.17 → 0.0.19

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>;
@@ -0,0 +1,5 @@
1
+ .arco-form-label-item {
2
+ .arco-form-item-symbol {
3
+ display: inline-block;
4
+ }
5
+ }
@@ -9,6 +9,8 @@
9
9
  }
10
10
 
11
11
  .arco-modal-close-icon {
12
+ right: 24px;
13
+ top: 21px;
12
14
  font-size: 14px;
13
15
  }
14
16
 
@@ -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", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/react-components",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "a react component library base on arco design",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",