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
@@ -167,12 +167,7 @@ export default {
167
167
  getContentRef() {
168
168
  return this.$refs['u-swipe-action-item__content'].ref
169
169
  },
170
- // #ifdef VUE2
171
170
  beforeDestroy() {
172
- // #endif
173
- // #ifdef VUE3
174
- beforeUnmount() {
175
- // #endif
176
171
  this.unbindBindingX()
177
172
  }
178
173
  }
@@ -1,29 +1,30 @@
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.swipeActionItem.show
7
+ default: defprops.swipeActionItem.show
7
8
  },
8
9
  // 标识符,如果是v-for,可用index索引值
9
10
  name: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.swipeActionItem.name
12
+ default: defprops.swipeActionItem.name
12
13
  },
13
14
  // 是否禁用
14
15
  disabled: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.swipeActionItem.disabled
17
+ default: defprops.swipeActionItem.disabled
17
18
  },
18
19
  // 是否自动关闭其他swipe按钮组
19
20
  autoClose: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.swipeActionItem.autoClose
22
+ default: defprops.swipeActionItem.autoClose
22
23
  },
23
24
  // 滑动距离阈值,只有大于此值,才被认为是要打开菜单
24
25
  threshold: {
25
26
  type: Number,
26
- default: () => uni.$u.props.swipeActionItem.threshold
27
+ default: defprops.swipeActionItem.threshold
27
28
  },
28
29
  // 右侧按钮内容
29
30
  options: {
@@ -35,7 +36,7 @@ export default {
35
36
  // 动画过渡时间,单位ms
36
37
  duration: {
37
38
  type: [String, Number],
38
- default: () => uni.$u.props.swipeActionItem.duration
39
+ default: defprops.swipeActionItem.duration
39
40
  }
40
41
  }
41
42
  }
@@ -1,125 +1,126 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
4
5
  list: {
5
6
  type: Array,
6
- default: () => uni.$u.props.swiper.list
7
+ default: defprops.swiper.list
7
8
  },
8
9
  // 是否显示面板指示器
9
10
  indicator: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.swiper.indicator
12
+ default: defprops.swiper.indicator
12
13
  },
13
14
  // 指示器非激活颜色
14
15
  indicatorActiveColor: {
15
16
  type: String,
16
- default: () => uni.$u.props.swiper.indicatorActiveColor
17
+ default: defprops.swiper.indicatorActiveColor
17
18
  },
18
19
  // 指示器的激活颜色
19
20
  indicatorInactiveColor: {
20
21
  type: String,
21
- default: () => uni.$u.props.swiper.indicatorInactiveColor
22
+ default: defprops.swiper.indicatorInactiveColor
22
23
  },
23
24
  // 指示器样式,可通过bottom,left,right进行定位
24
25
  indicatorStyle: {
25
26
  type: [String, Object],
26
- default: () => uni.$u.props.swiper.indicatorStyle
27
+ default: defprops.swiper.indicatorStyle
27
28
  },
28
29
  // 指示器模式,line-线型,dot-点型
29
30
  indicatorMode: {
30
31
  type: String,
31
- default: () => uni.$u.props.swiper.indicatorMode
32
+ default: defprops.swiper.indicatorMode
32
33
  },
33
34
  // 是否自动切换
34
35
  autoplay: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.swiper.autoplay
37
+ default: defprops.swiper.autoplay
37
38
  },
38
39
  // 当前所在滑块的 index
39
40
  current: {
40
41
  type: [String, Number],
41
- default: () => uni.$u.props.swiper.current
42
+ default: defprops.swiper.current
42
43
  },
43
44
  // 当前所在滑块的 item-id ,不能与 current 被同时指定
44
45
  currentItemId: {
45
46
  type: String,
46
- default: () => uni.$u.props.swiper.currentItemId
47
+ default: defprops.swiper.currentItemId
47
48
  },
48
49
  // 滑块自动切换时间间隔
49
50
  interval: {
50
51
  type: [String, Number],
51
- default: () => uni.$u.props.swiper.interval
52
+ default: defprops.swiper.interval
52
53
  },
53
54
  // 滑块切换过程所需时间
54
55
  duration: {
55
56
  type: [String, Number],
56
- default: () => uni.$u.props.swiper.duration
57
+ default: defprops.swiper.duration
57
58
  },
