Files
foton-laws-system-front/src/pages/regulatoryRepository/standQA/components/stand-item.vue
T

58 lines
1009 B
Vue

<!--标准的描述-->
<template>
<div style="width: 100%;padding: 10px 0;">
<div id="stand-item">
<div class="row">
<div class="item">
<span>{{stand.standardEncdoing}}</span>
</div>
</div>
<div class="row" v-if="stand.classification !== 'OTHER'">
<div class="item">
<span :title="stand.standardEncdoing + stand.standardName">{{stand.standardName}}</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
name: "stand-item",
props: ['stand'],
computed: {
},
data(){
return{
}
},
watch:{
stand: {
immediate: true,
deep: true,
handler(val) {
this.stand = val
}
}
}
};
</script>
<style lang="less" scoped>
#stand-item{
min-width: 130px;
max-width: 200px;
.row {
line-height: 1.5;
}
.item {
display: inline-block;
width: 200px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
</style>