@jari-ace/element-plus-component 0.2.1 → 0.2.3
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/form/JaForm.vue.d.ts +3 -0
- package/dist/components/form/JaForm.vue.d.ts.map +1 -1
- package/dist/components/form/JaForm.vue.js +22 -68
- package/dist/components/form/JaForm.vue.js.map +1 -1
- package/dist/components/formItem/JaFormItem.vue.d.ts +4 -0
- package/dist/components/formItem/JaFormItem.vue.d.ts.map +1 -1
- package/dist/components/formItem/JaFormItem.vue.js +26 -8
- package/dist/components/formItem/JaFormItem.vue.js.map +1 -1
- package/dist/components/rolePicker/baseRolePicker.vue.d.ts.map +1 -1
- package/dist/components/rolePicker/baseRolePicker.vue.js +4 -2
- package/dist/components/rolePicker/baseRolePicker.vue.js.map +1 -1
- package/dist/components/userPicker/src/JaUserList.vue.d.ts.map +1 -1
- package/dist/components/userPicker/src/JaUserList.vue.js +41 -7
- package/dist/components/userPicker/src/JaUserList.vue.js.map +1 -1
- package/dist/components/userPicker/src/JaUserPicker.vue.d.ts +9 -2
- package/dist/components/userPicker/src/JaUserPicker.vue.d.ts.map +1 -1
- package/dist/components/userPicker/src/JaUserPicker.vue.js +7 -2
- package/dist/components/userPicker/src/JaUserPicker.vue.js.map +1 -1
- package/dist/components/userPicker/src/UserPicker.vue.d.ts +33 -112
- package/dist/components/userPicker/src/UserPicker.vue.d.ts.map +1 -1
- package/dist/components/userPicker/src/UserPicker.vue.js +262 -288
- package/dist/components/userPicker/src/UserPicker.vue.js.map +1 -1
- package/dist/utils/formUtils.d.ts +7 -0
- package/dist/utils/formUtils.d.ts.map +1 -0
- package/dist/utils/formUtils.js +54 -0
- package/dist/utils/formUtils.js.map +1 -0
- package/lib/index.css +1 -1
- package/lib/index.js +1965 -1929
- package/lib/index.umd.cjs +2 -2
- package/package.json +2 -2
- package/packages/components/form/JaForm.vue +29 -69
- package/packages/components/formItem/JaFormItem.vue +35 -16
- package/packages/components/rolePicker/baseRolePicker.vue +6 -2
- package/packages/components/userPicker/src/JaUserList.vue +45 -11
- package/packages/components/userPicker/src/JaUserPicker.vue +4 -1
- package/packages/components/userPicker/src/UserPicker.vue +129 -33
- package/packages/utils/formUtils.ts +57 -0
|
@@ -1,147 +1,68 @@
|
|
|
1
|
-
import { type PropType } from "vue";
|
|
2
1
|
import { type BooleanResultExpression, QUser, type UserReference } from "@jari-ace/app-bolts";
|
|
3
|
-
|
|
2
|
+
type __VLS_Props = {
|
|
4
3
|
/**
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
realmId: {
|
|
8
|
-
type: StringConstructor;
|
|
9
|
-
required: false;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* 弹出下拉选框的快捷键
|
|
13
|
-
*/
|
|
14
|
-
shortcut: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
required: false;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* 是否多选模式
|
|
4
|
+
* Popover 弹出框的触发方式
|
|
21
5
|
*/
|
|
22
|
-
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
required: false;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* 密级过滤
|
|
29
|
-
*/
|
|
30
|
-
classificationLevel: {
|
|
31
|
-
type: NumberConstructor;
|
|
32
|
-
required: false;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* 自定义筛选过滤条件,可以在此回调方法内使用qUser参数构造自定义的查询条件。例如 qUser => qUser.fullName.startWith('王')
|
|
37
|
-
*/
|
|
38
|
-
customFilter: {
|
|
39
|
-
type: PropType<(qUser: InstanceType<typeof QUser>) => BooleanResultExpression>;
|
|
40
|
-
required: false;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* 最多显示多少已选中的用户数量
|
|
44
|
-
*/
|
|
45
|
-
maxShowCount: {
|
|
46
|
-
type: NumberConstructor;
|
|
47
|
-
required: false;
|
|
48
|
-
default: number;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* 高度,默认100%
|
|
52
|
-
*/
|
|
53
|
-
height: {
|
|
54
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
55
|
-
required: false;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* 最大高度
|
|
60
|
-
*/
|
|
61
|
-
maxHeight: {
|
|
62
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
63
|
-
required: false;
|
|
64
|
-
};
|
|
65
|
-
modelValue: {
|
|
66
|
-
type: PropType<UserReference | UserReference[]>;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
69
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
-
"update:modelValue": (value: UserReference | UserReference[]) => any;
|
|
71
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
|
+
trigger?: 'click' | 'focus' | 'hover' | 'contextmenu';
|
|
72
7
|
/**
|
|
73
8
|
* 可选择用户的用户域ID
|
|
74
9
|
*/
|
|
75
|
-
realmId
|
|
76
|
-
type: StringConstructor;
|
|
77
|
-
required: false;
|
|
78
|
-
};
|
|
10
|
+
realmId?: string;
|
|
79
11
|
/**
|
|
80
12
|
* 弹出下拉选框的快捷键
|
|
81
13
|
*/
|
|
82
|
-
shortcut
|
|
83
|
-
type: StringConstructor;
|
|
84
|
-
required: false;
|
|
85
|
-
default: string;
|
|
86
|
-
};
|
|
14
|
+
shortcut?: string;
|
|
87
15
|
/**
|
|
88
16
|
* 是否多选模式
|
|
89
17
|
*/
|
|
90
|
-
multiple
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
required: false;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
18
|
+
multiple?: boolean;
|
|
95
19
|
/**
|
|
96
20
|
* 密级过滤
|
|
97
21
|
*/
|
|
98
|
-
classificationLevel
|
|
99
|
-
type: NumberConstructor;
|
|
100
|
-
required: false;
|
|
101
|
-
default: boolean;
|
|
102
|
-
};
|
|
22
|
+
classificationLevel?: number;
|
|
103
23
|
/**
|
|
104
24
|
* 自定义筛选过滤条件,可以在此回调方法内使用qUser参数构造自定义的查询条件。例如 qUser => qUser.fullName.startWith('王')
|
|
105
25
|
*/
|
|
106
|
-
customFilter:
|
|
107
|
-
type: PropType<(qUser: InstanceType<typeof QUser>) => BooleanResultExpression>;
|
|
108
|
-
required: false;
|
|
109
|
-
};
|
|
26
|
+
customFilter?: (qUser: InstanceType<typeof QUser>) => BooleanResultExpression;
|
|
110
27
|
/**
|
|
111
28
|
* 最多显示多少已选中的用户数量
|
|
112
29
|
*/
|
|
113
|
-
maxShowCount
|
|
114
|
-
type: NumberConstructor;
|
|
115
|
-
required: false;
|
|
116
|
-
default: number;
|
|
117
|
-
};
|
|
30
|
+
maxShowCount?: number;
|
|
118
31
|
/**
|
|
119
32
|
* 高度,默认100%
|
|
120
33
|
*/
|
|
121
|
-
height
|
|
122
|
-
type: (StringConstructor | NumberConstructor)[];
|
|
123
|
-
required: false;
|
|
124
|
-
default: string;
|
|
125
|
-
};
|
|
34
|
+
height?: number | string;
|
|
126
35
|
/**
|
|
127
36
|
* 最大高度
|
|
128
37
|
*/
|
|
129
|
-
maxHeight
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
38
|
+
maxHeight?: number | string;
|
|
39
|
+
/**
|
|
40
|
+
* 是否显示已选用户标签
|
|
41
|
+
*/
|
|
42
|
+
showUserTag?: boolean;
|
|
43
|
+
};
|
|
44
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
45
|
+
modelValue: UserReference[] | UserReference | null;
|
|
46
|
+
};
|
|
47
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
"update:modelValue": (value: UserReference | UserReference[]) => any;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
138
50
|
"onUpdate:modelValue"?: (value: UserReference | UserReference[]) => any;
|
|
139
51
|
}>, {
|
|
140
52
|
multiple: boolean;
|
|
53
|
+
trigger: "click" | "contextmenu" | "focus" | "hover";
|
|
141
54
|
shortcut: string;
|
|
55
|
+
maxHeight: string | number;
|
|
142
56
|
classificationLevel: number;
|
|
143
|
-
height: string | number;
|
|
144
57
|
maxShowCount: number;
|
|
145
|
-
|
|
58
|
+
showUserTag: boolean;
|
|
59
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
60
|
+
default?: (props: {}) => any;
|
|
61
|
+
}>;
|
|
146
62
|
export default _default;
|
|
63
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
64
|
+
new (): {
|
|
65
|
+
$slots: S;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
147
68
|
//# sourceMappingURL=UserPicker.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPicker.vue.d.ts","sourceRoot":"","sources":["../../../../packages/components/userPicker/src/UserPicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserPicker.vue.d.ts","sourceRoot":"","sources":["../../../../packages/components/userPicker/src/UserPicker.vue"],"names":[],"mappings":"AAifA,OAAO,EACH,KAAK,uBAAuB,EAE5B,KAAK,EACL,KAAK,aAAa,EAErB,MAAM,qBAAqB,CAAC;AAW7B,KAAK,WAAW,GAAG;IACf;;OAEG;IACH,OAAO,CAAC,EAAC,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;IACrD;;OAEG;IACH,OAAO,CAAC,EAAC,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAC,OAAO,CAAA;IACjB;;OAEG;IACH,mBAAmB,CAAC,EAAC,MAAM,CAAA;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAC,CAAC,KAAK,EAAE,YAAY,CAAC,OAAO,KAAK,CAAC,KAAK,uBAAuB,CAAC;IAC7E;;OAEG;IACH,YAAY,CAAC,EAAC,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAC,MAAM,GAAC,MAAM,CAAA;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAC,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAC,OAAO,CAAA;CAEvB,CAAC;AAmPF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,EAAE,aAAa,EAAE,GAAG,aAAa,GAAG,IAAI,CAAC;CAClD,CAAC;;;;;;;;;;;;;;;;AA+iBF,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|