Blame view

uni_modules/uview-plus/components/u-tooltip/props.js 2.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
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
  import { defineMixin } from '../../libs/vue'
  import defProps from '../../libs/config/props.js'
  export const props = defineMixin({
      props: {
          // 需要显示的提示文字
          text: {
              type: [String, Number],
              default: () => defProps.tooltip.text
          },
          // 点击复制按钮时,复制的文本,为空则使用text值
          copyText: {
              type: [String, Number],
              default: () => defProps.tooltip.copyText
          },
          // 文本大小
          size: {
              type: [String, Number],
              default: () => defProps.tooltip.size
          },
          // 字体颜色
          color: {
              type: String,
              default: () => defProps.tooltip.color
          },
          // 弹出提示框时,文本的背景色
          bgColor: {
              type: String,
              default: () => defProps.tooltip.bgColor
          },
          // 弹出提示框的背景色
          popupBgColor: {
              type: String,
              default: () => defProps.tooltip.popupBgColor
          },
          // 弹出提示的方向,top-上方,bottom-下方,left-左方,right-右方
          direction: {
              type: String,
              default: () => defProps.tooltip.direction
          },
          // 弹出提示的z-index,nvue无效
          zIndex: {
              type: [String, Number],
              default: () => defProps.tooltip.zIndex
          },
          // 是否显示复制按钮
          showCopy: {
              type: Boolean,
              default: () => defProps.tooltip.showCopy
          },
          // 扩展的按钮组
          buttons: {
              type: Array,
              default: () => defProps.tooltip.buttons
          },
          // 是否显示透明遮罩以防止触摸穿透
          overlay: {
              type: Boolean,
              default: () => defProps.tooltip.overlay
          },
          // 是否显示复制成功或者失败的toast
          showToast: {
              type: Boolean,
              default: () => defProps.tooltip.showToast
          },
          // 触发方式,可选值:longpress/click
          triggerMode: {
              type: String,
              default: () => defProps.tooltip.triggerMode
          },
          // 强制定位
          forcePosition: {
              type: Object,
              default: () => defProps.tooltip.forcePosition
          }
      }
  })