uview-plus 3.1.49 → 3.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +10 -10
  2. package/changelog.md +5 -14
  3. package/components/u-action-sheet/props.js +11 -10
  4. package/components/u-album/props.js +12 -11
  5. package/components/u-alert/props.js +9 -8
  6. package/components/u-avatar/props.js +15 -14
  7. package/components/u-avatar-group/props.js +10 -9
  8. package/components/u-back-top/props.js +11 -10
  9. package/components/u-back-top/u-back-top.vue +1 -1
  10. package/components/u-badge/props.js +15 -14
  11. package/components/u-badge/u-badge.vue +1 -1
  12. package/components/u-button/props.js +29 -28
  13. package/components/u-calendar/month.vue +1 -1
  14. package/components/u-calendar/props.js +28 -27
  15. package/components/u-car-keyboard/props.js +1 -0
  16. package/components/u-car-keyboard/u-car-keyboard.vue +1 -1
  17. package/components/u-cell/props.js +18 -17
  18. package/components/u-cell/u-cell.vue +3 -12
  19. package/components/u-cell-group/props.js +3 -2
  20. package/components/u-cell-group/u-cell-group.vue +1 -1
  21. package/components/u-checkbox/props.js +14 -13
  22. package/components/u-checkbox/u-checkbox.vue +1 -1
  23. package/components/u-checkbox-group/props.js +17 -16
  24. package/components/u-circle-progress/props.js +2 -1
  25. package/components/u-code/props.js +7 -6
  26. package/components/u-code/u-code.vue +0 -5
  27. package/components/u-code-input/props.js +17 -16
  28. package/components/u-col/props.js +6 -5
  29. package/components/u-collapse/props.js +4 -3
  30. package/components/u-collapse-item/props.js +12 -11
  31. package/components/u-column-notice/props.js +11 -10
  32. package/components/u-count-down/props.js +5 -4
  33. package/components/u-count-down/u-count-down.vue +1 -6
  34. package/components/u-count-to/props.js +12 -11
  35. package/components/u-datetime-picker/props.js +25 -37
  36. package/components/u-datetime-picker/u-datetime-picker.vue +3 -22
  37. package/components/u-divider/props.js +9 -8
  38. package/components/u-dropdown/props.js +1 -0
  39. package/components/u-dropdown-item/props.js +1 -0
  40. package/components/u-empty/props.js +12 -11
  41. package/components/u-form/props.js +9 -8
  42. package/components/u-form/u-form.vue +1 -1
  43. package/components/u-form-item/props.js +9 -13
  44. package/components/u-form-item/u-form-item.vue +0 -1
  45. package/components/u-gap/props.js +5 -4
  46. package/components/u-grid/props.js +4 -3
  47. package/components/u-grid-item/props.js +3 -2
  48. package/components/u-grid-item/u-grid-item.vue +0 -5
  49. package/components/u-icon/props.js +18 -17
  50. package/components/u-icon/u-icon.vue +6 -9
  51. package/components/u-image/props.js +17 -16
  52. package/components/u-image/u-image.vue +1 -1
  53. package/components/u-index-anchor/props.js +6 -5
  54. package/components/u-index-anchor/u-index-anchor.vue +1 -1
  55. package/components/u-index-item/props.js +1 -0
  56. package/components/u-index-item/u-index-item.vue +1 -1
  57. package/components/u-index-list/props.js +6 -5
  58. package/components/u-index-list/u-index-list.vue +2 -3
  59. package/components/u-input/props.js +36 -35
  60. package/components/u-input/u-input.vue +4 -10
  61. package/components/u-keyboard/props.js +17 -16
  62. package/components/u-line/props.js +7 -6
  63. package/components/u-line-progress/props.js +6 -5
  64. package/components/u-link/props.js +8 -7
  65. package/components/u-list/props.js +15 -14
  66. package/components/u-list-item/props.js +2 -1
  67. package/components/u-loading-icon/props.js +12 -11
  68. package/components/u-loading-page/props.js +10 -9
  69. package/components/u-loadmore/props.js +19 -18
  70. package/components/u-modal/props.js +17 -16
  71. package/components/u-navbar/props.js +17 -16
  72. package/components/u-no-network/props.js +4 -3
  73. package/components/u-notice-bar/props.js +14 -13
  74. package/components/u-notify/props.js +10 -9
  75. package/components/u-notify/u-notify.vue +0 -5
  76. package/components/u-number-box/props.js +23 -22
  77. package/components/u-number-box/u-number-box.vue +1 -21
  78. package/components/u-number-keyboard/props.js +4 -3
  79. package/components/u-overlay/props.js +5 -4
  80. package/components/u-parse/props.js +9 -8
  81. package/components/u-parse/u-parse.vue +1 -6
  82. package/components/u-picker/props.js +17 -16
  83. package/components/u-picker-column/props.js +1 -0
  84. package/components/u-popup/props.js +16 -15
  85. package/components/u-radio/props.js +14 -13
  86. package/components/u-radio-group/props.js +18 -17
  87. package/components/u-rate/props.js +15 -14
  88. package/components/u-read-more/props.js +9 -8
  89. package/components/u-row/props.js +4 -3
  90. package/components/u-row-notice/props.js +8 -7
  91. package/components/u-row-notice/u-row-notice.vue +0 -5
  92. package/components/u-safe-bottom/props.js +1 -0
  93. package/components/u-scroll-list/props.js +7 -6
  94. package/components/u-search/props.js +25 -24
  95. package/components/u-skeleton/props.js +12 -11
  96. package/components/u-slider/props.js +12 -11
  97. package/components/u-status-bar/props.js +2 -1
  98. package/components/u-status-bar/u-status-bar.vue +1 -1
  99. package/components/u-steps/props.js +8 -7
  100. package/components/u-steps/u-steps.vue +1 -1
  101. package/components/u-steps-item/props.js +5 -4
  102. package/components/u-steps-item/u-steps-item.vue +1 -1
  103. package/components/u-sticky/props.js +7 -6
  104. package/components/u-sticky/u-sticky.vue +0 -5
  105. package/components/u-subsection/props.js +10 -9
  106. package/components/u-swipe-action/props.js +2 -1
  107. package/components/u-swipe-action-item/nvue.js +0 -5
  108. package/components/u-swipe-action-item/props.js +7 -6
  109. package/components/u-swiper/props.js +25 -24
  110. package/components/u-swiper-indicator/props.js +6 -5
  111. package/components/u-switch/props.js +12 -11
  112. package/components/u-tabbar/props.js +9 -8
  113. package/components/u-tabbar-item/props.js +7 -6
  114. package/components/u-table/props.js +1 -0
  115. package/components/u-tabs/props.js +13 -12
  116. package/components/u-tabs-item/props.js +1 -0
  117. package/components/u-tag/props.js +16 -15
  118. package/components/u-td/props.js +1 -0
  119. package/components/u-text/props.js +22 -21
  120. package/components/u-textarea/props.js +24 -23
  121. package/components/u-toast/u-toast.vue +0 -5
  122. package/components/u-toolbar/props.js +7 -6
  123. package/components/u-tooltip/props.js +12 -11
  124. package/components/u-tr/props.js +1 -0
  125. package/components/u-transition/props.js +5 -4
  126. package/components/u-transition/transition.js +9 -8
  127. package/components/u-transition/u-transition.vue +1 -1
  128. package/components/u-upload/props.js +23 -22
  129. package/components/u-upload/u-upload.vue +1 -1
  130. package/index.js +5 -1
  131. package/libs/config/props/actionSheet.js +1 -1
  132. package/libs/config/props/album.js +1 -1
  133. package/libs/config/props/avatarGroup.js +1 -1
  134. package/libs/config/props/backtop.js +2 -2
  135. package/libs/config/props/badge.js +1 -1
  136. package/libs/config/props/calendar.js +3 -3
  137. package/libs/config/props/checkboxGroup.js +1 -1
  138. package/libs/config/props/datetimePicker.js +1 -1
  139. package/libs/config/props/form.js +3 -3
  140. package/libs/config/props/formItem.js +0 -1
  141. package/libs/config/props/indexList.js +1 -1
  142. package/libs/config/props/noticeBar.js +1 -1
  143. package/libs/config/props/picker.js +2 -2
  144. package/libs/config/props/popup.js +1 -1
  145. package/libs/config/props/search.js +2 -2
  146. package/libs/config/props/slider.js +1 -1
  147. package/libs/config/props/swiper.js +1 -1
  148. package/libs/config/props/tabs.js +7 -7
  149. package/libs/config/props/text.js +2 -2
  150. package/libs/config/props/toast.js +1 -1
  151. package/libs/config/props/tooltip.js +1 -1
  152. package/libs/config/props/upload.js +3 -3
  153. package/libs/css/components.scss +1 -11
  154. package/libs/css/flex.scss +71 -73
  155. package/package.json +1 -1
