@douyinfe/semi-ui 2.21.0 → 2.21.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.
|
@@ -267,12 +267,12 @@ class ModalContent extends _baseComponent.default {
|
|
|
267
267
|
},
|
|
268
268
|
addKeyDownEventListener: () => {
|
|
269
269
|
if (this.props.closeOnEsc) {
|
|
270
|
-
document.addEventListener('keydown', this.foundation.handleKeyDown
|
|
270
|
+
document.addEventListener('keydown', this.foundation.handleKeyDown);
|
|
271
271
|
}
|
|
272
272
|
},
|
|
273
273
|
removeKeyDownEventListener: () => {
|
|
274
274
|
if (this.props.closeOnEsc) {
|
|
275
|
-
document.removeEventListener('keydown', this.foundation.handleKeyDown
|
|
275
|
+
document.removeEventListener('keydown', this.foundation.handleKeyDown);
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
278
|
getMouseState: () => this.state.dialogMouseDown,
|
|
@@ -242,12 +242,12 @@ export default class ModalContent extends BaseComponent {
|
|
|
242
242
|
},
|
|
243
243
|
addKeyDownEventListener: () => {
|
|
244
244
|
if (this.props.closeOnEsc) {
|
|
245
|
-
document.addEventListener('keydown', this.foundation.handleKeyDown
|
|
245
|
+
document.addEventListener('keydown', this.foundation.handleKeyDown);
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
248
|
removeKeyDownEventListener: () => {
|
|
249
249
|
if (this.props.closeOnEsc) {
|
|
250
|
-
document.removeEventListener('keydown', this.foundation.handleKeyDown
|
|
250
|
+
document.removeEventListener('keydown', this.foundation.handleKeyDown);
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
getMouseState: () => this.state.dialogMouseDown,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@douyinfe/semi-animation": "2.12.0",
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.21.
|
|
22
|
-
"@douyinfe/semi-foundation": "2.21.
|
|
23
|
-
"@douyinfe/semi-icons": "2.21.
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.21.1",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.21.1",
|
|
23
|
+
"@douyinfe/semi-icons": "2.21.1",
|
|
24
24
|
"@douyinfe/semi-illustrations": "2.15.0",
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.21.
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.21.1",
|
|
26
26
|
"async-validator": "^3.5.0",
|
|
27
27
|
"classnames": "^2.2.6",
|
|
28
28
|
"copy-text-to-clipboard": "^2.1.1",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
],
|
|
70
70
|
"author": "",
|
|
71
71
|
"license": "MIT",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "ae80a064a1525cbc26fe498ac236beb0d075e362",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
76
76
|
"@babel/preset-env": "^7.15.8",
|
|
77
77
|
"@babel/preset-react": "^7.14.5",
|
|
78
|
-
"@douyinfe/semi-scss-compile": "2.21.
|
|
78
|
+
"@douyinfe/semi-scss-compile": "2.21.1",
|
|
79
79
|
"@storybook/addon-knobs": "^6.3.1",
|
|
80
80
|
"@types/lodash": "^4.14.176",
|
|
81
81
|
"@types/react": ">=16.0.0",
|