uview-plus 3.1.50 → 3.1.52

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 (169) hide show
  1. package/README.md +10 -10
  2. package/changelog.md +18 -1
  3. package/components/u-action-sheet/props.js +10 -11
  4. package/components/u-album/props.js +11 -12
  5. package/components/u-alert/props.js +8 -9
  6. package/components/u-avatar/props.js +14 -15
  7. package/components/u-avatar-group/props.js +9 -10
  8. package/components/u-back-top/props.js +10 -11
  9. package/components/u-back-top/u-back-top.vue +1 -1
  10. package/components/u-badge/props.js +14 -15
  11. package/components/u-badge/u-badge.vue +1 -1
  12. package/components/u-button/props.js +28 -29
  13. package/components/u-button/u-button.vue +6 -6
  14. package/components/u-button/vue.scss +8 -7
  15. package/components/u-calendar/month.vue +1 -1
  16. package/components/u-calendar/props.js +27 -28
  17. package/components/u-car-keyboard/props.js +0 -1
  18. package/components/u-car-keyboard/u-car-keyboard.vue +1 -1
  19. package/components/u-cell/props.js +17 -18
  20. package/components/u-cell/u-cell.vue +14 -4
  21. package/components/u-cell-group/props.js +2 -3
  22. package/components/u-cell-group/u-cell-group.vue +1 -1
  23. package/components/u-checkbox/props.js +13 -14
  24. package/components/u-checkbox/u-checkbox.vue +1 -1
  25. package/components/u-checkbox-group/props.js +16 -17
  26. package/components/u-circle-progress/props.js +1 -2
  27. package/components/u-code/props.js +6 -7
  28. package/components/u-code/u-code.vue +5 -0
  29. package/components/u-code-input/props.js +16 -17
  30. package/components/u-col/props.js +5 -6
  31. package/components/u-collapse/props.js +3 -4
  32. package/components/u-collapse-item/props.js +11 -12
  33. package/components/u-column-notice/props.js +10 -11
  34. package/components/u-copy/u-copy.vue +70 -0
  35. package/components/u-count-down/props.js +4 -5
  36. package/components/u-count-down/u-count-down.vue +6 -1
  37. package/components/u-count-to/props.js +11 -12
  38. package/components/u-datetime-picker/props.js +37 -25
  39. package/components/u-datetime-picker/u-datetime-picker.vue +58 -3
  40. package/components/u-divider/props.js +8 -9
  41. package/components/u-dropdown/props.js +0 -1
  42. package/components/u-dropdown-item/props.js +0 -1
  43. package/components/u-empty/props.js +11 -12
  44. package/components/u-form/props.js +8 -9
  45. package/components/u-form/u-form.vue +1 -1
  46. package/components/u-form-item/props.js +13 -9
  47. package/components/u-form-item/u-form-item.vue +1 -0
  48. package/components/u-gap/props.js +4 -5
  49. package/components/u-gap/u-gap.vue +5 -4
  50. package/components/u-grid/props.js +3 -4
  51. package/components/u-grid-item/props.js +2 -3
  52. package/components/u-grid-item/u-grid-item.vue +5 -0
  53. package/components/u-icon/props.js +17 -18
  54. package/components/u-icon/u-icon.vue +9 -6
  55. package/components/u-image/props.js +16 -17
  56. package/components/u-image/u-image.vue +1 -1
  57. package/components/u-index-anchor/props.js +5 -6
  58. package/components/u-index-anchor/u-index-anchor.vue +1 -1
  59. package/components/u-index-item/props.js +0 -1
  60. package/components/u-index-item/u-index-item.vue +1 -1
  61. package/components/u-index-list/props.js +5 -6
  62. package/components/u-index-list/u-index-list.vue +3 -2
  63. package/components/u-input/props.js +35 -36
  64. package/components/u-input/u-input.vue +10 -4
  65. package/components/u-keyboard/props.js +16 -17
  66. package/components/u-line/props.js +6 -7
  67. package/components/u-line-progress/props.js +5 -6
  68. package/components/u-link/props.js +7 -8
  69. package/components/u-list/props.js +14 -15
  70. package/components/u-list-item/props.js +1 -2
  71. package/components/u-loading-icon/props.js +11 -12
  72. package/components/u-loading-page/props.js +9 -10
  73. package/components/u-loadmore/props.js +18 -19
  74. package/components/u-modal/props.js +16 -17
  75. package/components/u-navbar/props.js +16 -17
  76. package/components/u-no-network/props.js +3 -4
  77. package/components/u-notice-bar/props.js +13 -14
  78. package/components/u-notify/props.js +9 -10
  79. package/components/u-notify/u-notify.vue +5 -0
  80. package/components/u-number-box/props.js +22 -23
  81. package/components/u-number-box/u-number-box.vue +21 -1
  82. package/components/u-number-keyboard/props.js +3 -4
  83. package/components/u-overlay/props.js +4 -5
  84. package/components/u-parse/props.js +8 -9
  85. package/components/u-parse/u-parse.vue +6 -1
  86. package/components/u-picker/props.js +16 -17
  87. package/components/u-picker-column/props.js +0 -1
  88. package/components/u-popup/props.js +15 -16
  89. package/components/u-qrcode/qrcode.js +1206 -0
  90. package/components/u-qrcode/u-qrcode.vue +199 -0
  91. package/components/u-radio/props.js +13 -14
  92. package/components/u-radio-group/props.js +17 -18
  93. package/components/u-rate/props.js +14 -15
  94. package/components/u-read-more/props.js +8 -9
  95. package/components/u-row/props.js +3 -4
  96. package/components/u-row-notice/props.js +7 -8
  97. package/components/u-row-notice/u-row-notice.vue +5 -0
  98. package/components/u-safe-bottom/props.js +0 -1
  99. package/components/u-scroll-list/props.js +6 -7
  100. package/components/u-search/props.js +24 -25
  101. package/components/u-skeleton/props.js +11 -12
  102. package/components/u-slider/props.js +11 -12
  103. package/components/u-status-bar/props.js +1 -2
  104. package/components/u-status-bar/u-status-bar.vue +1 -1
  105. package/components/u-steps/props.js +7 -8
  106. package/components/u-steps/u-steps.vue +1 -1
  107. package/components/u-steps-item/props.js +4 -5
  108. package/components/u-steps-item/u-steps-item.vue +1 -1
  109. package/components/u-sticky/props.js +6 -7
  110. package/components/u-sticky/u-sticky.vue +5 -0
  111. package/components/u-subsection/props.js +9 -10
  112. package/components/u-subsection/u-subsection.vue +2 -2
  113. package/components/u-swipe-action/props.js +1 -2
  114. package/components/u-swipe-action-item/nvue.js +5 -0
  115. package/components/u-swipe-action-item/props.js +6 -7
  116. package/components/u-swiper/props.js +24 -25
  117. package/components/u-swiper-indicator/props.js +5 -6
  118. package/components/u-switch/props.js +11 -12
  119. package/components/u-tabbar/props.js +8 -9
  120. package/components/u-tabbar-item/props.js +6 -7
  121. package/components/u-table/props.js +0 -1
  122. package/components/u-tabs/props.js +12 -13
  123. package/components/u-tabs-item/props.js +0 -1
  124. package/components/u-tag/props.js +15 -16
  125. package/components/u-td/props.js +0 -1
  126. package/components/u-text/props.js +21 -22
  127. package/components/u-textarea/props.js +23 -24
  128. package/components/u-toast/u-toast.vue +5 -0
  129. package/components/u-toolbar/props.js +6 -7
  130. package/components/u-tooltip/props.js +11 -12
  131. package/components/u-tooltip/u-tooltip.vue +0 -28
  132. package/components/u-tr/props.js +0 -1
  133. package/components/u-transition/props.js +4 -5
  134. package/components/u-transition/transition.js +8 -9
  135. package/components/u-transition/u-transition.vue +1 -1
  136. package/components/u-upload/props.js +22 -23
  137. package/components/u-upload/u-upload.vue +1 -1
  138. package/index.js +6 -6
  139. package/libs/config/props/actionSheet.js +1 -1
  140. package/libs/config/props/album.js +1 -1
  141. package/libs/config/props/avatarGroup.js +1 -1
  142. package/libs/config/props/backtop.js +2 -2
  143. package/libs/config/props/badge.js +1 -1
  144. package/libs/config/props/calendar.js +3 -3
  145. package/libs/config/props/checkboxGroup.js +1 -1
  146. package/libs/config/props/datetimePicker.js +1 -1
  147. package/libs/config/props/form.js +3 -3
  148. package/libs/config/props/formItem.js +1 -0
  149. package/libs/config/props/indexList.js +1 -1
  150. package/libs/config/props/noticeBar.js +1 -1
  151. package/libs/config/props/picker.js +2 -2
  152. package/libs/config/props/popup.js +1 -1
  153. package/libs/config/props/search.js +2 -2
  154. package/libs/config/props/slider.js +1 -1
  155. package/libs/config/props/swiper.js +1 -1
  156. package/libs/config/props/tabs.js +7 -7
  157. package/libs/config/props/text.js +2 -2
  158. package/libs/config/props/toast.js +1 -1
  159. package/libs/config/props/tooltip.js +1 -1
  160. package/libs/config/props/upload.js +3 -3
  161. package/libs/css/components.scss +11 -1
  162. package/libs/css/flex.scss +103 -101
  163. package/libs/function/colorGradient.js +8 -8
  164. package/libs/function/debounce.js +2 -2
  165. package/libs/function/digit.js +5 -5
  166. package/libs/function/index.js +29 -29
  167. package/libs/function/test.js +28 -28
  168. package/libs/function/throttle.js +2 -2
  169. package/package.json +4 -3