@@ -1,84 +1,85 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
4
5
  mode: {
5
6
  type: String,
6
- default: () => uni.$u.props.keyboard.mode
7
+ default: defprops.keyboard.mode
7
8
  },
8
9
  // 是否显示键盘的"."符号
9
10
  dotDisabled: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.keyboard.dotDisabled
12
+ default: defprops.keyboard.dotDisabled
12
13
  },
13
14
  // 是否显示顶部工具条
14
15
  tooltip: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.keyboard.tooltip
17
+ default: defprops.keyboard.tooltip
17
18
  },
18
19
  // 是否显示工具条中间的提示
19
20
  showTips: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.keyboard.showTips
22
+ default: defprops.keyboard.showTips
22
23
  },
23
24
  // 工具条中间的提示文字
24
25
  tips: {
25
26
  type: String,
26
- default: () => uni.$u.props.keyboard.tips
27
+ default: defprops.keyboard.tips
27
28
  },
28
29
  // 是否显示工具条左边的"取消"按钮
29
30
  showCancel: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.keyboard.showCancel
32
+ default: defprops.keyboard.showCancel
32
33
  },
33
34
  // 是否显示工具条右边的"完成"按钮
34
35
  showConfirm: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.keyboard.showConfirm
37
+ default: defprops.keyboard.showConfirm
37
38
  },
