ls-pro-common 1.1.1 → 1.1.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/dist/common.css +66 -3
- package/dist/common.js +1 -1
- package/dist/common.js.LICENSE.txt +14 -3
- package/dist/common.min.css +66 -3
- package/dist/common.min.js +1 -1
- package/dist/common.min.js.LICENSE.txt +14 -3
- package/es/components/AreaCascader.js +35 -48
- package/es/components/AreaCascaderPanel.js +55 -85
- package/es/components/DescritionCard.js +14 -19
- package/es/components/DtlLayout.js +25 -38
- package/es/components/IconSelector.js +27 -50
- package/es/components/ImageSelector.js +89 -139
- package/es/components/InputMultiLine.js +33 -45
- package/es/components/InputTable.js +118 -160
- package/es/components/Loading.js +3 -6
- package/es/components/Permission.d.ts +6 -0
- package/es/components/Permission.js +10 -0
- package/es/components/common.less +63 -0
- package/es/hooks/useDtl/index.d.ts +2 -2
- package/es/hooks/useDtl/index.js +685 -950
- package/es/hooks/usePermission/index.js +0 -9
- package/es/hooks/useSingle/index.d.ts +3 -3
- package/es/hooks/useSingle/index.js +431 -603
- package/es/http/index.js +116 -154
- package/es/index.d.ts +4 -2
- package/es/index.js +2 -2
- package/es/service/BaseService.js +121 -195
- package/es/utils/index.d.ts +9 -22
- package/es/utils/index.js +63 -181
- package/lib/components/404.js +1 -6
- package/lib/components/AreaCascader.js +37 -63
- package/lib/components/AreaCascaderPanel.js +57 -105
- package/lib/components/DescritionCard.js +16 -33
- package/lib/components/DtlLayout.js +27 -49
- package/lib/components/IconSelector.js +29 -64
- package/lib/components/ImageSelector.js +91 -162
- package/lib/components/InputMultiLine.js +35 -61
- package/lib/components/InputTable.js +120 -185
- package/lib/components/Loading.js +4 -16
- package/lib/components/Permission.d.ts +6 -0
- package/lib/components/Permission.js +18 -0
- package/lib/components/common.less +63 -0
- package/lib/hooks/useDtl/index.d.ts +2 -2
- package/lib/hooks/useDtl/index.js +686 -966
- package/lib/hooks/usePermission/index.js +0 -12
- package/lib/hooks/useSingle/index.d.ts +3 -3
- package/lib/hooks/useSingle/index.js +432 -618
- package/lib/http/index.js +114 -163
- package/lib/index.d.ts +4 -2
- package/lib/index.js +9 -21
- package/lib/service/BaseService.js +121 -201
- package/lib/utils/index.d.ts +9 -22
- package/lib/utils/index.js +85 -290
- package/package.json +2 -2
package/es/http/index.js
CHANGED
|
@@ -1,66 +1,53 @@
|
|
|
1
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
1
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import { extend } from 'umi-request';
|
|
4
|
-
import { getCache, getUrlQuery, setUrlQuery, getCookie, getResourceProps, showError, httpError, toGatewayUrl, reLogin, showLoading, exitLoading } from '../utils';
|
|
5
|
-
|
|
4
|
+
import { getCache, getUrlQuery, setUrlQuery, getCookie, getResourceProps, showError, httpError, toGatewayUrl, reLogin, showLoading, exitLoading } from '../utils';
|
|
5
|
+
//默认超时时间为1分钟
|
|
6
6
|
var request = extend({
|
|
7
7
|
timeout: 60000
|
|
8
8
|
});
|
|
9
9
|
var httpStatus = {
|
|
10
|
-
404: '
|
|
11
|
-
429: '
|
|
12
|
-
502: '
|
|
13
|
-
503: '
|
|
14
|
-
504: '
|
|
10
|
+
404: '请求的服务不存在',
|
|
11
|
+
429: '请求的服务繁忙',
|
|
12
|
+
502: '请求的服务网关出错',
|
|
13
|
+
503: '请求的服务器异常',
|
|
14
|
+
504: '请求服务超时'
|
|
15
15
|
};
|
|
16
16
|
/** 请求拦截器,统一添加token */
|
|
17
|
-
|
|
18
17
|
request.interceptors.request.use(function (url, options) {
|
|
19
18
|
var token = getCookie("token");
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
options.headers = options.headers || {};
|
|
20
|
+
// 处理 token
|
|
23
21
|
if (token && url.indexOf('noToken=1') === -1) {
|
|
24
|
-
options.headers[
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
options.headers['token'] = token;
|
|
23
|
+
}
|
|
24
|
+
// 处理门店
|
|
28
25
|
var shopNo = getCache('shopNo', true) || getCache('shopNo');
|
|
29
|
-
|
|
30
26
|
if (shopNo) {
|
|
31
27
|
options.headers["shopNo"] = shopNo;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
// 处理门店
|
|
35
30
|
var shopCode = getCache('shopCode', true) || getCache('shopCode');
|
|
36
|
-
|
|
37
31
|
if (shopCode) {
|
|
38
32
|
options.headers["shopCode"] = shopCode;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
}
|
|
34
|
+
// 处理仓库
|
|
42
35
|
var storeNo = getCache('storeNo', true) || getCache('storeNo');
|
|
43
|
-
|
|
44
36
|
if (storeNo) {
|
|
45
37
|
options.headers["storeNo"] = storeNo;
|
|
46
38
|
}
|
|
47
|
-
|
|
48
39
|
var tag = getCookie('x-asm-prefer-tag');
|
|
49
|
-
|
|
50
40
|
if (tag) {
|
|
51
41
|
options.headers['x-asm-prefer-tag'] = tag;
|
|
52
42
|
}
|
|
53
|
-
|
|
54
43
|
url = url.replace('&noToken=1', '').replace('noToken=1', '');
|
|
55
44
|
var param = {
|
|
56
45
|
resCode: getUrlQuery('resCode') || getUrlQuery('resourceId') || getResourceProps('resourceId'),
|
|
57
46
|
_t1: Date.now()
|
|
58
47
|
};
|
|
59
|
-
|
|
60
48
|
if (!param.resCode) {
|
|
61
49
|
delete param.resCode;
|
|
62
50
|
}
|
|
63
|
-
|
|
64
51
|
url = setUrlQuery(url, param);
|
|
65
52
|
return {
|
|
66
53
|
url: url,
|
|
@@ -68,119 +55,108 @@ request.interceptors.request.use(function (url, options) {
|
|
|
68
55
|
};
|
|
69
56
|
});
|
|
70
57
|
/** 请求返回拦截器,统一处理业务异常 */
|
|
71
|
-
|
|
72
58
|
request.interceptors.response.use( /*#__PURE__*/function () {
|
|
73
59
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(response, options) {
|
|
74
|
-
var noMsg, _data$flag, _data$flag2, _data$flag3, _data$flag4, data, retCode, retMsg, requestId, faultCode, _data$flag5, _data$flag6, _data$flag7, _data$flag8, _data, _retCode, _retMsg, status, _requestId, _faultCode;
|
|
75
|
-
|
|
60
|
+
var noMsg, _data$flag, _data$flag2, _data$flag3, _data$flag4, data, retCode, retMsg, requestId, faultCode, text, _text, _data$flag5, _data$flag6, _data$flag7, _data$flag8, _data, _retCode, _retMsg, status, _requestId, _faultCode;
|
|
76
61
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
77
|
-
while (1) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
showError(retMsg + options.url);
|
|
62
|
+
while (1) switch (_context.prev = _context.next) {
|
|
63
|
+
case 0:
|
|
64
|
+
noMsg = getUrlQuery('noMsg', options.url); // http 状态码错误
|
|
65
|
+
if (!(response.status < 200 || response.status >= 300)) {
|
|
66
|
+
_context.next = 20;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
_context.prev = 2;
|
|
70
|
+
_context.next = 5;
|
|
71
|
+
return response.clone().json();
|
|
72
|
+
case 5:
|
|
73
|
+
data = _context.sent;
|
|
74
|
+
retCode = (_data$flag = data.flag) === null || _data$flag === void 0 ? void 0 : _data$flag.retCode;
|
|
75
|
+
retMsg = (_data$flag2 = data.flag) === null || _data$flag2 === void 0 ? void 0 : _data$flag2.retMsg;
|
|
76
|
+
requestId = (_data$flag3 = data.flag) === null || _data$flag3 === void 0 ? void 0 : _data$flag3.requestId;
|
|
77
|
+
faultCode = (_data$flag4 = data.flag) === null || _data$flag4 === void 0 ? void 0 : _data$flag4.faultCode;
|
|
78
|
+
if (retCode === 'timeout' || retCode === '4011') {
|
|
79
|
+
reLogin();
|
|
80
|
+
} else if (noMsg !== '1') {
|
|
81
|
+
if (faultCode) {
|
|
82
|
+
httpError(retMsg, retCode, faultCode, options.url);
|
|
83
|
+
} else {
|
|
84
|
+
text = httpStatus[response.status];
|
|
85
|
+
if (response.status === 503 && response.statusText === 'no healthy upstream') {
|
|
86
|
+
text = '请求的服务未启动';
|
|
87
|
+
} else if (response.status === 503 && response.statusText === 'reached concurrency limit') {
|
|
88
|
+
text = '请求的服务被限流';
|
|
105
89
|
}
|
|
90
|
+
showError(text || retMsg);
|
|
106
91
|
}
|
|
107
|
-
|
|
108
|
-
|
|
92
|
+
}
|
|
93
|
+
_context.next = 18;
|
|
94
|
+
break;
|
|
95
|
+
case 13:
|
|
96
|
+
_context.prev = 13;
|
|
97
|
+
_context.t0 = _context["catch"](2);
|
|
98
|
+
_text = httpStatus[response.status];
|
|
99
|
+
if (response.status === 503 && response.statusText === 'no healthy upstream') {
|
|
100
|
+
_text = '请求的服务未启动';
|
|
101
|
+
} else if (response.status === 503 && response.statusText === 'reached concurrency limit') {
|
|
102
|
+
_text = '请求的服务被限流';
|
|
103
|
+
}
|
|
104
|
+
showError(_text || _context.t0.message || response.statusText);
|
|
105
|
+
case 18:
|
|
106
|
+
_context.next = 30;
|
|
107
|
+
break;
|
|
108
|
+
case 20:
|
|
109
|
+
if (!(noMsg !== '1')) {
|
|
110
|
+
_context.next = 30;
|
|
109
111
|
break;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
_context.next = 21;
|
|
127
|
-
return response.clone().json();
|
|
128
|
-
|
|
129
|
-
case 21:
|
|
130
|
-
_data = _context.sent;
|
|
131
|
-
_retCode = (_data === null || _data === void 0 ? void 0 : (_data$flag5 = _data.flag) === null || _data$flag5 === void 0 ? void 0 : _data$flag5.retCode) || '0';
|
|
132
|
-
_retMsg = ((_data$flag6 = _data.flag) === null || _data$flag6 === void 0 ? void 0 : _data$flag6.retMsg) || '访问接口出错';
|
|
133
|
-
status = (getUrlQuery('apiStatus') || '0').split(',');
|
|
134
|
-
_requestId = (_data$flag7 = _data.flag) === null || _data$flag7 === void 0 ? void 0 : _data$flag7.requestId;
|
|
135
|
-
_faultCode = (_data$flag8 = _data.flag) === null || _data$flag8 === void 0 ? void 0 : _data$flag8.faultCode;
|
|
136
|
-
|
|
137
|
-
if (_retCode && !status.includes(_retCode)) {
|
|
138
|
-
if (_retCode === 'timeout' || _retCode === '4011') {
|
|
139
|
-
reLogin();
|
|
112
|
+
}
|
|
113
|
+
_context.next = 23;
|
|
114
|
+
return response.clone().json();
|
|
115
|
+
case 23:
|
|
116
|
+
_data = _context.sent;
|
|
117
|
+
_retCode = (_data === null || _data === void 0 ? void 0 : (_data$flag5 = _data.flag) === null || _data$flag5 === void 0 ? void 0 : _data$flag5.retCode) || '0';
|
|
118
|
+
_retMsg = ((_data$flag6 = _data.flag) === null || _data$flag6 === void 0 ? void 0 : _data$flag6.retMsg) || '请求的服务出错';
|
|
119
|
+
status = (getUrlQuery('apiStatus') || '0').split(',');
|
|
120
|
+
_requestId = (_data$flag7 = _data.flag) === null || _data$flag7 === void 0 ? void 0 : _data$flag7.requestId;
|
|
121
|
+
_faultCode = (_data$flag8 = _data.flag) === null || _data$flag8 === void 0 ? void 0 : _data$flag8.faultCode;
|
|
122
|
+
if (_retCode && !status.includes(_retCode)) {
|
|
123
|
+
if (_retCode === 'timeout' || _retCode === '4011') {
|
|
124
|
+
reLogin();
|
|
125
|
+
} else {
|
|
126
|
+
if (_faultCode) {
|
|
127
|
+
httpError(_retMsg, _retCode, _faultCode, options.url);
|
|
140
128
|
} else {
|
|
141
|
-
|
|
142
|
-
httpError(_retMsg, _retCode, _faultCode, options.url);
|
|
143
|
-
} else {
|
|
144
|
-
showError(_retMsg);
|
|
145
|
-
}
|
|
129
|
+
showError(_retMsg);
|
|
146
130
|
}
|
|
147
131
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
return _context.stop();
|
|
155
|
-
}
|
|
132
|
+
}
|
|
133
|
+
case 30:
|
|
134
|
+
return _context.abrupt("return", response);
|
|
135
|
+
case 31:
|
|
136
|
+
case "end":
|
|
137
|
+
return _context.stop();
|
|
156
138
|
}
|
|
157
139
|
}, _callee, null, [[2, 13]]);
|
|
158
140
|
}));
|
|
159
|
-
|
|
160
141
|
return function (_x, _x2) {
|
|
161
142
|
return _ref.apply(this, arguments);
|
|
162
143
|
};
|
|
163
144
|
}());
|
|
164
|
-
|
|
165
145
|
function ajax(url) {
|
|
166
146
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
167
147
|
var type = arguments.length > 2 ? arguments[2] : undefined;
|
|
168
148
|
var needGateWay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
169
149
|
var isJson = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
170
|
-
|
|
171
150
|
if (needGateWay) {
|
|
172
151
|
url = toGatewayUrl(url);
|
|
173
152
|
}
|
|
174
|
-
|
|
175
153
|
var loadText = getUrlQuery('_loading', url);
|
|
176
|
-
|
|
177
154
|
if (loadText) {
|
|
178
155
|
showLoading(loadText);
|
|
179
156
|
url = setUrlQuery(url, {
|
|
180
157
|
_loading: ''
|
|
181
158
|
}).replace('&_loading=', '').replace('_loading=', '');
|
|
182
159
|
}
|
|
183
|
-
|
|
184
160
|
if (type === 'get') {
|
|
185
161
|
return request.get(url, {
|
|
186
162
|
params: params
|
|
@@ -215,8 +191,6 @@ function ajax(url) {
|
|
|
215
191
|
* @param needGateWay 是否需要网关 默认为true
|
|
216
192
|
* @returns Promise<ApiResponse>
|
|
217
193
|
*/
|
|
218
|
-
|
|
219
|
-
|
|
220
194
|
export function httpGet(url) {
|
|
221
195
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
222
196
|
var needGateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -230,7 +204,6 @@ export function httpGet(url) {
|
|
|
230
204
|
* @param needGateWay 是否需要网关 默认为true
|
|
231
205
|
* @returns Promise<ApiResponse>
|
|
232
206
|
*/
|
|
233
|
-
|
|
234
207
|
export function httpPost(url) {
|
|
235
208
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
236
209
|
var isJson = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -244,7 +217,6 @@ export function httpPost(url) {
|
|
|
244
217
|
* @param needGateWay 是否需要网关 默认为true
|
|
245
218
|
* @returns Promise<ApiResponse>
|
|
246
219
|
*/
|
|
247
|
-
|
|
248
220
|
export function httpPut(url) {
|
|
249
221
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
250
222
|
var needGateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -257,7 +229,6 @@ export function httpPut(url) {
|
|
|
257
229
|
* @param needGateWay 是否需要网关 默认为true
|
|
258
230
|
* @returns Promise<ApiResponse>
|
|
259
231
|
*/
|
|
260
|
-
|
|
261
232
|
export function httpDelete(url, data) {
|
|
262
233
|
var needGateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
263
234
|
return ajax(url, data, 'delete', needGateWay);
|
|
@@ -268,7 +239,6 @@ export function httpDelete(url, data) {
|
|
|
268
239
|
* @param needGateWay 是否需要网关 默认为true
|
|
269
240
|
* @returns Promise<Record<string,string>>
|
|
270
241
|
*/
|
|
271
|
-
|
|
272
242
|
export function getDict(dictCode) {
|
|
273
243
|
var showValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
274
244
|
var needGateWay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
@@ -288,52 +258,44 @@ export function getDict(dictCode) {
|
|
|
288
258
|
* @param needGateWay 是否需要网关 默认为true
|
|
289
259
|
* @returns
|
|
290
260
|
*/
|
|
291
|
-
|
|
292
261
|
export function fetchOptions(_x3, _x4, _x5, _x6) {
|
|
293
262
|
return _fetchOptions.apply(this, arguments);
|
|
294
263
|
}
|
|
295
|
-
|
|
296
264
|
function _fetchOptions() {
|
|
297
265
|
_fetchOptions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url, param, valueField, labelField) {
|
|
298
266
|
var showValue,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
267
|
+
needGateWay,
|
|
268
|
+
_yield$httpGet,
|
|
269
|
+
_yield$httpGet$rows,
|
|
270
|
+
rows,
|
|
271
|
+
data,
|
|
272
|
+
_args2 = arguments;
|
|
306
273
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
307
|
-
while (1) {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
case 9:
|
|
330
|
-
case "end":
|
|
331
|
-
return _context2.stop();
|
|
332
|
-
}
|
|
274
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
275
|
+
case 0:
|
|
276
|
+
showValue = _args2.length > 4 && _args2[4] !== undefined ? _args2[4] : true;
|
|
277
|
+
needGateWay = _args2.length > 5 && _args2[5] !== undefined ? _args2[5] : true;
|
|
278
|
+
_context2.next = 4;
|
|
279
|
+
return httpGet(url, param, needGateWay);
|
|
280
|
+
case 4:
|
|
281
|
+
_yield$httpGet = _context2.sent;
|
|
282
|
+
_yield$httpGet$rows = _yield$httpGet.rows;
|
|
283
|
+
rows = _yield$httpGet$rows === void 0 ? [] : _yield$httpGet$rows;
|
|
284
|
+
data = (rows || []).map(function (o) {
|
|
285
|
+
return {
|
|
286
|
+
value: o[valueField],
|
|
287
|
+
text: o[labelField],
|
|
288
|
+
label: (showValue ? o[valueField] + '→' : '') + o[labelField],
|
|
289
|
+
status: o.status
|
|
290
|
+
};
|
|
291
|
+
});
|
|
292
|
+
return _context2.abrupt("return", data);
|
|
293
|
+
case 9:
|
|
294
|
+
case "end":
|
|
295
|
+
return _context2.stop();
|
|
333
296
|
}
|
|
334
297
|
}, _callee2);
|
|
335
298
|
}));
|
|
336
299
|
return _fetchOptions.apply(this, arguments);
|
|
337
300
|
}
|
|
338
|
-
|
|
339
301
|
export default request;
|
package/es/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import InputMultiLine from './components/InputMultiLine';
|
|
|
8
8
|
import AreaCascader from './components/AreaCascader';
|
|
9
9
|
import AreaCascaderPanel from './components/AreaCascaderPanel';
|
|
10
10
|
import DescritionCard from './components/DescritionCard';
|
|
11
|
+
import Permission from './components/Permission';
|
|
11
12
|
import BaseService from './service/BaseService';
|
|
12
13
|
import request, { httpGet, httpPut, httpPost, httpDelete, getDict, fetchOptions } from './http';
|
|
13
14
|
import * as utils from './utils';
|
|
@@ -19,5 +20,6 @@ import usePermission from './hooks/usePermission';
|
|
|
19
20
|
import type { ApiResponse, TableToolbar, BaseApiType, MethodType } from './typing';
|
|
20
21
|
import type { DtlLyaoutProps } from './components/DtlLayout';
|
|
21
22
|
import type { DescritionCardProps } from './components/DescritionCard';
|
|
22
|
-
|
|
23
|
-
export {
|
|
23
|
+
import type { PermissionProps } from './components/Permission';
|
|
24
|
+
export type { ApiResponse, TableToolbar, BaseApiType, MethodType, DtlLyaoutProps, DescritionCardProps, PermissionProps };
|
|
25
|
+
export { DtlLayout, InputTable, Page404, Loading, IconSelector, ImageSelector, InputMultiLine, AreaCascader, AreaCascaderPanel, DescritionCard, Permission, BaseService, request, httpDelete, httpGet, httpPost, httpPut, getDict, fetchOptions, utils, useSingle, useDtl, usePermission };
|
package/es/index.js
CHANGED
|
@@ -8,12 +8,12 @@ import InputMultiLine from './components/InputMultiLine';
|
|
|
8
8
|
import AreaCascader from './components/AreaCascader';
|
|
9
9
|
import AreaCascaderPanel from './components/AreaCascaderPanel';
|
|
10
10
|
import DescritionCard from './components/DescritionCard';
|
|
11
|
+
import Permission from './components/Permission';
|
|
11
12
|
import BaseService from './service/BaseService';
|
|
12
13
|
import request, { httpGet, httpPut, httpPost, httpDelete, getDict, fetchOptions } from './http';
|
|
13
14
|
import * as utils from './utils';
|
|
14
15
|
/** Hooks */
|
|
15
|
-
|
|
16
16
|
import useSingle from './hooks/useSingle';
|
|
17
17
|
import useDtl from './hooks/useDtl';
|
|
18
18
|
import usePermission from './hooks/usePermission';
|
|
19
|
-
export { DtlLayout, InputTable, Page404, Loading, IconSelector, ImageSelector, InputMultiLine, AreaCascader, AreaCascaderPanel, DescritionCard, BaseService, request, httpDelete, httpGet, httpPost, httpPut, getDict, fetchOptions, utils, useSingle, useDtl, usePermission };
|
|
19
|
+
export { DtlLayout, InputTable, Page404, Loading, IconSelector, ImageSelector, InputMultiLine, AreaCascader, AreaCascaderPanel, DescritionCard, Permission, BaseService, request, httpDelete, httpGet, httpPost, httpPut, getDict, fetchOptions, utils, useSingle, useDtl, usePermission };
|