@xfe-repo/web-components 1.7.4 → 1.7.5

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.js CHANGED
@@ -4718,28 +4718,21 @@ var index_module_default10 = {
4718
4718
  input: "index_module_input2"
4719
4719
  };
4720
4720
  // src/EffectSkuTable/index.tsx
4721
- var import_antd30 = require("antd");
4721
+ var import_antd29 = require("antd");
4722
4722
  // src/EffectBrandSelect/index.tsx
4723
4723
  var import_react39 = require("react");
4724
4724
  var import_react_use10 = require("react-use");
4725
- var import_tools7 = require("@xfe-repo/web-utils/tools");
4726
- var import_classnames9 = __toESM(require("classnames"));
4727
- // src/EffectBrandSelect/index.module.less
4728
- var index_module_default11 = {
4729
- input: "index_module_input3",
4730
- select: "index_module_select2"
4731
- };
4732
- // src/EffectBrandSelect/index.tsx
4733
4725
  var import_antd26 = require("antd");
4734
- var import_antd27 = require("antd");
4726
+ var import_classnames9 = __toESM(require("classnames"));
4727
+ var import_tools7 = require("@xfe-repo/web-utils/tools");
4735
4728
  // src/EffectSkuSelect/index.tsx
4736
4729
  var import_react38 = require("react");
4737
4730
  var import_react_use9 = require("react-use");
4738
4731
  var import_tools6 = require("@xfe-repo/web-utils/tools");
4739
4732
  var import_classnames8 = __toESM(require("classnames"));
4740
4733
  // src/EffectSkuSelect/index.module.less
4741
- var index_module_default12 = {
4742
- input: "index_module_input4",
4734
+ var index_module_default11 = {
4735
+ input: "index_module_input3",
4743
4736
  image: "index_module_image",
4744
4737
  preview: "index_module_preview",
4745
4738
  icon: "index_module_icon",
@@ -5010,7 +5003,7 @@ var EffectSkuSelect = (0, import_react38.memo)(function(props) {
5010
5003
  }
5011
5004
  };
5012
5005
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_antd25.Select, _object_spread({
5013
- className: (0, import_classnames8.default)(index_module_default12.input, className)
5006
+ className: (0, import_classnames8.default)(index_module_default11.input, className)
5014
5007
  }, selectBrandProps));
5015
5008
  });
