@sheinx/base 3.7.7-beta.8 → 3.7.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":"useInputClick.d.ts","sourceRoot":"","sources":["useInputClick.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"useInputClick.d.ts","sourceRoot":"","sources":["useInputClick.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa;;;;;;;yBAOL,gBAAgB;;;;;CAsBpC,CAAC"}
|
|
@@ -16,6 +16,10 @@ var useInputClick = exports.useInputClick = function useInputClick() {
|
|
|
16
16
|
type: 'file',
|
|
17
17
|
style: {
|
|
18
18
|
display: 'none'
|
|
19
|
+
},
|
|
20
|
+
onClick: function onClick(event) {
|
|
21
|
+
// 阻止程序化触发(inputRef.current.click())的input点击事件冒泡
|
|
22
|
+
event.stopPropagation();
|
|
19
23
|
}
|
|
20
24
|
};
|
|
21
25
|
var wrapperProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInputClick.d.ts","sourceRoot":"","sources":["useInputClick.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"useInputClick.d.ts","sourceRoot":"","sources":["useInputClick.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa;;;;;;;yBAOL,gBAAgB;;;;;CAsBpC,CAAC"}
|
|
@@ -10,6 +10,10 @@ export var useInputClick = function useInputClick() {
|
|
|
10
10
|
type: 'file',
|
|
11
11
|
style: {
|
|
12
12
|
display: 'none'
|
|
13
|
+
},
|
|
14
|
+
onClick: function onClick(event) {
|
|
15
|
+
// 阻止程序化触发(inputRef.current.click())的input点击事件冒泡
|
|
16
|
+
event.stopPropagation();
|
|
13
17
|
}
|
|
14
18
|
};
|
|
15
19
|
var wrapperProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.7
|
|
3
|
+
"version": "3.7.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.7.7
|
|
13
|
+
"@sheinx/hooks": "3.7.7",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|