uview-plus 3.0.17 → 3.1.3

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 (203) hide show
  1. package/changelog.md +8 -0
  2. package/components/u--form/u--form.vue +4 -2
  3. package/components/u--image/u--image.vue +4 -2
  4. package/components/u--input/u--input.vue +5 -3
  5. package/components/u--text/u--text.vue +4 -2
  6. package/components/u--textarea/u--textarea.vue +4 -2
  7. package/components/u-action-sheet/props.js +11 -10
  8. package/components/u-action-sheet/u-action-sheet.vue +3 -1
  9. package/components/u-album/props.js +12 -11
  10. package/components/u-album/u-album.vue +4 -2
  11. package/components/u-alert/props.js +9 -8
  12. package/components/u-alert/u-alert.vue +3 -1
  13. package/components/u-avatar/props.js +15 -14
  14. package/components/u-avatar/u-avatar.vue +3 -1
  15. package/components/u-avatar-group/props.js +10 -9
  16. package/components/u-avatar-group/u-avatar-group.vue +3 -1
  17. package/components/u-back-top/props.js +11 -10
  18. package/components/u-back-top/u-back-top.vue +2 -0
  19. package/components/u-badge/props.js +15 -14
  20. package/components/u-badge/u-badge.vue +3 -1
  21. package/components/u-button/props.js +29 -28
  22. package/components/u-button/u-button.vue +4 -2
  23. package/components/u-calendar/month.vue +5 -2
  24. package/components/u-calendar/props.js +28 -27
  25. package/components/u-calendar/u-calendar.vue +3 -1
  26. package/components/u-calendar/util.js +1 -0
  27. package/components/u-car-keyboard/props.js +1 -0
  28. package/components/u-car-keyboard/u-car-keyboard.vue +4 -2
  29. package/components/u-cell/props.js +18 -17
  30. package/components/u-cell/u-cell.vue +3 -1
  31. package/components/u-cell-group/props.js +3 -2
  32. package/components/u-cell-group/u-cell-group.vue +3 -1
  33. package/components/u-checkbox/props.js +14 -13
  34. package/components/u-checkbox/u-checkbox.vue +3 -1
  35. package/components/u-checkbox-group/props.js +16 -15
  36. package/components/u-checkbox-group/u-checkbox-group.vue +3 -1
  37. package/components/u-circle-progress/props.js +2 -1
  38. package/components/u-circle-progress/u-circle-progress.vue +3 -1
  39. package/components/u-code/props.js +7 -6
  40. package/components/u-code/u-code.vue +3 -1
  41. package/components/u-code-input/props.js +16 -15
  42. package/components/u-code-input/u-code-input.vue +3 -1
  43. package/components/u-col/props.js +6 -5
  44. package/components/u-col/u-col.vue +3 -1
  45. package/components/u-collapse/props.js +4 -3
  46. package/components/u-collapse/u-collapse.vue +3 -1
  47. package/components/u-collapse-item/props.js +12 -11
  48. package/components/u-collapse-item/u-collapse-item.vue +20 -18
  49. package/components/u-column-notice/props.js +11 -10
  50. package/components/u-column-notice/u-column-notice.vue +3 -1
  51. package/components/u-count-down/props.js +5 -4
  52. package/components/u-count-down/u-count-down.vue +5 -3
  53. package/components/u-count-to/props.js +12 -11
  54. package/components/u-count-to/u-count-to.vue +3 -1
  55. package/components/u-datetime-picker/props.js +24 -23
  56. package/components/u-datetime-picker/u-datetime-picker.vue +3 -1
  57. package/components/u-divider/props.js +9 -8
  58. package/components/u-divider/u-divider.vue +3 -1
  59. package/components/u-dropdown/props.js +5 -4
  60. package/components/u-dropdown/u-dropdown.vue +4 -2
  61. package/components/u-dropdown-item/props.js +2 -1
  62. package/components/u-dropdown-item/u-dropdown-item.vue +4 -2
  63. package/components/u-empty/props.js +12 -11
  64. package/components/u-empty/u-empty.vue +3 -2
  65. package/components/u-form/props.js +9 -8
  66. package/components/u-form/u-form.vue +13 -11
  67. package/components/u-form-item/props.js +9 -8
  68. package/components/u-form-item/u-form-item.vue +3 -1
  69. package/components/u-gap/props.js +5 -4
  70. package/components/u-gap/u-gap.vue +3 -1
  71. package/components/u-grid/props.js +4 -3
  72. package/components/u-grid/u-grid.vue +3 -1
  73. package/components/u-grid-item/props.js +3 -2
  74. package/components/u-grid-item/u-grid-item.vue +3 -1
  75. package/components/u-icon/props.js +18 -17
  76. package/components/u-icon/u-icon.vue +4 -2
  77. package/components/u-image/props.js +18 -17
  78. package/components/u-image/u-image.vue +3 -1
  79. package/components/u-index-anchor/props.js +6 -5
  80. package/components/u-index-anchor/u-index-anchor.vue +3 -1
  81. package/components/u-index-item/props.js +1 -0
  82. package/components/u-index-item/u-index-item.vue +3 -1
  83. package/components/u-index-list/props.js +6 -5
  84. package/components/u-index-list/u-index-list.vue +3 -1
  85. package/components/u-input/props.js +36 -35
  86. package/components/u-input/u-input.vue +3 -1
  87. package/components/u-keyboard/props.js +17 -16
  88. package/components/u-keyboard/u-keyboard.vue +3 -1
  89. package/components/u-line/props.js +7 -6
  90. package/components/u-line/u-line.vue +3 -1
  91. package/components/u-line-progress/props.js +6 -5
  92. package/components/u-line-progress/u-line-progress.vue +3 -1
  93. package/components/u-link/props.js +8 -7
  94. package/components/u-link/u-link.vue +3 -1
  95. package/components/u-list/props.js +15 -14
  96. package/components/u-list/u-list.vue +3 -1
  97. package/components/u-list-item/props.js +2 -1
  98. package/components/u-list-item/u-list-item.vue +3 -1
  99. package/components/u-loading-icon/props.js +13 -12
  100. package/components/u-loading-icon/u-loading-icon.vue +4 -2
  101. package/components/u-loading-page/props.js +10 -9
  102. package/components/u-loading-page/u-loading-page.vue +3 -1
  103. package/components/u-loadmore/props.js +19 -18
  104. package/components/u-loadmore/u-loadmore.vue +3 -1
  105. package/components/u-modal/props.js +17 -16
  106. package/components/u-modal/u-modal.vue +4 -2
  107. package/components/u-navbar/props.js +34 -33
  108. package/components/u-navbar/u-navbar.vue +3 -1
  109. package/components/u-no-network/props.js +4 -3
  110. package/components/u-no-network/u-no-network.vue +3 -1
  111. package/components/u-notice-bar/props.js +14 -13
  112. package/components/u-notice-bar/u-notice-bar.vue +3 -1
  113. package/components/u-notify/props.js +10 -9
  114. package/components/u-notify/u-notify.vue +3 -1
  115. package/components/u-number-box/props.js +23 -22
  116. package/components/u-number-box/u-number-box.vue +3 -1
  117. package/components/u-number-keyboard/props.js +4 -3
  118. package/components/u-number-keyboard/u-number-keyboard.vue +3 -1
  119. package/components/u-overlay/props.js +5 -4
  120. package/components/u-overlay/u-overlay.vue +3 -1
  121. package/components/u-parse/props.js +9 -8
  122. package/components/u-picker/props.js +16 -15
  123. package/components/u-picker/u-picker.vue +3 -1
  124. package/components/u-picker-column/props.js +1 -0
  125. package/components/u-picker-column/u-picker-column.vue +3 -1
  126. package/components/u-popup/props.js +16 -15
  127. package/components/u-popup/u-popup.vue +4 -2
  128. package/components/u-radio/props.js +13 -12
  129. package/components/u-radio/u-radio.vue +3 -1
  130. package/components/u-radio-group/props.js +18 -17
  131. package/components/u-radio-group/u-radio-group.vue +3 -1
  132. package/components/u-rate/props.js +15 -14
  133. package/components/u-rate/u-rate.vue +3 -1
  134. package/components/u-read-more/props.js +9 -8
  135. package/components/u-read-more/u-read-more.vue +3 -1
  136. package/components/u-row/props.js +4 -3
  137. package/components/u-row/u-row.vue +3 -1
  138. package/components/u-row-notice/props.js +8 -7
  139. package/components/u-row-notice/u-row-notice.vue +3 -1
  140. package/components/u-safe-bottom/props.js +1 -0
  141. package/components/u-safe-bottom/u-safe-bottom.vue +4 -2
  142. package/components/u-scroll-list/props.js +7 -6
  143. package/components/u-scroll-list/u-scroll-list.vue +3 -1
  144. package/components/u-search/props.js +25 -24
  145. package/components/u-search/u-search.vue +3 -1
  146. package/components/u-skeleton/props.js +12 -11
  147. package/components/u-skeleton/u-skeleton.vue +3 -1
  148. package/components/u-slider/props.js +11 -10
  149. package/components/u-slider/u-slider.vue +5 -3
  150. package/components/u-status-bar/props.js +2 -1
  151. package/components/u-status-bar/u-status-bar.vue +3 -1
  152. package/components/u-steps/props.js +9 -8
  153. package/components/u-steps/u-steps.vue +3 -1
  154. package/components/u-steps-item/props.js +5 -4
  155. package/components/u-steps-item/u-steps-item.vue +3 -1
  156. package/components/u-sticky/props.js +7 -6
  157. package/components/u-sticky/u-sticky.vue +4 -2
  158. package/components/u-subsection/props.js +10 -9
  159. package/components/u-subsection/u-subsection.vue +3 -1
  160. package/components/u-swipe-action/props.js +2 -1
  161. package/components/u-swipe-action/u-swipe-action.vue +3 -1
  162. package/components/u-swipe-action-item/props.js +7 -6
  163. package/components/u-swipe-action-item/u-swipe-action-item.vue +5 -3
  164. package/components/u-swiper/props.js +25 -24
  165. package/components/u-swiper/u-swiper.vue +3 -1
  166. package/components/u-swiper-indicator/props.js +6 -5
  167. package/components/u-swiper-indicator/u-swiper-indicator.vue +3 -1
  168. package/components/u-switch/props.js +12 -11
  169. package/components/u-switch/u-switch.vue +3 -1
  170. package/components/u-tabbar/props.js +9 -8
  171. package/components/u-tabbar/u-tabbar.vue +3 -1
  172. package/components/u-tabbar-item/props.js +7 -6
  173. package/components/u-tabbar-item/u-tabbar-item.vue +3 -1
  174. package/components/u-table/props.js +1 -0
  175. package/components/u-table/u-table.vue +3 -1
  176. package/components/u-tabs/props.js +13 -12
  177. package/components/u-tabs/u-tabs.vue +3 -1
  178. package/components/u-tabs-item/props.js +1 -0
  179. package/components/u-tabs-item/u-tabs-item.vue +3 -1
  180. package/components/u-tag/props.js +16 -15
  181. package/components/u-tag/u-tag.vue +5 -3
  182. package/components/u-td/props.js +1 -0
  183. package/components/u-td/u-td.vue +3 -1
  184. package/components/u-text/props.js +22 -21
  185. package/components/u-text/u-text.vue +4 -2
  186. package/components/u-textarea/props.js +24 -23
  187. package/components/u-textarea/u-textarea.vue +3 -1
  188. package/components/u-toast/u-toast.vue +3 -1
  189. package/components/u-toolbar/props.js +7 -6
  190. package/components/u-toolbar/u-toolbar.vue +3 -1
  191. package/components/u-tooltip/props.js +12 -11
  192. package/components/u-tooltip/u-tooltip.vue +3 -1
  193. package/components/u-tr/props.js +1 -0
  194. package/components/u-tr/u-tr.vue +3 -1
  195. package/components/u-transition/{nvue.ani-map.js → nvue-ani-map.js} +0 -0
  196. package/components/u-transition/props.js +5 -4
  197. package/components/u-transition/transition.js +3 -1
  198. package/components/u-transition/u-transition.vue +3 -1
  199. package/components/u-upload/props.js +23 -22
  200. package/components/u-upload/u-upload.vue +4 -2
  201. package/index.js +1 -0
  202. package/libs/config/config.js +2 -2
  203. package/package.json +1 -1