58
59
  // 播放到末尾后是否重新回到开头
59
60
  circular: {
60
61
  type: Boolean,
61
- default: () => uni.$u.props.swiper.circular
62
+ default: defprops.swiper.circular
62
63
  },
63
64
  // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
64
65
  previousMargin: {
65
66
  type: [String, Number],
66
- default: () => uni.$u.props.swiper.previousMargin
67
+ default: defprops.swiper.previousMargin
67
68
  },
68
69
  // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
69
70
  nextMargin: {
70
71
  type: [String, Number],
71
- default: () => uni.$u.props.swiper.nextMargin
72
+ default: defprops.swiper.nextMargin
72
73
  },
73
74
  // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
74
75
  acceleration: {
75
76
  type: Boolean,
76
- default: () => uni.$u.props.swiper.acceleration
77
+ default: defprops.swiper.acceleration
77
78
  },
78
79
  // 同时显示的滑块数量,nvue、支付宝小程序不支持
79
80
  displayMultipleItems: {
80
81
  type: Number,
81
- default: () => uni.$u.props.swiper.displayMultipleItems
82
+ default: defprops.swiper.displayMultipleItems
82
83
  },
83
84
  // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
84
85
  // 只对微信小程序有效
85
86
  easingFunction: {
86
87
  type: String,
87
- default: () => uni.$u.props.swiper.easingFunction
88
+ default: defprops.swiper.easingFunction
88
89
  },
89
90
  // list数组中指定对象的目标属性名
90
91
  keyName: {
91
92
  type: String,
92
- default: () => uni.$u.props.swiper.keyName
93
+ default: defprops.swiper.keyName
93
94
  },
94
95
  // 图片的裁剪模式
95
96
  imgMode: {
96
97
  type: String,
97
- default: () => uni.$u.props.swiper.imgMode
98
+ default: defprops.swiper.imgMode
98
99
  },
99
100
  // 组件高度
100
101
  height: {
101
102
  type: [String, Number],
102
- default: () => uni.$u.props.swiper.height
103
+ default: defprops.swiper.height
103
104
  },
104
105
  // 背景颜色
105
106
  bgColor: {
106
107
  type: String,
107
- default: () => uni.$u.props.swiper.bgColor
108
+ default: defprops.swiper.bgColor
108
109
  },
109
110
  // 组件圆角,数值或带单位的字符串
110
111
  radius: {
111
112
  type: [String, Number],
112
- default: () => uni.$u.props.swiper.radius
113
+ default: defprops.swiper.radius
113
114
  },
114
115
  // 是否加载中
115
116
  loading: {
116
117
  type: Boolean,
117
- default: () => uni.$u.props.swiper.loading
118
+ default: defprops.swiper.loading
118
119
  },
119
120
  // 是否显示标题,要求数组对象中有title属性
120
121
  showTitle: {
121
122
  type: Boolean,
122
- default: () => uni.$u.props.swiper.showTitle
123
+ default: defprops.swiper.showTitle
123
124
  }
124
125
  }
125
126
  }
@@ -1,29 +1,30 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 轮播的长度
4
5
  length: {
5
6
  type: [String, Number],
6
- default: () => uni.$u.props.swiperIndicator.length
7
+ default: defprops.swiperIndicator.length
7
8
  },
8
9
  // 当前处于活动状态的轮播的索引
9
10
  current: {
10
11
  type: [String, Number],
11
- default: () => uni.$u.props.swiperIndicator.current
12
+ default: defprops.swiperIndicator.current
12
13
  },
13
14
  // 指示器非激活颜色
14
15
  indicatorActiveColor: {
15
16
  type: String,
16
- default: () => uni.$u.props.swiperIndicator.indicatorActiveColor
17
+ default: defprops.swiperIndicator.indicatorActiveColor
17
18
  },
18
19
  // 指示器的激活颜色
19
20
  indicatorInactiveColor: {
20
21
  type: String,
21
- default: () => uni.$u.props.swiperIndicator.indicatorInactiveColor
22
+ default: defprops.swiperIndicator.indicatorInactiveColor
22
23
  },
23
24
  // 指示器模式,line-线型,dot-点型
