uview-plus 3.2.23 → 3.3.0

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 (212) hide show
  1. package/changelog.md +27 -0
  2. package/components/u--form/u--form.vue +3 -3
  3. package/components/u--image/u--image.vue +3 -3
  4. package/components/u--input/u--input.vue +3 -3
  5. package/components/u--text/u--text.vue +4 -4
  6. package/components/u--textarea/u--textarea.vue +3 -3
  7. package/components/u-action-sheet/props.js +5 -3
  8. package/components/u-action-sheet/u-action-sheet.vue +6 -6
  9. package/components/u-album/props.js +4 -3
  10. package/components/u-album/u-album.vue +3 -3
  11. package/components/u-alert/props.js +4 -3
  12. package/components/u-alert/u-alert.vue +3 -3
  13. package/components/u-avatar/props.js +4 -3
  14. package/components/u-avatar/u-avatar.vue +3 -3
  15. package/components/u-avatar-group/props.js +4 -3
  16. package/components/u-avatar-group/u-avatar-group.vue +3 -3
  17. package/components/u-back-top/props.js +4 -3
  18. package/components/u-back-top/u-back-top.vue +3 -3
  19. package/components/u-badge/props.js +4 -3
  20. package/components/u-badge/u-badge.vue +3 -3
  21. package/components/u-button/props.js +4 -3
  22. package/components/u-button/u-button.vue +5 -5
  23. package/components/u-calendar/header.vue +2 -2
  24. package/components/u-calendar/month.vue +2 -2
  25. package/components/u-calendar/props.js +5 -3
  26. package/components/u-calendar/u-calendar.vue +3 -3
  27. package/components/u-car-keyboard/props.js +5 -3
  28. package/components/u-car-keyboard/u-car-keyboard.vue +3 -3
  29. package/components/u-cell/props.js +4 -3
  30. package/components/u-cell/u-cell.vue +5 -3
  31. package/components/u-cell-group/props.js +4 -3
  32. package/components/u-cell-group/u-cell-group.vue +3 -3
  33. package/components/u-checkbox/props.js +4 -3
  34. package/components/u-checkbox/u-checkbox.vue +13 -11
  35. package/components/u-checkbox-group/props.js +5 -4
  36. package/components/u-checkbox-group/u-checkbox-group.vue +3 -3
  37. package/components/u-circle-progress/props.js +4 -3
  38. package/components/u-circle-progress/u-circle-progress.vue +3 -3
  39. package/components/u-code/props.js +4 -3
  40. package/components/u-code/u-code.vue +3 -3
  41. package/components/u-code-input/props.js +4 -3
  42. package/components/u-code-input/u-code-input.vue +3 -3
  43. package/components/u-col/props.js +4 -3
  44. package/components/u-col/u-col.vue +3 -3
  45. package/components/u-collapse/props.js +4 -3
  46. package/components/u-collapse/u-collapse.vue +3 -3
  47. package/components/u-collapse-item/props.js +4 -3
  48. package/components/u-collapse-item/u-collapse-item.vue +3 -3
  49. package/components/u-column-notice/props.js +4 -3
  50. package/components/u-column-notice/u-column-notice.vue +3 -3
  51. package/components/u-count-down/props.js +4 -3
  52. package/components/u-count-down/u-count-down.vue +3 -3
  53. package/components/u-count-to/props.js +4 -3
  54. package/components/u-count-to/u-count-to.vue +3 -3
  55. package/components/u-datetime-picker/props.js +4 -3
  56. package/components/u-datetime-picker/u-datetime-picker.vue +9 -10
  57. package/components/u-divider/props.js +4 -3
  58. package/components/u-divider/u-divider.vue +3 -3
  59. package/components/u-dropdown/props.js +4 -3
  60. package/components/u-dropdown/u-dropdown.vue +3 -3
  61. package/components/u-dropdown-item/props.js +4 -3
  62. package/components/u-dropdown-item/u-dropdown-item.vue +3 -3
  63. package/components/u-empty/props.js +4 -3
  64. package/components/u-empty/u-empty.vue +3 -3
  65. package/components/u-form/props.js +4 -3
  66. package/components/u-form/u-form.vue +3 -3
  67. package/components/u-form-item/props.js +4 -3
  68. package/components/u-form-item/u-form-item.vue +4 -4
  69. package/components/u-gap/props.js +4 -3
  70. package/components/u-gap/u-gap.vue +3 -3
  71. package/components/u-grid/props.js +4 -3
  72. package/components/u-grid/u-grid.vue +3 -3
  73. package/components/u-grid-item/props.js +4 -3
  74. package/components/u-grid-item/u-grid-item.vue +3 -3
  75. package/components/u-icon/props.js +4 -3
  76. package/components/u-icon/u-icon.vue +3 -3
  77. package/components/u-image/props.js +4 -3
  78. package/components/u-image/u-image.vue +3 -3
  79. package/components/u-index-anchor/props.js +4 -3
  80. package/components/u-index-anchor/u-index-anchor.vue +3 -3
  81. package/components/u-index-item/props.js +5 -3
  82. package/components/u-index-item/u-index-item.vue +3 -3
  83. package/components/u-index-list/props.js +4 -3
  84. package/components/u-index-list/u-index-list.vue +3 -3
  85. package/components/u-input/props.js +5 -3
  86. package/components/u-input/u-input.vue +35 -50
  87. package/components/u-keyboard/props.js +4 -3
  88. package/components/u-keyboard/u-keyboard.vue +3 -3
  89. package/components/u-line/props.js +4 -3
  90. package/components/u-line/u-line.vue +3 -3
  91. package/components/u-line-progress/props.js +4 -3
  92. package/components/u-line-progress/u-line-progress.vue +3 -3
  93. package/components/u-link/props.js +4 -3
  94. package/components/u-link/u-link.vue +3 -3
  95. package/components/u-list/props.js +5 -4
  96. package/components/u-list/u-list.vue +3 -3
  97. package/components/u-list-item/props.js +4 -3
  98. package/components/u-list-item/u-list-item.vue +3 -3
  99. package/components/u-loading-icon/props.js +4 -3
  100. package/components/u-loading-icon/u-loading-icon.vue +3 -3
  101. package/components/u-loading-page/props.js +5 -3
  102. package/components/u-loading-page/u-loading-page.vue +3 -3
  103. package/components/u-loadmore/props.js +4 -3
  104. package/components/u-loadmore/u-loadmore.vue +3 -3
  105. package/components/u-modal/props.js +4 -3
  106. package/components/u-modal/u-modal.vue +4 -3
  107. package/components/u-navbar/props.js +5 -3
  108. package/components/u-navbar/u-navbar.vue +4 -4
  109. package/components/u-no-network/props.js +4 -3
  110. package/components/u-no-network/u-no-network.vue +3 -3
  111. package/components/u-notice-bar/props.js +4 -3
  112. package/components/u-notice-bar/u-notice-bar.vue +3 -3
  113. package/components/u-notify/props.js +4 -3
  114. package/components/u-notify/u-notify.vue +4 -4
  115. package/components/u-number-box/props.js +4 -3
  116. package/components/u-number-box/u-number-box.vue +3 -3
  117. package/components/u-number-keyboard/props.js +4 -3
  118. package/components/u-number-keyboard/u-number-keyboard.vue +3 -3
  119. package/components/u-overlay/props.js +4 -3
  120. package/components/u-overlay/u-overlay.vue +3 -3
  121. package/components/u-parse/props.js +3 -2
  122. package/components/u-picker/props.js +4 -3
  123. package/components/u-picker/u-picker.vue +3 -3
  124. package/components/u-picker-column/props.js +3 -2
  125. package/components/u-picker-column/u-picker-column.vue +3 -3
  126. package/components/u-popup/props.js +4 -3
  127. package/components/u-popup/u-popup.vue +4 -4
  128. package/components/u-radio/props.js +4 -3
  129. package/components/u-radio/u-radio.vue +3 -3
  130. package/components/u-radio-group/props.js +4 -3
  131. package/components/u-radio-group/u-radio-group.vue +3 -3
  132. package/components/u-rate/props.js +4 -3
  133. package/components/u-rate/u-rate.vue +3 -3
  134. package/components/u-read-more/props.js +4 -3
  135. package/components/u-read-more/u-read-more.vue +4 -3
  136. package/components/u-row/props.js +4 -3
  137. package/components/u-row/u-row.vue +3 -3
  138. package/components/u-row-notice/props.js +4 -3
  139. package/components/u-row-notice/u-row-notice.vue +4 -3
  140. package/components/u-safe-bottom/props.js +5 -4
  141. package/components/u-safe-bottom/u-safe-bottom.vue +3 -3
  142. package/components/u-scroll-list/props.js +4 -3
  143. package/components/u-scroll-list/u-scroll-list.vue +3 -3
  144. package/components/u-search/props.js +4 -3
  145. package/components/u-search/u-search.vue +3 -3
  146. package/components/u-skeleton/props.js +4 -3
  147. package/components/u-skeleton/u-skeleton.vue +3 -3
  148. package/components/u-slider/props.js +4 -3
  149. package/components/u-slider/u-slider.vue +3 -3
  150. package/components/u-status-bar/props.js +4 -3
  151. package/components/u-status-bar/u-status-bar.vue +3 -3
  152. package/components/u-steps/props.js +4 -3
  153. package/components/u-steps/u-steps.vue +3 -3
  154. package/components/u-steps-item/props.js +4 -3
  155. package/components/u-steps-item/u-steps-item.vue +3 -3
  156. package/components/u-sticky/props.js +4 -3
  157. package/components/u-sticky/u-sticky.vue +3 -3
  158. package/components/u-subsection/props.js +4 -3
  159. package/components/u-subsection/u-subsection.vue +3 -3
  160. package/components/u-swipe-action/props.js +4 -3
  161. package/components/u-swipe-action/u-swipe-action.vue +3 -3
  162. package/components/u-swipe-action-item/props.js +4 -3
  163. package/components/u-swipe-action-item/u-swipe-action-item.vue +5 -5
  164. package/components/u-swiper/props.js +4 -3
  165. package/components/u-swiper/u-swiper.vue +3 -3
  166. package/components/u-swiper-indicator/props.js +4 -3
  167. package/components/u-swiper-indicator/u-swiper-indicator.vue +3 -3
  168. package/components/u-switch/props.js +4 -3
  169. package/components/u-switch/u-switch.vue +3 -3
  170. package/components/u-tabbar/props.js +5 -3
  171. package/components/u-tabbar/u-tabbar.vue +3 -3
  172. package/components/u-tabbar-item/props.js +4 -3
  173. package/components/u-tabbar-item/u-tabbar-item.vue +7 -4
  174. package/components/u-table/props.js +3 -2
  175. package/components/u-table/u-table.vue +3 -3
  176. package/components/u-tabs/props.js +4 -3
  177. package/components/u-tabs/u-tabs.vue +6 -5
  178. package/components/u-tabs-item/props.js +3 -2
  179. package/components/u-tabs-item/u-tabs-item.vue +3 -3
  180. package/components/u-tag/props.js +4 -3
  181. package/components/u-tag/u-tag.vue +8 -4
  182. package/components/u-td/props.js +3 -2
  183. package/components/u-td/u-td.vue +3 -3
  184. package/components/u-text/props.js +4 -3
  185. package/components/u-text/u-text.vue +8 -8
  186. package/components/u-textarea/props.js +5 -3
  187. package/components/u-textarea/u-textarea.vue +3 -3
  188. package/components/u-toast/u-toast.vue +2 -2
  189. package/components/u-toolbar/props.js +4 -3
  190. package/components/u-toolbar/u-toolbar.vue +3 -3
  191. package/components/u-tooltip/props.js +4 -3
  192. package/components/u-tooltip/u-tooltip.vue +3 -3
  193. package/components/u-tr/props.js +3 -2
  194. package/components/u-tr/u-tr.vue +3 -3
  195. package/components/u-transition/props.js +4 -3
  196. package/components/u-transition/u-transition.vue +3 -3
  197. package/components/u-upload/mixin.js +3 -2
  198. package/components/u-upload/props.js +8 -3
  199. package/components/u-upload/u-upload.vue +6 -5
  200. package/components/u-upload/utils.js +55 -46
  201. package/index.js +2 -2
  202. package/libs/config/props/upload.js +1 -0
  203. package/libs/mixin/button.js +4 -2
  204. package/libs/mixin/mixin.js +9 -5
  205. package/libs/mixin/mpMixin.js +4 -2
  206. package/libs/mixin/mpShare.js +5 -2
  207. package/libs/mixin/openType.js +4 -2
  208. package/libs/mixin/style.js +5 -3
  209. package/libs/mixin/touch.js +4 -2
  210. package/libs/vue.js +3 -0
  211. package/package.json +1 -1
  212. package/types/comps/popup.d.ts +1 -1