@@ -1,74 +1,75 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 标题
4
5
  title: {
5
6
  type: [String, Number],
6
- default: uni.$u.props.cell.title
7
+ default: defprops.cell.title
7
8
  },
8
9
  // 标题下方的描述信息
9
10
  label: {
10
11
  type: [String, Number],
11
- default: uni.$u.props.cell.label
12
+ default: defprops.cell.label
12
13
  },
13
14
  // 右侧的内容
14
15
  value: {
15
16
  type: [String, Number],
16
- default: uni.$u.props.cell.value
17
+ default: defprops.cell.value
17
18
  },
18
19
  // 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
19
20
  icon: {
20
21
  type: String,
21
- default: uni.$u.props.cell.icon
22
+ default: defprops.cell.icon
22
23
  },
23
24
  // 是否禁用cell
24
25
  disabled: {
25
26
  type: Boolean,
26
- default: uni.$u.props.cell.disabled
27
+ default: defprops.cell.disabled
27
28
  },
28
29
  // 是否显示下边框
29
30
  border: {
30
31
  type: Boolean,
31
- default: uni.$u.props.cell.border
32
+ default: defprops.cell.border
32
33
  },
33
34
  // 内容是否垂直居中(主要是针对右侧的value部分)
34
35
  center: {
35
36
  type: Boolean,
36
- default: uni.$u.props.cell.center
37
+ default: defprops.cell.center
37
38
  },
