Blame view

uni_modules/uview-plus/components/u-notify/props.js 1.46 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
  import { defineMixin } from '../../libs/vue'
  import defProps from '../../libs/config/props.js'
  export const props = defineMixin({
      props: {
          // 到顶部的距离
          top: {
              type: [String, Number],
              default: () => defProps.notify.top
          },
          // 是否展示组件
          // show: {
          // 	type: Boolean,
          // 	default: () => defProps.notify.show
          // },
          // type主题,primary,success,warning,error
          type: {
              type: String,
              default: () => defProps.notify.type
          },
          // 字体颜色
          color: {
              type: String,
              default: () => defProps.notify.color
          },
          // 背景颜色
          bgColor: {
              type: String,
              default: () => defProps.notify.bgColor
          },
          // 展示的文字内容
          message: {
              type: String,
              default: () => defProps.notify.message
          },
          // 展示时长,为0时不消失,单位ms
          duration: {
              type: [String, Number],
              default: () => defProps.notify.duration
          },
          // 字体大小
          fontSize: {
              type: [String, Number],
              default: () => defProps.notify.fontSize
          },
          // 是否留出顶部安全距离(状态栏高度)
          safeAreaInsetTop: {
              type: Boolean,
              default: () => defProps.notify.safeAreaInsetTop
          }
      }
  })