5016
5009
  var SelectDropdown = (0, import_react38.memo)(function(props) {
@@ -5031,7 +5024,7 @@ var SelectDropdown = (0, import_react38.memo)(function(props) {
5031
5024
  }, []);
5032
5025
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {
5033
5026
  id: selectDropdownId,
5034
- className: index_module_default12.select_dropdown,
5027
+ className: index_module_default11.select_dropdown,
5035
5028
  onMouseDown: handleMouseDown,
5036
5029
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_infinite_scroll_component.default, {
5037
5030
  dataLength: options.length,
@@ -5048,22 +5041,22 @@ var SelectDropdown = (0, import_react38.memo)(function(props) {
5048
5041
  scrollableTarget: selectDropdownId,
5049
5042
  scrollThreshold: "100px",
5050
5043
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {
5051
- className: index_module_default12.options,
5044
+ className: index_module_default11.options,
5052
5045
  children: options.map(function(item) {
5053
5046
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", {
5054
- className: (0, import_classnames8.default)(index_module_default12.option, item.value === value && index_module_default12.active),
5047
+ className: (0, import_classnames8.default)(index_module_default11.option, item.value === value && index_module_default11.active),
5055
5048
  onClick: function onClick() {
5056
5049
  return handleOnSelect(item);
5057
5050
  },
5058
5051
  children: [
5059
5052
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ImageItem, {
5060
- className: index_module_default12.select_image,
5053
+ className: index_module_default11.select_image,
5061
5054
  item: item,
5062
5055
  previewed: item.image === previewImage2,
5063
5056
  onPreview: handlePreview
5064
5057
  }),
5065
5058
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", {
5066
- className: index_module_default12.label,
5059
+ className: index_module_default11.label,
5067
5060
  children: item.label
5068
5061
  })
5069
5062
  ]
@@ -5084,7 +5077,7 @@ var ImageItem = (0, import_react38.memo)(function(props) {
5084
5077
  ]);
5085
5078
  var previewProps = (0, import_react38.useMemo)(function() {
5086
5079
  return {
5087
- maskClassName: "".concat(index_module_default12.item_mask_img),
5080
+ maskClassName: "".concat(index_module_default11.item_mask_img),
5088
5081
  visible: previewed,
5089
5082
  onVisibleChange: function onVisibleChange(value) {
5090
5083
  return !value && (onPreview === null || onPreview === void 0 ? void 0 : onPreview());
@@ -5095,16 +5088,16 @@ var ImageItem = (0, import_react38.memo)(function(props) {
5095
5088
  onPreview
5096
5089
  ]);
5097
5090
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", {
5098
- className: (0, import_classnames8.default)(index_module_default12.image, className),
5091
+ className: (0, import_classnames8.default)(index_module_default11.image, className),
5099
5092
  children: [
5100
5093
  /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", {
5101
- className: index_module_default12.preview,
5094
+ className: index_module_default11.preview,
5102
5095
  onClick: function onClick(event) {
5103
5096
  return handlePreview(event);
5104
5097
  },
5105
5098
  children: [
5106
5099
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons10.EyeOutlined, {
5107
- className: index_module_default12.icon
5100
+ className: index_module_default11.icon
5108
5101
  }),
5109
5102
  " \u9884\u89C8"
5110
5103
  ]
@@ -5122,44 +5115,55 @@ var getNumberValue = function getNumberValue(value) {
5122
5115
  var numValue = Number(value);
5123
5116
  return Number.isNaN(numValue) ? void 0 : numValue;
5124
5117
  };
5118
+ // src/EffectBrandSelect/index.module.less
5119
+ var index_module_default12 = {
5120
+ input: "index_module_input4",
5121
+ select: "index_module_select2"
5122
+ };
5125
5123
  // src/EffectBrandSelect/index.tsx
5126
5124
  var import_jsx_runtime35 = require("react/jsx-runtime");
5125
+ var OTHER_BRAND_OPTION = {
5126
+ label: "\u5176\u5B83",
5127
+ value: 1310
5128
+ };
5127
5129
  var EffectBrandSelect = (0, import_react39.memo)(function(props) {
5130
+ var _state_data;
5128
5131
  var onChange = props.onChange, className = props.className, defaultValue = props.defaultValue, controlValue = props.value, disabled = props.disabled, mode = props.mode, categoryId = props.categoryId, sysBizTypeId = props.sysBizTypeId, showOtherBrand = props.showOtherBrand, style = props.style;
5129
- var _ref = _sliced_to_array((0, import_react39.useState)(controlValue || defaultValue), 2), value = _ref[0], setValue = _ref[1];
5132
+ var _ref = _sliced_to_array((0, import_react39.useState)(controlValue !== null && controlValue !== void 0 ? controlValue : defaultValue), 2), value = _ref[0], setValue = _ref[1];
5133
+ var _ref1 = _sliced_to_array((0, import_react39.useState)({
5134
+ /** 兼容 props 分类 Id 异常传入 */ categoryId: getNumberValue(categoryId),
5135
+ sysBizTypeId: sysBizTypeId,
5136
+ brandId: value === null || value === void 0 ? void 0 : value.toString()
5137
+ }), 2), params = _ref1[0], setParams = _ref1[1];
5138
+ var prevControlValue = (0, import_react_use10.usePrevious)(controlValue);
5139
+ var state = useBrandOptions(params);
5140
+ var _ref2 = _sliced_to_array((0, import_react39.useState)((_state_data = state.data) !== null && _state_data !== void 0 ? _state_data : []), 2), options = _ref2[0], setOptions = _ref2[1];
5130
5141
  var searchFetch = (0, import_react39.useCallback)(function(brandName, brandId) {
5131
- if (brandId !== void 0) brandId = String(brandId);
5132
5142
  setParams({
5133
- categoryId: getNumberValue(categoryId),
5143
+ /** 兼容 props 分类 Id 异常传入 */ categoryId: getNumberValue(categoryId),
5134
5144
  sysBizTypeId: sysBizTypeId,
5135
- brandName: brandName,
5136
- brandId: brandId
5145
+ brandName: brandName || void 0,
5146
+ brandId: brandId === null || brandId === void 0 ? void 0 : brandId.toString()
5137
5147
  });
5138
5148
  }, [
5139
5149
  categoryId,
5140
5150
  sysBizTypeId
5141
5151
  ]);
5142
- var _ref1 = _sliced_to_array((0, import_react39.useState)({
5143
- /** 兼容props分类Id 异常传入 */ categoryId: getNumberValue(categoryId),
5144
- sysBizTypeId: sysBizTypeId,
5145
- brandName: "",
5146
- brandId: value === null || value === void 0 ? void 0 : value.toString()
5147
- }), 2), params = _ref1[0], setParams = _ref1[1];
5148
- var prevControlValue = (0, import_react_use10.usePrevious)(controlValue);
5149
- var state = useBrandOptions(params);
5150
- var _ref2 = _sliced_to_array((0, import_react39.useState)(state.data || []), 2), options = _ref2[0], setOptions = _ref2[1];
5152
+ var handleSearch = (0, import_react39.useCallback)((0, import_tools7.debounce)(800, function(searchName) {
5153
+ return searchFetch(searchName);
5154
+ }), [
5155
+ searchFetch
5156
+ ]);
5157
+ var handleReset = (0, import_react39.useCallback)(function() {
5158
+ return searchFetch("");
5159
+ }, [
5160
+ searchFetch
5161
+ ]);
5151
5162
  (0, import_react_use10.useUpdateEffect)(function() {
5152
5163
  if (!state.data) return;
5153
- if (!showOtherBrand) {
5154
- setOptions(state.data);
5155
- } else {
5156
- setOptions(state.data.concat([
5157
- {
5158
- label: "\u5176\u5B83",
5159
- value: 1310
5160
- }
5161
- ]));
5162
- }
5164
+ setOptions(showOtherBrand ? _to_consumable_array(state.data).concat([
5165
+ OTHER_BRAND_OPTION
5166
+ ]) : state.data);
5163
5167
  }, [
5164
5168
  state.data,
5165
5169
  showOtherBrand
@@ -5181,86 +5185,57 @@ var EffectBrandSelect = (0, import_react39.memo)(function(props) {
5181
5185
  }, [
5182
5186
  controlValue
5183
5187
  ]);
5184
- var handleOnChange = function handleOnChange(_value, _option) {
5188
+ var handleChange = (0, import_react39.useCallback)(function(_value, _option) {
5185
5189
  setValue(_value);
5186
5190
  if (mode === "multiple") {
5187
- var options2 = _option;
5188
- var labels = options2 === null || options2 === void 0 ? void 0 : options2.map(function(option) {
5189
- return option.label;
5191
+ var selectedOptions = _option;
5192
+ var labels = selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.map(function(opt) {
5193
+ return opt.label;
5190
5194
  }).join(">>>");
5191
5195
  onChange === null || onChange === void 0 ? void 0 : onChange(_value, labels);
5192
5196
  } else {
5193
- var option = _option;
5194
- onChange === null || onChange === void 0 ? void 0 : onChange(_value, option === null || option === void 0 ? void 0 : option.label);
5197
+ var selectedOption = _option;
5198
+ onChange === null || onChange === void 0 ? void 0 : onChange(_value, selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label);
5195
5199
  }
5196
- };
5197
- var handleOnDeselect = function handleOnDeselect(_value) {
5198
- searchFetch("");
5199
- };
5200
- var handleOnSearch = function handleOnSearch(searchName) {
5201
- return searchFetch(searchName);
5202
- };
5203
- var handleOnSearchDebounce = (0, import_react39.useCallback)((0, import_tools7.debounce)(800, handleOnSearch), [
5204
- categoryId,
5205
- sysBizTypeId
5200
+ }, [
5201
+ mode,
5202
+ onChange
5206
5203
  ]);
5207
- var handleOnClear = function handleOnClear() {
5208
- return searchFetch("");
5209
- };
5210
5204
  if (state.error) {
5211
5205
  var _state_error;
5212
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_antd27.Typography.Text, {
5206
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_antd26.Typography.Text, {
5213
5207
  type: "danger",
5214
5208
  children: (_state_error = state.error) === null || _state_error === void 0 ? void 0 : _state_error.toString()
5215
5209
  });
5216
5210
  }
5217
- var notFoundContent = state.isLoading ? "\u641C\u7D22\u4E2D" : "\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u54C1\u724C";
5218
- var selectBrandProps = {
5211
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_antd26.Select, {
5212
+ className: (0, import_classnames9.default)(index_module_default12.input, className),
5219
5213
  popupMatchSelectWidth: false,
5220
- notFoundContent: notFoundContent,
5214
+ notFoundContent: state.isLoading ? "\u641C\u7D22\u4E2D" : "\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u54C1\u724C",
5221
5215
  placeholder: "\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0",
5222
5216
  optionFilterProp: "label",
5223
5217
  showSearch: true,
5224
5218
  allowClear: true,
5225
5219
  defaultActiveFirstOption: false,
5226
5220
  filterOption: false,
5227
- onChange: handleOnChange,
5228
- onSearch: handleOnSearchDebounce,
5229
- onDeselect: handleOnDeselect,
5230
- onClear: handleOnClear,
5221
+ onChange: handleChange,
5222
+ onSearch: handleSearch,
5223
+ onDeselect: handleReset,
5224
+ onClear: handleReset,
5231
5225
  loading: state.isLoading,
5232
5226
  value: value,
5233
5227
  options: options,
5234
5228
  disabled: disabled,
5235
5229
  mode: mode,
5236
5230
  style: style
5237
- };
5238
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_antd26.Select, _object_spread({
5239
- className: (0, import_classnames9.default)(index_module_default11.input, className)
5240
- }, selectBrandProps));
5231
+ });
5241
5232
  });
5242
5233
  // src/EffectSeriesSelect/index.tsx
5243
5234
  var import_react40 = require("react");
5235
+ var import_antd27 = require("antd");
5244
5236
  var import_react_use11 = require("react-use");
5245
5237
  var import_tools8 = require("@xfe-repo/web-utils/tools");
5246
5238
  var import_classnames10 = __toESM(require("classnames"));
5247
- // src/EffectSeriesSelect/index.module.less
5248
- var index_module_default13 = {
5249
- input: "index_module_input5",
5250
- hover: "index_module_hover",
5251
- dropdown: "index_module_dropdown",
5252
- img_opt: "index_module_img_opt",
5253
- item: "index_module_item",
5254
- icon_preview: "index_module_icon_preview",
5255
- icon_eye: "index_module_icon_eye",
5256
- item_img: "index_module_item_img",
5257
- item_mask_img: "index_module_item_mask_img",
5258
- item_label: "index_module_item_label",
5259
- txt_opt: "index_module_txt_opt",
5260
- active: "index_module_active2"
5261
- };
5262
- // src/EffectSeriesSelect/index.tsx
5263
- var import_antd28 = require("antd");
5264
5239
  // src/EffectSeriesSelect/useSeriesOptions.ts
5265
5240
  var import_immutable4 = __toESM(require("swr/immutable"));
5266
5241
  function useSeriesOptions(params) {
@@ -5309,6 +5284,21 @@ function useSeriesOptions(params) {
5309
5284
  mutate: mutate
5310
5285
  };
5311
5286
  }
5287
+ // src/EffectSeriesSelect/index.module.less
5288
+ var index_module_default13 = {
5289
+ input: "index_module_input5",
5290
+ hover: "index_module_hover",
5291
+ dropdown: "index_module_dropdown",
5292
+ img_opt: "index_module_img_opt",
5293
+ item: "index_module_item",
5294
+ icon_preview: "index_module_icon_preview",
5295
+ icon_eye: "index_module_icon_eye",
5296
+ item_img: "index_module_item_img",
5297
+ item_mask_img: "index_module_item_mask_img",
5298
+ item_label: "index_module_item_label",
5299
+ txt_opt: "index_module_txt_opt",
5300
+ active: "index_module_active2"
5301
+ };
5312
5302
  // src/EffectSeriesSelect/index.tsx
5313
5303
  var import_jsx_runtime36 = require("react/jsx-runtime");
5314
5304
  var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
@@ -5317,13 +5307,11 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5317
5307
  var _ref1 = _sliced_to_array((0, import_react40.useState)([]), 2), options = _ref1[0], setOptions = _ref1[1];
5318
5308
  var _ref2 = _sliced_to_array((0, import_react40.useState)(controlValue || defaultValue), 2), value = _ref2[0], setValue = _ref2[1];
5319
5309
  var _ref3 = _sliced_to_array((0, import_react40.useState)(""), 2), searchValue = _ref3[0], setSearchValue = _ref3[1];
5320
- var pageData = (0, import_react40.useMemo)(function() {
5321
- return {
5322
- page: 1,
5323
- pageSize: 12,
5324
- hasMore: true
5325
- };
5326
- }, []);
5310
+ var pageData = (0, import_react40.useRef)({
5311
+ page: 1,
5312
+ pageSize: 12,
5313
+ hasMore: true
5314
+ });
5327
5315
  var conditions = (0, import_react40.useMemo)(function() {
5328
5316
  return {
5329
5317
  categoryId: categoryId,
@@ -5333,29 +5321,30 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5333
5321
  categoryId,
5334
5322
  brandId
5335
5323
  ]);
5336
- var searchFetch = (0, import_react40.useCallback)(function(params2) {
5337
- var page = params2.page, searchValue2 = params2.searchValue, conditions2 = params2.conditions, value2 = params2.value;
5338
- var pageSize = pageData.pageSize;
5339
- var id = getNumberValue(value2);
5340
- var serviceParams = _object_spread_props(_object_spread({}, conditions2), {
5341
- id: id,
5342
- seriesName: searchValue2,
5343
- page: page,
5344
- pageSize: pageSize
5345
- });
5346
- setParams(serviceParams);
5347
- }, []);
5348
5324
  var _ref4 = _sliced_to_array((0, import_react40.useState)({
5349
5325
  categoryId: categoryId,
5350
5326
  brandId: brandId,
5351
- /** 兼容props分类Id 异常传入 */ id: getNumberValue(value),
5327
+ /** 兼容 props 分类 Id 异常传入 */ id: getNumberValue(value),
5352
5328
  seriesName: searchValue,
5353
- page: pageData.page,
5354
- pageSize: pageData.pageSize
5329
+ page: pageData.current.page,
5330
+ pageSize: pageData.current.pageSize
5355
5331
  }), 2), params = _ref4[0], setParams = _ref4[1];
5356
5332
  var state = useSeriesOptions(params);
5357
5333
  var prevControlValue = (0, import_react_use11.usePrevious)(controlValue);
5358
- var debounceSearchFetch = (0, import_react40.useCallback)((0, import_tools8.debounce)(300, searchFetch), [
5334
+ var searchFetch = (0, import_react40.useCallback)(function(fetchParams) {
5335
+ var page = fetchParams.page, searchValue2 = fetchParams.searchValue, conditions2 = fetchParams.conditions, value2 = fetchParams.value;
5336
+ var pageSize = pageData.current.pageSize;
5337
+ var id = getNumberValue(value2);
5338
+ setParams(_object_spread_props(_object_spread({}, conditions2), {
5339
+ id: id,
5340
+ seriesName: searchValue2,
5341
+ page: page,
5342
+ pageSize: pageSize
5343
+ }));
5344
+ }, []);
5345
+ var debounceSearchFetch = (0, import_react40.useMemo)(function() {
5346
+ return (0, import_tools8.debounce)(300, searchFetch);
5347
+ }, [
5359
5348
  searchFetch
5360
5349
  ]);
5361
5350
  (0, import_react40.useEffect)(function() {
@@ -5371,9 +5360,12 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5371
5360
  brandId: brandId
5372
5361
  };
5373
5362
  });
5374
- pageData.page = state.data.page;
5375
- pageData.page === 1 ? setOptions(newOptions) : setOptions(_to_consumable_array(options).concat(_to_consumable_array(newOptions)));
5376
- pageData.hasMore = pageData.pageSize * pageData.page < state.data.total && newOptions.length > 0;
5363
+ var isFirstPage = state.data.page === 1;
5364
+ pageData.current.page = state.data.page;
5365
+ pageData.current.hasMore = pageData.current.pageSize * pageData.current.page < state.data.total && newOptions.length > 0;
5366
+ setOptions(function(prev) {
5367
+ return isFirstPage ? newOptions : _to_consumable_array(prev).concat(_to_consumable_array(newOptions));
5368
+ });
5377
5369
  }, [
5378
5370
  state.data
5379
5371
  ]);
@@ -5410,8 +5402,8 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5410
5402
  searchValue,
5411
5403
  conditions
5412
5404
  ]);
5413
- var handleOnSearch = (0, import_react40.useCallback)(function(value2) {
5414
- return setSearchValue(value2);
5405
+ var handleOnSearch = (0, import_react40.useCallback)(function(text) {
5406
+ return setSearchValue(text);
5415
5407
  }, []);
5416
5408
  var handleOnClear = (0, import_react40.useCallback)(function() {
5417
5409
  return setSearchValue("");
@@ -5424,7 +5416,7 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5424
5416
  return [
5425
5417
  4,
5426
5418
  searchFetch({
5427
- page: pageData.page + 1,
5419
+ page: pageData.current.page + 1,
5428
5420
  value: value,
5429
5421
  searchValue: searchValue,
5430
5422
  conditions: conditions
@@ -5443,11 +5435,11 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5443
5435
  searchValue,
5444
5436
  conditions
5445
5437
  ]);
5446
- var handleOnChange = (0, import_react40.useCallback)(function(value2, option) {
5438
+ var handleOnChange = (0, import_react40.useCallback)(function(newValue, option) {
5447
5439
  var label = (option || {}).label;
5448
- value2 = getNumberValue(value2);
5449
- setValue(value2);
5450
- onChange === null || onChange === void 0 ? void 0 : onChange(value2, label);
5440
+ var numValue = getNumberValue(newValue);
5441
+ setValue(numValue);
5442
+ onChange === null || onChange === void 0 ? void 0 : onChange(numValue, label);
5451
5443
  setOpenDropDown(false);
5452
5444
  }, [
5453
5445
  onChange
@@ -5457,27 +5449,25 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5457
5449
  if (options.length) return "\u6CA1\u6709\u66F4\u591A\u4E86~";
5458
5450
  return "\u6682\u65E0\u6570\u636E";
5459
5451
  }, [
5460
- state,
5461
- options,
5462
- brandId
5452
+ state.isLoading,
5453
+ options.length
5463
5454
  ]);
5464
5455
  var popupRender = (0, import_react40.useCallback)(function(_menu) {
5465
5456
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectDropdown, {
5466
5457
  value: value,
5467
5458
  options: options,
5468
5459
  onLoadMore: handleOnLoadMore,
5469
- hasMore: pageData.hasMore,
5460
+ hasMore: pageData.current.hasMore,
5470
5461
  noMoreText: noMoreText,
5471
5462
  onChange: handleOnChange
5472
5463
  });
5473
5464
  }, [
5474
5465
  value,
5475
5466
  options,
5476
- state,
5477
5467
  noMoreText,
5478
5468
  handleOnChange
5479
5469
  ]);
5480
- var selectBrandProps = {
5470
+ var selectProps = {
5481
5471
  popupMatchSelectWidth: false,
5482
5472
  placeholder: "\u8BF7\u8F93\u5165\u7CFB\u5217\u540D\u79F0",
5483
5473
  optionFilterProp: "label",
@@ -5500,9 +5490,9 @@ var EffectSeriesSelect = (0, import_react40.memo)(function(props) {
5500
5490
  return document.body;
5501
5491
  }
5502
5492
  };
5503
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_antd28.Select, _object_spread({
5493
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_antd27.Select, _object_spread({
5504
5494
  className: (0, import_classnames10.default)(index_module_default13.input, className)
5505
- }, selectBrandProps));
5495
+ }, selectProps));
5506
5496
  });
5507
5497
  // src/EffectSpuSelect/index.tsx
5508
5498
  var import_react41 = require("react");
@@ -5515,7 +5505,7 @@ var index_module_default14 = {
5515
5505
  select: "index_module_select3"
5516
5506
  };
5517
5507
  // src/EffectSpuSelect/index.tsx
5518
- var import_antd29 = require("antd");
5508
+ var import_antd28 = require("antd");
5519
5509
  // src/EffectSpuSelect/useSpuOptions.ts
5520
5510
  var import_immutable5 = __toESM(require("swr/immutable"));
5521
5511
  function useSpuOptions(params) {
@@ -5765,13 +5755,13 @@ var EffectSpuSelect = (0, import_react41.memo)(function(props) {
5765
5755
  return document.body;
5766
5756
  }
5767
5757
  };
5768
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_antd29.Select, _object_spread({
5758
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_antd28.Select, _object_spread({
5769
5759
  className: (0, import_classnames11.default)(index_module_default14.input, className)
5770
5760
  }, selectBrandProps));
5771
5761
  });
5772
5762
  // src/EffectSkuTable/index.tsx
5773
5763
  var import_jsx_runtime38 = require("react/jsx-runtime");
5774
- var _import_antd30_Table = import_antd30.Table, Column2 = _import_antd30_Table.Column;
5764
+ var _import_antd29_Table = import_antd29.Table, Column2 = _import_antd29_Table.Column;
5775
5765
  var EffectSkuTable = (0, import_react42.memo)(function(props) {
5776
5766
  var _curCategoryIds_slice;
5777
5767
  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;
@@ -6001,7 +5991,7 @@ var EffectSkuTable = (0, import_react42.memo)(function(props) {
6001
5991
  skuImage: curSkuImage
6002
5992
  }
6003
5993
  ];
6004
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_antd30.Table, _object_spread_props(_object_spread({}, commonTableProps), {
5994
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_antd29.Table, _object_spread_props(_object_spread({}, commonTableProps), {
6005
5995
  dataSource: skuDataSource,
6006
5996
  rowKey: function rowKey(record) {
6007
5997
  return record.categoryIds.join("_") || "empty";
@@ -6049,7 +6039,7 @@ var index_module_default15 = {
6049
6039
  accept: "index_module_accept"
6050
6040
  };
6051
6041
  // src/EffectWithFilePanel/index.tsx
6052
- var import_antd31 = require("antd");
6042
+ var import_antd30 = require("antd");
6053
6043
  var import_jsx_runtime39 = require("react/jsx-runtime");
6054
6044
  var EffectWithFilePanel = (0, import_react43.memo)(function(props) {
6055
6045
  var disabled = props.disabled, children = props.children, header = props.header, defaultValue = props.defaultValue, onChange = props.onChange, onSave = props.onSave, max = props.max, accept = props.accept, remote = props.remote, title = props.title;
@@ -6060,7 +6050,7 @@ var EffectWithFilePanel = (0, import_react43.memo)(function(props) {
6060
6050
  var handleCLose = function handleCLose() {
6061
6051
  if (!uploadLoading) return true;
6062
6052
  return new Promise(function(resolve) {
6063
- import_antd31.Modal.confirm({
6053
+ import_antd30.Modal.confirm({
6064
6054
  title: "\u6587\u4EF6\u4E0A\u4F20\u4E2D, \u786E\u5B9A\u5173\u95ED\u4E48\uFF1F",
6065
6055
  content: "\u5982\u679C\u5173\u95ED\uFF0C\u6B64\u6B21\u4E0A\u4F20\u4FDD\u5B58\u5C06\u4F1A\u5931\u8D25",
6066
6056
  okType: "danger",
@@ -6078,9 +6068,9 @@ var EffectWithFilePanel = (0, import_react43.memo)(function(props) {
6078
6068
  setUploadLoading(false);
6079
6069
  setSubmitText(disabled ? "\u786E\u5B9A" : "\u4FDD\u5B58");
6080
6070
  if (result) {
6081
- void import_antd31.message.success(msg || "\u4E0A\u4F20\u6210\u529F");
6071
+ void import_antd30.message.success(msg || "\u4E0A\u4F20\u6210\u529F");
6082
6072
  } else {
6083
- void import_antd31.message.error(msg);
6073
+ void import_antd30.message.error(msg);
6084
6074
  }
6085
6075
  };
6086
6076
  var handleOnUpload = function handleOnUpload() {
@@ -6148,7 +6138,7 @@ var EffectWithFilePanel = (0, import_react43.memo)(function(props) {
6148
6138
  });
6149
6139
  // src/EffectSkuRecognize/index.tsx
6150
6140
  var import_react44 = require("react");
6151
- var import_antd32 = require("antd");
6141
+ var import_antd31 = require("antd");
6152
6142
  var import_react_use14 = require("react-use");
6153
6143
  // src/EffectSkuRecognize/index.module.less
6154
6144
  var index_module_default16 = {
@@ -6156,7 +6146,7 @@ var index_module_default16 = {
6156
6146
  };
6157
6147
  // src/EffectSkuRecognize/index.tsx
6158
6148
  var import_jsx_runtime40 = require("react/jsx-runtime");
6159
- var _import_antd32_Typography = import_antd32.Typography, Title = _import_antd32_Typography.Title, Text = _import_antd32_Typography.Text, Link = _import_antd32_Typography.Link;
6149
+ var _import_antd31_Typography = import_antd31.Typography, Title = _import_antd31_Typography.Title, Text = _import_antd31_Typography.Text, Link = _import_antd31_Typography.Link;
6160
6150
  var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
6161
6151
  var categoryId = props.categoryId, brandId = props.brandId, controlledValue = props.value, defaultValue = props.defaultValue, image = props.image, limitSize = props.limitSize, disabled = props.disabled, _props_size = props.size, size = _props_size === void 0 ? "default" : _props_size, _props_skuType = props.skuType, skuType = _props_skuType === void 0 ? "std" : _props_skuType, onChange = props.onChange;
6162
6152
  var _ref = _sliced_to_array((0, import_react44.useState)(controlledValue || defaultValue), 2), value = _ref[0], setValue = _ref[1];
@@ -6271,19 +6261,19 @@ var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
6271
6261
  countRender: function countRender(current, total) {
6272
6262
  var currentItem = skuList[current - 1] || {};
6273
6263
  var currentImage = currentItem.image || currentItem.skuImage || "";
6274
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_antd32.Space, {
6264
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_antd31.Space, {
6275
6265
  children: [
6276
6266
  current,
6277
6267
  " / ",
6278
6268
  total,
6279
- !disabled && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd32.Button, {
6269
+ !disabled && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd31.Button, {
6280
6270
  type: "primary",
6281
6271
  onClick: function onClick() {
6282
6272
  return handleSelected(currentItem);
6283
6273
  },
6284
6274
  children: "\u5C31\u662F\u5B83"
6285
6275
  }),
6286
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd32.Button, {
6276
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd31.Button, {
6287
6277
  onClick: function onClick() {
6288
6278
  return window.open(currentImage);
6289
6279
  },
@@ -6311,23 +6301,23 @@ var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
6311
6301
  })
6312
6302
  ]
6313
6303
  });
6314
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd32.Spin, {
6304
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd31.Spin, {
6315
6305
  tip: "\u8BC6\u522B\u4E2D...",
6316
6306
  spinning: state.loading,
6317
6307
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OSSImage.PreviewGroup, {
6318
6308
  preview: previewProps,
6319
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd32.List, {
6309
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd31.List, {
6320
6310
  grid: gridProps[size],
6321
6311
  header: listHeader,
6322
6312
  dataSource: skuList,
6323
6313
  className: index_module_default16.desc,
6324
6314
  renderItem: function renderItem(item) {
6325
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd32.List.Item, {
6315
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd31.List.Item, {
6326
6316
  className: index_module_default16.maring_top,
6327
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_antd32.Card, {
6317
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_antd31.Card, {
6328
6318
  hoverable: true,
6329
6319
  children: [
6330
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd32.Badge, {
6320
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd31.Badge, {
6331
6321
  count: item.score,
6332
6322
  overflowCount: 10,
6333
6323
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OSSImage, {
@@ -6345,7 +6335,7 @@ var EffectSkuRecognize = (0, import_react44.memo)(function(props) {
6345
6335
  item.name || item.skuName
6346
6336
  ]
6347
6337
  }),
6348
- !disabled && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd32.Button, {
6338
+ !disabled && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd31.Button, {
6349
6339
  type: item.skuId === value ? "primary" : "default",
6350
6340
  block: true,
6351
6341
  onClick: function onClick() {
@@ -6433,7 +6423,7 @@ var index_module_default17 = {
6433
6423
  selector: "index_module_selector"
6434
6424
  };
6435
6425
  // src/EffectMerchantSelect/index.tsx
6436
- var import_antd33 = require("antd");
6426
+ var import_antd32 = require("antd");
6437
6427
  var import_jsx_runtime41 = require("react/jsx-runtime");
6438
6428
  var EffectMerchantSelect = (0, import_react45.memo)(function(props) {
6439
6429
  var onChange = props.onChange, className = props.className, controlValue = props.value, disabled = props.disabled, _props_source = props.source, source = _props_source === void 0 ? "businessNo" : _props_source, _props_labelDisplayMode = props.labelDisplayMode, labelDisplayMode = _props_labelDisplayMode === void 0 ? "platformName" : _props_labelDisplayMode;
@@ -6497,7 +6487,7 @@ var EffectMerchantSelect = (0, import_react45.memo)(function(props) {
6497
6487
  };
6498
6488
  if (state.error) {
6499
6489
  var _state_error;
6500
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_antd33.Typography.Text, {
6490
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_antd32.Typography.Text, {
6501
6491
  type: "danger",
6502
6492
  children: (_state_error = state.error) === null || _state_error === void 0 ? void 0 : _state_error.toString()
6503
6493
  });
@@ -6538,8 +6528,8 @@ var EffectMerchantSelect = (0, import_react45.memo)(function(props) {
6538
6528
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", {
6539
6529
  className: index_module_default17.merchant_select_wrap,
6540
6530
  children: [
6541
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_antd33.Select, _object_spread({}, addonBeforeProps)),
6542
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_antd33.Select, _object_spread({
6531
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_antd32.Select, _object_spread({}, addonBeforeProps)),
6532
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_antd32.Select, _object_spread({
6543
6533
  className: (0, import_classnames12.default)(index_module_default17.selector, className)
6544
6534
  }, selectBrandProps))
6545
6535
  ]
@@ -6547,11 +6537,11 @@ var EffectMerchantSelect = (0, import_react45.memo)(function(props) {
6547
6537
  });
6548
6538
  // src/EffectScopeSelect/index.tsx
6549
6539
  var import_react47 = require("react");
6550
- var import_antd35 = require("antd");
6540
+ var import_antd34 = require("antd");
6551
6541
  var import_react_use16 = require("react-use");
6552
6542
  // src/EffectScopeSelect/ScopeViewMode.tsx
6553
6543
  var import_react46 = require("react");
6554
- var import_antd34 = require("antd");
6544
+ var import_antd33 = require("antd");
6555
6545
  var import_jsx_runtime42 = require("react/jsx-runtime");
6556
6546
  var ScopeViewMode = (0, import_react46.memo)(function(props) {
6557
6547
  var _ref = props || {}, categoryIds = _ref.categoryIds, categoryName = _ref.categoryName, brandId = _ref.brandId, brandName = _ref.brandName, seriesId = _ref.seriesId, seriesName = _ref.seriesName, spuId = _ref.spuId, spuName = _ref.spuName, skuId = _ref.skuId, skuName = _ref.skuName;
@@ -6576,18 +6566,18 @@ var ScopeViewMode = (0, import_react46.memo)(function(props) {
6576
6566
  label: "SKU",
6577
6567
  value: skuName || String(skuId)
6578
6568
  });
6579
- if (items.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_antd34.Typography.Text, {
6569
+ if (items.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_antd33.Typography.Text, {
6580
6570
  style: {
6581
6571
  fontSize: 14
6582
6572
  },
6583
6573
  type: "danger",
6584
6574
  children: "\u8BF7\u5148\u9009\u62E9\u54C1\u7C7B\u4FE1\u606F"
6585
6575
  });
6586
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_antd34.Space, {
6576
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_antd33.Space, {
6587
6577
  size: 4,
6588
6578
  children: items.map(function(param) {
6589
6579
  var label = param.label, value = param.value;
6590
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_antd34.Space, {
6580
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_antd33.Space, {
6591
6581
  size: 4,
6592
6582
  style: {
6593
6583
  height: 32,
@@ -6595,7 +6585,7 @@ var ScopeViewMode = (0, import_react46.memo)(function(props) {
6595
6585
  borderRadius: 6
6596
6586
  },
6597
6587
  children: [
6598
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_antd34.Typography.Text, {
6588
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_antd33.Typography.Text, {
6599
6589
  style: {
6600
6590
  fontSize: 14,
6601
6591
  paddingRight: 16
@@ -6605,7 +6595,7 @@ var ScopeViewMode = (0, import_react46.memo)(function(props) {
6605
6595
  ":"
6606
6596
  ]
6607
6597
  }),
6608
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_antd34.Typography.Text, {
6598
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_antd33.Typography.Text, {
6609
6599
  style: {
6610
6600
  fontSize: 14
6611
6601
  },
@@ -6733,9 +6723,9 @@ var EffectScopeSelect = (0, import_react47.memo)(function(props) {
6733
6723
  requireLevel
6734
6724
  ]);
6735
6725
  var renderLabel = (0, import_react47.useCallback)(function(label, required) {
6736
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_antd35.Flex, {
6726
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_antd34.Flex, {
6737
6727
  flex: "0 0 auto",
6738
- children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd35.Space, {
6728
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd34.Space, {
6739
6729
  children: [
6740
6730
  required && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", {
6741
6731
  style: {
@@ -6756,13 +6746,13 @@ var EffectScopeSelect = (0, import_react47.memo)(function(props) {
6756
6746
  if (mode === "view") {
6757
6747
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ScopeViewMode, _object_spread({}, value));
6758
6748
  }
6759
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd35.Flex, {
6749
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd34.Flex, {
6760
6750
  justify: "flex-start",
6761
6751
  align: "center",
6762
6752
  wrap: "nowrap",
6763
6753
  gap: "15px",
6764
6754
  children: [
6765
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd35.Flex, {
6755
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd34.Flex, {
6766
6756
  align: "center",
6767
6757
  gap: "5px",
6768
6758
  flex: "0 0 auto",
@@ -6775,7 +6765,7 @@ var EffectScopeSelect = (0, import_react47.memo)(function(props) {
6775
6765
  })
6776
6766
  ]
6777
6767
  }),
6778
- lastLevelCategoryId && scopeLevel >= 2 /* BRAND */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd35.Flex, {
6768
+ lastLevelCategoryId && scopeLevel >= 2 /* BRAND */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd34.Flex, {
6779
6769
  align: "center",
6780
6770
  gap: "5px",
6781
6771
  flex: "0 0 auto",
@@ -6789,7 +6779,7 @@ var EffectScopeSelect = (0, import_react47.memo)(function(props) {
6789
6779
  }))
6790
6780
  ]
6791
6781
  }),
6792
- !!value.brandId && scopeLevel >= 3 /* SERIES */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd35.Flex, {
6782
+ !!value.brandId && scopeLevel >= 3 /* SERIES */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd34.Flex, {
6793
6783
  align: "center",
6794
6784
  gap: "5px",
6795
6785
  flex: "0 0 auto",
@@ -6803,7 +6793,7 @@ var EffectScopeSelect = (0, import_react47.memo)(function(props) {
6803
6793
  }))
6804
6794
  ]
6805
6795
  }),
6806
- !!value.seriesId && scopeLevel >= 4 /* SPU */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd35.Flex, {
6796
+ !!value.seriesId && scopeLevel >= 4 /* SPU */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd34.Flex, {
6807
6797
  align: "center",
6808
6798
  gap: "5px",
6809
6799
  flex: "0 0 auto",
@@ -6817,7 +6807,7 @@ var EffectScopeSelect = (0, import_react47.memo)(function(props) {
6817
6807
  }))
6818
6808
  ]
6819
6809
  }),
6820
- !!value.spuId && scopeLevel >= 5 /* SKU */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd35.Flex, {
6810
+ !!value.spuId && scopeLevel >= 5 /* SKU */ && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_antd34.Flex, {
6821
6811
  align: "center",
6822
6812
  gap: "5px",
6823
6813
  flex: "0 0 auto",
@@ -6838,7 +6828,7 @@ var EffectScopeSelect = (0, import_react47.memo)(function(props) {
6838
6828
  var import_react48 = require("react");
6839
6829
  var import_react_use17 = require("react-use");
6840
6830
  var import_classnames13 = __toESM(require("classnames"));
6841
- var import_antd36 = require("antd");
6831
+ var import_antd35 = require("antd");
6842
6832
  var import_tools11 = require("@xfe-repo/web-utils/tools");
6843
6833
  // src/EffectStaffSelect/index.module.less
6844
6834
  var index_module_default18 = {
@@ -6942,7 +6932,7 @@ var EffectStaffSelect = (0, import_react48.memo)(function(props) {
6942
6932
  }
6943
6933
  };
6944
6934
  var defaultPlaceholder = deptId ? "\u8BF7\u9009\u62E9\u5458\u5DE5\u59D3\u540D" : "\u8BF7\u5148\u8F93\u5165\u5458\u5DE5\u59D3\u540D";
6945
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_antd36.Select, {
6935
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_antd35.Select, {
6946
6936
  className: (0, import_classnames13.default)(index_module_default18.select, className),
6947
6937
  style: style,
6948
6938
  notFoundContent: state.loading ? "\u641C\u7D22\u4E2D" : ((_state_value = state.value) === null || _state_value === void 0 ? void 0 : (_state_value_data = _state_value.data) === null || _state_value_data === void 0 ? void 0 : _state_value_data.total) === 0 ? "\u6682\u65E0\u6570\u636E" : defaultPlaceholder,
@@ -6963,7 +6953,7 @@ var EffectStaffSelect = (0, import_react48.memo)(function(props) {
6963
6953
  // src/EffectReservoirSelect/EffectReservoirSelect.tsx
6964
6954
  var import_react49 = require("react");
6965
6955
  var import_react_use18 = require("react-use");
6966
- var import_antd37 = require("antd");
6956
+ var import_antd36 = require("antd");
6967
6957
  var import_jsx_runtime45 = require("react/jsx-runtime");
6968
6958
  var EffectReservoirSelect = (0, import_react49.memo)(function(props) {
6969
6959
  var onChange = props.onChange, className = props.className, defaultValue = props.defaultValue, controlValue = props.value, disabled = props.disabled, warehouseId = props.warehouseId, _props_reservoirType = props.reservoirType, reservoirType = _props_reservoirType === void 0 ? "normal" : _props_reservoirType;
@@ -7052,14 +7042,14 @@ var EffectReservoirSelect = (0, import_react49.memo)(function(props) {
7052
7042
  onChange: handleOnChange,
7053
7043
  loading: state.loading
7054
7044
  };
7055
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_antd37.Select, _object_spread({
7045
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_antd36.Select, _object_spread({
7056
7046
  className: className
7057
7047
  }, selectBrandProps));
7058
7048
  });
7059
7049
  // src/EffectReservoirSelect/EffectShelveSelect.tsx
7060
7050
  var import_react50 = require("react");
7061
7051
  var import_react_use19 = require("react-use");
7062
- var import_antd38 = require("antd");
7052
+ var import_antd37 = require("antd");
7063
7053
  var import_jsx_runtime46 = require("react/jsx-runtime");
7064
7054
  var EffectShelveSelect = (0, import_react50.memo)(function(props) {
7065
7055
  var onChange = props.onChange, className = props.className, defaultValue = props.defaultValue, controlValue = props.value, disabled = props.disabled, warehouseId = props.warehouseId, reservoirId = props.reservoirId;
@@ -7152,12 +7142,12 @@ var EffectShelveSelect = (0, import_react50.memo)(function(props) {
7152
7142
  onChange: handleOnChange,
7153
7143
  loading: state.loading
7154
7144
  };
7155
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_antd38.Select, _object_spread({
7145
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_antd37.Select, _object_spread({
7156
7146
  className: className
7157
7147
  }, selectBrandProps));
7158
7148
  });
7159
7149
  // src/EffectWarehouseSelect/index.tsx
7160
- var import_antd39 = require("antd");
7150
+ var import_antd38 = require("antd");
7161
7151
  var import_classnames14 = __toESM(require("classnames"));
7162
7152
  var import_react51 = require("react");
7163
7153
  // src/EffectWarehouseSelect/useStoreOptions.ts
@@ -7233,7 +7223,7 @@ var EffectWarehouseSelect = (0, import_react51.memo)(function(props) {
7233
7223
  var handleClear = function handleClear() {
7234
7224
  onChange === null || onChange === void 0 ? void 0 : onChange(void 0, void 0);
7235
7225
  };
7236
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_antd39.Select, {
7226
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_antd38.Select, {
7237
7227
  className: (0, import_classnames14.default)(index_module_default19.select, className),
7238
7228
  placeholder: "\u8BF7\u9009\u62E9\u4ED3\u5E93",
7239
7229
  notFoundContent: state.isLoading ? "\u52A0\u8F7D\u4E2D..." : "\u6682\u65E0\u4ED3\u5E93\u6570\u636E",
@@ -7255,7 +7245,7 @@ var index_module_default20 = {
7255
7245
  select: "index_module_select6"
7256
7246
  };
7257
7247
  // src/EffectAddressCascade/index.tsx
7258
- var import_antd40 = require("antd");
7248
+ var import_antd39 = require("antd");
7259
7249
  var import_jsx_runtime48 = require("react/jsx-runtime");
7260
7250
  var EffectAddressCascade = (0, import_react52.memo)(function(props) {
7261
7251
  var _selectedList_;
@@ -7353,7 +7343,7 @@ var EffectAddressCascade = (0, import_react52.memo)(function(props) {
7353
7343
  setSelectedList(_selectedList);
7354
7344
  if (onChange) onChange(_selectedList);
7355
7345
  };
7356
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_antd40.Cascader, {
7346
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_antd39.Cascader, {
7357
7347
  className: (0, import_classnames15.default)(index_module_default20.input, className),
7358
7348
  disabled: disabled,
7359
7349
  defaultValue: defaultValue,
@@ -7437,7 +7427,7 @@ var index_module_default21 = {
7437
7427
  select: "index_module_select7"
7438
7428
  };
7439
7429
  // src/EffectLabelSelect/index.tsx
7440
- var import_antd41 = require("antd");
7430
+ var import_antd40 = require("antd");
7441
7431
  var import_jsx_runtime49 = require("react/jsx-runtime");
7442
7432
  var EffectLabelSelect = (0, import_react53.memo)(function(props) {
7443
7433
  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;
@@ -7528,12 +7518,12 @@ var EffectLabelSelect = (0, import_react53.memo)(function(props) {
7528
7518
  filterOption: false,
7529
7519
  popupMatchSelectWidth: false
7530
7520
  };
7531
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_antd41.Space.Compact, {
7521
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_antd40.Space.Compact, {
7532
7522
  className: index_module_default21.select_wrap,
7533
7523
  style: style,
7534
7524
  children: [
7535
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_antd41.Select, _object_spread({}, selectLabelProps)),
7536
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_antd41.Select, _object_spread({}, selectValueProps))
7525
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_antd40.Select, _object_spread({}, selectLabelProps)),
7526
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_antd40.Select, _object_spread({}, selectValueProps))
7537
7527
  ]
7538
7528
  });
7539
7529
  });