emis-sapp/components/buns-post-edit-templates/bpe-goodphoto-tmp.vue

69 lines
907 B
Vue
Raw Normal View History

2024-01-31 09:18:28 +00:00
<template>
2024-05-31 10:42:15 +00:00
<view class="mb-20">
<slot name="title"></slot>
<view v-if="title && !$slots.title">{{title}}</view>
</view>
<tpx-upload v-model:value="modelInfo[filedName]" maxLen="10"></tpx-upload>
2024-01-31 09:18:28 +00:00
</template>
<script>
export default {
computed: {
2024-05-31 10:42:15 +00:00
modelInfo: {
2024-01-31 09:18:28 +00:00
get(){
return this.value
}
}
},
props: {
title: {
default () {
return ''
}
},
filedName:{
default () {
return ''
}
},
value: {
default () {
return {}
}
}
},
data() {
return {
}
},
created() {
},
onHide() {
},
unmounted() {
},
methods: {
}
}
</script>
<style scoped lang="scss">
.yditem{
padding: 20rpx 20rpx;
background-color: #F6F6F6;
border-radius: 10rpx;
margin-bottom: 20rpx;
}
.ydi-lab{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
</style>