mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-16 03:53:39 +08:00

* perf: change to import-x * feat: add rules * chore: fix rule * chore: fix * chore: fix * chore: fix * style: `pnpm lint:fix` * Revert "style: `pnpm lint:fix`" This reverts commit db0116a288299c507e3cfc4d7a22e2207265d920. * Revert "chore: fix" This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318. * chore: fix * style: `pnpm lint:fix` * fix: lint * chore: `pnpm format`
60 lines
1.3 KiB
Vue
60 lines
1.3 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"
|
|
:mask="{
|
|
style: {
|
|
boxShadow: 'inset 0 0 15px #333',
|
|
},
|
|
color: 'rgba(80, 255, 255, .4)',
|
|
}"
|
|
>
|
|
<el-tour-step :target="ref1?.$el" title="Upload File">
|
|
<img
|
|
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"
|
|
:mask="{
|
|
style: {
|
|
boxShadow: 'inset 0 0 15px #fff',
|
|
},
|
|
color: 'rgba(40, 0, 255, .4)',
|
|
}"
|
|
/>
|
|
<el-tour-step
|
|
:target="ref3?.$el"
|
|
title="Other Actions"
|
|
description="Click to see other"
|
|
:mask="false"
|
|
/>
|
|
</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>
|