24
25
  indicatorMode: {
25
26
  type: String,
26
- default: () => uni.$u.props.swiperIndicator.indicatorMode
27
+ default: defprops.swiperIndicator.indicatorMode
27
28
  }
28
29
  }
29
30
  }
@@ -1,62 +1,63 @@
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.switch.loading
7
+ default: defprops.switch.loading
7
8
  },
8
9
  // 是否为禁用装填
9
10
  disabled: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.switch.disabled
12
+ default: defprops.switch.disabled
12
13
  },
13
14
  // 开关尺寸,单位px
14
15
  size: {
15
16
  type: [String, Number],
16
- default: () => uni.$u.props.switch.size
17
+ default: defprops.switch.size
17
18
  },
18
19
  // 打开时的背景颜色
19
20
  activeColor: {
20
21
  type: String,
21
- default: () => uni.$u.props.switch.activeColor
22
+ default: defprops.switch.activeColor
22
23
  },
23
24
  // 关闭时的背景颜色
24
25
  inactiveColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.switch.inactiveColor
27
+ default: defprops.switch.inactiveColor
27
28
  },
28
29
  // 通过v-model双向绑定的值
29
30
  // #ifdef VUE3
30
31
  modelValue: {
31
32
  type: [Boolean, String, Number],
32
- default: () => uni.$u.props.switch.value
33
+ default: defprops.switch.value
33
34
  },
34
35
  // #endif
35
36
  // #ifdef VUE2
36
37
  value: {
37
38
  type: [Boolean, String, Number],
38
- default: () => uni.$u.props.switch.value
39
+ default: defprops.switch.value
39
40
  },
40
41
  // #endif
41
42
  // switch打开时的值
42
43
  activeValue: {
43
44
  type: [String, Number, Boolean],
44
- default: () => uni.$u.props.switch.activeValue
45
+ default: defprops.switch.activeValue
45
46
  },
46
47
  // switch关闭时的值
47
48
  inactiveValue: {
48
49
  type: [String, Number, Boolean],
49
- default: () => uni.$u.props.switch.inactiveValue
50
+ default: defprops.switch.inactiveValue
50
51
  },
51
52
  // 是否开启异步变更,开启后需要手动控制输入值
52
53
  asyncChange: {
53
54
  type: Boolean,
54
- default: () => uni.$u.props.switch.asyncChange
55
+ default: defprops.switch.asyncChange
55
56
  },
56
57
  // 圆点与外边框的距离
57
58
  space: {
58
59
  type: [String, Number],
59
- default: () => uni.$u.props.switch.space
60
+ default: defprops.switch.space
60
61
  }
61
62
  }
62
63
  }
@@ -1,44 +1,45 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 当前匹配项的name
4
5
  value: {
5
6
  type: [String, Number, null],
6
- default: () => uni.$u.props.tabbar.value
7
+ default: defprops.tabbar.value
7
8
  },
8
9
  // 是否为iPhoneX留出底部安全距离
9
10
  safeAreaInsetBottom: {
10
11
  type: Boolean,
11
- default: () => uni.$u.props.tabbar.safeAreaInsetBottom
12
+ default: defprops.tabbar.safeAreaInsetBottom
12
13
  },
13
14
  // 是否显示上方边框
14
15
  border: {
15
16
  type: Boolean,
16
- default: () => uni.$u.props.tabbar.border
17
+ default: defprops.tabbar.border
17
18
  },
18
19
  // 元素层级z-index
19
20
  zIndex: {
20
21
  type: [String, Number],
21
- default: () => uni.$u.props.tabbar.zIndex
22
+ default: defprops.tabbar.zIndex
22
23
  },
23
24
  // 选中标签的颜色
24
25
  activeColor: {
25
26
  type: String,
26
- default: () => uni.$u.props.tabbar.activeColor
27
+ default: defprops.tabbar.activeColor
27
28
  },
28
29
  // 未选中标签的颜色
29
30
  inactiveColor: {
30
31
  type: String,
31
- default: () => uni.$u.props.tabbar.inactiveColor
32
+ default: defprops.tabbar.inactiveColor
32
33
  },
33
34
  // 是否固定在底部