@@ -8,9 +8,9 @@
8
8
  </template>
9
9
 
10
10
  <script>
11
- import props from './props';
12
- import mpMixin from '../../libs/mixin/mpMixin';
13
- import mixin from '../../libs/mixin/mixin';
11
+ import { props } from './props';
12
+ import { mpMixin } from '../../libs/mixin/mpMixin';
13
+ import { mixin } from '../../libs/mixin/mixin';
14
14
  import test from '../../libs/function/test';
15
15
  /**
16
16
  * Steps 步骤条
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 标题
5
6
  title: {
@@ -22,4 +23,4 @@ export default {
22
23
  default: () => defProps.stepsItem.error
23
24
  }
24
25
  }
25
- }
26
+ })
@@ -47,9 +47,9 @@
47
47
  </template>
48
48
 
49
49
  <script>
50
- import props from './props';
51
- import mpMixin from '../../libs/mixin/mpMixin';
52
- import mixin from '../../libs/mixin/mixin';
50
+ import { props } from './props';
51
+ import { mpMixin } from '../../libs/mixin/mpMixin';
52
+ import { mixin } from '../../libs/mixin/mixin';
53
53
  import { sleep, error } from '../../libs/function/index';
54
54
  import color from '../../libs/config/color';
55
55
  // #ifdef APP-NVUE
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px
5
6
  offsetTop: {
@@ -38,4 +39,4 @@ export default {
38
39
  default: () => defProps.sticky.index
39
40
  }
40
41
  }
41
- }
42
+ })
@@ -14,9 +14,9 @@
14
14
  </template>
15
15
 
16
16
  <script>
17
- import props from './props';
18
- import mpMixin from '../../libs/mixin/mpMixin';
19
- import mixin from '../../libs/mixin/mixin';
17
+ import { props } from './props';
18
+ import { mpMixin } from '../../libs/mixin/mpMixin';
19
+ import { mixin } from '../../libs/mixin/mixin';
20
20
  import { addUnit, addStyle, deepMerge, getPx, guid, sys, os } from '../../libs/function/index';
21
21
  import zIndex from '../../libs/config/zIndex';
22
22
  /**
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // tab的数据
5
6
  list: {
@@ -47,4 +48,4 @@ export default {
47
48
  default: () => defProps.subsection.keyName
48
49
  }
49
50
  }
50
- }
51
+ })
@@ -52,9 +52,9 @@
52
52
  const dom = uni.requireNativePlugin("dom");
53
53
  const animation = uni.requireNativePlugin("animation");
54
54
  // #endif
55
- import props from "./props.js";
56
- import mpMixin from '../../libs/mixin/mpMixin';
57
- import mixin from '../../libs/mixin/mixin';
55
+ import { props } from "./props.js";
56
+ import { mpMixin } from '../../libs/mixin/mpMixin';
57
+ import { mixin } from '../../libs/mixin/mixin';
58
58
  import { addStyle, addUnit, sleep } from '../../libs/function/index';
59
59
  /**
60
60
  * Subsection 分段器
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 是否自动关闭其他swipe按钮组
5
6
  autoClose: {
@@ -7,4 +8,4 @@ export default {
7
8
  default: () => defProps.swipeAction.autoClose
8
9
  }
9
10
  }
10
- }
11
+ })
@@ -5,9 +5,9 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import props from './props';
9
- import mpMixin from '../../libs/mixin/mpMixin';
10
- import mixin from '../../libs/mixin/mixin';
8
+ import { props } from './props';
9
+ import { mpMixin } from '../../libs/mixin/mpMixin';
10
+ import { mixin } from '../../libs/mixin/mixin';
11
11
  /**
12
12
  * SwipeAction 滑动单元格
13
13
  * @description 该组件一般用于左滑唤出操作菜单的场景,用的最多的是左滑删除操作
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 控制打开或者关闭
5
6
  show: {
@@ -39,4 +40,4 @@ export default {
39
40
  default: () => defProps.swipeActionItem.duration
40
41
  }
41
42
  }
42
- }
43
+ })
@@ -59,10 +59,10 @@
59
59
  <script src="./index.wxs" module="wxs" lang="wxs"></script>
60
60
  <!-- #endif -->
61
61
  <script>
62
- import touch from '../../libs/mixin/touch.js'
63
- import props from './props';
64
- import mpMixin from '../../libs/mixin/mpMixin';
65
- import mixin from '../../libs/mixin/mixin';
62
+ import { touchMixin } from '../../libs/mixin/touch'
63
+ import { props } from './props';
64
+ import { mpMixin } from '../../libs/mixin/mpMixin';
65
+ import { mixin } from '../../libs/mixin/mixin';
66
66
  import { addUnit, getPx, sleep } from '../../libs/function/index';
67
67
  // #ifdef APP-NVUE
68
68
  import nvue from './nvue.js';
@@ -96,7 +96,7 @@
96
96
  mpMixin,
97
97
  mixin,
98
98
  // #ifndef APP-NVUE
99
- touch,
99
+ touchMixin,
100
100
  // #endif
101
101
  // #ifdef APP-NVUE
102
102
  nvue,
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
5
6
  list: {
@@ -123,4 +124,4 @@ export default {
123
124
  default: () => defProps.swiper.showTitle
124
125
  }
125
126
  }
126
- }
127
+ })
@@ -90,9 +90,9 @@
90
90
  </view>
91
91
  </template>
92
92
  <script>
93
- import props from './props.js';
94
- import mpMixin from '../../libs/mixin/mpMixin';
95
- import mixin from '../../libs/mixin/mixin';
93
+ import { props } from './props.js';
94
+ import { mpMixin } from '../../libs/mixin/mpMixin';
95
+ import { mixin } from '../../libs/mixin/mixin';
96
96
  import { addUnit, addStyle, error } from '../../libs/function/index';
97
97
  import test from '../../libs/function/test';
98
98
  /**
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 轮播的长度
5
6
  length: {
@@ -27,4 +28,4 @@ export default {
27
28
  default: () => defProps.swiperIndicator.indicatorMode
28
29
  }
29
30
  }
30
- }
31
+ })
@@ -31,9 +31,9 @@
31
31
  </template>
32
32
 
33
33
  <script>
34
- import props from './props';
35
- import mpMixin from '../../libs/mixin/mpMixin';
36
- import mixin from '../../libs/mixin/mixin';
34
+ import { props } from './props';
35
+ import { mpMixin } from '../../libs/mixin/mpMixin';
36
+ import { mixin } from '../../libs/mixin/mixin';
37
37
  import { addUnit } from '../../libs/function/index';
38
38
  /**
39
39
  * SwiperIndicator 轮播图指示器
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 是否为加载中状态
5
6
  loading: {
@@ -60,4 +61,4 @@ export default {
60
61
  default: () => defProps.switch.space
61
62
  }
62
63
  }
63
- }
64
+ })
@@ -38,9 +38,9 @@
38
38
  </template>
39
39
 
40
40
  <script>
41
- import props from './props';
42
- import mpMixin from '../../libs/mixin/mpMixin';
43
- import mixin from '../../libs/mixin/mixin';
41
+ import { props } from './props';
42
+ import { mpMixin } from '../../libs/mixin/mpMixin';
43
+ import { mixin } from '../../libs/mixin/mixin';
44
44
  import { addStyle, addUnit, error } from '../../libs/function/index';
45
45
  /**
46
46
  * switch 开关选择器
@@ -1,5 +1,7 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+
4
+ export const props = defineMixin({
3
5
  props: {
4
6
  // 当前匹配项的name
5
7
  value: {
@@ -42,4 +44,4 @@ export default {
42
44
  default: () => defProps.tabbar.placeholder
43
45
  }
44
46
  }
45
- }
47
+ })
@@ -23,9 +23,9 @@
23
23
  </template>
24
24
 
25
25
  <script>
26
- import props from './props';
27
- import mpMixin from '../../libs/mixin/mpMixin';
28
- import mixin from '../../libs/mixin/mixin';
26
+ import { props } from './props';
27
+ import { mpMixin } from '../../libs/mixin/mpMixin';
28
+ import { mixin } from '../../libs/mixin/mixin';
29
29
  import { addStyle, deepMerge, sleep } from '../../libs/function/index';
30
30
  // #ifdef APP-NVUE
31
31
  const dom = uni.requireNativePlugin('dom')
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // item标签的名称,作为与u-tabbar的value参数匹配的标识符
5
6
  name: {
@@ -33,4 +34,4 @@ export default {
33
34
  }
34
35
 
35
36
  }
36
- }
37
+ })
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <view
3
- class="u-tabbar-item cursor-pointer"
3
+ class="u-tabbar-item"
4
4
  :style="[addStyle(customStyle)]"
5
5
  @tap="clickHandler"
6
6
  >
@@ -43,9 +43,9 @@
43
43
  </template>
44
44
 
45
45
  <script>
46
- import props from './props';
47
- import mpMixin from '../../libs/mixin/mpMixin';
48
- import mixin from '../../libs/mixin/mixin';
46
+ import { props } from './props';
47
+ import { mpMixin } from '../../libs/mixin/mpMixin';
48
+ import { mixin } from '../../libs/mixin/mixin';
49
49
  import { addStyle, error } from '../../libs/function/index';
50
50
  /**
51
51
  * TabbarItem 底部导航栏子组件
@@ -128,6 +128,9 @@
128
128
  flex: 1;
129
129
  width: 100%;
130
130
  height: 100%;
131
+ /* #ifdef H5 */
132
+ cursor: pointer;
133
+ /* #endif */
131
134
 