@@ -1,126 +1,125 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
5
4
  list: {
6
5
  type: Array,
7
- default: defprops.swiper.list
6
+ default: () => uni.$u.props.swiper.list
8
7
  },
9
8
  // 是否显示面板指示器
10
9
  indicator: {
11
10
  type: Boolean,
12
- default: defprops.swiper.indicator
11
+ default: () => uni.$u.props.swiper.indicator
13
12
  },
14
13
  // 指示器非激活颜色
15
14
  indicatorActiveColor: {
16
15
  type: String,
17
- default: defprops.swiper.indicatorActiveColor
16
+ default: () => uni.$u.props.swiper.indicatorActiveColor
18
17
  },
19
18
  // 指示器的激活颜色
20
19
  indicatorInactiveColor: {
21
20
  type: String,
22
- default: defprops.swiper.indicatorInactiveColor
21
+ default: () => uni.$u.props.swiper.indicatorInactiveColor
23
22
  },
24
23
  // 指示器样式,可通过bottom,left,right进行定位
25
24
  indicatorStyle: {
26
25
  type: [String, Object],
27
- default: defprops.swiper.indicatorStyle
26
+ default: () => uni.$u.props.swiper.indicatorStyle
28
27
  },
29
28
  // 指示器模式,line-线型,dot-点型
