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.
 
 
 

30 lines
892 B

  1. import { defineMixin } from '../../libs/vue'
  2. import OverlayDefaultProps from './overlay'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(OverlayDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 是否显示遮罩
  8. show: {
  9. type: Boolean,
  10. default: () => defProps.overlay.show
  11. },
  12. // 层级z-index
  13. zIndex: {
  14. type: [String, Number],
  15. default: () => defProps.overlay.zIndex
  16. },
  17. // 遮罩的过渡时间,单位为ms
  18. duration: {
  19. type: [String, Number],
  20. default: () => defProps.overlay.duration
  21. },
  22. // 不透明度值,当做rgba的第四个参数
  23. opacity: {
  24. type: [String, Number],
  25. default: () => defProps.overlay.opacity
  26. }
  27. }
  28. })