Skip to content

Commit 4846ca7

Browse files
authored
fix: restore MemberFormContent type inference
1 parent b6f7d99 commit 4846ca7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ui/src/views/system/role/component/MemberFormContent.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
import {computed, reactive, ref, watch} from 'vue'
7373
import type {FormItemModel} from '@/api/type/role'
7474
75+
type FormRow = Record<string, any> & {
76+
role_id?: string
77+
}
78+
7579
const props = withDefaults(defineProps<{
7680
models: FormItemModel[]
7781
addText?: string
@@ -85,8 +89,8 @@ const props = withDefaults(defineProps<{
8589
8690
const formRef = ref()
8791
const formItem: Record<string, any> = {}
88-
const form = defineModel<Record<string, any>[]>('form', {
89-
default: [],
92+
const form = defineModel<FormRow[]>('form', {
93+
required: true,
9094
})
9195
9296
const loadingStates = reactive<Record<string, boolean>>({})

0 commit comments

Comments
 (0)