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