30
29
  indicatorMode: {
31
30
  type: String,
32
- default: defprops.swiper.indicatorMode
31
+ default: () => uni.$u.props.swiper.indicatorMode
33
32
  },
34
33
  // 是否自动切换
35
34
  autoplay: {
36
35
  type: Boolean,
37
- default: defprops.swiper.autoplay
36
+ default: () => uni.$u.props.swiper.autoplay
38
37
  },
39
38
  // 当前所在滑块的 index
40
39
  current: {
41
40
  type: [String, Number],
42
- default: defprops.swiper.current
41
+ default: () => uni.$u.props.swiper.current
43
42
  },
44
43
  // 当前所在滑块的 item-id ,不能与 current 被同时指定
45
44
  currentItemId: {
46
45
  type: String,
47
- default: defprops.swiper.currentItemId
46
+ default: () => uni.$u.props.swiper.currentItemId
48
47
  },
49
48
  // 滑块自动切换时间间隔
50
49
  interval: {
51
50
  type: [String, Number],
52
- default: defprops.swiper.interval
51
+ default: () => uni.$u.props.swiper.interval
53
52
  },
54
53
  // 滑块切换过程所需时间
55
54
  duration: {
56
55
  type: [String, Number],
57
- default: defprops.swiper.duration
56
+ default: () => uni.$u.props.swiper.duration
58
57
  },
59
58
  // 播放到末尾后是否重新回到开头
60
59
  circular: {
61
60
  type: Boolean,
62
- default: defprops.swiper.circular
61
+ default: () => uni.$u.props.swiper.circular
63
62
  },
