@kdcloudjs/kdesign 1.7.33-stable.10 → 1.7.33-stable.12

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.
@@ -415,7 +415,7 @@ function usePopper(locatorElement, popperElement, props) {
415
415
  setArrowPos(_arrowPos);
416
416
  setNextPlacement(currentPlacement);
417
417
  }
418
- }, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth]);
418
+ }, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth, align === null || align === void 0 ? void 0 : align.left, align === null || align === void 0 ? void 0 : align.top]);
419
419
  useEffect(function () {
420
420
  if (canAlign) {
421
421
  alignPopper();
@@ -94,8 +94,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
94
94
  }, [autoSize, textareaRef, style]);
95
95
  useResizeObserver(textareaRef.current, resizeTextarea);
96
96
  var handleChange = function handleChange(e) {
97
- if (value === undefined) return;
98
- setValue(e.target.value);
97
+ propsValue === undefined && setValue(e.target.value);
99
98
  onChange && onChange(e);
100
99
  };
101
100
  var handleFocus = function handleFocus(e) {
@@ -140,11 +139,6 @@ var InternalTextarea = function InternalTextarea(props, ref) {
140
139
  setNumberMarkError(false);
141
140
  }
142
141
  }, [value]);
143
- useEffect(function () {
144
- if (propsValue !== undefined) {
145
- setValue(propsValue);
146
- }
147
- }, [propsValue, setValue]);
148
142
  useEffect(function () {
149
143
  if (focused && !showNumberMark) {
150
144
  setShowNumberMark(true);
@@ -429,7 +429,7 @@ function usePopper(locatorElement, popperElement, props) {
429
429
  setArrowPos(_arrowPos);
430
430
  setNextPlacement(currentPlacement);
431
431
  }
432
- }, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth]);
432
+ }, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth, align === null || align === void 0 ? void 0 : align.left, align === null || align === void 0 ? void 0 : align.top]);
433
433
  (0, _react.useEffect)(function () {
434
434
  if (canAlign) {
435
435
  alignPopper();
@@ -106,8 +106,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
106
106
  }, [autoSize, textareaRef, style]);
107
107
  (0, _hooks.useResizeObserver)(textareaRef.current, resizeTextarea);
108
108
  var handleChange = function handleChange(e) {
109
- if (value === undefined) return;
110
- setValue(e.target.value);
109
+ propsValue === undefined && setValue(e.target.value);
111
110
  onChange && onChange(e);
112
111
  };
113
112
  var handleFocus = function handleFocus(e) {
@@ -152,11 +151,6 @@ var InternalTextarea = function InternalTextarea(props, ref) {
152
151
  setNumberMarkError(false);
153
152
  }
154
153
  }, [value]);
155
- (0, _react.useEffect)(function () {
156
- if (propsValue !== undefined) {
157
- setValue(propsValue);
158
- }
159
- }, [propsValue, setValue]);
160
154
  (0, _react.useEffect)(function () {
161
155
  if (focused && !showNumberMark) {
162
156
  setShowNumberMark(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.33-stable.10",
3
+ "version": "1.7.33-stable.12",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [