chore: form modal/drawer should not closeable on click mask

This commit is contained in:
dap 2024-09-20 14:48:17 +08:00
parent e8a2916470
commit 42ead07555
9 changed files with 10 additions and 10 deletions

View File

@ -120,7 +120,7 @@ async function handleCancel() {
</script> </script>
<template> <template>
<BasicDrawer :title="title" class="w-[600px]"> <BasicDrawer :close-on-click-modal="false" :title="title" class="w-[600px]">
<BasicForm> <BasicForm>
<template #clientSecret="slotProps"> <template #clientSecret="slotProps">
<SecretInput v-bind="slotProps" :disabled="isUpdate" /> <SecretInput v-bind="slotProps" :disabled="isUpdate" />

View File

@ -55,7 +55,7 @@ export const drawerSchema: FormSchemaGetter = () => [
}, },
fieldName: 'grantTypeList', fieldName: 'grantTypeList',
label: '授权类型', label: '授权类型',
rules: 'required', rules: 'selectRequired',
}, },
{ {
component: 'Select', component: 'Select',
@ -68,7 +68,7 @@ export const drawerSchema: FormSchemaGetter = () => [
}, },
fieldName: 'deviceType', fieldName: 'deviceType',
label: '设备类型', label: '设备类型',
rules: 'required', rules: 'selectRequired',
}, },
{ {
component: 'InputNumber', component: 'InputNumber',

View File

@ -75,7 +75,7 @@ async function handleCancel() {
</script> </script>
<template> <template>
<BasicModal :title="title" class="w-[550px]"> <BasicModal :close-on-click-modal="false" :title="title" class="w-[550px]">
<BasicForm /> <BasicForm />
</BasicModal> </BasicModal>
</template> </template>

View File

@ -79,7 +79,7 @@ async function handleCancel() {
</script> </script>
<template> <template>
<BasicDrawer :title="title" class="w-[650px]"> <BasicDrawer :close-on-click-modal="false" :title="title" class="w-[650px]">
<BasicForm /> <BasicForm />
</BasicDrawer> </BasicDrawer>
</template> </template>

View File

@ -23,7 +23,7 @@ export const drawerSchema: FormSchemaGetter = () => [
}, },
fieldName: 'deptId', fieldName: 'deptId',
label: '所属部门', label: '所属部门',
rules: 'required', rules: 'selectRequired',
}, },
{ {
component: 'Input', component: 'Input',

View File

@ -109,7 +109,7 @@ async function handleCancel() {
</script> </script>
<template> <template>
<BasicDrawer :title="title" class="w-[600px]"> <BasicDrawer :close-on-click-modal="false" :title="title" class="w-[600px]">
<BasicForm /> <BasicForm />
</BasicDrawer> </BasicDrawer>
</template> </template>

View File

@ -117,7 +117,7 @@ export const drawerSchema: FormSchemaGetter = () => [
}, },
fieldName: 'packageId', fieldName: 'packageId',
label: '租户套餐', label: '租户套餐',
rules: 'required', rules: 'selectRequired',
}, },
{ {
component: 'DatePicker', component: 'DatePicker',

View File

@ -97,7 +97,7 @@ async function handleCancel() {
</script> </script>
<template> <template>
<BasicDrawer :title="title" class="w-[600px]"> <BasicDrawer :close-on-click-modal="false" :title="title" class="w-[600px]">
<BasicForm /> <BasicForm />
</BasicDrawer> </BasicDrawer>
</template> </template>

View File

@ -44,7 +44,7 @@ export const drawerSchema: FormSchemaGetter = () => [
componentProps: { class: 'w-full', placeholder: '请选择' }, componentProps: { class: 'w-full', placeholder: '请选择' },
fieldName: 'deptId', fieldName: 'deptId',
label: '所属部门', label: '所属部门',
rules: 'required', rules: 'selectRequired',
}, },
{ {
component: 'Input', component: 'Input',