table-filter.vue 491 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <div class="table-filter" v-show="visible">haha</div>
  3. </template>
  4. <style scoped>
  5. .table-filter {
  6. position: absolute 0 100px * *;
  7. background-color: #fff;
  8. }
  9. </style>
  10. <script type="text/babel">
  11. export default {
  12. data() {
  13. return {
  14. visible: true
  15. };
  16. },
  17. events: {
  18. toggleFilterPopup(visibleFilter) {
  19. this.visible = visibleFilter === 'tag';
  20. }
  21. },
  22. ready() {
  23. console.log('popup ready');
  24. }
  25. };
  26. </script>