uview-plus 3.1.50 → 3.1.51

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