sun-biz 0.0.4-beta.25 → 0.0.4-beta.26
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/components/biz-select/tag-select/api.d.ts +12 -2
- package/dist/components/biz-select/tag-select/utils.d.ts +31 -0
- package/dist/components/index.js +279 -130
- package/dist/hooks/index.js +5 -5
- package/dist/hooks/use-direction-select/index.d.ts +2 -2
- package/dist/index.js +279 -130
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 标签详情
|
|
3
3
|
*/
|
|
4
|
-
interface TagInfo {
|
|
4
|
+
export interface TagInfo {
|
|
5
5
|
tagId: string;
|
|
6
6
|
tagNameDisplay: string;
|
|
7
7
|
sort: number;
|
|
@@ -31,4 +31,14 @@ export declare const queryTagGroupByExampleV1: (params: {
|
|
|
31
31
|
enabledFlag?: number;
|
|
32
32
|
bizId?: string;
|
|
33
33
|
}) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<TagGroupInfo[]> | undefined]>;
|
|
34
|
-
|
|
34
|
+
/**
|
|
35
|
+
* ]根据条件查询标签列表
|
|
36
|
+
* @param params
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare const queryTagListByExample: (params: {
|
|
40
|
+
tagGroupIds?: string[];
|
|
41
|
+
tagIds?: string[];
|
|
42
|
+
enabledFlag?: boolean;
|
|
43
|
+
keyWord?: string;
|
|
44
|
+
}) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<TagInfo[]> | undefined]>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TagInfo, TagGroupInfo } from './api.ts';
|
|
2
|
+
export declare const addTagToMap: (map: Map<string, {
|
|
3
|
+
tagNameDisplay: string;
|
|
4
|
+
background: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}>, tag: {
|
|
7
|
+
tagId: string;
|
|
8
|
+
tagNameDisplay: string;
|
|
9
|
+
tagCssList?: Array<{
|
|
10
|
+
cssTypeCode: string;
|
|
11
|
+
cssValue: string;
|
|
12
|
+
}>;
|
|
13
|
+
}) => void;
|
|
14
|
+
export declare const getModelValueArray: (value: string | string[] | undefined) => string[];
|
|
15
|
+
export declare const createTagsMap: (tableData: TagGroupInfo[], extraTagIds: TagInfo[]) => Map<string, {
|
|
16
|
+
tagNameDisplay: string;
|
|
17
|
+
background: string;
|
|
18
|
+
color: string;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const getOptionStyle: (tagId: string, selectList: string[], allTagsMap: Map<string, {
|
|
21
|
+
tagNameDisplay: string;
|
|
22
|
+
background: string;
|
|
23
|
+
color: string;
|
|
24
|
+
}>) => {
|
|
25
|
+
background?: undefined;
|
|
26
|
+
color?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
background: string | undefined;
|
|
29
|
+
color: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare const isOptionDisabled: (tagId: string, selectList: string[]) => boolean;
|