z-text.vue 721 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="z-text flex-n fac fje" @click="$emit('click')">
  3. <view class="text flex-1 line-1" :style="{color:value?textColor:'#999999'}" >{{value!=''&&value!=null?value:placeholder}}</view>
  4. <view class="z-text_right ml-20 iconfont iconjuxing11kaobei" v-if="arrow"></view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'z-text',
  10. props: {
  11. value: String|Number,
  12. arrow: Boolean,
  13. placeholder: {
  14. type: String,
  15. default: ''
  16. },
  17. textColor:{
  18. type: String,
  19. default: ''
  20. }
  21. },
  22. model: {
  23. props: 'value',
  24. },
  25. }
  26. </script>
  27. <style scoped lang="scss">
  28. .z-text {
  29. .text {
  30. font-size: 28rpx;
  31. }
  32. }
  33. .z-text_right {
  34. font-size: 24rpx;
  35. color: #8E9399;
  36. }
  37. </style>