64
63
  // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
65
64
  previousMargin: {
66
65
  type: [String, Number],
67
- default: defprops.swiper.previousMargin
66
+ default: () => uni.$u.props.swiper.previousMargin
68
67
  },
69
68
  // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
70
69
  nextMargin: {
71
70
  type: [String, Number],
72
- default: defprops.swiper.nextMargin
71
+ default: () => uni.$u.props.swiper.nextMargin
73
72
  },
74
73
  // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
75
74
  acceleration: {
76
75
  type: Boolean,
77
- default: defprops.swiper.acceleration
76
+ default: () => uni.$u.props.swiper.acceleration
78
77
  },
79
78
  // 同时显示的滑块数量,nvue、支付宝小程序不支持
80
79
  displayMultipleItems: {
81
80
  type: Number,
82
- default: defprops.swiper.displayMultipleItems
81
+ default: () => uni.$u.props.swiper.displayMultipleItems
83
82
  },
84
83
  // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
85
84
  // 只对微信小程序有效
86
85
  easingFunction: {
87
86
  type: String,
88
- default: defprops.swiper.easingFunction
87
+ default: () => uni.$u.props.swiper.easingFunction
89
88
  },
90
89
  // list数组中指定对象的目标属性名
91
90
  keyName: {
92
91
  type: String,
93
- default: defprops.swiper.keyName
92
+ default: () => uni.$u.props.swiper.keyName
94
93
  },
95
94
  // 图片的裁剪模式
96
95
  imgMode: {
97
96
  type: String,
98
- default: defprops.swiper.imgMode
97
+ default: () => uni.$u.props.swiper.imgMode
99
98
  },
100
99
  // 组件高度
101
100
  height: {
102
101
  type: [String, Number],
103
- default: defprops.swiper.height
102
+ default: () => uni.$u.props.swiper.height
104
103
  },
105
104
  // 背景颜色
106
105
  bgColor: {
107
106
  type: String,
108
- default: defprops.swiper.bgColor
107
+ default: () => uni.$u.props.swiper.bgColor
109
108
  },
110
109
  // 组件圆角,数值或带单位的字符串
111
110
  radius: {
112
111
  type: [String, Number],
113
- default: defprops.swiper.radius
112
+ default: () => uni.$u.props.swiper.radius
114
113
  },
115
114
  // 是否加载中
116
115
  loading: {
117
116
  type: Boolean,
118
- default: defprops.swiper.loading
117
+ default: () => uni.$u.props.swiper.loading
119
118
  },
120
119
  // 是否显示标题,要求数组对象中有title属性
121
120
  showTitle: {
122
121
  type: Boolean,
123
- default: defprops.swiper.showTitle
122
+ default: () => uni.$u.props.swiper.showTitle
124
123
  }
125
124
  }
126
125
  }
@@ -1,30 +1,29 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 轮播的长度
5
4
  length: {
6
5
  type: [String, Number],
7
- default: defprops.swiperIndicator.length
6
+ default: () => uni.$u.props.swiperIndicator.length
8
7
  },
9
8
  // 当前处于活动状态的轮播的索引
10
9
  current: {
11
10
  type: [String, Number],
12
- default: defprops.swiperIndicator.current
11
+ default: () => uni.$u.props.swiperIndicator.current
13
12
  },
14
13
  // 指示器非激活颜色
15
14
  indicatorActiveColor: {
16
15
  type: String,
17
- default: defprops.swiperIndicator.indicatorActiveColor
16
+ default: () => uni.$u.props.swiperIndicator.indicatorActiveColor
18
17
  },
19
18
  // 指示器的激活颜色
20
19
  indicatorInactiveColor: {
21
20
  type: String,
22
- default: defprops.swiperIndicator.indicatorInactiveColor
21
+ default: () => uni.$u.props.swiperIndicator.indicatorInactiveColor
23
22
  },
24
23
  // 指示器模式,line-线型,dot-点型
25
24
  indicatorMode: {
26
25
  type: String,
27
- default: defprops.swiperIndicator.indicatorMode
26
+ default: () => uni.$u.props.swiperIndicator.indicatorMode
28
27
  }
29
28
  }
30
29
  }
