@xfe-repo/web-components 1.7.1 → 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 +9 -9
- package/dist/index.d.mts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +313 -241
- package/dist/index.mjs +263 -191
- package/package.json +8 -8
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
|
-
.
|
|
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
|
@@ -786,6 +786,7 @@ type FileUploadProps = {
|
|
|
786
786
|
accept?: string;
|
|
787
787
|
max?: number;
|
|
788
788
|
remote?: boolean;
|
|
789
|
+
pastable?: boolean;
|
|
789
790
|
deleteConfirm?: boolean;
|
|
790
791
|
};
|
|
791
792
|
declare const FileUpload: (props: FileUploadProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -887,19 +888,22 @@ type Option$1 = {
|
|
|
887
888
|
value: number;
|
|
888
889
|
};
|
|
889
890
|
type BrandOptions = Option$1[];
|
|
890
|
-
|
|
891
|
+
interface Props$7 {
|
|
891
892
|
className?: string;
|
|
892
893
|
onChange?: (value?: BrandValueType, label?: string) => void;
|
|
893
894
|
value?: BrandValueType;
|
|
894
895
|
defaultValue?: BrandValueType;
|
|
896
|
+
/** 已知初始选项的显示文本,传入后首屏跳过接口请求,展开下拉时再加载完整选项 */
|
|
897
|
+
defaultLabel?: string;
|
|
895
898
|
disabled?: boolean;
|
|
896
899
|
categoryId?: number;
|
|
897
900
|
mode?: 'multiple' | 'tags';
|
|
901
|
+
/** 业务品牌 */
|
|
898
902
|
sysBizTypeId?: InQueryBrandComboBox['sysBizTypeId'];
|
|
899
903
|
/** 是否显示其他品牌,默认易奢堂不露出,如需露出请慎重 */
|
|
900
904
|
showOtherBrand?: boolean;
|
|
901
905
|
style?: React__default.CSSProperties;
|
|
902
|
-
}
|
|
906
|
+
}
|
|
903
907
|
declare const EffectBrandSelect: React__default.MemoExoticComponent<(props: Props$7) => react_jsx_runtime.JSX.Element>;
|
|
904
908
|
|
|
905
909
|
type TransferValueType = string[];
|
|
@@ -967,6 +971,7 @@ type EffectFileUploadProps = {
|
|
|
967
971
|
max?: number;
|
|
968
972
|
accept?: string;
|
|
969
973
|
remote?: boolean;
|
|
974
|
+
pastable?: boolean;
|
|
970
975
|
deleteConfirm?: boolean;
|
|
971
976
|
disabled?: boolean;
|
|
972
977
|
needSave?: boolean;
|
|
@@ -1123,12 +1128,28 @@ interface EffectMerchantSelectProps {
|
|
|
1123
1128
|
declare const EffectMerchantSelect: FunctionComponent<EffectMerchantSelectProps>;
|
|
1124
1129
|
|
|
1125
1130
|
type ScopeSelectValueType = {
|
|
1131
|
+
/** 各层级分类Ids */
|
|
1126
1132
|
categoryIds?: number[];
|
|
1133
|
+
/** 多层级的分类名称数组 */
|
|
1134
|
+
categoryName?: string[];
|
|
1135
|
+
/** 品牌Id */
|
|
1127
1136
|
brandId?: number;
|
|
1137
|
+
/** 品牌名称 */
|
|
1138
|
+
brandName?: string;
|
|
1139
|
+
/** 系列id */
|
|
1128
1140
|
seriesId?: number;
|
|
1141
|
+
/** 系列名称 */
|
|
1142
|
+
seriesName?: string;
|
|
1143
|
+
/** spuId */
|
|
1129
1144
|
spuId?: number;
|
|
1145
|
+
/** spu名称 */
|
|
1146
|
+
spuName?: string;
|
|
1147
|
+
/** skuId */
|
|
1130
1148
|
skuId?: number;
|
|
1149
|
+
/** sku名称 */
|
|
1150
|
+
skuName?: string;
|
|
1131
1151
|
};
|
|
1152
|
+
|
|
1132
1153
|
declare enum ScopeLevelEnum {
|
|
1133
1154
|
CATEGORY = 1,
|
|
1134
1155
|
BRAND = 2,
|
|
@@ -1143,6 +1164,8 @@ type ScopeSelectProps = {
|
|
|
1143
1164
|
requireLevel?: ScopeLevelEnum;
|
|
1144
1165
|
categoryChangeOnSelect?: boolean;
|
|
1145
1166
|
onChange?: (value?: ScopeSelectValueType) => void;
|
|
1167
|
+
/** 组件模式,edit-编辑态,view-查看态,默认为编辑态,查看态下只展示文本不展示选择组件 */
|
|
1168
|
+
mode?: 'edit' | 'view';
|
|
1146
1169
|
};
|
|
1147
1170
|
declare const EffectScopeSelect: React__default.MemoExoticComponent<(props: ScopeSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
1148
1171
|
|
package/dist/index.d.ts
CHANGED
|
@@ -786,6 +786,7 @@ type FileUploadProps = {
|
|
|
786
786
|
accept?: string;
|
|
787
787
|
max?: number;
|
|
788
788
|
remote?: boolean;
|
|
789
|
+
pastable?: boolean;
|
|
789
790
|
deleteConfirm?: boolean;
|
|
790
791
|
};
|
|
791
792
|
declare const FileUpload: (props: FileUploadProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -887,19 +888,22 @@ type Option$1 = {
|
|
|
887
888
|
value: number;
|
|
888
889
|
};
|
|
889
890
|
type BrandOptions = Option$1[];
|
|
890
|
-
|
|
891
|
+
interface Props$7 {
|
|
891
892
|
className?: string;
|
|
892
893
|
onChange?: (value?: BrandValueType, label?: string) => void;
|
|
893
894
|
value?: BrandValueType;
|
|
894
895
|
defaultValue?: BrandValueType;
|
|
896
|
+
/** 已知初始选项的显示文本,传入后首屏跳过接口请求,展开下拉时再加载完整选项 */
|
|
897
|
+
defaultLabel?: string;
|
|
895
898
|
disabled?: boolean;
|
|
896
899
|
categoryId?: number;
|
|
897
900
|
mode?: 'multiple' | 'tags';
|
|
901
|
+
/** 业务品牌 */
|
|
898
902
|
sysBizTypeId?: InQueryBrandComboBox['sysBizTypeId'];
|
|
899
903
|
/** 是否显示其他品牌,默认易奢堂不露出,如需露出请慎重 */
|
|
900
904
|
showOtherBrand?: boolean;
|
|
901
905
|
style?: React__default.CSSProperties;
|
|
902
|
-
}
|
|
906
|
+
}
|
|
903
907
|
declare const EffectBrandSelect: React__default.MemoExoticComponent<(props: Props$7) => react_jsx_runtime.JSX.Element>;
|
|
904
908
|
|
|
905
909
|
type TransferValueType = string[];
|
|
@@ -967,6 +971,7 @@ type EffectFileUploadProps = {
|
|
|
967
971
|
max?: number;
|
|
968
972
|
accept?: string;
|
|
969
973
|
remote?: boolean;
|
|
974
|
+
pastable?: boolean;
|
|
970
975
|
deleteConfirm?: boolean;
|
|
971
976
|
disabled?: boolean;
|
|
972
977
|
needSave?: boolean;
|
|
@@ -1123,12 +1128,28 @@ interface EffectMerchantSelectProps {
|
|
|
1123
1128
|
declare const EffectMerchantSelect: FunctionComponent<EffectMerchantSelectProps>;
|
|
1124
1129
|
|
|
1125
1130
|
type ScopeSelectValueType = {
|
|
1131
|
+
/** 各层级分类Ids */
|
|
1126
1132
|
categoryIds?: number[];
|
|
1133
|
+
/** 多层级的分类名称数组 */
|
|
1134
|
+
categoryName?: string[];
|
|
1135
|
+
/** 品牌Id */
|
|
1127
1136
|
brandId?: number;
|
|
1137
|
+
/** 品牌名称 */
|
|
1138
|
+
brandName?: string;
|
|
1139
|
+
/** 系列id */
|
|
1128
1140
|
seriesId?: number;
|
|
1141
|
+
/** 系列名称 */
|
|
1142
|
+
seriesName?: string;
|
|
1143
|
+
/** spuId */
|
|
1129
1144
|
spuId?: number;
|
|
1145
|
+
/** spu名称 */
|
|
1146
|
+
spuName?: string;
|
|
1147
|
+
/** skuId */
|
|
1130
1148
|
skuId?: number;
|
|
1149
|
+
/** sku名称 */
|
|
1150
|
+
skuName?: string;
|
|
1131
1151
|
};
|
|
1152
|
+
|
|
1132
1153
|
declare enum ScopeLevelEnum {
|
|
1133
1154
|
CATEGORY = 1,
|
|
1134
1155
|
BRAND = 2,
|
|
@@ -1143,6 +1164,8 @@ type ScopeSelectProps = {
|
|
|
1143
1164
|
requireLevel?: ScopeLevelEnum;
|
|
1144
1165
|
categoryChangeOnSelect?: boolean;
|
|
1145
1166
|
onChange?: (value?: ScopeSelectValueType) => void;
|
|
1167
|
+
/** 组件模式,edit-编辑态,view-查看态,默认为编辑态,查看态下只展示文本不展示选择组件 */
|
|
1168
|
+
mode?: 'edit' | 'view';
|
|
1146
1169
|
};
|
|
1147
1170
|
declare const EffectScopeSelect: React__default.MemoExoticComponent<(props: ScopeSelectProps) => react_jsx_runtime.JSX.Element>;
|
|
1148
1171
|
|