@jctrans-materials/comps-vue3 1.0.11 → 1.0.13

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 校验规则
@@ -13,6 +13,7 @@ interface Props {
13
13
  showApplyData?: boolean;
14
14
  parentId?: number | string | null;
15
15
  parentType?: "Country" | "City" | null;
16
+ disabled?: boolean;
16
17
  }
17
18
  declare function __VLS_template(): {
18
19
  prefix?(_: {}): any;
@@ -57,6 +58,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
57
58
  showApplyData: boolean;
58
59
  parentId: null;
59
60
  parentType: null;
61
+ disabled: boolean;
60
62
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
63
  blur: (...args: any[]) => void;
62
64
  change: (...args: any[]) => void;
@@ -77,6 +79,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
77
79
  showApplyData: boolean;
78
80
  parentId: null;
79
81
  parentType: null;
82
+ disabled: boolean;
80
83
  }>>> & Readonly<{
81
84
  onBlur?: ((...args: any[]) => any) | undefined;
82
85
  onChange?: ((...args: any[]) => any) | undefined;
@@ -86,6 +89,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
86
89
  onRemove?: ((...args: any[]) => any) | undefined;
87
90
  "onApply-data"?: ((...args: any[]) => any) | undefined;
88
91
  }>, {
92
+ disabled: boolean;
89
93
  modelValue: SearchItem | SearchItem[] | null;
90
94
  multiple: boolean;
91
95
  lang: "" | "en" | "cn" | "en-US" | "zh-CN";