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,90 +1,91 @@
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
  // #ifdef VUE3
9
10
  // 绑定的值
10
11
  modelValue: {
11
12
  type: Array,
12
- default: () => uni.$u.props.checkboxGroup.value
13
+ default: defprops.checkboxGroup.value
13
14
  },
14
15
  // #endif
15
16
  // #ifdef VUE2
16
17
  // 绑定的值
17
18
  value: {
18
19
  type: Array,
19
- default: () => uni.$u.props.checkboxGroup.value
20
+ default: defprops.checkboxGroup.value
20
21
  },
21
22
  // #endif
22
23
  // 形状,circle-圆形,square-方形
23
24
  shape: {
24
25
  type: String,
25
- default: () => uni.$u.props.checkboxGroup.shape
26
+ default: defprops.checkboxGroup.shape
26
27
  },
27
28
  // 是否禁用全部checkbox
28
29
  disabled: {
29
30
  type: Boolean,
30
- default: () => uni.$u.props.checkboxGroup.disabled
31
+ default: defprops.checkboxGroup.disabled
31
32
  },
32
33
 
33
34
  // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
34
35
  activeColor: {
35
36
  type: String,
36
- default: () => uni.$u.props.checkboxGroup.activeColor
37
+ default: defprops.checkboxGroup.activeColor
37
38
  },
38
39
  // 未选中的颜色
39
40
  inactiveColor: {
40
41
  type: String,
41
- default: () => uni.$u.props.checkboxGroup.inactiveColor
42
+ default: defprops.checkboxGroup.inactiveColor
42
43
  },
43
44
 
44
45
  // 整个组件的尺寸,默认px
45
46
  size: {
46
47
  type: [String, Number],
47
- default: () => uni.$u.props.checkboxGroup.size
48
+ default: defprops.checkboxGroup.size
48
49
  },
49
50
  // 布局方式,row-横向,column-纵向
50
51
  placement: {
51
52
  type: String,
52
- default: () => uni.$u.props.checkboxGroup.placement
53
+ default: defprops.checkboxGroup.placement
53
54
  },
54
55
  // label的字体大小,px单位
55
56
  labelSize: {
56
57
  type: [String, Number],
57
- default: () => uni.$u.props.checkboxGroup.labelSize
58
+ default: defprops.checkboxGroup.labelSize
58
59
  },
59
60
  // label的字体颜色
60
61
  labelColor: {
61
62
  type: [String],
62
- default: () => uni.$u.props.checkboxGroup.labelColor
63
+ default: defprops.checkboxGroup.labelColor
63
64
  },
64
65
  // 是否禁止点击文本操作
65
66
  labelDisabled: {
66
67
  type: Boolean,
67
- default: () => uni.$u.props.checkboxGroup.labelDisabled
68
+ default: defprops.checkboxGroup.labelDisabled
68
69
  },
69
70
  // 图标颜色
70
71
  iconColor: {
71
72
  type: String,
72
- default: () => uni.$u.props.checkboxGroup.iconColor
73
+ default: defprops.checkboxGroup.iconColor
73
74
  },
74
75
  // 图标的大小,单位px
75
76
  iconSize: {
76
77
  type: [String, Number],
77
- default: () => uni.$u.props.checkboxGroup.iconSize
78
+ default: defprops.checkboxGroup.iconSize
78
79
  },
79
80
  // 勾选图标的对齐方式,left-左边,right-右边
80
81
  iconPlacement: {
81
82
  type: String,
82
- default: () => uni.$u.props.checkboxGroup.iconPlacement
83
+ default: defprops.checkboxGroup.iconPlacement
83
84
  },
84
85
  // 竖向配列时,是否显示下划线
85
86
  borderBottom: {
86
87
  type: Boolean,
87
- default: () => uni.$u.props.checkboxGroup.borderBottom
88
+ default: defprops.checkboxGroup.borderBottom
88
89
  }
89
90
 
90
91
  }
@@ -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
  }
@@ -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
  }
