@sheinx/base 3.7.4-beta.5 → 3.7.4-beta.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAmB1E,QAAA,MAAM,UAAU,gHAiWf,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAmB1E,QAAA,MAAM,UAAU,gHA0Vf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -203,15 +203,8 @@ var DatePicker = function DatePicker(props0) {
203
203
  setFocused(false);
204
204
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, index);
205
205
  if (props.needConfirm) return;
206
- if (props.inputable && index !== undefined) {
207
- if (props.quickSelect) {
208
- // why: 快速选择时,需要加上timeout,否则e.target.value 获取不到最新的值
209
- setTimeout(function () {
210
- func.handleInputBlur(e.target.value, index);
211
- });
212
- } else {
213
- func.handleInputBlur(e.target.value, index);
214
- }
206
+ if (props.inputable && !props.quickSelect && index !== undefined) {
207
+ func.handleInputBlur(e.target.value, index);
215
208
  }
216
209
 
217
210
  // 当输入框有值时,失焦时需要立即触发 onChange,否则触控板的轻触模拟出来的click事件就获取不到最新的值
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAmB1E,QAAA,MAAM,UAAU,gHAiWf,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["date-picker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAmB1E,QAAA,MAAM,UAAU,gHA0Vf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -196,15 +196,8 @@ var DatePicker = function DatePicker(props0) {
196
196
  setFocused(false);
197
197
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, index);
198
198
  if (props.needConfirm) return;
199
- if (props.inputable && index !== undefined) {
200
- if (props.quickSelect) {
201
- // why: 快速选择时,需要加上timeout,否则e.target.value 获取不到最新的值
202
- setTimeout(function () {
203
- func.handleInputBlur(e.target.value, index);
204
- });
205
- } else {
206
- func.handleInputBlur(e.target.value, index);
207
- }
199
+ if (props.inputable && !props.quickSelect && index !== undefined) {
200
+ func.handleInputBlur(e.target.value, index);
208
201
  }
209
202
 
210
203
  // 当输入框有值时,失焦时需要立即触发 onChange,否则触控板的轻触模拟出来的click事件就获取不到最新的值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.7.4-beta.5",
3
+ "version": "3.7.4-beta.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.7.4-beta.5",
13
+ "@sheinx/hooks": "3.7.4-beta.6",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"