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,39 +1,40 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 显示的内容,字符串
4
5
  text: {
5
6
  type: String,
6
- default: () => uni.$u.props.rowNotice.text
7
+ default: defprops.rowNotice.text
7
8
  },
8
9
  // 是否显示左侧的音量图标
9
10
  icon: {
10
11
  type: String,
11
- default: () => uni.$u.props.rowNotice.icon
12
+ default: defprops.rowNotice.icon
12
13
  },
13
14
  // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
14
15
  mode: {
15
16
  type: String,
16
- default: () => uni.$u.props.rowNotice.mode
17
+ default: defprops.rowNotice.mode
17
18
  },
18
19
  // 文字颜色,各图标也会使用文字颜色
19
20
  color: {
20
21
  type: String,
21
- default: () => uni.$u.props.rowNotice.color
22
+ default: defprops.rowNotice.color
22
23
  },
23
24
  // 背景颜色
24
25
  bgColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.rowNotice.bgColor
27
+ default: defprops.rowNotice.bgColor
27
28
  },
28
29
  // 字体大小,单位px
29
30
  fontSize: {
30
31
  type: [String, Number],
31
- default: () => uni.$u.props.rowNotice.fontSize
32
+ default: defprops.rowNotice.fontSize
32
33
  },
33
34
  // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
34
35
  speed: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.rowNotice.speed
37
+ default: defprops.rowNotice.speed
37
38
  }
38
39
  }
39
40
  }
@@ -273,12 +273,7 @@
273
273
  }
274
274
  },
275
275
  // #ifdef APP-NVUE
276
- // #ifdef VUE2
277
276
  beforeDestroy() {
278
- // #endif
279
- // #ifdef VUE3
280
- beforeUnmount() {
281
- // #endif
282
277
  this.stopAnimation = true
283
278
  },
284
279
  // #endif
@@ -1,3 +1,4 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
 
@@ -1,34 +1,35 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 指示器的整体宽度
4
5
  indicatorWidth: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.scrollList.indicatorWidth
7
+ default: defprops.scrollList.indicatorWidth
7
8
  },
8
9
  // 滑块的宽度
9
10
  indicatorBarWidth: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.scrollList.indicatorBarWidth
12
+ default: defprops.scrollList.indicatorBarWidth
12
13
  },
13
14
  // 是否显示面板指示器
14
15
  indicator: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.scrollList.indicator
17
+ default: defprops.scrollList.indicator
17
18
  },
18
19
  // 指示器非激活颜色
19
20
  indicatorColor: {
20
21
  type: String,
21
- default: () => uni.$u.props.scrollList.indicatorColor
22
+ default: defprops.scrollList.indicatorColor
22
23
  },
23
24
  // 指示器的激活颜色
24
25
  indicatorActiveColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.scrollList.indicatorActiveColor
27
+ default: defprops.scrollList.indicatorActiveColor
27
28
  },
28
29
  // 指示器样式,可通过bottom,left,right进行定位
29
30
  indicatorStyle: {
30
31
  type: [String, Object],
31
- default: () => uni.$u.props.scrollList.indicatorStyle
32
+ default: defprops.scrollList.indicatorStyle
32
33
  }
33
34
  }
34
35
  }
@@ -1,122 +1,123 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 搜索框形状,round-圆形,square-方形
4
5
  shape: {
5
6
  type: String,
6
- default: () => uni.$u.props.search.shape
7
+ default: defprops.search.shape
7
8
  },
8
9
  // 搜索框背景色,默认值#f2f2f2
9
10
  bgColor: {
10
11
  type: String,
11
- default: () => uni.$u.props.search.bgColor
12
+ default: defprops.search.bgColor
12
13
  },
13
14
  // 占位提示文字
14
15
  placeholder: {
15
16
  type: String,
16
- default: () => uni.$u.props.search.placeholder
17
+ default: defprops.search.placeholder
17
18
  },
18
19
  // 是否启用清除控件
19
20
  clearabled: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.search.clearabled
22
+ default: defprops.search.clearabled
22
23
  },
23
24
  // 是否自动聚焦
24
25
  focus: {
25
26
  type: Boolean,
26
- default: () => uni.$u.props.search.focus
27
+ default: defprops.search.focus
27
28
  },
28
29
  // 是否在搜索框右侧显示取消按钮