38
39
  // 点击后跳转的URL地址
39
40
  url: {
40
41
  type: String,
41
- default: uni.$u.props.cell.url
42
+ default: defprops.cell.url
42
43
  },
43
44
  // 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
44
45
  linkType: {
45
46
  type: String,
46
- default: uni.$u.props.cell.linkType
47
+ default: defprops.cell.linkType
47
48
  },
48
49
  // 是否开启点击反馈(表现为点击时加上灰色背景)
49
50
  clickable: {
50
51
  type: Boolean,
51
- default: uni.$u.props.cell.clickable
52
+ default: defprops.cell.clickable
52
53
  },
53
54
  // 是否展示右侧箭头并开启点击反馈
54
55
  isLink: {
55
56
  type: Boolean,
56
- default: uni.$u.props.cell.isLink
57
+ default: defprops.cell.isLink
57
58
  },
58
59
  // 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
59
60
  required: {
60
61
  type: Boolean,
61
- default: uni.$u.props.cell.required
62
+ default: defprops.cell.required
62
63
  },
63
64
  // 右侧的图标箭头
64
65
  rightIcon: {
65
66
  type: String,
66
- default: uni.$u.props.cell.rightIcon
67
+ default: defprops.cell.rightIcon
67
68
  },
68
69
  // 右侧箭头的方向,可选值为:left,up,down
