ls-pro-common 1.0.33 → 1.0.36
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/dist/common.css +9 -0
- package/dist/common.js +1 -1
- package/dist/common.min.css +9 -0
- package/dist/common.min.js +1 -1
- package/es/components/IconSelector.js +8 -1
- package/es/components/InputMultiLine.d.ts +41 -0
- package/es/components/InputMultiLine.js +142 -0
- package/es/hooks/useDtl/index.js +17 -8
- package/es/hooks/useSingle/index.js +17 -8
- package/es/http/index.js +2 -5
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/lib/components/IconSelector.js +8 -1
- package/lib/components/InputMultiLine.d.ts +41 -0
- package/lib/components/InputMultiLine.js +165 -0
- package/lib/hooks/useDtl/index.js +17 -8
- package/lib/hooks/useSingle/index.js +17 -8
- package/lib/http/index.js +2 -5
- package/lib/index.d.ts +2 -1
- package/lib/index.js +8 -0
- package/package.json +3 -3
|
@@ -628,35 +628,44 @@ function useSingle(inParam) {
|
|
|
628
628
|
case 9:
|
|
629
629
|
result = _context7.sent;
|
|
630
630
|
|
|
631
|
+
if (!(result.data && typeof result.data === 'string')) {
|
|
632
|
+
_context7.next = 13;
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
window.open(result.data);
|
|
637
|
+
return _context7.abrupt("return", true);
|
|
638
|
+
|
|
639
|
+
case 13:
|
|
631
640
|
if (!(((_result$flag4 = result.flag) === null || _result$flag4 === void 0 ? void 0 : _result$flag4.retCode) === '0')) {
|
|
632
|
-
_context7.next =
|
|
641
|
+
_context7.next = 18;
|
|
633
642
|
break;
|
|
634
643
|
}
|
|
635
644
|
|
|
636
645
|
(0, _utils.showSuccess)(((_result$flag5 = result.flag) === null || _result$flag5 === void 0 ? void 0 : _result$flag5.retMsg) || '导出成功');
|
|
637
646
|
return _context7.abrupt("return", true);
|
|
638
647
|
|
|
639
|
-
case
|
|
648
|
+
case 18:
|
|
640
649
|
(0, _utils.showError)(((_result$flag6 = result.flag) === null || _result$flag6 === void 0 ? void 0 : _result$flag6.retMsg) || '导出失败,请联系系统管理员');
|
|
641
650
|
return _context7.abrupt("return", false);
|
|
642
651
|
|
|
643
|
-
case
|
|
644
|
-
_context7.next =
|
|
652
|
+
case 20:
|
|
653
|
+
_context7.next = 27;
|
|
645
654
|
break;
|
|
646
655
|
|
|
647
|
-
case
|
|
648
|
-
_context7.prev =
|
|
656
|
+
case 22:
|
|
657
|
+
_context7.prev = 22;
|
|
649
658
|
_context7.t0 = _context7["catch"](6);
|
|
650
659
|
console.log(_context7.t0);
|
|
651
660
|
(0, _utils.showError)(_context7.t0.message);
|
|
652
661
|
return _context7.abrupt("return", false);
|
|
653
662
|
|
|
654
|
-
case
|
|
663
|
+
case 27:
|
|
655
664
|
case "end":
|
|
656
665
|
return _context7.stop();
|
|
657
666
|
}
|
|
658
667
|
}
|
|
659
|
-
}, _callee7, null, [[6,
|
|
668
|
+
}, _callee7, null, [[6, 22]]);
|
|
660
669
|
}));
|
|
661
670
|
|
|
662
671
|
return function onExport(_x8, _x9) {
|
package/lib/http/index.js
CHANGED
|
@@ -307,12 +307,9 @@ function _getDict() {
|
|
|
307
307
|
case 0:
|
|
308
308
|
showValue = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : true;
|
|
309
309
|
needGateWay = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : true;
|
|
310
|
-
api = '/lesoon-integration/sysDictDtl';
|
|
310
|
+
api = '/lesoon-integration/sysDictDtl/listByProperties';
|
|
311
311
|
param = {
|
|
312
|
-
|
|
313
|
-
dictCode: dictCode
|
|
314
|
-
},
|
|
315
|
-
ifPage: 0
|
|
312
|
+
dictCode: dictCode
|
|
316
313
|
};
|
|
317
314
|
return _context6.abrupt("return", fetchOptions(api, param, 'dictValue', 'displayName', showValue, needGateWay));
|
|
318
315
|
|
package/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import InputTable from './components/InputTable';
|
|
|
3
3
|
import Page404 from './components/404';
|
|
4
4
|
import Loading from './components/Loading';
|
|
5
5
|
import IconSelector from './components/IconSelector';
|
|
6
|
+
import InputMultiLine from './components/InputMultiLine';
|
|
6
7
|
import BaseService from './service/BaseService';
|
|
7
8
|
import request, { httpGet, httpPut, httpPost, httpDelete, getDict, fetchOptions } from './http';
|
|
8
9
|
import * as utils from './utils';
|
|
@@ -14,4 +15,4 @@ import usePermission from './hooks/usePermission';
|
|
|
14
15
|
import type { ApiResponse, TableToolbar, BaseApiType, MethodType } from './typing';
|
|
15
16
|
import type { DtlLyaoutProps } from './components/DtlLayout';
|
|
16
17
|
export type { ApiResponse, TableToolbar, BaseApiType, MethodType, DtlLyaoutProps };
|
|
17
|
-
export { DtlLayout, InputTable, Page404, Loading, IconSelector, BaseService, request, httpDelete, httpGet, httpPost, httpPut, getDict, fetchOptions, utils, useSingle, useDtl, usePermission };
|
|
18
|
+
export { DtlLayout, InputTable, Page404, Loading, IconSelector, InputMultiLine, BaseService, request, httpDelete, httpGet, httpPost, httpPut, getDict, fetchOptions, utils, useSingle, useDtl, usePermission };
|
package/lib/index.js
CHANGED
|
@@ -25,6 +25,12 @@ Object.defineProperty(exports, "IconSelector", {
|
|
|
25
25
|
return _IconSelector.default;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
+
Object.defineProperty(exports, "InputMultiLine", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function get() {
|
|
31
|
+
return _InputMultiLine.default;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
28
34
|
Object.defineProperty(exports, "InputTable", {
|
|
29
35
|
enumerable: true,
|
|
30
36
|
get: function get() {
|
|
@@ -115,6 +121,8 @@ var _Loading = _interopRequireDefault(require("./components/Loading"));
|
|
|
115
121
|
|
|
116
122
|
var _IconSelector = _interopRequireDefault(require("./components/IconSelector"));
|
|
117
123
|
|
|
124
|
+
var _InputMultiLine = _interopRequireDefault(require("./components/InputMultiLine"));
|
|
125
|
+
|
|
118
126
|
var _BaseService = _interopRequireDefault(require("./service/BaseService"));
|
|
119
127
|
|
|
120
128
|
var _http = _interopRequireWildcard(require("./http"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ls-pro-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "ls-pro-common",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ant-design/icons": "^4.3.0",
|
|
31
|
-
"ls-pro-table": "2.62.
|
|
32
|
-
"ls-pro-form": "1.52.
|
|
31
|
+
"ls-pro-table": "2.62.29",
|
|
32
|
+
"ls-pro-form": "1.52.25",
|
|
33
33
|
"@babel/runtime": "^7.16.3",
|
|
34
34
|
"classnames": "^2.2.6",
|
|
35
35
|
"moment": "^2.27.0",
|