29
30
  showAction: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.search.showAction
32
+ default: defprops.search.showAction
32
33
  },
33
34
  // 右边控件的样式
34
35
  actionStyle: {
35
36
  type: Object,
36
- default: () => uni.$u.props.search.actionStyle
37
+ default: defprops.search.actionStyle
37
38
  },
38
39
  // 取消按钮文字
39
40
  actionText: {
40
41
  type: String,
41
- default: () => uni.$u.props.search.actionText
42
+ default: defprops.search.actionText
42
43
  },
43
44
  // 输入框内容对齐方式,可选值为 left|center|right
44
45
  inputAlign: {
45
46
  type: String,
46
- default: () => uni.$u.props.search.inputAlign
47
+ default: defprops.search.inputAlign
47
48
  },
48
49
  // input输入框的样式,可以定义文字颜色,大小等,对象形式
49
50
  inputStyle: {
50
51
  type: Object,
51
- default: () => uni.$u.props.search.inputStyle
52
+ default: defprops.search.inputStyle
52
53
  },
53
54
  // 是否启用输入框
54
55
  disabled: {
55
56
  type: Boolean,
56
- default: () => uni.$u.props.search.disabled
57
+ default: defprops.search.disabled
57
58
  },
58
59
  // 边框颜色
59
60
  borderColor: {
60
61
  type: String,
61
- default: () => uni.$u.props.search.borderColor
62
+ default: defprops.search.borderColor
62
63
  },
63
64
  // 搜索图标的颜色,默认同输入框字体颜色
64
65
  searchIconColor: {
65
66
  type: String,
66
- default: () => uni.$u.props.search.searchIconColor
67
+ default: defprops.search.searchIconColor
67
68
  },
68
69
  // 输入框字体颜色
69
70
  color: {
70
71
  type: String,
71
- default: () => uni.$u.props.search.color
72
+ default: defprops.search.color
72
73
  },
73
74
  // placeholder的颜色
74
75
  placeholderColor: {
75
76
  type: String,
76
- default: () => uni.$u.props.search.placeholderColor
77
+ default: defprops.search.placeholderColor
77
78
  },
78
79
  // 左边输入框的图标,可以为uView图标名称或图片路径
79
80
  searchIcon: {
80
81
  type: String,
81
- default: () => uni.$u.props.search.searchIcon
82
+ default: defprops.search.searchIcon
82
83
  },
83
84
  searchIconSize: {
84
85
  type: [Number, String],
85
- default: () => uni.$u.props.search.searchIconSize
86
+ default: defprops.search.searchIconSize
86
87
  },
87
88
  // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
88
89
  margin: {
89
90
  type: String,
90
- default: () => uni.$u.props.search.margin
91
+ default: defprops.search.margin
91
92
  },
92
93
  // 开启showAction时,是否在input获取焦点时才显示
93
94
  animation: {
94
95
  type: Boolean,
95
- default: () => uni.$u.props.search.animation
96
+ default: defprops.search.animation
96
97
  },
97
98
  // 输入框的初始化内容
98
99
  modelValue: {
99
100
  type: String,
100
- default: () => uni.$u.props.search.value
101
+ default: defprops.search.value
101
102
  },
102
103
  value: {
103
104
  type: String,
104
- default: () => uni.$u.props.search.value
105
+ default: defprops.search.value
105
106
  },
106
107
  // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
107
108
  maxlength: {
108
109
  type: [String, Number],
109
- default: () => uni.$u.props.search.maxlength
110
+ default: defprops.search.maxlength
110
111
  },
111
112
  // 搜索框高度,单位px
112
113
  height: {
113
114
  type: [String, Number],
114
- default: () => uni.$u.props.search.height
115
+ default: defprops.search.height
115
116
  },
116
117
  // 搜索框左侧文本
117
118
  label: {
118
119
  type: [String, Number, null],
119
- default: () => uni.$u.props.search.label
120
+ default: defprops.search.label
120
121
  }
121
122
  }
122
123
  }
@@ -1,59 +1,60 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 是否展示骨架组件
4
5
  loading: {
5
6
  type: Boolean,
6
- default: () => uni.$u.props.skeleton.loading
7
+ default: defprops.skeleton.loading
7
8
  },
8
9
  // 是否开启动画效果
