index.vue 811 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <view
  3. v-if="inited"
  4. :class="'van-transition custom-class ' + classes"
  5. :style="'-webkit-transition-duration:' + currentDuration + 'ms; transition-duration:' + currentDuration + 'ms; ' + (display ? '' : 'display: none;') + ' ' + customStyle"
  6. @transitionend="onTransitionEnd"
  7. >
  8. <slot />
  9. </view>
  10. </template>
  11. <script>
  12. 'use strict';
  13. Object.defineProperty(exports, '__esModule', {
  14. value: true
  15. });
  16. var component_1 = require('../common/component');
  17. var transition_1 = require('../mixins/transition');
  18. component_1.VantComponent({
  19. classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class'],
  20. mixins: [transition_1.transition(true)]
  21. });
  22. </script>
  23. <style>
  24. @import './index.css';
  25. </style>