38
39
  // 是否打乱键盘按键的顺序
39
40
  random: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.keyboard.random
42
+ default: defprops.keyboard.random
42
43
  },
43
44
  // 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
44
45
  safeAreaInsetBottom: {
45
46
  type: Boolean,
46
- default: () => uni.$u.props.keyboard.safeAreaInsetBottom
47
+ default: defprops.keyboard.safeAreaInsetBottom
47
48
  },
48
49
  // 是否允许通过点击遮罩关闭键盘
49
50
  closeOnClickOverlay: {
50
51
  type: Boolean,
51
- default: () => uni.$u.props.keyboard.closeOnClickOverlay
52
+ default: defprops.keyboard.closeOnClickOverlay
52
53
  },
53
54
  // 控制键盘的弹出与收起
54
55
  show: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.keyboard.show
57
+ default: defprops.keyboard.show
57
58
  },
58
59
  // 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
59
60
  overlay: {
60
61
  type: Boolean,
61
- default: () => uni.$u.props.keyboard.overlay
62
+ default: defprops.keyboard.overlay
62
63
  },
63
64
  // z-index值
64
65
  zIndex: {
65
66
  type: [String, Number],
66
- default: () => uni.$u.props.keyboard.zIndex
67
+ default: defprops.keyboard.zIndex
67
68
  },
68
69
  // 取消按钮的文字
69
70
  cancelText: {
70
71
  type: String,
71
- default: () => uni.$u.props.keyboard.cancelText
72
+ default: defprops.keyboard.cancelText
72
73
  },
