chore: code format

This commit is contained in:
xiaojunnuo
2025-06-29 14:09:09 +08:00
parent 04422a4637
commit 4fcfd089d8
644 changed files with 10845 additions and 13184 deletions
@@ -15,12 +15,12 @@ interface Props {
}
defineOptions({
name: "LockScreenModal"
name: "LockScreenModal",
});
withDefaults(defineProps<Props>(), {
avatar: "",
text: ""
text: "",
});
const emit = defineEmits<{
@@ -31,21 +31,21 @@ const [Form, { resetForm, validate, getValues }] = useVbenForm(
reactive({
commonConfig: {
hideLabel: true,
hideRequiredMark: true
hideRequiredMark: true,
},
schema: computed(() => [
{
component: "VbenInputPassword" as const,
componentProps: {
placeholder: $t("ui.widgets.lockScreen.placeholder")
placeholder: $t("ui.widgets.lockScreen.placeholder"),
},
fieldName: "lockScreenPassword",
formFieldProps: { validateOnBlur: false },
label: $t("authentication.password"),
rules: z.string().min(1, { message: $t("ui.widgets.lockScreen.placeholder") })
}
rules: z.string().min(1, { message: $t("ui.widgets.lockScreen.placeholder") }),
},
]),
showDefaultActions: false
showDefaultActions: false,
})
);
@@ -57,7 +57,7 @@ const [Modal] = useVbenModal({
if (isOpen) {
resetForm();
}
}
},
});
async function handleSubmit() {
@@ -16,11 +16,11 @@ interface Props {
}
defineOptions({
name: "LockScreen"
name: "LockScreen",
});
withDefaults(defineProps<Props>(), {
avatar: ""
avatar: "",
});
defineEmits<{ toLogin: [] }>();
@@ -41,20 +41,20 @@ const [Form, { form, validate }] = useVbenForm(
reactive({
commonConfig: {
hideLabel: true,
hideRequiredMark: true
hideRequiredMark: true,
},
schema: computed(() => [
{
component: "VbenInputPassword" as const,
componentProps: {
placeholder: $t("ui.widgets.lockScreen.placeholder")
placeholder: $t("ui.widgets.lockScreen.placeholder"),
},
fieldName: "password",
label: $t("authentication.password"),
rules: z.string().min(1, { message: $t("authentication.passwordTip") })
}
rules: z.string().min(1, { message: $t("authentication.passwordTip") }),
},
]),
showDefaultActions: false
showDefaultActions: false,
})
);