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