props.js 595 B

12345678910111213141516171819202122232425262728
  1. import { defineProps } from '../../libs/util/props';
  2. export default defineProps('transition', {
  3. // 是否展示组件
  4. show: {
  5. type: Boolean,
  6. default: false
  7. },
  8. // 使用的动画模式
  9. mode: {
  10. type: [String, null],
  11. default: 'fade'
  12. },
  13. // 动画的执行时间,单位ms
  14. duration: {
  15. type: [String, Number],
  16. default: '300'
  17. },
  18. // 使用的动画过渡函数
  19. timingFunction: {
  20. type: String,
  21. default: 'ease-out'
  22. },
  23. zIndex: {
  24. type: [String, Number],
  25. default: 0
  26. }
  27. })