9
10
  animate: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.skeleton.animate
12
+ default: defprops.skeleton.animate
12
13
  },
13
14
  // 段落占位图行数
14
15
  rows: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.skeleton.rows
17
+ default: defprops.skeleton.rows
17
18
  },
18
19
  // 段落占位图的宽度
19
20
  rowsWidth: {
20
21
  type: [String, Number, Array],
21
- default: () => uni.$u.props.skeleton.rowsWidth
22
+ default: defprops.skeleton.rowsWidth
22
23
  },
23
24
  // 段落占位图的高度
24
25
  rowsHeight: {
25
26
  type: [String, Number, Array],
26
- default: () => uni.$u.props.skeleton.rowsHeight
27
+ default: defprops.skeleton.rowsHeight
27
28
  },
28
29
  // 是否展示标题占位图
29
30
  title: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.skeleton.title
32
+ default: defprops.skeleton.title
32
33
  },
33
34
  // 段落标题的宽度
34
35
  titleWidth: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.skeleton.titleWidth
37
+ default: defprops.skeleton.titleWidth
37
38
  },
38
39
  // 段落标题的高度
39
40
  titleHeight: {
40
41
  type: [String, Number],
41
- default: () => uni.$u.props.skeleton.titleHeight
42
+ default: defprops.skeleton.titleHeight
42
43
  },
43
44
  // 是否展示头像占位图
44
45
  avatar: {
45
46
  type: Boolean,
46
- default: () => uni.$u.props.skeleton.avatar
47
+ default: defprops.skeleton.avatar
47
48
  },
48
49
  // 头像占位图大小
49
50
  avatarSize: {
50
51
  type: [String, Number],
51
- default: () => uni.$u.props.skeleton.avatarSize
52
+ default: defprops.skeleton.avatarSize
52
53
  },
53
54
  // 头像占位图的形状,circle-圆形,square-方形
54
55
  avatarShape: {
55
56
  type: String,
56
- default: () => uni.$u.props.skeleton.avatarShape
57
+ default: defprops.skeleton.avatarShape
57
58
  }
58
59
  }
59
60
  }
@@ -1,63 +1,64 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 最小可选值
4
5
  min: {
5
6
  type: [Number, String],
6
- default: () => uni.$u.props.slider.min
7
+ default: defprops.slider.min
7
8
  },
8
9
  // 最大可选值
9
10
  max: {
10
11
  type: [Number, String],
11
- default: () => uni.$u.props.slider.max
12
+ default: defprops.slider.max
12
13
  },
13
14
  // 步长,取值必须大于 0,并且可被(max - min)整除
14
15
  step: {
15
16
  type: [Number, String],
16
- default: () => uni.$u.props.slider.step
17
+ default: defprops.slider.step
17
18
  },
18
19
  // #ifdef VUE3
19
20
  // 当前取值
20
21
  modelValue: {
21
22
  type: [String, Number],
22
- default: () => uni.$u.props.slider.value
23
+ default: defprops.slider.value
23
24
  },
24
25
  // #endif
25
26
  // #ifdef VUE2
26
27
  // 当前取值
27
28
  value: {
28
29
  type: [String, Number],
29
- default: () => uni.$u.props.slider.value
30
+ default: defprops.slider.value
30
31
  },
31
32
  // #endif
32
33
  // 滑块右侧已选择部分的背景色
33
34
  activeColor: {
34
35
  type: String,
35
- default: () => uni.$u.props.slider.activeColor
36
+ default: defprops.slider.activeColor
36
37
  },
37
38
  // 滑块左侧未选择部分的背景色
38
39
  inactiveColor: {
39
40
  type: String,
40
- default: () => uni.$u.props.slider.inactiveColor
41
+ default: defprops.slider.inactiveColor
41
42
  },
42
43
  // 滑块的大小,取值范围为 12 - 28
43
44
  blockSize: {
44
45
  type: [Number, String],
45
- default: () => uni.$u.props.slider.blockSize
46
+ default: defprops.slider.blockSize
46
47
  },
47
48
  // 滑块的颜色
48
49
  blockColor: {
49
50
  type: String,
50
- default: () => uni.$u.props.slider.blockColor
51
+ default: defprops.slider.blockColor
51
52
  },
52
53
  // 禁用状态
