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 +7 -7
- package/css/Pagination/Jumper.js +1 -1
- package/css/Table/SimpleTable.js +3 -1
- package/css/TreeSelect/index.d.ts +9 -0
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/css/utils/zoom.js +9 -3
- package/dist/shineout.js +21 -13
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Datum/hoc.js +7 -7
- package/es/Pagination/Jumper.js +1 -1
- package/es/Table/SimpleTable.js +3 -1
- package/es/TreeSelect/index.d.ts +9 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/utils/zoom.js +9 -3
- package/lib/Datum/hoc.js +7 -7
- package/lib/Pagination/Jumper.js +1 -1
- package/lib/Table/SimpleTable.js +3 -1
- package/lib/TreeSelect/index.d.ts +9 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/utils/zoom.js +9 -3
- package/package.json +1 -1
package/es/Datum/hoc.js
CHANGED
|
@@ -85,13 +85,6 @@ export default curry(function (options, Origin) {
|
|
|
85
85
|
if (prevProps.onChange !== this.props.onChange) {
|
|
86
86
|
this.datum.onChange = this.props.onChange;
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
var values = this.props[key];
|
|
90
|
-
|
|
91
|
-
if (values !== this.prevValues) {
|
|
92
|
-
this.setValue(this.props.initValidate ? undefined : IGNORE_VALIDATE);
|
|
93
|
-
this.prevValues = values;
|
|
94
|
-
}
|
|
95
88
|
};
|
|
96
89
|
|
|
97
90
|
_proto.setValue = function setValue(t) {
|
|
@@ -111,6 +104,13 @@ export default curry(function (options, Origin) {
|
|
|
111
104
|
this.datum.setDisabled(props.disabled);
|
|
112
105
|
}
|
|
113
106
|
|
|
107
|
+
var values = this.props[key];
|
|
108
|
+
|
|
109
|
+
if (values !== this.prevValues) {
|
|
110
|
+
this.setValue(this.props.initValidate ? undefined : IGNORE_VALIDATE);
|
|
111
|
+
this.prevValues = values;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
114
|
if (type === 'list') this.setValue(WITH_OUT_DISPATCH); // delete props[key]
|
|
115
115
|
|
|
116
116
|
return React.createElement(Origin, _extends({}, props, {
|
package/es/Pagination/Jumper.js
CHANGED
|
@@ -32,7 +32,7 @@ function (_PureComponent) {
|
|
|
32
32
|
var _this$props = this.props,
|
|
33
33
|
total = _this$props.total,
|
|
34
34
|
pageSize = _this$props.pageSize;
|
|
35
|
-
return Math.ceil(total / pageSize);
|
|
35
|
+
return Math.ceil(total / pageSize) || 1;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
_proto.handleKeyDown = function handleKeyDown(e) {
|
package/es/Table/SimpleTable.js
CHANGED
|
@@ -108,7 +108,9 @@ function (_PureComponent) {
|
|
|
108
108
|
var colgroup = [];
|
|
109
109
|
|
|
110
110
|
var _loop = function _loop(i, count) {
|
|
111
|
-
var
|
|
111
|
+
var _tds$i$getBoundingCli = tds[i].getBoundingClientRect(),
|
|
112
|
+
width = _tds$i$getBoundingCli.width;
|
|
113
|
+
|
|
112
114
|
var colSpan = parseInt(tds[i].getAttribute('colspan'), 10);
|
|
113
115
|
|
|
114
116
|
if (colSpan > 1) {
|
package/es/TreeSelect/index.d.ts
CHANGED
|
@@ -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/es/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.
|
|
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/es/index.js
CHANGED
package/es/utils/zoom.js
CHANGED
|
@@ -19,9 +19,15 @@ var updatePixelRatio = function updatePixelRatio(e) {
|
|
|
19
19
|
dispatch(pr);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
window.matchMedia
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
if (window.matchMedia) {
|
|
23
|
+
var media = window.matchMedia("(resolution: " + pr + "dppx)");
|
|
24
|
+
|
|
25
|
+
if (media.addEventListener) {
|
|
26
|
+
media.addEventListener('change', updatePixelRatio, {
|
|
27
|
+
once: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
25
31
|
};
|
|
26
32
|
|
|
27
33
|
updatePixelRatio();
|
package/lib/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, {
|
package/lib/Pagination/Jumper.js
CHANGED
|
@@ -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) {
|
package/lib/Table/SimpleTable.js
CHANGED
|
@@ -129,7 +129,9 @@ function (_PureComponent) {
|
|
|
129
129
|
var colgroup = [];
|
|
130
130
|
|
|
131
131
|
var _loop = function _loop(i, count) {
|
|
132
|
-
var
|
|
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/lib/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.
|
|
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/lib/index.js
CHANGED
package/lib/utils/zoom.js
CHANGED
|
@@ -29,9 +29,15 @@ var updatePixelRatio = function updatePixelRatio(e) {
|
|
|
29
29
|
dispatch(pr);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
window.matchMedia
|
|
33
|
-
|
|
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();
|