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