25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

30 satır
889 B

  1. import { defineMixin } from '../../libs/vue'
  2. import TransitionDefaultProps from './transition'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(TransitionDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 是否展示组件
  8. show: {
  9. type: Boolean,
  10. default: () => defProps.transition.show
  11. },
  12. // 使用的动画模式
  13. mode: {
  14. type: String,
  15. default: () => defProps.transition.mode
  16. },
  17. // 动画的执行时间,单位ms
  18. duration: {
  19. type: [String, Number],
  20. default: () => defProps.transition.duration
  21. },
  22. // 使用的动画过渡函数
  23. timingFunction: {
  24. type: String,
  25. default: () => defProps.transition.timingFunction
  26. }
  27. }
  28. })