mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Merged new Docs and Demos
This commit is contained in:
parent
296cc217fb
commit
dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions
90
doc/inlinemessage/TemplateDoc.vue
Normal file
90
doc/inlinemessage/TemplateDoc.vue
Normal file
|
@ -0,0 +1,90 @@
|
|||
<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="https://primefaces.org/cdn/primevue/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>
|
Loading…
Add table
Add a link
Reference in a new issue