emis-app/components/tpx-text-item/tpx-text-item.vue
2024-08-06 14:41:25 +08:00

81 lines
1.4 KiB
Vue

<template>
<u-row justify="between">
<u-row>
<view v-if="required" class="lbRequiredDot"></view>
<template v-if="!$slots.left">
<u-text :text="label" size="28" :bold="true"></u-text>
</template>
<slot name="left"></slot>
</u-row>
<view>
<u-row :custom-style="`min-width: ${rightWidth}rpx;margin-left: 10rpx;`" justify="end" align="center">
<template v-if="!$slots.right">
<view style="margin-right: 12rpx; flex:1; text-align: right;">
<tpx-text-dic :value="value" :list="list" :checkedList="checkedList" :placeholder="placeholder"></tpx-text-dic>
</view>
<template v-if="!$slots.rightRcon">
<u-icon size="26" name="arrow-right" color="#333"></u-icon>
</template>
<slot name="rightRcon"></slot>
</template>
<slot name="right"></slot>
</u-row>
</view>
</u-row>
</template>
<script>
export default {
computed: {
},
props: {
rightWidth:{
default() {
return 400
}
},
label: {
default () {
return ''
}
},
required: {
default () {
return false
}
},
placeholder: {
default () {
return '请选择'
}
},
value: {
},
list: {
},
checkedList: {
},
},
data() {
return {
}
},
created() {
},
onHide() {
},
unmounted() {},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>