shineout 1.9.2 → 1.9.5

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/Datum/hoc.js CHANGED
@@ -105,13 +105,6 @@ var _default = (0, _func.curry)(function (options, Origin) {
105
105
  if (prevProps.onChange !== this.props.onChange) {
106
106
  this.datum.onChange = this.props.onChange;
107
107
  }
108
-
109
- var values = this.props[key];
110
-
111
- if (values !== this.prevValues) {
112
- this.setValue(this.props.initValidate ? undefined : _types.IGNORE_VALIDATE);
113
- this.prevValues = values;
114
- }
115
108
  };
116
109
 
117
110
  _proto.setValue = function setValue(t) {
@@ -130,6 +123,13 @@ var _default = (0, _func.curry)(function (options, Origin) {
130
123
  this.datum.setDisabled(props.disabled);
131
124
  }
132
125
 
126
+ var values = this.props[key];
127
+
128
+ if (values !== this.prevValues) {
129
+ this.setValue(this.props.initValidate ? undefined : _types.IGNORE_VALIDATE);
130
+ this.prevValues = values;
131
+ }
132
+
133
133
  if (type === 'list') this.setValue(_types.WITH_OUT_DISPATCH); // delete props[key]
134
134
 
135
135
  return _react.default.createElement(Origin, (0, _extends2.default)({}, props, {
@@ -48,7 +48,7 @@ function (_PureComponent) {
48
48
  var _this$props = this.props,
49
49
  total = _this$props.total,
50
50
  pageSize = _this$props.pageSize;
51
- return Math.ceil(total / pageSize);
51
+ return Math.ceil(total / pageSize) || 1;
52
52
  };
53
53
 
54
54
  _proto.handleKeyDown = function handleKeyDown(e) {
@@ -129,7 +129,9 @@ function (_PureComponent) {
129
129
  var colgroup = [];
130
130
 
131
131
  var _loop = function _loop(i, count) {
132
- var width = tds[i].offsetWidth;
132
+ var _tds$i$getBoundingCli = tds[i].getBoundingClientRect(),
133
+ width = _tds$i$getBoundingCli.width;
134
+
133
135
  var colSpan = parseInt(tds[i].getAttribute('colspan'), 10);
134
136
 
135
137
  if (colSpan > 1) {
@@ -296,6 +296,15 @@ export interface TreeSelectProps<Value, Data> extends StandardProps,
296
296
  * default: -
297
297
  */
298
298
  innerTitle?: ReactNode;
299
+
300
+ /**
301
+ * 点击父节点后展开节点
302
+ *
303
+ * Click on the parent node to expand the node
304
+ *
305
+ * default: -
306
+ */
307
+ parentClickExpand?: boolean
299
308
  }
300
309
 
301
310
 
package/css/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Created by scripts/src-index.js.
2
2
  import * as utils from './utils'
3
3
 
4
- export default { utils, version: '1.9.2' }
4
+ export default { utils, version: '1.9.5' }
5
5
  export { utils }
6
6
  export { setLocale } from './locale'
7
7
  export { color, style } from './utils/expose'
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.9.2'
227
+ version: '1.9.5'
228
228
  };
229
229
  exports.default = _default;
package/css/utils/zoom.js CHANGED
@@ -29,9 +29,15 @@ var updatePixelRatio = function updatePixelRatio(e) {
29
29
  dispatch(pr);
30
30
  }
31
31
 
32
- window.matchMedia("(resolution: " + pr + "dppx)").addEventListener('change', updatePixelRatio, {
33
- once: true
34
- });
32
+ if (window.matchMedia) {
33
+ var media = window.matchMedia("(resolution: " + pr + "dppx)");
34
+
35
+ if (media.addEventListener) {
36
+ media.addEventListener('change', updatePixelRatio, {
37
+ once: true
38
+ });
39
+ }
40
+ }
35
41
  };
36
42
 
37
43
  updatePixelRatio();
package/dist/shineout.js CHANGED
@@ -18196,13 +18196,6 @@ var types = {
18196
18196
  if (prevProps.onChange !== this.props.onChange) {
18197
18197
  this.datum.onChange = this.props.onChange;
18198
18198
  }
18199
-
18200
- var values = this.props[key];
18201
-
18202
- if (values !== this.prevValues) {
18203
- this.setValue(this.props.initValidate ? undefined : _types__WEBPACK_IMPORTED_MODULE_11__["IGNORE_VALIDATE"]);
18204
- this.prevValues = values;
18205
- }
18206
18199
  }
18207
18200
  }, {
18208
18201
  key: "setValue",
@@ -18224,6 +18217,13 @@ var types = {
18224
18217
  this.datum.setDisabled(props.disabled);
18225
18218
  }
18226
18219
 
18220
+ var values = this.props[key];
18221
+
18222
+ if (values !== this.prevValues) {
18223
+ this.setValue(this.props.initValidate ? undefined : _types__WEBPACK_IMPORTED_MODULE_11__["IGNORE_VALIDATE"]);
18224
+ this.prevValues = values;
18225
+ }
18226
+
18227
18227
  if (type === 'list') this.setValue(_types__WEBPACK_IMPORTED_MODULE_11__["WITH_OUT_DISPATCH"]); // delete props[key]
18228
18228
 
18229
18229
  return (
@@ -29432,7 +29432,7 @@ function (_PureComponent) {
29432
29432
  var _this$props = this.props,
29433
29433
  total = _this$props.total,
29434
29434
  pageSize = _this$props.pageSize;
29435
- return Math.ceil(total / pageSize);
29435
+ return Math.ceil(total / pageSize) || 1;
29436
29436
  }
29437
29437
  }, {
29438
29438
  key: "handleKeyDown",
@@ -42903,7 +42903,9 @@ function (_PureComponent) {
42903
42903
  var colgroup = [];
42904
42904
 
42905
42905
  var _loop = function _loop(i, count) {
42906
- var width = tds[i].offsetWidth;
42906
+ var _tds$i$getBoundingCli = tds[i].getBoundingClientRect(),
42907
+ width = _tds$i$getBoundingCli.width;
42908
+
42907
42909
  var colSpan = parseInt(tds[i].getAttribute('colspan'), 10);
42908
42910
 
42909
42911
  if (colSpan > 1) {
@@ -61002,7 +61004,7 @@ __webpack_require__.r(__webpack_exports__);
61002
61004
 
61003
61005
  /* harmony default export */ __webpack_exports__["default"] = ({
61004
61006
  utils: _utils__WEBPACK_IMPORTED_MODULE_0__,
61005
- version: '1.9.2'
61007
+ version: '1.9.5'
61006
61008
  });
61007
61009
 
61008
61010
 
@@ -69305,9 +69307,15 @@ var updatePixelRatio = function updatePixelRatio(e) {
69305
69307
  dispatch(pr);
69306
69308
  }
69307
69309
 
69308
- window.matchMedia("(resolution: ".concat(pr, "dppx)")).addEventListener('change', updatePixelRatio, {
69309
- once: true
69310
- });
69310
+ if (window.matchMedia) {
69311
+ var media = window.matchMedia("(resolution: ".concat(pr, "dppx)"));
69312
+
69313
+ if (media.addEventListener) {
69314
+ media.addEventListener('change', updatePixelRatio, {
69315
+ once: true
69316
+ });
69317
+ }
69318
+ }
69311
69319
  };
69312
69320
 
69313
69321
  updatePixelRatio();