@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.
@@ -247,8 +247,8 @@ function StoreTable(props) {
247
247
  var rowSelection = {
248
248
  onChange: function onChange(selectedRowKeys, selectedRow) {
249
249
  _onChange({
250
- value: selectedRowKeys[0],
251
- name: selectedRow[0].catgName
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: function rowKey(record) {
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
@@ -1,6 +1,7 @@
1
1
  .m-text {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ word-break: break-word;
4
5
 
5
6
  .title-wrap {
6
7
  font-weight: 500;
@@ -55,7 +55,8 @@ var urlTypeMap = {
55
55
  BUNDLE_CAMPAIGN: 'BundleCampaign',
56
56
  VIDEO: 'Video',
57
57
  SHARE_URL: 'ShareURL',
58
- MINI_APP: 'MiniApp'
58
+ MINI_APP: 'MiniApp',
59
+ STORE: 'Store'
59
60
  };
60
61
  exports.urlTypeMap = urlTypeMap;
61
62
  var respCodeMap = {
@@ -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: selectedRowKeys[0],
251
- name: selectedRow[0].catgName
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: function rowKey(record) {
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
@@ -1,6 +1,7 @@
1
1
  .m-text {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ word-break: break-word;
4
5
 
5
6
  .title-wrap {
6
7
  font-weight: 500;
@@ -55,7 +55,8 @@ var urlTypeMap = {
55
55
  BUNDLE_CAMPAIGN: 'BundleCampaign',
56
56
  VIDEO: 'Video',
57
57
  SHARE_URL: 'ShareURL',
58
- MINI_APP: 'MiniApp'
58
+ MINI_APP: 'MiniApp',
59
+ STORE: 'Store'
59
60
  };
60
61
  exports.urlTypeMap = urlTypeMap;
61
62
  var respCodeMap = {
@@ -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',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.27",
4
+ "version": "0.1.28",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",