mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3802 - Improve folder structure for nuxt configurations
This commit is contained in:
parent
851950270b
commit
f5fe822afb
563 changed files with 1703 additions and 1095 deletions
65
components/lib/inlinemessage/InlineMessage.vue
Executable file
65
components/lib/inlinemessage/InlineMessage.vue
Executable file
|
@ -0,0 +1,65 @@
|
|||
<template>
|
||||
<div aria-live="polite" :class="containerClass">
|
||||
<span :class="iconClass"></span>
|
||||
<span class="p-inline-message-text"><slot> </slot></span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'InlineMessage',
|
||||
props: {
|
||||
severity: {
|
||||
type: String,
|
||||
default: 'error'
|
||||
}
|
||||
},
|
||||
timeout: null,
|
||||
data() {
|
||||
return {
|
||||
visible: true
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
if (!this.sticky) {
|
||||
setTimeout(() => {
|
||||
this.visible = false;
|
||||
}, this.life);
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
containerClass() {
|
||||
return ['p-inline-message p-component p-inline-message-' + this.severity, { 'p-inline-message-icon-only': !this.$slots.default }];
|
||||
},
|
||||
iconClass() {
|
||||
return [
|
||||
'p-inline-message-icon pi',
|
||||
{
|
||||
'pi-info-circle': this.severity === 'info',
|
||||
'pi-check': this.severity === 'success',
|
||||
'pi-exclamation-triangle': this.severity === 'warn',
|
||||
'pi-times-circle': this.severity === 'error'
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.p-inline-message {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.p-inline-message-icon-only .p-inline-message-text {
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.p-fluid .p-inline-message {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue