Blame view

uni_modules/uview-plus/components/u-back-top/props.js 1.63 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
  import { defineMixin } from '../../libs/vue'
  import defProps from '../../libs/config/props.js'
  export const props = defineMixin({
      props: {
          // 返回顶部的形状,circle-圆形,square-方形
          mode: {
              type: String,
              default: () => defProps.backtop.mode
          },
          // 自定义图标
          icon: {
              type: String,
              default: () => defProps.backtop.icon
          },
          // 提示文字
          text: {
              type: String,
              default: () => defProps.backtop.text
          },
          // 返回顶部滚动时间
          duration: {
              type: [String, Number],
              default: () => defProps.backtop.duration
          },
          // 滚动距离
          scrollTop: {
              type: [String, Number],
              default: () => defProps.backtop.scrollTop
          },
          // 距离顶部多少距离显示,单位px
          top: {
              type: [String, Number],
              default: () => defProps.backtop.top
          },
          // 返回顶部按钮到底部的距离,单位px
          bottom: {
              type: [String, Number],
              default: () => defProps.backtop.bottom
          },
          // 返回顶部按钮到右边的距离,单位px
          right: {
              type: [String, Number],
              default: () => defProps.backtop.right
          },
          // 层级
          zIndex: {
              type: [String, Number],
              default: () => defProps.backtop.zIndex
          },
          // 图标的样式,对象形式
          iconStyle: {
              type: Object,
              default: () => defProps.backtop.iconStyle
          }
      }
  })