@xfe-repo/web-components 1.7.4 → 1.7.6

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
@@ -2866,7 +2866,7 @@ var Counter = function Counter(param) {
2866
2866
  // src/Currency/index.tsx
2867
2867
  import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
2868
2868
  var Currency = function Currency(props) {
2869
- var _props_unit = props.unit, unit = _props_unit === void 0 ? "fen" : _props_unit, _props_toFixed = props.toFixed, toFixed = _props_toFixed === void 0 ? 2 : _props_toFixed, children = props.children, className = props.className;
2869
+ var _props_unit = props.unit, unit = _props_unit === void 0 ? "fen" : _props_unit, _props_priceUnit = props.priceUnit, priceUnit = _props_priceUnit === void 0 ? "\uFFE5" : _props_priceUnit, _props_toFixed = props.toFixed, toFixed = _props_toFixed === void 0 ? 2 : _props_toFixed, children = props.children, className = props.className;
2870
2870
  if (children === void 0 || children === null) return /* @__PURE__ */ jsx23("span", {
2871
2871
  className: className,
2872
2872
  children: "--"
@@ -2874,7 +2874,8 @@ var Currency = function Currency(props) {
2874
2874
  if (children.toString().includes("*")) return /* @__PURE__ */ jsxs8("span", {
2875
2875
  className: className,
2876
2876
  children: [
2877
- "\uFFE5 ",
2877
+ priceUnit,
2878
+ " ",
2878
2879
  children
2879
2880
  ]
2880
2881
  });
@@ -2887,7 +2888,7 @@ var Currency = function Currency(props) {
2887
2888
  return /* @__PURE__ */ jsxs8("span", {
2888
2889
  className: className,
2889
2890
  children: [
2890
- "\uFFE5",
2891
+ priceUnit,
2891
2892
  priceDic[unit].toFixed(toFixed)
2892
2893
  ]
2893
2894
  });
@@ -4428,24 +4429,17 @@ import { Table as Table3 } from "antd";
4428
4429
  // src/EffectBrandSelect/index.tsx
4429
4430
  import { memo as memo25, useCallback as useCallback18, useState as useState19 } from "react";
4430
4431
  import { usePrevious as usePrevious4, useUpdateEffect as useUpdateEffect9 } from "react-use";
4431
- import { debounce as debounce3 } from "@xfe-repo/web-utils/tools";
4432
+ import { Select as Select4, Typography as Typography3 } from "antd";
4432
4433
  import classnames8 from "classnames";
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";
4434
+ import { debounce as debounce3 } from "@xfe-repo/web-utils/tools";
4441
4435
  // src/EffectSkuSelect/index.tsx
4442
4436
  import { memo as memo24, useCallback as useCallback17, useEffect as useEffect16, useMemo as useMemo14, useState as useState18 } from "react";
4443
4437
  import { useMount, useUpdateEffect as useUpdateEffect8, usePrevious as usePrevious3 } from "react-use";
4444
4438
  import { debounce as debounce2, uuid as uuid2 } from "@xfe-repo/web-utils/tools";
4445
4439
  import classnames7 from "classnames";
4446
4440
  // src/EffectSkuSelect/index.module.less
4447
- var index_module_default12 = {
4448
- input: "index_module_input4",
4441
+ var index_module_default11 = {
4442
+ input: "index_module_input3",
4449
4443
  image: "index_module_image",
4450
4444
  preview: "index_module_preview",
4451
4445
  icon: "index_module_icon",
@@ -4716,7 +4710,7 @@ var EffectSkuSelect = memo24(function(props) {
4716
4710
  }
4717
4711
  };
4718
4712
  return /* @__PURE__ */ jsx34(Select3, _object_spread({
4719
- className: classnames7(index_module_default12.input, className)
4713
+ className: classnames7(index_module_default11.input, className)
4720
4714
  }, selectBrandProps));
4721
4715
  });
4722
4716
  var SelectDropdown = memo24(function(props) {
@@ -4737,7 +4731,7 @@ var SelectDropdown = memo24(function(props) {
4737
4731
  }, []);
4738
4732
  return /* @__PURE__ */ jsx34("div", {
4739
4733
  id: selectDropdownId,
4740
- className: index_module_default12.select_dropdown,
4734
+ className: index_module_default11.select_dropdown,
4741
4735
  onMouseDown: handleMouseDown,
4742
4736
  children: /* @__PURE__ */ jsx34(InfiniteScroll, {
4743
4737
  dataLength: options.length,
@@ -4754,22 +4748,22 @@ var SelectDropdown = memo24(function(props) {
4754
4748
  scrollableTarget: selectDropdownId,
4755
4749
  scrollThreshold: "100px",
4756
4750
  children: /* @__PURE__ */ jsx34("div", {
4757
- className: index_module_default12.options,
4751
+ className: index_module_default11.options,
4758
4752
  children: options.map(function(item) {
4759
4753
  return /* @__PURE__ */ jsxs14("div", {
4760
- className: classnames7(index_module_default12.option, item.value === value && index_module_default12.active),
4754
+ className: classnames7(index_module_default11.option, item.value === value && index_module_default11.active),
4761
4755
  onClick: function onClick() {
4762
4756
  return handleOnSelect(item);
4763
4757
  },
4764
4758
  children: [
4765
4759
  /* @__PURE__ */ jsx34(ImageItem, {
4766
- className: index_module_default12.select_image,
4760
+ className: index_module_default11.select_image,
4767
4761
  item: item,
4768
4762
  previewed: item.image === previewImage2,
4769
4763
  onPreview: handlePreview
4770
4764
  }),
4771
4765
  /* @__PURE__ */ jsx34("p", {
4772
- className: index_module_default12.label,
4766
+ className: index_module_default11.label,
4773
4767
  children: item.label
4774
4768
  })
4775
4769
  ]
@@ -4790,7 +4784,7 @@ var ImageItem = memo24(function(props) {
4790
4784
  ]);
4791
4785
  var previewProps = useMemo14(function() {
4792
4786
  return {
4793
- maskClassName: "".concat(index_module_default12.item_mask_img),
4787
+ maskClassName: "".concat(index_module_default11.item_mask_img),
4794
4788
  visible: previewed,
4795
4789
  onVisibleChange: function onVisibleChange(value) {
4796
4790
  return !value && (onPreview === null || onPreview === void 0 ? void 0 : onPreview());
@@ -4801,16 +4795,16 @@ var ImageItem = memo24(function(props) {
4801
4795
  onPreview
4802
4796
  ]);
4803
4797
  return /* @__PURE__ */ jsxs14("div", {
4804
- className: classnames7(index_module_default12.image, className),
4798
+ className: classnames7(index_module_default11.image, className),
4805
4799
  children: [
4806
4800
  /* @__PURE__ */ jsxs14("div", {
4807
- className: index_module_default12.preview,
4801
+ className: index_module_default11.preview,
4808
4802
  onClick: function onClick(event) {
4809
4803
  return handlePreview(event);
4810
4804
  },
4811
4805
  children: [
4812
4806
  /* @__PURE__ */ jsx34(EyeOutlined2, {
4813
- className: index_module_default12.icon
4807
+ className: index_module_default11.icon
4814
4808
  }),
4815
4809
  " \u9884\u89C8"
4816
4810
  ]
@@ -4828,44 +4822,55 @@ var getNumberValue = function getNumberValue(value) {
4828
4822
  var numValue = Number(value);
4829
4823
  return Number.isNaN(numValue) ? void 0 : numValue;
4830
4824
  };
4825
+ // src/EffectBrandSelect/index.module.less
4826
+ var index_module_default12 = {
4827
+ input: "index_module_input4",
4828
+ select: "index_module_select2"
4829
+ };
4831
4830
  // src/EffectBrandSelect/index.tsx
4832
4831
  import { jsx as jsx35 } from "react/jsx-runtime";
4832
+ var OTHER_BRAND_OPTION = {
4833
+ label: "\u5176\u5B83",
4834
+ value: 1310
4835
+ };
4833
4836
  var EffectBrandSelect = memo25(function(props) {
4837
+ var _state_data;
4834
4838
  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;
4835
- var _useState19 = _sliced_to_array(useState19(controlValue || defaultValue), 2), value = _useState19[0], setValue = _useState19[1];
4839
+ var _useState19 = _sliced_to_array(useState19(controlValue !== null && controlValue !== void 0 ? controlValue : defaultValue), 2), value = _useState19[0], setValue = _useState19[1];
4840
+ var _useState191 = _sliced_to_array(useState19({
4841
+ /** 兼容 props 分类 Id 异常传入 */ categoryId: getNumberValue(categoryId),
4842
+ sysBizTypeId: sysBizTypeId,
4843
+ brandId: value === null || value === void 0 ? void 0 : value.toString()
4844
+ }), 2), params = _useState191[0], setParams = _useState191[1];
4845
+ var prevControlValue = usePrevious4(controlValue);
4846
+ var state = useBrandOptions(params);
4847
+ var _useState192 = _sliced_to_array(useState19((_state_data = state.data) !== null && _state_data !== void 0 ? _state_data : []), 2), options = _useState192[0], setOptions = _useState192[1];
4836
4848
  var searchFetch = useCallback18(function(brandName, brandId) {
4837
- if (brandId !== void 0) brandId = String(brandId);
4838
4849
  setParams({
4839
- categoryId: getNumberValue(categoryId),
4850
+ /** 兼容 props 分类 Id 异常传入 */ categoryId: getNumberValue(categoryId),
4840
4851
  sysBizTypeId: sysBizTypeId,
4841
- brandName: brandName,
4842
- brandId: brandId
4852
+ brandName: brandName || void 0,
4853
+ brandId: brandId === null || brandId === void 0 ? void 0 : brandId.toString()
4843
4854
  });
4844
4855
  }, [
4845
4856
  categoryId,
4846
4857
  sysBizTypeId
4847
4858
  ]);
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];
4859
+ var handleSearch = useCallback18(debounce3(800, function(searchName) {
4860
+ return searchFetch(searchName);
4861
+ }), [
4862
+ searchFetch
4863
+ ]);
4864
+ var handleReset = useCallback18(function() {
4865
+ return searchFetch("");
4866
+ }, [
4867
+ searchFetch
4868
+ ]);
4857
4869
  useUpdateEffect9(function() {
4858
4870
  if (!state.data) return;
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
- }
4871
+ setOptions(showOtherBrand ? _to_consumable_array(state.data).concat([
4872
+ OTHER_BRAND_OPTION
4873
+ ]) : state.data);
4869
4874
  }, [
4870
4875
  state.data,
4871
4876
  showOtherBrand
@@ -4887,32 +4892,22 @@ var EffectBrandSelect = memo25(function(props) {
4887
4892
  }, [
4888
4893
  controlValue
4889
4894
  ]);
4890
- var handleOnChange = function handleOnChange(_value, _option) {
4895
+ var handleChange = useCallback18(function(_value, _option) {
4891
4896
  setValue(_value);
4892
4897
  if (mode === "multiple") {
4893
- var options2 = _option;
4894
- var labels = options2 === null || options2 === void 0 ? void 0 : options2.map(function(option) {
4895
- return option.label;
4898
+ var selectedOptions = _option;
4899
+ var labels = selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.map(function(opt) {
4900
+ return opt.label;
4896
4901
  }).join(">>>");
4897
4902
  onChange === null || onChange === void 0 ? void 0 : onChange(_value, labels);
4898
4903
  } else {
4899
- var option = _option;
4900
- onChange === null || onChange === void 0 ? void 0 : onChange(_value, option === null || option === void 0 ? void 0 : option.label);
4904
+ var selectedOption = _option;
4905
+ onChange === null || onChange === void 0 ? void 0 : onChange(_value, selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label);
4901
4906
  }
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
4907
+ }, [
4908
+ mode,
4909
+ onChange
4912
4910
  ]);
4913
- var handleOnClear = function handleOnClear() {
4914
- return searchFetch("");
4915
- };
4916
4911
  if (state.error) {
4917
4912
  var _state_error;
4918
4913
  return /* @__PURE__ */ jsx35(Typography3.Text, {
@@ -4920,53 +4915,34 @@ var EffectBrandSelect = memo25(function(props) {
4920
4915
  children: (_state_error = state.error) === null || _state_error === void 0 ? void 0 : _state_error.toString()
4921
4916
  });
4922
4917
  }
4923
- var notFoundContent = state.isLoading ? "\u641C\u7D22\u4E2D" : "\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u54C1\u724C";
4924
- var selectBrandProps = {
4918
+ return /* @__PURE__ */ jsx35(Select4, {
4919
+ className: classnames8(index_module_default12.input, className),
4925
4920
  popupMatchSelectWidth: false,
4926
- notFoundContent: notFoundContent,
4921
+ notFoundContent: state.isLoading ? "\u641C\u7D22\u4E2D" : "\u672A\u67E5\u8BE2\u5230\u76F8\u5173\u54C1\u724C",
4927
4922
  placeholder: "\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0",
4928
4923
  optionFilterProp: "label",
4929
4924
  showSearch: true,
4930
4925
  allowClear: true,
4931
4926
  defaultActiveFirstOption: false,
4932
4927
  filterOption: false,
4933
- onChange: handleOnChange,
4934
- onSearch: handleOnSearchDebounce,
4935
- onDeselect: handleOnDeselect,
4936
- onClear: handleOnClear,
4928
+ onChange: handleChange,
4929
+ onSearch: handleSearch,
4930
+ onDeselect: handleReset,
4931
+ onClear: handleReset,
4937
4932
  loading: state.isLoading,
4938
4933
  value: value,
4939
4934
  options: options,
4940
4935
  disabled: disabled,
4941
4936
  mode: mode,
4942
4937
  style: style
4943
- };
4944
- return /* @__PURE__ */ jsx35(Select4, _object_spread({
4945
- className: classnames8(index_module_default11.input, className)
4946
- }, selectBrandProps));
4938
+ });
4947
4939
  });
4948
4940
  // src/EffectSeriesSelect/index.tsx
4949
- import { memo as memo26, useCallback as useCallback19, useState as useState20, useMemo as useMemo15, useEffect as useEffect17 } from "react";
4941
+ import { memo as memo26, useCallback as useCallback19, useEffect as useEffect17, useMemo as useMemo15, useRef as useRef11, useState as useState20 } from "react";
4942
+ import { Select as Select5 } from "antd";
4950
4943
  import { useMount as useMount2, usePrevious as usePrevious5, useUpdateEffect as useUpdateEffect10 } from "react-use";
4951
4944
  import { debounce as debounce4 } from "@xfe-repo/web-utils/tools";
4952
4945
  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";
4970
4946
  // src/EffectSeriesSelect/useSeriesOptions.ts
4971
4947
  import useSWRImmutable4 from "swr/immutable";
4972
4948
  function useSeriesOptions(params) {
@@ -5015,6 +4991,21 @@ function useSeriesOptions(params) {
5015
4991
  mutate: mutate
5016
4992
  };
5017
4993
  }
4994
+ // src/EffectSeriesSelect/index.module.less
4995
+ var index_module_default13 = {
4996
+ input: "index_module_input5",
4997
+ hover: "index_module_hover",
4998
+ dropdown: "index_module_dropdown",
4999
+ img_opt: "index_module_img_opt",
5000
+ item: "index_module_item",
5001
+ icon_preview: "index_module_icon_preview",
5002
+ icon_eye: "index_module_icon_eye",
5003
+ item_img: "index_module_item_img",
5004
+ item_mask_img: "index_module_item_mask_img",
5005
+ item_label: "index_module_item_label",
5006
+ txt_opt: "index_module_txt_opt",
5007
+ active: "index_module_active2"
5008
+ };
5018
5009
  // src/EffectSeriesSelect/index.tsx
5019
5010
  import { jsx as jsx36 } from "react/jsx-runtime";
5020
5011
  var EffectSeriesSelect = memo26(function(props) {
@@ -5023,13 +5014,11 @@ var EffectSeriesSelect = memo26(function(props) {
5023
5014
  var _useState201 = _sliced_to_array(useState20([]), 2), options = _useState201[0], setOptions = _useState201[1];
5024
5015
  var _useState202 = _sliced_to_array(useState20(controlValue || defaultValue), 2), value = _useState202[0], setValue = _useState202[1];
5025
5016
  var _useState203 = _sliced_to_array(useState20(""), 2), searchValue = _useState203[0], setSearchValue = _useState203[1];
5026
- var pageData = useMemo15(function() {
5027
- return {
5028
- page: 1,
5029
- pageSize: 12,
5030
- hasMore: true
5031
- };
5032
- }, []);
5017
+ var pageData = useRef11({
5018
+ page: 1,
5019
+ pageSize: 12,
5020
+ hasMore: true
5021
+ });
5033
5022
  var conditions = useMemo15(function() {
5034
5023
  return {
5035
5024
  categoryId: categoryId,
@@ -5039,29 +5028,30 @@ var EffectSeriesSelect = memo26(function(props) {
5039
5028
  categoryId,
5040
5029
  brandId
5041
5030
  ]);
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
- }, []);
5054
5031
  var _useState204 = _sliced_to_array(useState20({
5055
5032
  categoryId: categoryId,
5056
5033
  brandId: brandId,
5057
- /** 兼容props分类Id 异常传入 */ id: getNumberValue(value),
5034
+ /** 兼容 props 分类 Id 异常传入 */ id: getNumberValue(value),
5058
5035
  seriesName: searchValue,
5059
- page: pageData.page,
5060
- pageSize: pageData.pageSize
5036
+ page: pageData.current.page,
5037
+ pageSize: pageData.current.pageSize
5061
5038
  }), 2), params = _useState204[0], setParams = _useState204[1];
5062
5039
  var state = useSeriesOptions(params);
5063
5040
  var prevControlValue = usePrevious5(controlValue);
5064
- var debounceSearchFetch = useCallback19(debounce4(300, searchFetch), [
5041
+ var searchFetch = useCallback19(function(fetchParams) {
5042
+ var page = fetchParams.page, searchValue2 = fetchParams.searchValue, conditions2 = fetchParams.conditions, value2 = fetchParams.value;
5043
+ var pageSize = pageData.current.pageSize;
5044
+ var id = getNumberValue(value2);
5045
+ setParams(_object_spread_props(_object_spread({}, conditions2), {
5046
+ id: id,
5047
+ seriesName: searchValue2,
5048
+ page: page,
5049
+ pageSize: pageSize
5050
+ }));
5051
+ }, []);
5052
+ var debounceSearchFetch = useMemo15(function() {
5053
+ return debounce4(300, searchFetch);
5054
+ }, [
5065
5055
  searchFetch
5066
5056
  ]);
5067
5057
  useEffect17(function() {
@@ -5077,9 +5067,12 @@ var EffectSeriesSelect = memo26(function(props) {
5077
5067
  brandId: brandId
5078
5068
  };
5079
5069
  });
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;
5070
+ var isFirstPage = state.data.page === 1;
5071
+ pageData.current.page = state.data.page;
5072
+ pageData.current.hasMore = pageData.current.pageSize * pageData.current.page < state.data.total && newOptions.length > 0;
5073
+ setOptions(function(prev) {
5074
+ return isFirstPage ? newOptions : _to_consumable_array(prev).concat(_to_consumable_array(newOptions));
5075
+ });
5083
5076
  }, [
5084
5077
  state.data
5085
5078
  ]);
@@ -5116,8 +5109,8 @@ var EffectSeriesSelect = memo26(function(props) {
5116
5109
  searchValue,
5117
5110
  conditions
5118
5111
  ]);
5119
- var handleOnSearch = useCallback19(function(value2) {
5120
- return setSearchValue(value2);
5112
+ var handleOnSearch = useCallback19(function(text) {
5113
+ return setSearchValue(text);
5121
5114
  }, []);
5122
5115
  var handleOnClear = useCallback19(function() {
5123
5116
  return setSearchValue("");
@@ -5130,7 +5123,7 @@ var EffectSeriesSelect = memo26(function(props) {
5130
5123
  return [
5131
5124
  4,
5132
5125
  searchFetch({
5133
- page: pageData.page + 1,
5126
+ page: pageData.current.page + 1,
5134
5127
  value: value,
5135
5128
  searchValue: searchValue,
5136
5129
  conditions: conditions
@@ -5149,11 +5142,11 @@ var EffectSeriesSelect = memo26(function(props) {
5149
5142
  searchValue,
5150
5143
  conditions
5151
5144
  ]);
5152
- var handleOnChange = useCallback19(function(value2, option) {
5145
+ var handleOnChange = useCallback19(function(newValue, option) {
5153
5146
  var label = (option || {}).label;
5154
- value2 = getNumberValue(value2);
5155
- setValue(value2);
5156
- onChange === null || onChange === void 0 ? void 0 : onChange(value2, label);
5147
+ var numValue = getNumberValue(newValue);
5148
+ setValue(numValue);
5149
+ onChange === null || onChange === void 0 ? void 0 : onChange(numValue, label);
5157
5150
  setOpenDropDown(false);
5158
5151
  }, [
5159
5152
  onChange
@@ -5163,27 +5156,25 @@ var EffectSeriesSelect = memo26(function(props) {
5163
5156
  if (options.length) return "\u6CA1\u6709\u66F4\u591A\u4E86~";
5164
5157
  return "\u6682\u65E0\u6570\u636E";
5165
5158
  }, [
5166
- state,
5167
- options,
5168
- brandId
5159
+ state.isLoading,
5160
+ options.length
5169
5161
  ]);
5170
5162
  var popupRender = useCallback19(function(_menu) {
5171
5163
  return /* @__PURE__ */ jsx36(SelectDropdown, {
5172
5164
  value: value,
5173
5165
  options: options,
5174
5166
  onLoadMore: handleOnLoadMore,
5175
- hasMore: pageData.hasMore,
5167
+ hasMore: pageData.current.hasMore,
5176
5168
  noMoreText: noMoreText,
5177
5169
  onChange: handleOnChange
5178
5170
  });
5179
5171
  }, [
5180
5172
  value,
5181
5173
  options,
5182
- state,
5183
5174
  noMoreText,
5184
5175
  handleOnChange
5185
5176
  ]);
5186
- var selectBrandProps = {
5177
+ var selectProps = {
5187
5178
  popupMatchSelectWidth: false,
5188
5179
  placeholder: "\u8BF7\u8F93\u5165\u7CFB\u5217\u540D\u79F0",
5189
5180
  optionFilterProp: "label",
@@ -5208,7 +5199,7 @@ var EffectSeriesSelect = memo26(function(props) {
5208
5199
  };
5209
5200
  return /* @__PURE__ */ jsx36(Select5, _object_spread({
5210
5201
  className: classnames9(index_module_default13.input, className)
5211
- }, selectBrandProps));
5202
+ }, selectProps));
5212
5203
  });
5213
5204
  // src/EffectSpuSelect/index.tsx
5214
5205
  import { memo as memo27, useCallback as useCallback20, useEffect as useEffect18, useMemo as useMemo16, useState as useState21 } from "react";
@@ -5749,7 +5740,7 @@ var EffectSkuTable = memo28(function(props) {
5749
5740
  }));
5750
5741
  });
5751
5742
  // src/EffectWithFilePanel/index.tsx
5752
- import { memo as memo29, useRef as useRef11, useState as useState23 } from "react";
5743
+ import { memo as memo29, useRef as useRef12, useState as useState23 } from "react";
5753
5744
  // src/EffectWithFilePanel/index.module.less
5754
5745
  var index_module_default15 = {
5755
5746
  accept: "index_module_accept"
@@ -5762,7 +5753,7 @@ var EffectWithFilePanel = memo29(function(props) {
5762
5753
  var _useState23 = _sliced_to_array(useState23(false), 2), uploadLoading = _useState23[0], setUploadLoading = _useState23[1];
5763
5754
  var _useState231 = _sliced_to_array(useState23(disabled ? "\u786E\u5B9A" : "\u4FDD\u5B58"), 2), submitText = _useState231[0], setSubmitText = _useState231[1];
5764
5755
  var drawerTitle = title || (disabled ? "\u67E5\u770B\u9644\u4EF6" : "\u4E0A\u4F20\u9644\u4EF6");
5765
- var uploadRef = useRef11(null);
5756
+ var uploadRef = useRef12(null);
5766
5757
  var handleCLose = function handleCLose() {
5767
5758
  if (!uploadLoading) return true;
5768
5759
  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.4",
3
+ "version": "1.7.6",
4
4
  "module": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": [
@@ -62,9 +62,9 @@
62
62
  "react-dom": "18.2.0",
63
63
  "react-use": "^17.5.1",
64
64
  "swr": "^2.2.5",
65
+ "@xfe-repo/web-service": "1.6.0",
65
66
  "@xfe-repo/web-micro": "1.7.0",
66
67
  "@xfe-repo/web-router": "1.6.1",
67
- "@xfe-repo/web-service": "1.6.0",
68
68
  "@xfe-repo/web-utils": "1.6.0"
69
69
  },
70
70
  "publishConfig": {