73
74
  // 确认按钮的文字
74
75
  confirmText: {
75
76
  type: String,
76
- default: () => uni.$u.props.keyboard.confirmText
77
+ default: defprops.keyboard.confirmText
77
78
  },
78
79
  // 输入一个中文后,是否自动切换到英文
79
80
  autoChange: {
80
81
  type: Boolean,
81
- default: () => uni.$u.props.keyboard.autoChange
82
+ default: defprops.keyboard.autoChange
82
83
  }
83
84
  }
84
85
  }
@@ -1,33 +1,34 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  color: {
4
5
  type: String,
5
- default: () => uni.$u.props.line.color
6
+ default: defprops.line.color
6
7
  },
7
8
  // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
8
9
  length: {
9
10
  type: [String, Number],
10
- default: () => uni.$u.props.line.length
11
+ default: defprops.line.length
11
12
  },
12
13
  // 线条方向,col-竖向,row-横向
13
14
  direction: {
14
15
  type: String,
15
- default: () => uni.$u.props.line.direction
16
+ default: defprops.line.direction
16
17
  },
17
18
  // 是否显示细边框
18
19
  hairline: {
19
20
  type: Boolean,
20
- default: () => uni.$u.props.line.hairline
21
+ default: defprops.line.hairline
21
22
  },
22
23
  // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
23
24
  margin: {
24
25
  type: [String, Number],
25
- default: () => uni.$u.props.line.margin
26
+ default: defprops.line.margin
26
27
  },
27
28
  // 是否虚线,true-虚线,false-实线
28
29
  dashed: {
29
30
  type: Boolean,
30
- default: () => uni.$u.props.line.dashed
31
+ default: defprops.line.dashed
31
32
  }
32
33
  }
33
34
  }
@@ -1,28 +1,29 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 激活部分的颜色
4
5
  activeColor: {
5
6
  type: String,
6
- default: () => uni.$u.props.lineProgress.activeColor
7
+ default: defprops.lineProgress.activeColor
7
8
  },
8
9
  inactiveColor: {
9
10
  type: String,
10
- default: () => uni.$u.props.lineProgress.color
11
+ default: defprops.lineProgress.color
11
12
  },
12
13
  // 进度百分比,数值
13
14
  percentage: {
14
15
  type: [String, Number],
15
- default: () => uni.$u.props.lineProgress.inactiveColor
16
+ default: defprops.lineProgress.inactiveColor
16
17
  },
17
18
  // 是否在进度条内部显示百分比的值
18
19
  showText: {
19
20
  type: Boolean,
20
- default: () => uni.$u.props.lineProgress.showText
21
+ default: defprops.lineProgress.showText
21
22
  },
22
23
  // 进度条的高度,单位px
23
24
  height: {
24
25
  type: [String, Number],
25
- default: () => uni.$u.props.lineProgress.height
26
+ default: defprops.lineProgress.height
26
27
  }
27
28
  }
28
29
  }
@@ -1,39 +1,40 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 文字颜色
4
5
  color: {
5
6
  type: String,
6
- default: () => uni.$u.props.link.color
7
+ default: defprops.link.color
7
8
  },
8
9
  // 字体大小,单位px
9
10
  fontSize: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.link.fontSize
12
+ default: defprops.link.fontSize
12
13
  },
13
14
  // 是否显示下划线
14
15
  underLine: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.link.underLine
17
+ default: defprops.link.underLine
17
18
  },
18
19
  // 要跳转的链接
19
20
  href: {
20
21
  type: String,
21
- default: () => uni.$u.props.link.href
22
+ default: defprops.link.href
22
23
  },
23
24
  // 小程序中复制到粘贴板的提示语
24
25
  mpTips: {
25
26
  type: String,
26
- default: () => uni.$u.props.link.mpTips
27
+ default: defprops.link.mpTips
27
28
  },
28
29
  // 下划线颜色
