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>
|
<p>The <i>severity</i> option specifies the type of the message.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
||||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||||
</div>
|
</div>
|
||||||
<DocSectionCode :code="code" />
|
<DocSectionCode :code="code" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -17,18 +17,18 @@ export default {
|
||||||
return {
|
return {
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
||||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -38,10 +38,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
<div class="card flex flex-wrap align-items-center justify-content-center gap-3">
|
||||||
<InlineMessage severity="success">Success Content</InlineMessage>
|
<InlineMessage severity="success">Success Message</InlineMessage>
|
||||||
<InlineMessage severity="info">Info Content</InlineMessage>
|
<InlineMessage severity="info">Info Message</InlineMessage>
|
||||||
<InlineMessage severity="warn">Warning Content</InlineMessage>
|
<InlineMessage severity="warn">Warning Message</InlineMessage>
|
||||||
<InlineMessage severity="error">Error Content</InlineMessage>
|
<InlineMessage severity="error">Error Message</InlineMessage>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</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 FormDoc from '@/doc/inlinemessage/FormDoc.vue';
|
||||||
import ImportDoc from '@/doc/inlinemessage/ImportDoc.vue';
|
import ImportDoc from '@/doc/inlinemessage/ImportDoc.vue';
|
||||||
import SeverityDoc from '@/doc/inlinemessage/SeverityDoc.vue';
|
import SeverityDoc from '@/doc/inlinemessage/SeverityDoc.vue';
|
||||||
import TemplateDoc from '@/doc/inlinemessage/TemplateDoc.vue';
|
|
||||||
import PTComponent from '@/doc/inlinemessage/pt/index.vue';
|
import PTComponent from '@/doc/inlinemessage/pt/index.vue';
|
||||||
import ThemingDoc from '@/doc/inlinemessage/theming/index.vue';
|
import ThemingDoc from '@/doc/inlinemessage/theming/index.vue';
|
||||||
|
|
||||||
|
@ -44,11 +43,6 @@ export default {
|
||||||
label: 'Form',
|
label: 'Form',
|
||||||
component: FormDoc
|
component: FormDoc
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'template',
|
|
||||||
label: 'Template',
|
|
||||||
component: TemplateDoc
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'accessibility',
|
id: 'accessibility',
|
||||||
label: 'Accessibility',
|
label: 'Accessibility',
|
||||||
|
|
Loading…
Reference in New Issue