69
70
  arrowDirection: {
70
71
  type: String,
71
- default: uni.$u.props.cell.arrowDirection
72
+ default: defprops.cell.arrowDirection
72
73
  },
73
74
  // 左侧图标样式
74
75
  iconStyle: {
@@ -94,17 +95,17 @@ export default {
94
95
  // 单位元的大小,可选值为large
95
96
  size: {
96
97
  type: String,
97
- default: uni.$u.props.cell.size
98
+ default: defprops.cell.size
98
99
  },
99
100
  // 点击cell是否阻止事件传播
100
101
  stop: {
101
102
  type: Boolean,
102
- default: uni.$u.props.cell.stop
103
+ default: defprops.cell.stop
103
104
  },
104
105
  // 标识符,cell被点击时返回
105
106
  name: {
106
107
  type: [Number, String],
107
- default: uni.$u.props.cell.name
108
+ default: defprops.cell.name
108
109
  }
109
110
  }
110
111
  }
@@ -41,6 +41,8 @@
41
41
 
42
42
  <script>
43
43
  import props from './props.js';
44
+ import mpMixin from '../../libs/mixin/mpMixin.js';
45
+ import mixin from '../../libs/mixin/mixin.js';
44
46
  /**
45
47
  * cell 单元格
46
48
  * @description cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。
@@ -76,7 +78,7 @@
76
78
 
77
79
  }
78
80
  },
79
- mixins: [uni.$u.mpMixin, uni.$u.mixin, props],
81
+ mixins: [mpMixin, mixin, props],
80
82
  computed: {
81
83
  titleTextStyle() {
82
84
  return uni.$u.addStyle(this.titleStyle)
@@ -1,14 +1,15 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 分组标题
4
5
  title: {
5
6
  type: String,
6
- default: uni.$u.props.cellGroup.title
7
+ default: defprops.cellGroup.title
7
8
  },
8
9
  // 是否显示外边框
9
10
  border: {
10
11
  type: Boolean,
11
- default: uni.$u.props.cellGroup.border
12
+ default: defprops.cellGroup.border
12
13
  }
13
14
  }
14
15
  }
@@ -14,6 +14,8 @@
14
14
 
15
15
  <script>
16
16
  import props from './props.js';
17
+ import mpMixin from '../../libs/mixin/mpMixin.js';
18
+ import mixin from '../../libs/mixin/mixin.js';
17
19
  /**
18
20
  * cellGroup 单元格
19
21
  * @description cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。
@@ -28,7 +30,7 @@
28
30
  */