@@ -1,63 +1,62 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 是否为加载中状态
5
4
  loading: {
6
5
  type: Boolean,
7
- default: defprops.switch.loading
6
+ default: () => uni.$u.props.switch.loading
8
7
  },
9
8
  // 是否为禁用装填
10
9
  disabled: {
11
10
  type: Boolean,
12
- default: defprops.switch.disabled
11
+ default: () => uni.$u.props.switch.disabled
13
12
  },
14
13
  // 开关尺寸,单位px
15
14
  size: {
16
15
  type: [String, Number],
17
- default: defprops.switch.size
16
+ default: () => uni.$u.props.switch.size
18
17
  },
19
18
  // 打开时的背景颜色
20
19
  activeColor: {
21
20
  type: String,
22
- default: defprops.switch.activeColor
21
+ default: () => uni.$u.props.switch.activeColor
23
22
  },
24
23
  // 关闭时的背景颜色
25
24
  inactiveColor: {
26
25
  type: String,
27
- default: defprops.switch.inactiveColor
26
+ default: () => uni.$u.props.switch.inactiveColor
28
27
  },
29
28
  // 通过v-model双向绑定的值
30
29
  // #ifdef VUE3
31
30
  modelValue: {
32
31
  type: [Boolean, String, Number],
33
- default: defprops.switch.value
32
+ default: () => uni.$u.props.switch.value
34
33
  },
35
34
  // #endif
36
35
  // #ifdef VUE2
37
36
  value: {
38
37
  type: [Boolean, String, Number],
39
- default: defprops.switch.value
38
+ default: () => uni.$u.props.switch.value
40
39
  },
41
40
  // #endif
42
41
  // switch打开时的值
43
42
  activeValue: {
44
43
  type: [String, Number, Boolean],
45
- default: defprops.switch.activeValue
44
+ default: () => uni.$u.props.switch.activeValue
46
45
  },
47
46
  // switch关闭时的值
48
47
  inactiveValue: {
49
48
  type: [String, Number, Boolean],
50
- default: defprops.switch.inactiveValue
49
+ default: () => uni.$u.props.switch.inactiveValue
51
50
  },
52
51
  // 是否开启异步变更,开启后需要手动控制输入值
53
52
  asyncChange: {
54
53
  type: Boolean,
55
- default: defprops.switch.asyncChange
54
+ default: () => uni.$u.props.switch.asyncChange
56
55
  },
57
56
  // 圆点与外边框的距离
58
57
  space: {
59
58
  type: [String, Number],
60
- default: defprops.switch.space
59
+ default: () => uni.$u.props.switch.space
61
60
  }
62
61
  }
63
62
  }
@@ -1,45 +1,44 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 当前匹配项的name
5
4
  value: {
6
5
  type: [String, Number, null],
7
- default: defprops.tabbar.value
6
+ default: () => uni.$u.props.tabbar.value
8
7
  },
9
8
  // 是否为iPhoneX留出底部安全距离
10
9
  safeAreaInsetBottom: {
11
10
  type: Boolean,
12
- default: defprops.tabbar.safeAreaInsetBottom
11
+ default: () => uni.$u.props.tabbar.safeAreaInsetBottom
13
12
  },
14
13
  // 是否显示上方边框
15
14
  border: {
16
15
  type: Boolean,
17
- default: defprops.tabbar.border
16
+ default: () => uni.$u.props.tabbar.border
18
17
  },
19
18
  // 元素层级z-index
20
19
  zIndex: {
21
20
  type: [String, Number],
22
- default: defprops.tabbar.zIndex
21
+ default: () => uni.$u.props.tabbar.zIndex
23
22
  },
24
23
  // 选中标签的颜色
25
24
  activeColor: {
26
25
  type: String,
27
- default: defprops.tabbar.activeColor
26
+ default: () => uni.$u.props.tabbar.activeColor
28
27
  },
29
28
  // 未选中标签的颜色
30
29
  inactiveColor: {
31
30
  type: String,
32
- default: defprops.tabbar.inactiveColor
31
+ default: () => uni.$u.props.tabbar.inactiveColor
33
32
  },
34
33
  // 是否固定在底部
