perf: 优化标签页,刷新后保证滚动到当前标签页位置

This commit is contained in:
xiaoxian521
2024-01-19 12:54:14 +08:00
parent 47f1d56588
commit b9144f0b6c
2 changed files with 10 additions and 5 deletions

View File

@@ -45,22 +45,21 @@ function onClick() {
<el-card shadow="never">
<template #header>
<div class="card-header">
<span class="font-medium">
<el-space wrap :size="40">
<el-link
href="https://element-plus.org/zh-CN/component/color-picker.html"
target="_blank"
style="margin: 0 4px 5px; font-size: 16px"
style="font-size: 16px; font-weight: 800"
>
颜色选择器
</el-link>
<br />
<el-radio-group v-model="size" size="small">
<el-radio label="large">大尺寸</el-radio>
<el-radio label="default">默认尺寸</el-radio>
<el-radio label="small">小尺寸</el-radio>
<el-radio label="disabled">禁用</el-radio>
</el-radio-group>
</span>
</el-space>
</div>
</template>