@xfe-repo/web-components 1.7.2 → 1.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -348,16 +348,8 @@
348
348
  min-width: 120px;
349
349
  }
350
350
 
351
- /* src/EffectBrandSelect/index.module.less */
352
- .index_module_input3 {
353
- width: 100%;
354
- }
355
- .index_module_select2 {
356
- width: auto;
357
- }
358
-
359
351
  /* src/EffectSkuSelect/index.module.less */
360
- .index_module_input4 {
352
+ .index_module_input3 {
361
353
  width: 100%;
362
354
  }
363
355
  .index_module_image {
@@ -428,6 +420,14 @@
428
420
  background-color: var(--ant-primary-1);
429
421
  }
430
422
 
423
+ /* src/EffectBrandSelect/index.module.less */
424
+ .index_module_input4 {
425
+ width: 100%;
426
+ }
427
+ .index_module_select2 {
428
+ width: auto;
429
+ }
430
+
431
431
  /* src/EffectSeriesSelect/index.module.less */
432
432
  .index_module_input5 {
433
433
  width: 100%;
package/dist/index.d.mts CHANGED
@@ -888,19 +888,22 @@ type Option$1 = {
888
888
  value: number;
889
889
  };
890
890
  type BrandOptions = Option$1[];
891
- type Props$7 = {
891
+ interface Props$7 {
892
892
  className?: string;
893
893
  onChange?: (value?: BrandValueType, label?: string) => void;
894
894
  value?: BrandValueType;
895
895
  defaultValue?: BrandValueType;
896
+ /** 已知初始选项的显示文本,传入后首屏跳过接口请求,展开下拉时再加载完整选项 */
897
+ defaultLabel?: string;
896
898
  disabled?: boolean;
897
899
  categoryId?: number;
898
900
  mode?: 'multiple' | 'tags';
901
+ /** 业务品牌 */
899
902
  sysBizTypeId?: InQueryBrandComboBox['sysBizTypeId'];
900
903
  /** 是否显示其他品牌,默认易奢堂不露出,如需露出请慎重 */
901
904
  showOtherBrand?: boolean;
902
905
  style?: React__default.CSSProperties;
903
- };
906
+ }
904
907
  declare const EffectBrandSelect: React__default.MemoExoticComponent<(props: Props$7) => react_jsx_runtime.JSX.Element>;
905
908
 
906
909
  type TransferValueType = string[];
@@ -1125,12 +1128,28 @@ interface EffectMerchantSelectProps {
1125
1128
  declare const EffectMerchantSelect: FunctionComponent<EffectMerchantSelectProps>;
1126
1129
 
1127
1130
  type ScopeSelectValueType = {
1131
+ /** 各层级分类Ids */
1128
1132
  categoryIds?: number[];
1133
+ /** 多层级的分类名称数组 */
1134
+ categoryName?: string[];
1135
+ /** 品牌Id */
1129
1136
  brandId?: number;
1137
+ /** 品牌名称 */
1138
+ brandName?: string;
1139
+ /** 系列id */
1130
1140
  seriesId?: number;
1141
+ /** 系列名称 */
1142
+ seriesName?: string;
1143
+ /** spuId */
1131
1144
  spuId?: number;
1145
+ /** spu名称 */
1146
+ spuName?: string;
1147
+ /** skuId */
1132
1148
  skuId?: number;
1149
+ /** sku名称 */
1150
+ skuName?: string;
1133
1151
  };
1152
+
1134
1153
  declare enum ScopeLevelEnum {
1135
1154
  CATEGORY = 1,
1136
1155
  BRAND = 2,
@@ -1145,6 +1164,8 @@ type ScopeSelectProps = {
1145
1164
  requireLevel?: ScopeLevelEnum;
1146
1165
  categoryChangeOnSelect?: boolean;
1147
1166
  onChange?: (value?: ScopeSelectValueType) => void;
1167
+ /** 组件模式,edit-编辑态,view-查看态,默认为编辑态,查看态下只展示文本不展示选择组件 */
1168
+ mode?: 'edit' | 'view';
1148
1169
  };
1149
1170
  declare const EffectScopeSelect: React__default.MemoExoticComponent<(props: ScopeSelectProps) => react_jsx_runtime.JSX.Element>;
1150
1171
 
package/dist/index.d.ts CHANGED
@@ -888,19 +888,22 @@ type Option$1 = {
888
888
  value: number;
889
889
  };
890
890
  type BrandOptions = Option$1[];
891
- type Props$7 = {
891
+ interface Props$7 {
892
892
  className?: string;
893
893
  onChange?: (value?: BrandValueType, label?: string) => void;
894
894
  value?: BrandValueType;
895
895
  defaultValue?: BrandValueType;
896
+ /** 已知初始选项的显示文本,传入后首屏跳过接口请求,展开下拉时再加载完整选项 */
897
+ defaultLabel?: string;
896
898
  disabled?: boolean;
897
899
  categoryId?: number;
898
900
  mode?: 'multiple' | 'tags';
901
+ /** 业务品牌 */
899
902
  sysBizTypeId?: InQueryBrandComboBox['sysBizTypeId'];
900
903
  /** 是否显示其他品牌,默认易奢堂不露出,如需露出请慎重 */
901
904
  showOtherBrand?: boolean;
902
905
  style?: React__default.CSSProperties;
903
- };
906
+ }
904
907
  declare const EffectBrandSelect: React__default.MemoExoticComponent<(props: Props$7) => react_jsx_runtime.JSX.Element>;
905
908
 
906
909
  type TransferValueType = string[];
@@ -1125,12 +1128,28 @@ interface EffectMerchantSelectProps {
1125
1128
  declare const EffectMerchantSelect: FunctionComponent<EffectMerchantSelectProps>;
1126
1129
 
1127
1130
  type ScopeSelectValueType = {
1131
+ /** 各层级分类Ids */
1128
1132
  categoryIds?: number[];
1133
+ /** 多层级的分类名称数组 */
1134
+ categoryName?: string[];
1135
+ /** 品牌Id */
1129
1136
  brandId?: number;
1137
+ /** 品牌名称 */
1138
+ brandName?: string;
1139
+ /** 系列id */
1130
1140
  seriesId?: number;
1141
+ /** 系列名称 */
1142
+ seriesName?: string;
1143
+ /** spuId */
1131
1144
  spuId?: number;
1145
+ /** spu名称 */
1146
+ spuName?: string;
1147
+ /** skuId */
1132
1148
  skuId?: number;
1149
+ /** sku名称 */
1150
+ skuName?: string;
1133
1151
  };
1152
+
1134
1153
  declare enum ScopeLevelEnum {
1135
1154
  CATEGORY = 1,
1136
1155
  BRAND = 2,
@@ -1145,6 +1164,8 @@ type ScopeSelectProps = {
1145
1164
  requireLevel?: ScopeLevelEnum;
1146
1165
  categoryChangeOnSelect?: boolean;
1147
1166
  onChange?: (value?: ScopeSelectValueType) => void;
1167
+ /** 组件模式,edit-编辑态,view-查看态,默认为编辑态,查看态下只展示文本不展示选择组件 */
1168
+ mode?: 'edit' | 'view';
1148
1169
  };
1149
1170
  declare const EffectScopeSelect: React__default.MemoExoticComponent<(props: ScopeSelectProps) => react_jsx_runtime.JSX.Element>;
1150
1171