35
34
  fixed: {
36
35
  type: Boolean,
37
- default: defprops.tabbar.fixed
36
+ default: () => uni.$u.props.tabbar.fixed
38
37
  },
39
38
  // fixed定位固定在底部时,是否生成一个等高元素防止塌陷
40
39
  placeholder: {
41
40
  type: Boolean,
42
- default: defprops.tabbar.placeholder
41
+ default: () => uni.$u.props.tabbar.placeholder
43
42
  }
44
43
  }
45
44
  }
@@ -1,35 +1,34 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // item标签的名称,作为与u-tabbar的value参数匹配的标识符
5
4
  name: {
6
5
  type: [String, Number, null],
7
- default: defprops.tabbarItem.name
6
+ default: () => uni.$u.props.tabbarItem.name
8
7
  },
9
8
  // uView内置图标或者绝对路径的图片
10
9
  icon: {
11
10
  icon: String,
12
- default: defprops.tabbarItem.icon
11
+ default: () => uni.$u.props.tabbarItem.icon
13
12
  },
14
13
  // 右上角的角标提示信息
15
14
  badge: {
16
15
  type: [String, Number, null],
17
- default: defprops.tabbarItem.badge
16
+ default: () => uni.$u.props.tabbarItem.badge
18
17
  },
19
18
  // 是否显示圆点,将会覆盖badge参数
20
19
  dot: {
21
20
  type: Boolean,
22
- default: defprops.tabbarItem.dot
21
+ default: () => uni.$u.props.tabbarItem.dot
23
22
  },
24
23
  // 描述文本
25
24
  text: {
26
25
  type: String,
27
- default: defprops.tabbarItem.text
26
+ default: () => uni.$u.props.tabbarItem.text
28
27
  },
29
28
  // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性
30
29
  badgeStyle: {
31
30
  type: [Object, String],
32
- default: defprops.tabbarItem.badgeStyle
31
+ default: () => uni.$u.props.tabbarItem.badgeStyle
33
32
  }
34
33
 
35
34
  }
@@ -1,4 +1,3 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
 
@@ -1,65 +1,64 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 滑块的移动过渡时间,单位ms
5
4
  duration: {
6
5
  type: Number,
7
- default: defprops.tabs.duration
6
+ default: () => uni.$u.props.tabs.duration
8
7
  },
9
8
  // tabs标签数组
10
9
  list: {
11
10
  type: Array,
12
- default: defprops.tabs.list
11
+ default: () => uni.$u.props.tabs.list
13
12
  },
14
13
  // 滑块颜色
15
14
  lineColor: {
16
15
  type: String,
17
- default: defprops.tabs.lineColor
16
+ default: () => uni.$u.props.tabs.lineColor
18
17
  },
19
18
  // 菜单选择中时的样式
20
19
  activeStyle: {
21
20
  type: [String, Object],
22
- default: defprops.tabs.activeStyle
21
+ default: () => uni.$u.props.tabs.activeStyle
23
22
  },
24
23
  // 菜单非选中时的样式
25
24
  inactiveStyle: {
26
25
  type: [String, Object],
27
- default: defprops.tabs.inactiveStyle
26
+ default: () => uni.$u.props.tabs.inactiveStyle
28
27
  },
29
28
  // 滑块长度
30
29
  lineWidth: {
31
30
  type: [String, Number],
32
- default: defprops.tabs.lineWidth
31
+ default: () => uni.$u.props.tabs.lineWidth
33
32
  },
34
33
  // 滑块高度
35
34
  lineHeight: {
36
35
  type: [String, Number],
37
- default: defprops.tabs.lineHeight
36
+ default: () => uni.$u.props.tabs.lineHeight
38
37
  },
39
38
  // 滑块背景显示大小,当滑块背景设置为图片时使用
40
39
  lineBgSize: {
41
40
  type: String,
42
- default: defprops.tabs.lineBgSize
41
+ default: () => uni.$u.props.tabs.lineBgSize
43
42
  },
44
43
  // 菜单item的样式
45
44
  itemStyle: {
46
45
  type: [String, Object],
47
- default: defprops.tabs.itemStyle
46
+ default: () => uni.$u.props.tabs.itemStyle
48
47
  },
49
48
  // 菜单是否可滚动
