2023-12-27 14:49:11 +08:00
|
|
|
<template>
|
|
|
|
<el-button type="primary" @click="open = true">Begin Tour</el-button>
|
|
|
|
|
|
|
|
<el-divider />
|
|
|
|
|
|
|
|
<el-space>
|
2024-01-31 10:35:36 +08:00
|
|
|
<el-button ref="ref1">Upload</el-button>
|
|
|
|
<el-button ref="ref2" type="primary">Save</el-button>
|
2023-12-27 14:49:11 +08:00
|
|
|
<el-button ref="ref3" :icon="MoreFilled" />
|
|
|
|
</el-space>
|
|
|
|
|
|
|
|
<el-tour v-model="open">
|
|
|
|
<el-tour-step
|
|
|
|
:target="ref1?.$el"
|
|
|
|
title="Upload File"
|
|
|
|
description="Put you files here."
|
|
|
|
/>
|
|
|
|
<el-tour-step
|
|
|
|
:target="ref2?.$el"
|
|
|
|
title="Save"
|
|
|
|
description="Save your changes"
|
|
|
|
/>
|
|
|
|
<el-tour-step
|
|
|
|
:target="ref3?.$el"
|
|
|
|
title="Other Actions"
|
|
|
|
description="Click to see other"
|
|
|
|
/>
|
|
|
|
<template #indicators="{ current, total }">
|
|
|
|
<span>{{ current + 1 }} / {{ total }}</span>
|
|
|
|
</template>
|
|
|
|
</el-tour>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { ref } from 'vue'
|
|
|
|
import { MoreFilled } from '@element-plus/icons-vue'
|
2023-12-28 22:53:10 +08:00
|
|
|
import type { ButtonInstance } from 'element-plus'
|
2023-12-27 14:49:11 +08:00
|
|
|
|
2023-12-28 22:53:10 +08:00
|
|
|
const ref1 = ref<ButtonInstance>()
|
|
|
|
const ref2 = ref<ButtonInstance>()
|
|
|
|
const ref3 = ref<ButtonInstance>()
|
2023-12-27 14:49:11 +08:00
|
|
|
|
|
|
|
const open = ref(false)
|
|
|
|
</script>
|