Update Toast position doc
parent
84b85dc77d
commit
679926be00
|
@ -18,7 +18,10 @@ export default {
|
||||||
return {
|
return {
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Toast />
|
<Toast position="top-left" group="tl" />
|
||||||
|
<Toast position="bottom-left" group="bl" />
|
||||||
|
<Toast position="bottom-right" group="br" />
|
||||||
|
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<Button label="Top Left" class="mr-2" @click="showTopLeft" />
|
<Button label="Top Left" class="mr-2" @click="showTopLeft" />
|
||||||
<Button label="Bottom Left" severity="warning" @click="showBottomLeft" />
|
<Button label="Bottom Left" severity="warning" @click="showBottomLeft" />
|
||||||
|
@ -27,7 +30,10 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-content-center">
|
||||||
<Toast />
|
<Toast position="top-left" group="tl" />
|
||||||
|
<Toast position="bottom-left" group="bl" />
|
||||||
|
<Toast position="bottom-right" group="br" />
|
||||||
|
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<Button label="Top Left" class="mr-2" @click="showTopLeft" />
|
<Button label="Top Left" class="mr-2" @click="showTopLeft" />
|
||||||
<Button label="Bottom Left" severity="warning" @click="showBottomLeft" />
|
<Button label="Bottom Left" severity="warning" @click="showBottomLeft" />
|
||||||
|
@ -54,7 +60,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-content-center">
|
||||||
<Toast />
|
<Toast position="top-left" group="tl" />
|
||||||
|
<Toast position="bottom-left" group="bl" />
|
||||||
|
<Toast position="bottom-right" group="br" />
|
||||||
|
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<Button label="Top Left" class="mr-2" @click="showTopLeft" />
|
<Button label="Top Left" class="mr-2" @click="showTopLeft" />
|
||||||
<Button label="Bottom Left" severity="warning" @click="showBottomLeft" />
|
<Button label="Bottom Left" severity="warning" @click="showBottomLeft" />
|
||||||
|
|
Loading…
Reference in New Issue