@xfe-repo/web-components 1.8.0 → 1.8.1
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 +34 -1
- package/dist/index.d.mts +46 -12
- package/dist/index.d.ts +46 -12
- package/dist/index.js +524 -172
- package/dist/index.mjs +478 -134
- package/package.json +2 -2
- package/skills/xfe-web-components/GUIDE.md +3 -2
- package/skills/xfe-web-components/SKILL.md +3 -2
- package/skills/xfe-web-components/references/EffectLabelSelect.md +6 -5
- package/skills/xfe-web-components/references/EffectMerchantSelect.md +13 -28
- package/skills/xfe-web-components/references/EffectSearchSelect.md +262 -0
- package/skills/xfe-web-components/references/EffectStaffSelect.md +4 -4
- package/skills/xfe-web-components/references/commonFn.md +3 -1
package/dist/index.css
CHANGED
|
@@ -287,6 +287,21 @@
|
|
|
287
287
|
width: 200px;
|
|
288
288
|
height: 200px;
|
|
289
289
|
}
|
|
290
|
+
.index_module_paste_tip {
|
|
291
|
+
position: absolute;
|
|
292
|
+
top: 0;
|
|
293
|
+
right: 0;
|
|
294
|
+
z-index: 1;
|
|
295
|
+
padding: 1px 6px;
|
|
296
|
+
color: #fff;
|
|
297
|
+
font-size: 12px;
|
|
298
|
+
line-height: 20px;
|
|
299
|
+
white-space: nowrap;
|
|
300
|
+
pointer-events: none;
|
|
301
|
+
background: var(--ant-color-warning, #faad14);
|
|
302
|
+
border-radius: 0 4px 0 4px;
|
|
303
|
+
transform: translate(4px, -4px);
|
|
304
|
+
}
|
|
290
305
|
.index_module_upload_mask {
|
|
291
306
|
position: fixed;
|
|
292
307
|
top: 0;
|
|
@@ -557,12 +572,30 @@
|
|
|
557
572
|
.index_module_selector {
|
|
558
573
|
flex: 1;
|
|
559
574
|
width: 100%;
|
|
575
|
+
overflow: hidden;
|
|
560
576
|
}
|
|
561
577
|
.index_module_selector .ant-select-selector {
|
|
562
578
|
border-top-left-radius: 0;
|
|
563
579
|
border-bottom-left-radius: 0;
|
|
564
580
|
}
|
|
565
581
|
|
|
582
|
+
/* src/EffectSearchSelect/index.module.less */
|
|
583
|
+
.index_module_search_select_wrap {
|
|
584
|
+
display: flex;
|
|
585
|
+
width: 100%;
|
|
586
|
+
}
|
|
587
|
+
.index_module_source_select {
|
|
588
|
+
width: 90px !important;
|
|
589
|
+
flex-shrink: 0;
|
|
590
|
+
}
|
|
591
|
+
.index_module_source_select .ant-select-selector {
|
|
592
|
+
border-right: none !important;
|
|
593
|
+
}
|
|
594
|
+
.index_module_value_select {
|
|
595
|
+
flex: 1;
|
|
596
|
+
min-width: 0;
|
|
597
|
+
}
|
|
598
|
+
|
|
566
599
|
/* src/EffectStaffSelect/index.module.less */
|
|
567
600
|
.index_module_select4 {
|
|
568
601
|
width: auto;
|
|
@@ -591,7 +624,7 @@
|
|
|
591
624
|
.index_module_select_wrap .index_module_select_label .ant-select-selector {
|
|
592
625
|
border-right: none !important;
|
|
593
626
|
}
|
|
594
|
-
.
|
|
627
|
+
.index_module_value_select2 {
|
|
595
628
|
width: calc(100% - 85px) !important;
|
|
596
629
|
min-width: 0;
|
|
597
630
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { PureComponent, RefObject, ReactNode, ReactElement, FC, FunctionComponent, MemoExoticComponent, ComponentType } from 'react';
|
|
4
|
-
import { Request, JWT, BFFRequestConfig } from '@xfe-repo/web-service';
|
|
4
|
+
import { Request, JWT, BFFRequestConfig, BffDataType } from '@xfe-repo/web-service';
|
|
5
5
|
import { ApiEnv, Business } from '@xfe-repo/web-utils/env';
|
|
6
6
|
import { Locale } from 'antd/lib/locale';
|
|
7
7
|
import { ThemeConfig } from 'antd/lib';
|
|
@@ -1104,7 +1104,7 @@ interface EffectSkuRecognizeProps {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
declare const EffectSkuRecognize: React__default.MemoExoticComponent<(props: EffectSkuRecognizeProps) => react_jsx_runtime.JSX.Element>;
|
|
1106
1106
|
|
|
1107
|
-
type
|
|
1107
|
+
type DefaultMerchantSourceValue = 'enterpriseNo' | 'platformName' | 'name' | 'phone';
|
|
1108
1108
|
|
|
1109
1109
|
type Option = {
|
|
1110
1110
|
label: string;
|
|
@@ -1113,20 +1113,54 @@ type Option = {
|
|
|
1113
1113
|
data?: MerchantListBus;
|
|
1114
1114
|
};
|
|
1115
1115
|
type MerchantOptions = Option[];
|
|
1116
|
-
|
|
1116
|
+
declare const defaultMerchantSearchSources: {
|
|
1117
|
+
label: string;
|
|
1118
|
+
value: string;
|
|
1119
|
+
}[];
|
|
1117
1120
|
interface EffectMerchantSelectProps {
|
|
1118
1121
|
className?: string;
|
|
1119
1122
|
onChange?: (value?: string, name?: string) => void;
|
|
1120
1123
|
value?: string;
|
|
1121
1124
|
/** 搜索字段来源 */
|
|
1122
|
-
source?:
|
|
1125
|
+
source?: DefaultMerchantSourceValue;
|
|
1123
1126
|
disabled?: boolean;
|
|
1124
|
-
/** 选项标签展示模式 */
|
|
1125
|
-
labelDisplayMode?: LabelDisplayMode;
|
|
1126
1127
|
}
|
|
1127
1128
|
/** 商户下拉款搜索查询 */
|
|
1128
1129
|
declare const EffectMerchantSelect: FunctionComponent<EffectMerchantSelectProps>;
|
|
1129
1130
|
|
|
1131
|
+
type SelectValue = string | number;
|
|
1132
|
+
type DefaultMerchantSearchSourceValue = 'enterpriseNo' | 'platformName' | 'name' | 'phone';
|
|
1133
|
+
type EffectSearchSource<SourceValue extends string = string> = {
|
|
1134
|
+
label: string;
|
|
1135
|
+
value: SourceValue;
|
|
1136
|
+
};
|
|
1137
|
+
type EffectSearchOption<Value extends SelectValue = string, Raw = unknown> = {
|
|
1138
|
+
label: ReactNode;
|
|
1139
|
+
value: Value;
|
|
1140
|
+
disabled?: boolean;
|
|
1141
|
+
raw?: Raw;
|
|
1142
|
+
};
|
|
1143
|
+
type EffectSearchRequest<Params extends object, ResponseData> = (params: Params, config?: BFFRequestConfig) => Promise<BffDataType<ResponseData>>;
|
|
1144
|
+
type EffectSearchTransformContext<SourceValue extends string> = {
|
|
1145
|
+
source: EffectSearchSource<SourceValue>;
|
|
1146
|
+
keyword: string;
|
|
1147
|
+
};
|
|
1148
|
+
type EffectSearchTransformOptions<ResponseData, Raw, Value extends SelectValue, SourceValue extends string> = (data: ResponseData, context: EffectSearchTransformContext<SourceValue>) => EffectSearchOption<Value, Raw>[];
|
|
1149
|
+
type EffectSearchBuildParams<Params extends object, SourceValue extends string> = (keyword: string, source: EffectSearchSource<SourceValue>, baseParams: Partial<Params>) => Params;
|
|
1150
|
+
interface EffectSearchSelectProps<Params extends object = InMerchantListBusDto, ResponseData = OutMerchantListBusDto, Raw = MerchantListBus, Value extends SelectValue = string, SourceValue extends string = DefaultMerchantSearchSourceValue> extends Omit<SelectProps$1<Value>, 'mode' | 'options' | 'onChange' | 'onSearch'> {
|
|
1151
|
+
sources?: readonly EffectSearchSource<SourceValue>[];
|
|
1152
|
+
defaultSourceValue?: SourceValue;
|
|
1153
|
+
fetchParams?: Partial<Params>;
|
|
1154
|
+
pageSize?: number;
|
|
1155
|
+
buildParams?: EffectSearchBuildParams<Params, SourceValue>;
|
|
1156
|
+
onChange?: (value?: Value, option?: EffectSearchOption<Value, Raw>) => void;
|
|
1157
|
+
request?: EffectSearchRequest<Params, ResponseData>;
|
|
1158
|
+
transformOptions?: EffectSearchTransformOptions<ResponseData, Raw, Value, SourceValue>;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
declare const EffectSearchSelectBase: <Params extends object = InMerchantListBusDto, ResponseData = OutMerchantListBusDto, Raw = MerchantListBus, Value extends SelectValue = string, SourceValue extends string = DefaultMerchantSearchSourceValue>(props: EffectSearchSelectProps<Params, ResponseData, Raw, Value, SourceValue>) => react_jsx_runtime.JSX.Element;
|
|
1162
|
+
declare const EffectSearchSelect: typeof EffectSearchSelectBase;
|
|
1163
|
+
|
|
1130
1164
|
type ScopeSelectValueType = {
|
|
1131
1165
|
/** 各层级分类Ids */
|
|
1132
1166
|
categoryIds?: number[];
|
|
@@ -1250,7 +1284,7 @@ declare const EffectAddressCascade: React__default.MemoExoticComponent<(props: P
|
|
|
1250
1284
|
type SelectOptionItem = {
|
|
1251
1285
|
value: string;
|
|
1252
1286
|
label: string;
|
|
1253
|
-
customFields?:
|
|
1287
|
+
customFields?: Record<string, unknown> | null;
|
|
1254
1288
|
};
|
|
1255
1289
|
type LabelDic = Record<string, string>;
|
|
1256
1290
|
interface EffectLabelSelectProps extends Omit<SelectProps$1, 'onChange'> {
|
|
@@ -1261,11 +1295,11 @@ interface EffectLabelSelectProps extends Omit<SelectProps$1, 'onChange'> {
|
|
|
1261
1295
|
customLabelInValue?: boolean;
|
|
1262
1296
|
onFetchData?: (params: any, config: any) => Promise<any>;
|
|
1263
1297
|
onTransformData?: (params: Record<string, string>) => SelectOptionItem;
|
|
1264
|
-
fetchParams?:
|
|
1298
|
+
fetchParams?: Record<string, unknown>;
|
|
1265
1299
|
optionsDisplayType?: 'labelAndValue';
|
|
1266
1300
|
}
|
|
1301
|
+
/** @deprecated 已废弃,请使用 EffectSearchSelect */
|
|
1267
1302
|
declare const EffectLabelSelect: FunctionComponent<EffectLabelSelectProps>;
|
|
1268
|
-
|
|
1269
1303
|
/**
|
|
1270
1304
|
*
|
|
1271
1305
|
* 返回类型 格式为:
|
|
@@ -1281,10 +1315,10 @@ declare const EffectLabelSelect: FunctionComponent<EffectLabelSelectProps>;
|
|
|
1281
1315
|
* value;13200001111;13200001111;phone
|
|
1282
1316
|
*/
|
|
1283
1317
|
declare const getStrValue: (displayType: "label" | "value", value?: string, label?: string, labelDicKey?: string) => string | undefined;
|
|
1284
|
-
type
|
|
1285
|
-
declare const getSelectValue: (str?: string | null | number, returnType?:
|
|
1318
|
+
type SelectValueDisplayType = 'label' | 'value' | 'labelDicKey' | 'labelAndValue';
|
|
1319
|
+
declare const getSelectValue: (str?: string | null | number, returnType?: SelectValueDisplayType) => string | undefined;
|
|
1286
1320
|
declare const getInitialValue: (label?: string, value?: string) => string;
|
|
1287
1321
|
declare const getFirstValue: (str?: string) => string | undefined;
|
|
1288
1322
|
declare const getSecondValue: (str?: string) => string | undefined;
|
|
1289
1323
|
|
|
1290
|
-
export { type BrandOptions, type BrandValueType, CInput, type CInputProps, type CSearchProps, CTable, type CTableProps, type CTextAreaProps, CVideo, Clock, type ClockProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Countdown, type CountdownProps, Counter, type CounterProps, Currency, type CurrencyProps, type CurrencyUnit, type CustomTreeItem, type CustomTreeOptions, EffectAddressCascade, EffectBrandSelect, EffectBrandTransfer, type EffectBrandTransferProps, EffectCategoryCascade, EffectFileUpload, type EffectFileUploadRef, EffectLabelSelect, EffectMerchantSelect, EffectReservoirSelect, EffectScopeSelect, EffectSeriesSelect, EffectSeriesSelectV2, EffectShelveSelect, EffectSkuRecognize, type EffectSkuRecognizeProps, EffectSkuSelect, EffectSkuTable, type EffectSkuTableProps, EffectSpuSelect, EffectStaffSelect, EffectWarehouseSelect, EffectWithFilePanel, FileUpload, type IApiPayload, type IApiService, type IConfigContext, Iconfont, ImageItem, type ImageItemProps, type ItemOption, type LabelDic, Loading, type MerchantOptions, type ModifyFileData, MultiWindow, MultiWindowContents, type MultiWindowContentsProps, type MultiWindowContentsRefType, type MultiWindowProps, OSSImage, type OSSImageProps, type PagePathType, PrivacyField, QRCode, type QRCodePropsType, QRCodeStatus, RichTextEditor, type RichTextEditorProps, ScopeLevelEnum, type ScopeSelectProps, type ScopeSelectValueType, SearchForm, SearchFormContent, type SearchFormContentProps, type SearchFormProps, SearchList, type SearchListProps, SelectDropdown, type SelectItem, type SelectOptionItem, type SimpleFileData, type SseEventDataType, type TableDragEndEvent, type TransferPropValueType, type TransferValueType, type TreeCategory, type TreeSelectItem, type TreeSelectList, type TreeSingleValueType, type TreeValueType, type UploadResult, type UseRemoteUploadConfigType, type ValueType, type WarehouseOption, WithCVideoModal, WithModal, type WithModalProps, WithPanel, type WithPanelProps, commonDatePickerGetValueProps, commonDatePickerNormalize, commonDateRangePickerGetValueProps, commonDateRangePickerNormalize, commonStatusSelectOptions, commonYesOrNoSelectOptions, commonYesOrNoSelectOptionsMap, formatClock, formatDate, getCTable, getCommonSelectProps, getCommonTableProps, getFirstValue, getInitialValue, getNumberValue, getSecondValue, getSelectValue, getStrValue, isSingleTreeSelected, replaceRgbWithHex, saasApiService, transformOptionToSelectedList, transformSelectListToValues, transformSimpleFile2UploadFile, transformUploadFile2SimpleFile, transformValuesToSelectList, typedMemo, useMultiWindowContentsRef, useSearchFormStyle, useSseQrcode };
|
|
1324
|
+
export { type BrandOptions, type BrandValueType, CInput, type CInputProps, type CSearchProps, CTable, type CTableProps, type CTextAreaProps, CVideo, Clock, type ClockProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Countdown, type CountdownProps, Counter, type CounterProps, Currency, type CurrencyProps, type CurrencyUnit, type CustomTreeItem, type CustomTreeOptions, EffectAddressCascade, EffectBrandSelect, EffectBrandTransfer, type EffectBrandTransferProps, EffectCategoryCascade, EffectFileUpload, type EffectFileUploadRef, EffectLabelSelect, EffectMerchantSelect, EffectReservoirSelect, EffectScopeSelect, EffectSearchSelect, type EffectSearchSelectProps, EffectSeriesSelect, EffectSeriesSelectV2, EffectShelveSelect, EffectSkuRecognize, type EffectSkuRecognizeProps, EffectSkuSelect, EffectSkuTable, type EffectSkuTableProps, EffectSpuSelect, EffectStaffSelect, EffectWarehouseSelect, EffectWithFilePanel, FileUpload, type IApiPayload, type IApiService, type IConfigContext, Iconfont, ImageItem, type ImageItemProps, type ItemOption, type LabelDic, Loading, type MerchantOptions, type ModifyFileData, MultiWindow, MultiWindowContents, type MultiWindowContentsProps, type MultiWindowContentsRefType, type MultiWindowProps, OSSImage, type OSSImageProps, type PagePathType, PrivacyField, QRCode, type QRCodePropsType, QRCodeStatus, RichTextEditor, type RichTextEditorProps, ScopeLevelEnum, type ScopeSelectProps, type ScopeSelectValueType, SearchForm, SearchFormContent, type SearchFormContentProps, type SearchFormProps, SearchList, type SearchListProps, SelectDropdown, type SelectItem, type SelectOptionItem, type SimpleFileData, type SseEventDataType, type TableDragEndEvent, type TransferPropValueType, type TransferValueType, type TreeCategory, type TreeSelectItem, type TreeSelectList, type TreeSingleValueType, type TreeValueType, type UploadResult, type UseRemoteUploadConfigType, type ValueType, type WarehouseOption, WithCVideoModal, WithModal, type WithModalProps, WithPanel, type WithPanelProps, commonDatePickerGetValueProps, commonDatePickerNormalize, commonDateRangePickerGetValueProps, commonDateRangePickerNormalize, commonStatusSelectOptions, commonYesOrNoSelectOptions, commonYesOrNoSelectOptionsMap, defaultMerchantSearchSources, formatClock, formatDate, getCTable, getCommonSelectProps, getCommonTableProps, getFirstValue, getInitialValue, getNumberValue, getSecondValue, getSelectValue, getStrValue, isSingleTreeSelected, replaceRgbWithHex, saasApiService, transformOptionToSelectedList, transformSelectListToValues, transformSimpleFile2UploadFile, transformUploadFile2SimpleFile, transformValuesToSelectList, typedMemo, useMultiWindowContentsRef, useSearchFormStyle, useSseQrcode };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { PureComponent, RefObject, ReactNode, ReactElement, FC, FunctionComponent, MemoExoticComponent, ComponentType } from 'react';
|
|
4
|
-
import { Request, JWT, BFFRequestConfig } from '@xfe-repo/web-service';
|
|
4
|
+
import { Request, JWT, BFFRequestConfig, BffDataType } from '@xfe-repo/web-service';
|
|
5
5
|
import { ApiEnv, Business } from '@xfe-repo/web-utils/env';
|
|
6
6
|
import { Locale } from 'antd/lib/locale';
|
|
7
7
|
import { ThemeConfig } from 'antd/lib';
|
|
@@ -1104,7 +1104,7 @@ interface EffectSkuRecognizeProps {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
declare const EffectSkuRecognize: React__default.MemoExoticComponent<(props: EffectSkuRecognizeProps) => react_jsx_runtime.JSX.Element>;
|
|
1106
1106
|
|
|
1107
|
-
type
|
|
1107
|
+
type DefaultMerchantSourceValue = 'enterpriseNo' | 'platformName' | 'name' | 'phone';
|
|
1108
1108
|
|
|
1109
1109
|
type Option = {
|
|
1110
1110
|
label: string;
|
|
@@ -1113,20 +1113,54 @@ type Option = {
|
|
|
1113
1113
|
data?: MerchantListBus;
|
|
1114
1114
|
};
|
|
1115
1115
|
type MerchantOptions = Option[];
|
|
1116
|
-
|
|
1116
|
+
declare const defaultMerchantSearchSources: {
|
|
1117
|
+
label: string;
|
|
1118
|
+
value: string;
|
|
1119
|
+
}[];
|
|
1117
1120
|
interface EffectMerchantSelectProps {
|
|
1118
1121
|
className?: string;
|
|
1119
1122
|
onChange?: (value?: string, name?: string) => void;
|
|
1120
1123
|
value?: string;
|
|
1121
1124
|
/** 搜索字段来源 */
|
|
1122
|
-
source?:
|
|
1125
|
+
source?: DefaultMerchantSourceValue;
|
|
1123
1126
|
disabled?: boolean;
|
|
1124
|
-
/** 选项标签展示模式 */
|
|
1125
|
-
labelDisplayMode?: LabelDisplayMode;
|
|
1126
1127
|
}
|
|
1127
1128
|
/** 商户下拉款搜索查询 */
|
|
1128
1129
|
declare const EffectMerchantSelect: FunctionComponent<EffectMerchantSelectProps>;
|
|
1129
1130
|
|
|
1131
|
+
type SelectValue = string | number;
|
|
1132
|
+
type DefaultMerchantSearchSourceValue = 'enterpriseNo' | 'platformName' | 'name' | 'phone';
|
|
1133
|
+
type EffectSearchSource<SourceValue extends string = string> = {
|
|
1134
|
+
label: string;
|
|
1135
|
+
value: SourceValue;
|
|
1136
|
+
};
|
|
1137
|
+
type EffectSearchOption<Value extends SelectValue = string, Raw = unknown> = {
|
|
1138
|
+
label: ReactNode;
|
|
1139
|
+
value: Value;
|
|
1140
|
+
disabled?: boolean;
|
|
1141
|
+
raw?: Raw;
|
|
1142
|
+
};
|
|
1143
|
+
type EffectSearchRequest<Params extends object, ResponseData> = (params: Params, config?: BFFRequestConfig) => Promise<BffDataType<ResponseData>>;
|
|
1144
|
+
type EffectSearchTransformContext<SourceValue extends string> = {
|
|
1145
|
+
source: EffectSearchSource<SourceValue>;
|
|
1146
|
+
keyword: string;
|
|
1147
|
+
};
|
|
1148
|
+
type EffectSearchTransformOptions<ResponseData, Raw, Value extends SelectValue, SourceValue extends string> = (data: ResponseData, context: EffectSearchTransformContext<SourceValue>) => EffectSearchOption<Value, Raw>[];
|
|
1149
|
+
type EffectSearchBuildParams<Params extends object, SourceValue extends string> = (keyword: string, source: EffectSearchSource<SourceValue>, baseParams: Partial<Params>) => Params;
|
|
1150
|
+
interface EffectSearchSelectProps<Params extends object = InMerchantListBusDto, ResponseData = OutMerchantListBusDto, Raw = MerchantListBus, Value extends SelectValue = string, SourceValue extends string = DefaultMerchantSearchSourceValue> extends Omit<SelectProps$1<Value>, 'mode' | 'options' | 'onChange' | 'onSearch'> {
|
|
1151
|
+
sources?: readonly EffectSearchSource<SourceValue>[];
|
|
1152
|
+
defaultSourceValue?: SourceValue;
|
|
1153
|
+
fetchParams?: Partial<Params>;
|
|
1154
|
+
pageSize?: number;
|
|
1155
|
+
buildParams?: EffectSearchBuildParams<Params, SourceValue>;
|
|
1156
|
+
onChange?: (value?: Value, option?: EffectSearchOption<Value, Raw>) => void;
|
|
1157
|
+
request?: EffectSearchRequest<Params, ResponseData>;
|
|
1158
|
+
transformOptions?: EffectSearchTransformOptions<ResponseData, Raw, Value, SourceValue>;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
declare const EffectSearchSelectBase: <Params extends object = InMerchantListBusDto, ResponseData = OutMerchantListBusDto, Raw = MerchantListBus, Value extends SelectValue = string, SourceValue extends string = DefaultMerchantSearchSourceValue>(props: EffectSearchSelectProps<Params, ResponseData, Raw, Value, SourceValue>) => react_jsx_runtime.JSX.Element;
|
|
1162
|
+
declare const EffectSearchSelect: typeof EffectSearchSelectBase;
|
|
1163
|
+
|
|
1130
1164
|
type ScopeSelectValueType = {
|
|
1131
1165
|
/** 各层级分类Ids */
|
|
1132
1166
|
categoryIds?: number[];
|
|
@@ -1250,7 +1284,7 @@ declare const EffectAddressCascade: React__default.MemoExoticComponent<(props: P
|
|
|
1250
1284
|
type SelectOptionItem = {
|
|
1251
1285
|
value: string;
|
|
1252
1286
|
label: string;
|
|
1253
|
-
customFields?:
|
|
1287
|
+
customFields?: Record<string, unknown> | null;
|
|
1254
1288
|
};
|
|
1255
1289
|
type LabelDic = Record<string, string>;
|
|
1256
1290
|
interface EffectLabelSelectProps extends Omit<SelectProps$1, 'onChange'> {
|
|
@@ -1261,11 +1295,11 @@ interface EffectLabelSelectProps extends Omit<SelectProps$1, 'onChange'> {
|
|
|
1261
1295
|
customLabelInValue?: boolean;
|
|
1262
1296
|
onFetchData?: (params: any, config: any) => Promise<any>;
|
|
1263
1297
|
onTransformData?: (params: Record<string, string>) => SelectOptionItem;
|
|
1264
|
-
fetchParams?:
|
|
1298
|
+
fetchParams?: Record<string, unknown>;
|
|
1265
1299
|
optionsDisplayType?: 'labelAndValue';
|
|
1266
1300
|
}
|
|
1301
|
+
/** @deprecated 已废弃,请使用 EffectSearchSelect */
|
|
1267
1302
|
declare const EffectLabelSelect: FunctionComponent<EffectLabelSelectProps>;
|
|
1268
|
-
|
|
1269
1303
|
/**
|
|
1270
1304
|
*
|
|
1271
1305
|
* 返回类型 格式为:
|
|
@@ -1281,10 +1315,10 @@ declare const EffectLabelSelect: FunctionComponent<EffectLabelSelectProps>;
|
|
|
1281
1315
|
* value;13200001111;13200001111;phone
|
|
1282
1316
|
*/
|
|
1283
1317
|
declare const getStrValue: (displayType: "label" | "value", value?: string, label?: string, labelDicKey?: string) => string | undefined;
|
|
1284
|
-
type
|
|
1285
|
-
declare const getSelectValue: (str?: string | null | number, returnType?:
|
|
1318
|
+
type SelectValueDisplayType = 'label' | 'value' | 'labelDicKey' | 'labelAndValue';
|
|
1319
|
+
declare const getSelectValue: (str?: string | null | number, returnType?: SelectValueDisplayType) => string | undefined;
|
|
1286
1320
|
declare const getInitialValue: (label?: string, value?: string) => string;
|
|
1287
1321
|
declare const getFirstValue: (str?: string) => string | undefined;
|
|
1288
1322
|
declare const getSecondValue: (str?: string) => string | undefined;
|
|
1289
1323
|
|
|
1290
|
-
export { type BrandOptions, type BrandValueType, CInput, type CInputProps, type CSearchProps, CTable, type CTableProps, type CTextAreaProps, CVideo, Clock, type ClockProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Countdown, type CountdownProps, Counter, type CounterProps, Currency, type CurrencyProps, type CurrencyUnit, type CustomTreeItem, type CustomTreeOptions, EffectAddressCascade, EffectBrandSelect, EffectBrandTransfer, type EffectBrandTransferProps, EffectCategoryCascade, EffectFileUpload, type EffectFileUploadRef, EffectLabelSelect, EffectMerchantSelect, EffectReservoirSelect, EffectScopeSelect, EffectSeriesSelect, EffectSeriesSelectV2, EffectShelveSelect, EffectSkuRecognize, type EffectSkuRecognizeProps, EffectSkuSelect, EffectSkuTable, type EffectSkuTableProps, EffectSpuSelect, EffectStaffSelect, EffectWarehouseSelect, EffectWithFilePanel, FileUpload, type IApiPayload, type IApiService, type IConfigContext, Iconfont, ImageItem, type ImageItemProps, type ItemOption, type LabelDic, Loading, type MerchantOptions, type ModifyFileData, MultiWindow, MultiWindowContents, type MultiWindowContentsProps, type MultiWindowContentsRefType, type MultiWindowProps, OSSImage, type OSSImageProps, type PagePathType, PrivacyField, QRCode, type QRCodePropsType, QRCodeStatus, RichTextEditor, type RichTextEditorProps, ScopeLevelEnum, type ScopeSelectProps, type ScopeSelectValueType, SearchForm, SearchFormContent, type SearchFormContentProps, type SearchFormProps, SearchList, type SearchListProps, SelectDropdown, type SelectItem, type SelectOptionItem, type SimpleFileData, type SseEventDataType, type TableDragEndEvent, type TransferPropValueType, type TransferValueType, type TreeCategory, type TreeSelectItem, type TreeSelectList, type TreeSingleValueType, type TreeValueType, type UploadResult, type UseRemoteUploadConfigType, type ValueType, type WarehouseOption, WithCVideoModal, WithModal, type WithModalProps, WithPanel, type WithPanelProps, commonDatePickerGetValueProps, commonDatePickerNormalize, commonDateRangePickerGetValueProps, commonDateRangePickerNormalize, commonStatusSelectOptions, commonYesOrNoSelectOptions, commonYesOrNoSelectOptionsMap, formatClock, formatDate, getCTable, getCommonSelectProps, getCommonTableProps, getFirstValue, getInitialValue, getNumberValue, getSecondValue, getSelectValue, getStrValue, isSingleTreeSelected, replaceRgbWithHex, saasApiService, transformOptionToSelectedList, transformSelectListToValues, transformSimpleFile2UploadFile, transformUploadFile2SimpleFile, transformValuesToSelectList, typedMemo, useMultiWindowContentsRef, useSearchFormStyle, useSseQrcode };
|
|
1324
|
+
export { type BrandOptions, type BrandValueType, CInput, type CInputProps, type CSearchProps, CTable, type CTableProps, type CTextAreaProps, CVideo, Clock, type ClockProps, ConfigContext, ConfigProvider, type ConfigProviderProps, Countdown, type CountdownProps, Counter, type CounterProps, Currency, type CurrencyProps, type CurrencyUnit, type CustomTreeItem, type CustomTreeOptions, EffectAddressCascade, EffectBrandSelect, EffectBrandTransfer, type EffectBrandTransferProps, EffectCategoryCascade, EffectFileUpload, type EffectFileUploadRef, EffectLabelSelect, EffectMerchantSelect, EffectReservoirSelect, EffectScopeSelect, EffectSearchSelect, type EffectSearchSelectProps, EffectSeriesSelect, EffectSeriesSelectV2, EffectShelveSelect, EffectSkuRecognize, type EffectSkuRecognizeProps, EffectSkuSelect, EffectSkuTable, type EffectSkuTableProps, EffectSpuSelect, EffectStaffSelect, EffectWarehouseSelect, EffectWithFilePanel, FileUpload, type IApiPayload, type IApiService, type IConfigContext, Iconfont, ImageItem, type ImageItemProps, type ItemOption, type LabelDic, Loading, type MerchantOptions, type ModifyFileData, MultiWindow, MultiWindowContents, type MultiWindowContentsProps, type MultiWindowContentsRefType, type MultiWindowProps, OSSImage, type OSSImageProps, type PagePathType, PrivacyField, QRCode, type QRCodePropsType, QRCodeStatus, RichTextEditor, type RichTextEditorProps, ScopeLevelEnum, type ScopeSelectProps, type ScopeSelectValueType, SearchForm, SearchFormContent, type SearchFormContentProps, type SearchFormProps, SearchList, type SearchListProps, SelectDropdown, type SelectItem, type SelectOptionItem, type SimpleFileData, type SseEventDataType, type TableDragEndEvent, type TransferPropValueType, type TransferValueType, type TreeCategory, type TreeSelectItem, type TreeSelectList, type TreeSingleValueType, type TreeValueType, type UploadResult, type UseRemoteUploadConfigType, type ValueType, type WarehouseOption, WithCVideoModal, WithModal, type WithModalProps, WithPanel, type WithPanelProps, commonDatePickerGetValueProps, commonDatePickerNormalize, commonDateRangePickerGetValueProps, commonDateRangePickerNormalize, commonStatusSelectOptions, commonYesOrNoSelectOptions, commonYesOrNoSelectOptionsMap, defaultMerchantSearchSources, formatClock, formatDate, getCTable, getCommonSelectProps, getCommonTableProps, getFirstValue, getInitialValue, getNumberValue, getSecondValue, getSelectValue, getStrValue, isSingleTreeSelected, replaceRgbWithHex, saasApiService, transformOptionToSelectedList, transformSelectListToValues, transformSimpleFile2UploadFile, transformUploadFile2SimpleFile, transformValuesToSelectList, typedMemo, useMultiWindowContentsRef, useSearchFormStyle, useSseQrcode };
|