53
54
  disabled: {
54
55
  type: Boolean,
55
- default: () => uni.$u.props.slider.disabled
56
+ default: defprops.slider.disabled
56
57
  },
57
58
  // 是否显示当前的选择值
58
59
  showValue: {
59
60
  type: Boolean,
60
- default: () => uni.$u.props.slider.showValue
61
+ default: defprops.slider.showValue
61
62
  }
62
63
  }
63
64
  }
@@ -1,8 +1,9 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  bgColor: {
4
5
  type: String,
5
- default: () => uni.$u.props.statusBar.bgColor
6
+ default: defprops.statusBar.bgColor
6
7
  }
7
8
  }
8
9
  }
@@ -14,7 +14,7 @@
14
14
  /**
15
15
  * StatbusBar 状态栏占位
16
16
  * @description 本组件主要用于状态填充,比如在自定导航栏的时候,它会自动适配一个恰当的状态栏高度。
17
- * @tutorial https://uview-plus.jiangruyi.com/components/statusBar.html
17
+ * @tutorial https://uiadmin.net/uview-plus/components/statusBar.html
18
18
  * @property {String} bgColor 背景色 (默认 'transparent' )
19
19
  * @property {String | Object} customStyle 自定义样式
20
20
  * @example <u-status-bar></u-status-bar>
@@ -1,39 +1,40 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 排列方向
4
5
  direction: {
5
6
  type: String,
6
- default: () => uni.$u.props.steps.direction
7
+ default: defprops.steps.direction
7
8
  },
8
9
  // 设置第几个步骤
9
10
  current: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.steps.current
12
+ default: defprops.steps.current
12
13
  },
13
14
  // 激活状态颜色
14
15
  activeColor: {
15
16
  type: String,
16
- default: () => uni.$u.props.steps.activeColor
17
+ default: defprops.steps.activeColor
17
18
  },
18
19
  // 未激活状态颜色
19
20
  inactiveColor: {
20
21
  type: String,
21
- default: () => uni.$u.props.steps.inactiveColor
22
+ default: defprops.steps.inactiveColor
22
23
  },
23
24
  // 激活状态的图标
24
25
  activeIcon: {
25
26
  type: String,
26
- default: () => uni.$u.props.steps.activeIcon
27
+ default: defprops.steps.activeIcon
27
28
  },
28
29
  // 未激活状态图标
29
30
  inactiveIcon: {
30
31
  type: String,
31
- default: () => uni.$u.props.steps.inactiveIcon
32
+ default: defprops.steps.inactiveIcon
32
33
  },
33
34
  // 是否显示点类型
34
35
  dot: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.steps.dot
37
+ default: defprops.steps.dot
37
38
  }
38
39
  }
39
40
  }
@@ -14,7 +14,7 @@
14
14
  /**
15
15
  * Steps 步骤条
16
16
  * @description 该组件一般用于完成一个任务要分几个步骤,标识目前处于第几步的场景。
17
- * @tutorial https://uview-plus.jiangruyi.com/components/steps.html
17
+ * @tutorial https://uiadmin.net/uview-plus/components/steps.html
18
18
  * @property {String} direction row-横向,column-竖向 (默认 'row' )
19
19
  * @property {String | Number} current 设置当前处于第几步 (默认 0 )
20
20
  * @property {String} activeColor 激活状态颜色 (默认 '#3c9cff' )
@@ -1,24 +1,25 @@
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.stepsItem.title
7
+ default: defprops.stepsItem.title
7
8
  },
8
9
  // 描述文本
9
10
  desc: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.stepsItem.desc
12
+ default: defprops.stepsItem.desc
12
13
  },
13
14
  // 图标大小
14
15
  iconSize: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.stepsItem.iconSize
17
+ default: defprops.stepsItem.iconSize
17
18
  },
18
19
  // 当前步骤是否处于失败状态
19
20
  error: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.stepsItem.error
22
+ default: defprops.stepsItem.error
22
23
  }
23
24
  }
24
25
  }
@@ -56,7 +56,7 @@
56
56
  /**
57
57
  * StepsItem 步骤条的子组件
58
58
  * @description 本组件需要和u-steps配合使用
59
- * @tutorial https://uview-plus.jiangruyi.com/components/steps.html
59
+ * @tutorial https://uiadmin.net/uview-plus/components/steps.html
60
60
  * @property {String} title 标题文字
61
61
  * @property {String} current 描述文本
62
62
  * @property {String | Number} iconSize 图标大小 (默认 17 )
@@ -1,9 +1,10 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px
4
5
  offsetTop: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.sticky.offsetTop
7
+ default: defprops.sticky.offsetTop
7
8
  },
8
9
  // 自定义导航栏的高度
9
10
  customNavHeight: {
@@ -13,28 +14,28 @@ export default {
13
14
  default: 44,
14
15
  // #endif
15
16
  // #ifndef H5
16
- default: () => uni.$u.props.sticky.customNavHeight
17
+ default: defprops.sticky.customNavHeight
17
18
  // #endif
18
19
  },
19
20
  // 是否开启吸顶功能
20
21
  disabled: {
21
22
  type: Boolean,
22
- default: () => uni.$u.props.sticky.disabled
23
+ default: defprops.sticky.disabled
23
24
  },
24
25
  // 吸顶区域的背景颜色
25
26
  bgColor: {
26
27
  type: String,
27
- default: () => uni.$u.props.sticky.bgColor
28
+ default: defprops.sticky.bgColor
28
29
  },
29
30
  // z-index值
30
31
  zIndex: {
31
32
  type: [String, Number],
32
- default: () => uni.$u.props.sticky.zIndex
33
+ default: defprops.sticky.zIndex
33
34
  },
34
35
  // 列表中的索引值
35
36
  index: {
36
37
  type: [String, Number],
37
- default: () => uni.$u.props.sticky.index
38
+ default: defprops.sticky.index
38
39
  }
39
40
  }
40
41
  }
@@ -198,12 +198,7 @@
198
198
  // #endif
199
199
  }
200
200
  },
201
- // #ifdef VUE2
202
201
  beforeDestroy() {
203
- // #endif
204
- // #ifdef VUE3
205
- beforeUnmount() {
206
- // #endif
207
202
  this.disconnectObserver('contentObserver')
208
203
  }
209
204
  }
@@ -1,49 +1,50 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // tab的数据
4
5
  list: {
5
6
  type: Array,
6
- default: () => uni.$u.props.subsection.list
7
+ default: defprops.subsection.list
7
8
  },
8
9
  // 当前活动的tab的index
9
10
  current: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.subsection.current
12
+ default: defprops.subsection.current
12
13
  },
13
14
  // 激活的颜色
14
15
  activeColor: {
15
16
  type: String,
16
- default: () => uni.$u.props.subsection.activeColor
17
+ default: defprops.subsection.activeColor
17
18
  },
18
19
  // 未激活的颜色
19
20
  inactiveColor: {
20
21
  type: String,
21
- default: () => uni.$u.props.subsection.inactiveColor
22
+ default: defprops.subsection.inactiveColor
22
23
  },
23
24
  // 模式选择,mode=button为按钮形式,mode=subsection时为分段模式
24
25
  mode: {
25
26
  type: String,
26
- default: () => uni.$u.props.subsection.mode
27
+ default: defprops.subsection.mode
27
28
  },
28
29
  // 字体大小
29
30
  fontSize: {
30
31
  type: [String, Number],
31
- default: () => uni.$u.props.subsection.fontSize
32
+ default: defprops.subsection.fontSize
32
33
  },
33
34
  // 激活tab的字体是否加粗
34
35
  bold: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.subsection.bold
37
+ default: defprops.subsection.bold
37
38
  },
38
39
  // mode = button时,组件背景颜色
39
40
  bgColor: {
40
41
  type: String,
41
- default: () => uni.$u.props.subsection.bgColor
42
+ default: defprops.subsection.bgColor
42
43
  },
43
44
  // 从list元素对象中读取的键名
44
45
  keyName: {
45
46
  type: String,
46
- default: () => uni.$u.props.subsection.keyName
47
+ default: defprops.subsection.keyName
47
48
  }
48
49
  }
49
50
  }
@@ -1,9 +1,10 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 是否自动关闭其他swipe按钮组
4
5
  autoClose: {
5
6
  type: Boolean,
6
- default: () => uni.$u.props.swipeAction.autoClose
7
+ default: defprops.swipeAction.autoClose
7
8
  }
8
9
  }
9
10
  }