@xfe-repo/web-components 1.5.2 → 1.5.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/index.css +4 -3
- package/dist/index.d.mts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +35 -64
- package/dist/index.mjs +36 -65
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -582,9 +582,6 @@
|
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
/* src/EffectLabelSelect/index.module.less */
|
|
585
|
-
.index_module_input8 {
|
|
586
|
-
width: 100%;
|
|
587
|
-
}
|
|
588
585
|
.index_module_select_wrap {
|
|
589
586
|
display: flex;
|
|
590
587
|
}
|
|
@@ -594,6 +591,10 @@
|
|
|
594
591
|
.index_module_select_wrap .index_module_select_label .ant-select-selector {
|
|
595
592
|
border-right: none !important;
|
|
596
593
|
}
|
|
594
|
+
.index_module_value_select {
|
|
595
|
+
width: calc(100% - 85px) !important;
|
|
596
|
+
min-width: 0;
|
|
597
|
+
}
|
|
597
598
|
.index_module_select7 {
|
|
598
599
|
width: auto;
|
|
599
600
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -449,21 +449,21 @@ type OutListBusDto = {
|
|
|
449
449
|
declare const saasApiService: IApiService;
|
|
450
450
|
interface IApiService {
|
|
451
451
|
categoryListToTree: Request<InQueryCategoryListToTree, OutListToTreeCategoryDto>;
|
|
452
|
-
brandComboBox
|
|
453
|
-
seriesComboBox
|
|
454
|
-
seriesList
|
|
455
|
-
skuFindOne
|
|
456
|
-
skuListV2
|
|
457
|
-
spuList
|
|
458
|
-
productImageSpuSkuList
|
|
459
|
-
uploadUploadFile
|
|
460
|
-
uploadRemoteCreate
|
|
461
|
-
commonAddressList
|
|
462
|
-
storeComboBox
|
|
463
|
-
reservoirList
|
|
464
|
-
shelveList
|
|
465
|
-
merchantList
|
|
466
|
-
businessList
|
|
452
|
+
brandComboBox: Request<InQueryBrandComboBox, OutComboBoxBrandDto>;
|
|
453
|
+
seriesComboBox: Request<InQuerySeriesComboBox, OutComboBoxSeriesDto>;
|
|
454
|
+
seriesList: Request<InQuerySeriesList, OutListSeriesDto>;
|
|
455
|
+
skuFindOne: Request<InPathSkuFindOne, OutFindOneSkuDto>;
|
|
456
|
+
skuListV2: Request<InQuerySkuListV2, OutListSkuV2Dto>;
|
|
457
|
+
spuList: Request<InQuerySpuList, OutListSpuDto>;
|
|
458
|
+
productImageSpuSkuList: Request<InQueryProductImageSpuSkuList, OutListProductImageSpuSkuDto>;
|
|
459
|
+
uploadUploadFile: Request<InUploadFileDto, OutUploadFileDto>;
|
|
460
|
+
uploadRemoteCreate: Request<InRemoteCreateDto, OutRemoteCreateDto>;
|
|
461
|
+
commonAddressList: Request<InPathCommonAddressList, OutAddressListDto>;
|
|
462
|
+
storeComboBox: Request<InPathStoreComboBox & InQueryStoreComboBox, OutComboBoxWarehouseStoreDto>;
|
|
463
|
+
reservoirList: Request<InQueryReservoirList, OutListReservoirDto>;
|
|
464
|
+
shelveList: Request<InQueryShelveList, OutShelveListV2Dto>;
|
|
465
|
+
merchantList: Request<InMerchantListBusDto, OutMerchantListBusDto>;
|
|
466
|
+
businessList: Request<InQueryBusinessList, OutListBusDto>;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
declare const ConfigContext: React$1.Context<IConfigContext | null>;
|
package/dist/index.d.ts
CHANGED
|
@@ -449,21 +449,21 @@ type OutListBusDto = {
|
|
|
449
449
|
declare const saasApiService: IApiService;
|
|
450
450
|
interface IApiService {
|
|
451
451
|
categoryListToTree: Request<InQueryCategoryListToTree, OutListToTreeCategoryDto>;
|
|
452
|
-
brandComboBox
|
|
453
|
-
seriesComboBox
|
|
454
|
-
seriesList
|
|
455
|
-
skuFindOne
|
|
456
|
-
skuListV2
|
|
457
|
-
spuList
|
|
458
|
-
productImageSpuSkuList
|
|
459
|
-
uploadUploadFile
|
|
460
|
-
uploadRemoteCreate
|
|
461
|
-
commonAddressList
|
|
462
|
-
storeComboBox
|
|
463
|
-
reservoirList
|
|
464
|
-
shelveList
|
|
465
|
-
merchantList
|
|
466
|
-
businessList
|
|
452
|
+
brandComboBox: Request<InQueryBrandComboBox, OutComboBoxBrandDto>;
|
|
453
|
+
seriesComboBox: Request<InQuerySeriesComboBox, OutComboBoxSeriesDto>;
|
|
454
|
+
seriesList: Request<InQuerySeriesList, OutListSeriesDto>;
|
|
455
|
+
skuFindOne: Request<InPathSkuFindOne, OutFindOneSkuDto>;
|
|
456
|
+
skuListV2: Request<InQuerySkuListV2, OutListSkuV2Dto>;
|
|
457
|
+
spuList: Request<InQuerySpuList, OutListSpuDto>;
|
|
458
|
+
productImageSpuSkuList: Request<InQueryProductImageSpuSkuList, OutListProductImageSpuSkuDto>;
|
|
459
|
+
uploadUploadFile: Request<InUploadFileDto, OutUploadFileDto>;
|
|
460
|
+
uploadRemoteCreate: Request<InRemoteCreateDto, OutRemoteCreateDto>;
|
|
461
|
+
commonAddressList: Request<InPathCommonAddressList, OutAddressListDto>;
|
|
462
|
+
storeComboBox: Request<InPathStoreComboBox & InQueryStoreComboBox, OutComboBoxWarehouseStoreDto>;
|
|
463
|
+
reservoirList: Request<InQueryReservoirList, OutListReservoirDto>;
|
|
464
|
+
shelveList: Request<InQueryShelveList, OutShelveListV2Dto>;
|
|
465
|
+
merchantList: Request<InMerchantListBusDto, OutMerchantListBusDto>;
|
|
466
|
+
businessList: Request<InQueryBusinessList, OutListBusDto>;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
declare const ConfigContext: React$1.Context<IConfigContext | null>;
|
package/dist/index.js
CHANGED
|
@@ -1962,13 +1962,6 @@ var useRequestConfig = function useRequestConfig() {
|
|
|
1962
1962
|
apiService
|
|
1963
1963
|
]);
|
|
1964
1964
|
};
|
|
1965
|
-
var getApiServiceMethod = function getApiServiceMethod(apiService, key) {
|
|
1966
|
-
var method = apiService[key];
|
|
1967
|
-
if (!method) {
|
|
1968
|
-
throw new Error("[xfe-repo/web-components] 当前 ConfigProvider 未提供 apiService.".concat(String(key), " 实现,请补充对应 API 服务。"));
|
|
1969
|
-
}
|
|
1970
|
-
return method;
|
|
1971
|
-
};
|
|
1972
1965
|
// src/RichTextEditor/MenuBar.tsx
|
|
1973
1966
|
var import_react15 = require("react");
|
|
1974
1967
|
var import_react16 = require("@tiptap/react");
|
|
@@ -2391,7 +2384,6 @@ var RichTextEditor = (0, import_react17.memo)(function(props) {
|
|
|
2391
2384
|
var htmlContent = defaultValue || value || "";
|
|
2392
2385
|
var uploadingRef = (0, import_react17.useRef)(false);
|
|
2393
2386
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
2394
|
-
var uploadUploadFile2 = getApiServiceMethod(apiService, "uploadUploadFile");
|
|
2395
2387
|
var handleImageUpload = (0, import_react17.useCallback)(function(file) {
|
|
2396
2388
|
return _async_to_generator(function() {
|
|
2397
2389
|
var validTypes, formData, response;
|
|
@@ -2425,7 +2417,7 @@ var RichTextEditor = (0, import_react17.memo)(function(props) {
|
|
|
2425
2417
|
formData.append("file", file);
|
|
2426
2418
|
return [
|
|
2427
2419
|
4,
|
|
2428
|
-
|
|
2420
|
+
apiService.uploadUploadFile(formData, config)
|
|
2429
2421
|
];
|
|
2430
2422
|
case 2:
|
|
2431
2423
|
response = _state.sent();
|
|
@@ -2452,8 +2444,7 @@ var RichTextEditor = (0, import_react17.memo)(function(props) {
|
|
|
2452
2444
|
});
|
|
2453
2445
|
})();
|
|
2454
2446
|
}, [
|
|
2455
|
-
config
|
|
2456
|
-
uploadUploadFile2
|
|
2447
|
+
config
|
|
2457
2448
|
]);
|
|
2458
2449
|
var extensions = (0, import_react17.useMemo)(function() {
|
|
2459
2450
|
var baseExtensions = [
|
|
@@ -3021,7 +3012,7 @@ var import_tools2 = require("@xfe-repo/web-utils/tools");
|
|
|
3021
3012
|
var import_react23 = require("react");
|
|
3022
3013
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3023
3014
|
var ModalGroup = (0, import_react23.memo)(function(_0) {
|
|
3024
|
-
var images = _0.images, _0_resizeWidth = _0.resizeWidth, resizeWidth = _0_resizeWidth === void 0 ? 750 : _0_resizeWidth, _0_width = _0.width, width = _0_width === void 0 ? 100 : _0_width, tmp = _0.fallback, fallback2 = tmp === void 0 ? "https://imgs.
|
|
3015
|
+
var images = _0.images, _0_resizeWidth = _0.resizeWidth, resizeWidth = _0_resizeWidth === void 0 ? 750 : _0_resizeWidth, _0_width = _0.width, width = _0_width === void 0 ? 100 : _0_width, tmp = _0.fallback, fallback2 = tmp === void 0 ? "https://imgs.eshetang.com/product/default-product-1608019533274.png" : tmp, props = _object_without_properties(_0, [
|
|
3025
3016
|
"images",
|
|
3026
3017
|
"resizeWidth",
|
|
3027
3018
|
"width",
|
|
@@ -3069,7 +3060,7 @@ var OSSImage_ModalGroup_default = ModalGroup;
|
|
|
3069
3060
|
// src/OSSImage/index.tsx
|
|
3070
3061
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3071
3062
|
var PreviewGroup = import_antd16.Image.PreviewGroup;
|
|
3072
|
-
var fallback = "https://imgs.
|
|
3063
|
+
var fallback = "https://imgs.eshetang.com/product/default-product-1608019533274.png";
|
|
3073
3064
|
var _OSSImage = (0, import_react24.memo)(function(props) {
|
|
3074
3065
|
var _props_src = props.src, src = _props_src === void 0 ? "" : _props_src, _props_resizeWidth = props.resizeWidth, resizeWidth = _props_resizeWidth === void 0 ? 750 : _props_resizeWidth, preview = props.preview, clearDefault = props.clearDefault, showOriginPreview = props.showOriginPreview, params = _object_without_properties(props, [
|
|
3075
3066
|
"src",
|
|
@@ -3447,7 +3438,6 @@ var _EffectFileUpload = (0, import_react30.memo)((0, import_react30.forwardRef)(
|
|
|
3447
3438
|
onFileChange
|
|
3448
3439
|
]);
|
|
3449
3440
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
3450
|
-
var uploadUploadFile2 = getApiServiceMethod(apiService, "uploadUploadFile");
|
|
3451
3441
|
var uploadFetch = (0, import_react30.useCallback)(function(file) {
|
|
3452
3442
|
return _async_to_generator(function() {
|
|
3453
3443
|
var formData, _ref, data, code;
|
|
@@ -3463,7 +3453,7 @@ var _EffectFileUpload = (0, import_react30.memo)((0, import_react30.forwardRef)(
|
|
|
3463
3453
|
});
|
|
3464
3454
|
return [
|
|
3465
3455
|
4,
|
|
3466
|
-
|
|
3456
|
+
apiService.uploadUploadFile(formData, config)
|
|
3467
3457
|
];
|
|
3468
3458
|
case 1:
|
|
3469
3459
|
_ref = _state.sent(), data = _ref.data, code = _ref.code;
|
|
@@ -3480,8 +3470,7 @@ var _EffectFileUpload = (0, import_react30.memo)((0, import_react30.forwardRef)(
|
|
|
3480
3470
|
})();
|
|
3481
3471
|
}, [
|
|
3482
3472
|
config,
|
|
3483
|
-
extFormData
|
|
3484
|
-
uploadUploadFile2
|
|
3473
|
+
extFormData
|
|
3485
3474
|
]);
|
|
3486
3475
|
var uploadTaskFn = (0, import_react30.useCallback)(function(newUploadFiles) {
|
|
3487
3476
|
return _async_to_generator(function() {
|
|
@@ -3858,14 +3847,13 @@ var RemoteUpload = (0, import_react33.memo)(function(props) {
|
|
|
3858
3847
|
]);
|
|
3859
3848
|
var handleCreateQRCode = (0, import_react33.useCallback)(function(config) {
|
|
3860
3849
|
return _async_to_generator(function() {
|
|
3861
|
-
var
|
|
3850
|
+
var data;
|
|
3862
3851
|
return _ts_generator(this, function(_state) {
|
|
3863
3852
|
switch(_state.label){
|
|
3864
3853
|
case 0:
|
|
3865
|
-
uploadRemoteCreate2 = getApiServiceMethod(apiService, "uploadRemoteCreate");
|
|
3866
3854
|
return [
|
|
3867
3855
|
4,
|
|
3868
|
-
|
|
3856
|
+
apiService.uploadRemoteCreate({
|
|
3869
3857
|
maxNum: max
|
|
3870
3858
|
}, config)
|
|
3871
3859
|
];
|
|
@@ -4391,7 +4379,6 @@ var import_antd23 = require("antd");
|
|
|
4391
4379
|
var import_immutable2 = __toESM(require("swr/immutable"));
|
|
4392
4380
|
function useBrandOptions(params) {
|
|
4393
4381
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
4394
|
-
var brandComboBox2 = getApiServiceMethod(apiService, "brandComboBox");
|
|
4395
4382
|
var _ref = (0, import_immutable2.default)([
|
|
4396
4383
|
"/product/brand/combo-box",
|
|
4397
4384
|
params
|
|
@@ -4403,7 +4390,7 @@ function useBrandOptions(params) {
|
|
|
4403
4390
|
case 0:
|
|
4404
4391
|
return [
|
|
4405
4392
|
4,
|
|
4406
|
-
|
|
4393
|
+
apiService.brandComboBox(_object_spread({
|
|
4407
4394
|
page: 1,
|
|
4408
4395
|
pageSize: 500
|
|
4409
4396
|
}, params), config)
|
|
@@ -4570,7 +4557,6 @@ var EffectSeriesSelectV2 = function EffectSeriesSelectV2(_0) {
|
|
|
4570
4557
|
"placeholder"
|
|
4571
4558
|
]);
|
|
4572
4559
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
4573
|
-
var seriesList2 = getApiServiceMethod(apiService, "seriesList");
|
|
4574
4560
|
var _ref = _sliced_to_array((0, import_react37.useState)(true), 2), hasMore = _ref[0], setHasMore = _ref[1];
|
|
4575
4561
|
var _ref1 = _sliced_to_array((0, import_react37.useState)(false), 2), loading = _ref1[0], setLoading = _ref1[1];
|
|
4576
4562
|
var _ref2 = _sliced_to_array((0, import_react37.useState)([]), 2), options = _ref2[0], setOptions = _ref2[1];
|
|
@@ -4601,7 +4587,7 @@ var EffectSeriesSelectV2 = function EffectSeriesSelectV2(_0) {
|
|
|
4601
4587
|
setLoading(true);
|
|
4602
4588
|
return [
|
|
4603
4589
|
4,
|
|
4604
|
-
|
|
4590
|
+
apiService.seriesList({
|
|
4605
4591
|
brandId: brandId,
|
|
4606
4592
|
categoryId: categoryId,
|
|
4607
4593
|
page: currentPage,
|
|
@@ -4654,8 +4640,7 @@ var EffectSeriesSelectV2 = function EffectSeriesSelectV2(_0) {
|
|
|
4654
4640
|
brandId,
|
|
4655
4641
|
categoryId,
|
|
4656
4642
|
config,
|
|
4657
|
-
pageSize
|
|
4658
|
-
seriesList2
|
|
4643
|
+
pageSize
|
|
4659
4644
|
]);
|
|
4660
4645
|
var handleSearch = (0, import_react37.useMemo)(function() {
|
|
4661
4646
|
return (0, import_tools5.debounce)(300, function(nextSearchValue) {
|
|
@@ -4769,7 +4754,6 @@ var import_icons10 = require("@ant-design/icons");
|
|
|
4769
4754
|
var import_immutable3 = __toESM(require("swr/immutable"));
|
|
4770
4755
|
function useSkuOptions(params) {
|
|
4771
4756
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
4772
|
-
var skuListV22 = getApiServiceMethod(apiService, "skuListV2");
|
|
4773
4757
|
var _ref = (0, import_immutable3.default)([
|
|
4774
4758
|
"/product/sku/v2",
|
|
4775
4759
|
params
|
|
@@ -4781,7 +4765,7 @@ function useSkuOptions(params) {
|
|
|
4781
4765
|
case 0:
|
|
4782
4766
|
return [
|
|
4783
4767
|
4,
|
|
4784
|
-
|
|
4768
|
+
apiService.skuListV2(_object_spread({
|
|
4785
4769
|
page: 1,
|
|
4786
4770
|
pageSize: 12
|
|
4787
4771
|
}, params), config)
|
|
@@ -5277,7 +5261,6 @@ var import_antd28 = require("antd");
|
|
|
5277
5261
|
var import_immutable4 = __toESM(require("swr/immutable"));
|
|
5278
5262
|
function useSeriesOptions(params) {
|
|
5279
5263
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
5280
|
-
var seriesComboBox2 = getApiServiceMethod(apiService, "seriesComboBox");
|
|
5281
5264
|
var _ref = (0, import_immutable4.default)([
|
|
5282
5265
|
"/product/series/combo-box",
|
|
5283
5266
|
params
|
|
@@ -5289,7 +5272,7 @@ function useSeriesOptions(params) {
|
|
|
5289
5272
|
case 0:
|
|
5290
5273
|
return [
|
|
5291
5274
|
4,
|
|
5292
|
-
|
|
5275
|
+
apiService.seriesComboBox(_object_spread({
|
|
5293
5276
|
page: 1,
|
|
5294
5277
|
pageSize: 12
|
|
5295
5278
|
}, params), config)
|
|
@@ -5533,7 +5516,6 @@ var import_antd29 = require("antd");
|
|
|
5533
5516
|
var import_immutable5 = __toESM(require("swr/immutable"));
|
|
5534
5517
|
function useSpuOptions(params) {
|
|
5535
5518
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
5536
|
-
var spuList2 = getApiServiceMethod(apiService, "spuList");
|
|
5537
5519
|
var _ref = (0, import_immutable5.default)([
|
|
5538
5520
|
"/product/spu/list",
|
|
5539
5521
|
params
|
|
@@ -5545,7 +5527,7 @@ function useSpuOptions(params) {
|
|
|
5545
5527
|
case 0:
|
|
5546
5528
|
return [
|
|
5547
5529
|
4,
|
|
5548
|
-
|
|
5530
|
+
apiService.spuList(_object_spread({
|
|
5549
5531
|
page: 1,
|
|
5550
5532
|
pageSize: 12
|
|
5551
5533
|
}, params), config)
|
|
@@ -5790,7 +5772,6 @@ var EffectSkuTable = (0, import_react42.memo)(function(props) {
|
|
|
5790
5772
|
var _curCategoryIds_slice;
|
|
5791
5773
|
var categoryIds = props.categoryIds, brandId = props.brandId, brandName = props.brandName, _props_seriesId = props.seriesId, seriesId = _props_seriesId === void 0 ? 0 : _props_seriesId, seriesName = props.seriesName, spuId = props.spuId, spuName = props.spuName, disabled = props.disabled, value = props.value, _props_showSkuId = props.showSkuId, showSkuId = _props_showSkuId === void 0 ? false : _props_showSkuId, _props_skuType = props.skuType, skuType = _props_skuType === void 0 ? "std" : _props_skuType, onChange = props.onChange;
|
|
5792
5774
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
5793
|
-
var skuFindOne2 = getApiServiceMethod(apiService, "skuFindOne");
|
|
5794
5775
|
var initialCategoryIds = Array.isArray(categoryIds) ? categoryIds : categoryIds ? [
|
|
5795
5776
|
categoryIds
|
|
5796
5777
|
] : void 0;
|
|
@@ -5809,15 +5790,14 @@ var EffectSkuTable = (0, import_react42.memo)(function(props) {
|
|
|
5809
5790
|
return _ts_generator(this, function(_state) {
|
|
5810
5791
|
return [
|
|
5811
5792
|
2,
|
|
5812
|
-
|
|
5793
|
+
apiService.skuFindOne({
|
|
5813
5794
|
id: skuId
|
|
5814
5795
|
}, config)
|
|
5815
5796
|
];
|
|
5816
5797
|
});
|
|
5817
5798
|
})();
|
|
5818
5799
|
}, [
|
|
5819
|
-
config
|
|
5820
|
-
skuFindOne2
|
|
5800
|
+
config
|
|
5821
5801
|
]), 2), state = _ref10[0], searchFetch = _ref10[1];
|
|
5822
5802
|
(0, import_react42.useEffect)(function() {
|
|
5823
5803
|
if (value) void searchFetch(value);
|
|
@@ -6178,7 +6158,6 @@ var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
|
|
|
6178
6158
|
var _ref = _sliced_to_array((0, import_react44.useState)(controlledValue || defaultValue), 2), value = _ref[0], setValue = _ref[1];
|
|
6179
6159
|
var _ref1 = _sliced_to_array((0, import_react44.useState)([]), 2), skuList = _ref1[0], setSkuList = _ref1[1];
|
|
6180
6160
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6181
|
-
var productImageSpuSkuList2 = getApiServiceMethod(apiService, "productImageSpuSkuList");
|
|
6182
6161
|
var getRecognizeList = function getRecognizeList(recognizeImage) {
|
|
6183
6162
|
return _async_to_generator(function() {
|
|
6184
6163
|
var params;
|
|
@@ -6199,7 +6178,7 @@ var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
|
|
|
6199
6178
|
};
|
|
6200
6179
|
return [
|
|
6201
6180
|
4,
|
|
6202
|
-
|
|
6181
|
+
apiService.productImageSpuSkuList(params, config)
|
|
6203
6182
|
];
|
|
6204
6183
|
case 1:
|
|
6205
6184
|
return [
|
|
@@ -6215,7 +6194,6 @@ var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
|
|
|
6215
6194
|
brandId,
|
|
6216
6195
|
controlledValue,
|
|
6217
6196
|
config,
|
|
6218
|
-
productImageSpuSkuList2,
|
|
6219
6197
|
skuType
|
|
6220
6198
|
]), 2), state = _ref2[0], searchFetch = _ref2[1];
|
|
6221
6199
|
(0, import_react44.useEffect)(function() {
|
|
@@ -6386,7 +6364,6 @@ var import_react_use15 = require("react-use");
|
|
|
6386
6364
|
var import_immutable6 = __toESM(require("swr/immutable"));
|
|
6387
6365
|
function useMerchantOptions(params) {
|
|
6388
6366
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6389
|
-
var merchantList = getApiServiceMethod(apiService, "merchantList");
|
|
6390
6367
|
var _ref = (0, import_immutable6.default)([
|
|
6391
6368
|
"merchant/list",
|
|
6392
6369
|
params
|
|
@@ -6406,7 +6383,7 @@ function useMerchantOptions(params) {
|
|
|
6406
6383
|
];
|
|
6407
6384
|
return [
|
|
6408
6385
|
4,
|
|
6409
|
-
merchantList(_object_spread({
|
|
6386
|
+
apiService.merchantList(_object_spread({
|
|
6410
6387
|
page: 1,
|
|
6411
6388
|
pageSize: 20
|
|
6412
6389
|
}, otherParams), config)
|
|
@@ -6800,7 +6777,6 @@ var EffectStaffSelect = (0, import_react47.memo)(function(props) {
|
|
|
6800
6777
|
var _ref = _sliced_to_array((0, import_react47.useState)([]), 2), options = _ref[0], setOptions = _ref[1];
|
|
6801
6778
|
var _ref1 = _sliced_to_array((0, import_react47.useState)(controlValue !== null && controlValue !== void 0 ? controlValue : defaultValue), 2), value = _ref1[0], setValue = _ref1[1];
|
|
6802
6779
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6803
|
-
var businessList2 = getApiServiceMethod(apiService, "businessList");
|
|
6804
6780
|
var getBusinessOptions = function getBusinessOptions(businessName, currentDeptId) {
|
|
6805
6781
|
return _async_to_generator(function() {
|
|
6806
6782
|
var response;
|
|
@@ -6809,7 +6785,7 @@ var EffectStaffSelect = (0, import_react47.memo)(function(props) {
|
|
|
6809
6785
|
case 0:
|
|
6810
6786
|
return [
|
|
6811
6787
|
4,
|
|
6812
|
-
|
|
6788
|
+
apiService.businessList({
|
|
6813
6789
|
nameFilter: businessName,
|
|
6814
6790
|
deptId: currentDeptId,
|
|
6815
6791
|
page: 1,
|
|
@@ -6831,8 +6807,7 @@ var EffectStaffSelect = (0, import_react47.memo)(function(props) {
|
|
|
6831
6807
|
};
|
|
6832
6808
|
var _ref2 = _sliced_to_array((0, import_react_use17.useAsyncFn)(getBusinessOptions, [
|
|
6833
6809
|
deptId,
|
|
6834
|
-
config
|
|
6835
|
-
businessList2
|
|
6810
|
+
config
|
|
6836
6811
|
]), 2), state = _ref2[0], searchFetch = _ref2[1];
|
|
6837
6812
|
var debounceSearchFetch = (0, import_react47.useCallback)((0, import_tools11.debounce)(600, searchFetch), [
|
|
6838
6813
|
searchFetch
|
|
@@ -6921,7 +6896,6 @@ var EffectReservoirSelect = (0, import_react48.memo)(function(props) {
|
|
|
6921
6896
|
var _ref1 = _sliced_to_array((0, import_react48.useState)(controlValue || defaultValue), 2), value = _ref1[0], setValue = _ref1[1];
|
|
6922
6897
|
var prevControlValue = (0, import_react_use18.usePrevious)(controlValue);
|
|
6923
6898
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6924
|
-
var reservoirList2 = getApiServiceMethod(apiService, "reservoirList");
|
|
6925
6899
|
var get_reservoir_options = function get_reservoir_options() {
|
|
6926
6900
|
return _async_to_generator(function() {
|
|
6927
6901
|
return _ts_generator(this, function(_state) {
|
|
@@ -6932,7 +6906,7 @@ var EffectReservoirSelect = (0, import_react48.memo)(function(props) {
|
|
|
6932
6906
|
];
|
|
6933
6907
|
return [
|
|
6934
6908
|
4,
|
|
6935
|
-
|
|
6909
|
+
apiService.reservoirList({
|
|
6936
6910
|
page: 1,
|
|
6937
6911
|
pageSize: 500,
|
|
6938
6912
|
warehouseIdFilter: String(warehouseId),
|
|
@@ -7019,7 +6993,6 @@ var EffectShelveSelect = (0, import_react49.memo)(function(props) {
|
|
|
7019
6993
|
var _ref1 = _sliced_to_array((0, import_react49.useState)(controlValue || defaultValue), 2), value = _ref1[0], setValue = _ref1[1];
|
|
7020
6994
|
var prevControlValue = (0, import_react_use19.usePrevious)(controlValue);
|
|
7021
6995
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
7022
|
-
var shelveList2 = getApiServiceMethod(apiService, "shelveList");
|
|
7023
6996
|
var get_shelve_options = function get_shelve_options() {
|
|
7024
6997
|
return _async_to_generator(function() {
|
|
7025
6998
|
return _ts_generator(this, function(_state) {
|
|
@@ -7030,7 +7003,7 @@ var EffectShelveSelect = (0, import_react49.memo)(function(props) {
|
|
|
7030
7003
|
];
|
|
7031
7004
|
return [
|
|
7032
7005
|
4,
|
|
7033
|
-
|
|
7006
|
+
apiService.shelveList({
|
|
7034
7007
|
page: 1,
|
|
7035
7008
|
pageSize: 2e3,
|
|
7036
7009
|
warehouseId: warehouseId,
|
|
@@ -7126,7 +7099,6 @@ var transformStoreData = function transformStoreData() {
|
|
|
7126
7099
|
function useStoreOptions() {
|
|
7127
7100
|
var currentMerchantOnly = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, warehouseType = arguments.length > 1 ? arguments[1] : void 0;
|
|
7128
7101
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
7129
|
-
var storeComboBox2 = getApiServiceMethod(apiService, "storeComboBox");
|
|
7130
7102
|
var _ref = (0, import_immutable7.default)([
|
|
7131
7103
|
"warehouse/store/combo-box",
|
|
7132
7104
|
currentMerchantOnly,
|
|
@@ -7139,7 +7111,7 @@ function useStoreOptions() {
|
|
|
7139
7111
|
case 0:
|
|
7140
7112
|
return [
|
|
7141
7113
|
4,
|
|
7142
|
-
|
|
7114
|
+
apiService.storeComboBox({
|
|
7143
7115
|
type: "",
|
|
7144
7116
|
currentMerchantOnly: currentMerchantOnly,
|
|
7145
7117
|
warehouseType: warehouseType
|
|
@@ -7216,7 +7188,6 @@ var EffectAddressCascade = (0, import_react51.memo)(function(props) {
|
|
|
7216
7188
|
var _ref = _sliced_to_array((0, import_react51.useState)(), 2), selectedList = _ref[0], setSelectedList = _ref[1];
|
|
7217
7189
|
var _ref1 = _sliced_to_array((0, import_react51.useState)(), 2), customTree = _ref1[0], setCustomTree = _ref1[1];
|
|
7218
7190
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
7219
|
-
var commonAddressList2 = getApiServiceMethod(apiService, "commonAddressList");
|
|
7220
7191
|
var params = {
|
|
7221
7192
|
pid: (selectedList === null || selectedList === void 0 ? void 0 : (_selectedList_ = selectedList[(selectedList === null || selectedList === void 0 ? void 0 : selectedList.length) - 1]) === null || _selectedList_ === void 0 ? void 0 : _selectedList_.value) || ""
|
|
7222
7193
|
};
|
|
@@ -7227,7 +7198,7 @@ var EffectAddressCascade = (0, import_react51.memo)(function(props) {
|
|
|
7227
7198
|
case 0:
|
|
7228
7199
|
return [
|
|
7229
7200
|
4,
|
|
7230
|
-
|
|
7201
|
+
apiService.commonAddressList(params, config)
|
|
7231
7202
|
];
|
|
7232
7203
|
case 1:
|
|
7233
7204
|
return [
|
|
@@ -7371,7 +7342,8 @@ var useReqData = function useReqData(fn, reqParams, dependency) {
|
|
|
7371
7342
|
dependency
|
|
7372
7343
|
]), 2), resState = _ref[0], fetchData = _ref[1];
|
|
7373
7344
|
(0, import_react_use21.useDebounce)(function() {
|
|
7374
|
-
|
|
7345
|
+
var shouldFetchData = Object.keys(JSON.parse(dependency || "{}")).length > 0;
|
|
7346
|
+
if (shouldFetchData) {
|
|
7375
7347
|
void fetchData();
|
|
7376
7348
|
}
|
|
7377
7349
|
}, 600, [
|
|
@@ -7384,16 +7356,16 @@ var useReqData = function useReqData(fn, reqParams, dependency) {
|
|
|
7384
7356
|
};
|
|
7385
7357
|
// src/EffectLabelSelect/index.module.less
|
|
7386
7358
|
var index_module_default21 = {
|
|
7387
|
-
input: "index_module_input8",
|
|
7388
7359
|
select_wrap: "index_module_select_wrap",
|
|
7389
7360
|
select_label: "index_module_select_label",
|
|
7361
|
+
value_select: "index_module_value_select",
|
|
7390
7362
|
select: "index_module_select7"
|
|
7391
7363
|
};
|
|
7392
7364
|
// src/EffectLabelSelect/index.tsx
|
|
7393
7365
|
var import_antd40 = require("antd");
|
|
7394
7366
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
7395
7367
|
var EffectLabelSelect = (0, import_react52.memo)(function(props) {
|
|
7396
|
-
var onChange = props.onChange, className = props.className, value = props.value, disabled = props.disabled, defaultLabel = props.defaultLabel, _props_labelDic = props.labelDic, labelDic = _props_labelDic === void 0 ? defaultLabelDic : _props_labelDic, onFetchData = props.onFetchData, _props_onTransformData = props.onTransformData, onTransformData = _props_onTransformData === void 0 ? defaultTransformDataFn : _props_onTransformData, _props_fetchParams = props.fetchParams, fetchParams = _props_fetchParams === void 0 ? {} : _props_fetchParams, _props_customLabelInValue = props.customLabelInValue, customLabelInValue = _props_customLabelInValue === void 0 ? false : _props_customLabelInValue, optionsDisplayType = props.optionsDisplayType;
|
|
7368
|
+
var onChange = props.onChange, className = props.className, value = props.value, disabled = props.disabled, defaultLabel = props.defaultLabel, _props_labelDic = props.labelDic, labelDic = _props_labelDic === void 0 ? defaultLabelDic : _props_labelDic, onFetchData = props.onFetchData, _props_onTransformData = props.onTransformData, onTransformData = _props_onTransformData === void 0 ? defaultTransformDataFn : _props_onTransformData, _props_fetchParams = props.fetchParams, fetchParams = _props_fetchParams === void 0 ? {} : _props_fetchParams, _props_customLabelInValue = props.customLabelInValue, customLabelInValue = _props_customLabelInValue === void 0 ? false : _props_customLabelInValue, optionsDisplayType = props.optionsDisplayType, style = props.style;
|
|
7397
7369
|
var apiService = useRequestConfig().apiService;
|
|
7398
7370
|
var _ref = _sliced_to_array((0, import_react52.useState)(function() {
|
|
7399
7371
|
var _transformObj2Options_, _transformObj2Options;
|
|
@@ -7405,14 +7377,12 @@ var EffectLabelSelect = (0, import_react52.memo)(function(props) {
|
|
|
7405
7377
|
var _ref2 = _sliced_to_array((0, import_react52.useState)(), 2), curSelectItem = _ref2[0], setCurSelectItem = _ref2[1];
|
|
7406
7378
|
var _ref3 = _sliced_to_array((0, import_react52.useState)(), 2), curSearchValue = _ref3[0], setCurSearchValue = _ref3[1];
|
|
7407
7379
|
var _ref4 = _sliced_to_array((0, import_react52.useState)([]), 2), optionsData = _ref4[0], setOptionsData = _ref4[1];
|
|
7408
|
-
var fetchDataFn = onFetchData ||
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
};
|
|
7412
|
-
var _useReqData = _sliced_to_array(useReqData(fetchDataFn, _object_spread_props(_object_spread({}, fetchParams), _define_property({
|
|
7380
|
+
var fetchDataFn = onFetchData || apiService.merchantList;
|
|
7381
|
+
var fetchDataDeps = _object_spread_props(_object_spread({}, fetchParams), _define_property({}, curSelectLabel, curSearchValue || void 0));
|
|
7382
|
+
var _useReqData = _sliced_to_array(useReqData(fetchDataFn, _object_spread({
|
|
7413
7383
|
page: 1,
|
|
7414
7384
|
pageSize: 20
|
|
7415
|
-
},
|
|
7385
|
+
}, fetchDataDeps), JSON.stringify(fetchDataDeps)), 1), resState = _useReqData[0];
|
|
7416
7386
|
(0, import_react52.useEffect)(function() {
|
|
7417
7387
|
var _resState_value;
|
|
7418
7388
|
if (resState.loading || !((_resState_value = resState.value) === null || _resState_value === void 0 ? void 0 : _resState_value.data.list)) return;
|
|
@@ -7466,7 +7436,7 @@ var EffectLabelSelect = (0, import_react52.memo)(function(props) {
|
|
|
7466
7436
|
});
|
|
7467
7437
|
}) : optionsData;
|
|
7468
7438
|
var selectValueProps = {
|
|
7469
|
-
className: (0, import_classnames16.default)(index_module_default21.
|
|
7439
|
+
className: (0, import_classnames16.default)(index_module_default21.value_select, className),
|
|
7470
7440
|
notFoundContent: notFoundContent,
|
|
7471
7441
|
value: mergedValue,
|
|
7472
7442
|
options: mergedOptionsData,
|
|
@@ -7482,8 +7452,9 @@ var EffectLabelSelect = (0, import_react52.memo)(function(props) {
|
|
|
7482
7452
|
defaultActiveFirstOption: false,
|
|
7483
7453
|
filterOption: false
|
|
7484
7454
|
};
|
|
7485
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
7455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_antd40.Space.Compact, {
|
|
7486
7456
|
className: index_module_default21.select_wrap,
|
|
7457
|
+
style: style,
|
|
7487
7458
|
children: [
|
|
7488
7459
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_antd40.Select, _object_spread({}, selectLabelProps)),
|
|
7489
7460
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_antd40.Select, _object_spread({}, selectValueProps))
|
package/dist/index.mjs
CHANGED
|
@@ -1668,13 +1668,6 @@ var useRequestConfig = function useRequestConfig() {
|
|
|
1668
1668
|
apiService
|
|
1669
1669
|
]);
|
|
1670
1670
|
};
|
|
1671
|
-
var getApiServiceMethod = function getApiServiceMethod(apiService, key) {
|
|
1672
|
-
var method = apiService[key];
|
|
1673
|
-
if (!method) {
|
|
1674
|
-
throw new Error("[xfe-repo/web-components] 当前 ConfigProvider 未提供 apiService.".concat(String(key), " 实现,请补充对应 API 服务。"));
|
|
1675
|
-
}
|
|
1676
|
-
return method;
|
|
1677
|
-
};
|
|
1678
1671
|
// src/RichTextEditor/MenuBar.tsx
|
|
1679
1672
|
import { memo as memo10, useCallback as useCallback6, useEffect as useEffect6, useRef as useRef3 } from "react";
|
|
1680
1673
|
import { getMarkAttributes, useCurrentEditor } from "@tiptap/react";
|
|
@@ -2097,7 +2090,6 @@ var RichTextEditor = memo11(function(props) {
|
|
|
2097
2090
|
var htmlContent = defaultValue || value || "";
|
|
2098
2091
|
var uploadingRef = useRef4(false);
|
|
2099
2092
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
2100
|
-
var uploadUploadFile2 = getApiServiceMethod(apiService, "uploadUploadFile");
|
|
2101
2093
|
var handleImageUpload = useCallback7(function(file) {
|
|
2102
2094
|
return _async_to_generator(function() {
|
|
2103
2095
|
var validTypes, formData, response;
|
|
@@ -2131,7 +2123,7 @@ var RichTextEditor = memo11(function(props) {
|
|
|
2131
2123
|
formData.append("file", file);
|
|
2132
2124
|
return [
|
|
2133
2125
|
4,
|
|
2134
|
-
|
|
2126
|
+
apiService.uploadUploadFile(formData, config)
|
|
2135
2127
|
];
|
|
2136
2128
|
case 2:
|
|
2137
2129
|
response = _state.sent();
|
|
@@ -2158,8 +2150,7 @@ var RichTextEditor = memo11(function(props) {
|
|
|
2158
2150
|
});
|
|
2159
2151
|
})();
|
|
2160
2152
|
}, [
|
|
2161
|
-
config
|
|
2162
|
-
uploadUploadFile2
|
|
2153
|
+
config
|
|
2163
2154
|
]);
|
|
2164
2155
|
var extensions = useMemo7(function() {
|
|
2165
2156
|
var baseExtensions = [
|
|
@@ -2727,7 +2718,7 @@ import { resizeAliYun } from "@xfe-repo/web-utils/tools";
|
|
|
2727
2718
|
import { Fragment as Fragment3, memo as memo15, useCallback as useCallback8, useState as useState8 } from "react";
|
|
2728
2719
|
import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2729
2720
|
var ModalGroup = memo15(function(_0) {
|
|
2730
|
-
var images = _0.images, _0_resizeWidth = _0.resizeWidth, resizeWidth = _0_resizeWidth === void 0 ? 750 : _0_resizeWidth, _0_width = _0.width, width = _0_width === void 0 ? 100 : _0_width, tmp = _0.fallback, fallback2 = tmp === void 0 ? "https://imgs.
|
|
2721
|
+
var images = _0.images, _0_resizeWidth = _0.resizeWidth, resizeWidth = _0_resizeWidth === void 0 ? 750 : _0_resizeWidth, _0_width = _0.width, width = _0_width === void 0 ? 100 : _0_width, tmp = _0.fallback, fallback2 = tmp === void 0 ? "https://imgs.eshetang.com/product/default-product-1608019533274.png" : tmp, props = _object_without_properties(_0, [
|
|
2731
2722
|
"images",
|
|
2732
2723
|
"resizeWidth",
|
|
2733
2724
|
"width",
|
|
@@ -2775,7 +2766,7 @@ var OSSImage_ModalGroup_default = ModalGroup;
|
|
|
2775
2766
|
// src/OSSImage/index.tsx
|
|
2776
2767
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2777
2768
|
var PreviewGroup = Image2.PreviewGroup;
|
|
2778
|
-
var fallback = "https://imgs.
|
|
2769
|
+
var fallback = "https://imgs.eshetang.com/product/default-product-1608019533274.png";
|
|
2779
2770
|
var _OSSImage = memo16(function(props) {
|
|
2780
2771
|
var _props_src = props.src, src = _props_src === void 0 ? "" : _props_src, _props_resizeWidth = props.resizeWidth, resizeWidth = _props_resizeWidth === void 0 ? 750 : _props_resizeWidth, preview = props.preview, clearDefault = props.clearDefault, showOriginPreview = props.showOriginPreview, params = _object_without_properties(props, [
|
|
2781
2772
|
"src",
|
|
@@ -3153,7 +3144,6 @@ var _EffectFileUpload = memo19(forwardRef2(function(props, ref) {
|
|
|
3153
3144
|
onFileChange
|
|
3154
3145
|
]);
|
|
3155
3146
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
3156
|
-
var uploadUploadFile2 = getApiServiceMethod(apiService, "uploadUploadFile");
|
|
3157
3147
|
var uploadFetch = useCallback10(function(file) {
|
|
3158
3148
|
return _async_to_generator(function() {
|
|
3159
3149
|
var formData, _ref, data, code;
|
|
@@ -3169,7 +3159,7 @@ var _EffectFileUpload = memo19(forwardRef2(function(props, ref) {
|
|
|
3169
3159
|
});
|
|
3170
3160
|
return [
|
|
3171
3161
|
4,
|
|
3172
|
-
|
|
3162
|
+
apiService.uploadUploadFile(formData, config)
|
|
3173
3163
|
];
|
|
3174
3164
|
case 1:
|
|
3175
3165
|
_ref = _state.sent(), data = _ref.data, code = _ref.code;
|
|
@@ -3186,8 +3176,7 @@ var _EffectFileUpload = memo19(forwardRef2(function(props, ref) {
|
|
|
3186
3176
|
})();
|
|
3187
3177
|
}, [
|
|
3188
3178
|
config,
|
|
3189
|
-
extFormData
|
|
3190
|
-
uploadUploadFile2
|
|
3179
|
+
extFormData
|
|
3191
3180
|
]);
|
|
3192
3181
|
var uploadTaskFn = useCallback10(function(newUploadFiles) {
|
|
3193
3182
|
return _async_to_generator(function() {
|
|
@@ -3564,14 +3553,13 @@ var RemoteUpload = memo21(function(props) {
|
|
|
3564
3553
|
]);
|
|
3565
3554
|
var handleCreateQRCode = useCallback13(function(config) {
|
|
3566
3555
|
return _async_to_generator(function() {
|
|
3567
|
-
var
|
|
3556
|
+
var data;
|
|
3568
3557
|
return _ts_generator(this, function(_state) {
|
|
3569
3558
|
switch(_state.label){
|
|
3570
3559
|
case 0:
|
|
3571
|
-
uploadRemoteCreate2 = getApiServiceMethod(apiService, "uploadRemoteCreate");
|
|
3572
3560
|
return [
|
|
3573
3561
|
4,
|
|
3574
|
-
|
|
3562
|
+
apiService.uploadRemoteCreate({
|
|
3575
3563
|
maxNum: max
|
|
3576
3564
|
}, config)
|
|
3577
3565
|
];
|
|
@@ -4097,7 +4085,6 @@ import { Transfer, Typography as Typography2 } from "antd";
|
|
|
4097
4085
|
import useSWRImmutable2 from "swr/immutable";
|
|
4098
4086
|
function useBrandOptions(params) {
|
|
4099
4087
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
4100
|
-
var brandComboBox2 = getApiServiceMethod(apiService, "brandComboBox");
|
|
4101
4088
|
var _useSWRImmutable2 = useSWRImmutable2([
|
|
4102
4089
|
"/product/brand/combo-box",
|
|
4103
4090
|
params
|
|
@@ -4109,7 +4096,7 @@ function useBrandOptions(params) {
|
|
|
4109
4096
|
case 0:
|
|
4110
4097
|
return [
|
|
4111
4098
|
4,
|
|
4112
|
-
|
|
4099
|
+
apiService.brandComboBox(_object_spread({
|
|
4113
4100
|
page: 1,
|
|
4114
4101
|
pageSize: 500
|
|
4115
4102
|
}, params), config)
|
|
@@ -4276,7 +4263,6 @@ var EffectSeriesSelectV2 = function EffectSeriesSelectV2(_0) {
|
|
|
4276
4263
|
"placeholder"
|
|
4277
4264
|
]);
|
|
4278
4265
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
4279
|
-
var seriesList2 = getApiServiceMethod(apiService, "seriesList");
|
|
4280
4266
|
var _useState17 = _sliced_to_array(useState17(true), 2), hasMore = _useState17[0], setHasMore = _useState17[1];
|
|
4281
4267
|
var _useState171 = _sliced_to_array(useState17(false), 2), loading = _useState171[0], setLoading = _useState171[1];
|
|
4282
4268
|
var _useState172 = _sliced_to_array(useState17([]), 2), options = _useState172[0], setOptions = _useState172[1];
|
|
@@ -4307,7 +4293,7 @@ var EffectSeriesSelectV2 = function EffectSeriesSelectV2(_0) {
|
|
|
4307
4293
|
setLoading(true);
|
|
4308
4294
|
return [
|
|
4309
4295
|
4,
|
|
4310
|
-
|
|
4296
|
+
apiService.seriesList({
|
|
4311
4297
|
brandId: brandId,
|
|
4312
4298
|
categoryId: categoryId,
|
|
4313
4299
|
page: currentPage,
|
|
@@ -4360,8 +4346,7 @@ var EffectSeriesSelectV2 = function EffectSeriesSelectV2(_0) {
|
|
|
4360
4346
|
brandId,
|
|
4361
4347
|
categoryId,
|
|
4362
4348
|
config,
|
|
4363
|
-
pageSize
|
|
4364
|
-
seriesList2
|
|
4349
|
+
pageSize
|
|
4365
4350
|
]);
|
|
4366
4351
|
var handleSearch = useMemo13(function() {
|
|
4367
4352
|
return debounce(300, function(nextSearchValue) {
|
|
@@ -4475,7 +4460,6 @@ import { EyeOutlined as EyeOutlined2 } from "@ant-design/icons";
|
|
|
4475
4460
|
import useSWRImmutable3 from "swr/immutable";
|
|
4476
4461
|
function useSkuOptions(params) {
|
|
4477
4462
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
4478
|
-
var skuListV22 = getApiServiceMethod(apiService, "skuListV2");
|
|
4479
4463
|
var _useSWRImmutable3 = useSWRImmutable3([
|
|
4480
4464
|
"/product/sku/v2",
|
|
4481
4465
|
params
|
|
@@ -4487,7 +4471,7 @@ function useSkuOptions(params) {
|
|
|
4487
4471
|
case 0:
|
|
4488
4472
|
return [
|
|
4489
4473
|
4,
|
|
4490
|
-
|
|
4474
|
+
apiService.skuListV2(_object_spread({
|
|
4491
4475
|
page: 1,
|
|
4492
4476
|
pageSize: 12
|
|
4493
4477
|
}, params), config)
|
|
@@ -4983,7 +4967,6 @@ import { Select as Select5 } from "antd";
|
|
|
4983
4967
|
import useSWRImmutable4 from "swr/immutable";
|
|
4984
4968
|
function useSeriesOptions(params) {
|
|
4985
4969
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
4986
|
-
var seriesComboBox2 = getApiServiceMethod(apiService, "seriesComboBox");
|
|
4987
4970
|
var _useSWRImmutable4 = useSWRImmutable4([
|
|
4988
4971
|
"/product/series/combo-box",
|
|
4989
4972
|
params
|
|
@@ -4995,7 +4978,7 @@ function useSeriesOptions(params) {
|
|
|
4995
4978
|
case 0:
|
|
4996
4979
|
return [
|
|
4997
4980
|
4,
|
|
4998
|
-
|
|
4981
|
+
apiService.seriesComboBox(_object_spread({
|
|
4999
4982
|
page: 1,
|
|
5000
4983
|
pageSize: 12
|
|
5001
4984
|
}, params), config)
|
|
@@ -5239,7 +5222,6 @@ import { Select as Select6 } from "antd";
|
|
|
5239
5222
|
import useSWRImmutable5 from "swr/immutable";
|
|
5240
5223
|
function useSpuOptions(params) {
|
|
5241
5224
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
5242
|
-
var spuList2 = getApiServiceMethod(apiService, "spuList");
|
|
5243
5225
|
var _useSWRImmutable5 = useSWRImmutable5([
|
|
5244
5226
|
"/product/spu/list",
|
|
5245
5227
|
params
|
|
@@ -5251,7 +5233,7 @@ function useSpuOptions(params) {
|
|
|
5251
5233
|
case 0:
|
|
5252
5234
|
return [
|
|
5253
5235
|
4,
|
|
5254
|
-
|
|
5236
|
+
apiService.spuList(_object_spread({
|
|
5255
5237
|
page: 1,
|
|
5256
5238
|
pageSize: 12
|
|
5257
5239
|
}, params), config)
|
|
@@ -5496,7 +5478,6 @@ var EffectSkuTable = memo28(function(props) {
|
|
|
5496
5478
|
var _curCategoryIds_slice;
|
|
5497
5479
|
var categoryIds = props.categoryIds, brandId = props.brandId, brandName = props.brandName, _props_seriesId = props.seriesId, seriesId = _props_seriesId === void 0 ? 0 : _props_seriesId, seriesName = props.seriesName, spuId = props.spuId, spuName = props.spuName, disabled = props.disabled, value = props.value, _props_showSkuId = props.showSkuId, showSkuId = _props_showSkuId === void 0 ? false : _props_showSkuId, _props_skuType = props.skuType, skuType = _props_skuType === void 0 ? "std" : _props_skuType, onChange = props.onChange;
|
|
5498
5480
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
5499
|
-
var skuFindOne2 = getApiServiceMethod(apiService, "skuFindOne");
|
|
5500
5481
|
var initialCategoryIds = Array.isArray(categoryIds) ? categoryIds : categoryIds ? [
|
|
5501
5482
|
categoryIds
|
|
5502
5483
|
] : void 0;
|
|
@@ -5515,15 +5496,14 @@ var EffectSkuTable = memo28(function(props) {
|
|
|
5515
5496
|
return _ts_generator(this, function(_state) {
|
|
5516
5497
|
return [
|
|
5517
5498
|
2,
|
|
5518
|
-
|
|
5499
|
+
apiService.skuFindOne({
|
|
5519
5500
|
id: skuId
|
|
5520
5501
|
}, config)
|
|
5521
5502
|
];
|
|
5522
5503
|
});
|
|
5523
5504
|
})();
|
|
5524
5505
|
}, [
|
|
5525
|
-
config
|
|
5526
|
-
skuFindOne2
|
|
5506
|
+
config
|
|
5527
5507
|
]), 2), state = _useAsyncFn2[0], searchFetch = _useAsyncFn2[1];
|
|
5528
5508
|
useEffect19(function() {
|
|
5529
5509
|
if (value) void searchFetch(value);
|
|
@@ -5884,7 +5864,6 @@ var EffectSkuRecognize = memo30(function(props) {
|
|
|
5884
5864
|
var _useState24 = _sliced_to_array(useState24(controlledValue || defaultValue), 2), value = _useState24[0], setValue = _useState24[1];
|
|
5885
5865
|
var _useState241 = _sliced_to_array(useState24([]), 2), skuList = _useState241[0], setSkuList = _useState241[1];
|
|
5886
5866
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
5887
|
-
var productImageSpuSkuList2 = getApiServiceMethod(apiService, "productImageSpuSkuList");
|
|
5888
5867
|
var getRecognizeList = function getRecognizeList(recognizeImage) {
|
|
5889
5868
|
return _async_to_generator(function() {
|
|
5890
5869
|
var params;
|
|
@@ -5905,7 +5884,7 @@ var EffectSkuRecognize = memo30(function(props) {
|
|
|
5905
5884
|
};
|
|
5906
5885
|
return [
|
|
5907
5886
|
4,
|
|
5908
|
-
|
|
5887
|
+
apiService.productImageSpuSkuList(params, config)
|
|
5909
5888
|
];
|
|
5910
5889
|
case 1:
|
|
5911
5890
|
return [
|
|
@@ -5921,7 +5900,6 @@ var EffectSkuRecognize = memo30(function(props) {
|
|
|
5921
5900
|
brandId,
|
|
5922
5901
|
controlledValue,
|
|
5923
5902
|
config,
|
|
5924
|
-
productImageSpuSkuList2,
|
|
5925
5903
|
skuType
|
|
5926
5904
|
]), 2), state = _useAsyncFn3[0], searchFetch = _useAsyncFn3[1];
|
|
5927
5905
|
useEffect20(function() {
|
|
@@ -6092,7 +6070,6 @@ import { useUpdateEffect as useUpdateEffect13 } from "react-use";
|
|
|
6092
6070
|
import useSWRImmutable6 from "swr/immutable";
|
|
6093
6071
|
function useMerchantOptions(params) {
|
|
6094
6072
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6095
|
-
var merchantList = getApiServiceMethod(apiService, "merchantList");
|
|
6096
6073
|
var _useSWRImmutable6 = useSWRImmutable6([
|
|
6097
6074
|
"merchant/list",
|
|
6098
6075
|
params
|
|
@@ -6112,7 +6089,7 @@ function useMerchantOptions(params) {
|
|
|
6112
6089
|
];
|
|
6113
6090
|
return [
|
|
6114
6091
|
4,
|
|
6115
|
-
merchantList(_object_spread({
|
|
6092
|
+
apiService.merchantList(_object_spread({
|
|
6116
6093
|
page: 1,
|
|
6117
6094
|
pageSize: 20
|
|
6118
6095
|
}, otherParams), config)
|
|
@@ -6506,7 +6483,6 @@ var EffectStaffSelect = memo33(function(props) {
|
|
|
6506
6483
|
var _useState27 = _sliced_to_array(useState27([]), 2), options = _useState27[0], setOptions = _useState27[1];
|
|
6507
6484
|
var _useState271 = _sliced_to_array(useState27(controlValue !== null && controlValue !== void 0 ? controlValue : defaultValue), 2), value = _useState271[0], setValue = _useState271[1];
|
|
6508
6485
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6509
|
-
var businessList2 = getApiServiceMethod(apiService, "businessList");
|
|
6510
6486
|
var getBusinessOptions = function getBusinessOptions(businessName, currentDeptId) {
|
|
6511
6487
|
return _async_to_generator(function() {
|
|
6512
6488
|
var response;
|
|
@@ -6515,7 +6491,7 @@ var EffectStaffSelect = memo33(function(props) {
|
|
|
6515
6491
|
case 0:
|
|
6516
6492
|
return [
|
|
6517
6493
|
4,
|
|
6518
|
-
|
|
6494
|
+
apiService.businessList({
|
|
6519
6495
|
nameFilter: businessName,
|
|
6520
6496
|
deptId: currentDeptId,
|
|
6521
6497
|
page: 1,
|
|
@@ -6537,8 +6513,7 @@ var EffectStaffSelect = memo33(function(props) {
|
|
|
6537
6513
|
};
|
|
6538
6514
|
var _useAsyncFn4 = _sliced_to_array(useAsyncFn4(getBusinessOptions, [
|
|
6539
6515
|
deptId,
|
|
6540
|
-
config
|
|
6541
|
-
businessList2
|
|
6516
|
+
config
|
|
6542
6517
|
]), 2), state = _useAsyncFn4[0], searchFetch = _useAsyncFn4[1];
|
|
6543
6518
|
var debounceSearchFetch = useCallback24(debounce7(600, searchFetch), [
|
|
6544
6519
|
searchFetch
|
|
@@ -6627,7 +6602,6 @@ var EffectReservoirSelect = memo34(function(props) {
|
|
|
6627
6602
|
var _useState281 = _sliced_to_array(useState28(controlValue || defaultValue), 2), value = _useState281[0], setValue = _useState281[1];
|
|
6628
6603
|
var prevControlValue = usePrevious7(controlValue);
|
|
6629
6604
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6630
|
-
var reservoirList2 = getApiServiceMethod(apiService, "reservoirList");
|
|
6631
6605
|
var get_reservoir_options = function get_reservoir_options() {
|
|
6632
6606
|
return _async_to_generator(function() {
|
|
6633
6607
|
return _ts_generator(this, function(_state) {
|
|
@@ -6638,7 +6612,7 @@ var EffectReservoirSelect = memo34(function(props) {
|
|
|
6638
6612
|
];
|
|
6639
6613
|
return [
|
|
6640
6614
|
4,
|
|
6641
|
-
|
|
6615
|
+
apiService.reservoirList({
|
|
6642
6616
|
page: 1,
|
|
6643
6617
|
pageSize: 500,
|
|
6644
6618
|
warehouseIdFilter: String(warehouseId),
|
|
@@ -6725,7 +6699,6 @@ var EffectShelveSelect = memo35(function(props) {
|
|
|
6725
6699
|
var _useState291 = _sliced_to_array(useState29(controlValue || defaultValue), 2), value = _useState291[0], setValue = _useState291[1];
|
|
6726
6700
|
var prevControlValue = usePrevious8(controlValue);
|
|
6727
6701
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6728
|
-
var shelveList2 = getApiServiceMethod(apiService, "shelveList");
|
|
6729
6702
|
var get_shelve_options = function get_shelve_options() {
|
|
6730
6703
|
return _async_to_generator(function() {
|
|
6731
6704
|
return _ts_generator(this, function(_state) {
|
|
@@ -6736,7 +6709,7 @@ var EffectShelveSelect = memo35(function(props) {
|
|
|
6736
6709
|
];
|
|
6737
6710
|
return [
|
|
6738
6711
|
4,
|
|
6739
|
-
|
|
6712
|
+
apiService.shelveList({
|
|
6740
6713
|
page: 1,
|
|
6741
6714
|
pageSize: 2e3,
|
|
6742
6715
|
warehouseId: warehouseId,
|
|
@@ -6832,7 +6805,6 @@ var transformStoreData = function transformStoreData() {
|
|
|
6832
6805
|
function useStoreOptions() {
|
|
6833
6806
|
var currentMerchantOnly = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, warehouseType = arguments.length > 1 ? arguments[1] : void 0;
|
|
6834
6807
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6835
|
-
var storeComboBox2 = getApiServiceMethod(apiService, "storeComboBox");
|
|
6836
6808
|
var _useSWRImmutable7 = useSWRImmutable7([
|
|
6837
6809
|
"warehouse/store/combo-box",
|
|
6838
6810
|
currentMerchantOnly,
|
|
@@ -6845,7 +6817,7 @@ function useStoreOptions() {
|
|
|
6845
6817
|
case 0:
|
|
6846
6818
|
return [
|
|
6847
6819
|
4,
|
|
6848
|
-
|
|
6820
|
+
apiService.storeComboBox({
|
|
6849
6821
|
type: "",
|
|
6850
6822
|
currentMerchantOnly: currentMerchantOnly,
|
|
6851
6823
|
warehouseType: warehouseType
|
|
@@ -6922,7 +6894,6 @@ var EffectAddressCascade = memo37(function(props) {
|
|
|
6922
6894
|
var _useState30 = _sliced_to_array(useState30(), 2), selectedList = _useState30[0], setSelectedList = _useState30[1];
|
|
6923
6895
|
var _useState301 = _sliced_to_array(useState30(), 2), customTree = _useState301[0], setCustomTree = _useState301[1];
|
|
6924
6896
|
var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
|
|
6925
|
-
var commonAddressList2 = getApiServiceMethod(apiService, "commonAddressList");
|
|
6926
6897
|
var params = {
|
|
6927
6898
|
pid: (selectedList === null || selectedList === void 0 ? void 0 : (_selectedList_ = selectedList[(selectedList === null || selectedList === void 0 ? void 0 : selectedList.length) - 1]) === null || _selectedList_ === void 0 ? void 0 : _selectedList_.value) || ""
|
|
6928
6899
|
};
|
|
@@ -6933,7 +6904,7 @@ var EffectAddressCascade = memo37(function(props) {
|
|
|
6933
6904
|
case 0:
|
|
6934
6905
|
return [
|
|
6935
6906
|
4,
|
|
6936
|
-
|
|
6907
|
+
apiService.commonAddressList(params, config)
|
|
6937
6908
|
];
|
|
6938
6909
|
case 1:
|
|
6939
6910
|
return [
|
|
@@ -7077,7 +7048,8 @@ var useReqData = function useReqData(fn, reqParams, dependency) {
|
|
|
7077
7048
|
dependency
|
|
7078
7049
|
]), 2), resState = _useAsyncFn8[0], fetchData = _useAsyncFn8[1];
|
|
7079
7050
|
useDebounce(function() {
|
|
7080
|
-
|
|
7051
|
+
var shouldFetchData = Object.keys(JSON.parse(dependency || "{}")).length > 0;
|
|
7052
|
+
if (shouldFetchData) {
|
|
7081
7053
|
void fetchData();
|
|
7082
7054
|
}
|
|
7083
7055
|
}, 600, [
|
|
@@ -7090,16 +7062,16 @@ var useReqData = function useReqData(fn, reqParams, dependency) {
|
|
|
7090
7062
|
};
|
|
7091
7063
|
// src/EffectLabelSelect/index.module.less
|
|
7092
7064
|
var index_module_default21 = {
|
|
7093
|
-
input: "index_module_input8",
|
|
7094
7065
|
select_wrap: "index_module_select_wrap",
|
|
7095
7066
|
select_label: "index_module_select_label",
|
|
7067
|
+
value_select: "index_module_value_select",
|
|
7096
7068
|
select: "index_module_select7"
|
|
7097
7069
|
};
|
|
7098
7070
|
// src/EffectLabelSelect/index.tsx
|
|
7099
|
-
import { Select as Select12 } from "antd";
|
|
7071
|
+
import { Select as Select12, Space as Space4 } from "antd";
|
|
7100
7072
|
import { jsx as jsx48, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
7101
7073
|
var EffectLabelSelect = memo38(function(props) {
|
|
7102
|
-
var onChange = props.onChange, className = props.className, value = props.value, disabled = props.disabled, defaultLabel = props.defaultLabel, _props_labelDic = props.labelDic, labelDic = _props_labelDic === void 0 ? defaultLabelDic : _props_labelDic, onFetchData = props.onFetchData, _props_onTransformData = props.onTransformData, onTransformData = _props_onTransformData === void 0 ? defaultTransformDataFn : _props_onTransformData, _props_fetchParams = props.fetchParams, fetchParams = _props_fetchParams === void 0 ? {} : _props_fetchParams, _props_customLabelInValue = props.customLabelInValue, customLabelInValue = _props_customLabelInValue === void 0 ? false : _props_customLabelInValue, optionsDisplayType = props.optionsDisplayType;
|
|
7074
|
+
var onChange = props.onChange, className = props.className, value = props.value, disabled = props.disabled, defaultLabel = props.defaultLabel, _props_labelDic = props.labelDic, labelDic = _props_labelDic === void 0 ? defaultLabelDic : _props_labelDic, onFetchData = props.onFetchData, _props_onTransformData = props.onTransformData, onTransformData = _props_onTransformData === void 0 ? defaultTransformDataFn : _props_onTransformData, _props_fetchParams = props.fetchParams, fetchParams = _props_fetchParams === void 0 ? {} : _props_fetchParams, _props_customLabelInValue = props.customLabelInValue, customLabelInValue = _props_customLabelInValue === void 0 ? false : _props_customLabelInValue, optionsDisplayType = props.optionsDisplayType, style = props.style;
|
|
7103
7075
|
var apiService = useRequestConfig().apiService;
|
|
7104
7076
|
var _useState31 = _sliced_to_array(useState31(function() {
|
|
7105
7077
|
var _transformObj2Options_, _transformObj2Options;
|
|
@@ -7111,14 +7083,12 @@ var EffectLabelSelect = memo38(function(props) {
|
|
|
7111
7083
|
var _useState312 = _sliced_to_array(useState31(), 2), curSelectItem = _useState312[0], setCurSelectItem = _useState312[1];
|
|
7112
7084
|
var _useState313 = _sliced_to_array(useState31(), 2), curSearchValue = _useState313[0], setCurSearchValue = _useState313[1];
|
|
7113
7085
|
var _useState314 = _sliced_to_array(useState31([]), 2), optionsData = _useState314[0], setOptionsData = _useState314[1];
|
|
7114
|
-
var fetchDataFn = onFetchData ||
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
};
|
|
7118
|
-
var _useReqData = _sliced_to_array(useReqData(fetchDataFn, _object_spread_props(_object_spread({}, fetchParams), _define_property({
|
|
7086
|
+
var fetchDataFn = onFetchData || apiService.merchantList;
|
|
7087
|
+
var fetchDataDeps = _object_spread_props(_object_spread({}, fetchParams), _define_property({}, curSelectLabel, curSearchValue || void 0));
|
|
7088
|
+
var _useReqData = _sliced_to_array(useReqData(fetchDataFn, _object_spread({
|
|
7119
7089
|
page: 1,
|
|
7120
7090
|
pageSize: 20
|
|
7121
|
-
},
|
|
7091
|
+
}, fetchDataDeps), JSON.stringify(fetchDataDeps)), 1), resState = _useReqData[0];
|
|
7122
7092
|
useEffect26(function() {
|
|
7123
7093
|
var _resState_value;
|
|
7124
7094
|
if (resState.loading || !((_resState_value = resState.value) === null || _resState_value === void 0 ? void 0 : _resState_value.data.list)) return;
|
|
@@ -7172,7 +7142,7 @@ var EffectLabelSelect = memo38(function(props) {
|
|
|
7172
7142
|
});
|
|
7173
7143
|
}) : optionsData;
|
|
7174
7144
|
var selectValueProps = {
|
|
7175
|
-
className: classnames15(index_module_default21.
|
|
7145
|
+
className: classnames15(index_module_default21.value_select, className),
|
|
7176
7146
|
notFoundContent: notFoundContent,
|
|
7177
7147
|
value: mergedValue,
|
|
7178
7148
|
options: mergedOptionsData,
|
|
@@ -7188,8 +7158,9 @@ var EffectLabelSelect = memo38(function(props) {
|
|
|
7188
7158
|
defaultActiveFirstOption: false,
|
|
7189
7159
|
filterOption: false
|
|
7190
7160
|
};
|
|
7191
|
-
return /* @__PURE__ */ jsxs20(
|
|
7161
|
+
return /* @__PURE__ */ jsxs20(Space4.Compact, {
|
|
7192
7162
|
className: index_module_default21.select_wrap,
|
|
7163
|
+
style: style,
|
|
7193
7164
|
children: [
|
|
7194
7165
|
/* @__PURE__ */ jsx48(Select12, _object_spread({}, selectLabelProps)),
|
|
7195
7166
|
/* @__PURE__ */ jsx48(Select12, _object_spread({}, selectValueProps))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/web-components",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"module": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"react-dom": "18.2.0",
|
|
62
62
|
"react-use": "^17.5.1",
|
|
63
63
|
"swr": "^2.2.5",
|
|
64
|
-
"@xfe-repo/web-micro": "1.5.1",
|
|
65
|
-
"@xfe-repo/web-service": "1.5.1",
|
|
66
64
|
"@xfe-repo/web-router": "1.5.1",
|
|
67
|
-
"@xfe-repo/web-utils": "1.5.
|
|
65
|
+
"@xfe-repo/web-utils": "1.5.2",
|
|
66
|
+
"@xfe-repo/web-micro": "1.5.1",
|
|
67
|
+
"@xfe-repo/web-service": "1.5.1"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"registry": "https://registry.npmjs.org/"
|