50
49
  scrollable: {
51
50
  type: Boolean,
52
- default: defprops.tabs.scrollable
51
+ default: () => uni.$u.props.tabs.scrollable
53
52
  },
54
53
  // 当前选中标签的索引
55
54
  current: {
56
55
  type: [Number, String],
57
- default: defprops.tabs.current
56
+ default: () => uni.$u.props.tabs.current
58
57
  },
59
58
  // 默认读取的键名
60
59
  keyName: {
61
60
  type: String,
62
- default: defprops.tabs.keyName
61
+ default: () => uni.$u.props.tabs.keyName
63
62
  }
64
63
  }
65
64
  }
@@ -1,4 +1,3 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
 
@@ -1,55 +1,54 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3
  // 标签类型info、primary、success、warning、error
5
4
  type: {
6
5
  type: String,
7
- default: defprops.tag.type
6
+ default: () => uni.$u.props.tag.type
8
7
  },
9
8
  // 不可用
10
9
  disabled: {
11
10
  type: [Boolean, String],
12
- default: defprops.tag.disabled
11
+ default: () => uni.$u.props.tag.disabled
13
12
  },
14
13
  // 标签的大小,large,medium,mini
15
14
  size: {
16
15
  type: String,
17
- default: defprops.tag.size
16
+ default: () => uni.$u.props.tag.size
18
17
  },
19
18
  // tag的形状,circle(两边半圆形), square(方形,带圆角)
20
19
  shape: {
21
20
  type: String,
22
- default: defprops.tag.shape
21
+ default: () => uni.$u.props.tag.shape
23
22
  },
24
23
  // 标签文字
25
24
  text: {
26
25
  type: [String, Number],
27
- default: defprops.tag.text
26
+ default: () => uni.$u.props.tag.text
28
27
  },
29
28
  // 背景颜色,默认为空字符串,即不处理
30
29
  bgColor: {
31
30
  type: String,
32
- default: defprops.tag.bgColor
31
+ default: () => uni.$u.props.tag.bgColor
33
32
  },
34
33
  // 标签字体颜色,默认为空字符串,即不处理
35
34
  color: {
36
35
  type: String,
37
- default: defprops.tag.color
36
+ default: () => uni.$u.props.tag.color
38
37
  },
39
38
  // 标签的边框颜色
40
39
  borderColor: {
41
40
  type: String,
42
- default: defprops.tag.borderColor
41
+ default: () => uni.$u.props.tag.borderColor
43
42
  },
44
43
  // 关闭按钮图标的颜色
45
44
  closeColor: {
46
45
  type: String,
47
- default: defprops.tag.closeColor
46
+ default: () => uni.$u.props.tag.closeColor
48
47
  },
49
48
  // 点击时返回的索引值,用于区分例遍的数组哪个元素被点击了
50
49
  name: {
51
50
  type: [String, Number],
52
- default: defprops.tag.name
51
+ default: () => uni.$u.props.tag.name
53
52
  },
54
53
  // // 模式选择,dark|light|plain
55
54
  // mode: {
@@ -59,27 +58,27 @@ export default {
59
58
  // 镂空时是否填充背景色
60
59
  plainFill: {
61
60
  type: Boolean,
62
- default: defprops.tag.plainFill
61
+ default: () => uni.$u.props.tag.plainFill
63
62
  },
64
63
  // 是否镂空
65
64
  plain: {
66
65
  type: Boolean,
67
- default: defprops.tag.plain
66
+ default: () => uni.$u.props.tag.plain
68
67
  },
69
68
  // 是否可关闭
70
69
  closable: {
71
70
  type: Boolean,
72
- default: defprops.tag.closable
71
+ default: () => uni.$u.props.tag.closable
73
72
  },
74
73
  // 是否显示
75
74
  show: {
76
75
  type: Boolean,
77
- default: defprops.tag.show
76
+ default: () => uni.$u.props.tag.show
78
77
  },
79
78
  // 内置图标,或绝对路径的图片
80
79
  icon: {
81
80
  type: String,
82
- default: defprops.tag.icon
81
+ default: () => uni.$u.props.tag.icon
83
82
  }
84
83
  }
85
84
  }
@@ -1,4 +1,3 @@
1
- import defprops from '../../libs/config/props';
2
1
  export default {
3
2
  props: {
4
3