Files
element-plus/docs/examples/tour/placement.vue
Noblet Ouways 2f17df1209 style(eslint-config): newline before import type (#21036)
* 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 db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00

35 lines
711 B
Vue

<template>
<el-button ref="btnRef" type="primary" @click="open = true">
Begin Tour
</el-button>
<el-tour v-model="open">
<el-tour-step
title="Center"
description="Displayed in the center of screen."
/>
<el-tour-step
title="Right"
description="On the right of target."
placement="right"
:target="btnRef?.$el"
/>
<el-tour-step
title="Top"
description="On the top of target."
placement="top"
:target="btnRef?.$el"
/>
</el-tour>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import type { ButtonInstance } from 'element-plus'
const btnRef = ref<ButtonInstance>()
const open = ref(false)
</script>