34
35
  fixed: {
35
36
  type: Boolean,
36
- default: () => uni.$u.props.tabbar.fixed
37
+ default: defprops.tabbar.fixed
37
38
  },
38
39
  // fixed定位固定在底部时,是否生成一个等高元素防止塌陷
39
40
  placeholder: {
40
41
  type: Boolean,
41
- default: () => uni.$u.props.tabbar.placeholder
42
+ default: defprops.tabbar.placeholder
42
43
  }
43
44
  }
44
45
  }
@@ -1,34 +1,35 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // item标签的名称,作为与u-tabbar的value参数匹配的标识符
4
5
  name: {
5
6
  type: [String, Number, null],
6
- default: () => uni.$u.props.tabbarItem.name
7
+ default: defprops.tabbarItem.name
7
8
  },
8
9
  // uView内置图标或者绝对路径的图片
9
10
  icon: {
10
11
  icon: String,
11
- default: () => uni.$u.props.tabbarItem.icon
12
+ default: defprops.tabbarItem.icon
12
13
  },
13
14
  // 右上角的角标提示信息
14
15
  badge: {
15
16
  type: [String, Number, null],
16
- default: () => uni.$u.props.tabbarItem.badge
17
+ default: defprops.tabbarItem.badge
17
18
  },
18
19
  // 是否显示圆点,将会覆盖badge参数
19
20
  dot: {
20
21
  type: Boolean,
21
- default: () => uni.$u.props.tabbarItem.dot
22
+ default: defprops.tabbarItem.dot
22
23
  },
23
24
  // 描述文本
24
25
  text: {
25
26
  type: String,
26
- default: () => uni.$u.props.tabbarItem.text
27
+ default: defprops.tabbarItem.text
27
28
  },
28
29
  // 控制徽标的位置,对象或者字符串形式,可以设置top和right属性
29
30
  badgeStyle: {
30
31
  type: [Object, String],
31
- default: () => uni.$u.props.tabbarItem.badgeStyle
32
+ default: defprops.tabbarItem.badgeStyle
32
33
  }
33
34
 
34
35
  }
@@ -1,3 +1,4 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
 
@@ -1,64 +1,65 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 滑块的移动过渡时间,单位ms
4
5
  duration: {
5
6
  type: Number,
6
- default: () => uni.$u.props.tabs.duration
7
+ default: defprops.tabs.duration
7
8
  },
8
9
  // tabs标签数组
9
10
  list: {
10
11
  type: Array,
11
- default: () => uni.$u.props.tabs.list
12
+ default: defprops.tabs.list
12
13
  },
13
14
  // 滑块颜色
14
15
  lineColor: {
15
16
  type: String,
16
- default: () => uni.$u.props.tabs.lineColor
17
+ default: defprops.tabs.lineColor
17
18
  },
18
19
  // 菜单选择中时的样式
19
20
  activeStyle: {
20
21
  type: [String, Object],
21
- default: () => uni.$u.props.tabs.activeStyle
22
+ default: defprops.tabs.activeStyle
22
23
  },
23
24
  // 菜单非选中时的样式
24
25
  inactiveStyle: {
25
26
  type: [String, Object],
26
- default: () => uni.$u.props.tabs.inactiveStyle
27
+ default: defprops.tabs.inactiveStyle
27
28
  },
28
29
  // 滑块长度
29
30
  lineWidth: {
30
31
  type: [String, Number],
31
- default: () => uni.$u.props.tabs.lineWidth
32
+ default: defprops.tabs.lineWidth
32
33
  },
33
34
  // 滑块高度
34
35
  lineHeight: {
35
36
  type: [String, Number],
36
- default: () => uni.$u.props.tabs.lineHeight
37
+ default: defprops.tabs.lineHeight
37
38
  },
38
39
  // 滑块背景显示大小,当滑块背景设置为图片时使用
39
40
  lineBgSize: {
40
41
  type: String,
41
- default: () => uni.$u.props.tabs.lineBgSize
42
+ default: defprops.tabs.lineBgSize
42
43
  },
43
44
  // 菜单item的样式
44
45
  itemStyle: {
45
46
  type: [String, Object],
46
- default: () => uni.$u.props.tabs.itemStyle
47
+ default: defprops.tabs.itemStyle
47
48
  },
48
49
  // 菜单是否可滚动