@@ -119,12 +119,7 @@
119
119
  }
120
120
  },
121
121
  // 组件销毁的时候,清除定时器,否则定时器会继续存在,系统不会自动清除
122
- // #ifdef VUE2
123
122
  beforeDestroy() {
124
- // #endif
125
- // #ifdef VUE3
126
- beforeUnmount() {
127
- // #endif
128
123
  this.setTimeToStorage()
129
124
  clearTimeout(this.timer)
130
125
  this.timer = null
@@ -1,88 +1,89 @@
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
  // #ifdef VUE3
34
35
  // 预置值
35
36
  modelValue: {
36
37
  type: [String, Number],
37
- default: () => uni.$u.props.codeInput.value
38
+ default: defprops.codeInput.value
38
39
  },
39
40
  // #endif
40
41
  // #ifdef VUE2
41
42
  // 预置值
42
43
  value: {
43
44
  type: [String, Number],
44
- default: () => uni.$u.props.codeInput.value
45
+ default: defprops.codeInput.value
45
46
  },
46
47
  // #endif
47
48
  // 是否自动获取焦点
48
49
  focus: {
49
50
  type: Boolean,
50
- default: () => uni.$u.props.codeInput.focus
51
+ default: defprops.codeInput.focus
51
52
  },
52
53
  // 字体是否加粗
53
54
  bold: {
54
55
  type: Boolean,
55
- default: () => uni.$u.props.codeInput.bold
56
+ default: defprops.codeInput.bold
56
57
  },
57
58
  // 字体颜色
58
59
  color: {
59
60
  type: String,
60
- default: () => uni.$u.props.codeInput.color
61
+ default: defprops.codeInput.color
61
62
  },
62
63
  // 字体大小
63
64
  fontSize: {
64
65
  type: [String, Number],
65
- default: () => uni.$u.props.codeInput.fontSize
66
+ default: defprops.codeInput.fontSize
66
67
  },
67
68
  // 输入框的大小,宽等于高
68
69
  size: {
69
70
  type: [String, Number],
70
- default: () => uni.$u.props.codeInput.size
71
+ default: defprops.codeInput.size
71
72
  },
72
73
  // 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true
73
74
  disabledKeyboard: {
74
75
  type: Boolean,
75
- default: () => uni.$u.props.codeInput.disabledKeyboard
76
+ default: defprops.codeInput.disabledKeyboard
76
77
  },
77
78
  // 边框和线条颜色
78
79
  borderColor: {
79
80
  type: String,
80
- default: () => uni.$u.props.codeInput.borderColor
81
+ default: defprops.codeInput.borderColor
81
82
  },
82
83
  // 是否禁止输入"."符号
83
84
  disabledDot: {
84
85
  type: Boolean,
85
- default: () => uni.$u.props.codeInput.disabledDot
86
+ default: defprops.codeInput.disabledDot
86
87
  }
87
88
  }
88
89
  }
@@ -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
  }
@@ -1,19 +1,20 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 当前展开面板的name,非手风琴模式:[<string | number>],手风琴模式:string | number
4
5
  value: {
5
6
  type: [String, Number, Array, null],
6
- default: () => uni.$u.props.collapse.value
7
+ default: defprops.collapse.value
7
8
  },
8
9
  // 是否手风琴模式
9
10
  accordion: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.collapse.accordion
12
+ default: defprops.collapse.accordion
12
13
  },
13
14
  // 是否显示外边框
14
15
  border: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.collapse.border
17
+ default: defprops.collapse.border
17
18
  }
18
19
  }
19
20
  }
@@ -1,59 +1,60 @@
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.collapseItem.title
7
+ default: defprops.collapseItem.title
7
8
  },
8
9
  // 标题右侧内容
9
10
  value: {
10
11
  type: String,
11
- default: () => uni.$u.props.collapseItem.value
12
+ default: defprops.collapseItem.value
12
13
  },
13
14
  // 标题下方的描述信息
