@fonixtree/magic-design 0.0.28 → 0.0.29
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/es/common/ButtonIconLayout/index.js +4 -2
- package/es/common/ImageModal/index.js +5 -3
- package/es/common/ImagePicker/index.js +6 -4
- package/es/common/LinkModal/FilteredProductModal/index.js +12 -10
- package/es/common/LinkModal/ProductDetailPage/index.js +5 -3
- package/es/common/LinkModal/index.js +7 -5
- package/es/common/ProductModal/index.js +26 -24
- package/es/common/ProductSource/index.js +6 -2
- package/es/common/UrlPicker/index.js +3 -1
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +4 -6
- package/es/composite-comp/bol/components/Carousel/mobile/index.less +11 -9
- package/es/composite-comp/bol/components/Carousel/pc/index.js +15 -24
- package/es/composite-comp/bol/components/Carousel/pc/index.less +0 -8
- package/es/composite-comp/bol/components/ImageText/mobile/index.js +3 -2
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
- package/es/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
- package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
- package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -6
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
- package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
- package/es/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
- package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
- package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
- package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
- package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
- package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
- package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
- package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +9 -7
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
- package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
- package/es/composite-comp/common/components/ProductItem/index.js +1 -1
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
- package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
- package/es/composite-comp/common/config-panels/SpacingConfig/index.js +6 -19
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
- package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
- package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
- package/es/constants/index.js +1 -1
- package/es/core/Designer/CompListPanel/index.js +4 -2
- package/es/core/Designer/ConfigPanel/index.js +3 -1
- package/es/core/Designer/PageCompList/index.js +4 -4
- package/es/core/Designer/QuickMenuBar/index.js +17 -61
- package/es/core/Designer/index.js +10 -14
- package/es/locale/en/en.json +121 -0
- package/es/locale/id/id.json +121 -0
- package/es/locale/index.js +12 -5
- package/es/meta-comp/components/Image/index.js +0 -5
- package/es/meta-comp/config-panels/ButtonConfig/index.js +23 -21
- package/es/meta-comp/config-panels/ImageConfig/index.js +8 -6
- package/es/meta-comp/config-panels/TextConfig/index.js +14 -12
- package/es/mobx/Store.js +2 -2
- package/lib/common/ButtonIconLayout/index.js +4 -2
- package/lib/common/ImageModal/index.js +5 -3
- package/lib/common/ImagePicker/index.js +6 -4
- package/lib/common/LinkModal/FilteredProductModal/index.js +12 -10
- package/lib/common/LinkModal/ProductDetailPage/index.js +5 -3
- package/lib/common/LinkModal/index.js +7 -5
- package/lib/common/ProductModal/index.js +26 -24
- package/lib/common/ProductSource/index.js +6 -2
- package/lib/common/UrlPicker/index.js +3 -1
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +4 -6
- package/lib/composite-comp/bol/components/Carousel/mobile/index.less +11 -9
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +15 -24
- package/lib/composite-comp/bol/components/Carousel/pc/index.less +0 -8
- package/lib/composite-comp/bol/components/ImageText/mobile/index.js +3 -2
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +11 -9
- package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +5 -3
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +10 -8
- package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +7 -6
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +7 -5
- package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +6 -4
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +12 -12
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +9 -7
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +5 -3
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +4 -4
- package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +3 -3
- package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +4 -4
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +4 -2
- package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +3 -1
- package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +7 -5
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +10 -8
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +9 -7
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +3 -3
- package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +9 -7
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +4 -2
- package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +3 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +5 -3
- package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +4 -2
- package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +6 -19
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +10 -8
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +5 -3
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +6 -4
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +6 -4
- package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +3 -1
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +6 -4
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +8 -6
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +12 -10
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +11 -9
- package/lib/constants/index.js +1 -1
- package/lib/core/Designer/CompListPanel/index.js +4 -2
- package/lib/core/Designer/ConfigPanel/index.js +3 -1
- package/lib/core/Designer/PageCompList/index.js +4 -4
- package/lib/core/Designer/QuickMenuBar/index.js +17 -61
- package/lib/core/Designer/index.js +10 -14
- package/lib/locale/en/en.json +121 -0
- package/lib/locale/id/id.json +121 -0
- package/lib/locale/index.js +12 -5
- package/lib/meta-comp/components/Image/index.js +0 -5
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +23 -21
- package/lib/meta-comp/config-panels/ImageConfig/index.js +8 -6
- package/lib/meta-comp/config-panels/TextConfig/index.js +14 -12
- package/lib/mobx/Store.js +2 -2
- package/package.json +3 -80
- package/README.md +0 -311
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -19,6 +19,8 @@ var _currencyUtil = require("../../utils/currencyUtil");
|
|
|
19
19
|
|
|
20
20
|
require("./index.less");
|
|
21
21
|
|
|
22
|
+
var _locale = require("../../locale");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -460,7 +462,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
460
462
|
};
|
|
461
463
|
|
|
462
464
|
var columns = [{
|
|
463
|
-
title: '
|
|
465
|
+
title: (0, _locale.i18n)('IMAGE'),
|
|
464
466
|
dataIndex: 'productImageUrl',
|
|
465
467
|
render: function render(productImageUrl) {
|
|
466
468
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -472,22 +474,22 @@ var ProductModal = function ProductModal(props) {
|
|
|
472
474
|
},
|
|
473
475
|
width: 60
|
|
474
476
|
}, {
|
|
475
|
-
title:
|
|
477
|
+
title: (0, _locale.i18n)('PRODUCT_NAME'),
|
|
476
478
|
dataIndex: 'productName',
|
|
477
479
|
width: 120,
|
|
478
480
|
ellipsis: true
|
|
479
481
|
}, {
|
|
480
|
-
title:
|
|
482
|
+
title: (0, _locale.i18n)('PRODUCT_CODE'),
|
|
481
483
|
dataIndex: 'productCode',
|
|
482
484
|
width: 120,
|
|
483
485
|
ellipsis: true
|
|
484
486
|
}, _defineProperty({
|
|
485
|
-
title: 'SKU',
|
|
487
|
+
title: (0, _locale.i18n)('SKU'),
|
|
486
488
|
dataIndex: 'attrValues',
|
|
487
489
|
ellipsis: true,
|
|
488
490
|
width: 100
|
|
489
491
|
}, "ellipsis", true), {
|
|
490
|
-
title: '
|
|
492
|
+
title: (0, _locale.i18n)('PRICE'),
|
|
491
493
|
dataIndex: 'salesPrice',
|
|
492
494
|
width: 100,
|
|
493
495
|
ellipsis: true,
|
|
@@ -495,12 +497,12 @@ var ProductModal = function ProductModal(props) {
|
|
|
495
497
|
return /*#__PURE__*/_react["default"].createElement("span", null, (0, _currencyUtil.formatCurrencyWithSymbol)(record.specialPriceProd ? record.specialPriceProd.specialPrice : record.salesPrice));
|
|
496
498
|
}
|
|
497
499
|
}, {
|
|
498
|
-
title: '
|
|
500
|
+
title: (0, _locale.i18n)('BRAND'),
|
|
499
501
|
dataIndex: 'brandName',
|
|
500
502
|
width: 100,
|
|
501
503
|
ellipsis: true
|
|
502
504
|
}, {
|
|
503
|
-
title: '
|
|
505
|
+
title: (0, _locale.i18n)('STORE'),
|
|
504
506
|
dataIndex: 'storeName',
|
|
505
507
|
width: 100,
|
|
506
508
|
ellipsis: true
|
|
@@ -517,13 +519,13 @@ var ProductModal = function ProductModal(props) {
|
|
|
517
519
|
};
|
|
518
520
|
|
|
519
521
|
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
|
|
520
|
-
cancelText:
|
|
522
|
+
cancelText: (0, _locale.i18n)('CANCEL'),
|
|
521
523
|
draggable: false,
|
|
522
524
|
footer: null,
|
|
523
525
|
okText: "OK",
|
|
524
526
|
onCancel: closeModal,
|
|
525
527
|
onOk: handleModalSave,
|
|
526
|
-
title:
|
|
528
|
+
title: (0, _locale.i18n)('PRODUCT_SELECT'),
|
|
527
529
|
visible: visible,
|
|
528
530
|
width: "1200px",
|
|
529
531
|
wrapClassName: "modalCot"
|
|
@@ -542,7 +544,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
542
544
|
onChange: function onChange(value, option) {
|
|
543
545
|
setSelCatgsList(value);
|
|
544
546
|
},
|
|
545
|
-
placeholder:
|
|
547
|
+
placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
|
|
546
548
|
size: "small",
|
|
547
549
|
value: selCatgsList
|
|
548
550
|
}, catgsList.map(function (item) {
|
|
@@ -562,7 +564,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
562
564
|
onChange: function onChange(value, option) {
|
|
563
565
|
setSelBrandsList(value);
|
|
564
566
|
},
|
|
565
|
-
placeholder:
|
|
567
|
+
placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
|
|
566
568
|
size: "small",
|
|
567
569
|
value: selBrandsList
|
|
568
570
|
}, brandsList.map(function (item, index) {
|
|
@@ -578,7 +580,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
578
580
|
console.log(v, o, 33);
|
|
579
581
|
setSelLabelData(o);
|
|
580
582
|
},
|
|
581
|
-
placeholder:
|
|
583
|
+
placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
|
|
582
584
|
size: "small",
|
|
583
585
|
value: selLabelData.children
|
|
584
586
|
}, labelData && labelData.length > 0 && labelData.map(function (v) {
|
|
@@ -594,7 +596,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
594
596
|
onChange: function onChange(e) {
|
|
595
597
|
setMinPrice(e.target.value);
|
|
596
598
|
},
|
|
597
|
-
placeholder:
|
|
599
|
+
placeholder: (0, _locale.i18n)('MINIMUM'),
|
|
598
600
|
size: "small",
|
|
599
601
|
style: {
|
|
600
602
|
width: '45%'
|
|
@@ -606,7 +608,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
606
608
|
onChange: function onChange(e) {
|
|
607
609
|
setMaxPrice(e.target.value);
|
|
608
610
|
},
|
|
609
|
-
placeholder:
|
|
611
|
+
placeholder: (0, _locale.i18n)('MAXIMUM'),
|
|
610
612
|
size: "small",
|
|
611
613
|
style: {
|
|
612
614
|
width: '45%'
|
|
@@ -618,7 +620,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
618
620
|
onChange: function onChange(e) {
|
|
619
621
|
setProductName(e.target.value);
|
|
620
622
|
},
|
|
621
|
-
placeholder:
|
|
623
|
+
placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
|
|
622
624
|
size: "small",
|
|
623
625
|
value: productName
|
|
624
626
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
@@ -628,7 +630,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
628
630
|
onChange: function onChange(e) {
|
|
629
631
|
setProductCode(e.target.value);
|
|
630
632
|
},
|
|
631
|
-
placeholder:
|
|
633
|
+
placeholder: (0, _locale.i18n)('PLEASE_INPUT'),
|
|
632
634
|
size: "small",
|
|
633
635
|
value: productCode
|
|
634
636
|
})), /*#__PURE__*/_react["default"].createElement(_antd.Form.Item, {
|
|
@@ -638,21 +640,21 @@ var ProductModal = function ProductModal(props) {
|
|
|
638
640
|
onChange: function onChange(value) {
|
|
639
641
|
setPromotions(value);
|
|
640
642
|
},
|
|
641
|
-
placeholder:
|
|
643
|
+
placeholder: (0, _locale.i18n)('PLEASE_SELECT'),
|
|
642
644
|
size: "small",
|
|
643
645
|
value: promotions
|
|
644
646
|
}, props.type !== 'groupBuy' && /*#__PURE__*/_react["default"].createElement(Option, {
|
|
645
647
|
value: promType.FLASH_SALE
|
|
646
|
-
},
|
|
648
|
+
}, (0, _locale.i18n)('FLASH_SALE')), /*#__PURE__*/_react["default"].createElement(Option, {
|
|
647
649
|
value: promType.GROUP_BUY
|
|
648
|
-
},
|
|
650
|
+
}, (0, _locale.i18n)('GROUP_BUY')))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
649
651
|
className: "buttonStyle"
|
|
650
652
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
651
653
|
onClick: function onClick() {
|
|
652
654
|
reset();
|
|
653
655
|
},
|
|
654
656
|
size: "small"
|
|
655
|
-
},
|
|
657
|
+
}, (0, _locale.i18n)('RESET')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
656
658
|
onClick: function onClick() {
|
|
657
659
|
setLoading(true);
|
|
658
660
|
paginationParams.current = 1;
|
|
@@ -675,7 +677,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
675
677
|
marginRight: 8
|
|
676
678
|
},
|
|
677
679
|
type: "primary"
|
|
678
|
-
},
|
|
680
|
+
}, (0, _locale.i18n)('QUERY'))))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
679
681
|
className: "rightCot"
|
|
680
682
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Table, {
|
|
681
683
|
columns: columns,
|
|
@@ -730,7 +732,7 @@ var ProductModal = function ProductModal(props) {
|
|
|
730
732
|
className: "footer"
|
|
731
733
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
732
734
|
className: "total"
|
|
733
|
-
},
|
|
735
|
+
}, (0, _locale.i18n)('SELECTED'), ' ', /*#__PURE__*/_react["default"].createElement("span", {
|
|
734
736
|
className: "totalNum"
|
|
735
737
|
}, selectedList.length, "/", maxSelect)), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
736
738
|
onClick: function onClick() {
|
|
@@ -741,11 +743,11 @@ var ProductModal = function ProductModal(props) {
|
|
|
741
743
|
marginRight: 10
|
|
742
744
|
},
|
|
743
745
|
type: "primary"
|
|
744
|
-
},
|
|
746
|
+
}, (0, _locale.i18n)('OK')), /*#__PURE__*/_react["default"].createElement(_antd.Button, {
|
|
745
747
|
onClick: function onClick() {
|
|
746
748
|
return closeModal && closeModal();
|
|
747
749
|
}
|
|
748
|
-
},
|
|
750
|
+
}, (0, _locale.i18n)('CANCEL'))))));
|
|
749
751
|
};
|
|
750
752
|
|
|
751
753
|
var _default = ProductModal;
|
|
@@ -9,6 +9,8 @@ exports["default"] = ProductSource;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
+
var _locale = require("../../locale");
|
|
13
|
+
|
|
12
14
|
var _commonUtil = require("../../utils/commonUtil");
|
|
13
15
|
|
|
14
16
|
var _Button = _interopRequireDefault(require("../Button"));
|
|
@@ -236,9 +238,11 @@ function ProductSource(_a) {
|
|
|
236
238
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
237
239
|
onClick: onSelectProduct,
|
|
238
240
|
type: "primary"
|
|
239
|
-
},
|
|
241
|
+
}, (0, _locale.i18n)('SELECT_PRODUCT')), /*#__PURE__*/_react["default"].createElement("div", {
|
|
240
242
|
className: "total"
|
|
241
|
-
},
|
|
243
|
+
}, (0, _locale.i18n)('TOTAL_PRODUCTS', {
|
|
244
|
+
count: getLength()
|
|
245
|
+
})), visible && /*#__PURE__*/_react["default"].createElement(_ProductModal["default"], {
|
|
242
246
|
closeModal: function closeModal() {
|
|
243
247
|
return setVisbile(false);
|
|
244
248
|
},
|
|
@@ -9,6 +9,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
require("./index.less");
|
|
11
11
|
|
|
12
|
+
var _locale = require("../../locale");
|
|
13
|
+
|
|
12
14
|
var _LinkModal = _interopRequireDefault(require("../LinkModal"));
|
|
13
15
|
|
|
14
16
|
var _Iconfont = _interopRequireDefault(require("../Iconfont"));
|
|
@@ -70,7 +72,7 @@ function (_super) {
|
|
|
70
72
|
onChange: function onChange(e) {
|
|
71
73
|
return _onChange(e.target.value);
|
|
72
74
|
},
|
|
73
|
-
placeholder:
|
|
75
|
+
placeholder: (0, _locale.i18n)('PLEASE_ADD_A_LINK'),
|
|
74
76
|
type: "text",
|
|
75
77
|
value: value
|
|
76
78
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -73,11 +73,11 @@ var MOBILE_IMG_SIZE = [{
|
|
|
73
73
|
w: 282,
|
|
74
74
|
h: 212
|
|
75
75
|
}, {
|
|
76
|
-
w:
|
|
76
|
+
w: 125,
|
|
77
77
|
h: 102
|
|
78
78
|
}, {
|
|
79
|
-
w:
|
|
80
|
-
h:
|
|
79
|
+
w: 82,
|
|
80
|
+
h: 64.5
|
|
81
81
|
}, {
|
|
82
82
|
w: 60,
|
|
83
83
|
h: 45
|
|
@@ -168,8 +168,6 @@ function (_super) {
|
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
var spacing = data.spacing[window.magicDesign.device];
|
|
172
|
-
if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
|
|
173
171
|
var settings = {
|
|
174
172
|
className: 'slider-wrap',
|
|
175
173
|
arrows: false,
|
|
@@ -201,7 +199,7 @@ function (_super) {
|
|
|
201
199
|
key: item.id,
|
|
202
200
|
className: "img-wrap"
|
|
203
201
|
}, item.image.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
204
|
-
className: "
|
|
202
|
+
className: "image"
|
|
205
203
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
206
204
|
data: item.image,
|
|
207
205
|
isBackground: true,
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
.m-carousel-mobile {
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative;
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
.carousel-icon-left {
|
|
6
|
+
float: left;
|
|
7
|
+
margin-left: 15px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.carousel-icon-right {
|
|
11
|
+
float: right;
|
|
12
|
+
margin-right: 15px;
|
|
13
|
+
}
|
|
5
14
|
|
|
6
15
|
.slider-wrap {
|
|
7
|
-
width: 100
|
|
16
|
+
width: calc(100% - 90px);
|
|
8
17
|
padding: 30px 0;
|
|
9
18
|
margin: 0 auto;
|
|
10
19
|
|
|
11
20
|
.img-wrap {
|
|
12
|
-
.img {
|
|
13
|
-
width: fit-content;
|
|
14
|
-
height: fit-content;
|
|
15
|
-
display: block;
|
|
16
|
-
margin: 0 auto;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
21
|
.title {
|
|
20
22
|
display: flex;
|
|
21
23
|
justify-content: center;
|
|
@@ -56,29 +56,23 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
56
56
|
}();
|
|
57
57
|
|
|
58
58
|
var PC_IMG_SIZE = [{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
maxH: 662
|
|
59
|
+
w: 1072,
|
|
60
|
+
h: 662
|
|
62
61
|
}, {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
maxH: 393
|
|
62
|
+
w: 500,
|
|
63
|
+
h: 393
|
|
66
64
|
}, {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
maxH: 256
|
|
65
|
+
w: 330,
|
|
66
|
+
h: 256
|
|
70
67
|
}, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
maxH: 188
|
|
68
|
+
w: 240,
|
|
69
|
+
h: 188
|
|
74
70
|
}, {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
maxH: 147
|
|
71
|
+
w: 190,
|
|
72
|
+
h: 147
|
|
78
73
|
}, {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
maxH: 126
|
|
74
|
+
w: 121,
|
|
75
|
+
h: 121
|
|
82
76
|
}];
|
|
83
77
|
|
|
84
78
|
var CarouselPc =
|
|
@@ -153,8 +147,6 @@ function (_super) {
|
|
|
153
147
|
};
|
|
154
148
|
}
|
|
155
149
|
|
|
156
|
-
var spacing = data.spacing[window.magicDesign.device];
|
|
157
|
-
if (spacing.contentWidth) bgStyle.width = spacing.contentWidth;
|
|
158
150
|
var settings = {
|
|
159
151
|
className: 'slider-wrap',
|
|
160
152
|
arrows: false,
|
|
@@ -195,13 +187,12 @@ function (_super) {
|
|
|
195
187
|
key: item.id,
|
|
196
188
|
className: "img-wrap"
|
|
197
189
|
}, item.image.open && /*#__PURE__*/_react["default"].createElement("div", {
|
|
198
|
-
className: "
|
|
190
|
+
className: "image"
|
|
199
191
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
|
|
200
192
|
data: item.image,
|
|
201
193
|
isBackground: true,
|
|
202
|
-
maxHeight: PC_IMG_SIZE[colNum - 1].
|
|
203
|
-
maxWidth: PC_IMG_SIZE[colNum - 1].
|
|
204
|
-
minWidth: PC_IMG_SIZE[colNum - 1].minW
|
|
194
|
+
maxHeight: PC_IMG_SIZE[colNum - 1].h,
|
|
195
|
+
maxWidth: PC_IMG_SIZE[colNum - 1].w
|
|
205
196
|
})), showText && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, item.title.open && !((0, _coreUtil.isPc)() && item.title.pcText === '') && /*#__PURE__*/_react["default"].createElement("div", {
|
|
206
197
|
className: "title"
|
|
207
198
|
}, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.m-carousel-pc {
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative;
|
|
4
|
-
margin: 0 auto;
|
|
5
4
|
|
|
6
5
|
.carousel-icon-left {
|
|
7
6
|
float: left;
|
|
@@ -19,13 +18,6 @@
|
|
|
19
18
|
margin: 0 auto;
|
|
20
19
|
|
|
21
20
|
.img-wrap {
|
|
22
|
-
.img {
|
|
23
|
-
width: fit-content;
|
|
24
|
-
height: fit-content;
|
|
25
|
-
display: block;
|
|
26
|
-
margin: 0 auto;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
21
|
.title {
|
|
30
22
|
display: flex;
|
|
31
23
|
justify-content: center;
|
|
@@ -47,7 +47,7 @@ var __extends = void 0 && (void 0).__extends || function () {
|
|
|
47
47
|
|
|
48
48
|
var maxWidthAndHeight = {
|
|
49
49
|
normal1: 60,
|
|
50
|
-
normal2:
|
|
50
|
+
normal2: '100%',
|
|
51
51
|
normal3: 107,
|
|
52
52
|
outsideM: 60,
|
|
53
53
|
centerM: 60
|
|
@@ -151,7 +151,8 @@ function (_super) {
|
|
|
151
151
|
className: "card-image",
|
|
152
152
|
data: source.image,
|
|
153
153
|
limitWidthHeight: true,
|
|
154
|
-
maxHeight:
|
|
154
|
+
maxHeight: 60,
|
|
155
|
+
maxWidth: 60,
|
|
155
156
|
scale: 0.5
|
|
156
157
|
})), source.text.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
|
|
157
158
|
className: "card-text",
|
|
@@ -19,6 +19,8 @@ var _Button = _interopRequireDefault(require("../../../../../common/Button"));
|
|
|
19
19
|
|
|
20
20
|
require("./index.less");
|
|
21
21
|
|
|
22
|
+
var _locale = require("../../../../../locale");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -112,7 +114,7 @@ function (_super) {
|
|
|
112
114
|
icon: "icon-add",
|
|
113
115
|
onClick: this.onAddClick,
|
|
114
116
|
type: "primary"
|
|
115
|
-
},
|
|
117
|
+
}, (0, _locale.i18n)('ADD_BANNER'))));
|
|
116
118
|
};
|
|
117
119
|
|
|
118
120
|
AComponent.defaultProps = {
|
|
@@ -15,6 +15,8 @@ var _coreUtil = require("../../../../../utils/coreUtil");
|
|
|
15
15
|
|
|
16
16
|
var _InputNumber = _interopRequireDefault(require("../../../../../common/InputNumber"));
|
|
17
17
|
|
|
18
|
+
var _locale = require("../../../../../locale");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -78,7 +80,7 @@ function (_super) {
|
|
|
78
80
|
var setting = this.props.setting;
|
|
79
81
|
|
|
80
82
|
var autoplaySetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
81
|
-
title:
|
|
83
|
+
title: (0, _locale.i18n)('HOW_LONG_BETWEEN_SLIDES_(SECS)')
|
|
82
84
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
83
85
|
maxVal: 60,
|
|
84
86
|
minVal: 1,
|
|
@@ -94,7 +96,7 @@ function (_super) {
|
|
|
94
96
|
}));
|
|
95
97
|
|
|
96
98
|
var navigationSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
97
|
-
title:
|
|
99
|
+
title: (0, _locale.i18n)('NAVIGATION_ARROW')
|
|
98
100
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
99
101
|
needColor: true,
|
|
100
102
|
onChange: function onChange(value) {
|
|
@@ -109,7 +111,7 @@ function (_super) {
|
|
|
109
111
|
color: setting.navigation.color
|
|
110
112
|
}
|
|
111
113
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
112
|
-
title:
|
|
114
|
+
title: (0, _locale.i18n)('SELECTED_ARROW')
|
|
113
115
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
114
116
|
needColor: true,
|
|
115
117
|
onChange: function onChange(value) {
|
|
@@ -126,7 +128,7 @@ function (_super) {
|
|
|
126
128
|
})));
|
|
127
129
|
|
|
128
130
|
var dotsSetting = /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
129
|
-
title:
|
|
131
|
+
title: (0, _locale.i18n)('SLIDE_BUTTON')
|
|
130
132
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
131
133
|
needColor: true,
|
|
132
134
|
onChange: function onChange(value) {
|
|
@@ -141,7 +143,7 @@ function (_super) {
|
|
|
141
143
|
color: setting.dots.color
|
|
142
144
|
}
|
|
143
145
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
144
|
-
title:
|
|
146
|
+
title: (0, _locale.i18n)('SELECTED_BUTTON')
|
|
145
147
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
146
148
|
needColor: true,
|
|
147
149
|
onChange: function onChange(value) {
|
|
@@ -161,7 +163,7 @@ function (_super) {
|
|
|
161
163
|
className: "banner_setting"
|
|
162
164
|
}, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
163
165
|
layout: "horizontal",
|
|
164
|
-
title:
|
|
166
|
+
title: (0, _locale.i18n)('BANNER_HEIGHT')
|
|
165
167
|
}, /*#__PURE__*/_react["default"].createElement(_InputNumber["default"], {
|
|
166
168
|
max: 1000,
|
|
167
169
|
onChange: function onChange(v) {
|
|
@@ -174,19 +176,19 @@ function (_super) {
|
|
|
174
176
|
onRefresh: this.reRender,
|
|
175
177
|
source: [{
|
|
176
178
|
key: '1',
|
|
177
|
-
name: '
|
|
179
|
+
name: (0, _locale.i18n)('AUTOPLAYS'),
|
|
178
180
|
value: autoplaySetting,
|
|
179
181
|
metaOption: setting.autoplay,
|
|
180
182
|
toggleType: 'switch'
|
|
181
183
|
}, {
|
|
182
184
|
key: '2',
|
|
183
|
-
name:
|
|
185
|
+
name: (0, _locale.i18n)('SHOW_NAVIGATION_ARROW'),
|
|
184
186
|
value: navigationSetting,
|
|
185
187
|
metaOption: setting.navigation,
|
|
186
188
|
toggleType: 'switch'
|
|
187
189
|
}, {
|
|
188
190
|
key: '3',
|
|
189
|
-
name:
|
|
191
|
+
name: (0, _locale.i18n)('SHOW_SLIDE_BUTTON'),
|
|
190
192
|
value: dotsSetting,
|
|
191
193
|
metaOption: setting.dots,
|
|
192
194
|
toggleType: 'switch'
|
|
@@ -15,6 +15,8 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
|
15
15
|
|
|
16
16
|
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
17
17
|
|
|
18
|
+
var _locale = require("../../../../locale");
|
|
19
|
+
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
21
|
|
|
20
22
|
function BannerConfig(props) {
|
|
@@ -24,19 +26,19 @@ function BannerConfig(props) {
|
|
|
24
26
|
headerSize: "large",
|
|
25
27
|
source: [{
|
|
26
28
|
key: 'bannerGroup',
|
|
27
|
-
name: '
|
|
29
|
+
name: (0, _locale.i18n)('GROUP'),
|
|
28
30
|
value: /*#__PURE__*/_react["default"].createElement(_BannerConfigGroup["default"], {
|
|
29
31
|
source: data.groupSource
|
|
30
32
|
})
|
|
31
33
|
}, {
|
|
32
34
|
key: 'bannerSetting',
|
|
33
|
-
name: '
|
|
35
|
+
name: (0, _locale.i18n)('SETTING'),
|
|
34
36
|
value: /*#__PURE__*/_react["default"].createElement(_BannerConfigSetting["default"], {
|
|
35
37
|
setting: data.setting
|
|
36
38
|
})
|
|
37
39
|
}, {
|
|
38
40
|
key: 'Spacing',
|
|
39
|
-
name: '
|
|
41
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
40
42
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
41
43
|
data: data.spacing
|
|
42
44
|
})
|
|
@@ -13,6 +13,8 @@ var _coreUtil = require("../../../../../utils/coreUtil");
|
|
|
13
13
|
|
|
14
14
|
var _common = require("../../../../../common");
|
|
15
15
|
|
|
16
|
+
var _locale = require("../../../../../locale");
|
|
17
|
+
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
19
|
|
|
18
20
|
var __extends = void 0 && (void 0).__extends || function () {
|
|
@@ -69,14 +71,14 @@ function (_super) {
|
|
|
69
71
|
onRefresh: this.reRender,
|
|
70
72
|
source: [{
|
|
71
73
|
key: '1',
|
|
72
|
-
name: '
|
|
74
|
+
name: (0, _locale.i18n)('BUTTON'),
|
|
73
75
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
74
76
|
data: panelProps.button
|
|
75
77
|
}),
|
|
76
78
|
metaOption: panelProps.button
|
|
77
79
|
}, {
|
|
78
80
|
key: '2',
|
|
79
|
-
name:
|
|
81
|
+
name: (0, _locale.i18n)('SECONDARY_BUTTON'),
|
|
80
82
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
|
|
81
83
|
data: panelProps.secondaryButton
|
|
82
84
|
}),
|
|
@@ -21,6 +21,8 @@ var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
|
21
21
|
|
|
22
22
|
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
23
23
|
|
|
24
|
+
var _locale = require("../../../../locale");
|
|
25
|
+
|
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
27
|
|
|
26
28
|
function ButtonConfig(props) {
|
|
@@ -30,19 +32,19 @@ function ButtonConfig(props) {
|
|
|
30
32
|
headerSize: "large",
|
|
31
33
|
source: [{
|
|
32
34
|
key: '1',
|
|
33
|
-
name: '
|
|
35
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
34
36
|
value: /*#__PURE__*/_react["default"].createElement(_ButtonConfigContent["default"], {
|
|
35
37
|
panelProps: data.content
|
|
36
38
|
})
|
|
37
39
|
}, {
|
|
38
40
|
key: '2',
|
|
39
|
-
name: '
|
|
41
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
40
42
|
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
41
43
|
data: data.spacing
|
|
42
44
|
})
|
|
43
45
|
}, {
|
|
44
46
|
key: '3',
|
|
45
|
-
name: '
|
|
47
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
46
48
|
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
47
49
|
data: data.customize,
|
|
48
50
|
layoutSource: [{
|
|
@@ -57,7 +59,7 @@ function ButtonConfig(props) {
|
|
|
57
59
|
})
|
|
58
60
|
}, {
|
|
59
61
|
key: '4',
|
|
60
|
-
name: '
|
|
62
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
61
63
|
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
62
64
|
data: data.background
|
|
63
65
|
})
|
package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js
CHANGED
|
@@ -19,6 +19,8 @@ var _defaultJSON = require("../../../components/Carousel/defaultJSON");
|
|
|
19
19
|
|
|
20
20
|
var _defaultImg = _interopRequireDefault(require("../imgs/defaultImg.png"));
|
|
21
21
|
|
|
22
|
+
var _locale = require("../../../../../locale");
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -130,7 +132,7 @@ function (_super) {
|
|
|
130
132
|
icon: "icon-add",
|
|
131
133
|
onClick: this.onAddClick,
|
|
132
134
|
type: "primary"
|
|
133
|
-
},
|
|
135
|
+
}, (0, _locale.i18n)('ADD_IMAGE'))));
|
|
134
136
|
};
|
|
135
137
|
|
|
136
138
|
AComponent.defaultProps = {
|