@jari-ace/element-plus-component 0.3.1 → 0.3.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/autoComplete/JaAutoComplete.vue.d.ts +956 -1179
- package/dist/components/autoComplete/JaAutoComplete.vue.d.ts.map +1 -1
- package/dist/components/button/JaButton.vue.d.ts +114 -450
- package/dist/components/button/JaButton.vue.d.ts.map +1 -1
- package/dist/components/checkbox/JaCheckbox.vue.d.ts +228 -150
- package/dist/components/checkbox/JaCheckbox.vue.d.ts.map +1 -1
- package/dist/components/checkboxGroup/JaCheckboxGroup.vue.d.ts +215 -137
- package/dist/components/checkboxGroup/JaCheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/dropdownButton/JaDropdownButton.vue.d.ts +700 -1596
- package/dist/components/dropdownButton/JaDropdownButton.vue.d.ts.map +1 -1
- package/dist/components/form/JaForm.vue.d.ts +1 -1
- package/dist/components/formItem/JaFormItem.vue.d.ts +83 -293
- package/dist/components/formItem/JaFormItem.vue.d.ts.map +1 -1
- package/dist/components/input/JaInput.vue.d.ts +244 -609
- package/dist/components/input/JaInput.vue.d.ts.map +1 -1
- package/dist/components/inputI18n/I18nBundleEditor.vue.d.ts +1 -1
- package/dist/components/inputI18n/I18nBundleEditor.vue.d.ts.map +1 -1
- package/dist/components/inputI18n/I18nBundleEditor.vue.js +1 -1
- package/dist/components/inputI18n/I18nBundleEditor.vue.js.map +1 -1
- package/dist/components/inputI18n/InputI18n.vue.d.ts.map +1 -1
- package/dist/components/inputI18n/InputI18n.vue.js +14 -5
- package/dist/components/inputI18n/InputI18n.vue.js.map +1 -1
- package/dist/components/inputNumber/JaInputNumber.vue.d.ts +117 -471
- package/dist/components/inputNumber/JaInputNumber.vue.d.ts.map +1 -1
- package/dist/components/inputNumber/JaInputNumber.vue.js +4 -1
- package/dist/components/inputNumber/JaInputNumber.vue.js.map +1 -1
- package/dist/components/properyPicker/PropertyPicker.vue.d.ts.map +1 -1
- package/dist/components/properyPicker/PropertyPicker.vue.js +4 -8
- package/dist/components/properyPicker/PropertyPicker.vue.js.map +1 -1
- package/dist/components/radioGroup/JaRadioGroup.vue.d.ts +96 -287
- package/dist/components/radioGroup/JaRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/rolePicker/RoleCategorySelector.vue.d.ts +14 -0
- package/dist/components/rolePicker/RoleCategorySelector.vue.d.ts.map +1 -0
- package/dist/components/rolePicker/RoleCategorySelector.vue.js +410 -0
- package/dist/components/rolePicker/RoleCategorySelector.vue.js.map +1 -0
- package/dist/components/rolePicker/RoleEditor.vue.d.ts +1 -0
- package/dist/components/rolePicker/RoleEditor.vue.d.ts.map +1 -1
- package/dist/components/rolePicker/RoleEditor.vue.js +64 -31
- package/dist/components/rolePicker/RoleEditor.vue.js.map +1 -1
- package/dist/components/rolePicker/baseRolePicker.vue.d.ts.map +1 -1
- package/dist/components/rolePicker/baseRolePicker.vue.js +7 -9
- package/dist/components/rolePicker/baseRolePicker.vue.js.map +1 -1
- package/dist/components/rolePicker/index.d.ts +2 -0
- package/dist/components/rolePicker/index.d.ts.map +1 -1
- package/dist/components/rolePicker/index.js +2 -0
- package/dist/components/rolePicker/index.js.map +1 -1
- package/dist/components/scrollbar/Scrollbar.vue.d.ts +110 -378
- package/dist/components/scrollbar/Scrollbar.vue.d.ts.map +1 -1
- package/dist/components/switch/JaSwitch.vue.d.ts +96 -431
- package/dist/components/switch/JaSwitch.vue.d.ts.map +1 -1
- package/dist/components/upload/JaUploader.vue.d.ts +50 -6
- package/dist/components/upload/JaUploader.vue.d.ts.map +1 -1
- package/dist/components/upload/index.d.ts +141 -3
- package/dist/components/upload/index.d.ts.map +1 -1
- package/dist/components/upload/index.js +4 -1
- package/dist/components/upload/index.js.map +1 -1
- package/dist/components/upload/types.d.ts +3 -0
- package/dist/components/upload/types.d.ts.map +1 -0
- package/dist/components/upload/types.js +2 -0
- package/dist/components/upload/types.js.map +1 -0
- package/dist/components/upload/uploader.vue.d.ts +26 -3
- package/dist/components/upload/uploader.vue.d.ts.map +1 -1
- package/dist/components/upload/uploader.vue.js +28 -11
- package/dist/components/upload/uploader.vue.js.map +1 -1
- package/dist/components/userGroupTree/src/userGroupTree.vue.d.ts +1808 -0
- package/dist/components/userGroupTree/src/userGroupTree.vue.d.ts.map +1 -0
- package/dist/components/userGroupTree/src/userGroupTree.vue.js +23 -14
- package/dist/components/userGroupTree/src/userGroupTree.vue.js.map +1 -1
- package/dist/components/userSelectDialog/src/userSelectDialog.vue.d.ts.map +1 -1
- package/dist/components/userSelectDialog/src/userSelectDialog.vue.js +2 -0
- package/dist/components/userSelectDialog/src/userSelectDialog.vue.js.map +1 -1
- package/dist/hooks/useAppInstances.d.ts +17 -4
- package/dist/hooks/useAppInstances.d.ts.map +1 -1
- package/dist/hooks/useAppInstances.js +109 -24
- package/dist/hooks/useAppInstances.js.map +1 -1
- package/dist/hooks/useClassificationLevels.d.ts.map +1 -1
- package/dist/hooks/useClassificationLevels.js +30 -7
- package/dist/hooks/useClassificationLevels.js.map +1 -1
- package/dist/hooks/useConstraintProviders.d.ts +5 -0
- package/dist/hooks/useConstraintProviders.d.ts.map +1 -0
- package/dist/hooks/useConstraintProviders.js +31 -0
- package/dist/hooks/useConstraintProviders.js.map +1 -0
- package/dist/hooks/useEntities.d.ts +9 -0
- package/dist/hooks/useEntities.d.ts.map +1 -0
- package/dist/hooks/useEntities.js +40 -0
- package/dist/hooks/useEntities.js.map +1 -0
- package/dist/hooks/useEntityPropDataTypes.d.ts +5 -0
- package/dist/hooks/useEntityPropDataTypes.d.ts.map +1 -0
- package/dist/hooks/useEntityPropDataTypes.js +31 -0
- package/dist/hooks/useEntityPropDataTypes.js.map +1 -0
- package/dist/hooks/useFileConfigurations.d.ts +6 -0
- package/dist/hooks/useFileConfigurations.d.ts.map +1 -0
- package/dist/hooks/useFileConfigurations.js +37 -0
- package/dist/hooks/useFileConfigurations.js.map +1 -0
- package/dist/hooks/useGroups.d.ts +7 -0
- package/dist/hooks/useGroups.d.ts.map +1 -0
- package/dist/hooks/useGroups.js +75 -0
- package/dist/hooks/useGroups.js.map +1 -0
- package/dist/hooks/useNumberTemplates.d.ts +6 -0
- package/dist/hooks/useNumberTemplates.d.ts.map +1 -0
- package/dist/hooks/useNumberTemplates.js +37 -0
- package/dist/hooks/useNumberTemplates.js.map +1 -0
- package/dist/hooks/useProperties.d.ts +9 -0
- package/dist/hooks/useProperties.d.ts.map +1 -0
- package/dist/hooks/useProperties.js +40 -0
- package/dist/hooks/useProperties.js.map +1 -0
- package/dist/hooks/useRoleCategories.d.ts +6 -0
- package/dist/hooks/useRoleCategories.d.ts.map +1 -0
- package/dist/hooks/useRoleCategories.js +37 -0
- package/dist/hooks/useRoleCategories.js.map +1 -0
- package/dist/hooks/useRoles.d.ts +6 -0
- package/dist/hooks/useRoles.d.ts.map +1 -0
- package/dist/hooks/useRoles.js +38 -0
- package/dist/hooks/useRoles.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +9385 -8876
- package/lib/index.umd.cjs +34 -34
- package/package.json +7 -7
- package/packages/components/input/JaInput.vue +1 -1
- package/packages/components/inputI18n/I18nBundleEditor.vue +2 -2
- package/packages/components/inputI18n/InputI18n.vue +33 -25
- package/packages/components/inputNumber/JaInputNumber.vue +6 -5
- package/packages/components/properyPicker/PropertyPicker.vue +4 -8
- package/packages/components/rolePicker/RoleCategorySelector.vue +154 -0
- package/packages/components/rolePicker/RoleEditor.vue +16 -7
- package/packages/components/rolePicker/baseRolePicker.vue +6 -13
- package/packages/components/rolePicker/index.ts +3 -0
- package/packages/components/upload/index.ts +4 -1
- package/packages/components/upload/types.ts +4 -0
- package/packages/components/upload/uploader.vue +456 -381
- package/packages/components/userGroupTree/src/userGroupTree.vue +54 -17
- package/packages/components/userSelectDialog/src/userSelectDialog.vue +1 -1
- package/packages/hooks/useAppInstances.ts +121 -25
- package/packages/hooks/useClassificationLevels.ts +31 -7
- package/packages/hooks/useConstraintProviders.ts +36 -0
- package/packages/hooks/useEntities.ts +44 -0
- package/packages/hooks/useEntityPropDataTypes.ts +37 -0
- package/packages/hooks/useFileConfigurations.ts +41 -0
- package/packages/hooks/useGroups.ts +81 -0
- package/packages/hooks/useNumberTemplates.ts +43 -0
- package/packages/hooks/useProperties.ts +44 -0
- package/packages/hooks/useRoleCategories.ts +42 -0
- package/packages/hooks/useRoles.ts +44 -0
- package/packages/index.ts +9 -0
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { createAxiosWithoutCache, useRoleCategoryApi } from "@jari-ace/app-bolts";
|
|
2
|
+
import { ref, watch } from "vue";
|
|
3
|
+
import { Check, Delete, Edit, InfoFilled, Plus } from "@element-plus/icons-vue";
|
|
4
|
+
import { useRoleCategories } from "../../hooks/useRoleCategories";
|
|
5
|
+
import { ElMessage, ElSelect, ElOption, ElInput, ElText, ElTooltip, ElIcon } from "element-plus";
|
|
6
|
+
import JaButton from "../button/JaButton.vue";
|
|
7
|
+
import vFocus from '../../directives/autofocus';
|
|
8
|
+
const props = defineProps();
|
|
9
|
+
const axios = createAxiosWithoutCache();
|
|
10
|
+
const api = useRoleCategoryApi(axios);
|
|
11
|
+
const model = defineModel({ required: false });
|
|
12
|
+
const { getRoleCategories, refreshRoleCategoryCache } = useRoleCategories();
|
|
13
|
+
const categories = ref([]);
|
|
14
|
+
const editingCategory = ref();
|
|
15
|
+
async function loadCategories() {
|
|
16
|
+
if (!props.appId)
|
|
17
|
+
return;
|
|
18
|
+
categories.value = await getRoleCategories(props.appId);
|
|
19
|
+
if (categories.value.length > 0)
|
|
20
|
+
model.value = categories.value[0].name;
|
|
21
|
+
console.log(`Loading categories for ${props.appId}`, categories.value);
|
|
22
|
+
}
|
|
23
|
+
async function onAddClicked() {
|
|
24
|
+
if (!props.appId) {
|
|
25
|
+
throw new Error('appId 参数不能为空');
|
|
26
|
+
}
|
|
27
|
+
if (!!editingCategory.value) {
|
|
28
|
+
const r = await submit();
|
|
29
|
+
if (!r)
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
editingCategory.value = {
|
|
33
|
+
id: "0",
|
|
34
|
+
name: "",
|
|
35
|
+
app: {
|
|
36
|
+
id: props.appId
|
|
37
|
+
},
|
|
38
|
+
dataVersion: 0
|
|
39
|
+
};
|
|
40
|
+
categories.value.push(editingCategory.value);
|
|
41
|
+
}
|
|
42
|
+
async function onEditClicked(c) {
|
|
43
|
+
if (!!editingCategory.value) {
|
|
44
|
+
if (!(await submit()))
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
editingCategory.value = c;
|
|
48
|
+
}
|
|
49
|
+
async function onSubmitClicked() {
|
|
50
|
+
if (!!editingCategory.value) {
|
|
51
|
+
if (!(await submit()))
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
editingCategory.value = undefined;
|
|
55
|
+
}
|
|
56
|
+
async function onDeleteClicked(c) {
|
|
57
|
+
if (!!editingCategory.value) {
|
|
58
|
+
if (!(await submit()))
|
|
59
|
+
return;
|
|
60
|
+
editingCategory.value = undefined;
|
|
61
|
+
}
|
|
62
|
+
await api.delete({
|
|
63
|
+
id: c.id,
|
|
64
|
+
dataVersion: c.dataVersion
|
|
65
|
+
});
|
|
66
|
+
refreshRoleCategoryCache(props.appId);
|
|
67
|
+
categories.value.splice(categories.value.indexOf(c), 1);
|
|
68
|
+
}
|
|
69
|
+
function onOptionClicked(e, category) {
|
|
70
|
+
if (category === editingCategory.value) {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
e.stopPropagation();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async function submit() {
|
|
76
|
+
if (!editingCategory.value)
|
|
77
|
+
return true;
|
|
78
|
+
if (!editingCategory.value.name || editingCategory.value.name.length < 1) {
|
|
79
|
+
ElMessage.error("类别名称不能为空");
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
let r;
|
|
84
|
+
if (editingCategory.value.id == "0") {
|
|
85
|
+
r = await api.create({
|
|
86
|
+
name: editingCategory.value.name,
|
|
87
|
+
app: editingCategory.value.app
|
|
88
|
+
}, {
|
|
89
|
+
popValidationErrorNotification: true
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
r = await api.update({
|
|
94
|
+
...editingCategory.value
|
|
95
|
+
}, {
|
|
96
|
+
popValidationErrorNotification: true
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
refreshRoleCategoryCache(props.appId);
|
|
100
|
+
editingCategory.value.id = r.id;
|
|
101
|
+
editingCategory.value.dataVersion = r.dataVersion;
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
catch {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
watch(() => props.appId, loadCategories, { immediate: true });
|
|
109
|
+
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
110
|
+
const __VLS_defaults = {};
|
|
111
|
+
const __VLS_modelEmit = defineEmits();
|
|
112
|
+
const __VLS_ctx = {};
|
|
113
|
+
let __VLS_components;
|
|
114
|
+
let __VLS_directives;
|
|
115
|
+
// CSS variable injection
|
|
116
|
+
// CSS variable injection end
|
|
117
|
+
const __VLS_0 = {}.ElSelect;
|
|
118
|
+
/** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
|
|
119
|
+
// @ts-ignore
|
|
120
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
|
|
121
|
+
modelValue: (__VLS_ctx.model),
|
|
122
|
+
placeholder: "[未分类]",
|
|
123
|
+
}));
|
|
124
|
+
const __VLS_2 = __VLS_1({
|
|
125
|
+
modelValue: (__VLS_ctx.model),
|
|
126
|
+
placeholder: "[未分类]",
|
|
127
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
128
|
+
var __VLS_4 = {};
|
|
129
|
+
__VLS_3.slots.default;
|
|
130
|
+
const __VLS_5 = {}.ElOption;
|
|
131
|
+
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
132
|
+
// @ts-ignore
|
|
133
|
+
const __VLS_6 = __VLS_asFunctionalComponent(__VLS_5, new __VLS_5({
|
|
134
|
+
label: "[未分类]",
|
|
135
|
+
value: "",
|
|
136
|
+
}));
|
|
137
|
+
const __VLS_7 = __VLS_6({
|
|
138
|
+
label: "[未分类]",
|
|
139
|
+
value: "",
|
|
140
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_6));
|
|
141
|
+
for (const [c] of __VLS_getVForSourceType((__VLS_ctx.categories))) {
|
|
142
|
+
const __VLS_9 = {}.ElOption;
|
|
143
|
+
/** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
|
|
144
|
+
// @ts-ignore
|
|
145
|
+
const __VLS_10 = __VLS_asFunctionalComponent(__VLS_9, new __VLS_9({
|
|
146
|
+
key: (c.id),
|
|
147
|
+
label: (c.name),
|
|
148
|
+
value: (c.name),
|
|
149
|
+
}));
|
|
150
|
+
const __VLS_11 = __VLS_10({
|
|
151
|
+
key: (c.id),
|
|
152
|
+
label: (c.name),
|
|
153
|
+
value: (c.name),
|
|
154
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
155
|
+
__VLS_12.slots.default;
|
|
156
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
157
|
+
...{ onClick: (...[$event]) => {
|
|
158
|
+
__VLS_ctx.onOptionClicked($event, c);
|
|
159
|
+
} },
|
|
160
|
+
...{ style: {} },
|
|
161
|
+
});
|
|
162
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
163
|
+
...{ style: {} },
|
|
164
|
+
});
|
|
165
|
+
if (c !== __VLS_ctx.editingCategory) {
|
|
166
|
+
const __VLS_13 = {}.ElText;
|
|
167
|
+
/** @type {[typeof __VLS_components.ElText, typeof __VLS_components.elText, typeof __VLS_components.ElText, typeof __VLS_components.elText, ]} */ ;
|
|
168
|
+
// @ts-ignore
|
|
169
|
+
const __VLS_14 = __VLS_asFunctionalComponent(__VLS_13, new __VLS_13({}));
|
|
170
|
+
const __VLS_15 = __VLS_14({}, ...__VLS_functionalComponentArgsRest(__VLS_14));
|
|
171
|
+
__VLS_16.slots.default;
|
|
172
|
+
(c.name);
|
|
173
|
+
var __VLS_16;
|
|
174
|
+
}
|
|
175
|
+
if (c === __VLS_ctx.editingCategory) {
|
|
176
|
+
const __VLS_17 = {}.ElInput;
|
|
177
|
+
/** @type {[typeof __VLS_components.ElInput, typeof __VLS_components.elInput, typeof __VLS_components.ElInput, typeof __VLS_components.elInput, ]} */ ;
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
const __VLS_18 = __VLS_asFunctionalComponent(__VLS_17, new __VLS_17({
|
|
180
|
+
...{ 'onClick': {} },
|
|
181
|
+
...{ 'onKeydown': {} },
|
|
182
|
+
size: "small",
|
|
183
|
+
modelValue: (__VLS_ctx.editingCategory.name),
|
|
184
|
+
maxlength: "255",
|
|
185
|
+
}));
|
|
186
|
+
const __VLS_19 = __VLS_18({
|
|
187
|
+
...{ 'onClick': {} },
|
|
188
|
+
...{ 'onKeydown': {} },
|
|
189
|
+
size: "small",
|
|
190
|
+
modelValue: (__VLS_ctx.editingCategory.name),
|
|
191
|
+
maxlength: "255",
|
|
192
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_18));
|
|
193
|
+
let __VLS_21;
|
|
194
|
+
let __VLS_22;
|
|
195
|
+
let __VLS_23;
|
|
196
|
+
const __VLS_24 = {
|
|
197
|
+
onClick: () => { }
|
|
198
|
+
};
|
|
199
|
+
const __VLS_25 = {
|
|
200
|
+
onKeydown: (__VLS_ctx.onSubmitClicked)
|
|
201
|
+
};
|
|
202
|
+
__VLS_asFunctionalDirective(__VLS_directives.vFocus)(null, { ...__VLS_directiveBindingRestFields, }, null, null);
|
|
203
|
+
var __VLS_20;
|
|
204
|
+
}
|
|
205
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
|
|
206
|
+
if (c !== __VLS_ctx.editingCategory && __VLS_ctx.allowEdit) {
|
|
207
|
+
/** @type {[typeof JaButton, typeof JaButton, ]} */ ;
|
|
208
|
+
// @ts-ignore
|
|
209
|
+
const __VLS_26 = __VLS_asFunctionalComponent(JaButton, new JaButton({
|
|
210
|
+
...{ 'onClick': {} },
|
|
211
|
+
size: "small",
|
|
212
|
+
type: "primary",
|
|
213
|
+
icon: (__VLS_ctx.Edit),
|
|
214
|
+
link: true,
|
|
215
|
+
tooltip: "修改",
|
|
216
|
+
}));
|
|
217
|
+
const __VLS_27 = __VLS_26({
|
|
218
|
+
...{ 'onClick': {} },
|
|
219
|
+
size: "small",
|
|
220
|
+
type: "primary",
|
|
221
|
+
icon: (__VLS_ctx.Edit),
|
|
222
|
+
link: true,
|
|
223
|
+
tooltip: "修改",
|
|
224
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_26));
|
|
225
|
+
let __VLS_29;
|
|
226
|
+
let __VLS_30;
|
|
227
|
+
let __VLS_31;
|
|
228
|
+
const __VLS_32 = {
|
|
229
|
+
onClick: (...[$event]) => {
|
|
230
|
+
if (!(c !== __VLS_ctx.editingCategory && __VLS_ctx.allowEdit))
|
|
231
|
+
return;
|
|
232
|
+
__VLS_ctx.onEditClicked(c);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
var __VLS_28;
|
|
236
|
+
}
|
|
237
|
+
if (c !== __VLS_ctx.editingCategory && __VLS_ctx.allowEdit) {
|
|
238
|
+
/** @type {[typeof JaButton, typeof JaButton, ]} */ ;
|
|
239
|
+
// @ts-ignore
|
|
240
|
+
const __VLS_33 = __VLS_asFunctionalComponent(JaButton, new JaButton({
|
|
241
|
+
...{ 'onClick': {} },
|
|
242
|
+
size: "small",
|
|
243
|
+
type: "danger",
|
|
244
|
+
icon: (__VLS_ctx.Delete),
|
|
245
|
+
link: true,
|
|
246
|
+
tooltip: "删除",
|
|
247
|
+
}));
|
|
248
|
+
const __VLS_34 = __VLS_33({
|
|
249
|
+
...{ 'onClick': {} },
|
|
250
|
+
size: "small",
|
|
251
|
+
type: "danger",
|
|
252
|
+
icon: (__VLS_ctx.Delete),
|
|
253
|
+
link: true,
|
|
254
|
+
tooltip: "删除",
|
|
255
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_33));
|
|
256
|
+
let __VLS_36;
|
|
257
|
+
let __VLS_37;
|
|
258
|
+
let __VLS_38;
|
|
259
|
+
const __VLS_39 = {
|
|
260
|
+
onClick: (...[$event]) => {
|
|
261
|
+
if (!(c !== __VLS_ctx.editingCategory && __VLS_ctx.allowEdit))
|
|
262
|
+
return;
|
|
263
|
+
__VLS_ctx.onDeleteClicked(c);
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
var __VLS_35;
|
|
267
|
+
}
|
|
268
|
+
if (c === __VLS_ctx.editingCategory && __VLS_ctx.allowEdit) {
|
|
269
|
+
/** @type {[typeof JaButton, typeof JaButton, ]} */ ;
|
|
270
|
+
// @ts-ignore
|
|
271
|
+
const __VLS_40 = __VLS_asFunctionalComponent(JaButton, new JaButton({
|
|
272
|
+
...{ 'onClick': {} },
|
|
273
|
+
size: "small",
|
|
274
|
+
type: "primary",
|
|
275
|
+
icon: (__VLS_ctx.Check),
|
|
276
|
+
link: true,
|
|
277
|
+
tooltip: "提交",
|
|
278
|
+
}));
|
|
279
|
+
const __VLS_41 = __VLS_40({
|
|
280
|
+
...{ 'onClick': {} },
|
|
281
|
+
size: "small",
|
|
282
|
+
type: "primary",
|
|
283
|
+
icon: (__VLS_ctx.Check),
|
|
284
|
+
link: true,
|
|
285
|
+
tooltip: "提交",
|
|
286
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_40));
|
|
287
|
+
let __VLS_43;
|
|
288
|
+
let __VLS_44;
|
|
289
|
+
let __VLS_45;
|
|
290
|
+
const __VLS_46 = {
|
|
291
|
+
onClick: (__VLS_ctx.onSubmitClicked)
|
|
292
|
+
};
|
|
293
|
+
var __VLS_42;
|
|
294
|
+
}
|
|
295
|
+
var __VLS_12;
|
|
296
|
+
}
|
|
297
|
+
{
|
|
298
|
+
const { header: __VLS_thisSlot } = __VLS_3.slots;
|
|
299
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
300
|
+
...{ style: {} },
|
|
301
|
+
});
|
|
302
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
303
|
+
...{ style: {} },
|
|
304
|
+
});
|
|
305
|
+
const __VLS_47 = {}.ElText;
|
|
306
|
+
/** @type {[typeof __VLS_components.ElText, typeof __VLS_components.elText, typeof __VLS_components.ElText, typeof __VLS_components.elText, ]} */ ;
|
|
307
|
+
// @ts-ignore
|
|
308
|
+
const __VLS_48 = __VLS_asFunctionalComponent(__VLS_47, new __VLS_47({}));
|
|
309
|
+
const __VLS_49 = __VLS_48({}, ...__VLS_functionalComponentArgsRest(__VLS_48));
|
|
310
|
+
__VLS_50.slots.default;
|
|
311
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.b, __VLS_intrinsicElements.b)({});
|
|
312
|
+
const __VLS_51 = {}.ElTooltip;
|
|
313
|
+
/** @type {[typeof __VLS_components.ElTooltip, typeof __VLS_components.elTooltip, typeof __VLS_components.ElTooltip, typeof __VLS_components.elTooltip, ]} */ ;
|
|
314
|
+
// @ts-ignore
|
|
315
|
+
const __VLS_52 = __VLS_asFunctionalComponent(__VLS_51, new __VLS_51({
|
|
316
|
+
content: "业务分类限制角色只能授予同分类的用户组",
|
|
317
|
+
}));
|
|
318
|
+
const __VLS_53 = __VLS_52({
|
|
319
|
+
content: "业务分类限制角色只能授予同分类的用户组",
|
|
320
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_52));
|
|
321
|
+
__VLS_54.slots.default;
|
|
322
|
+
const __VLS_55 = {}.ElIcon;
|
|
323
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
324
|
+
// @ts-ignore
|
|
325
|
+
const __VLS_56 = __VLS_asFunctionalComponent(__VLS_55, new __VLS_55({}));
|
|
326
|
+
const __VLS_57 = __VLS_56({}, ...__VLS_functionalComponentArgsRest(__VLS_56));
|
|
327
|
+
__VLS_58.slots.default;
|
|
328
|
+
const __VLS_59 = {}.InfoFilled;
|
|
329
|
+
/** @type {[typeof __VLS_components.InfoFilled, typeof __VLS_components.infoFilled, ]} */ ;
|
|
330
|
+
// @ts-ignore
|
|
331
|
+
const __VLS_60 = __VLS_asFunctionalComponent(__VLS_59, new __VLS_59({}));
|
|
332
|
+
const __VLS_61 = __VLS_60({}, ...__VLS_functionalComponentArgsRest(__VLS_60));
|
|
333
|
+
var __VLS_58;
|
|
334
|
+
var __VLS_54;
|
|
335
|
+
var __VLS_50;
|
|
336
|
+
if (__VLS_ctx.allowEdit) {
|
|
337
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
338
|
+
...{ style: {} },
|
|
339
|
+
});
|
|
340
|
+
/** @type {[typeof JaButton, typeof JaButton, ]} */ ;
|
|
341
|
+
// @ts-ignore
|
|
342
|
+
const __VLS_63 = __VLS_asFunctionalComponent(JaButton, new JaButton({
|
|
343
|
+
...{ 'onClick': {} },
|
|
344
|
+
size: "small",
|
|
345
|
+
type: "primary",
|
|
346
|
+
plain: true,
|
|
347
|
+
icon: (__VLS_ctx.Plus),
|
|
348
|
+
shortcut: "Alt+A",
|
|
349
|
+
link: true,
|
|
350
|
+
tooltip: "添加",
|
|
351
|
+
}));
|
|
352
|
+
const __VLS_64 = __VLS_63({
|
|
353
|
+
...{ 'onClick': {} },
|
|
354
|
+
size: "small",
|
|
355
|
+
type: "primary",
|
|
356
|
+
plain: true,
|
|
357
|
+
icon: (__VLS_ctx.Plus),
|
|
358
|
+
shortcut: "Alt+A",
|
|
359
|
+
link: true,
|
|
360
|
+
tooltip: "添加",
|
|
361
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_63));
|
|
362
|
+
let __VLS_66;
|
|
363
|
+
let __VLS_67;
|
|
364
|
+
let __VLS_68;
|
|
365
|
+
const __VLS_69 = {
|
|
366
|
+
onClick: (__VLS_ctx.onAddClicked)
|
|
367
|
+
};
|
|
368
|
+
var __VLS_65;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
var __VLS_3;
|
|
372
|
+
var __VLS_dollars;
|
|
373
|
+
const __VLS_self = (await import('vue')).defineComponent({
|
|
374
|
+
setup() {
|
|
375
|
+
return {
|
|
376
|
+
Check: Check,
|
|
377
|
+
Delete: Delete,
|
|
378
|
+
Edit: Edit,
|
|
379
|
+
InfoFilled: InfoFilled,
|
|
380
|
+
Plus: Plus,
|
|
381
|
+
ElSelect: ElSelect,
|
|
382
|
+
ElOption: ElOption,
|
|
383
|
+
ElInput: ElInput,
|
|
384
|
+
ElText: ElText,
|
|
385
|
+
ElTooltip: ElTooltip,
|
|
386
|
+
ElIcon: ElIcon,
|
|
387
|
+
JaButton: JaButton,
|
|
388
|
+
vFocus: vFocus,
|
|
389
|
+
model: model,
|
|
390
|
+
categories: categories,
|
|
391
|
+
editingCategory: editingCategory,
|
|
392
|
+
onAddClicked: onAddClicked,
|
|
393
|
+
onEditClicked: onEditClicked,
|
|
394
|
+
onSubmitClicked: onSubmitClicked,
|
|
395
|
+
onDeleteClicked: onDeleteClicked,
|
|
396
|
+
onOptionClicked: onOptionClicked,
|
|
397
|
+
};
|
|
398
|
+
},
|
|
399
|
+
__typeEmits: {},
|
|
400
|
+
__typeProps: {},
|
|
401
|
+
});
|
|
402
|
+
export default (await import('vue')).defineComponent({
|
|
403
|
+
setup() {
|
|
404
|
+
return {};
|
|
405
|
+
},
|
|
406
|
+
__typeEmits: {},
|
|
407
|
+
__typeProps: {},
|
|
408
|
+
});
|
|
409
|
+
; /* PartiallyEnd: #4569/main.vue */
|
|
410
|
+
//# sourceMappingURL=RoleCategorySelector.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoleCategorySelector.vue.js","sourceRoot":"","sources":["../../../packages/components/rolePicker/RoleCategorySelector.vue"],"names":[],"mappings":"AAAA,OA4JO,EAAC,uBAAuB,EAAqB,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAC,GAAG,EAAE,KAAK,EAAC,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAC,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAC,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,cAAc,CAAC;AAC/F,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,MAAM,MAAM,4BAA4B,CAAA;AAM/C,MAAM,KAAK,GAAG,WAAW,EAAe,CAAA;AACxC,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAA;AACvC,MAAM,GAAG,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAA;AACrC,MAAM,KAAK,GAAG,WAAW,CAAS,EAAC,QAAQ,EAAE,KAAK,EAAC,CAAC,CAAA;AACpD,MAAM,EAAC,iBAAiB,EAAE,wBAAwB,EAAC,GAAG,iBAAiB,EAAE,CAAC;AAC1E,MAAM,UAAU,GAAG,GAAG,CAAiB,EAAE,CAAC,CAAA;AAC1C,MAAM,eAAe,GAAG,GAAG,EAAgB,CAA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YAC/B,QAAQ,EAAE,QAA2B;YACrC,MAAM,EAAE,MAAuB;YAC/B,KAAK,EAAE,KAAqB;YAC5B,UAAU,EAAE,UAA+B;YAC3C,eAAe,EAAE,eAAyC;YAC1D,YAAY,EAAE,YAAmC;YACjD,aAAa,EAAE,aAAqC;YACpD,eAAe,EAAE,eAAyC;YAC1D,eAAe,EAAE,eAAyC;YAC1D,eAAe,EAAE,eAAyC;SACzD,CAAC;IACF,CAAC;IACD,WAAW,EAAE,EAAqB;IAClC,WAAW,EAAE,EAAuB;CACnC,CAAC,CAAC;AACH,eAAe,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC;IACrD,KAAK;QACL,OAAO,EACN,CAAC;IACF,CAAC;IACD,WAAW,EAAE,EAAqB;IAClC,WAAW,EAAE,EAAuB;CACnC,CAAC,CAAC;AACH,CAAC,CAAA,kCAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleEditor.vue.d.ts","sourceRoot":"","sources":["../../../packages/components/rolePicker/RoleEditor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoleEditor.vue.d.ts","sourceRoot":"","sources":["../../../packages/components/rolePicker/RoleEditor.vue"],"names":[],"mappings":"AA8IA,OAAO,EAGH,KAAK,IAAI,EAEZ,MAAM,qBAAqB,CAAC;AAiB7B,KAAK,WAAW,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;AA2EF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;;;;;;;;AA6QF,wBAOG"}
|
|
@@ -4,10 +4,13 @@ import { JaButton } from "../button";
|
|
|
4
4
|
import { JaInput } from "../input";
|
|
5
5
|
import { JaFormItem } from "../formItem";
|
|
6
6
|
import { JaBaseRolePicker } from "./index";
|
|
7
|
+
import { JaInputI18nRaw } from "../inputI18n";
|
|
7
8
|
import { useBackendValidations } from "../../hooks/useBackendValidations";
|
|
8
9
|
import { ElDrawer, ElButton } from "element-plus";
|
|
9
10
|
import vFocus from "../../directives/autofocus";
|
|
10
11
|
import { useAppInstances } from "../../hooks/useAppInstances";
|
|
12
|
+
import { useRoles } from "../../hooks/useRoles";
|
|
13
|
+
import RoleCategorySelector from "./RoleCategorySelector.vue";
|
|
11
14
|
const visible = defineModel({
|
|
12
15
|
default: false
|
|
13
16
|
});
|
|
@@ -24,7 +27,8 @@ const initData = {
|
|
|
24
27
|
dataVersion: 0,
|
|
25
28
|
description: "",
|
|
26
29
|
id: "0",
|
|
27
|
-
name: ""
|
|
30
|
+
name: "",
|
|
31
|
+
category: props.category
|
|
28
32
|
};
|
|
29
33
|
const state = ref({
|
|
30
34
|
formData: { ...initData }
|
|
@@ -36,12 +40,14 @@ const api = useRoleApi(axios);
|
|
|
36
40
|
const formRef = ref();
|
|
37
41
|
const rolePicker = ref();
|
|
38
42
|
const app = ref();
|
|
43
|
+
const apps = useAppInstances();
|
|
44
|
+
const { refreshRolesCache } = useRoles();
|
|
39
45
|
async function init() {
|
|
40
46
|
state.value.formData = { ...initData };
|
|
41
47
|
if (!props.appName) {
|
|
42
48
|
throw new Error('rolePicker组件的appName属性不能为空');
|
|
43
49
|
}
|
|
44
|
-
app.value = await
|
|
50
|
+
app.value = await apps.getByName(props.appName);
|
|
45
51
|
}
|
|
46
52
|
async function submit() {
|
|
47
53
|
if (!props.appName)
|
|
@@ -61,8 +67,10 @@ async function submit() {
|
|
|
61
67
|
},
|
|
62
68
|
description: role.description,
|
|
63
69
|
name: role.name,
|
|
64
|
-
caption: role.caption
|
|
70
|
+
caption: role.caption,
|
|
71
|
+
category: role.category
|
|
65
72
|
}).then(g => {
|
|
73
|
+
refreshRolesCache(app.value.id);
|
|
66
74
|
emits('success', g);
|
|
67
75
|
visible.value = false;
|
|
68
76
|
}));
|
|
@@ -200,73 +208,96 @@ const __VLS_41 = {}.JaFormItem;
|
|
|
200
208
|
/** @type {[typeof __VLS_components.JaFormItem, typeof __VLS_components.jaFormItem, typeof __VLS_components.JaFormItem, typeof __VLS_components.jaFormItem, ]} */ ;
|
|
201
209
|
// @ts-ignore
|
|
202
210
|
const __VLS_42 = __VLS_asFunctionalComponent(__VLS_41, new __VLS_41({
|
|
211
|
+
label: "业务分类",
|
|
212
|
+
prop: "category",
|
|
213
|
+
}));
|
|
214
|
+
const __VLS_43 = __VLS_42({
|
|
215
|
+
label: "业务分类",
|
|
216
|
+
prop: "category",
|
|
217
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_42));
|
|
218
|
+
__VLS_44.slots.default;
|
|
219
|
+
/** @type {[typeof RoleCategorySelector, typeof RoleCategorySelector, ]} */ ;
|
|
220
|
+
// @ts-ignore
|
|
221
|
+
const __VLS_45 = __VLS_asFunctionalComponent(RoleCategorySelector, new RoleCategorySelector({
|
|
222
|
+
appId: (__VLS_ctx.app?.id),
|
|
223
|
+
modelValue: (__VLS_ctx.state.formData.category),
|
|
224
|
+
}));
|
|
225
|
+
const __VLS_46 = __VLS_45({
|
|
226
|
+
appId: (__VLS_ctx.app?.id),
|
|
227
|
+
modelValue: (__VLS_ctx.state.formData.category),
|
|
228
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_45));
|
|
229
|
+
var __VLS_44;
|
|
230
|
+
const __VLS_48 = {}.JaFormItem;
|
|
231
|
+
/** @type {[typeof __VLS_components.JaFormItem, typeof __VLS_components.jaFormItem, typeof __VLS_components.JaFormItem, typeof __VLS_components.jaFormItem, ]} */ ;
|
|
232
|
+
// @ts-ignore
|
|
233
|
+
const __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48({
|
|
203
234
|
label: "角色说明",
|
|
204
235
|
prop: "description",
|
|
205
236
|
}));
|
|
206
|
-
const
|
|
237
|
+
const __VLS_50 = __VLS_49({
|
|
207
238
|
label: "角色说明",
|
|
208
239
|
prop: "description",
|
|
209
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
210
|
-
|
|
211
|
-
const
|
|
240
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_49));
|
|
241
|
+
__VLS_51.slots.default;
|
|
242
|
+
const __VLS_52 = {}.JaInput;
|
|
212
243
|
/** @type {[typeof __VLS_components.JaInput, typeof __VLS_components.jaInput, ]} */ ;
|
|
213
244
|
// @ts-ignore
|
|
214
|
-
const
|
|
245
|
+
const __VLS_53 = __VLS_asFunctionalComponent(__VLS_52, new __VLS_52({
|
|
215
246
|
type: "textarea",
|
|
216
247
|
}));
|
|
217
|
-
const
|
|
248
|
+
const __VLS_54 = __VLS_53({
|
|
218
249
|
type: "textarea",
|
|
219
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
220
|
-
var
|
|
250
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_53));
|
|
251
|
+
var __VLS_51;
|
|
221
252
|
var __VLS_12;
|
|
222
253
|
{
|
|
223
254
|
const { footer: __VLS_thisSlot } = __VLS_3.slots;
|
|
224
|
-
const
|
|
255
|
+
const __VLS_56 = {}.JaButton;
|
|
225
256
|
/** @type {[typeof __VLS_components.JaButton, typeof __VLS_components.jaButton, typeof __VLS_components.JaButton, typeof __VLS_components.jaButton, ]} */ ;
|
|
226
257
|
// @ts-ignore
|
|
227
|
-
const
|
|
258
|
+
const __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({
|
|
228
259
|
...{ 'onClick': {} },
|
|
229
260
|
size: "default",
|
|
230
261
|
type: "primary",
|
|
231
262
|
loading: (__VLS_ctx.loading),
|
|
232
263
|
shortcut: "Alt+Enter",
|
|
233
264
|
}));
|
|
234
|
-
const
|
|
265
|
+
const __VLS_58 = __VLS_57({
|
|
235
266
|
...{ 'onClick': {} },
|
|
236
267
|
size: "default",
|
|
237
268
|
type: "primary",
|
|
238
269
|
loading: (__VLS_ctx.loading),
|
|
239
270
|
shortcut: "Alt+Enter",
|
|
240
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
241
|
-
let
|
|
242
|
-
let
|
|
243
|
-
let
|
|
244
|
-
const
|
|
271
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_57));
|
|
272
|
+
let __VLS_60;
|
|
273
|
+
let __VLS_61;
|
|
274
|
+
let __VLS_62;
|
|
275
|
+
const __VLS_63 = {
|
|
245
276
|
onClick: (__VLS_ctx.submit)
|
|
246
277
|
};
|
|
247
|
-
|
|
248
|
-
var
|
|
249
|
-
const
|
|
278
|
+
__VLS_59.slots.default;
|
|
279
|
+
var __VLS_59;
|
|
280
|
+
const __VLS_64 = {}.ElButton;
|
|
250
281
|
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
251
282
|
// @ts-ignore
|
|
252
|
-
const
|
|
283
|
+
const __VLS_65 = __VLS_asFunctionalComponent(__VLS_64, new __VLS_64({
|
|
253
284
|
...{ 'onClick': {} },
|
|
254
285
|
size: "default",
|
|
255
286
|
}));
|
|
256
|
-
const
|
|
287
|
+
const __VLS_66 = __VLS_65({
|
|
257
288
|
...{ 'onClick': {} },
|
|
258
289
|
size: "default",
|
|
259
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
260
|
-
let
|
|
261
|
-
let
|
|
262
|
-
let
|
|
263
|
-
const
|
|
290
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_65));
|
|
291
|
+
let __VLS_68;
|
|
292
|
+
let __VLS_69;
|
|
293
|
+
let __VLS_70;
|
|
294
|
+
const __VLS_71 = {
|
|
264
295
|
onClick: (...[$event]) => {
|
|
265
296
|
__VLS_ctx.visible = false;
|
|
266
297
|
}
|
|
267
298
|
};
|
|
268
|
-
|
|
269
|
-
var
|
|
299
|
+
__VLS_67.slots.default;
|
|
300
|
+
var __VLS_67;
|
|
270
301
|
}
|
|
271
302
|
var __VLS_3;
|
|
272
303
|
// @ts-ignore
|
|
@@ -279,9 +310,11 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
279
310
|
JaInput: JaInput,
|
|
280
311
|
JaFormItem: JaFormItem,
|
|
281
312
|
JaBaseRolePicker: JaBaseRolePicker,
|
|
313
|
+
JaInputI18nRaw: JaInputI18nRaw,
|
|
282
314
|
ElDrawer: ElDrawer,
|
|
283
315
|
ElButton: ElButton,
|
|
284
316
|
vFocus: vFocus,
|
|
317
|
+
RoleCategorySelector: RoleCategorySelector,
|
|
285
318
|
visible: visible,
|
|
286
319
|
state: state,
|
|
287
320
|
validator: validator,
|