@xfe-repo/web-components 1.8.0 → 1.8.2
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 -18
- package/dist/index.d.mts +41 -47
- package/dist/index.d.ts +41 -47
- package/dist/index.js +508 -400
- package/dist/index.mjs +465 -341
- package/package.json +1 -1
- package/skills/xfe-web-components/GUIDE.md +2 -2
- package/skills/xfe-web-components/SKILL.md +2 -2
- package/skills/xfe-web-components/references/EffectMerchantSelect.md +13 -28
- package/skills/xfe-web-components/references/EffectSearchSelect.md +260 -0
- package/skills/xfe-web-components/references/EffectStaffSelect.md +4 -4
- package/skills/xfe-web-components/references/commonFn.md +0 -82
- package/skills/xfe-web-components/references/EffectLabelSelect.md +0 -222
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,31 @@
|
|
|
557
572
|
.index_module_selector {
|
|
558
573
|
flex: 1;
|
|
559
574
|
width: 100%;
|
|
575
|
+
max-width: 400px;
|
|
576
|
+
overflow: hidden;
|
|
560
577
|
}
|
|
561
578
|
.index_module_selector .ant-select-selector {
|
|
562
579
|
border-top-left-radius: 0;
|
|
563
580
|
border-bottom-left-radius: 0;
|
|
564
581
|
}
|
|
565
582
|
|
|
583
|
+
/* src/EffectSearchSelect/index.module.less */
|
|
584
|
+
.index_module_search_select_wrap {
|
|
585
|
+
display: flex;
|
|
586
|
+
width: 100%;
|
|
587
|
+
}
|
|
588
|
+
.index_module_source_select {
|
|
589
|
+
width: 90px !important;
|
|
590
|
+
flex-shrink: 0;
|
|
591
|
+
}
|
|
592
|
+
.index_module_source_select .ant-select-selector {
|
|
593
|
+
border-right: none !important;
|
|
594
|
+
}
|
|
595
|
+
.index_module_value_select {
|
|
596
|
+
flex: 1;
|
|
597
|
+
min-width: 0;
|
|
598
|
+
}
|
|
599
|
+
|
|
566
600
|
/* src/EffectStaffSelect/index.module.less */
|
|
567
601
|
.index_module_select4 {
|
|
568
602
|
width: auto;
|
|
@@ -580,21 +614,3 @@
|
|
|
580
614
|
.index_module_select6 {
|
|
581
615
|
width: auto;
|
|
582
616
|
}
|
|
583
|
-
|
|
584
|
-
/* src/EffectLabelSelect/index.module.less */
|
|
585
|
-
.index_module_select_wrap {
|
|
586
|
-
display: flex;
|
|
587
|
-
}
|
|
588
|
-
.index_module_select_wrap .index_module_select_label {
|
|
589
|
-
width: 85px !important;
|
|
590
|
-
}
|
|
591
|
-
.index_module_select_wrap .index_module_select_label .ant-select-selector {
|
|
592
|
-
border-right: none !important;
|
|
593
|
-
}
|
|
594
|
-
.index_module_value_select {
|
|
595
|
-
width: calc(100% - 85px) !important;
|
|
596
|
-
min-width: 0;
|
|
597
|
-
}
|
|
598
|
-
.index_module_select7 {
|
|
599
|
-
width: auto;
|
|
600
|
-
}
|
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[];
|
|
@@ -1247,44 +1281,4 @@ type Props = {
|
|
|
1247
1281
|
};
|
|
1248
1282
|
declare const EffectAddressCascade: React__default.MemoExoticComponent<(props: Props) => react_jsx_runtime.JSX.Element>;
|
|
1249
1283
|
|
|
1250
|
-
type
|
|
1251
|
-
value: string;
|
|
1252
|
-
label: string;
|
|
1253
|
-
customFields?: Object | null;
|
|
1254
|
-
};
|
|
1255
|
-
type LabelDic = Record<string, string>;
|
|
1256
|
-
interface EffectLabelSelectProps extends Omit<SelectProps$1, 'onChange'> {
|
|
1257
|
-
onChange?: (value?: string, selectedOptionItem?: SelectOptionItem) => void;
|
|
1258
|
-
defaultLabel?: string;
|
|
1259
|
-
labelDic?: LabelDic;
|
|
1260
|
-
value?: string;
|
|
1261
|
-
customLabelInValue?: boolean;
|
|
1262
|
-
onFetchData?: (params: any, config: any) => Promise<any>;
|
|
1263
|
-
onTransformData?: (params: Record<string, string>) => SelectOptionItem;
|
|
1264
|
-
fetchParams?: Object;
|
|
1265
|
-
optionsDisplayType?: 'labelAndValue';
|
|
1266
|
-
}
|
|
1267
|
-
declare const EffectLabelSelect: FunctionComponent<EffectLabelSelectProps>;
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
*
|
|
1271
|
-
* 返回类型 格式为:
|
|
1272
|
-
* 类型('value' | 'label') + ID(value) + 名称(label) + labelDicKey(映射labelDic的key)
|
|
1273
|
-
*
|
|
1274
|
-
* eg: label;123;哈哈;name
|
|
1275
|
-
* value;123;哈哈;name
|
|
1276
|
-
*
|
|
1277
|
-
* eg: label;111;哈哈;businessNo
|
|
1278
|
-
* value;111;哈哈;businessNo
|
|
1279
|
-
*
|
|
1280
|
-
* eg: label;13200001111;13200001111;phone
|
|
1281
|
-
* value;13200001111;13200001111;phone
|
|
1282
|
-
*/
|
|
1283
|
-
declare const getStrValue: (displayType: "label" | "value", value?: string, label?: string, labelDicKey?: string) => string | undefined;
|
|
1284
|
-
type ReturnType = 'label' | 'value' | 'labelDicKey' | 'labelAndValue';
|
|
1285
|
-
declare const getSelectValue: (str?: string | null | number, returnType?: ReturnType) => string | undefined;
|
|
1286
|
-
declare const getInitialValue: (label?: string, value?: string) => string;
|
|
1287
|
-
declare const getFirstValue: (str?: string) => string | undefined;
|
|
1288
|
-
declare const getSecondValue: (str?: string) => string | undefined;
|
|
1289
|
-
|
|
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 };
|
|
1284
|
+
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, 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, 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 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, getNumberValue, 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[];
|
|
@@ -1247,44 +1281,4 @@ type Props = {
|
|
|
1247
1281
|
};
|
|
1248
1282
|
declare const EffectAddressCascade: React__default.MemoExoticComponent<(props: Props) => react_jsx_runtime.JSX.Element>;
|
|
1249
1283
|
|
|
1250
|
-
type
|
|
1251
|
-
value: string;
|
|
1252
|
-
label: string;
|
|
1253
|
-
customFields?: Object | null;
|
|
1254
|
-
};
|
|
1255
|
-
type LabelDic = Record<string, string>;
|
|
1256
|
-
interface EffectLabelSelectProps extends Omit<SelectProps$1, 'onChange'> {
|
|
1257
|
-
onChange?: (value?: string, selectedOptionItem?: SelectOptionItem) => void;
|
|
1258
|
-
defaultLabel?: string;
|
|
1259
|
-
labelDic?: LabelDic;
|
|
1260
|
-
value?: string;
|
|
1261
|
-
customLabelInValue?: boolean;
|
|
1262
|
-
onFetchData?: (params: any, config: any) => Promise<any>;
|
|
1263
|
-
onTransformData?: (params: Record<string, string>) => SelectOptionItem;
|
|
1264
|
-
fetchParams?: Object;
|
|
1265
|
-
optionsDisplayType?: 'labelAndValue';
|
|
1266
|
-
}
|
|
1267
|
-
declare const EffectLabelSelect: FunctionComponent<EffectLabelSelectProps>;
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
*
|
|
1271
|
-
* 返回类型 格式为:
|
|
1272
|
-
* 类型('value' | 'label') + ID(value) + 名称(label) + labelDicKey(映射labelDic的key)
|
|
1273
|
-
*
|
|
1274
|
-
* eg: label;123;哈哈;name
|
|
1275
|
-
* value;123;哈哈;name
|
|
1276
|
-
*
|
|
1277
|
-
* eg: label;111;哈哈;businessNo
|
|
1278
|
-
* value;111;哈哈;businessNo
|
|
1279
|
-
*
|
|
1280
|
-
* eg: label;13200001111;13200001111;phone
|
|
1281
|
-
* value;13200001111;13200001111;phone
|
|
1282
|
-
*/
|
|
1283
|
-
declare const getStrValue: (displayType: "label" | "value", value?: string, label?: string, labelDicKey?: string) => string | undefined;
|
|
1284
|
-
type ReturnType = 'label' | 'value' | 'labelDicKey' | 'labelAndValue';
|
|
1285
|
-
declare const getSelectValue: (str?: string | null | number, returnType?: ReturnType) => string | undefined;
|
|
1286
|
-
declare const getInitialValue: (label?: string, value?: string) => string;
|
|
1287
|
-
declare const getFirstValue: (str?: string) => string | undefined;
|
|
1288
|
-
declare const getSecondValue: (str?: string) => string | undefined;
|
|
1289
|
-
|
|
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 };
|
|
1284
|
+
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, 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, 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 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, getNumberValue, isSingleTreeSelected, replaceRgbWithHex, saasApiService, transformOptionToSelectedList, transformSelectListToValues, transformSimpleFile2UploadFile, transformUploadFile2SimpleFile, transformValuesToSelectList, typedMemo, useMultiWindowContentsRef, useSearchFormStyle, useSseQrcode };
|