Blame view

uni_modules/uview-plus/components/u-popup/props.js 3.08 KB
a2702f6d   刘淇   巡查计划
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
  import { defineMixin } from '../../libs/vue'
  import defProps from '../../libs/config/props.js'
  export const props = defineMixin({
      props: {
          // 是否展示弹窗
          show: {
              type: Boolean,
              default: () => defProps.popup.show
          },
          // 是否显示遮罩
          overlay: {
              type: Boolean,
              default: () => defProps.popup.overlay
          },
          // 弹出的方向,可选值为 top bottom right left center
          mode: {
              type: String,
              default: () => defProps.popup.mode
          },
          // 动画时长,单位ms
          duration: {
              type: [String, Number],
              default: () => defProps.popup.duration
          },
          // 是否显示关闭图标
          closeable: {
              type: Boolean,
              default: () => defProps.popup.closeable
          },
          // 自定义遮罩的样式
          overlayStyle: {
              type: [Object, String],
              default: () => defProps.popup.overlayStyle
          },
          // 点击遮罩是否关闭弹窗
          closeOnClickOverlay: {
              type: Boolean,
              default: () => defProps.popup.closeOnClickOverlay
          },
          // 层级
          zIndex: {
              type: [String, Number],
              default: () => defProps.popup.zIndex
          },
          // 是否为iPhoneX留出底部安全距离
          safeAreaInsetBottom: {
              type: Boolean,
              default: () => defProps.popup.safeAreaInsetBottom
          },
          // 是否留出顶部安全距离(状态栏高度)
          safeAreaInsetTop: {
              type: Boolean,
              default: () => defProps.popup.safeAreaInsetTop
          },
          // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
          closeIconPos: {
              type: String,
              default: () => defProps.popup.closeIconPos
          },
          // 是否显示圆角
          round: {
              type: [Boolean, String, Number],
              default: () => defProps.popup.round
          },
          // mode=center,也即中部弹出时,是否使用缩放模式
          zoom: {
              type: Boolean,
              default: () => defProps.popup.zoom
          },
          // 弹窗背景色,设置为transparent可去除白色背景
          bgColor: {
              type: String,
              default: () => defProps.popup.bgColor
          },
          // 遮罩的透明度,0-1之间
          overlayOpacity: {
              type: [Number, String],
              default: () => defProps.popup.overlayOpacity
          },
          // 是否页面内展示
          pageInline:{
  			type: Boolean,
  			default: () => defProps.popup.pageInline
  		},
          // 是否页开启手势滑动
          touchable:{
  			type: Boolean,
  			default: () => defProps.popup.touchable
  		},
          // 手势滑动最小高度
          minHeight:{
  			type: [String],
  			default: () => defProps.popup.minHeight
  		},
          // 手势滑动最大高度
          maxHeight:{
  			type: [String],
  			default: () => defProps.popup.maxHeight
  		}
      }
  })