29
31
  export default {
30
32
  name: 'u-cell-group',
31
- mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
33
+ mixins: [mpMixin, mixin, props],
32
34
  }
33
35
  </script>
34
36
 
@@ -1,69 +1,70 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // checkbox的名称
4
5
  name: {
5
6
  type: [String, Number, Boolean],
6
- default: uni.$u.props.checkbox.name
7
+ default: defprops.checkbox.name
7
8
  },
8
9
  // 形状,square为方形,circle为圆型
9
10
  shape: {
10
11
  type: String,
11
- default: uni.$u.props.checkbox.shape
12
+ default: defprops.checkbox.shape
12
13
  },
13
14
  // 整体的大小
14
15
  size: {
15
16
  type: [String, Number],
16
- default: uni.$u.props.checkbox.size
17
+ default: defprops.checkbox.size
17
18
  },
18
19
  // 是否默认选中
19
20
  checked: {
20
21
  type: Boolean,
21
- default: uni.$u.props.checkbox.checked
22
+ default: defprops.checkbox.checked
22
23
  },
23
24
  // 是否禁用
24
25
  disabled: {
25
26
  type: [String, Boolean],
26
- default: uni.$u.props.checkbox.disabled
27
+ default: defprops.checkbox.disabled
27
28
  },
28
29
  // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
29
30
  activeColor: {
30
31
  type: String,
31
- default: uni.$u.props.checkbox.activeColor
32
+ default: defprops.checkbox.activeColor
32
33
  },
33
34
  // 未选中的颜色
34
35
  inactiveColor: {
35
36
  type: String,
36
- default: uni.$u.props.checkbox.inactiveColor
37
+ default: defprops.checkbox.inactiveColor
37
38
  },
38
39
  // 图标的大小,单位px
39
40
  iconSize: {
40
41
  type: [String, Number],
41
- default: uni.$u.props.checkbox.iconSize
42
+ default: defprops.checkbox.iconSize
42
43
  },
43
44
  // 图标颜色
44
45
  iconColor: {
45
46
  type: String,
46
- default: uni.$u.props.checkbox.iconColor
47
+ default: defprops.checkbox.iconColor
47
48
  },
48
49
  // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
49
50
  label: {
50
51
  type: [String, Number],
51
- default: uni.$u.props.checkbox.label
52
+ default: defprops.checkbox.label
52
53
  },
53
54
  // label的字体大小,px单位
54
55
  labelSize: {
55
56
  type: [String, Number],
56
- default: uni.$u.props.checkbox.labelSize
57
+ default: defprops.checkbox.labelSize
57
58
  },
58
59
  // label的颜色
59
60
  labelColor: {
60
61
  type: String,
61
- default: uni.$u.props.checkbox.labelColor
62
+ default: defprops.checkbox.labelColor
62
63
  },
63
64
  // 是否禁止点击提示语选中复选框
64
65
  labelDisabled: {
65
66
  type: [String, Boolean],
66
- default: uni.$u.props.checkbox.labelDisabled
67
+ default: defprops.checkbox.labelDisabled
67
68
  }
68
69
  }
69
70
  }
@@ -33,6 +33,8 @@
33
33
 
34
34
  <script>
35
35
  import props from './props.js';
36
+ import mpMixin from '../../libs/mixin/mpMixin.js';
37
+ import mixin from '../../libs/mixin/mixin.js';
36
38
  /**
37
39
  * checkbox 复选框
38
40
  * @description 复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便
@@ -57,7 +59,7 @@
57
59
  */