29
30
  lineColor: {
30
31
  type: String,
31
- default: () => uni.$u.props.link.lineColor
32
+ default: defprops.link.lineColor
32
33
  },
33
34
  // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
34
35
  text: {
35
36
  type: String,
36
- default: () => uni.$u.props.link.text
37
+ default: defprops.link.text
37
38
  }
38
39
  }
39
40
  }
@@ -1,74 +1,75 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 控制是否出现滚动条,仅nvue有效
4
5
  showScrollbar: {
5
6
  type: Boolean,
6
- default: () => uni.$u.props.list.showScrollbar
7
+ default: defprops.list.showScrollbar
7
8
  },
8
9
  // 距底部多少时触发scrolltolower事件
9
10
  lowerThreshold: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.list.lowerThreshold
12
+ default: defprops.list.lowerThreshold
12
13
  },
13
14
  // 距顶部多少时触发scrolltoupper事件,非nvue有效
14
15
  upperThreshold: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.list.upperThreshold
17
+ default: defprops.list.upperThreshold
17
18
  },
18
19
  // 设置竖向滚动条位置
19
20
  scrollTop: {
20
21
  type: [String, Number],
21
- default: () => uni.$u.props.list.scrollTop
22
+ default: defprops.list.scrollTop
22
23
  },
23
24
  // 控制 onscroll 事件触发的频率,仅nvue有效
24
25
  offsetAccuracy: {
25
26
  type: [String, Number],
26
- default: () => uni.$u.props.list.offsetAccuracy
27
+ default: defprops.list.offsetAccuracy
27
28
  },
28
29
  // 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
29
30
  enableFlex: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.list.enableFlex
32
+ default: defprops.list.enableFlex
32
33
  },
33
34
  // 是否按分页模式显示List,默认值false
34
35
  pagingEnabled: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.list.pagingEnabled
37
+ default: defprops.list.pagingEnabled
37
38
  },
38
39
  // 是否允许List滚动
39
40
  scrollable: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.list.scrollable
42
+ default: defprops.list.scrollable
42
43
  },
43
44
  // 值应为某子元素id(id不能以数字开头)
44
45
  scrollIntoView: {
45
46
  type: String,
46
- default: () => uni.$u.props.list.scrollIntoView
47
+ default: defprops.list.scrollIntoView
47
48
  },
48
49
  // 在设置滚动条位置时使用动画过渡
49
50
  scrollWithAnimation: {
50
51
  type: Boolean,
51
- default: () => uni.$u.props.list.scrollWithAnimation
52
+ default: defprops.list.scrollWithAnimation
52
53
  },
53
54
  // iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
54
55
  enableBackToTop: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.list.enableBackToTop
57
+ default: defprops.list.enableBackToTop
57
58
  },
58
59
  // 列表的高度
59
60
  height: {
60
61
  type: [String, Number],
61
- default: () => uni.$u.props.list.height
62
+ default: defprops.list.height
62
63
  },
63
64
  // 列表宽度
64
65
  width: {
65
66
  type: [String, Number],
66
- default: () => uni.$u.props.list.width
67
+ default: defprops.list.width
67
68
  },
68
69
  // 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
69
70
  preLoadScreen: {
70
71
  type: [String, Number],
71
- default: () => uni.$u.props.list.preLoadScreen
72
+ default: defprops.list.preLoadScreen
72
73
  }
73
74
  // vue下,是否开启虚拟列表
74
75
 
@@ -1,9 +1,10 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 用于滚动到指定item
4
5
  anchor: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.listItem.anchor
7
+ default: defprops.listItem.anchor
7
8
  }
8
9
  }
9
10
  }
@@ -1,59 +1,60 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 是否显示组件
4
5
  show: {
5
6
  type: Boolean,
6
- default: () => uni.$u.props.loadingIcon.show
7
+ default: defprops.loadingIcon.show
7
8
  },
8
9
  // 颜色
9
10
  color: {
10
11
  type: String,
11
- default: () => uni.$u.props.loadingIcon.color
12
+ default: defprops.loadingIcon.color
12
13
  },
