@autobest-ui/components 2.0.5-alpha.0 → 2.0.5-alpha.1

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.
@@ -21,7 +21,7 @@ export interface SelectProps extends Pick<TriggerProps, 'windowResizeHidden' | '
21
21
  * 选择的值
22
22
  */
23
23
  value: Value;
24
- onChange: (item: SelectOptionItem, name?: string) => void;
24
+ onChange: (item: SelectOptionItem, name?: string, isFromFilterSelected?: boolean) => void;
25
25
  /**
26
26
  * 组件标识符
27
27
  */
@@ -114,7 +114,7 @@ function (_super) {
114
114
 
115
115
  if (findItem.value !== value) {
116
116
  _this.isFromFilterSelected = true;
117
- onChange(findItem, name_1);
117
+ onChange(findItem, name_1, true);
118
118
  }
119
119
  }
120
120
  };
@@ -209,7 +209,6 @@ function (_super) {
209
209
  if (element) {
210
210
  var activeElement = element.querySelector(".".concat(this.prefixCls, "-active"));
211
211
  activeElement.scrollIntoView({
212
- behavior: 'smooth',
213
212
  block: 'nearest',
214
213
  inline: 'start'
215
214
  });
@@ -21,7 +21,7 @@ export interface SelectProps extends Pick<TriggerProps, 'windowResizeHidden' | '
21
21
  * 选择的值
22
22
  */
23
23
  value: Value;
24
- onChange: (item: SelectOptionItem, name?: string) => void;
24
+ onChange: (item: SelectOptionItem, name?: string, isFromFilterSelected?: boolean) => void;
25
25
  /**
26
26
  * 组件标识符
27
27
  */
@@ -126,7 +126,7 @@ function (_super) {
126
126
 
127
127
  if (findItem.value !== value) {
128
128
  _this.isFromFilterSelected = true;
129
- onChange(findItem, name_1);
129
+ onChange(findItem, name_1, true);
130
130
  }
131
131
  }
132
132
  };
@@ -221,7 +221,6 @@ function (_super) {
221
221
  if (element) {
222
222
  var activeElement = element.querySelector(".".concat(this.prefixCls, "-active"));
223
223
  activeElement.scrollIntoView({
224
- behavior: 'smooth',
225
224
  block: 'nearest',
226
225
  inline: 'start'
227
226
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobest-ui/components",
3
- "version": "2.0.5-alpha.0",
3
+ "version": "2.0.5-alpha.1",
4
4
  "private": false,
5
5
  "description": "components common ui for React",
6
6
  "main": "lib/index.js",
@@ -46,5 +46,5 @@
46
46
  "react": ">=16.8.6",
47
47
  "react-transition-group": ">=4.2.2"
48
48
  },
49
- "gitHead": "441d4fe1f371209bb8d981e5eb1c5e1c52237310"
49
+ "gitHead": "25088b80191d4491efa60bf4a36be60d09d7fce1"
50
50
  }