mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 04:27:26 +08:00
test(ssr): add ssr testing cases
- Add more cases for running ssr tests
This commit is contained in:
19
ssr-testing/cases/steps.vue
Normal file
19
ssr-testing/cases/steps.vue
Normal file
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<el-steps :active="active" finish-status="success">
|
||||
<el-step title="Step 1" />
|
||||
<el-step title="Step 2" />
|
||||
<el-step title="Step 3" />
|
||||
</el-steps>
|
||||
|
||||
<el-button style="margin-top: 12px" @click="next">Next step</el-button>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
const active = ref(0)
|
||||
|
||||
const next = () => {
|
||||
if (active.value++ > 2) active.value = 0
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user