@sheinx/base 3.10.0-beta.6 → 3.10.0-beta.7
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,gHA0Wf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -271,7 +271,15 @@ var DatePicker = function DatePicker(props0) {
|
|
|
271
271
|
onKeyDown: function onKeyDown(e) {
|
|
272
272
|
if (e.key === 'Enter') {
|
|
273
273
|
if (open) {
|
|
274
|
-
|
|
274
|
+
// needConfirm + inputable 时,先用宽松模式解析输入框的值,回车视为确认操作
|
|
275
|
+
if (props.needConfirm && props.inputable) {
|
|
276
|
+
inputRef.current.inputRefs.forEach(function (el, index) {
|
|
277
|
+
if (el && el.value) {
|
|
278
|
+
func.handleInputBlur(el.value, index);
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
handleClose(props.needConfirm && props.inputable);
|
|
275
283
|
} else {
|
|
276
284
|
openPop();
|
|
277
285
|
}
|
|
@@ -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,gHA0Wf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -264,7 +264,15 @@ var DatePicker = function DatePicker(props0) {
|
|
|
264
264
|
onKeyDown: function onKeyDown(e) {
|
|
265
265
|
if (e.key === 'Enter') {
|
|
266
266
|
if (open) {
|
|
267
|
-
|
|
267
|
+
// needConfirm + inputable 时,先用宽松模式解析输入框的值,回车视为确认操作
|
|
268
|
+
if (props.needConfirm && props.inputable) {
|
|
269
|
+
inputRef.current.inputRefs.forEach(function (el, index) {
|
|
270
|
+
if (el && el.value) {
|
|
271
|
+
func.handleInputBlur(el.value, index);
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
handleClose(props.needConfirm && props.inputable);
|
|
268
276
|
} else {
|
|
269
277
|
openPop();
|
|
270
278
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.10.0-beta.
|
|
3
|
+
"version": "3.10.0-beta.7",
|
|
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.10.0-beta.
|
|
13
|
+
"@sheinx/hooks": "3.10.0-beta.7",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.3.3"
|