@douyinfe/semi-ui 2.2.0 → 2.2.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.
- package/datePicker/__test__/datePicker.test.js +15 -0
- package/datePicker/_story/datePicker.stories.js +62 -1
- package/datePicker/datePicker.tsx +3 -0
- package/dist/css/semi.css +26 -4
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +47 -14
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/datePicker/datePicker.js +4 -0
- package/lib/es/datePicker/datePicker.js +4 -0
- package/package.json +8 -8
|
@@ -278,6 +278,10 @@ class DatePicker extends _baseComponent.default {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
this.clickOutSideHandler = e => {
|
|
281
|
+
if (this.adapter.needConfirm()) {
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
|
|
281
285
|
const triggerEl = this.triggerElRef && this.triggerElRef.current;
|
|
282
286
|
const panelEl = this.panelRef && this.panelRef.current;
|
|
283
287
|
const isInTrigger = triggerEl && triggerEl.contains(e.target);
|
|
@@ -241,6 +241,10 @@ export default class DatePicker extends BaseComponent {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
this.clickOutSideHandler = e => {
|
|
244
|
+
if (this.adapter.needConfirm()) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
|
|
244
248
|
const triggerEl = this.triggerElRef && this.triggerElRef.current;
|
|
245
249
|
const panelEl = this.panelRef && this.panelRef.current;
|
|
246
250
|
const isInTrigger = triggerEl && triggerEl.contains(e.target);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/runtime-corejs3": "^7.15.4",
|
|
17
|
-
"@douyinfe/semi-animation-react": "2.2.
|
|
18
|
-
"@douyinfe/semi-foundation": "2.2.
|
|
19
|
-
"@douyinfe/semi-icons": "2.2.
|
|
20
|
-
"@douyinfe/semi-illustrations": "2.2.
|
|
21
|
-
"@douyinfe/semi-theme-default": "2.2.
|
|
17
|
+
"@douyinfe/semi-animation-react": "2.2.1",
|
|
18
|
+
"@douyinfe/semi-foundation": "2.2.1",
|
|
19
|
+
"@douyinfe/semi-icons": "2.2.1",
|
|
20
|
+
"@douyinfe/semi-illustrations": "2.2.1",
|
|
21
|
+
"@douyinfe/semi-theme-default": "2.2.1",
|
|
22
22
|
"@types/react-window": "^1.8.2",
|
|
23
23
|
"async-validator": "^3.5.0",
|
|
24
24
|
"classnames": "^2.2.6",
|
|
@@ -68,13 +68,13 @@
|
|
|
68
68
|
],
|
|
69
69
|
"author": "",
|
|
70
70
|
"license": "MIT",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "6d8bb9dd22bf199225fa2a0dda4f8524a4b97f6f",
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
74
74
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
75
75
|
"@babel/preset-env": "^7.15.8",
|
|
76
76
|
"@babel/preset-react": "^7.14.5",
|
|
77
|
-
"@douyinfe/semi-scss-compile": "2.2.
|
|
77
|
+
"@douyinfe/semi-scss-compile": "2.2.1",
|
|
78
78
|
"@storybook/addon-knobs": "^6.3.1",
|
|
79
79
|
"@types/lodash": "^4.14.176",
|
|
80
80
|
"babel-loader": "^8.2.2",
|