表格分页处理

This commit is contained in:
gary.fu
2024-01-04 10:19:54 +08:00
parent e2aa0c8238
commit f64ad3573c

View File

@@ -41,6 +41,14 @@ const props = defineProps({
showReset: {
type: Boolean,
default: true
},
showBack: {
type: Boolean,
default: false
},
backUrl: {
type: String,
default: ''
}
})
@@ -110,6 +118,12 @@ defineExpose({
>
{{ $t('common.label.reset') }}
</el-button>
<el-button
v-if="showBack"
@click="backUrl?$router.push(backUrl):$router.go(-1)"
>
{{ $t('common.label.reset') }}
</el-button>
<slot
:form="form"
name="buttons"