58
60
  export default {
59
61
  name: "u-checkbox",
60
- mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
62
+ mixins: [mpMixin, mixin, props],
61
63
  data() {
62
64
  return {
63
65
  isChecked: false,
@@ -1,81 +1,82 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 标识符
4
5
  name: {
5
6
  type: String,
6
- default: uni.$u.props.checkboxGroup.name
7
+ default: defprops.checkboxGroup.name
7
8
  },
8
9
  // 绑定的值
9
10
  value: {
10
11
  type: Array,
11
- default: uni.$u.props.checkboxGroup.value
12
+ default: defprops.checkboxGroup.value
12
13
  },
13
14
  // 形状,circle-圆形,square-方形
14
15
  shape: {
15
16
  type: String,
16
- default: uni.$u.props.checkboxGroup.shape
17
+ default: defprops.checkboxGroup.shape
17
18
  },
18
19
  // 是否禁用全部checkbox
19
20
  disabled: {
20
21
  type: Boolean,
21
- default: uni.$u.props.checkboxGroup.disabled
22
+ default: defprops.checkboxGroup.disabled
22
23
  },
23
24
 
24
25
  // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
25
26
  activeColor: {
26
27
  type: String,
27
- default: uni.$u.props.checkboxGroup.activeColor
28
+ default: defprops.checkboxGroup.activeColor
28
29
  },
29
30
  // 未选中的颜色
30
31
  inactiveColor: {
31
32
  type: String,
32
- default: uni.$u.props.checkboxGroup.inactiveColor
33
+ default: defprops.checkboxGroup.inactiveColor
33
34
  },
34
35
 
35
36
  // 整个组件的尺寸,默认px
36
37
  size: {
37
38
  type: [String, Number],
38
- default: uni.$u.props.checkboxGroup.size
39
+ default: defprops.checkboxGroup.size
39
40
  },
40
41
  // 布局方式,row-横向,column-纵向
41
42
  placement: {
42
43
  type: String,
43
- default: uni.$u.props.checkboxGroup.placement
44
+ default: defprops.checkboxGroup.placement
44
45
  },
45
46
  // label的字体大小,px单位
46
47
  labelSize: {
47
48
  type: [String, Number],
48
- default: uni.$u.props.checkboxGroup.labelSize
49
+ default: defprops.checkboxGroup.labelSize
49
50
  },
50
51
  // label的字体颜色
51
52
  labelColor: {
52
53
  type: [String],
53
- default: uni.$u.props.checkboxGroup.labelColor
54
+ default: defprops.checkboxGroup.labelColor
54
55
  },
55
56
  // 是否禁止点击文本操作
56
57
  labelDisabled: {
57
58
  type: Boolean,
58
- default: uni.$u.props.checkboxGroup.labelDisabled
59
+ default: defprops.checkboxGroup.labelDisabled
59
60
  },
60
61
  // 图标颜色
61
62
  iconColor: {
62
63
  type: String,
63
- default: uni.$u.props.checkboxGroup.iconColor
64
+ default: defprops.checkboxGroup.iconColor
64
65
  },
65
66
  // 图标的大小,单位px
66
67
  iconSize: {
67
68
  type: [String, Number],
68
- default: uni.$u.props.checkboxGroup.iconSize
69
+ default: defprops.checkboxGroup.iconSize
69
70
  },
70
71
  // 勾选图标的对齐方式,left-左边,right-右边
71
72
  iconPlacement: {
72
73
  type: String,
73
- default: uni.$u.props.checkboxGroup.iconPlacement
74
+ default: defprops.checkboxGroup.iconPlacement
74
75
  },
75
76
  // 竖向配列时,是否显示下划线
76
77
  borderBottom: {
77
78
  type: Boolean,
78
- default: uni.$u.props.checkboxGroup.borderBottom
79
+ default: defprops.checkboxGroup.borderBottom
79
80
  }
80
81
 
81
82
  }
@@ -9,6 +9,8 @@
9
9
 
10
10
  <script>
11
11
  import props from './props.js';
12
+ import mpMixin from '../../libs/mixin/mpMixin.js';
13
+ import mixin from '../../libs/mixin/mixin.js';
12
14
  /**
13
15
  * checkboxGroup 复选框组
14
16
  * @description 复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便
@@ -34,7 +36,7 @@
34
36
  */
35
37
  export default {
36
38
  name: 'u-checkbox-group',
37
- mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
39
+ mixins: [mpMixin, mixin,props],
38
40
  computed: {
39
41
  // 这里computed的变量,都是子组件u-checkbox需要用到的,由于头条小程序的兼容性差异,子组件无法实时监听父组件参数的变化
40
42
  // 所以需要手动通知子组件,这里返回一个parentData变量,供watch监听,在其中去通知每一个子组件重新从父组件(u-checkbox-group)
@@ -1,8 +1,9 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  percentage: {
4
5
  type: [String, Number],
5
- default: uni.$u.props.circleProgress.percentage
6
+ default: defprops.circleProgress.percentage
6
7
  }
7
8
  }
8
9
  }
@@ -28,6 +28,8 @@
28
28
 
29
29
  <script>
30
30
  import props from './props.js';
31
+ import mpMixin from '../../libs/mixin/mpMixin.js';
32
+ import mixin from '../../libs/mixin/mixin.js';
31
33
  // #ifdef APP-NVUE
32
34
  const animation = uni.requireNativePlugin('animation')
33
35
  // #endif
@@ -40,7 +42,7 @@
40
42
  */
41
43
  export default {
42
44
  name: 'u-circle-progress',
43
- mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
45
+ mixins: [mpMixin, mixin, props],
44
46
  data() {
45
47
  return {
46
48
  leftBorderColor: 'rgb(200, 200, 200)',
@@ -1,34 +1,35 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 倒计时总秒数
4
5
  seconds: {
5
6
  type: [String, Number],
6
- default: uni.$u.props.code.seconds
7
+ default: defprops.code.seconds
7
8
  },
8
9
  // 尚未开始时提示
9
10
  startText: {
10
11
  type: String,
11
- default: uni.$u.props.code.startText
12
+ default: defprops.code.startText
12
13
  },
13
14
  // 正在倒计时中的提示
14
15
  changeText: {
15
16
  type: String,
16
- default: uni.$u.props.code.changeText
17
+ default: defprops.code.changeText
17
18
  },
18
19
  // 倒计时结束时的提示
19
20
  endText: {
20
21
  type: String,
21
- default: uni.$u.props.code.endText
22
+ default: defprops.code.endText
22
23
  },
23
24
  // 是否在H5刷新或各端返回再进入时继续倒计时
24
25
  keepRunning: {
25
26
  type: Boolean,
26
- default: uni.$u.props.code.keepRunning
27
+ default: defprops.code.keepRunning
27
28
  },
28
29
  // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
29
30
  uniqueKey: {
30
31
  type: String,
31
- default: uni.$u.props.code.uniqueKey
32
+ default: defprops.code.uniqueKey
32
33
  }
33
34
  }
34
35
  }
@@ -6,6 +6,8 @@
6
6
 
7
7
  <script>
8
8
  import props from './props.js';
9
+ import mpMixin from '../../libs/mixin/mpMixin.js';
10
+ import mixin from '../../libs/mixin/mixin.js';
9
11
  /**
10
12
  * Code 验证码输入框
11
13
  * @description 考虑到用户实际发送验证码的场景,可能是一个按钮,也可能是一段文字,提示语各有不同,所以本组件 不提供界面显示,只提供提示语,由用户将提示语嵌入到具体的场景
@@ -24,7 +26,7 @@
24
26
  */
25
27
  export default {
26
28
  name: "u-code",
27
- mixins: [uni.$u.mpMixin, uni.$u.mixin,props],
29
+ mixins: [mpMixin, mixin,props],
28
30
  data() {
29
31
  return {
30
32
  secNum: this.seconds,
@@ -1,79 +1,80 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 键盘弹起时,是否自动上推页面
4
5
  adjustPosition: {
5
6
  type: Boolean,
6
- default: uni.$u.props.codeInput.adjustPosition
7
+ default: defprops.codeInput.adjustPosition
7
8
  },
8
9
  // 最大输入长度
9
10
  maxlength: {
10
11
  type: [String, Number],
11
- default: uni.$u.props.codeInput.maxlength
12
+ default: defprops.codeInput.maxlength
12
13
  },
13
14
  // 是否用圆点填充
14
15
  dot: {
15
16
  type: Boolean,
16
- default: uni.$u.props.codeInput.dot
17
+ default: defprops.codeInput.dot
17
18
  },
18
19
  // 显示模式,box-盒子模式,line-底部横线模式
19
20
  mode: {
20
21
  type: String,
21
- default: uni.$u.props.codeInput.mode
22
+ default: defprops.codeInput.mode
22
23
  },
23
24
  // 是否细边框
24
25
  hairline: {
25
26
  type: Boolean,
26
- default: uni.$u.props.codeInput.hairline
27
+ default: defprops.codeInput.hairline
27
28
  },
28
29
  // 字符间的距离
29
30
  space: {
30
31
  type: [String, Number],
31
- default: uni.$u.props.codeInput.space
32
+ default: defprops.codeInput.space
32
33
  },
33
34
  // 预置值
34
35
  value: {
35
36
  type: [String, Number],
36
- default: uni.$u.props.codeInput.value
37
+ default: defprops.codeInput.value
37
38
  },
38
39
  // 是否自动获取焦点
39
40
  focus: {
40
41
  type: Boolean,
41
- default: uni.$u.props.codeInput.focus
42
+ default: defprops.codeInput.focus
42
43
  },
43
44
  // 字体是否加粗
44
45
  bold: {
45
46
  type: Boolean,
46
- default: uni.$u.props.codeInput.bold
47
+ default: defprops.codeInput.bold
47
48
  },
48
49
  // 字体颜色
49
50
  color: {
50
51
  type: String,
51
- default: uni.$u.props.codeInput.color
52
+ default: defprops.codeInput.color
52
53
  },
53
54
  // 字体大小
54
55
  fontSize: {
55
56
  type: [String, Number],
56
- default: uni.$u.props.codeInput.fontSize
57
+ default: defprops.codeInput.fontSize
57
58
  },
58
59
  // 输入框的大小,宽等于高
59
60
  size: {
60
61
  type: [String, Number],
61
- default: uni.$u.props.codeInput.size
62
+ default: defprops.codeInput.size
62
63
  },
63
64
  // 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true
64
65
  disabledKeyboard: {
65
66
  type: Boolean,
66
- default: uni.$u.props.codeInput.disabledKeyboard
67
+ default: defprops.codeInput.disabledKeyboard
67
68
  },
68
69
  // 边框和线条颜色
69
70
  borderColor: {
70
71
  type: String,
71
- default: uni.$u.props.codeInput.borderColor
72
+ default: defprops.codeInput.borderColor
72
73
  },
73
74
  // 是否禁止输入"."符号
74
75
  disabledDot: {
75
76
  type: Boolean,
76
- default: uni.$u.props.codeInput.disabledDot
77
+ default: defprops.codeInput.disabledDot
77
78
  }
78
79
  }
79
80
  }
@@ -47,6 +47,8 @@
47
47
 
48
48
  <script>
49
49
  import props from './props.js';
50
+ import mpMixin from '../../libs/mixin/mpMixin.js';
51
+ import mixin from '../../libs/mixin/mixin.js';
50
52
  /**
51
53
  * CodeInput 验证码输入
52
54
  * @description 该组件一般用于验证用户短信验证码的场景,也可以结合uView的键盘组件使用
@@ -72,7 +74,7 @@
72
74
  */
73
75
  export default {
74
76
  name: 'u-code-input',
75
- mixins: [uni.$u.mpMixin, uni.$u.mixin, props],
77
+ mixins: [mpMixin, mixin, props],
76
78
  data() {
77
79
  return {
78
80
  inputValue: '',
@@ -1,29 +1,30 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 占父容器宽度的多少等分,总分为12份
4
5
  span: {
5
6
  type: [String, Number],
6
- default: uni.$u.props.col.span
7
+ default: defprops.col.span
7
8
  },
8
9
  // 指定栅格左侧的间隔数(总12栏)
9
10
  offset: {
10
11
  type: [String, Number],
11
- default: uni.$u.props.col.offset
12
+ default: defprops.col.offset
12
13
  },
13
14
  // 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
14
15
  justify: {
15
16
  type: String,
16
- default: uni.$u.props.col.justify
17
+ default: defprops.col.justify
17
18
  },
18
19
  // 垂直对齐方式,可选值为top、center、bottom、stretch
19
20
  align: {
20
21
  type: String,
21
- default: uni.$u.props.col.align
22
+ default: defprops.col.align
22
23
  },
23
24
  // 文字对齐方式
24
25
  textAlign: {
25
26
  type: String,
26
- default: uni.$u.props.col.textAlign
27
+ default: defprops.col.textAlign
27
28
  }
28
29
  }
29
30
  }
@@ -14,6 +14,8 @@
14
14
 
15
15
  <script>
16
16
  import props from './props.js';
17
+ import mpMixin from '../../libs/mixin/mpMixin.js';
18
+ import mixin from '../../libs/mixin/mixin.js';
17
19
  /**
18
20
  * CodeInput 栅格系统的列
19
21
  * @description 该组件一般用于Layout 布局 通过基础的 12 分栏,迅速简便地创建布局
@@ -29,7 +31,7 @@
29
31
  */
30
32
  export default {
31
33
  name: 'u-col',
32
- mixins: [uni.$u.mpMixin, uni.$u.mixin, props],
34
+ mixins: [mpMixin, mixin, props],
33
35
  data() {
34
36
  return {
35
37
  width: 0,