You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
490 B

9 months ago
  1. <template>
  2. <view class="mySelect">
  3. <view class="text hui" v-if="!value">{{ placeholder }}</view>
  4. <view class="text" v-else>{{ value }}</view>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. props: {
  10. value: {
  11. type: String,
  12. default: ''
  13. },
  14. placeholder: {
  15. type: String,
  16. default: '请选择'
  17. }
  18. },
  19. data() {
  20. return {}
  21. }
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. .mySelect {
  26. color: #333;
  27. font-size: 26rpx;
  28. .hui {
  29. color: #ADADAD;
  30. }
  31. }
  32. </style>