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,3 +1,4 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  containerStyle: {
@@ -7,38 +8,38 @@ export default {
7
8
  content: String,
8
9
  copyLink: {
9
10
  type: Boolean,
10
- default: () => uni.$u.props.parse.copyLink
11
+ default: defprops.parse.copyLink
11
12
  },
12
13
  domain: String,
13
14
  errorImg: {
14
15
  type: String,
15
- default: () => uni.$u.props.parse.errorImg
16
+ default: defprops.parse.errorImg
16
17
  },
17
18
  lazyLoad: {
18
19
  type: Boolean,
19
- default: () => uni.$u.props.parse.lazyLoad
20
+ default: defprops.parse.lazyLoad
20
21
  },
21
22
  loadingImg: {
22
23
  type: String,
23
- default: () => uni.$u.props.parse.loadingImg
24
+ default: defprops.parse.loadingImg
24
25
  },
25
26
  pauseVideo: {
26
27
  type: Boolean,
27
- default: () => uni.$u.props.parse.pauseVideo
28
+ default: defprops.parse.pauseVideo
28
29
  },
29
30
  previewImg: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.parse.previewImg
32
+ default: defprops.parse.previewImg
32
33
  },
33
34
  scrollTable: Boolean,
34
35
  selectable: Boolean,
35
36
  setTitle: {
36
37
  type: Boolean,
37
- default: () => uni.$u.props.parse.setTitle
38
+ default: defprops.parse.setTitle
38
39
  },
39
40
  showImgMenu: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.parse.showImgMenu
42
+ default: defprops.parse.showImgMenu
42
43
  },
43
44
  tagStyle: Object,
44
45
  useAnchor: null
@@ -126,12 +126,7 @@ export default {
126
126
  this.setContent(this.content)
127
127
  }
128
128
  },
129
- // #ifdef VUE2
130
- beforeDestroy() {
131
- // #endif
132
- // #ifdef VUE3
133
- beforeUnmount() {
134
- // #endif
129
+ beforeDestroy() {
135
130
  this._hook('onDetached')
136
131
  },
137
132
  methods: {
@@ -1,84 +1,85 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 是否展示picker弹窗
4
5
  show: {
5
6
  type: Boolean,
6
- default: () => uni.$u.props.picker.show
7
+ default: defprops.picker.show
7
8
  },
8
9
  // 弹出的方向,可选值为 top bottom right left center
9
10
  popupMode: {
10
11
  type: String,
11
- default: () => uni.$u.props.picker.popupMode
12
+ default: defprops.picker.popupMode
12
13
  },
13
14
  // 是否展示顶部的操作栏
14
15
  showToolbar: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.picker.showToolbar
17
+ default: defprops.picker.showToolbar
17
18
  },
18
19
  // 顶部标题
19
20
  title: {
20
21
  type: String,
21
- default: () => uni.$u.props.picker.title
22
+ default: defprops.picker.title
22
23
  },
23
24
  // 对象数组,设置每一列的数据
24
25
  columns: {
25
26
  type: Array,
26
- default: () => uni.$u.props.picker.columns
27
+ default: defprops.picker.columns
27
28
  },
28
29
  // 是否显示加载中状态
29
30
  loading: {
30
31
  type: Boolean,
31
- default: () => uni.$u.props.picker.loading
32
+ default: defprops.picker.loading
32
33
  },
33
34
  // 各列中,单个选项的高度
34
35
  itemHeight: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.picker.itemHeight
37
+ default: defprops.picker.itemHeight
37
38
  },
38
39
  // 取消按钮的文字
39
40
  cancelText: {
40
41
  type: String,
41
- default: () => uni.$u.props.picker.cancelText
42
+ default: defprops.picker.cancelText
42
43
  },
43
44
  // 确认按钮的文字
44
45
  confirmText: {
45
46
  type: String,
46
- default: () => uni.$u.props.picker.confirmText
47
+ default: defprops.picker.confirmText
47
48
  },
48
49
  // 取消按钮的颜色
49
50
  cancelColor: {
50
51
  type: String,
51
- default: () => uni.$u.props.picker.cancelColor
52
+ default: defprops.picker.cancelColor
52
53
  },
53
54
  // 确认按钮的颜色
54
55
  confirmColor: {
55
56
  type: String,
56
- default: () => uni.$u.props.picker.confirmColor
57
+ default: defprops.picker.confirmColor
57
58
  },
58
59
  // 每列中可见选项的数量
59
60
  visibleItemCount: {
60
61
  type: [String, Number],
61
- default: () => uni.$u.props.picker.visibleItemCount
62
+ default: defprops.picker.visibleItemCount
62
63
  },
63
64
  // 选项对象中,需要展示的属性键名
64
65
  keyName: {
65
66
  type: String,
66
- default: () => uni.$u.props.picker.keyName
67
+ default: defprops.picker.keyName
67
68
  },
68
69
  // 是否允许点击遮罩关闭选择器
69
70
  closeOnClickOverlay: {
70
71
  type: Boolean,
71
- default: () => uni.$u.props.picker.closeOnClickOverlay
72
+ default: defprops.picker.closeOnClickOverlay
72
73
  },
73
74
  // 各列的默认索引
74
75
  defaultIndex: {
75
76
  type: Array,
76
- default: () => uni.$u.props.picker.defaultIndex
77
+ default: defprops.picker.defaultIndex
77
78
  },
78
79
  // 是否在手指松开时立即触发 change 事件。若不开启则会在滚动动画结束后触发 change 事件,只在微信2.21.1及以上有效
79
80
  immediateChange: {
80
81
  type: Boolean,
81
- default: () => uni.$u.props.picker.immediateChange
82
+ default: defprops.picker.immediateChange
82
83
  }
83
84
  }
