shineout 2.0.5-beta.2 → 2.0.5-beta.4
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/Cascader/Cascader.js +1 -0
- package/css/Cascader/filter.js +3 -1
- package/css/Table/Table.js +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +1509 -1496
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Cascader/Cascader.js +1 -0
- package/es/Cascader/filter.js +3 -1
- package/es/Table/Table.js +1 -1
- package/es/index.js +1 -1
- package/lib/Cascader/Cascader.js +1 -0
- package/lib/Cascader/filter.js +3 -1
- package/lib/Table/Table.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/Cascader/Cascader.js
CHANGED
|
@@ -145,6 +145,7 @@ function (_PureComponent) {
|
|
|
145
145
|
|
|
146
146
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
|
|
147
147
|
this.datum.mode = this.props.mode;
|
|
148
|
+
this.datum.updateDisabled(this.props.disabled);
|
|
148
149
|
this.setOpenEvent();
|
|
149
150
|
var _this$props = this.props,
|
|
150
151
|
onFilter = _this$props.onFilter,
|
package/es/Cascader/filter.js
CHANGED
|
@@ -84,7 +84,9 @@ export default (function (Origin) {
|
|
|
84
84
|
var _this$state = this.state,
|
|
85
85
|
filterText = _this$state.filterText,
|
|
86
86
|
filter = _this$state.filter;
|
|
87
|
-
if (!onFilter) return React.createElement(Origin, this.props
|
|
87
|
+
if (!onFilter) return React.createElement(Origin, _extends({}, this.props, {
|
|
88
|
+
sourceData: this.props.data
|
|
89
|
+
}));
|
|
88
90
|
var data = this.getData();
|
|
89
91
|
return React.createElement(Origin, _extends({}, this.props, {
|
|
90
92
|
data: data,
|
package/es/Table/Table.js
CHANGED
|
@@ -70,7 +70,7 @@ function (_Component) {
|
|
|
70
70
|
_proto.componentDidMount = function componentDidMount() {
|
|
71
71
|
var _this2 = this;
|
|
72
72
|
|
|
73
|
-
if (this.props.sticky && this.table &&
|
|
73
|
+
if (this.props.sticky && this.table && window.IntersectionObserver) {
|
|
74
74
|
var observer = new IntersectionObserver(function (entries) {
|
|
75
75
|
var entry = entries[0];
|
|
76
76
|
|
package/es/index.js
CHANGED
package/lib/Cascader/Cascader.js
CHANGED
|
@@ -157,6 +157,7 @@ function (_PureComponent) {
|
|
|
157
157
|
|
|
158
158
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {
|
|
159
159
|
this.datum.mode = this.props.mode;
|
|
160
|
+
this.datum.updateDisabled(this.props.disabled);
|
|
160
161
|
this.setOpenEvent();
|
|
161
162
|
var _this$props = this.props,
|
|
162
163
|
onFilter = _this$props.onFilter,
|
package/lib/Cascader/filter.js
CHANGED
|
@@ -96,7 +96,9 @@ var _default = function _default(Origin) {
|
|
|
96
96
|
var _this$state = this.state,
|
|
97
97
|
filterText = _this$state.filterText,
|
|
98
98
|
filter = _this$state.filter;
|
|
99
|
-
if (!onFilter) return _react.default.createElement(Origin, this.props
|
|
99
|
+
if (!onFilter) return _react.default.createElement(Origin, (0, _extends2.default)({}, this.props, {
|
|
100
|
+
sourceData: this.props.data
|
|
101
|
+
}));
|
|
100
102
|
var data = this.getData();
|
|
101
103
|
return _react.default.createElement(Origin, (0, _extends2.default)({}, this.props, {
|
|
102
104
|
data: data,
|
package/lib/Table/Table.js
CHANGED
|
@@ -98,7 +98,7 @@ function (_Component) {
|
|
|
98
98
|
_proto.componentDidMount = function componentDidMount() {
|
|
99
99
|
var _this2 = this;
|
|
100
100
|
|
|
101
|
-
if (this.props.sticky && this.table &&
|
|
101
|
+
if (this.props.sticky && this.table && window.IntersectionObserver) {
|
|
102
102
|
var observer = new IntersectionObserver(function (entries) {
|
|
103
103
|
var entry = entries[0];
|
|
104
104
|
|
package/lib/index.js
CHANGED