@mjhls/mjh-framework 1.0.608 → 1.0.609
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/README.md +1 -1
- package/dist/cjs/GridContent.js +38 -1
- package/dist/esm/GridContent.js +38 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/GridContent.js
CHANGED
|
@@ -74,7 +74,8 @@ var GridContent = function (_React$Component) {
|
|
|
74
74
|
scrolling: true,
|
|
75
75
|
query: _this.query,
|
|
76
76
|
currentPage: _this.props.currentPage || 1,
|
|
77
|
-
lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false
|
|
77
|
+
lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false,
|
|
78
|
+
showCategory: _this.props.showCategory ? _this.props.showCategory : false
|
|
78
79
|
}, _this.loadMore = debounce.debounce_1(function () {
|
|
79
80
|
_this.setState(function (state) {
|
|
80
81
|
var page = state.page,
|
|
@@ -319,6 +320,24 @@ var GridContent = function (_React$Component) {
|
|
|
319
320
|
{ height: 50 },
|
|
320
321
|
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
321
322
|
),
|
|
323
|
+
_this2.props.showCategory && row.contentCategory && React__default.createElement(
|
|
324
|
+
index$2.LazyLoad,
|
|
325
|
+
{ height: 50 },
|
|
326
|
+
React__default.createElement(
|
|
327
|
+
'p',
|
|
328
|
+
{
|
|
329
|
+
className: 'article-category',
|
|
330
|
+
style: {
|
|
331
|
+
background: '#3FB618',
|
|
332
|
+
color: '#ffffff',
|
|
333
|
+
marginBottom: '.25rem',
|
|
334
|
+
display: 'inline-block',
|
|
335
|
+
padding: '0 .25rem',
|
|
336
|
+
fontSize: '.8rem'
|
|
337
|
+
} },
|
|
338
|
+
row.contentCategory.name.slice(0, row.contentCategory.name.length - 1)
|
|
339
|
+
)
|
|
340
|
+
),
|
|
322
341
|
React__default.createElement(
|
|
323
342
|
Card.Text,
|
|
324
343
|
null,
|
|
@@ -635,6 +654,24 @@ var GridContent = function (_React$Component) {
|
|
|
635
654
|
{ height: 50 },
|
|
636
655
|
React__default.createElement(AuthorComponent.AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
637
656
|
),
|
|
657
|
+
_this2.props.showCategory && row.contentCategory && React__default.createElement(
|
|
658
|
+
index$2.LazyLoad,
|
|
659
|
+
{ height: 50 },
|
|
660
|
+
React__default.createElement(
|
|
661
|
+
'p',
|
|
662
|
+
{
|
|
663
|
+
className: 'article-category',
|
|
664
|
+
style: {
|
|
665
|
+
background: '#3FB618',
|
|
666
|
+
color: '#ffffff',
|
|
667
|
+
marginBottom: '.25rem',
|
|
668
|
+
display: 'inline-block',
|
|
669
|
+
padding: '0 .25rem',
|
|
670
|
+
fontSize: '.8rem'
|
|
671
|
+
} },
|
|
672
|
+
row.contentCategory.name.slice(0, row.contentCategory.name.length - 1)
|
|
673
|
+
)
|
|
674
|
+
),
|
|
638
675
|
React__default.createElement(
|
|
639
676
|
Card.Text,
|
|
640
677
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -68,7 +68,8 @@ var GridContent = function (_React$Component) {
|
|
|
68
68
|
scrolling: true,
|
|
69
69
|
query: _this.query,
|
|
70
70
|
currentPage: _this.props.currentPage || 1,
|
|
71
|
-
lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false
|
|
71
|
+
lgInfeedAd: _this.props.lgInfeedAd ? _this.props.lgInfeedAd : false,
|
|
72
|
+
showCategory: _this.props.showCategory ? _this.props.showCategory : false
|
|
72
73
|
}, _this.loadMore = debounce_1(function () {
|
|
73
74
|
_this.setState(function (state) {
|
|
74
75
|
var page = state.page,
|
|
@@ -313,6 +314,24 @@ var GridContent = function (_React$Component) {
|
|
|
313
314
|
{ height: 50 },
|
|
314
315
|
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
315
316
|
),
|
|
317
|
+
_this2.props.showCategory && row.contentCategory && React__default.createElement(
|
|
318
|
+
LazyLoad,
|
|
319
|
+
{ height: 50 },
|
|
320
|
+
React__default.createElement(
|
|
321
|
+
'p',
|
|
322
|
+
{
|
|
323
|
+
className: 'article-category',
|
|
324
|
+
style: {
|
|
325
|
+
background: '#3FB618',
|
|
326
|
+
color: '#ffffff',
|
|
327
|
+
marginBottom: '.25rem',
|
|
328
|
+
display: 'inline-block',
|
|
329
|
+
padding: '0 .25rem',
|
|
330
|
+
fontSize: '.8rem'
|
|
331
|
+
} },
|
|
332
|
+
row.contentCategory.name.slice(0, row.contentCategory.name.length - 1)
|
|
333
|
+
)
|
|
334
|
+
),
|
|
316
335
|
React__default.createElement(
|
|
317
336
|
Card.Text,
|
|
318
337
|
null,
|
|
@@ -629,6 +648,24 @@ var GridContent = function (_React$Component) {
|
|
|
629
648
|
{ height: 50 },
|
|
630
649
|
React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: row.authorMapping })
|
|
631
650
|
),
|
|
651
|
+
_this2.props.showCategory && row.contentCategory && React__default.createElement(
|
|
652
|
+
LazyLoad,
|
|
653
|
+
{ height: 50 },
|
|
654
|
+
React__default.createElement(
|
|
655
|
+
'p',
|
|
656
|
+
{
|
|
657
|
+
className: 'article-category',
|
|
658
|
+
style: {
|
|
659
|
+
background: '#3FB618',
|
|
660
|
+
color: '#ffffff',
|
|
661
|
+
marginBottom: '.25rem',
|
|
662
|
+
display: 'inline-block',
|
|
663
|
+
padding: '0 .25rem',
|
|
664
|
+
fontSize: '.8rem'
|
|
665
|
+
} },
|
|
666
|
+
row.contentCategory.name.slice(0, row.contentCategory.name.length - 1)
|
|
667
|
+
)
|
|
668
|
+
),
|
|
632
669
|
React__default.createElement(
|
|
633
670
|
Card.Text,
|
|
634
671
|
{ className: index === 0 || index % 4 === 0 ? '' : 'card-subtext' },
|