mirror of
https://github.com/certd/certd.git
synced 2026-05-17 13:57:31 +08:00
chore: code format
This commit is contained in:
@@ -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,
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user