84
85
  }
@@ -1,3 +1,4 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
 
@@ -1,79 +1,80 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 是否展示弹窗
4
5
  show: {
5
6
  type: Boolean,
6
- default: () => uni.$u.props.popup.show
7
+ default: defprops.popup.show
7
8
  },
8
9
  // 是否显示遮罩
9
10
  overlay: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.popup.overlay
12
+ default: defprops.popup.overlay
12
13
  },
13
14
  // 弹出的方向,可选值为 top bottom right left center
14
15
  mode: {
15
16
  type: String,
16
- default: () => uni.$u.props.popup.mode
17
+ default: defprops.popup.mode
17
18
  },
18
19
  // 动画时长,单位ms
19
20
  duration: {
20
21
  type: [String, Number],
21
- default: () => uni.$u.props.popup.duration
22
+ default: defprops.popup.duration
22
23
  },
23
24
  // 是否显示关闭图标
24
25
  closeable: {
25
26
  type: Boolean,
26
- default: () => uni.$u.props.popup.closeable
27
+ default: defprops.popup.closeable
27
28
  },
28
29
  // 自定义遮罩的样式
29
30
  overlayStyle: {
30
31
  type: [Object, String],
31
- default: () => uni.$u.props.popup.overlayStyle
32
+ default: defprops.popup.overlayStyle
32
33
  },
33
34
  // 点击遮罩是否关闭弹窗
34
35
  closeOnClickOverlay: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.popup.closeOnClickOverlay
37
+ default: defprops.popup.closeOnClickOverlay
37
38
  },
38
39
  // 层级
39
40
  zIndex: {
40
41
  type: [String, Number],
41
- default: () => uni.$u.props.popup.zIndex
42
+ default: defprops.popup.zIndex
42
43
  },
43
44
  // 是否为iPhoneX留出底部安全距离
44
45
  safeAreaInsetBottom: {
45
46
  type: Boolean,
46
- default: () => uni.$u.props.popup.safeAreaInsetBottom
47
+ default: defprops.popup.safeAreaInsetBottom
47
48
  },
48
49
  // 是否留出顶部安全距离(状态栏高度)
49
50
  safeAreaInsetTop: {
50
51
  type: Boolean,
51
- default: () => uni.$u.props.popup.safeAreaInsetTop
52
+ default: defprops.popup.safeAreaInsetTop
52
53
  },
53
54
  // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
54
55
  closeIconPos: {
55
56
  type: String,
56
- default: () => uni.$u.props.popup.closeIconPos
57
+ default: defprops.popup.closeIconPos
57
58
  },
58
59
  // 是否显示圆角
59
60
  round: {
60
61
  type: [Boolean, String, Number],
61
- default: () => uni.$u.props.popup.round
62
+ default: defprops.popup.round
62
63
  },
63
64
  // mode=center,也即中部弹出时,是否使用缩放模式
64
65
  zoom: {
65
66
  type: Boolean,
66
- default: () => uni.$u.props.popup.zoom
67
+ default: defprops.popup.zoom
67
68
  },
