@fonixtree/magic-design 2.0.206 → 2.0.209
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/GroupList/index.js +6 -2
- package/es/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/Banner/mobile/index.js +8 -2
- package/es/composite-comp/bol/components/Banner/pc/index.js +8 -2
- package/es/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
- package/es/composite-comp/bol/components/Carousel/pc/index.js +12 -6
- package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
- package/es/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
- package/es/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
- package/es/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
- package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
- package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
- package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
- package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
- package/es/composite-comp/common/components/MonpayProductItem/index.js +4 -0
- package/es/composite-comp/common/components/ProductItem/index.js +29 -5
- package/es/composite-comp/common/components/ProductItem/index.less +15 -1
- package/es/composite-comp/common/components/WatermarkLabel/index.less +17 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
- package/es/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
- package/es/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
- package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
- package/es/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
- package/es/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
- package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
- package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
- package/es/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
- package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/es/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/es/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- package/es/constants/component-types.js +10 -4
- package/es/constants/index.js +4 -0
- package/es/core/Designer/ConfigPanel/index.js +1 -0
- package/es/core/Renderer/index.js +4 -2
- package/es/decorator/compositeDecorator.js +1 -1
- package/es/locale/ar/ar.json +4 -0
- package/es/locale/en/en.json +4 -0
- package/es/locale/es/es.json +4 -0
- package/es/locale/mn/mn.json +18 -1
- package/es/meta-comp/components/Text/index.js +17 -4
- package/es/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/es/meta-comp/config-panels/TextConfig/index.js +28 -7
- package/es/meta-comp/config-panels/TextConfig/index.less +27 -0
- package/es/utils/commonUtil.js +17 -1
- package/es/utils/coreUtil.js +1 -1
- package/lib/common/GroupList/index.js +6 -2
- package/lib/composite-comp/bol/components/Banner/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +8 -2
- package/lib/composite-comp/bol/components/Banner/pc/index.js +8 -2
- package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/Carousel/mobile/index.js +12 -6
- package/lib/composite-comp/bol/components/Carousel/pc/index.js +12 -6
- package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +4 -0
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +20 -13
- package/lib/composite-comp/bol/components/ImageGallery/pc/index.js +8 -1
- package/lib/composite-comp/bol/components/Video/components/VideoTag/index.js +16 -14
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +1 -1
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +7 -3
- package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +2 -0
- package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +5 -0
- package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +5 -0
- package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +26 -3
- package/lib/composite-comp/common/components/MonpayProductItem/index.js +4 -0
- package/lib/composite-comp/common/components/ProductItem/index.js +29 -5
- package/lib/composite-comp/common/components/ProductItem/index.less +15 -1
- package/lib/composite-comp/common/components/WatermarkLabel/index.less +17 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +19 -21
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +1 -1
- package/lib/composite-comp/dito/components/Campaign/mobile/index.js +4 -4
- package/lib/composite-comp/dito/components/Campaign/mobile/index.less +3 -0
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -3
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +21 -10
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +38 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +2 -5
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +6 -6
- package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.js +9 -4
- package/lib/composite-comp/dito/components/PersonalInformationSecond/defaultJSON.js +168 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/index.js +84 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/avatar.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/images/edit.png +0 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.js +714 -0
- package/lib/composite-comp/dito/components/PersonalInformationSecond/mobile/index.less +210 -0
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +6 -0
- package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +4 -0
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +20 -7
- package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +2 -4
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +22 -28
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +22 -16
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +2 -3
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.js +91 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/ConfigDecoration/index.less +9 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/OrdersConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/PersonInfoConfigGroup/index.js +131 -0
- package/lib/composite-comp/dito/config-panels/PersonalInformationSecondConfig/index.js +127 -0
- package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +22 -6
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +19 -1
- package/lib/composite-comp/dito/second-config-panels/MobileNavigationSecondConfig/index.js +5 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.js +206 -0
- package/lib/composite-comp/dito/second-config-panels/PersonalInformationSecondSecondConfig/index.less +9 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +14 -0
- package/lib/constants/component-types.js +10 -4
- package/lib/constants/index.js +4 -0
- package/lib/core/Designer/ConfigPanel/index.js +1 -0
- package/lib/core/Renderer/index.js +4 -2
- package/lib/decorator/compositeDecorator.js +1 -1
- package/lib/locale/ar/ar.json +4 -0
- package/lib/locale/en/en.json +4 -0
- package/lib/locale/es/es.json +4 -0
- package/lib/locale/mn/mn.json +18 -1
- package/lib/meta-comp/components/Text/index.js +17 -4
- package/lib/meta-comp/config-panels/ImageConfig/index.js +24 -16
- package/lib/meta-comp/config-panels/TextConfig/index.js +28 -7
- package/lib/meta-comp/config-panels/TextConfig/index.less +27 -0
- package/lib/utils/commonUtil.js +17 -1
- package/lib/utils/coreUtil.js +1 -1
- package/package.json +1 -1
package/lib/utils/commonUtil.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.getUrlParams = void 0;
|
|
|
21
21
|
exports.goLogin = goLogin;
|
|
22
22
|
exports.importAsync = void 0;
|
|
23
23
|
exports.isLogin = isLogin;
|
|
24
|
+
exports.isPad = void 0;
|
|
24
25
|
exports.navigateBack = navigateBack;
|
|
25
26
|
exports.onListenTouch = exports.nextTick = exports.needReverse = exports.navigateTo = void 0;
|
|
26
27
|
exports.pushGA = pushGA;
|
|
@@ -571,6 +572,21 @@ var JsonToUrl = function JsonToUrl(data) {
|
|
|
571
572
|
|
|
572
573
|
var urlParamsStr = tempArr.join('&');
|
|
573
574
|
return urlParamsStr;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
exports.JsonToUrl = JsonToUrl;
|
|
578
|
+
|
|
579
|
+
var isPad = function isPad() {
|
|
580
|
+
var ua = navigator.userAgent;
|
|
581
|
+
var isMac = /Macintosh/i.test(ua);
|
|
582
|
+
var isIOS = /iPad|iPhone|iPod/i.test(ua);
|
|
583
|
+
var isTouch = 'ontouchstart' in window || navigator.maxTouchPoints > 0; // iPad检测 (包括iPadOS 13+)
|
|
584
|
+
|
|
585
|
+
if (isMac && isTouch || isIOS) {
|
|
586
|
+
return true;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
return false;
|
|
574
590
|
}; // export const jumpUrlConfig = item => {
|
|
575
591
|
// const { objType, objValue } = item || {};
|
|
576
592
|
// let jumpUrl = '';
|
|
@@ -636,7 +652,7 @@ var JsonToUrl = function JsonToUrl(data) {
|
|
|
636
652
|
*/
|
|
637
653
|
|
|
638
654
|
|
|
639
|
-
exports.
|
|
655
|
+
exports.isPad = isPad;
|
|
640
656
|
|
|
641
657
|
var addZero = function addZero(num) {
|
|
642
658
|
return String(num).length === 1 ? "0" + String(num) : String(num);
|
package/lib/utils/coreUtil.js
CHANGED
|
@@ -471,7 +471,7 @@ var clickUrl = function clickUrl(url, state) {
|
|
|
471
471
|
window.open(link);
|
|
472
472
|
}
|
|
473
473
|
} else {
|
|
474
|
-
if (isPc()) {
|
|
474
|
+
if (isPc() && link.indexOf('/poster/') === -1) {
|
|
475
475
|
window.location.href += "web" + link;
|
|
476
476
|
} else {
|
|
477
477
|
(0, _commonUtil.navigateTo)(link, state);
|