vue2-simplert-core
Version:
Core CSS and JS Logic for Vue2 Simplert Library
41 lines (40 loc) • 1.81 kB
HTML
<div class="simplert" role="modal" :class="classSimplert" ="closeOverlay">
<div class="simplert__content" :class="classContent">
<div class="simplert__header">
<div class="simplert__x" v-if="showXclose" @click="justCloseSimplert">╳</div>
<div v-if="useIcon">
<div class="simplert__icon simplert__icon--info" v-if="type === 'info'">
<div class="simplert__line simplert__line--info"/>
<div class="simplert__line simplert__line--info-2"/>
</div>
<div class="simplert__icon simplert__icon--success" v-if="type === 'success'">
<div class="simplert__line simplert__line--success"/>
<div class="simplert__line simplert__line--success-2"/>
</div>
<div class="simplert__icon simplert__icon--warning" v-if="type === 'warning'">
<div class="simplert__line simplert__line--warning"/>
<div class="simplert__line simplert__line--warning-2"/>
</div>
<div class="simplert__icon simplert__icon--error" v-if="type === 'error'">
<div class="simplert__line simplert__line--error"/>
<div class="simplert__line simplert__line--error-2"/>
</div>
<div class="simplert__icon" v-if="customIconUrl !== ''">
<img :src="customIconUrl" >
</div>
</div>
<b class="simplert__title">{{ title }}</b>
</div>
<div class="simplert__body">
<div v-html="message"/>
</div>
<div class="simplert__footer">
<button :class="classBtnConfirm" v-if="useConfirmBtn && !hideAllButton" @click="whenConfirm">
{{ customConfirmBtnText }}
</button>
<button :class="classBtnClose" v-if="!hideAllButton" @click="closeSimplert">
{{ customCloseBtnText }}
</button>
</div>
</div>
</div>