mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 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
44 lines
1.0 KiB
Vue
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>
|