You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Global/components/Misc/InfoBlock-Multiple.vue

51 lines
1.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<div class="WM-Info-Block" :class='direction'>
<div class="Label"><v-icon>WMi-{{icon}}</v-icon> {{label}} </div>
<div class="Values pt-1" >
<v-chip v-if="values.length > 0" v-for="(value, index) in values" :key="index" color="grey lighten-3 ml-1"> {{ value }} </v-chip>
<v-chip outlined color="red" icon="WMi-cancel" v-if="values.length == 0">
<v-icon> WMi-cancel </v-icon> آیتمی مشخص شده نشده است
</v-chip>
</div>
</div>
<!-- <wm-info-block-multiple label="دپارتمان" :values="['فنی مهندسی','برنامه نویسی']" icon="align-right" ></wm-info-block-multiple> -->
</template>
<script>
export default {
props: {
icon: { default: 'check' },
label: { default: " عنوان " },
values: { },
direction: { default: '' },
},
};
</script>
<style lang="scss" scoped>
.WM-Info-Block {
text-align: right;
padding: 5px 10px 10px 10px;
margin-bottom: 10px;
border-right: 1px solid #dcdcdc;
}
.WM-Info-Block.LTR {
text-align: left;
direction: ltr;
font-family: "BYekan-Edited",'Montserrat-Regular' !important;
border-right: 0px;
border-left: 1px solid #dcdcdc;
}
.WM-Info-Block .Label {
color: #797979;
font-size: 14px;
}
.WM-Info-Block .v-icon {
margin-top: -5px;
line-height: 1.6;
margin: 0px 3px;
font-size: 14px;
}
</style>