@jctrans-materials/comps-vue3 1.0.11 → 1.0.12
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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isEn: boolean;
|
|
3
|
+
}>, {
|
|
4
|
+
isEn: boolean;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"apply-join": (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
isEn: boolean;
|
|
9
|
+
}>, {
|
|
10
|
+
isEn: boolean;
|
|
11
|
+
}>>> & Readonly<{
|
|
12
|
+
"onApply-join"?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
isEn: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -6,6 +6,15 @@ interface ValidationRule {
|
|
|
6
6
|
msg?: string;
|
|
7
7
|
}
|
|
8
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
|
+
* @param {Boolean} isChina 是否为中国区 (通过 context 传入,决定校验规则)
|
|
16
|
+
*/
|
|
17
|
+
export declare function validateName(rule: any, value: any, callback: any, isEn?: boolean, isChina?: boolean): any;
|
|
9
18
|
/**
|
|
10
19
|
* 用户名校验函数
|
|
11
20
|
* @param {Object} rule 校验规则
|