@sheinx/base 3.7.4-beta.4 → 3.7.4-beta.5
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,
|
|
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"}
|
|
@@ -204,7 +204,14 @@ var DatePicker = function DatePicker(props0) {
|
|
|
204
204
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, index);
|
|
205
205
|
if (props.needConfirm) return;
|
|
206
206
|
if (props.inputable && index !== undefined) {
|
|
207
|
-
|
|
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
|
+
}
|
|
208
215
|
}
|
|
209
216
|
|
|
210
217
|
// 当输入框有值时,失焦时需要立即触发 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,
|
|
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"}
|
|
@@ -197,7 +197,14 @@ var DatePicker = function DatePicker(props0) {
|
|
|
197
197
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, index);
|
|
198
198
|
if (props.needConfirm) return;
|
|
199
199
|
if (props.inputable && index !== undefined) {
|
|
200
|
-
|
|
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
|
+
}
|
|
201
208
|
}
|
|
202
209
|
|
|
203
210
|
// 当输入框有值时,失焦时需要立即触发 onChange,否则触控板的轻触模拟出来的click事件就获取不到最新的值
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.4-beta.
|
|
3
|
+
"version": "3.7.4-beta.5",
|
|
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.
|
|
13
|
+
"@sheinx/hooks": "3.7.4-beta.5",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|