toolbar.vue 767 B

12345678910111213141516171819202122232425
  1. <template>
  2. <uni-shadow-root class="vant-picker-toolbar"><view v-if="showToolbar" class="van-picker__toolbar toolbar-class">
  3. <view class="van-picker__cancel" hover-class="van-picker__cancel--hover" hover-stay-time="70" data-type="cancel" @click="emit">
  4. {{ cancelButtonText }}
  5. </view>
  6. <view v-if="title" class="van-picker__title van-ellipsis">{{
  7. title
  8. }}</view>
  9. <view class="van-picker__confirm" hover-class="van-picker__confirm--hover" hover-stay-time="70" data-type="confirm" @click="emit">
  10. {{ confirmButtonText }}
  11. </view>
  12. </view></uni-shadow-root>
  13. </template>
  14. <script>
  15. global['__wxRoute'] = 'vant/picker/toolbar'
  16. Component({})
  17. export default global['__wxComponents']['vant/picker/toolbar']
  18. </script>
  19. <style platform="mp-weixin">
  20. </style>