68
69
  // 弹窗背景色,设置为transparent可去除白色背景
69
70
  bgColor: {
70
71
  type: String,
71
- default: () => uni.$u.props.popup.bgColor
72
+ default: defprops.popup.bgColor
72
73
  },
73
74
  // 遮罩的透明度,0-1之间
74
75
  overlayOpacity: {
75
76
  type: [Number, String],
76
- default: () => uni.$u.props.popup.overlayOpacity
77
+ default: defprops.popup.overlayOpacity
77
78
  }
78
79
  }
79
80
  }
@@ -1,69 +1,70 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // radio的名称
4
5
  name: {
5
6
  type: [String, Number, Boolean],
6
- default: () => uni.$u.props.radio.name
7
+ default: defprops.radio.name
7
8
  },
8
9
  // 形状,square为方形,circle为圆型
9
10
  shape: {
10
11
  type: String,
11
- default: () => uni.$u.props.radio.shape
12
+ default: defprops.radio.shape
12
13
  },
13
14
  // 是否禁用
14
15
  disabled: {
15
16
  type: [String, Boolean],
16
- default: () => uni.$u.props.radio.disabled
17
+ default: defprops.radio.disabled
17
18
  },
18
19
  // 是否禁止点击提示语选中单选框
19
20
  labelDisabled: {
20
21
  type: [String, Boolean],
21
- default: () => uni.$u.props.radio.labelDisabled
22
+ default: defprops.radio.labelDisabled
22
23
  },
23
24
  // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
24
25
  activeColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.radio.activeColor
27
+ default: defprops.radio.activeColor
27
28
  },
28
29
  // 未选中的颜色
29
30
  inactiveColor: {
30
31
  type: String,
31
- default: () => uni.$u.props.radio.inactiveColor
32
+ default: defprops.radio.inactiveColor
32
33
  },
33
34
  // 图标的大小,单位px
34
35
  iconSize: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.radio.iconSize
37
+ default: defprops.radio.iconSize
37
38
  },
38
39
  // label的字体大小,px单位
39
40
  labelSize: {
40
41
  type: [String, Number],
41
- default: () => uni.$u.props.radio.labelSize
42
+ default: defprops.radio.labelSize
42
43
  },
43
44
  // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
44
45
  label: {
45
46
  type: [String, Number],
46
- default: () => uni.$u.props.radio.label
47
+ default: defprops.radio.label
47
48
  },
48
49
  // 整体的大小
49
50
  size: {
50
51
  type: [String, Number],
51
- default: () => uni.$u.props.radio.size
52
+ default: defprops.radio.size
52
53
  },
53
54
  // 图标颜色
54
55
  color: {
55
56
  type: String,
56
- default: () => uni.$u.props.radio.color
57
+ default: defprops.radio.color
57
58
  },
58
59
  // label的颜色
59
60
  labelColor: {
60
61
  type: String,
61
- default: () => uni.$u.props.radio.labelColor
62
+ default: defprops.radio.labelColor
62
63
  },
63
64
  // 图标颜色
64
65
  iconColor: {
65
66
  type: String,
66
- default: () => uni.$u.props.radio.iconColor
67
+ default: defprops.radio.iconColor
67
68
  }
68
69
  }
69
70
  }
@@ -1,93 +1,94 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // #ifdef VUE3
4
5
  // 绑定的值
5
6
  modelValue: {
6
7
  type: [String, Number, Boolean],
7
- default: () => uni.$u.props.radioGroup.value
8
+ default: defprops.radioGroup.value
8
9
  },
9
10
  // #endif
10
11
  // #ifdef VUE2
11
12
  // 绑定的值
12
13
  value: {
13
14
  type: [String, Number, Boolean],
14
- default: () => uni.$u.props.radioGroup.value
15
+ default: defprops.radioGroup.value
15
16
  },
16
17
  // #endif
17
18
  // 是否禁用全部radio
18
19
  disabled: {
19
20
  type: Boolean,
20
- default: () => uni.$u.props.radioGroup.disabled
21
+ default: defprops.radioGroup.disabled
21
22
  },
22
23
  // 形状,circle-圆形,square-方形
23
24
  shape: {
24
25
  type: String,
25
- default: () => uni.$u.props.radioGroup.shape
26
+ default: defprops.radioGroup.shape
26
27
  },
27
28
  // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
