@ysgroup/ui 0.1.17 → 0.1.18
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/package.json
CHANGED
|
@@ -22,6 +22,7 @@ const submitting = ref(false);
|
|
|
22
22
|
const PASSWORD_REQUIREMENT = "密码须至少包含 8 个字符,并同时包含大写字母、小写字母和数字。";
|
|
23
23
|
|
|
24
24
|
const canChangePassword = computed(() => props.role !== "Root" && props.username?.trim().toLowerCase() !== "root");
|
|
25
|
+
const canManageFrontend = computed(() => props.role === "Admin" || props.role === "Manager");
|
|
25
26
|
const visible = computed(() => props.modelValue && props.authenticated);
|
|
26
27
|
|
|
27
28
|
function isStrongPassword(password: string): boolean {
|
|
@@ -129,7 +130,7 @@ defineExpose({
|
|
|
129
130
|
</template>
|
|
130
131
|
<el-empty v-else description="Root 登录密码由平台安全配置维护,不允许在设置中心修改" :image-size="72" />
|
|
131
132
|
</el-tab-pane>
|
|
132
|
-
<el-tab-pane v-if="
|
|
133
|
+
<el-tab-pane v-if="canManageFrontend && $slots.managerActions" label="前端管理" name="manager-actions">
|
|
133
134
|
<slot name="managerActions" />
|
|
134
135
|
</el-tab-pane>
|
|
135
136
|
</el-tabs>
|