mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-31 03:17:49 +00:00
表格分页处理
This commit is contained in:
@@ -41,6 +41,14 @@ const props = defineProps({
|
|||||||
showReset: {
|
showReset: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
showBack: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
backUrl: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -110,6 +118,12 @@ defineExpose({
|
|||||||
>
|
>
|
||||||
{{ $t('common.label.reset') }}
|
{{ $t('common.label.reset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="showBack"
|
||||||
|
@click="backUrl?$router.push(backUrl):$router.go(-1)"
|
||||||
|
>
|
||||||
|
{{ $t('common.label.reset') }}
|
||||||
|
</el-button>
|
||||||
<slot
|
<slot
|
||||||
:form="form"
|
:form="form"
|
||||||
name="buttons"
|
name="buttons"
|
||||||
|
|||||||
Reference in New Issue
Block a user