@lingxiteam/assets 3.2.1-alpha.4 → 3.2.1-alpha.5

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.
@@ -267,7 +267,7 @@ var ErrorMsg = {
267
267
  };
268
268
  if (isShowFeedback) {
269
269
  footerContent.push( /*#__PURE__*/React.createElement("a", {
270
- className: "lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
270
+ className: "lx-notification-notice-footer-btn-ghost lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
271
271
  config: String(_param.itemKey),
272
272
  onClick: function onClick(e) {
273
273
  if (!(_param === null || _param === void 0 ? void 0 : _param.feedbackState)) {
@@ -425,7 +425,8 @@ var ErrorMsg = {
425
425
  }
426
426
  }
427
427
  }, _callee2, null, [[9, 16]]);
428
- }))
428
+ })),
429
+ className: "lx-notification-notice-footer-btn-primary"
429
430
  }, opts.okText));
430
431
  }
431
432
  return _context3.abrupt("return", footerContent);
@@ -125,15 +125,33 @@
125
125
 
126
126
  &-head + &-footer,
127
127
  &-content + &-footer {
128
- margin-top: 12px;
128
+ margin-top: 14px;
129
129
  }
130
130
 
131
131
  &-footer {
132
132
  text-align: right;
133
133
  a {
134
134
  display: inline-block;
135
- padding: 3px 0 2px 14px;
135
+ padding: 2px 4px;
136
+ border-radius: 2px;
137
+ margin-left: 8px;
138
+ &:hover {
139
+ opacity: .9;
140
+ }
141
+ }
142
+ &-btn-ghost {
143
+ color: #4477EE !important;
144
+ border: 1px solid #4477EE;
145
+ &.lx-notification-btn-disabled {
146
+ border-color: rgba(28, 36, 46, 0.25) !important;
147
+ }
148
+ }
149
+ &-btn-primary {
150
+ color: #fff !important;
151
+ background-color: #4477EE;
152
+ border: 1px solid #4477EE;
136
153
  }
154
+
137
155
  }
138
156
  }
139
157
 
@@ -142,7 +160,7 @@
142
160
  pointer-events: none;
143
161
  &,
144
162
  &:hover {
145
- color: rgba(28,36,46,0.75) !important;
163
+ color: rgba(28,36,46,0.25) !important;
146
164
  background-color: white !important;
147
165
  }
148
166
  }
@@ -2,7 +2,7 @@ import { resolveRequestPath } from '../compUtils';
2
2
  import { errTypeTitMap, getArticle } from '../const';
3
3
  export var defaultGlobalConfig = {
4
4
  duration: 3500,
5
- maxLine: null,
5
+ maxLine: 20,
6
6
  // 最多行数
7
7
  maxLen: null,
8
8
  // 最多字数
@@ -17,7 +17,7 @@ export var defaultGlobalConfig = {
17
17
  resolve: process.env.LingXi_ERROR_RESOLVE || resolveRequestPath('/lcdp/error/queryErrorInfoByCodeOrMsg'),
18
18
  feebackAction: false,
19
19
  // 故障上报地址,默认不展示故障上报
20
- okText: '异常帮助',
20
+ okText: '查看异常详情',
21
21
  cancelText: '取消',
22
22
  getLocale: function getLocale(k, p) {
23
23
  return p !== null && p !== void 0 ? p : '';
@@ -315,7 +315,7 @@ var theme = {
315
315
  'margin-xs': '8px',
316
316
  'margin-xxs': '4px',
317
317
  'margin-xxxs': '2px',
318
- 'page-space': '0px',
318
+ 'page-space': '0 40px 16px 40px',
319
319
  'box-padding-base': '20px',
320
320
  'box-padding-sm': '12px',
321
321
  'size-xs': '16px',
@@ -314,7 +314,7 @@
314
314
  @margin-xs: 8px;
315
315
  @margin-xxs: 4px;
316
316
  @margin-xxxs: 2px;
317
- @page-space: 0px;
317
+ @page-space: 0 40px 16px 40px;
318
318
  @box-padding-base: 20px;
319
319
  @box-padding-sm: 12px;
320
320
  @size-xs: 16px;
@@ -314,7 +314,7 @@ $margin-sm: 12px;
314
314
  $margin-xs: 8px;
315
315
  $margin-xxs: 4px;
316
316
  $margin-xxxs: 2px;
317
- $page-space: 0px;
317
+ $page-space: 0 40px 16px 40px;
318
318
  $box-padding-base: 20px;
319
319
  $box-padding-sm: 12px;
320
320
  $size-xs: 16px;
@@ -157,7 +157,7 @@ var margins = {
157
157
 
158
158
  // 页面间距
159
159
  var pageSpaces = {
160
- 'page-space': '0px'
160
+ 'page-space': '0 40px 16px 40px'
161
161
  };
162
162
 
163
163
  // 盒子区块间距
@@ -275,7 +275,7 @@ var ErrorMsg = {
275
275
  };
276
276
  if (isShowFeedback) {
277
277
  footerContent.push( /*#__PURE__*/_react.default.createElement("a", {
278
- className: "lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
278
+ className: "lx-notification-notice-footer-btn-ghost lx-feedback-notification-".concat(_param.itemKey, " ").concat(renderDisabled(feedbackPlacements[0], _param.itemKey)),
279
279
  config: String(_param.itemKey),
280
280
  onClick: function onClick(e) {
281
281
  if (!(_param === null || _param === void 0 ? void 0 : _param.feedbackState)) {
@@ -433,7 +433,8 @@ var ErrorMsg = {
433
433
  }
434
434
  }
435
435
  }, _callee2, null, [[9, 16]]);
436
- }))
436
+ })),
437
+ className: "lx-notification-notice-footer-btn-primary"
437
438
  }, opts.okText));
