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
768 B

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