28
29
  activeColor: {
29
30
  type: String,
30
- default: () => uni.$u.props.radioGroup.activeColor
31
+ default: defprops.radioGroup.activeColor
31
32
  },
32
33
  // 未选中的颜色
33
34
  inactiveColor: {
34
35
  type: String,
35
- default: () => uni.$u.props.radioGroup.inactiveColor
36
+ default: defprops.radioGroup.inactiveColor
36
37
  },
37
38
  // 标识符
38
39
  name: {
39
40
  type: String,
40
- default: () => uni.$u.props.radioGroup.name
41
+ default: defprops.radioGroup.name
41
42
  },
42
43
  // 整个组件的尺寸,默认px
43
44
  size: {
44
45
  type: [String, Number],
45
- default: () => uni.$u.props.radioGroup.size
46
+ default: defprops.radioGroup.size
46
47
  },
47
48
  // 布局方式,row-横向,column-纵向
48
49
  placement: {
49
50
  type: String,
50
- default: () => uni.$u.props.radioGroup.placement
51
+ default: defprops.radioGroup.placement
51
52
  },
52
53
  // label的文本
53
54
  label: {
54
55
  type: [String],
55
- default: () => uni.$u.props.radioGroup.label
56
+ default: defprops.radioGroup.label
56
57
  },
57
58
  // label的颜色 (默认 '#303133' )
58
59
  labelColor: {
59
60
  type: [String],
60
- default: () => uni.$u.props.radioGroup.labelColor
61
+ default: defprops.radioGroup.labelColor
61
62
  },
62
63
  // label的字体大小,px单位
63
64
  labelSize: {
64
65
  type: [String, Number],
65
- default: () => uni.$u.props.radioGroup.labelSize
66
+ default: defprops.radioGroup.labelSize
66
67
  },
67
68
  // 是否禁止点击文本操作checkbox(默认 false )
68
69
  labelDisabled: {
69
70
  type: Boolean,
70
- default: () => uni.$u.props.radioGroup.labelDisabled
71
+ default: defprops.radioGroup.labelDisabled
71
72
  },
72
73
  // 图标颜色
73
74
  iconColor: {
74
75
  type: String,
75
- default: () => uni.$u.props.radioGroup.iconColor
76
+ default: defprops.radioGroup.iconColor
76
77
  },
77
78
  // 图标的大小,单位px
78
79
  iconSize: {
79
80
  type: [String, Number],
80
- default: () => uni.$u.props.radioGroup.iconSize
81
+ default: defprops.radioGroup.iconSize
81
82
  },
82
83
  // 竖向配列时,是否显示下划线
83
84
  borderBottom: {
84
85
  type: Boolean,
85
- default: () => uni.$u.props.radioGroup.borderBottom
86
+ default: defprops.radioGroup.borderBottom
86
87
  },
87
88
  // 图标与文字的对齐方式
88
89
  iconPlacement: {
89
90
  type: String,
90
- default: () => uni.$u.props.radio.iconPlacement
91
+ default: defprops.radio.iconPlacement
91
92
  }
92
93
  }
93
94
  }
@@ -1,78 +1,79 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // #ifdef VUE3
4
5
  // 用于v-model双向绑定选中的星星数量
5
6
  modelValue: {
6
7
  type: [String, Number],
7
- default: () => uni.$u.props.rate.value
8
+ default: defprops.rate.value
8
9
  },
9
10
  // #endif
10
11
  // #ifdef VUE2
11
12
  // 用于v-model双向绑定选中的星星数量
12
13
  value: {
13
14
  type: [String, Number],
14
- default: () => uni.$u.props.rate.value
15
+ default: defprops.rate.value
15
16
  },
16
17
  // #endif
17
18
  // 要显示的星星数量
18
19
  count: {
19
20
  type: [String, Number],
20
- default: () => uni.$u.props.rate.count
21
+ default: defprops.rate.count
21
22
  },
22
23
  // 是否不可选中
23
24
  disabled: {
24
25
  type: Boolean,
25
- default: () => uni.$u.props.rate.disabled
26
+ default: defprops.rate.disabled
26
27
  },
27
28
  // 是否只读
28
29
  readonly: {
29
30
  type: Boolean,
30
- default: () => uni.$u.props.rate.readonly
31
+ default: defprops.rate.readonly
31
32
  },
32
33
  // 星星的大小,单位px
33
34
  size: {
34
35
  type: [String, Number],
35
- default: () => uni.$u.props.rate.size
36
+ default: defprops.rate.size
36
37
  },
