@xfe-repo/web-components 1.7.3 → 1.7.4

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.mjs CHANGED
@@ -4089,12 +4089,10 @@ import { Transfer, Typography as Typography2 } from "antd";
4089
4089
  import useSWRImmutable2 from "swr/immutable";
4090
4090
  function useBrandOptions(params) {
4091
4091
  var _useRequestConfig = useRequestConfig(), config = _useRequestConfig.config, apiService = _useRequestConfig.apiService;
4092
- var _useSWRImmutable2 = useSWRImmutable2(// 只有当 params 存在时才发起请求,避免无效请求
4093
- params != null ? [
4092
+ var _useSWRImmutable2 = useSWRImmutable2([
4094
4093
  "/product/brand/combo-box",
4095
4094
  params
4096
- ] : null, function(param) {
4097
- var _param = _sliced_to_array(param, 2), _params = _param[1];
4095
+ ], function() {
4098
4096
  return _async_to_generator(function() {
4099
4097
  var _res_data, res, options;
4100
4098
  return _ts_generator(this, function(_state) {
@@ -4105,7 +4103,7 @@ function useBrandOptions(params) {
4105
4103
  apiService.brandComboBox(_object_spread({
4106
4104
  page: 1,
4107
4105
  pageSize: 500
4108
- }, _params), config)
4106
+ }, params), config)
4109
4107
  ];
4110
4108
  case 1:
4111
4109
  res = _state.sent();
@@ -4432,15 +4430,22 @@ import { memo as memo25, useCallback as useCallback18, useState as useState19 }
4432
4430
  import { usePrevious as usePrevious4, useUpdateEffect as useUpdateEffect9 } from "react-use";
4433
4431
  import { debounce as debounce3 } from "@xfe-repo/web-utils/tools";
4434
4432
  import classnames8 from "classnames";
4435
- import { Select as Select4, Typography as Typography3 } from "antd";
4433
+ // src/EffectBrandSelect/index.module.less
4434
+ var index_module_default11 = {
4435
+ input: "index_module_input3",
4436
+ select: "index_module_select2"
4437
+ };
4438
+ // src/EffectBrandSelect/index.tsx
4439
+ import { Select as Select4 } from "antd";
4440
+ import { Typography as Typography3 } from "antd";
4436
4441
  // src/EffectSkuSelect/index.tsx
4437
4442
  import { memo as memo24, useCallback as useCallback17, useEffect as useEffect16, useMemo as useMemo14, useState as useState18 } from "react";
4438
4443
  import { useMount, useUpdateEffect as useUpdateEffect8, usePrevious as usePrevious3 } from "react-use";
4439
4444
  import { debounce as debounce2, uuid as uuid2 } from "@xfe-repo/web-utils/tools";
4440
4445
  import classnames7 from "classnames";
4441
4446
  // src/EffectSkuSelect/index.module.less
4442
- var index_module_default11 = {
4443
- input: "index_module_input3",
4447
+ var index_module_default12 = {
4448
+ input: "index_module_input4",
4444
4449
  image: "index_module_image",
4445
4450
  preview: "index_module_preview",
4446
4451
  icon: "index_module_icon",
@@ -4711,7 +4716,7 @@ var EffectSkuSelect = memo24(function(props) {
4711
4716
  }
4712
4717
  };
4713
4718
  return /* @__PURE__ */ jsx34(Select3, _object_spread({
4714
- className: classnames7(index_module_default11.input, className)
4719
+ className: classnames7(index_module_default12.input, className)
4715
4720
  }, selectBrandProps));
4716
4721
  });
4717
4722
  var SelectDropdown = memo24(function(props) {
@@ -4732,7 +4737,7 @@ var SelectDropdown = memo24(function(props) {
4732
4737
  }, []);
4733
4738
  return /* @__PURE__ */ jsx34("div", {
4734
4739
  id: selectDropdownId,
4735
- className: index_module_default11.select_dropdown,
4740
+ className: index_module_default12.select_dropdown,
4736
4741
  onMouseDown: handleMouseDown,
4737
4742
  children: /* @__PURE__ */ jsx34(InfiniteScroll, {
4738
4743
  dataLength: options.length,
@@ -4749,22 +4754,22 @@ var SelectDropdown = memo24(function(props) {
4749
4754
  scrollableTarget: selectDropdownId,
4750
4755
  scrollThreshold: "100px",
4751
4756
  children: /* @__PURE__ */ jsx34("div", {
4752
- className: index_module_default11.options,
4757
+ className: index_module_default12.options,
4753
4758
  children: options.map(function(item) {
4754
4759
  return /* @__PURE__ */ jsxs14("div", {
4755
- className: classnames7(index_module_default11.option, item.value === value && index_module_default11.active),
4760
+ className: classnames7(index_module_default12.option, item.value === value && index_module_default12.active),
4756
4761
  onClick: function onClick() {
4757
4762
  return handleOnSelect(item);
4758
4763
  },
4759
4764
  children: [
4760
4765
  /* @__PURE__ */ jsx34(ImageItem, {
4761
- className: index_module_default11.select_image,
4766
+ className: index_module_default12.select_image,
4762
4767
  item: item,
4763
4768
  previewed: item.image === previewImage2,
4764
4769
  onPreview: handlePreview
4765
4770
  }),
4766
4771
  /* @__PURE__ */ jsx34("p", {
4767
- className: index_module_default11.label,
4772
+ className: index_module_default12.label,
4768
4773
  children: item.label
4769
4774
  })
4770
4775
  ]
@@ -4785,7 +4790,7 @@ var ImageItem = memo24(function(props) {
4785
4790
  ]);
4786
4791
  var previewProps = useMemo14(function() {
4787
4792
  return {
4788
- maskClassName: "".concat(index_module_default11.item_mask_img),
4793
+ maskClassName: "".concat(index_module_default12.item_mask_img),
4789
4794
  visible: previewed,
4790
4795
  onVisibleChange: function onVisibleChange(value) {
4791
4796
  return !value && (onPreview === null || onPreview === void 0 ? void 0 : onPreview());
@@ -4796,16 +4801,16 @@ var ImageItem = memo24(function(props) {
4796
4801
  onPreview
4797
4802
  ]);
4798
4803
  return /* @__PURE__ */ jsxs14("div", {
4799
- className: classnames7(index_module_default11.image, className),
4804
+ className: classnames7(index_module_default12.image, className),
4800
4805
  children: [
4801
4806
  /* @__PURE__ */ jsxs14("div", {
4802
- className: index_module_default11.preview,
4807
+ className: index_module_default12.preview,
4803
4808
  onClick: function onClick(event) {
4804
4809
  return handlePreview(event);
4805
4810
  },
4806
4811
  children: [
4807
4812
  /* @__PURE__ */ jsx34(EyeOutlined2, {
4808
- className: index_module_default11.icon
4813
+ className: index_module_default12.icon
4809
4814
  }),
4810
4815
  " \u9884\u89C8"
4811
4816
  ]
@@ -4823,64 +4828,44 @@ var getNumberValue = function getNumberValue(value) {
4823
4828
  var numValue = Number(value);
4824
4829
  return Number.isNaN(numValue) ? void 0 : numValue;
4825
4830
  };
4826
- // src/EffectBrandSelect/index.module.less
4827
- var index_module_default12 = {
4828
- input: "index_module_input4",
4829
- select: "index_module_select2"
4830
- };
4831
4831
  // src/EffectBrandSelect/index.tsx
4832
4832
  import { jsx as jsx35 } from "react/jsx-runtime";
4833
- var OTHER_BRAND_OPTION = {
4834
- label: "\u5176\u5B83",
4835
- value: 1310
4836
- };
4837
4833
  var EffectBrandSelect = memo25(function(props) {
4838
- var onChange = props.onChange, className = props.className, defaultValue = props.defaultValue, controlValue = props.value, defaultLabel = props.defaultLabel, disabled = props.disabled, mode = props.mode, categoryId = props.categoryId, sysBizTypeId = props.sysBizTypeId, showOtherBrand = props.showOtherBrand, style = props.style;
4839
- var initialValue = controlValue !== null && controlValue !== void 0 ? controlValue : defaultValue;
4840
- var hasDefaultLabel = !!defaultLabel && initialValue !== void 0;
4834
+ 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;
4841
4835
  var _useState19 = _sliced_to_array(useState19(controlValue || defaultValue), 2), value = _useState19[0], setValue = _useState19[1];
4842
- var _useState191 = _sliced_to_array(useState19(function() {
4843
- if (hasDefaultLabel) return null;
4844
- return {
4845
- /** 兼容 props 分类 Id 异常传入 */ categoryId: getNumberValue(categoryId),
4846
- sysBizTypeId: sysBizTypeId,
4847
- brandId: initialValue === null || initialValue === void 0 ? void 0 : initialValue.toString()
4848
- };
4849
- }), 2), params = _useState191[0], setParams = _useState191[1];
4850
- var _useState192 = _sliced_to_array(useState19(hasDefaultLabel ? [
4851
- {
4852
- label: defaultLabel,
4853
- value: initialValue
4854
- }
4855
- ] : []), 2), options = _useState192[0], setOptions = _useState192[1];
4856
- var prevControlValue = usePrevious4(controlValue);
4857
- var state = useBrandOptions(params);
4858
4836
  var searchFetch = useCallback18(function(brandName, brandId) {
4837
+ if (brandId !== void 0) brandId = String(brandId);
4859
4838
  setParams({
4860
- /** 兼容 props 分类 Id 异常传入 */ categoryId: getNumberValue(categoryId),
4839
+ categoryId: getNumberValue(categoryId),
4861
4840
  sysBizTypeId: sysBizTypeId,
4862
- brandName: brandName || void 0,
4863
- brandId: brandId === null || brandId === void 0 ? void 0 : brandId.toString()
4841
+ brandName: brandName,
4842
+ brandId: brandId
4864
4843
  });
4865
4844
  }, [
4866
4845
  categoryId,
4867
4846
  sysBizTypeId
4868
4847
  ]);
4869
- var handleSearch = useCallback18(debounce3(800, function(searchName) {
4870
- return searchFetch(searchName);
4871
- }), [
4872
- searchFetch
4873
- ]);
4874
- var handleReset = useCallback18(function() {
4875
- return searchFetch("");
4876
- }, [
4877
- searchFetch
4878
- ]);
4848
+ var _useState191 = _sliced_to_array(useState19({
4849
+ /** 兼容props分类Id 异常传入 */ categoryId: getNumberValue(categoryId),
4850
+ sysBizTypeId: sysBizTypeId,
4851
+ brandName: "",
4852
+ brandId: value === null || value === void 0 ? void 0 : value.toString()
4853
+ }), 2), params = _useState191[0], setParams = _useState191[1];
4854
+ var prevControlValue = usePrevious4(controlValue);
4855
+ var state = useBrandOptions(params);
4856
+ var _useState192 = _sliced_to_array(useState19(state.data || []), 2), options = _useState192[0], setOptions = _useState192[1];
4879
4857
  useUpdateEffect9(function() {
4880
4858
  if (!state.data) return;
4881
- setOptions(showOtherBrand ? _to_consumable_array(state.data).concat([
4882
- OTHER_BRAND_OPTION
4883
- ]) : state.data);
4859
+ if (!showOtherBrand) {
4860
+ setOptions(state.data);
4861
+ } else {
4862
+ setOptions(state.data.concat([
4863
+ {
4864
+ label: "\u5176\u5B83",
4865
+ value: 1310
4866
+ }
4867
+ ]));
4868
+ }
4884
4869
  }, [
4885
4870
  state.data,
4886
4871
  showOtherBrand
@@ -4902,7 +4887,7 @@ var EffectBrandSelect = memo25(function(props) {
4902
4887
  }, [
4903
4888
  controlValue
4904
4889
  ]);
4905
- var handleChange = function handleChange(_value, _option) {
4890
+ var handleOnChange = function handleOnChange(_value, _option) {
4906
4891
  setValue(_value);
4907
4892
  if (mode === "multiple") {
4908
4893
  var options2 = _option;
@@ -4915,6 +4900,19 @@ var EffectBrandSelect = memo25(function(props) {
4915
4900
  onChange === null || onChange === void 0 ? void 0 : onChange(_value, option === null || option === void 0 ? void 0 : option.label);
4916
4901
  }
4917
4902
  };
4903
+ var handleOnDeselect = function handleOnDeselect(_value) {
4904
+ searchFetch("");
4905
+ };
4906
+ var handleOnSearch = function handleOnSearch(searchName) {
4907
+ return searchFetch(searchName);
4908
+ };
4909
+ var handleOnSearchDebounce = useCallback18(debounce3(800, handleOnSearch), [
4910
+ categoryId,
4911
+ sysBizTypeId
4912
+ ]);
4913
+ var handleOnClear = function handleOnClear() {
4914
+ return searchFetch("");
4915
+ };
4918
4916
  if (state.error) {
4919
4917
  var _state_error;
4920
4918
  return /* @__PURE__ */ jsx35(Typography3.Text, {
@@ -4922,34 +4920,53 @@ var EffectBrandSelect = memo25(function(props) {
4922
4920
  children: (_state_error = state.error) === null || _state_error === void 0 ? void 0 : _state_error.toString()
4923
4921
  });
4924
4922
  }
4925
- return /* @__PURE__ */ jsx35(Select4, {
4926
- className: classnames8(index_module_default12.input, className),
4923
+ var notFoundContent = state.isLoading ? "\u641C\u7D22\u4E2D" : "\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u54C1\u724C";
4924
+ var selectBrandProps = {
4927
4925
  popupMatchSelectWidth: false,
4928
- notFoundContent: state.isLoading ? "\u641C\u7D22\u4E2D" : "\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u54C1\u724C",
4926
+ notFoundContent: notFoundContent,
4929
4927
  placeholder: "\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0",
4930
4928
  optionFilterProp: "label",
4931
4929
  showSearch: true,
4932
4930
  allowClear: true,
4933
4931
  defaultActiveFirstOption: false,
4934
4932
  filterOption: false,
4935
- onChange: handleChange,
4936
- onSearch: handleSearch,
4937
- onDeselect: handleReset,
4938
- onClear: handleReset,
4933
+ onChange: handleOnChange,
4934
+ onSearch: handleOnSearchDebounce,
4935
+ onDeselect: handleOnDeselect,
4936
+ onClear: handleOnClear,
4939
4937
  loading: state.isLoading,
4940
4938
  value: value,
4941
4939
  options: options,
4942
4940
  disabled: disabled,
4943
4941
  mode: mode,
4944
4942
  style: style
4945
- });
4943
+ };
4944
+ return /* @__PURE__ */ jsx35(Select4, _object_spread({
4945
+ className: classnames8(index_module_default11.input, className)
4946
+ }, selectBrandProps));
4946
4947
  });
4947
4948
  // src/EffectSeriesSelect/index.tsx
4948
- import { memo as memo26, useCallback as useCallback19, useEffect as useEffect17, useMemo as useMemo15, useRef as useRef11, useState as useState20 } from "react";
4949
- import { Select as Select5 } from "antd";
4949
+ import { memo as memo26, useCallback as useCallback19, useState as useState20, useMemo as useMemo15, useEffect as useEffect17 } from "react";
4950
4950
  import { useMount as useMount2, usePrevious as usePrevious5, useUpdateEffect as useUpdateEffect10 } from "react-use";
4951
4951
  import { debounce as debounce4 } from "@xfe-repo/web-utils/tools";
4952
4952
  import classnames9 from "classnames";
4953
+ // src/EffectSeriesSelect/index.module.less
4954
+ var index_module_default13 = {
4955
+ input: "index_module_input5",
4956
+ hover: "index_module_hover",
4957
+ dropdown: "index_module_dropdown",
4958
+ img_opt: "index_module_img_opt",
4959
+ item: "index_module_item",
4960
+ icon_preview: "index_module_icon_preview",
4961
+ icon_eye: "index_module_icon_eye",
4962
+ item_img: "index_module_item_img",
4963
+ item_mask_img: "index_module_item_mask_img",
4964
+ item_label: "index_module_item_label",
4965
+ txt_opt: "index_module_txt_opt",
4966
+ active: "index_module_active2"
4967
+ };
4968
+ // src/EffectSeriesSelect/index.tsx
4969
+ import { Select as Select5 } from "antd";
4953
4970
  // src/EffectSeriesSelect/useSeriesOptions.ts
4954
4971
  import useSWRImmutable4 from "swr/immutable";
4955
4972
  function useSeriesOptions(params) {
@@ -4998,21 +5015,6 @@ function useSeriesOptions(params) {
4998
5015
  mutate: mutate
4999
5016
  };
5000
5017
  }
5001
- // src/EffectSeriesSelect/index.module.less
5002
- var index_module_default13 = {
5003
- input: "index_module_input5",
5004
- hover: "index_module_hover",
5005
- dropdown: "index_module_dropdown",
5006
- img_opt: "index_module_img_opt",
5007
- item: "index_module_item",
5008
- icon_preview: "index_module_icon_preview",
5009
- icon_eye: "index_module_icon_eye",
5010
- item_img: "index_module_item_img",
5011
- item_mask_img: "index_module_item_mask_img",
5012
- item_label: "index_module_item_label",
5013
- txt_opt: "index_module_txt_opt",
5014
- active: "index_module_active2"
5015
- };
5016
5018
  // src/EffectSeriesSelect/index.tsx
5017
5019
  import { jsx as jsx36 } from "react/jsx-runtime";
5018
5020
  var EffectSeriesSelect = memo26(function(props) {
@@ -5021,11 +5023,13 @@ var EffectSeriesSelect = memo26(function(props) {
5021
5023
  var _useState201 = _sliced_to_array(useState20([]), 2), options = _useState201[0], setOptions = _useState201[1];
5022
5024
  var _useState202 = _sliced_to_array(useState20(controlValue || defaultValue), 2), value = _useState202[0], setValue = _useState202[1];
5023
5025
  var _useState203 = _sliced_to_array(useState20(""), 2), searchValue = _useState203[0], setSearchValue = _useState203[1];
5024
- var pageData = useRef11({
5025
- page: 1,
5026
- pageSize: 12,
5027
- hasMore: true
5028
- });
5026
+ var pageData = useMemo15(function() {
5027
+ return {
5028
+ page: 1,
5029
+ pageSize: 12,
5030
+ hasMore: true
5031
+ };
5032
+ }, []);
5029
5033
  var conditions = useMemo15(function() {
5030
5034
  return {
5031
5035
  categoryId: categoryId,
@@ -5035,30 +5039,29 @@ var EffectSeriesSelect = memo26(function(props) {
5035
5039
  categoryId,
5036
5040
  brandId
5037
5041
  ]);
5042
+ var searchFetch = useCallback19(function(params2) {
5043
+ var page = params2.page, searchValue2 = params2.searchValue, conditions2 = params2.conditions, value2 = params2.value;
5044
+ var pageSize = pageData.pageSize;
5045
+ var id = getNumberValue(value2);
5046
+ var serviceParams = _object_spread_props(_object_spread({}, conditions2), {
5047
+ id: id,
5048
+ seriesName: searchValue2,
5049
+ page: page,
5050
+ pageSize: pageSize
5051
+ });
5052
+ setParams(serviceParams);
5053
+ }, []);
5038
5054
  var _useState204 = _sliced_to_array(useState20({
5039
5055
  categoryId: categoryId,
5040
5056
  brandId: brandId,
5041
- /** 兼容 props 分类 Id 异常传入 */ id: getNumberValue(value),
5057
+ /** 兼容props分类Id 异常传入 */ id: getNumberValue(value),
5042
5058
  seriesName: searchValue,
5043
- page: pageData.current.page,
5044
- pageSize: pageData.current.pageSize
5059
+ page: pageData.page,
5060
+ pageSize: pageData.pageSize
5045
5061
  }), 2), params = _useState204[0], setParams = _useState204[1];
5046
5062
  var state = useSeriesOptions(params);
5047
5063
  var prevControlValue = usePrevious5(controlValue);
5048
- var searchFetch = useCallback19(function(fetchParams) {
5049
- var page = fetchParams.page, searchValue2 = fetchParams.searchValue, conditions2 = fetchParams.conditions, value2 = fetchParams.value;
5050
- var pageSize = pageData.current.pageSize;
5051
- var id = getNumberValue(value2);
5052
- setParams(_object_spread_props(_object_spread({}, conditions2), {
5053
- id: id,
5054
- seriesName: searchValue2,
5055
- page: page,
5056
- pageSize: pageSize
5057
- }));
5058
- }, []);
5059
- var debounceSearchFetch = useMemo15(function() {
5060
- return debounce4(300, searchFetch);
5061
- }, [
5064
+ var debounceSearchFetch = useCallback19(debounce4(300, searchFetch), [
5062
5065
  searchFetch
5063
5066
  ]);
5064
5067
  useEffect17(function() {
@@ -5074,12 +5077,9 @@ var EffectSeriesSelect = memo26(function(props) {
5074
5077
  brandId: brandId
5075
5078
  };
5076
5079
  });
5077
- var isFirstPage = state.data.page === 1;
5078
- pageData.current.page = state.data.page;
5079
- pageData.current.hasMore = pageData.current.pageSize * pageData.current.page < state.data.total && newOptions.length > 0;
5080
- setOptions(function(prev) {
5081
- return isFirstPage ? newOptions : _to_consumable_array(prev).concat(_to_consumable_array(newOptions));
5082
- });
5080
+ pageData.page = state.data.page;
5081
+ pageData.page === 1 ? setOptions(newOptions) : setOptions(_to_consumable_array(options).concat(_to_consumable_array(newOptions)));
5082
+ pageData.hasMore = pageData.pageSize * pageData.page < state.data.total && newOptions.length > 0;
5083
5083
  }, [
5084
5084
  state.data
5085
5085
  ]);
@@ -5116,8 +5116,8 @@ var EffectSeriesSelect = memo26(function(props) {
5116
5116
  searchValue,
5117
5117
  conditions
5118
5118
  ]);
5119
- var handleOnSearch = useCallback19(function(text) {
5120
- return setSearchValue(text);
5119
+ var handleOnSearch = useCallback19(function(value2) {
5120
+ return setSearchValue(value2);
5121
5121
  }, []);
5122
5122
  var handleOnClear = useCallback19(function() {
5123
5123
  return setSearchValue("");
@@ -5130,7 +5130,7 @@ var EffectSeriesSelect = memo26(function(props) {
5130
5130
  return [
5131
5131
  4,
5132
5132
  searchFetch({
5133
- page: pageData.current.page + 1,
5133
+ page: pageData.page + 1,
5134
5134
  value: value,
5135
5135
  searchValue: searchValue,
5136
5136
  conditions: conditions
@@ -5149,11 +5149,11 @@ var EffectSeriesSelect = memo26(function(props) {
5149
5149
  searchValue,
5150
5150
  conditions
5151
5151
  ]);
5152
- var handleOnChange = useCallback19(function(newValue, option) {
5152
+ var handleOnChange = useCallback19(function(value2, option) {
5153
5153
  var label = (option || {}).label;
5154
- var numValue = getNumberValue(newValue);
5155
- setValue(numValue);
5156
- onChange === null || onChange === void 0 ? void 0 : onChange(numValue, label);
5154
+ value2 = getNumberValue(value2);
5155
+ setValue(value2);
5156
+ onChange === null || onChange === void 0 ? void 0 : onChange(value2, label);
5157
5157
  setOpenDropDown(false);
5158
5158
  }, [
5159
5159
  onChange
@@ -5163,25 +5163,27 @@ var EffectSeriesSelect = memo26(function(props) {
5163
5163
  if (options.length) return "\u6CA1\u6709\u66F4\u591A\u4E86~";
5164
5164
  return "\u6682\u65E0\u6570\u636E";
5165
5165
  }, [
5166
- state.isLoading,
5167
- options.length
5166
+ state,
5167
+ options,
5168
+ brandId
5168
5169
  ]);
5169
5170
  var popupRender = useCallback19(function(_menu) {
5170
5171
  return /* @__PURE__ */ jsx36(SelectDropdown, {
5171
5172
  value: value,
5172
5173
  options: options,
5173
5174
  onLoadMore: handleOnLoadMore,
5174
- hasMore: pageData.current.hasMore,
5175
+ hasMore: pageData.hasMore,
5175
5176
  noMoreText: noMoreText,
5176
5177
  onChange: handleOnChange
5177
5178
  });
5178
5179
  }, [
5179
5180
  value,
5180
5181
  options,
5182
+ state,
5181
5183
  noMoreText,
5182
5184
  handleOnChange
5183
5185
  ]);
5184
- var selectProps = {
5186
+ var selectBrandProps = {
5185
5187
  popupMatchSelectWidth: false,
5186
5188
  placeholder: "\u8BF7\u8F93\u5165\u7CFB\u5217\u540D\u79F0",
5187
5189
  optionFilterProp: "label",
@@ -5206,7 +5208,7 @@ var EffectSeriesSelect = memo26(function(props) {
5206
5208
  };
5207
5209
  return /* @__PURE__ */ jsx36(Select5, _object_spread({
5208
5210
  className: classnames9(index_module_default13.input, className)
5209
- }, selectProps));
5211
+ }, selectBrandProps));
5210
5212
  });
5211
5213
  // src/EffectSpuSelect/index.tsx
5212
5214
  import { memo as memo27, useCallback as useCallback20, useEffect as useEffect18, useMemo as useMemo16, useState as useState21 } from "react";
@@ -5747,7 +5749,7 @@ var EffectSkuTable = memo28(function(props) {
5747
5749
  }));
5748
5750
  });
5749
5751
  // src/EffectWithFilePanel/index.tsx
5750
- import { memo as memo29, useRef as useRef12, useState as useState23 } from "react";
5752
+ import { memo as memo29, useRef as useRef11, useState as useState23 } from "react";
5751
5753
  // src/EffectWithFilePanel/index.module.less
5752
5754
  var index_module_default15 = {
5753
5755
  accept: "index_module_accept"
@@ -5760,7 +5762,7 @@ var EffectWithFilePanel = memo29(function(props) {
5760
5762
  var _useState23 = _sliced_to_array(useState23(false), 2), uploadLoading = _useState23[0], setUploadLoading = _useState23[1];
5761
5763
  var _useState231 = _sliced_to_array(useState23(disabled ? "\u786E\u5B9A" : "\u4FDD\u5B58"), 2), submitText = _useState231[0], setSubmitText = _useState231[1];
5762
5764
  var drawerTitle = title || (disabled ? "\u67E5\u770B\u9644\u4EF6" : "\u4E0A\u4F20\u9644\u4EF6");
5763
- var uploadRef = useRef12(null);
5765
+ var uploadRef = useRef11(null);
5764
5766
  var handleCLose = function handleCLose() {
5765
5767
  if (!uploadLoading) return true;
5766
5768
  return new Promise(function(resolve) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-components",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "module": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": [