@jctrans-materials/comps-vue3 1.0.10 → 1.0.11
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/JcLoginDialog/constant.d.ts +57 -0
- package/dist/components/JcSearch/hooks/useSearchLogic.d.ts +6 -1
- package/dist/components/JcSearch/index.d.ts +8 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare function validateQQEmail(rule: any, value: any, callback: any): void;
|
|
2
|
+
interface ValidationRule {
|
|
3
|
+
field?: string;
|
|
4
|
+
fullField?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
msg?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function validateUserEmail(rule: ValidationRule, value: string | null | undefined, callback: (error?: Error) => void, isEn?: boolean): Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* 用户名校验函数
|
|
11
|
+
* @param {Object} rule 校验规则
|
|
12
|
+
* @param {String} value 输入值
|
|
13
|
+
* @param {Function} callback 回调函数
|
|
14
|
+
* @param {Boolean} isEn 是否为英文环境 (默认为 true)
|
|
15
|
+
*/
|
|
16
|
+
export declare function validateUserName(rule: any, value: any, callback: any, isEn?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* 密码校验函数
|
|
19
|
+
* @param {Object} rule 校验规则
|
|
20
|
+
* @param {String} value 输入值
|
|
21
|
+
* @param {Function} callback 回调函数
|
|
22
|
+
* @param {Boolean} isEn 是否为英文环境
|
|
23
|
+
*/
|
|
24
|
+
export declare function validateUserPass(rule: any, value: any, callback: any, isEn?: boolean): any;
|
|
25
|
+
/**
|
|
26
|
+
* 手机号校验函数(带接口查重)
|
|
27
|
+
* @param {Object} rule 校验规则
|
|
28
|
+
* @param {String} value 输入值
|
|
29
|
+
* @param {Function} callback 回调函数
|
|
30
|
+
* @param {Boolean} isEn 是否为英文环境
|
|
31
|
+
*/
|
|
32
|
+
export declare function validateUserMobilefive(rule: any, value: any, callback: any, isEn?: boolean): Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* 空格处理工具函数
|
|
35
|
+
*/
|
|
36
|
+
export declare function replaceWSpace(value: any): any;
|
|
37
|
+
/**
|
|
38
|
+
* 公司名称校验函数 (支持中英文切换)
|
|
39
|
+
* @param {Object} rule 校验规则
|
|
40
|
+
* @param {String} value 输入值
|
|
41
|
+
* @param {Function} callback 回调函数
|
|
42
|
+
* @param {Boolean} isEn 是否为英文环境
|
|
43
|
+
* @param {Object} context 传入 this 上下文(用于访问 countryId, appId 等)
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* 整合后的公司名称校验(根据国家 ID 自动切换逻辑)
|
|
47
|
+
* @param {Object} rule 校验规则
|
|
48
|
+
* @param {String} value 输入值
|
|
49
|
+
* @param {Function} callback 回调函数
|
|
50
|
+
* @param {Boolean} isEn 语种环境
|
|
51
|
+
* @param {Object} context 组件实例 (this)
|
|
52
|
+
*/
|
|
53
|
+
export declare function validateCompanyName(rule: any, value: any, callback: any, isEn: boolean | undefined, context: any): Promise<any>;
|
|
54
|
+
export declare function validateVerifyCode(rule: any, value: any, callback: any, isEn?: boolean): any;
|
|
55
|
+
export declare function go2Agreement(target?: string): void;
|
|
56
|
+
export declare function go2Policy(target?: string): void;
|
|
57
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { SearchItem } from '../type';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
interface SearchContext {
|
|
5
|
+
parentId?: Ref<number | string | null>;
|
|
6
|
+
parentType?: Ref<"Country" | "City" | null>;
|
|
7
|
+
}
|
|
8
|
+
export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<string[]>, context?: SearchContext): {
|
|
5
9
|
searchResults: Ref<{
|
|
6
10
|
[x: string]: any;
|
|
7
11
|
id?: string | number | undefined;
|
|
@@ -31,3 +35,4 @@ export declare function useSearchLogic(query: Ref<string>, searchTypeList: Ref<s
|
|
|
31
35
|
fetchData: (page?: number, appendMode?: boolean) => Promise<void>;
|
|
32
36
|
filterByTypes: (data: SearchItem[]) => SearchItem[];
|
|
33
37
|
};
|
|
38
|
+
export {};
|
|
@@ -11,6 +11,8 @@ interface Props {
|
|
|
11
11
|
showSearchIcon?: boolean;
|
|
12
12
|
showItemTag?: boolean;
|
|
13
13
|
showApplyData?: boolean;
|
|
14
|
+
parentId?: number | string | null;
|
|
15
|
+
parentType?: "Country" | "City" | null;
|
|
14
16
|
}
|
|
15
17
|
declare function __VLS_template(): {
|
|
16
18
|
prefix?(_: {}): any;
|
|
@@ -53,6 +55,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
53
55
|
showSearchIcon: boolean;
|
|
54
56
|
showItemTag: boolean;
|
|
55
57
|
showApplyData: boolean;
|
|
58
|
+
parentId: null;
|
|
59
|
+
parentType: null;
|
|
56
60
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
57
61
|
blur: (...args: any[]) => void;
|
|
58
62
|
change: (...args: any[]) => void;
|
|
@@ -71,6 +75,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
71
75
|
showSearchIcon: boolean;
|
|
72
76
|
showItemTag: boolean;
|
|
73
77
|
showApplyData: boolean;
|
|
78
|
+
parentId: null;
|
|
79
|
+
parentType: null;
|
|
74
80
|
}>>> & Readonly<{
|
|
75
81
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
76
82
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -84,6 +90,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
84
90
|
multiple: boolean;
|
|
85
91
|
lang: "" | "en" | "cn" | "en-US" | "zh-CN";
|
|
86
92
|
historyKey: string;
|
|
93
|
+
parentId: number | string | null;
|
|
94
|
+
parentType: "Country" | "City" | null;
|
|
87
95
|
collapseTags: boolean;
|
|
88
96
|
searchTypeList: string[];
|
|
89
97
|
showSearchIcon: boolean;
|