@fonixtree/magic-design 2.0.197 → 2.0.198

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.
@@ -85,6 +85,18 @@
85
85
  text-overflow: ellipsis;
86
86
  }
87
87
 
88
+ .two_row {
89
+ display: -webkit-box;
90
+ -webkit-line-clamp: 2;
91
+ -webkit-box-orient: vertical;
92
+ overflow: hidden;
93
+ text-overflow: ellipsis;
94
+ line-height: 1.5em;
95
+ /* 设置行高 */
96
+ max-height: 3em;
97
+ /* 行高的两倍,因为最多显示两行 */
98
+ }
99
+
88
100
  .common_mask {
89
101
  position: fixed;
90
102
  top: 0;
@@ -91,7 +91,10 @@ var getDefaultJSON = function getDefaultJSON() {
91
91
  type: 'BUTTON',
92
92
  text: 0,
93
93
  content: {
94
- url: '',
94
+ url: {
95
+ name: '/my-points',
96
+ value: '/my-points'
97
+ },
95
98
  backgroundColor: ''
96
99
  },
97
100
  buttonText: {
@@ -15,6 +15,8 @@ var _common = require("../../../../../common");
15
15
 
16
16
  var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
17
17
 
18
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
19
+
18
20
  var _coreUtil = require("../../../../../utils/coreUtil");
19
21
 
20
22
  var _locale = require("../../../../../locale");
@@ -213,7 +215,9 @@ function (_super) {
213
215
  key: 'search6',
214
216
  name: (0, _locale.i18n)('POINTS'),
215
217
  toggleType: 'switch',
216
- value: null,
218
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
219
+ data: panelProps.points
220
+ }),
217
221
  metaOption: panelProps.points
218
222
  }];
219
223
  return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
@@ -116,7 +116,7 @@ function (_super) {
116
116
  }), /*#__PURE__*/_react["default"].createElement("div", {
117
117
  className: "text"
118
118
  }, panelProps.content.address.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
119
- className: "address one_row",
119
+ className: "address two_row",
120
120
  data: __assign(__assign({}, panelProps.content.address), {
121
121
  text: (0, _coreUtil.isDesignMode)() ? (0, _locale.i18n)('DISPLAY_LOCATION_ADDRESS') : locationInfo.address
122
122
  })
@@ -299,7 +299,8 @@ var newParseUrl = function newParseUrl(urlObj) {
299
299
  '/search-page': 'SEARCH_PAGE',
300
300
  '/commission': 'COMMISSION',
301
301
  '/add-location': 'ADD_ADDRESS_PAGE',
302
- '/location': 'ADDRESS_PAGE'
302
+ '/location': 'ADDRESS_PAGE',
303
+ '/my-points': 'POINT_PAGE'
303
304
  };
304
305
  var typeTemp = map[link];
305
306
 
@@ -478,7 +479,8 @@ var parseUrl = function parseUrl(url) {
478
479
  '/main/my-commission': 'WALLET',
479
480
  '/commission': 'COMMISSION',
480
481
  '/add-location': 'ADD_ADDRESS_PAGE',
481
- '/location': 'ADDRESS_PAGE'
482
+ '/location': 'ADDRESS_PAGE',
483
+ '/my-points': 'POINT_PAGE'
482
484
  };
483
485
  link = url;
484
486
  params = {
@@ -85,6 +85,18 @@
85
85
  text-overflow: ellipsis;
86
86
  }
87
87
 
88
+ .two_row {
89
+ display: -webkit-box;
90
+ -webkit-line-clamp: 2;
91
+ -webkit-box-orient: vertical;
92
+ overflow: hidden;
93
+ text-overflow: ellipsis;
94
+ line-height: 1.5em;
95
+ /* 设置行高 */
96
+ max-height: 3em;
97
+ /* 行高的两倍,因为最多显示两行 */
98
+ }
99
+
88
100
  .common_mask {
89
101
  position: fixed;
90
102
  top: 0;
@@ -91,7 +91,10 @@ var getDefaultJSON = function getDefaultJSON() {
91
91
  type: 'BUTTON',
92
92
  text: 0,
93
93
  content: {
94
- url: '',
94
+ url: {
95
+ name: '/my-points',
96
+ value: '/my-points'
97
+ },
95
98
  backgroundColor: ''
96
99
  },
97
100
  buttonText: {
@@ -15,6 +15,8 @@ var _common = require("../../../../../common");
15
15
 
16
16
  var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
17
17
 
18
+ var _ButtonConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ButtonConfig"));
19
+
18
20
  var _coreUtil = require("../../../../../utils/coreUtil");
19
21
 
20
22
  var _locale = require("../../../../../locale");
@@ -213,7 +215,9 @@ function (_super) {
213
215
  key: 'search6',
214
216
  name: (0, _locale.i18n)('POINTS'),
215
217
  toggleType: 'switch',
216
- value: null,
218
+ value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
219
+ data: panelProps.points
220
+ }),
217
221
  metaOption: panelProps.points
218
222
  }];
219
223
  return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
@@ -116,7 +116,7 @@ function (_super) {
116
116
  }), /*#__PURE__*/_react["default"].createElement("div", {
117
117
  className: "text"
118
118
  }, panelProps.content.address.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
119
- className: "address one_row",
119
+ className: "address two_row",
120
120
  data: __assign(__assign({}, panelProps.content.address), {
121
121
  text: (0, _coreUtil.isDesignMode)() ? (0, _locale.i18n)('DISPLAY_LOCATION_ADDRESS') : locationInfo.address
122
122
  })
@@ -299,7 +299,8 @@ var newParseUrl = function newParseUrl(urlObj) {
299
299
  '/search-page': 'SEARCH_PAGE',
300
300
  '/commission': 'COMMISSION',
301
301
  '/add-location': 'ADD_ADDRESS_PAGE',
302
- '/location': 'ADDRESS_PAGE'
302
+ '/location': 'ADDRESS_PAGE',
303
+ '/my-points': 'POINT_PAGE'
303
304
  };
304
305
  var typeTemp = map[link];
305
306
 
@@ -478,7 +479,8 @@ var parseUrl = function parseUrl(url) {
478
479
  '/main/my-commission': 'WALLET',
479
480
  '/commission': 'COMMISSION',
480
481
  '/add-location': 'ADD_ADDRESS_PAGE',
481
- '/location': 'ADDRESS_PAGE'
482
+ '/location': 'ADDRESS_PAGE',
483
+ '/my-points': 'POINT_PAGE'
482
484
  };
483
485
  link = url;
484
486
  params = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.197",
4
+ "version": "2.0.198",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",