@fonixtree/magic-design 0.1.27 → 0.1.28
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/LinkModal/StoreTable/index.js +3 -5
- package/es/composite-comp/bol/components/Text/index.js +1 -1
- package/es/composite-comp/bol/components/Text/index.less +1 -0
- package/es/constants/index.js +2 -1
- package/es/utils/businessUtil.js +12 -0
- package/lib/common/LinkModal/StoreTable/index.js +3 -5
- package/lib/composite-comp/bol/components/Text/index.js +1 -1
- package/lib/composite-comp/bol/components/Text/index.less +1 -0
- package/lib/constants/index.js +2 -1
- package/lib/utils/businessUtil.js +12 -0
- package/package.json +1 -1
|
@@ -247,8 +247,8 @@ function StoreTable(props) {
|
|
|
247
247
|
var rowSelection = {
|
|
248
248
|
onChange: function onChange(selectedRowKeys, selectedRow) {
|
|
249
249
|
_onChange({
|
|
250
|
-
value:
|
|
251
|
-
name: selectedRow[0].
|
|
250
|
+
value: selectedRow[0].storeId,
|
|
251
|
+
name: selectedRow[0].storeName
|
|
252
252
|
});
|
|
253
253
|
},
|
|
254
254
|
type: 'radio'
|
|
@@ -309,9 +309,7 @@ function StoreTable(props) {
|
|
|
309
309
|
},
|
|
310
310
|
showSizeChanger: false
|
|
311
311
|
}),
|
|
312
|
-
rowKey:
|
|
313
|
-
return record && record.key;
|
|
314
|
-
},
|
|
312
|
+
rowKey: "storeId",
|
|
315
313
|
rowSelection: rowSelection,
|
|
316
314
|
scroll: {
|
|
317
315
|
y: 400
|
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
moduleName: nodeData.moduleIndex + '.' + nodeData.type
|
|
99
99
|
};
|
|
100
100
|
var groupWrapContainerStyle = window.magicDesign.device === 'pc' ? 'padding: 16px 20px;' : 'padding: 12px 20px;';
|
|
101
|
-
var style = ".m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{" + groupWrapContainerStyle + "}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}";
|
|
101
|
+
var style = ".m-text{display: flex;flex-direction: column;word-break: break-word;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{" + groupWrapContainerStyle + "}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}";
|
|
102
102
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
103
|
className: "m-text",
|
|
104
104
|
onClick: this.onComponentClick
|
package/es/constants/index.js
CHANGED
package/es/utils/businessUtil.js
CHANGED
|
@@ -123,6 +123,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
123
123
|
};
|
|
124
124
|
break;
|
|
125
125
|
|
|
126
|
+
case _constants.urlTypeMap.STORE:
|
|
127
|
+
// 跳转店铺
|
|
128
|
+
link = "/store-home/" + value;
|
|
129
|
+
params = {
|
|
130
|
+
action: 'jump',
|
|
131
|
+
params: {
|
|
132
|
+
type: 'STORE',
|
|
133
|
+
url: value
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
break;
|
|
137
|
+
|
|
126
138
|
default:
|
|
127
139
|
var map = {
|
|
128
140
|
'/main/cart': 'CART',
|
|
@@ -247,8 +247,8 @@ function StoreTable(props) {
|
|
|
247
247
|
var rowSelection = {
|
|
248
248
|
onChange: function onChange(selectedRowKeys, selectedRow) {
|
|
249
249
|
_onChange({
|
|
250
|
-
value:
|
|
251
|
-
name: selectedRow[0].
|
|
250
|
+
value: selectedRow[0].storeId,
|
|
251
|
+
name: selectedRow[0].storeName
|
|
252
252
|
});
|
|
253
253
|
},
|
|
254
254
|
type: 'radio'
|
|
@@ -309,9 +309,7 @@ function StoreTable(props) {
|
|
|
309
309
|
},
|
|
310
310
|
showSizeChanger: false
|
|
311
311
|
}),
|
|
312
|
-
rowKey:
|
|
313
|
-
return record && record.key;
|
|
314
|
-
},
|
|
312
|
+
rowKey: "storeId",
|
|
315
313
|
rowSelection: rowSelection,
|
|
316
314
|
scroll: {
|
|
317
315
|
y: 400
|
|
@@ -98,7 +98,7 @@ function (_super) {
|
|
|
98
98
|
moduleName: nodeData.moduleIndex + '.' + nodeData.type
|
|
99
99
|
};
|
|
100
100
|
var groupWrapContainerStyle = window.magicDesign.device === 'pc' ? 'padding: 16px 20px;' : 'padding: 12px 20px;';
|
|
101
|
-
var style = ".m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{" + groupWrapContainerStyle + "}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}";
|
|
101
|
+
var style = ".m-text{display: flex;flex-direction: column;word-break: break-word;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title-text{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{" + groupWrapContainerStyle + "}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}";
|
|
102
102
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
103
103
|
className: "m-text",
|
|
104
104
|
onClick: this.onComponentClick
|
package/lib/constants/index.js
CHANGED
|
@@ -123,6 +123,18 @@ var newParseUrl = function newParseUrl(urlObj) {
|
|
|
123
123
|
};
|
|
124
124
|
break;
|
|
125
125
|
|
|
126
|
+
case _constants.urlTypeMap.STORE:
|
|
127
|
+
// 跳转店铺
|
|
128
|
+
link = "/store-home/" + value;
|
|
129
|
+
params = {
|
|
130
|
+
action: 'jump',
|
|
131
|
+
params: {
|
|
132
|
+
type: 'STORE',
|
|
133
|
+
url: value
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
break;
|
|
137
|
+
|
|
126
138
|
default:
|
|
127
139
|
var map = {
|
|
128
140
|
'/main/cart': 'CART',
|