13
14
  // 提示文字颜色
14
15
  textColor: {
15
16
  type: String,
16
- default: () => uni.$u.props.loadingIcon.textColor
17
+ default: defprops.loadingIcon.textColor
17
18
  },
18
19
  // 文字和图标是否垂直排列
19
20
  vertical: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.loadingIcon.vertical
22
+ default: defprops.loadingIcon.vertical
22
23
  },
23
24
  // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
24
25
  mode: {
25
26
  type: String,
26
- default: () => uni.$u.props.loadingIcon.mode
27
+ default: defprops.loadingIcon.mode
27
28
  },
28
29
  // 图标大小,单位默认px
29
30
  size: {
30
31
  type: [String, Number],
31
- default: () => uni.$u.props.loadingIcon.size
32
+ default: defprops.loadingIcon.size
32
33
  },
33
34
  // 文字大小
34
35
  textSize: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.loadingIcon.textSize
37
+ default: defprops.loadingIcon.textSize
37
38
  },
38
39
  // 文字内容
39
40
  text: {
40
41
  type: [String, Number],
41
- default: () => uni.$u.props.loadingIcon.text
42
+ default: defprops.loadingIcon.text
42
43
  },
43
44
  // 动画模式
44
45
  timingFunction: {
45
46
  type: String,
46
- default: () => uni.$u.props.loadingIcon.timingFunction
47
+ default: defprops.loadingIcon.timingFunction
47
48
  },
48
49
  // 动画执行周期时间
49
50
  duration: {
50
51
  type: [String, Number],
51
- default: () => uni.$u.props.loadingIcon.duration
52
+ default: defprops.loadingIcon.duration
52
53
  },
53
54
  // mode=circle时的暗边颜色
54
55
  inactiveColor: {
55
56
  type: String,
56
- default: () => uni.$u.props.loadingIcon.inactiveColor
57
+ default: defprops.loadingIcon.inactiveColor
57
58
  }
58
59
  }
59
60
  }
@@ -1,49 +1,50 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 提示内容
4
5
  loadingText: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.loadingPage.loadingText
7
+ default: defprops.loadingPage.loadingText
7
8
  },
8
9
  // 文字上方用于替换loading动画的图片
9
10
  image: {
10
11
  type: String,
11
- default: () => uni.$u.props.loadingPage.image
12
+ default: defprops.loadingPage.image
12
13
  },
13
14
  // 加载动画的模式,circle-圆形,spinner-花朵形,semicircle-半圆形
14
15
  loadingMode: {
15
16
  type: String,
16
- default: () => uni.$u.props.loadingPage.loadingMode
17
+ default: defprops.loadingPage.loadingMode
17
18
  },
18
19
  // 是否加载中
19
20
  loading: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.loadingPage.loading
22
+ default: defprops.loadingPage.loading
22
23
  },
23
24
  // 背景色
24
25
  bgColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.loadingPage.bgColor
27
+ default: defprops.loadingPage.bgColor
27
28
  },
28
29
  // 文字颜色
29
30
  color: {
30
31
  type: String,
31
- default: () => uni.$u.props.loadingPage.color
32
+ default: defprops.loadingPage.color
32
33
  },
33
34
  // 文字大小
34
35
  fontSize: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.loadingPage.fontSize
37
+ default: defprops.loadingPage.fontSize
37
38
  },
38
39
  // 图标大小
39
40
  iconSize: {
40
41
  type: [String, Number],
41
- default: () => uni.$u.props.loadingPage.fontSize
42
+ default: defprops.loadingPage.fontSize
42
43
  },
43
44
  // 加载中图标的颜色,只能rgb或者十六进制颜色值
44
45
  loadingColor: {
45
46
  type: String,
46
- default: () => uni.$u.props.loadingPage.loadingColor
47
+ default: defprops.loadingPage.loadingColor
47
48
  }
48
49
  }
