shineout 1.12.4-alpha.1 → 1.12.4-alpha.2
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/css/Checkbox/CheckItem.js +4 -15
- package/css/Popover/events.js +6 -2
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +825 -784
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Checkbox/CheckItem.js +5 -16
- package/es/Popover/events.js +6 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Checkbox/CheckItem.js +4 -15
- package/lib/Popover/events.js +6 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -91,14 +91,7 @@ function _default(type) {
|
|
|
91
91
|
_proto.getProp = function getProp(key) {
|
|
92
92
|
if (this.props[key] !== undefined) return this.props[key];
|
|
93
93
|
return this.state[key];
|
|
94
|
-
}
|
|
95
|
-
// https://github.com/sheinsight/shineout/pull/1932
|
|
96
|
-
// onClick = e => {
|
|
97
|
-
// e.stopPropagation()
|
|
98
|
-
// const { onClick } = this.props
|
|
99
|
-
// if (isFunc(onClick)) onClick(e)
|
|
100
|
-
// }
|
|
101
|
-
;
|
|
94
|
+
};
|
|
102
95
|
|
|
103
96
|
_proto.bindRef = function bindRef(el) {
|
|
104
97
|
if (el) this.el = el;
|
|
@@ -156,8 +149,7 @@ function _default(type) {
|
|
|
156
149
|
content = _this$props5.content,
|
|
157
150
|
size = _this$props5.size,
|
|
158
151
|
children = _this$props5.children,
|
|
159
|
-
inputable = _this$props5.inputable
|
|
160
|
-
onClick = _this$props5.onClick;
|
|
152
|
+
inputable = _this$props5.inputable;
|
|
161
153
|
var rtl = (0, _config.isRTL)();
|
|
162
154
|
var checked = this.getChecked();
|
|
163
155
|
var isSwitch = type === 'switch';
|
|
@@ -183,11 +175,8 @@ function _default(type) {
|
|
|
183
175
|
id: this.id,
|
|
184
176
|
disabled: disabled,
|
|
185
177
|
tabIndex: -1,
|
|
186
|
-
type: isSwitch ? 'checkbox' : type
|
|
187
|
-
|
|
188
|
-
// onClick={this.onClick}
|
|
189
|
-
,
|
|
190
|
-
onClick: onClick,
|
|
178
|
+
type: isSwitch ? 'checkbox' : type,
|
|
179
|
+
onClick: this.props.onClick,
|
|
191
180
|
onChange: this.handleChange,
|
|
192
181
|
checked: checked
|
|
193
182
|
}), _react.default.createElement("i", {
|
package/css/Popover/events.js
CHANGED
|
@@ -28,9 +28,13 @@ function hide(delay) {
|
|
|
28
28
|
delay = 500;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
// https://github.com/sheinsight/shineout/pull/1957
|
|
31
32
|
timer = setTimeout(function () {
|
|
32
|
-
div
|
|
33
|
-
|
|
33
|
+
if (div) {
|
|
34
|
+
div.style.display = 'none';
|
|
35
|
+
div.className = '';
|
|
36
|
+
}
|
|
37
|
+
|
|
34
38
|
currentId = undefined;
|
|
35
39
|
}, delay);
|
|
36
40
|
}
|
package/css/index.d.ts
CHANGED