@mjhls/mjh-framework 1.0.31 → 1.0.33
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/dist/index.es.js +20 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -549,6 +549,7 @@ var DeckContent = function (_React$Component) {
|
|
|
549
549
|
|
|
550
550
|
return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = DeckContent.__proto__ || Object.getPrototypeOf(DeckContent)).call.apply(_ref, [this].concat(args))), _this), _this.mapping = _this.props.mapping, _this.data = _this.props.dataRecord, _this.query = _this.props.query, _this.params = _this.props.params, _this.pointer = _this.props.pointer ? _this.props.pointer : false, _this.pointerArray = _this.props.pointerArray ? _this.props.pointerArray : false, _this.defaultImage = _this.props.defaultImage ? _this.props.defaultImage : '/placeholder.jpg', _this.state = {
|
|
551
551
|
data: _this.data,
|
|
552
|
+
dataKeptToCompareNewDatarecord: _this.data,
|
|
552
553
|
per: _this.params ? _this.params.to : 2,
|
|
553
554
|
page: 1,
|
|
554
555
|
from: _this.params ? _this.params.from : 0,
|
|
@@ -677,6 +678,24 @@ var DeckContent = function (_React$Component) {
|
|
|
677
678
|
}
|
|
678
679
|
|
|
679
680
|
createClass(DeckContent, [{
|
|
681
|
+
key: 'componentDidUpdate',
|
|
682
|
+
value: function componentDidUpdate(prevProps, prevState) {
|
|
683
|
+
if (this.state.dataKeptToCompareNewDatarecord !== this.props.dataRecord) {
|
|
684
|
+
// eslint-disable-next-line react/no-did-update-set-state
|
|
685
|
+
this.setState({
|
|
686
|
+
data: this.props.dataRecord,
|
|
687
|
+
dataKeptToCompareNewDatarecord: this.props.dataRecord,
|
|
688
|
+
per: this.props.params ? this.props.params.to : 2,
|
|
689
|
+
page: 1,
|
|
690
|
+
from: this.props.params ? this.props.params.from : 0,
|
|
691
|
+
to: this.props.params ? this.props.params.to : 2,
|
|
692
|
+
total_pages: null,
|
|
693
|
+
scrolling: true,
|
|
694
|
+
query: this.props.query
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}, {
|
|
680
699
|
key: 'componentDidMount',
|
|
681
700
|
value: function componentDidMount() {
|
|
682
701
|
// this.loadData();
|
|
@@ -4788,7 +4807,7 @@ var TemplateNormal = function TemplateNormal(props) {
|
|
|
4788
4807
|
return React__default.createElement(
|
|
4789
4808
|
'section',
|
|
4790
4809
|
null,
|
|
4791
|
-
React__default.createElement(Header, { title: title + ' | ' + website.title, keyword: keywords, description: description }),
|
|
4810
|
+
React__default.createElement(Header, { title: title ? title + ' | ' + website.title : '' + website.title, keyword: keywords, description: description }),
|
|
4792
4811
|
navigation(),
|
|
4793
4812
|
horizontalAD && horizontalAD.networkID && horizontalAD.adUnit && React__default.createElement(
|
|
4794
4813
|
Container,
|