Update inline message demos
parent
e7aaab62ba
commit
75a903e9a9
|
@ -3,10 +3,10 @@
|
|||
<p>The <i>severity</i> option specifies the type of the message.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
||||
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
@ -17,18 +17,18 @@ export default {
|
|||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
||||
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
||||
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -38,10 +38,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
||||
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -1,74 +0,0 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Custom content inside a message is defined with the <i>default</i> slot.</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<InlineMessage
|
||||
:style="{
|
||||
border: 'solid #696cff',
|
||||
borderWidth: '0 0 0 6px',
|
||||
color: '#696cff'
|
||||
}"
|
||||
severity="info"
|
||||
class="border-primary w-full justify-content-start"
|
||||
>
|
||||
<div class="flex align-items-center">
|
||||
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/logo.svg" width="32" />
|
||||
<div class="ml-2">Always bet on Prime.</div>
|
||||
</div>
|
||||
</InlineMessage>
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<InlineMessage :style="{ border: 'solid #696cff', borderWidth: '0 0 0 6px', color: '#696cff' }"
|
||||
severity="info" class="border-primary w-full justify-content-start">
|
||||
<div class="flex align-items-center">
|
||||
<img alt="logo" src="/images/logo.svg" width="32" />
|
||||
<div class="ml-2">Always bet on Prime.</div>
|
||||
</div>
|
||||
</InlineMessage>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<InlineMessage :style="{ border: 'solid #696cff', borderWidth: '0 0 0 6px', color: '#696cff' }"
|
||||
severity="info" class="border-primary w-full justify-content-start">
|
||||
<div class="flex align-items-center">
|
||||
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/logo.svg" width="32" />
|
||||
<div class="ml-2">Always bet on Prime.</div>
|
||||
</div>
|
||||
</InlineMessage>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
<\/script>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<InlineMessage :style="{ border: 'solid #696cff', borderWidth: '0 0 0 6px', color: '#696cff' }"
|
||||
severity="info" class="border-primary w-full justify-content-start">
|
||||
<div class="flex align-items-center">
|
||||
<img alt="logo" src="https://primefaces.org/cdn/primevue/images/logo.svg" width="32" />
|
||||
<div class="ml-2">Always bet on Prime.</div>
|
||||
</div>
|
||||
</InlineMessage>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<\/script>
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -16,7 +16,6 @@ import BasicDoc from '@/doc/inlinemessage/BasicDoc.vue';
|
|||
import FormDoc from '@/doc/inlinemessage/FormDoc.vue';
|
||||
import ImportDoc from '@/doc/inlinemessage/ImportDoc.vue';
|
||||
import SeverityDoc from '@/doc/inlinemessage/SeverityDoc.vue';
|
||||
import TemplateDoc from '@/doc/inlinemessage/TemplateDoc.vue';
|
||||
import PTComponent from '@/doc/inlinemessage/pt/index.vue';
|
||||
import ThemingDoc from '@/doc/inlinemessage/theming/index.vue';
|
||||
|
||||
|
@ -44,11 +43,6 @@ export default {
|
|||
label: 'Form',
|
||||
component: FormDoc
|
||||
},
|
||||
{
|
||||
id: 'template',
|
||||
label: 'Template',
|
||||
component: TemplateDoc
|
||||
},
|
||||
{
|
||||
id: 'accessibility',
|
||||
label: 'Accessibility',
|
||||
|
|
Loading…
Reference in New Issue