438
439
  }
439
440
  return _context3.abrupt("return", footerContent);
@@ -125,15 +125,33 @@
125
125
 
126
126
  &-head + &-footer,
127
127
  &-content + &-footer {
128
- margin-top: 12px;
128
+ margin-top: 14px;
129
129
  }
130
130
 
131
131
  &-footer {
132
132
  text-align: right;
133
133
  a {
134
134
  display: inline-block;
135
- padding: 3px 0 2px 14px;
135
+ padding: 2px 4px;
136
+ border-radius: 2px;
137
+ margin-left: 8px;
138
+ &:hover {
139
+ opacity: .9;
140
+ }
141
+ }
142
+ &-btn-ghost {
143
+ color: #4477EE !important;
144
+ border: 1px solid #4477EE;
145
+ &.lx-notification-btn-disabled {
146
+ border-color: rgba(28, 36, 46, 0.25) !important;
147
+ }
148
+ }
149
+ &-btn-primary {
150
+ color: #fff !important;
151
+ background-color: #4477EE;
152
+ border: 1px solid #4477EE;
136
153
  }
154
+
137
155
  }
138
156
  }
139
157
 
@@ -142,7 +160,7 @@
142
160
  pointer-events: none;
143
161
  &,
144
162
  &:hover {
145
- color: rgba(28,36,46,0.75) !important;
163
+ color: rgba(28,36,46,0.25) !important;
146
164
  background-color: white !important;
147
165
  }
148
166
  }
@@ -8,7 +8,7 @@ var _compUtils = require("../compUtils");
8
8
  var _const = require("../const");
9
9
  var defaultGlobalConfig = {
10
10
  duration: 3500,
11
- maxLine: null,
11
+ maxLine: 20,
12
12
  // 最多行数
13
13
  maxLen: null,
14
14
  // 最多字数
@@ -23,7 +23,7 @@ var defaultGlobalConfig = {
23
23
  resolve: process.env.LingXi_ERROR_RESOLVE || (0, _compUtils.resolveRequestPath)('/lcdp/error/queryErrorInfoByCodeOrMsg'),
24
24
  feebackAction: false,
25
25
  // 故障上报地址,默认不展示故障上报
26
- okText: '异常帮助',
26
+ okText: '查看异常详情',
27
27
  cancelText: '取消',
28
28
  getLocale: function getLocale(k, p) {
29
29
  return p !== null && p !== void 0 ? p : '';
@@ -317,7 +317,7 @@ var theme = {
317
317
  'margin-xs': '8px',
318
318
  'margin-xxs': '4px',
319
319
  'margin-xxxs': '2px',
320
- 'page-space': '0px',
320
+ 'page-space': '0 40px 16px 40px',
321
321
  'box-padding-base': '20px',
322
322
  'box-padding-sm': '12px',
323
323
  'size-xs': '16px',
@@ -314,7 +314,7 @@
314
314
  @margin-xs: 8px;
315
315
  @margin-xxs: 4px;
316
316
  @margin-xxxs: 2px;
317
- @page-space: 0px;
317
+ @page-space: 0 40px 16px 40px;
318
318
  @box-padding-base: 20px;
319
319
  @box-padding-sm: 12px;
320
320
  @size-xs: 16px;
@@ -314,7 +314,7 @@ $margin-sm: 12px;
314
314
  $margin-xs: 8px;
315
315
  $margin-xxs: 4px;
316
316
  $margin-xxxs: 2px;
317
- $page-space: 0px;
317
+ $page-space: 0 40px 16px 40px;
318
318
  $box-padding-base: 20px;
319
319
  $box-padding-sm: 12px;
320
320
  $size-xs: 16px;
@@ -159,7 +159,7 @@ var margins = {
159
159
 
160
160
  // 页面间距
161
161
  var pageSpaces = {
162
- 'page-space': '0px'
162
+ 'page-space': '0 40px 16px 40px'
163
163
  };
164
164
 
165
165
  // 盒子区块间距
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/assets",
3
- "version": "3.2.1-alpha.4",
3
+ "version": "3.2.1-alpha.5",
4
4
  "description": "灵犀低代码平台移动端 - 工具类",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "gitHead": "bcd338198e2c14459538542d10600ab03abc92f2",
39
39
  "dependencies": {
40
- "crypto-js": "^4.1.1",
40
+ "crypto-js": "^4.2.0",
41
41
  "jsencrypt": "^3.1.0",
42
42
  "tinycolor2": "^1.6.0"
43
43
  }