14
15
  label: {
15
16
  type: String,
16
- default: () => uni.$u.props.collapseItem.label
17
+ default: defprops.collapseItem.label
17
18
  },
18
19
  // 是否禁用折叠面板
19
20
  disabled: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.collapseItem.disabled
22
+ default: defprops.collapseItem.disabled
22
23
  },
23
24
  // 是否展示右侧箭头并开启点击反馈
24
25
  isLink: {
25
26
  type: Boolean,
26
- default: () => uni.$u.props.collapseItem.isLink
27
+ default: defprops.collapseItem.isLink
27
28
  },
28
29
  // 是否开启点击反馈
29
30
  clickable: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.collapseItem.clickable
32
+ default: defprops.collapseItem.clickable
32
33
  },
33
34
  // 是否显示内边框
34
35
  border: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.collapseItem.border
37
+ default: defprops.collapseItem.border
37
38
  },
38
39
  // 标题的对齐方式
39
40
  align: {
40
41
  type: String,
41
- default: () => uni.$u.props.collapseItem.align
42
+ default: defprops.collapseItem.align
42
43
  },
43
44
  // 唯一标识符
44
45
  name: {
45
46
  type: [String, Number],
46
- default: () => uni.$u.props.collapseItem.name
47
+ default: defprops.collapseItem.name
47
48
  },
48
49
  // 标题左侧图片,可为绝对路径的图片或内置图标
49
50
  icon: {
50
51
  type: String,
51
- default: () => uni.$u.props.collapseItem.icon
52
+ default: defprops.collapseItem.icon
52
53
  },
53
54
  // 面板展开收起的过渡时间,单位ms
54
55
  duration: {
55
56
  type: Number,
56
- default: () => uni.$u.props.collapseItem.duration
57
+ default: defprops.collapseItem.duration
57
58
  }
58
59
  }
59
60
  }
@@ -1,55 +1,56 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 显示的内容,字符串
4
5
  text: {
5
6
  type: [Array],
6
- default: () => uni.$u.props.columnNotice.text
7
+ default: defprops.columnNotice.text
7
8
  },
8
9
  // 是否显示左侧的音量图标
9
10
  icon: {
10
11
  type: String,
11
- default: () => uni.$u.props.columnNotice.icon
12
+ default: defprops.columnNotice.icon
12
13
  },
13
14
  // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
14
15
  mode: {
15
16
  type: String,
16
- default: () => uni.$u.props.columnNotice.mode
17
+ default: defprops.columnNotice.mode
17
18
  },
18
19
  // 文字颜色,各图标也会使用文字颜色
19
20
  color: {
20
21
  type: String,
21
- default: () => uni.$u.props.columnNotice.color
22
+ default: defprops.columnNotice.color
22
23
  },
23
24
  // 背景颜色
24
25
  bgColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.columnNotice.bgColor
27
+ default: defprops.columnNotice.bgColor
27
28
  },
28
29
  // 字体大小,单位px
29
30
  fontSize: {
30
31
  type: [String, Number],
31
- default: () => uni.$u.props.columnNotice.fontSize
32
+ default: defprops.columnNotice.fontSize
32
33
  },
33
34
  // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
34
35
  speed: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.columnNotice.speed
37
+ default: defprops.columnNotice.speed
37
38
  },
38
39
  // direction = row时,是否使用步进形式滚动
39
40
  step: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.columnNotice.step
42
+ default: defprops.columnNotice.step
42
43
  },
43
44
  // 滚动一个周期的时间长,单位ms
44
45
  duration: {
45
46
  type: [String, Number],
46
- default: () => uni.$u.props.columnNotice.duration
47
+ default: defprops.columnNotice.duration
47
48
  },
48
49
  // 是否禁止用手滑动切换
49
50
  // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
50
51
  disableTouch: {
51
52
  type: Boolean,
52
- default: () => uni.$u.props.columnNotice.disableTouch
53
+ default: defprops.columnNotice.disableTouch
53
54
  }
54
55
  }
55
56
  }
