pb-sxp-ui 1.0.99 → 1.0.100

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.
Files changed (100) hide show
  1. package/dist/index.cjs +393 -178
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +23 -20
  4. package/dist/index.js +394 -178
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +393 -178
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/ExpandableText.js +3 -2
  15. package/es/core/components/SxpPageRender/Hashtag/index.js +3 -1
  16. package/es/core/components/SxpPageRender/Navbar.js +4 -1
  17. package/es/core/components/SxpPageRender/VideoWidget/index.d.ts +1 -0
  18. package/es/core/components/SxpPageRender/VideoWidget/index.js +3 -3
  19. package/es/core/components/SxpPageRender/WaterFall/List.js +21 -10
  20. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +24 -13
  21. package/es/core/components/SxpPageRender/index.d.ts +1 -0
  22. package/es/core/components/SxpPageRender/index.js +2 -1
  23. package/es/core/context/EditorDataProvider.d.ts +1 -0
  24. package/es/core/context/EditorDataProvider.js +2 -1
  25. package/es/core/utils/tool.d.ts +5 -0
  26. package/es/core/utils/tool.js +43 -0
  27. package/es/index.d.ts +0 -1
  28. package/es/index.js +0 -1
  29. package/es/materials/sxp/HashTag/settingRender.d.ts +19 -22
  30. package/es/materials/sxp/HashTag/settingRender.js +31 -13
  31. package/es/materials/sxp/popup/AppointForm/Form.d.ts +14 -0
  32. package/es/materials/sxp/popup/AppointForm/Form.js +8 -0
  33. package/es/materials/sxp/popup/AppointForm/index.js +25 -20
  34. package/es/materials/sxp/popup/AppointForm/settingRender.d.ts +9 -20
  35. package/es/materials/sxp/popup/AppointForm/settingRender.js +31 -13
  36. package/es/materials/sxp/popup/CommodityDetail/index.js +13 -4
  37. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +19 -22
  38. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +31 -13
  39. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +16 -5
  40. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +19 -22
  41. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +31 -13
  42. package/es/materials/sxp/popup/Prompt/index.js +4 -1
  43. package/es/materials/sxp/popup/Prompt/settingRender.d.ts +10 -8
  44. package/es/materials/sxp/popup/Prompt/settingRender.js +16 -8
  45. package/es/materials/sxp/template/Appoint/index.js +4 -1
  46. package/es/materials/sxp/template/Commodity/index.js +7 -2
  47. package/es/materials/sxp/template/CommodityDiro/index.js +8 -3
  48. package/es/materials/sxp/template/CommodityDiroNew/index.js +7 -2
  49. package/es/materials/sxp/template/Link/index.js +4 -1
  50. package/es/materials/sxp/template/MultiCommodity/index.js +7 -2
  51. package/es/materials/sxp/template/MultiCommodityDiro/index.js +8 -3
  52. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -2
  53. package/es/materials/sxp/template/components/settingRender.d.ts +16 -24
  54. package/es/materials/sxp/template/components/settingRender.js +30 -12
  55. package/lib/core/components/SxpPageRender/ExpandableText.js +3 -2
  56. package/lib/core/components/SxpPageRender/Hashtag/index.js +3 -1
  57. package/lib/core/components/SxpPageRender/Navbar.js +4 -1
  58. package/lib/core/components/SxpPageRender/VideoWidget/index.d.ts +1 -0
  59. package/lib/core/components/SxpPageRender/VideoWidget/index.js +3 -3
  60. package/lib/core/components/SxpPageRender/WaterFall/List.js +21 -10
  61. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +24 -13
  62. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  63. package/lib/core/components/SxpPageRender/index.js +2 -1
  64. package/lib/core/context/EditorDataProvider.d.ts +1 -0
  65. package/lib/core/context/EditorDataProvider.js +2 -1
  66. package/lib/core/utils/tool.d.ts +5 -0
  67. package/lib/core/utils/tool.js +45 -1
  68. package/lib/index.d.ts +0 -1
  69. package/lib/index.js +1 -3
  70. package/lib/materials/sxp/HashTag/settingRender.d.ts +19 -22
  71. package/lib/materials/sxp/HashTag/settingRender.js +31 -13
  72. package/lib/materials/sxp/popup/AppointForm/Form.d.ts +14 -0
  73. package/lib/materials/sxp/popup/AppointForm/Form.js +11 -0
  74. package/lib/materials/sxp/popup/AppointForm/index.js +24 -19
  75. package/lib/materials/sxp/popup/AppointForm/settingRender.d.ts +9 -20
  76. package/lib/materials/sxp/popup/AppointForm/settingRender.js +31 -14
  77. package/lib/materials/sxp/popup/CommodityDetail/index.js +13 -4
  78. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +19 -22
  79. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +31 -13
  80. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +16 -5
  81. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +19 -22
  82. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +31 -13
  83. package/lib/materials/sxp/popup/Prompt/index.js +4 -1
  84. package/lib/materials/sxp/popup/Prompt/settingRender.d.ts +10 -8
  85. package/lib/materials/sxp/popup/Prompt/settingRender.js +16 -9
  86. package/lib/materials/sxp/template/Appoint/index.js +4 -1
  87. package/lib/materials/sxp/template/Commodity/index.js +7 -2
  88. package/lib/materials/sxp/template/CommodityDiro/index.js +8 -3
  89. package/lib/materials/sxp/template/CommodityDiroNew/index.js +7 -2
  90. package/lib/materials/sxp/template/Link/index.js +4 -1
  91. package/lib/materials/sxp/template/MultiCommodity/index.js +7 -2
  92. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +8 -3
  93. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -2
  94. package/lib/materials/sxp/template/components/settingRender.d.ts +16 -24
  95. package/lib/materials/sxp/template/components/settingRender.js +30 -12
  96. package/package.json +1 -1
  97. package/es/materials/sxp/defaultSetting.d.ts +0 -8
  98. package/es/materials/sxp/defaultSetting.js +0 -6
  99. package/lib/materials/sxp/defaultSetting.d.ts +0 -8
  100. package/lib/materials/sxp/defaultSetting.js +0 -9
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- var _a, _b;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const defaultSetting_1 = require("../../defaultSetting");
5
3
  exports.default = [
6
4
  {
7
5
  title: '商品图片',
@@ -94,14 +92,24 @@ exports.default = [
94
92
  label: '标题字体',
95
93
  child: [
96
94
  {
97
- type: 'Color',
98
- name: ['color']
95
+ type: 'Select',
96
+ name: ['fontFamily-cn'],
97
+ bottomText: '中文字体'
99
98
  },
100
99
  {
101
100
  type: 'Select',
102
- options: defaultSetting_1.fontOptions,
103
- name: ['fontFamily'],
104
- initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
101
+ name: ['fontFamily-en'],
102
+ bottomText: '英文/其他字体'
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ type: 'Group',
108
+ label: '',
109
+ child: [
110
+ {
111
+ type: 'Color',
112
+ name: ['color']
105
113
  },
106
114
  {
107
115
  type: 'Number',
@@ -173,15 +181,25 @@ exports.default = [
173
181
  label: '字体',
174
182
  child: [
175
183
  {
176
- type: 'Color',
177
- name: ['props', 'buttonStyle', 'color'],
178
- initialValue: '#fff'
184
+ type: 'Select',
185
+ name: ['props', 'buttonStyle', 'fontFamily-cn'],
186
+ bottomText: '中文字体'
179
187
  },
180
188
  {
181
189
  type: 'Select',
182
- name: ['props', 'buttonStyle', 'fontFamily'],
183
- options: defaultSetting_1.fontOptions,
184
- initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
190
+ name: ['props', 'buttonStyle', 'fontFamily-en'],
191
+ bottomText: '英文/其他字体'
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ type: 'Group',
197
+ label: '',
198
+ child: [
199
+ {
200
+ type: 'Color',
201
+ name: ['props', 'buttonStyle', 'color'],
202
+ initialValue: '#fff'
185
203
  },
186
204
  {
187
205
  type: 'Number',
@@ -11,6 +11,7 @@ const Modal_1 = tslib_1.__importDefault(require("../../../../core/components/Sxp
11
11
  const ExpandableText_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/ExpandableText"));
12
12
  const useEventReport_1 = require("../../../../core/hooks/useEventReport");
13
13
  const FormatImage_1 = tslib_1.__importDefault(require("../../../../core/components/SxpPageRender/FormatImage"));
14
+ const tool_1 = require("../../../../core/utils/tool");
14
15
  const CommodityDetailDiroNew = (_a) => {
15
16
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
16
17
  var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index } = _a, props = tslib_1.__rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index"]);
@@ -144,12 +145,22 @@ Made in Italy` })));
144
145
  react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content' },
145
146
  react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
146
147
  react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
147
- react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title) }, (_l = product === null || product === void 0 ? void 0 : product.title) !== null && _l !== void 0 ? _l : 'Large Dior Toujours BagLarge'),
148
- react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection) }, (product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge')),
148
+ react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title), dangerouslySetInnerHTML: {
149
+ __html: (0, tool_1.setFontForText)((_l = product === null || product === void 0 ? void 0 : product.title) !== null && _l !== void 0 ? _l : 'Large Dior Toujours BagLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
150
+ } }),
151
+ react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection), dangerouslySetInnerHTML: {
152
+ __html: (0, tool_1.setFontForText)((product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
153
+ } })),
149
154
  react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
150
- react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) }, priceText),
151
- react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo) }, (_m = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _m !== void 0 ? _m : '税费'))),
152
- (!product || (product === null || product === void 0 ? void 0 : product.link)) && (react_1.default.createElement("button", { "aria-label": (_o = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _o !== void 0 ? _o : 'Shop now', onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle }, (_p = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _p !== void 0 ? _p : 'Shop now')),
155
+ react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price), dangerouslySetInnerHTML: {
156
+ __html: (0, tool_1.setFontForText)(priceText, commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
157
+ } }),
158
+ react_1.default.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo), dangerouslySetInnerHTML: {
159
+ __html: (0, tool_1.setFontForText)((_m = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _m !== void 0 ? _m : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
160
+ } }))),
161
+ (!product || (product === null || product === void 0 ? void 0 : product.link)) && (react_1.default.createElement("button", { "aria-label": (_o = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _o !== void 0 ? _o : 'Shop now', onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle, dangerouslySetInnerHTML: {
162
+ __html: (0, tool_1.setFontForText)((_p = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _p !== void 0 ? _p : 'Shop now', buttonStyle)
163
+ } })),
153
164
  productInfoText({ isPost }))),
154
165
  react_1.default.createElement(Modal_1.default, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false }))));
155
166
  };
@@ -50,27 +50,25 @@ declare const _default: ({
50
50
  } | {
51
51
  type: string;
52
52
  label: string;
53
- child: ({
53
+ child: {
54
54
  type: string;
55
55
  name: string[];
56
- options?: undefined;
57
- initialValue?: undefined;
58
- addonAfter?: undefined;
59
- } | {
56
+ bottomText: string;
57
+ }[];
58
+ options?: undefined;
59
+ name?: undefined;
60
+ initialValue?: undefined;
61
+ } | {
62
+ type: string;
63
+ label: string;
64
+ child: ({
60
65
  type: string;
61
- options: {
62
- label: string;
63
- value: string;
64
- }[];
65
66
  name: string[];
66
- initialValue: string;
67
67
  addonAfter?: undefined;
68
68
  } | {
69
69
  type: string;
70
70
  addonAfter: string;
71
71
  name: string[];
72
- options?: undefined;
73
- initialValue?: undefined;
74
72
  })[];
75
73
  options?: undefined;
76
74
  name?: undefined;
@@ -124,19 +122,19 @@ declare const _default: ({
124
122
  } | {
125
123
  type: string;
126
124
  label: string;
127
- child: ({
125
+ child: {
128
126
  type: string;
129
127
  name: string[];
130
- initialValue: string;
131
- options?: undefined;
132
- addonAfter?: undefined;
133
- } | {
128
+ bottomText: string;
129
+ }[];
130
+ name?: undefined;
131
+ initialValue?: undefined;
132
+ } | {
133
+ type: string;
134
+ label: string;
135
+ child: ({
134
136
  type: string;
135
137
  name: string[];
136
- options: {
137
- label: string;
138
- value: string;
139
- }[];
140
138
  initialValue: string;
141
139
  addonAfter?: undefined;
142
140
  } | {
@@ -144,7 +142,6 @@ declare const _default: ({
144
142
  name: string[];
145
143
  addonAfter: string;
146
144
  initialValue?: undefined;
147
- options?: undefined;
148
145
  })[];
149
146
  name?: undefined;
150
147
  initialValue?: undefined;
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- var _a, _b;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const defaultSetting_1 = require("../../defaultSetting");
5
3
  exports.default = [
6
4
  {
7
5
  title: '商品图片',
@@ -81,14 +79,24 @@ exports.default = [
81
79
  label: '标题字体',
82
80
  child: [
83
81
  {
84
- type: 'Color',
85
- name: ['color']
82
+ type: 'Select',
83
+ name: ['fontFamily-cn'],
84
+ bottomText: '中文字体'
86
85
  },
87
86
  {
88
87
  type: 'Select',
89
- options: defaultSetting_1.fontOptions,
90
- name: ['fontFamily'],
91
- initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
88
+ name: ['fontFamily-en'],
89
+ bottomText: '英文/其他字体'
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ type: 'Group',
95
+ label: '',
96
+ child: [
97
+ {
98
+ type: 'Color',
99
+ name: ['color']
92
100
  },
93
101
  {
94
102
  type: 'Number',
@@ -160,15 +168,25 @@ exports.default = [
160
168
  label: '字体',
161
169
  child: [
162
170
  {
163
- type: 'Color',
164
- name: ['props', 'buttonStyle', 'color'],
165
- initialValue: '#fff'
171
+ type: 'Select',
172
+ name: ['props', 'buttonStyle', 'fontFamily-cn'],
173
+ bottomText: '中文字体'
166
174
  },
167
175
  {
168
176
  type: 'Select',
169
- name: ['props', 'buttonStyle', 'fontFamily'],
170
- options: defaultSetting_1.fontOptions,
171
- initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
177
+ name: ['props', 'buttonStyle', 'fontFamily-en'],
178
+ bottomText: '英文/其他字体'
179
+ }
180
+ ]
181
+ },
182
+ {
183
+ type: 'Group',
184
+ label: '',
185
+ child: [
186
+ {
187
+ type: 'Color',
188
+ name: ['props', 'buttonStyle', 'color'],
189
+ initialValue: '#fff'
172
190
  },
173
191
  {
174
192
  type: 'Number',
@@ -8,6 +8,7 @@ const materials_1 = require("../../../../core/utils/materials");
8
8
  require("./index.less");
9
9
  const hooks_1 = require("../../../../core/hooks");
10
10
  const useEventReport_1 = require("../../../../core/hooks/useEventReport");
11
+ const tool_1 = require("../../../../core/utils/tool");
11
12
  const Prompt = (_a) => {
12
13
  var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle } = _a, props = tslib_1.__rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle"]);
13
14
  const { popupDetailData } = (0, hooks_1.useSxpDataSource)();
@@ -31,6 +32,8 @@ const Prompt = (_a) => {
31
32
  react_1.default.createElement("div", { className: 'pb-prompt-icon' },
32
33
  react_1.default.createElement("img", { width: '100%', src: iconSrc !== null && iconSrc !== void 0 ? iconSrc : success_png_1.default, alt: 'success image' })),
33
34
  react_1.default.createElement("div", { className: 'pb-prompt-content' }, content),
34
- react_1.default.createElement("button", { "aria-label": btnText, className: 'pb-prompt-btn', style: submitButtonStyle, onClick: handleOk }, btnText)));
35
+ react_1.default.createElement("button", { "aria-label": btnText, className: 'pb-prompt-btn', style: submitButtonStyle, onClick: handleOk, dangerouslySetInnerHTML: {
36
+ __html: (0, tool_1.setFontForText)(btnText, submitButtonStyle)
37
+ } })));
35
38
  };
36
39
  exports.default = (0, react_1.memo)(Prompt);
@@ -15,24 +15,26 @@ declare const _default: {
15
15
  } | {
16
16
  type: string;
17
17
  label: string;
18
- child: ({
18
+ child: {
19
19
  type: string;
20
20
  name: string[];
21
- initialValue: string;
22
- options?: undefined;
23
- addonAfter?: undefined;
24
- } | {
21
+ bottomText: string;
22
+ }[];
23
+ name?: undefined;
24
+ mediaType?: undefined;
25
+ } | {
26
+ type: string;
27
+ label: string;
28
+ child: ({
25
29
  type: string;
26
30
  name: string[];
27
- options: any[];
28
- initialValue: any;
31
+ initialValue: string;
29
32
  addonAfter?: undefined;
30
33
  } | {
31
34
  type: string;
32
35
  name: string[];
33
36
  addonAfter: string;
34
37
  initialValue: number;
35
- options?: undefined;
36
38
  })[];
37
39
  name?: undefined;
38
40
  mediaType?: undefined;
@@ -1,8 +1,5 @@
1
1
  "use strict";
2
- var _a, _b;
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("tslib");
5
- const defaultSetting_1 = tslib_1.__importDefault(require("../../defaultSetting"));
6
3
  exports.default = [
7
4
  {
8
5
  title: '',
@@ -28,15 +25,25 @@ exports.default = [
28
25
  label: '提交按钮字体',
29
26
  child: [
30
27
  {
31
- type: 'Color',
32
- name: ['props', 'submitButtonStyle', 'color'],
33
- initialValue: '#fff'
28
+ type: 'Select',
29
+ name: ['props', 'submitButtonStyle', 'fontFamily-cn'],
30
+ bottomText: '中文字体'
34
31
  },
35
32
  {
36
33
  type: 'Select',
37
- name: ['props', 'submitButtonStyle', 'fontFamily'],
38
- options: defaultSetting_1.default === null || defaultSetting_1.default === void 0 ? void 0 : defaultSetting_1.default.fontOptions,
39
- initialValue: (_b = (_a = defaultSetting_1.default === null || defaultSetting_1.default === void 0 ? void 0 : defaultSetting_1.default.fontOptions) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.value
34
+ name: ['props', 'submitButtonStyle', 'fontFamily-en'],
35
+ bottomText: '英文/其他字体'
36
+ }
37
+ ]
38
+ },
39
+ {
40
+ type: 'Group',
41
+ label: '',
42
+ child: [
43
+ {
44
+ type: 'Color',
45
+ name: ['props', 'submitButtonStyle', 'color'],
46
+ initialValue: '#fff'
40
47
  },
41
48
  {
42
49
  type: 'Number',
@@ -6,6 +6,7 @@ const react_1 = tslib_1.__importStar(require("react"));
6
6
  const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProvider"));
7
7
  const hooks_1 = require("../../../../core/hooks");
8
8
  const Img_1 = tslib_1.__importDefault(require("../components/Img"));
9
+ const tool_1 = require("../../../../core/utils/tool");
9
10
  const Appoint = (_a) => {
10
11
  var _b, _c, _d, _e, _f, _g;
11
12
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "index"]);
@@ -14,6 +15,8 @@ const Appoint = (_a) => {
14
15
  const src = (_d = (_c = cta === null || cta === void 0 ? void 0 : cta.icon) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image;
15
16
  return (react_1.default.createElement(EventProvider_1.default, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: (0, css_1.css)(Object.assign({ alignItems: 'center' }, style)), style: { display: 'flex' }, index: index }, props),
16
17
  react_1.default.createElement(Img_1.default, { src: src, rec: recData, item: (_f = (_e = recData === null || recData === void 0 ? void 0 : recData.video) === null || _e === void 0 ? void 0 : _e.bindProduct) !== null && _f !== void 0 ? _f : recData === null || recData === void 0 ? void 0 : recData.video, index: index, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img }),
17
- react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', textOverflow: 'ellipsis' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _g !== void 0 ? _g : 'Product Name')));
18
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', textOverflow: 'ellipsis' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
19
+ __html: (0, tool_1.setFontForText)((_g = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _g !== void 0 ? _g : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
20
+ } })));
18
21
  };
19
22
  exports.default = (0, react_1.memo)(Appoint);
@@ -7,6 +7,7 @@ const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProv
7
7
  const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
8
8
  const hooks_1 = require("../../../../core/hooks");
9
9
  const Img_1 = tslib_1.__importDefault(require("../components/Img"));
10
+ const tool_1 = require("../../../../core/utils/tool");
10
11
  const Commodity = (_a) => {
11
12
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
12
13
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY", "index"]);
@@ -23,7 +24,11 @@ const Commodity = (_a) => {
23
24
  width: '100%',
24
25
  overflow: 'hidden'
25
26
  }) },
26
- react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name'),
27
- react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_k = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _k === void 0 ? void 0 : _k.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_m = (_l = product === null || product === void 0 ? void 0 : product.bindCta) === null || _l === void 0 ? void 0 : _l.enTitle) !== null && _m !== void 0 ? _m : 'Shop Now'))));
27
+ react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
28
+ __html: (0, tool_1.setFontForText)((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
29
+ } }),
30
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_k = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _k === void 0 ? void 0 : _k.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
31
+ __html: (0, tool_1.setFontForText)((_m = (_l = product === null || product === void 0 ? void 0 : product.bindCta) === null || _l === void 0 ? void 0 : _l.enTitle) !== null && _m !== void 0 ? _m : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
32
+ } }))));
28
33
  };
29
34
  exports.default = (0, react_1.memo)(Commodity);
@@ -7,8 +7,9 @@ const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProv
7
7
  const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
8
8
  const hooks_1 = require("../../../../core/hooks");
9
9
  const Img_1 = tslib_1.__importDefault(require("../components/Img"));
10
+ const tool_1 = require("../../../../core/utils/tool");
10
11
  const CommodityDiro = (_a) => {
11
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
12
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
12
13
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY", "index"]);
13
14
  const { sxpParameter } = (0, hooks_1.useSxpDataSource)();
14
15
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
@@ -23,7 +24,11 @@ const CommodityDiro = (_a) => {
23
24
  width: '100%',
24
25
  overflow: 'hidden'
25
26
  }) },
26
- react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name'),
27
- react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_l = (_k = product === null || product === void 0 ? void 0 : product.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop Now'))));
27
+ react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
28
+ __html: (0, tool_1.setFontForText)((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
29
+ } }),
30
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap', lineHeight: ((_k = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _k === void 0 ? void 0 : _k.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
31
+ __html: (0, tool_1.setFontForText)((_m = (_l = product === null || product === void 0 ? void 0 : product.bindCta) === null || _l === void 0 ? void 0 : _l.enTitle) !== null && _m !== void 0 ? _m : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
32
+ } }))));
28
33
  };
29
34
  exports.default = (0, react_1.memo)(CommodityDiro);
@@ -7,6 +7,7 @@ const EventProvider_1 = tslib_1.__importDefault(require("../components/EventProv
7
7
  const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
8
8
  const hooks_1 = require("../../../../core/hooks");
9
9
  const Img_1 = tslib_1.__importDefault(require("../components/Img"));
10
+ const tool_1 = require("../../../../core/utils/tool");
10
11
  const CommodityDiroNew = (_a) => {
11
12
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
12
13
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink, translateY = 0, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink", "translateY", "index"]);
@@ -23,7 +24,11 @@ const CommodityDiroNew = (_a) => {
23
24
  width: '100%',
24
25
  overflow: 'hidden'
25
26
  }) },
26
- react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name'),
27
- react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_l = (_k = product === null || product === void 0 ? void 0 : product.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop now'))));
27
+ react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
28
+ __html: (0, tool_1.setFontForText)((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
29
+ } }),
30
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
31
+ __html: (0, tool_1.setFontForText)((_l = (_k = product === null || product === void 0 ? void 0 : product.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
32
+ } }))));
28
33
  };
29
34
  exports.default = (0, react_1.memo)(CommodityDiroNew);
@@ -8,6 +8,7 @@ const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less
8
8
  const hooks_1 = require("../../../../core/hooks");
9
9
  const useEventReport_1 = require("../../../../core/hooks/useEventReport");
10
10
  const Img_1 = tslib_1.__importDefault(require("../components/Img"));
11
+ const tool_1 = require("../../../../core/utils/tool");
11
12
  const Link = (_a) => {
12
13
  var _b, _c, _d, _e, _f, _g, _h;
13
14
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index"]);
@@ -30,6 +31,8 @@ const Link = (_a) => {
30
31
  width: '100%',
31
32
  overflow: 'hidden'
32
33
  }) },
33
- react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle }, (_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name'))));
34
+ react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
35
+ __html: (0, tool_1.setFontForText)((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
36
+ } }))));
34
37
  };
35
38
  exports.default = (0, react_1.memo)(Link);
@@ -10,6 +10,7 @@ const Scroll_1 = tslib_1.__importDefault(require("../components/Scroll"));
10
10
  const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
11
11
  const hooks_1 = require("../../../../core/hooks");
12
12
  const useEventReport_1 = require("../../../../core/hooks/useEventReport");
13
+ const tool_1 = require("../../../../core/utils/tool");
13
14
  const MultiCommodity = (_a) => {
14
15
  var _b, _c;
15
16
  var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink, index, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink", "index", "translateY"]);
@@ -46,8 +47,12 @@ const MultiCommodity = (_a) => {
46
47
  width: '100%',
47
48
  overflow: 'hidden'
48
49
  }) },
49
- react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
50
- react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_f = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _f === void 0 ? void 0 : _f.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now'))))));
50
+ react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
51
+ __html: (0, tool_1.setFontForText)((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
52
+ } }),
53
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_f = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _f === void 0 ? void 0 : _f.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
54
+ __html: (0, tool_1.setFontForText)((_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
55
+ } }))))));
51
56
  })));
52
57
  };
53
58
  exports.default = (0, react_1.memo)(MultiCommodity);
@@ -10,6 +10,7 @@ const Img_1 = tslib_1.__importDefault(require("../components/Img"));
10
10
  const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
11
11
  const hooks_1 = require("../../../../core/hooks");
12
12
  const useEventReport_1 = require("../../../../core/hooks/useEventReport");
13
+ const tool_1 = require("../../../../core/utils/tool");
13
14
  const MultiCommodityDiro = (_a) => {
14
15
  var _b, _c;
15
16
  var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink, index, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink", "index", "translateY"]);
@@ -34,7 +35,7 @@ const MultiCommodityDiro = (_a) => {
34
35
  }
35
36
  }, popup === null || popup === void 0 ? void 0 : popup.duration);
36
37
  return (react_1.default.createElement(Scroll_1.default, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
37
- var _a, _b, _c, _d, _e, _f, _g;
38
+ var _a, _b, _c, _d, _e, _f, _g, _h;
38
39
  return (react_1.default.createElement(react_1.default.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (react_1.default.createElement(react_2.SwiperSlide, Object.assign({ key: item === null || item === void 0 ? void 0 : item.itemId, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
39
40
  react_1.default.createElement(Img_1.default, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img }),
40
41
  react_1.default.createElement("div", { className: (0, css_1.css)({
@@ -45,8 +46,12 @@ const MultiCommodityDiro = (_a) => {
45
46
  width: '100%',
46
47
  overflow: 'hidden'
47
48
  }) },
48
- react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
49
- react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '2px 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now'))))));
49
+ react_1.default.createElement("div", { className: index_module_less_1.default['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
50
+ __html: (0, tool_1.setFontForText)((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
51
+ } }),
52
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap', lineHeight: ((_f = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _f === void 0 ? void 0 : _f.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
53
+ __html: (0, tool_1.setFontForText)((_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
54
+ } }))))));
50
55
  })));
51
56
  };
52
57
  exports.default = (0, react_1.memo)(MultiCommodityDiro);
@@ -10,6 +10,7 @@ const Img_1 = tslib_1.__importDefault(require("../components/Img"));
10
10
  const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less"));
11
11
  const hooks_1 = require("../../../../core/hooks");
12
12
  const useEventReport_1 = require("../../../../core/hooks/useEventReport");
13
+ const tool_1 = require("../../../../core/utils/tool");
13
14
  const MultiCommodityDiroNew = (_a) => {
14
15
  var _b, _c;
15
16
  var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink, index, translateY = 0 } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink", "index", "translateY"]);
@@ -46,8 +47,12 @@ const MultiCommodityDiroNew = (_a) => {
46
47
  overflow: 'hidden',
47
48
  lineHeight: '20px'
48
49
  }) },
49
- react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name'),
50
- react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop now'))))));
50
+ react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
51
+ __html: (0, tool_1.setFontForText)((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
52
+ } }),
53
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
54
+ __html: (0, tool_1.setFontForText)((_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
55
+ } }))))));
51
56
  })));
52
57
  };
53
58
  exports.default = (0, react_1.memo)(MultiCommodityDiroNew);