fix(projects): fix example code

This commit is contained in:
Soybean
2025-08-27 18:33:16 +08:00
parent 30b5e6e96a
commit e46b02d5a9
17 changed files with 99 additions and 777 deletions

View File

@ -8,7 +8,6 @@ defineOptions({
});
interface Emits {
(e: 'reset'): void;
(e: 'search'): void;
}
@ -16,8 +15,14 @@ const emit = defineEmits<Emits>();
const model = defineModel<Api.SystemManage.RoleSearchParams>('model', { required: true });
function reset() {
emit('reset');
function resetModel() {
model.value = {
current: 1,
size: 10,
roleName: null,
roleCode: null,
status: null
};
}
function search() {
@ -47,7 +52,7 @@ function search() {
</NFormItemGi>
<NFormItemGi span="24 s:12 m:6">
<NSpace class="w-full" justify="end">
<NButton @click="reset">
<NButton @click="resetModel">
<template #icon>
<icon-ic-round-refresh class="text-icon" />
</template>