mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-11-12 14:27:49 +00:00
表格分页处理
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user