49
50
  }
@@ -1,94 +1,95 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
4
5
  status: {
5
6
  type: String,
6
- default: () => uni.$u.props.loadmore.status
7
+ default: defprops.loadmore.status
7
8
  },
8
9
  // 组件背景色
9
10
  bgColor: {
10
11
  type: String,
11
- default: () => uni.$u.props.loadmore.bgColor
12
+ default: defprops.loadmore.bgColor
12
13
  },
13
14
  // 是否显示加载中的图标
14
15
  icon: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.loadmore.icon
17
+ default: defprops.loadmore.icon
17
18
  },
18
19
  // 字体大小
19
20
  fontSize: {
20
21
  type: [String, Number],
21
- default: () => uni.$u.props.loadmore.fontSize
22
+ default: defprops.loadmore.fontSize
22
23
  },
23
24
  // 图标大小
24
25
  iconSize: {
25
26
  type: [String, Number],
26
- default: () => uni.$u.props.loadmore.iconSize
27
+ default: defprops.loadmore.iconSize
27
28
  },
28
29
  // 字体颜色
29
30
  color: {
30
31
  type: String,
31
- default: () => uni.$u.props.loadmore.color
32
+ default: defprops.loadmore.color
32
33
  },
33
34
  // 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
34
35
  loadingIcon: {
35
36
  type: String,
36
- default: () => uni.$u.props.loadmore.loadingIcon
37
+ default: defprops.loadmore.loadingIcon
37
38
  },
38
39
  // 加载前的提示语
39
40
  loadmoreText: {
40
41
  type: String,
41
- default: () => uni.$u.props.loadmore.loadmoreText
42
+ default: defprops.loadmore.loadmoreText
42
43
  },
43
44
  // 加载中提示语
44
45
  loadingText: {
45
46
  type: String,
46
- default: () => uni.$u.props.loadmore.loadingText
47
+ default: defprops.loadmore.loadingText
47
48
  },
48
49
  // 没有更多的提示语
49
50
  nomoreText: {
50
51
  type: String,
51
- default: () => uni.$u.props.loadmore.nomoreText
52
+ default: defprops.loadmore.nomoreText
52
53
  },
53
54
  // 在“没有更多”状态下,是否显示粗点
54
55
  isDot: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.loadmore.isDot
57
+ default: defprops.loadmore.isDot
57
58
  },
58
59
  // 加载中图标的颜色
59
60
  iconColor: {
60
61
  type: String,
61
- default: () => uni.$u.props.loadmore.iconColor
62
+ default: defprops.loadmore.iconColor
62
63
  },
63
64
  // 上边距
64
65
  marginTop: {
65
66
  type: [String, Number],
66
- default: () => uni.$u.props.loadmore.marginTop
67
+ default: defprops.loadmore.marginTop
67
68
  },
68
69
  // 下边距
69
70
  marginBottom: {
70
71
  type: [String, Number],
71
- default: () => uni.$u.props.loadmore.marginBottom
72
+ default: defprops.loadmore.marginBottom
72
73
  },
73
74
  // 高度,单位px
74
75
  height: {
75
76
  type: [String, Number],
76
- default: () => uni.$u.props.loadmore.height
77
+ default: defprops.loadmore.height
77
78
  },
78
79
  // 是否显示左边分割线
79
80
  line: {
80
81
  type: Boolean,
81
- default: () => uni.$u.props.loadmore.line
82
+ default: defprops.loadmore.line
82
83
  },
83
84
  // 线条颜色
84
85
  lineColor: {
85
86
  type: String,
86
- default: () => uni.$u.props.loadmore.lineColor
87
+ default: defprops.loadmore.lineColor
87
88
  },
88
89
  // 是否虚线,true-虚线,false-实线
89
90
  dashed: {
90
91
  type: Boolean,
91
- default: () => uni.$u.props.loadmore.dashed
92
+ default: defprops.loadmore.dashed
92
93
  }
93
94
  }
94
95
  }