mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 11:17:46 +08:00
2863f2fde3
* style(components): [tour] Improve style and docs * style(theme-chalk): update
45 lines
1.1 KiB
Vue
45 lines
1.1 KiB
Vue
<template>
|
|
<el-button type="primary" @click="open = true">Begin Tour</el-button>
|
|
|
|
<el-divider />
|
|
|
|
<el-space>
|
|
<el-button ref="ref1">Upload</el-button>
|
|
<el-button ref="ref2" type="primary">Save</el-button>
|
|
<el-button ref="ref3" :icon="MoreFilled" />
|
|
</el-space>
|
|
|
|
<el-tour v-model="open">
|
|
<el-tour-step :target="ref1?.$el" title="Upload File">
|
|
<img
|
|
style="width: 240px"
|
|
src="https://element-plus.org/images/element-plus-logo.svg"
|
|
alt="tour.png"
|
|
/>
|
|
<div>Put you files here.</div>
|
|
</el-tour-step>
|
|
<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"
|
|
/>
|
|
</el-tour>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
import { MoreFilled } from '@element-plus/icons-vue'
|
|
import type { ButtonInstance } from 'element-plus'
|
|
|
|
const ref1 = ref<ButtonInstance>()
|
|
const ref2 = ref<ButtonInstance>()
|
|
const ref3 = ref<ButtonInstance>()
|
|
|
|
const open = ref(false)
|
|
</script>
|