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.
@@ -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
- } // 临时保留 bug 2023-3-7
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 // 临时保留 bug 2023-3-7
187
- // https://github.com/sheinsight/shineout/pull/1932
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", {
@@ -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.style.display = 'none';
33
- div.className = '';
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
@@ -3,7 +3,7 @@ import * as utils from './utils'
3
3
 
4
4
  declare const __default: {
5
5
  utils: typeof utils,
6
- version: '1.12.4-alpha.1'
6
+ version: '1.12.4-alpha.2'
7
7
  }
8
8
 
9
9
  export default __default
package/css/index.js CHANGED
@@ -224,6 +224,6 @@ exports.Upload = _Upload.default;
224
224
  // Created by scripts/src-index.js.
225
225
  var _default = {
226
226
  utils: utils,
227
- version: '1.12.4-alpha.1'
227
+ version: '1.12.4-alpha.2'
228
228
  };
229
229
  exports.default = _default;