Files
element-plus/docs/examples/notification/positioning.vue
知晓同丶 3b8a590baf docs: improve examples layout for narrow screens (#21489)
* docs: improve examples layout for narrow screens

* docs: style related

* style: [statistic] use utilities

* style: [input] remove deep

* style: [transitions] change style

* refactor: [date-picker-panel] narrow refactor
2025-08-21 10:22:05 +02:00

44 lines
1.0 KiB
Vue

<template>
<div class="flex flex-wrap gap-1">
<el-button class="!ml-0" plain @click="open1"> Top Right </el-button>
<el-button class="!ml-0" plain @click="open2"> Bottom Right </el-button>
<el-button class="!ml-0" plain @click="open3"> Bottom Left </el-button>
<el-button class="!ml-0" plain @click="open4"> Top Left </el-button>
</div>
</template>
<script lang="ts" setup>
import { ElNotification } from 'element-plus'
const open1 = () => {
ElNotification({
title: 'Custom Position',
message: "I'm at the top right corner",
})
}
const open2 = () => {
ElNotification({
title: 'Custom Position',
message: "I'm at the bottom right corner",
position: 'bottom-right',
})
}
const open3 = () => {
ElNotification({
title: 'Custom Position',
message: "I'm at the bottom left corner",
position: 'bottom-left',
})
}
const open4 = () => {
ElNotification({
title: 'Custom Position',
message: "I'm at the top left corner",
position: 'top-left',
})
}
</script>