Blame view

uni_modules/uview-plus/components/u-row-notice/props.js 1.32 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
  import { defineMixin } from '../../libs/vue'
  import defProps from '../../libs/config/props.js'
  export const props = defineMixin({
      props: {
          // 显示的内容,字符串
          text: {
              type: String,
              default: () => defProps.rowNotice.text
          },
          // 是否显示左侧的音量图标
          icon: {
              type: String,
              default: () => defProps.rowNotice.icon
          },
          // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
          mode: {
              type: String,
              default: () => defProps.rowNotice.mode
          },
          // 文字颜色,各图标也会使用文字颜色
          color: {
              type: String,
              default: () => defProps.rowNotice.color
          },
          // 背景颜色
          bgColor: {
              type: String,
              default: () => defProps.rowNotice.bgColor
          },
          // 字体大小,单位px
          fontSize: {
              type: [String, Number],
              default: () => defProps.rowNotice.fontSize
          },
          // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
          speed: {
              type: [String, Number],
              default: () => defProps.rowNotice.speed
          }
      }
  })