You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
756 B

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