3
0

props.js 768 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.overlay.show
  9. },
  10. // 层级z-index
  11. zIndex: {
  12. type: [String, Number],
  13. default: () => defProps.overlay.zIndex
  14. },
  15. // 遮罩的过渡时间,单位为ms
  16. duration: {
  17. type: [String, Number],
  18. default: () => defProps.overlay.duration
  19. },
  20. // 不透明度值,当做rgba的第四个参数
  21. opacity: {
  22. type: [String, Number],
  23. default: () => defProps.overlay.opacity
  24. }
  25. }
  26. })