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