@@ -1,24 +1,25 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 倒计时时长,单位ms
4
5
  time: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.countDown.time
7
+ default: defprops.countDown.time
7
8
  },
8
9
  // 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
9
10
  format: {
10
11
  type: String,
11
- default: () => uni.$u.props.countDown.format
12
+ default: defprops.countDown.format
12
13
  },
13
14
  // 是否自动开始倒计时
14
15
  autoStart: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.countDown.autoStart
17
+ default: defprops.countDown.autoStart
17
18
  },
18
19
  // 是否展示毫秒倒计时
19
20
  millisecond: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.countDown.millisecond
22
+ default: defprops.countDown.millisecond
22
23
  }
23
24
  }
24
25
  }
@@ -18,7 +18,7 @@
18
18
  /**
19
19
  * u-count-down 倒计时
20
20
  * @description 该组件一般使用于某个活动的截止时间上,通过数字的变化,给用户明确的时间感受,提示用户进行某一个行为操作。
21
- * @tutorial https://uview-plus.jiangruyi.com/components/countDown.html
21
+ * @tutorial https://uiadmin.net/uview-plus/components/countDown.html
22
22
  * @property {String | Number} time 倒计时时长,单位ms (默认 0 )
23
23
  * @property {String} format 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 (默认 'HH:mm:ss' )
24
24
  * @property {Boolean} autoStart 是否自动开始倒计时 (默认 true )
@@ -141,12 +141,7 @@
141
141
  this.timer = null
142
142
  }
143
143
  },
144
- // #ifdef VUE2
145
144
  beforeDestroy() {
146
- // #endif
147
- // #ifdef VUE3
148
- beforeUnmount() {
149
- // #endif
150
145
  this.clearTimeout()
151
146
  }
152
147
  }
@@ -1,59 +1,60 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 开始的数值,默认从0增长到某一个数
4
5
  startVal: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.countTo.startVal
7
+ default: defprops.countTo.startVal
7
8
  },
8
9
  // 要滚动的目标数值,必须
9
10
  endVal: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.countTo.endVal
12
+ default: defprops.countTo.endVal
12
13
  },
13
14
  // 滚动到目标数值的动画持续时间,单位为毫秒(ms)
14
15
  duration: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.countTo.duration
17
+ default: defprops.countTo.duration
17
18
  },
18
19
  // 设置数值后是否自动开始滚动
19
20
  autoplay: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.countTo.autoplay
22
+ default: defprops.countTo.autoplay
22
23
  },
23
24
  // 要显示的小数位数
24
25
  decimals: {
25
26
  type: [String, Number],
26
- default: () => uni.$u.props.countTo.decimals
27
+ default: defprops.countTo.decimals
27
28
  },
28
29
  // 是否在即将到达目标数值的时候,使用缓慢滚动的效果
29
30
  useEasing: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.countTo.useEasing
32
+ default: defprops.countTo.useEasing
32
33
  },
33
34
  // 十进制分割
34
35
  decimal: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.countTo.decimal
37
+ default: defprops.countTo.decimal
37
38
  },
38
39
  // 字体颜色
39
40
  color: {
40
41
  type: String,
41
- default: () => uni.$u.props.countTo.color
42
+ default: defprops.countTo.color
42
43
  },
43
44
  // 字体大小
44
45
  fontSize: {
45
46
  type: [String, Number],
46
- default: () => uni.$u.props.countTo.fontSize
47
+ default: defprops.countTo.fontSize
47
48
  },
48
49
  // 是否加粗字体
49
50
  bold: {
50
51
  type: Boolean,
51
- default: () => uni.$u.props.countTo.bold
52
+ default: defprops.countTo.bold
52
53
  },
53
54
  // 千位分隔符,类似金额的分割(¥23,321.05中的",")
54
55
  separator: {
55
56
  type: String,
56
- default: () => uni.$u.props.countTo.separator
57
+ default: defprops.countTo.separator
57
58
  }
58
59
  }
59
60
  }