49
50
  scrollable: {
50
51
  type: Boolean,
51
- default: () => uni.$u.props.tabs.scrollable
52
+ default: defprops.tabs.scrollable
52
53
  },
53
54
  // 当前选中标签的索引
54
55
  current: {
55
56
  type: [Number, String],
56
- default: () => uni.$u.props.tabs.current
57
+ default: defprops.tabs.current
57
58
  },
58
59
  // 默认读取的键名
59
60
  keyName: {
60
61
  type: String,
61
- default: () => uni.$u.props.tabs.keyName
62
+ default: defprops.tabs.keyName
62
63
  }
63
64
  }
64
65
  }
@@ -1,3 +1,4 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
 
@@ -1,54 +1,55 @@
1
+ import defprops from '../../libs/config/props';
1
2
  export default {
2
3
  props: {
3
4
  // 标签类型info、primary、success、warning、error
4
5
  type: {
5
6
  type: String,
6
- default: () => uni.$u.props.tag.type
7
+ default: defprops.tag.type
7
8
  },
8
9
  // 不可用
9
10
  disabled: {
10
11
  type: [Boolean, String],
11
- default: () => uni.$u.props.tag.disabled
12
+ default: defprops.tag.disabled
12
13
  },
13
14
  // 标签的大小,large,medium,mini
14
15
  size: {
15
16
  type: String,
16
- default: () => uni.$u.props.tag.size
17
+ default: defprops.tag.size
17
18
  },
18
19
  // tag的形状,circle(两边半圆形), square(方形,带圆角)
19
20
  shape: {
20
21
  type: String,
21
- default: () => uni.$u.props.tag.shape
22
+ default: defprops.tag.shape
22
23
  },
23
24
  // 标签文字
24
25
  text: {
25
26
  type: [String, Number],
26
- default: () => uni.$u.props.tag.text
27
+ default: defprops.tag.text
27
28
  },
28
29
  // 背景颜色,默认为空字符串,即不处理
29
30
  bgColor: {
30
31
  type: String,
31
- default: () => uni.$u.props.tag.bgColor
32
+ default: defprops.tag.bgColor
32
33
  },
33
34
  // 标签字体颜色,默认为空字符串,即不处理
34
35
  color: {
35
36
  type: String,
36
- default: () => uni.$u.props.tag.color
37
+ default: defprops.tag.color
37
38
  },
38
39
  // 标签的边框颜色
39
40
  borderColor: {
40
41
  type: String,
41
- default: () => uni.$u.props.tag.borderColor
42
+ default: defprops.tag.borderColor
42
43
  },
43
44
  // 关闭按钮图标的颜色
44
45
  closeColor: {
45
46
  type: String,
46
- default: () => uni.$u.props.tag.closeColor
47
+ default: defprops.tag.closeColor
47
48
  },
48
49
  // 点击时返回的索引值,用于区分例遍的数组哪个元素被点击了
49
50
  name: {
50
51
  type: [String, Number],
51
- default: () => uni.$u.props.tag.name
52
+ default: defprops.tag.name
52
53
  },
53
54
  // // 模式选择,dark|light|plain
54
55
  // mode: {
@@ -58,27 +59,27 @@ export default {
58
59
  // 镂空时是否填充背景色
59
60
  plainFill: {
60
61
  type: Boolean,
61
- default: () => uni.$u.props.tag.plainFill
62
+ default: defprops.tag.plainFill
62
63
  },
63
64
  // 是否镂空
64
65
  plain: {
65
66
  type: Boolean,
66
- default: () => uni.$u.props.tag.plain
67
+ default: defprops.tag.plain
67
68
  },
68
69
  // 是否可关闭
69
70
  closable: {
70
71
  type: Boolean,
71
- default: () => uni.$u.props.tag.closable
72
+ default: defprops.tag.closable
72
73
  },
73
74
  // 是否显示
74
75
  show: {
75
76
  type: Boolean,
76
- default: () => uni.$u.props.tag.show
77
+ default: defprops.tag.show
77
78
  },
78
79
  // 内置图标,或绝对路径的图片
79
80
  icon: {
80
81
  type: String,
81
- default: () => uni.$u.props.tag.icon
82
+ default: defprops.tag.icon
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