75 lines
1.2 KiB
Vue
75 lines
1.2 KiB
Vue
<template>
|
|
<u-row justify="between">
|
|
<u-row>
|
|
<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 ''
|
|
}
|
|
},
|
|
placeholder: {
|
|
default () {
|
|
return '请选择'
|
|
}
|
|
},
|
|
value: {
|
|
},
|
|
list: {
|
|
},
|
|
checkedList: {
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
created() {
|
|
|
|
},
|
|
onHide() {
|
|
|
|
},
|
|
unmounted() {},
|
|
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
|
|
</style> |