3
0

props.js 756 B

1234567891011121314151617181920212223242526
  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. })