132
135
  &__icon {
133
136
  @include flex;
@@ -1,5 +1,6 @@
1
- // import defProps from '../../libs/config/props.js';
2
- export default {
1
+ // import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
 
5
6
  }
@@ -5,9 +5,9 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import props from './props';
9
- import mpMixin from '../../libs/mixin/mpMixin';
10
- import mixin from '../../libs/mixin/mixin';
8
+ import { props } from './props';
9
+ import { mpMixin } from '../../libs/mixin/mpMixin';
10
+ import { mixin } from '../../libs/mixin/mixin';
11
11
  /**
12
12
  * Table 表格
13
13
  * @description 表格组件一般用于展示大量结构化数据的场景 本组件标签类似HTML的table表格,由table、tr、th、td四个组件组成
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 滑块的移动过渡时间,单位ms
5
6
  duration: {
@@ -62,4 +63,4 @@ export default {
62
63
  default: () => defProps.tabs.keyName
63
64
  }
64
65
  }
65
- }
66
+ })
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <view class="u-tabs">
2
+ <view class="u-tabs" :class="[customClass]">
3
3
  <view class="u-tabs__wrapper">
4
4
  <slot name="left" />
5
5
  <view class="u-tabs__wrapper__scroll-view-wrapper">
@@ -85,10 +85,10 @@
85
85
  const animation = uni.requireNativePlugin('animation')
86
86
  const dom = uni.requireNativePlugin('dom')
87
87
  // #endif
88
- import props from './props';
89
- import mpMixin from '../../libs/mixin/mpMixin';
90
- import mixin from '../../libs/mixin/mixin';
91
- import defProps from '../../libs/config/props.js';
88
+ import { props } from './props';
89
+ import { mpMixin } from '../../libs/mixin/mpMixin';
90
+ import { mixin } from '../../libs/mixin/mixin';
91
+ import defProps from '../../libs/config/props.js'
92
92
  import { addUnit, addStyle, deepMerge, getPx, sleep, sys } from '../../libs/function/index';
93
93
  /**
94
94
  * Tabs 标签
@@ -327,6 +327,7 @@
327
327
  @include flex;
328
328
  align-items: center;
329
329
  justify-content: center;
330
+ cursor: pointer;
330
331
 
331
332
  &--disabled {
332
333
  /* #ifndef APP-NVUE */
@@ -1,5 +1,6 @@
1
- // import defProps from '../../libs/config/props.js';
2
- export default {
1
+ // import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
 
5
6
  }
@@ -5,9 +5,9 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import props from './props';
9
- import mpMixin from '../../libs/mixin/mpMixin';
10
- import mixin from '../../libs/mixin/mixin';
8
+ import { props } from './props';
9
+ import { mpMixin } from '../../libs/mixin/mpMixin';
10
+ import { mixin } from '../../libs/mixin/mixin';
11
11
  /**
12
12
  * TabsItem tabs标签组件的自组件
13
13
  * @description tabs标签组件,在标签多的时候,可以配置为左右滑动,标签少的时候,可以禁止滑动。 该组件的一个特点是配置为滚动模式时,激活的tab会自动移动到组件的中间位置。
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 标签类型info、primary、success、warning、error
5
6
  type: {
@@ -86,4 +87,4 @@ export default {
86
87
  default: () => defProps.tag.iconColor
87
88
  }
88
89
  }
89
- }
90
+ })
@@ -36,7 +36,11 @@
36
36
  class="u-tag__text"
37
37
  :style="[textColor]"
38
38
  :class="[`u-tag__text--${type}`, plain && `u-tag__text--${type}--plain`, `u-tag__text--${size}`]"
39
- >{{ text }}</text>
39
+ >
40
+ <slot>
41
+ {{ text }}
42
+ </slot>
43
+ </text>
40
44
  </view>
41
45
  <view
42
46
  class="u-tag__close"
@@ -56,9 +60,9 @@
56
60
  </template>
57
61
 
58
62
  <script>
59
- import props from './props';
60
- import mpMixin from '../../libs/mixin/mpMixin';
61
- import mixin from '../../libs/mixin/mixin';
63
+ import { props } from './props';
64
+ import { mpMixin } from '../../libs/mixin/mpMixin';
65
+ import { mixin } from '../../libs/mixin/mixin';
62
66
  import test from '../../libs/function/test';
63
67
  /**
64
68
  * Tag 标签
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
 
5
6
  }
@@ -5,9 +5,9 @@
5
5
  </template>
6
6
 
7
7
  <script>
8
- import props from './props';
9
- import mpMixin from '../../libs/mixin/mpMixin';
10
- import mixin from '../../libs/mixin/mixin';
8
+ import { props } from './props';
9
+ import { mpMixin } from '../../libs/mixin/mpMixin';
10
+ import { mixin } from '../../libs/mixin/mixin';
11
11
  /**
12
12
  * Td 表格中的单元格
13
13
  * @description
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 主题颜色
5
6
  type: {
@@ -108,4 +109,4 @@ export default {
108
109
  default: () => defProps.text.wordWrap
109
110
  }
110
111
  }
111
- }
112
+ })
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view
3
3
  class="u-text"
4
- :class="[]"
4
+ :class="[customClass]"
5
5
  v-if="show"
6
6
  :style="{
7
7
  margin: margin,
@@ -70,12 +70,12 @@
70
70
  </template>
71
71
 
72
72
  <script>
73
- import props from './props'
73
+ import { props } from './props'
74
74
  import value from './value.js'
75
- import mpMixin from '../../libs/mixin/mpMixin';
76
- import mixin from '../../libs/mixin/mixin';
77
- import button from '../../libs/mixin/button';
78
- import openType from '../../libs/mixin/openType';
75
+ import { mpMixin } from '../../libs/mixin/mpMixin';
76
+ import { mixin } from '../../libs/mixin/mixin';
77
+ import { buttonMixin } from '../../libs/mixin/button';
78
+ import { openType } from '../../libs/mixin/openType';
79
79
  import { addStyle, addUnit, deepMerge } from '../../libs/function/index';
80
80
  /**
81
81
  * Text 文本
@@ -106,9 +106,9 @@ import { addStyle, addUnit, deepMerge } from '../../libs/function/index';
106
106
  * @example <up-text text="我用十年青春,赴你最后之约"></up-text>
107
107
  */
108
108
  export default {
109
- name: 'u--text',
109
+ name: 'up-text',
110
110
  // #ifdef MP
111
- mixins: [mpMixin, mixin, value, button, openType, props],
111
+ mixins: [mpMixin, mixin, value, buttonMixin, openType, props],
112
112
  // #endif
113
113
  // #ifndef MP
114
114
  mixins: [mpMixin, mixin, value, props],
@@ -1,5 +1,7 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+
4
+ export const props = defineMixin({
3
5
  props: {
4
6
  // 输入框的内容
5
7
  value: {
@@ -122,4 +124,4 @@ export default {
122
124
  default: true
123
125
  }
124
126
  }
125
- }
127
+ })
@@ -43,9 +43,9 @@
43
43
  </template>
44
44
 
45
45
  <script>
46
- import props from "./props.js";
47
- import mpMixin from '../../libs/mixin/mpMixin';
48
- import mixin from '../../libs/mixin/mixin';
46
+ import { props } from "./props.js";
47
+ import { mpMixin } from '../../libs/mixin/mpMixin';
48
+ import { mixin } from '../../libs/mixin/mixin';
49
49
  import { addStyle, addUnit, deepMerge, formValidate, os } from '../../libs/function/index';
50
50
  /**
51
51
  * Textarea 文本域
@@ -39,8 +39,8 @@
39
39
  </template>
40
40
 
41
41
  <script>
42
- import mpMixin from '../../libs/mixin/mpMixin';
43
- import mixin from '../../libs/mixin/mixin';
42
+ import { mpMixin } from '../../libs/mixin/mpMixin';
43
+ import { mixin } from '../../libs/mixin/mixin';
44
44
  import { os, sys, deepMerge, type2icon } from '../../libs/function/index';
45
45
  import color from '../../libs/config/color';
46
46
  import { hexToRgb } from '../../libs/function/colorGradient';
@@ -1,5 +1,6 @@
1
- import defProps from '../../libs/config/props.js';
2
- export default {
1
+ import { defineMixin } from '../../libs/vue'
2
+ import defProps from '../../libs/config/props.js'
3
+ export const props = defineMixin({
3
4
  props: {
4
5
  // 是否展示工具条
5
6
  show: {
@@ -32,4 +33,4 @@ export default {
32
33
  default: () => defProps.toolbar.title
33
34
  }
34
35
  }
35
- }
36
+ })
@@ -36,9 +36,9 @@
36
36
  </template>
37
37
 
38
38
  <script>
39
- import props from './props';
40
- import mpMixin from '../../libs/mixin/mpMixin';
41
- import mixin from '../../libs/mixin/mixin';
39
+ import { props } from './props';
40
+ import { mpMixin } from '../../libs/mixin/mpMixin';
41
+ import { mixin } from '../../libs/mixin/mixin';
42
42
  /**
43
43
  * Toolbar 工具条
44
44
  * @description