37
38
  // 未选中时的颜色
38
39
  inactiveColor: {
39
40
  type: String,
40
- default: () => uni.$u.props.rate.inactiveColor
41
+ default: defprops.rate.inactiveColor
41
42
  },
42
43
  // 选中的颜色
43
44
  activeColor: {
44
45
  type: String,
45
- default: () => uni.$u.props.rate.activeColor
46
+ default: defprops.rate.activeColor
46
47
  },
47
48
  // 星星之间的间距,单位px
48
49
  gutter: {
49
50
  type: [String, Number],
50
- default: () => uni.$u.props.rate.gutter
51
+ default: defprops.rate.gutter
51
52
  },
52
53
  // 最少能选择的星星个数
53
54
  minCount: {
54
55
  type: [String, Number],
55
- default: () => uni.$u.props.rate.minCount
56
+ default: defprops.rate.minCount
56
57
  },
57
58
  // 是否允许半星
58
59
  allowHalf: {
59
60
  type: Boolean,
60
- default: () => uni.$u.props.rate.allowHalf
61
+ default: defprops.rate.allowHalf
61
62
  },
62
63
  // 选中时的图标(星星)
63
64
  activeIcon: {
64
65
  type: String,
65
- default: () => uni.$u.props.rate.activeIcon
66
+ default: defprops.rate.activeIcon
66
67
  },
67
68
  // 未选中时的图标(星星)
68
69
  inactiveIcon: {
69
70
  type: String,
70
- default: () => uni.$u.props.rate.inactiveIcon
71
+ default: defprops.rate.inactiveIcon
71
72
  },
72
73
  // 是否可以通过滑动手势选择评分
73
74
  touchable: {
74
75
  type: Boolean,
75
- default: () => uni.$u.props.rate.touchable
76
+ default: defprops.rate.touchable
76
77
  }
77
78
  }
78
79
  }
@@ -1,34 +1,35 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 默认的显示占位高度
4
5
  showHeight: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.readMore.showHeight
7
+ default: defprops.readMore.showHeight
7
8
  },
8
9
  // 展开后是否显示"收起"按钮
9
10
  toggle: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.readMore.toggle
12
+ default: defprops.readMore.toggle
12
13
  },
13
14
  // 关闭时的提示文字
14
15
  closeText: {
15
16
  type: String,
16
- default: () => uni.$u.props.readMore.closeText
17
+ default: defprops.readMore.closeText
17
18
  },
18
19
  // 展开时的提示文字
19
20
  openText: {
20
21
  type: String,
21
- default: () => uni.$u.props.readMore.openText
22
+ default: defprops.readMore.openText
22
23
  },
23
24
  // 提示的文字颜色
24
25
  color: {
25
26
  type: String,
26
- default: () => uni.$u.props.readMore.color
27
+ default: defprops.readMore.color
27
28
  },
28
29
  // 提示文字的大小
29
30
  fontSize: {
30
31
  type: [String, Number],
31
- default: () => uni.$u.props.readMore.fontSize
32
+ default: defprops.readMore.fontSize
32
33
  },
33
34
  // 是否显示阴影
34
35
  // 此参数不能写在props/readMore.js中进行默认配置,因为使用了条件编译,在外部js中
@@ -50,12 +51,12 @@ export default {
50
51
  // 段落首行缩进的字符个数
51
52
  textIndent: {
52
53
  type: String,
53
- default: () => uni.$u.props.readMore.textIndent
54
+ default: defprops.readMore.textIndent
54
55
  },
55
56
  // open和close事件时,将此参数返回在回调参数中
56
57
  name: {
57
58
  type: [String, Number],
58
- default: () => uni.$u.props.readMore.name
59
+ default: defprops.readMore.name
59
60
  }
60
61
  }
61
62
  }
@@ -1,19 +1,20 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 给col添加间距,左右边距各占一半
4
5
  gutter: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.row.gutter
7
+ default: defprops.row.gutter
7
8
  },
8
9
  // 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
9
10
  justify: {
10
11
  type: String,
11
- default: () => uni.$u.props.row.justify
12
+ default: defprops.row.justify
12
13
  },
13
14
  // 垂直对齐方式,可选值为top、center、bottom
14
15
  align: {
15
16
  type: String,
16
- default: () => uni.$u.props.row.align
17
+ default: defprops.row.align
17
18
  }
18
19
  }
19
20
  }