toolbar.vue 888 B

1234567891011121314151617181920
  1. <template>
  2. <view>
  3. <!-- template对应的原始代码,为保证正常显示,已对其进行隐藏。 -->
  4. <block name="toolbar" v-if="false">
  5. <view v-if="showToolbar" class="van-picker__toolbar van-hairline--top-bottom toolbar-class">
  6. <view class="van-picker__cancel" hover-class="van-picker__cancel--hover" hover-stay-time="70" data-type="cancel" @tap="emit">
  7. {{ cancelButtonText }}
  8. </view>
  9. <view v-if="title" class="van-picker__title van-ellipsis">{{ title }}</view>
  10. <view class="van-picker__confirm" hover-class="van-picker__confirm--hover" hover-stay-time="70" data-type="confirm" @tap="emit">
  11. {{ confirmButtonText }}
  12. </view>
  13. </view>
  14. </block>
  15. </view>
  16. </template>
  17. <style>
  18. @import './toolbar.css';
  19. </style>