5 changed files with 76 additions and 17 deletions
@ -0,0 +1,57 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="uni-flex u-col-center space-between "> |
||||
|
<view > |
||||
|
<view class="card_itemCode" :class="openPopup(dataContent)"> |
||||
|
{{dataContent.itemCode}} |
||||
|
</view> |
||||
|
<view class="card_itemName_time" style="word-break:break-all;overflow:hidden;white-space:normal;display: flex;align-items: center;" :class="isSpecial ? 'special':''"> |
||||
|
<view style="max-width:280rpx;overflow: hidden;white-space: nowrap;">{{dataContent.itemName}}</view> |
||||
|
<view style="padding-left: 8rpx;padding-right: 8rpx;" v-if="dataContent.itemCode && dataContent.itemDesc1">|</view> |
||||
|
<view style="max-width: 200rpx;overflow: hidden;white-space: nowrap;" v-if="dataContent.itemCode && dataContent.itemDesc1">{{dataContent.itemDesc1}}</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
components: { |
||||
|
|
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
|
||||
|
}; |
||||
|
}, |
||||
|
// 此处定义传入的数据 |
||||
|
props: { |
||||
|
dataContent: { |
||||
|
type: Object, |
||||
|
default: {} |
||||
|
}, |
||||
|
isSpecial: { |
||||
|
type: Boolean, |
||||
|
default: false |
||||
|
}, |
||||
|
}, |
||||
|
watch: { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
openPopup(val) { |
||||
|
|
||||
|
// console.log(JSON.stringify(val)); |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
.special{ |
||||
|
color: blue!important; |
||||
|
font-size: 40rpx; |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue