antd-management-fast-framework 1.11.2 → 1.11.3

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/License.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 luzhitao
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1411,6 +1411,8 @@ var Common = /*#__PURE__*/function (_Core) {
1411
1411
  image: '',
1412
1412
  imageCircle: true,
1413
1413
  icon: null,
1414
+ hideIcon: false,
1415
+ hideIconWhenShowImage: true,
1414
1416
  text: '',
1415
1417
  textEllipsisMaxWidth: 0,
1416
1418
  subText: '',
@@ -1420,6 +1422,8 @@ var Common = /*#__PURE__*/function (_Core) {
1420
1422
  image = _image$imageCircle$ic.image,
1421
1423
  imageCircle = _image$imageCircle$ic.imageCircle,
1422
1424
  icon = _image$imageCircle$ic.icon,
1425
+ hideIcon = _image$imageCircle$ic.hideIcon,
1426
+ hideIconWhenShowImage = _image$imageCircle$ic.hideIconWhenShowImage,
1423
1427
  text = _image$imageCircle$ic.text,
1424
1428
  textEllipsisMaxWidth = _image$imageCircle$ic.textEllipsisMaxWidth,
1425
1429
  subText = _image$imageCircle$ic.subText,
@@ -1436,7 +1440,7 @@ var Common = /*#__PURE__*/function (_Core) {
1436
1440
  extraItemList = _affix$split$list.list;
1437
1441
 
1438
1442
  var imageVisible = !(0, _tools.stringIsNullOrWhiteSpace)(image);
1439
- var iconAdjust = imageVisible ? icon : icon || /*#__PURE__*/_react.default.createElement(_icons.ContactsOutlined, null);
1443
+ var iconAdjust = !!hideIcon ? null : imageVisible ? !!hideIconWhenShowImage ? null : icon : icon || /*#__PURE__*/_react.default.createElement(_icons.ReadOutlined, null);
1440
1444
  var extraListData = [];
1441
1445
 
1442
1446
  if ((0, _tools.isArray)(extraItemList)) {
@@ -48,6 +48,7 @@ export namespace appInitDefault {
48
48
  export const showLogInConsole: boolean;
49
49
  export const showRequestInfo: boolean;
50
50
  export const useVirtualRequest: boolean;
51
+ export const showUseVirtualRequestMessage: boolean;
51
52
  export const apiVersion: string;
52
53
  export const imageUploadMaxSize: number;
53
54
  export const videoUploadMaxSize: number;
@@ -78,6 +78,7 @@ var appInitDefault = {
78
78
  showLogInConsole: false,
79
79
  showRequestInfo: false,
80
80
  useVirtualRequest: false,
81
+ showUseVirtualRequestMessage: false,
81
82
  apiVersion: '',
82
83
  imageUploadMaxSize: 2,
83
84
  videoUploadMaxSize: 4,
@@ -18,6 +18,7 @@ export namespace defaultSettingsLayoutCustom {
18
18
  export function getLoginPath(): string;
19
19
  export function getApiVersion(): string;
20
20
  export function getUseVirtualRequest(): boolean;
21
+ export function getShowUseVirtualRequestMessage(): boolean;
21
22
  export function getShowLogInConsole(): boolean;
22
23
  export function getShowRequestInfo(): boolean;
23
24
  export function getPlatformName(): string;
@@ -137,6 +137,16 @@ var defaultSettingsLayoutCustom = {
137
137
 
138
138
  return useVirtualRequest || false;
139
139
  },
140
+ getShowUseVirtualRequestMessage: function getShowUseVirtualRequestMessage() {
141
+ var appInit = (0, _tools.getAppInitConfigData)();
142
+
143
+ var _showUseVirtualReques = _objectSpread(_objectSpread({}, {
144
+ showUseVirtualRequestMessage: false
145
+ }), appInit || {}),
146
+ showUseVirtualRequestMessage = _showUseVirtualReques.showUseVirtualRequestMessage;
147
+
148
+ return showUseVirtualRequestMessage || false;
149
+ },
140
150
  getShowLogInConsole: function getShowLogInConsole() {
141
151
  var appInit = (0, _tools.getAppInitConfigData)();
142
152
 
@@ -404,7 +404,7 @@ function _request() {
404
404
  while (1) {
405
405
  switch (_context.prev = _context.next) {
406
406
  case 0:
407
- api = _ref4.api, _ref4$params = _ref4.params, params = _ref4$params === void 0 ? {} : _ref4$params, _ref4$method = _ref4.method, method = _ref4$method === void 0 ? 'POST' : _ref4$method, _ref4$useVirtualReque = _ref4.useVirtualRequest, useVirtualRequest = _ref4$useVirtualReque === void 0 ? _defaultSettingsSpecial.defaultSettingsLayoutCustom.getUseVirtualRequest() : _ref4$useVirtualReque, _ref4$showUseVirtualR = _ref4.showUseVirtualRequestMessage, showUseVirtualRequestMessage = _ref4$showUseVirtualR === void 0 ? false : _ref4$showUseVirtualR, _ref4$virtualSuccessR = _ref4.virtualSuccessResponse, virtualSuccessResponse = _ref4$virtualSuccessR === void 0 ? {} : _ref4$virtualSuccessR, _ref4$virtualFailResp = _ref4.virtualFailResponse, virtualFailResponse = _ref4$virtualFailResp === void 0 ? {
407
+ api = _ref4.api, _ref4$params = _ref4.params, params = _ref4$params === void 0 ? {} : _ref4$params, _ref4$method = _ref4.method, method = _ref4$method === void 0 ? 'POST' : _ref4$method, _ref4$useVirtualReque = _ref4.useVirtualRequest, useVirtualRequest = _ref4$useVirtualReque === void 0 ? _defaultSettingsSpecial.defaultSettingsLayoutCustom.getUseVirtualRequest() : _ref4$useVirtualReque, _ref4$showUseVirtualR = _ref4.showUseVirtualRequestMessage, showUseVirtualRequestMessage = _ref4$showUseVirtualR === void 0 ? _defaultSettingsSpecial.defaultSettingsLayoutCustom.getShowUseVirtualRequestMessage() : _ref4$showUseVirtualR, _ref4$virtualSuccessR = _ref4.virtualSuccessResponse, virtualSuccessResponse = _ref4$virtualSuccessR === void 0 ? {} : _ref4$virtualSuccessR, _ref4$virtualFailResp = _ref4.virtualFailResponse, virtualFailResponse = _ref4$virtualFailResp === void 0 ? {
408
408
  code: 1001,
409
409
  message: '虚拟未知错误'
410
410
  } : _ref4$virtualFailResp, _ref4$virtualRequestR = _ref4.virtualRequestResult, virtualRequestResult = _ref4$virtualRequestR === void 0 ? true : _ref4$virtualRequestR, _ref4$virtualNeedAuth = _ref4.virtualNeedAuthorize, virtualNeedAuthorize = _ref4$virtualNeedAuth === void 0 ? true : _ref4$virtualNeedAuth;
@@ -21,6 +21,7 @@ export function getAppInitConfigData(): {
21
21
  showLogInConsole: boolean;
22
22
  showRequestInfo: boolean;
23
23
  useVirtualRequest: boolean;
24
+ showUseVirtualRequestMessage: boolean;
24
25
  apiVersion: string;
25
26
  imageUploadMaxSize: number;
26
27
  videoUploadMaxSize: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-framework",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
4
4
  "description": "antd-management-fast-framework",
5
5
  "keywords": [
6
6
  "antd-management-fast-framework"
@@ -167,5 +167,5 @@
167
167
  "bugs": {
168
168
  "url": "https://github.com/kityandhero/antd-management-fast-framework/issues"
169
169
  },
170
- "gitHead": "48e23cd378dbe7cda1566614180397fdc06e066d"
170
+ "gitHead": "11398bf0bfb60684cbbf10e6d713bae473a9e68f"
171
171
  }