@kengic/uni 0.5.1 → 0.5.2-beta.1

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 (146) hide show
  1. package/dist/uni/uni-ui/uni-badge/uni-badge.vue +222 -219
  2. package/dist/uni/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +29 -29
  3. package/dist/uni/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +88 -88
  4. package/dist/uni/uni-ui/uni-calendar/calendar.js +936 -532
  5. package/dist/uni/uni-ui/uni-calendar/i18n/en.json +10 -10
  6. package/dist/uni/uni-ui/uni-calendar/i18n/index.js +8 -7
  7. package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hans.json +10 -10
  8. package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hant.json +10 -10
  9. package/dist/uni/uni-ui/uni-calendar/uni-calendar-item.vue +190 -168
  10. package/dist/uni/uni-ui/uni-calendar/uni-calendar.vue +459 -459
  11. package/dist/uni/uni-ui/uni-calendar/util.js +324 -340
  12. package/dist/uni/uni-ui/uni-card/uni-card.vue +8 -1
  13. package/dist/uni/uni-ui/uni-col/uni-col.vue +294 -287
  14. package/dist/uni/uni-ui/uni-collapse/uni-collapse.vue +139 -140
  15. package/dist/uni/uni-ui/uni-collapse-item/uni-collapse-item.vue +381 -378
  16. package/dist/uni/uni-ui/uni-combox/uni-combox.vue +280 -272
  17. package/dist/uni/uni-ui/uni-countdown/i18n/en.json +4 -4
  18. package/dist/uni/uni-ui/uni-countdown/i18n/index.js +8 -7
  19. package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hans.json +4 -4
  20. package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hant.json +4 -4
  21. package/dist/uni/uni-ui/uni-countdown/uni-countdown.vue +249 -257
  22. package/dist/uni/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +832 -813
  23. package/dist/uni/uni-ui/uni-data-picker/keypress.js +42 -42
  24. package/dist/uni/uni-ui/uni-data-picker/uni-data-picker.vue +535 -516
  25. package/dist/uni/uni-ui/uni-data-pickerview/uni-data-picker.js +623 -618
  26. package/dist/uni/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +293 -288
  27. package/dist/uni/uni-ui/uni-data-select/uni-data-select.vue +495 -509
  28. package/dist/uni/uni-ui/uni-dateformat/date-format.js +181 -184
  29. package/dist/uni/uni-ui/uni-dateformat/uni-dateformat.vue +81 -82
  30. package/dist/uni/uni-ui/uni-datetime-picker/calendar-item.vue +176 -170
  31. package/dist/uni/uni-ui/uni-datetime-picker/calendar.vue +926 -920
  32. package/dist/uni/uni-ui/uni-datetime-picker/i18n/en.json +20 -20
  33. package/dist/uni/uni-ui/uni-datetime-picker/i18n/index.js +8 -7
  34. package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +21 -21
  35. package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +21 -21
  36. package/dist/uni/uni-ui/uni-datetime-picker/time-picker.vue +921 -926
  37. package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1059 -1012
  38. package/dist/uni/uni-ui/uni-datetime-picker/util.js +366 -377
  39. package/dist/uni/uni-ui/uni-drawer/keypress.js +42 -42
  40. package/dist/uni/uni-ui/uni-drawer/uni-drawer.vue +176 -167
  41. package/dist/uni/uni-ui/uni-easyinput/common.js +40 -42
  42. package/dist/uni/uni-ui/uni-easyinput/uni-easyinput.vue +628 -547
  43. package/dist/uni/uni-ui/uni-fab/uni-fab.vue +507 -483
  44. package/dist/uni/uni-ui/uni-fav/i18n/en.json +2 -2
  45. package/dist/uni/uni-ui/uni-fav/i18n/index.js +8 -7
  46. package/dist/uni/uni-ui/uni-fav/i18n/zh-Hans.json +2 -2
  47. package/dist/uni/uni-ui/uni-fav/i18n/zh-Hant.json +2 -2
  48. package/dist/uni/uni-ui/uni-fav/uni-fav.vue +155 -147
  49. package/dist/uni/uni-ui/uni-file-picker/choose-and-upload-file.js +172 -198
  50. package/dist/uni/uni-ui/uni-file-picker/uni-file-picker.vue +636 -634
  51. package/dist/uni/uni-ui/uni-file-picker/upload-file.vue +294 -293
  52. package/dist/uni/uni-ui/uni-file-picker/upload-image.vue +267 -270
  53. package/dist/uni/uni-ui/uni-file-picker/utils.js +81 -82
  54. package/dist/uni/uni-ui/uni-forms/uni-forms.vue +360 -372
  55. package/dist/uni/uni-ui/uni-forms/utils.js +170 -174
  56. package/dist/uni/uni-ui/uni-forms/validate.js +447 -456
  57. package/dist/uni/uni-ui/uni-forms-item/uni-forms-item.vue +497 -497
  58. package/dist/uni/uni-ui/uni-goods-nav/i18n/en.json +4 -4
  59. package/dist/uni/uni-ui/uni-goods-nav/i18n/index.js +8 -7
  60. package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hans.json +4 -4
  61. package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hant.json +4 -4
  62. package/dist/uni/uni-ui/uni-goods-nav/uni-goods-nav.vue +238 -222
  63. package/dist/uni/uni-ui/uni-grid/uni-grid.vue +134 -134
  64. package/dist/uni/uni-ui/uni-grid-item/uni-grid-item.vue +121 -119
  65. package/dist/uni/uni-ui/uni-group/uni-group.vue +121 -121
  66. package/dist/uni/uni-ui/uni-icons/icons.js +1170 -1168
  67. package/dist/uni/uni-ui/uni-icons/uni-icons.vue +91 -86
  68. package/dist/uni/uni-ui/uni-icons/uniicons.css +166 -166
  69. package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +129 -129
  70. package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list.vue +352 -347
  71. package/dist/uni/uni-ui/uni-link/uni-link.vue +134 -119
  72. package/dist/uni/uni-ui/uni-list/uni-list.vue +119 -110
  73. package/dist/uni/uni-ui/uni-list/uni-refresh.vue +14 -14
  74. package/dist/uni/uni-ui/uni-list/uni-refresh.wxs +14 -14
  75. package/dist/uni/uni-ui/uni-list-ad/uni-list-ad.vue +101 -95
  76. package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.scss +18 -18
  77. package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.vue +602 -586
  78. package/dist/uni/uni-ui/uni-list-item/uni-list-item.vue +507 -503
  79. package/dist/uni/uni-ui/uni-load-more/i18n/en.json +3 -3
  80. package/dist/uni/uni-ui/uni-load-more/i18n/index.js +8 -7
  81. package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hans.json +3 -3
  82. package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hant.json +3 -3
  83. package/dist/uni/uni-ui/uni-load-more/uni-load-more.vue +402 -392
  84. package/dist/uni/uni-ui/uni-nav-bar/uni-nav-bar.vue +328 -330
  85. package/dist/uni/uni-ui/uni-nav-bar/uni-status-bar.vue +17 -17
  86. package/dist/uni/uni-ui/uni-notice-bar/uni-notice-bar.vue +422 -401
  87. package/dist/uni/uni-ui/uni-number-box/uni-number-box.vue +211 -205
  88. package/dist/uni/uni-ui/uni-pagination/i18n/en.json +3 -3
  89. package/dist/uni/uni-ui/uni-pagination/i18n/es.json +3 -3
  90. package/dist/uni/uni-ui/uni-pagination/i18n/fr.json +3 -3
  91. package/dist/uni/uni-ui/uni-pagination/i18n/index.js +12 -11
  92. package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hans.json +3 -3
  93. package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hant.json +3 -3
  94. package/dist/uni/uni-ui/uni-pagination/uni-pagination.vue +450 -433
  95. package/dist/uni/uni-ui/uni-popup/uni-popup.vue +404 -404
  96. package/dist/uni/uni-ui/uni-popup-dialog/keypress.js +42 -42
  97. package/dist/uni/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +1 -0
  98. package/dist/uni/uni-ui/uni-popup-message/uni-popup-message.vue +126 -125
  99. package/dist/uni/uni-ui/uni-popup-share/uni-popup-share.vue +172 -172
  100. package/dist/uni/uni-ui/uni-rate/uni-rate.vue +343 -347
  101. package/dist/uni/uni-ui/uni-row/uni-row.vue +180 -182
  102. package/dist/uni/uni-ui/uni-scss/changelog.md +11 -4
  103. package/dist/uni/uni-ui/uni-scss/package.json +73 -73
  104. package/dist/uni/uni-ui/uni-scss/readme.md +2 -1
  105. package/dist/uni/uni-ui/uni-scss/styles/setting/_border.scss +2 -2
  106. package/dist/uni/uni-ui/uni-scss/styles/setting/_color.scss +46 -47
  107. package/dist/uni/uni-ui/uni-scss/styles/setting/_radius.scss +49 -49
  108. package/dist/uni/uni-ui/uni-scss/styles/setting/_space.scss +52 -53
  109. package/dist/uni/uni-ui/uni-scss/styles/setting/_styles.scss +142 -147
  110. package/dist/uni/uni-ui/uni-scss/styles/setting/_text.scss +20 -20
  111. package/dist/uni/uni-ui/uni-scss/styles/setting/_variables.scss +111 -95
  112. package/dist/uni/uni-ui/uni-scss/styles/tools/functions.scss +28 -18
  113. package/dist/uni/uni-ui/uni-scss/theme.scss +10 -7
  114. package/dist/uni/uni-ui/uni-scss/variables.scss +42 -24
  115. package/dist/uni/uni-ui/uni-search-bar/i18n/en.json +3 -3
  116. package/dist/uni/uni-ui/uni-search-bar/i18n/index.js +8 -7
  117. package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hans.json +2 -2
  118. package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hant.json +2 -2
  119. package/dist/uni/uni-ui/uni-search-bar/uni-search-bar.vue +290 -281
  120. package/dist/uni/uni-ui/uni-section/uni-section.vue +149 -146
  121. package/dist/uni/uni-ui/uni-segmented-control/uni-segmented-control.vue +141 -131
  122. package/dist/uni/uni-ui/uni-steps/uni-steps.vue +255 -236
  123. package/dist/uni/uni-ui/uni-swipe-action/uni-swipe-action.vue +51 -51
  124. package/dist/uni/uni-ui/uni-swipe-action-item/bindingx.js +276 -282
  125. package/dist/uni/uni-ui/uni-swipe-action-item/isPC.js +10 -10
  126. package/dist/uni/uni-ui/uni-swipe-action-item/mpalipay.js +182 -187
  127. package/dist/uni/uni-ui/uni-swipe-action-item/mpother.js +235 -244
  128. package/dist/uni/uni-ui/uni-swipe-action-item/mpwxs.js +70 -75
  129. package/dist/uni/uni-ui/uni-swipe-action-item/render.js +238 -247
  130. package/dist/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +387 -313
  131. package/dist/uni/uni-ui/uni-swipe-action-item/wx.wxs +206 -215
  132. package/dist/uni/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +241 -197
  133. package/dist/uni/uni-ui/uni-table/uni-table.vue +445 -447
  134. package/dist/uni/uni-ui/uni-tag/uni-tag.vue +234 -244
  135. package/dist/uni/uni-ui/uni-tbody/uni-tbody.vue +20 -23
  136. package/dist/uni/uni-ui/uni-td/uni-td.vue +79 -80
  137. package/dist/uni/uni-ui/uni-th/filter-dropdown.vue +510 -503
  138. package/dist/uni/uni-ui/uni-th/uni-th.vue +289 -273
  139. package/dist/uni/uni-ui/uni-thead/uni-thead.vue +115 -114
  140. package/dist/uni/uni-ui/uni-title/uni-title.vue +151 -154
  141. package/dist/uni/uni-ui/uni-tooltip/uni-tooltip.vue +55 -60
  142. package/dist/uni/uni-ui/uni-tr/table-checkbox.vue +162 -163
  143. package/dist/uni/uni-ui/uni-tr/uni-tr.vue +158 -157
  144. package/dist/uni/uni-ui/uni-transition/createAnimation.js +130 -113
  145. package/dist/uni/uni-ui/uni-transition/uni-transition.vue +274 -272
  146. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
- "uni-goods-nav.options.shop": "shop",
3
- "uni-goods-nav.options.cart": "cart",
4
- "uni-goods-nav.buttonGroup.addToCart": "add to cart",
5
- "uni-goods-nav.buttonGroup.buyNow": "buy now"
2
+ "uni-goods-nav.options.shop": "shop",
3
+ "uni-goods-nav.options.cart": "cart",
4
+ "uni-goods-nav.buttonGroup.addToCart": "add to cart",
5
+ "uni-goods-nav.buttonGroup.buyNow": "buy now"
6
6
  }
@@ -1,8 +1,9 @@
1
- import en from './en.json'
2
- import zhHans from './zh-Hans.json'
3
- import zhHant from './zh-Hant.json'
1
+ import en from './en.json';
2
+ import zhHans from './zh-Hans.json';
3
+ import zhHant from './zh-Hant.json';
4
+
4
5
  export default {
5
- en,
6
- 'zh-Hans': zhHans,
7
- 'zh-Hant': zhHant
8
- }
6
+ en,
7
+ 'zh-Hans': zhHans,
8
+ 'zh-Hant': zhHant,
9
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
- "uni-goods-nav.options.shop": "店铺",
3
- "uni-goods-nav.options.cart": "购物车",
4
- "uni-goods-nav.buttonGroup.addToCart": "加入购物车",
5
- "uni-goods-nav.buttonGroup.buyNow": "立即购买"
2
+ "uni-goods-nav.options.shop": "店铺",
3
+ "uni-goods-nav.options.cart": "购物车",
4
+ "uni-goods-nav.buttonGroup.addToCart": "加入购物车",
5
+ "uni-goods-nav.buttonGroup.buyNow": "立即购买"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "uni-goods-nav.options.shop": "店鋪",
3
- "uni-goods-nav.options.cart": "購物車",
4
- "uni-goods-nav.buttonGroup.addToCart": "加入購物車",
5
- "uni-goods-nav.buttonGroup.buyNow": "立即購買"
2
+ "uni-goods-nav.options.shop": "店鋪",
3
+ "uni-goods-nav.options.cart": "購物車",
4
+ "uni-goods-nav.buttonGroup.addToCart": "加入購物車",
5
+ "uni-goods-nav.buttonGroup.buyNow": "立即購買"
6
6
  }
@@ -1,229 +1,245 @@
1
1
  <template>
2
- <view class="uni-goods-nav">
3
- <!-- 底部占位 -->
4
- <view class="uni-tab__seat" />
5
- <view class="uni-tab__cart-box flex">
6
- <view class="flex uni-tab__cart-sub-left">
7
- <view v-for="(item,index) in options" :key="index" class="flex uni-tab__cart-button-left uni-tab__shop-cart" @click="onClick(index,item)">
8
- <view class="uni-tab__icon">
9
- <uni-icons :type="item.icon" size="20" color="#646566"></uni-icons>
10
- <!-- <image class="image" :src="item.icon" mode="widthFix" /> -->
11
- </view>
12
- <text class="uni-tab__text">{{ item.text }}</text>
13
- <view class="flex uni-tab__dot-box">
14
- <text v-if="item.info" :class="{ 'uni-tab__dots': item.info > 9 }" class="uni-tab__dot " :style="{'backgroundColor':item.infoBackgroundColor?item.infoBackgroundColor:'#ff0000',
15
- color:item.infoColor?item.infoColor:'#fff'
16
- }">{{ item.info }}</text>
17
- </view>
18
- </view>
19
- </view>
20
- <view :class="{'uni-tab__right':fill}" class="flex uni-tab__cart-sub-right ">
21
- <view v-for="(item,index) in buttonGroup" :key="index" :style="{background:item.backgroundColor,color:item.color}"
22
- class="flex uni-tab__cart-button-right" @click="buttonClick(index,item)"><text :style="{color:item.color}" class="uni-tab__cart-button-right-text">{{ item.text }}</text></view>
23
- </view>
24
- </view>
25
- </view>
2
+ <view class="uni-goods-nav">
3
+ <!-- 底部占位 -->
4
+ <view class="uni-tab__seat" />
5
+ <view class="uni-tab__cart-box flex">
6
+ <view class="flex uni-tab__cart-sub-left">
7
+ <view v-for="(item, index) in options" :key="index" class="flex uni-tab__cart-button-left uni-tab__shop-cart" @click="onClick(index, item)">
8
+ <view class="uni-tab__icon">
9
+ <uni-icons :type="item.icon" size="20" color="#646566"></uni-icons>
10
+ <!-- <image class="image" :src="item.icon" mode="widthFix" /> -->
11
+ </view>
12
+ <text class="uni-tab__text">{{ item.text }}</text>
13
+ <view class="flex uni-tab__dot-box">
14
+ <text
15
+ v-if="item.info"
16
+ :class="{ 'uni-tab__dots': item.info > 9 }"
17
+ class="uni-tab__dot"
18
+ :style="{
19
+ backgroundColor: item.infoBackgroundColor ? item.infoBackgroundColor : '#ff0000',
20
+ color: item.infoColor ? item.infoColor : '#fff',
21
+ }"
22
+ >{{ item.info }}</text
23
+ >
24
+ </view>
25
+ </view>
26
+ </view>
27
+ <view :class="{ 'uni-tab__right': fill }" class="flex uni-tab__cart-sub-right">
28
+ <view
29
+ v-for="(item, index) in buttonGroup"
30
+ :key="index"
31
+ :style="{ background: item.backgroundColor, color: item.color }"
32
+ class="flex uni-tab__cart-button-right"
33
+ @click="buttonClick(index, item)"
34
+ ><text :style="{ color: item.color }" class="uni-tab__cart-button-right-text">{{ item.text }}</text></view
35
+ >
36
+ </view>
37
+ </view>
38
+ </view>
26
39
  </template>
27
40
 
28
41
  <script>
29
- import {
30
- initVueI18n
31
- } from '@dcloudio/uni-i18n'
32
- import messages from './i18n'
33
- const { t } = initVueI18n(messages)
34
- /**
35
- * GoodsNav 商品导航
36
- * @description 商品加入购物车、立即购买等
37
- * @tutorial https://ext.dcloud.net.cn/plugin?id=865
38
- * @property {Array} options 组件参数
39
- * @property {Array} buttonGroup 组件按钮组参数
40
- * @property {Boolean} fill = [true | false] 组件按钮组参数
41
- * @property {Boolean} stat 是否开启统计功能
42
- * @event {Function} click 左侧点击事件
43
- * @event {Function} buttonClick 右侧按钮组点击事件
44
- * @example <uni-goods-nav :fill="true" options="" buttonGroup="buttonGroup" @click="" @buttonClick="" />
45
- */
46
- export default {
47
- name: 'UniGoodsNav',
48
- emits:['click','buttonClick'],
49
- props: {
50
- options: {
51
- type: Array,
52
- default () {
53
- return [{
54
- icon: 'shop',
55
- text: t("uni-goods-nav.options.shop"),
56
- }, {
57
- icon: 'cart',
58
- text: t("uni-goods-nav.options.cart")
59
- }]
60
- }
61
- },
62
- buttonGroup: {
63
- type: Array,
64
- default () {
65
- return [{
66
- text: t("uni-goods-nav.buttonGroup.addToCart"),
67
- backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
68
- color: '#fff'
69
- },
70
- {
71
- text: t("uni-goods-nav.buttonGroup.buyNow"),
72
- backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
73
- color: '#fff'
74
- }
75
- ]
76
- }
77
- },
78
- fill: {
79
- type: Boolean,
80
- default: false
81
- },
82
- stat:{
83
- type: Boolean,
84
- default: false
85
- }
86
- },
87
- methods: {
88
- onClick(index, item) {
89
- this.$emit('click', {
90
- index,
91
- content: item,
92
- })
93
- },
94
- buttonClick(index, item) {
95
- if (uni.report && this.stat) {
96
- uni.report(item.text, item.text)
97
- }
98
- this.$emit('buttonClick', {
99
- index,
100
- content: item
101
- })
102
- }
103
- }
104
- }
42
+ import { initVueI18n } from '@dcloudio/uni-i18n';
43
+ import messages from './i18n';
44
+
45
+ const { t } = initVueI18n(messages);
46
+ /**
47
+ * GoodsNav 商品导航
48
+ * @description 商品加入购物车、立即购买等
49
+ * @tutorial https://ext.dcloud.net.cn/plugin?id=865
50
+ * @property {Array} options 组件参数
51
+ * @property {Array} buttonGroup 组件按钮组参数
52
+ * @property {Boolean} fill = [true | false] 组件按钮组参数
53
+ * @property {Boolean} stat 是否开启统计功能
54
+ * @event {Function} click 左侧点击事件
55
+ * @event {Function} buttonClick 右侧按钮组点击事件
56
+ * @example <uni-goods-nav :fill="true" options="" buttonGroup="buttonGroup" @click="" @buttonClick="" />
57
+ */
58
+ export default {
59
+ name: 'UniGoodsNav',
60
+ emits: ['click', 'buttonClick'],
61
+ props: {
62
+ options: {
63
+ type: Array,
64
+ default() {
65
+ return [
66
+ {
67
+ icon: 'shop',
68
+ text: t('uni-goods-nav.options.shop'),
69
+ },
70
+ {
71
+ icon: 'cart',
72
+ text: t('uni-goods-nav.options.cart'),
73
+ },
74
+ ];
75
+ },
76
+ },
77
+ buttonGroup: {
78
+ type: Array,
79
+ default() {
80
+ return [
81
+ {
82
+ text: t('uni-goods-nav.buttonGroup.addToCart'),
83
+ backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
84
+ color: '#fff',
85
+ },
86
+ {
87
+ text: t('uni-goods-nav.buttonGroup.buyNow'),
88
+ backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
89
+ color: '#fff',
90
+ },
91
+ ];
92
+ },
93
+ },
94
+ fill: {
95
+ type: Boolean,
96
+ default: false,
97
+ },
98
+ stat: {
99
+ type: Boolean,
100
+ default: false,
101
+ },
102
+ },
103
+ methods: {
104
+ onClick(index, item) {
105
+ this.$emit('click', {
106
+ index,
107
+ content: item,
108
+ });
109
+ },
110
+ buttonClick(index, item) {
111
+ if (uni.report && this.stat) {
112
+ uni.report(item.text, item.text);
113
+ }
114
+ this.$emit('buttonClick', {
115
+ index,
116
+ content: item,
117
+ });
118
+ },
119
+ },
120
+ };
105
121
  </script>
106
122
 
107
- <style lang="scss" >
108
- .flex {
109
- /* #ifndef APP-NVUE */
110
- display: flex;
111
- /* #endif */
112
- flex-direction: row;
113
- }
114
-
115
- .uni-goods-nav {
116
- /* #ifndef APP-NVUE */
117
- display: flex;
118
- /* #endif */
119
- flex: 1;
120
- flex-direction: row;
121
- }
122
-
123
- .uni-tab__cart-box {
124
- flex: 1;
125
- height: 50px;
126
- background-color: #fff;
127
- z-index: 900;
128
- }
129
-
130
- .uni-tab__cart-sub-left {
131
- padding: 0 5px;
132
- }
133
-
134
- .uni-tab__cart-sub-right {
135
- flex: 1;
136
- }
137
-
138
- .uni-tab__right {
139
- margin: 5px 0;
140
- margin-right: 10px;
141
- border-radius: 100px;
142
- overflow: hidden;
143
- }
144
-
145
- .uni-tab__cart-button-left {
146
- /* #ifndef APP-NVUE */
147
- display: flex;
148
- /* #endif */
149
- // flex: 1;
150
- position: relative;
151
- justify-content: center;
152
- align-items: center;
153
- flex-direction: column;
154
- margin: 0 10px;
155
- /* #ifdef H5 */
156
- cursor: pointer;
157
- /* #endif */
158
- }
159
-
160
- .uni-tab__icon {
161
- width: 18px;
162
- height: 18px;
163
- }
164
-
165
- .image {
166
- width: 18px;
167
- height: 18px;
168
- }
169
-
170
- .uni-tab__text {
171
- margin-top: 3px;
172
- font-size: 12px;
173
- color: #646566;
174
- }
175
-
176
- .uni-tab__cart-button-right {
177
- /* #ifndef APP-NVUE */
178
- display: flex;
179
- flex-direction: column;
180
- /* #endif */
181
- flex: 1;
182
- justify-content: center;
183
- align-items: center;
184
- /* #ifdef H5 */
185
- cursor: pointer;
186
- /* #endif */
187
- }
188
-
189
- .uni-tab__cart-button-right-text {
190
- font-size: 14px;
191
- color: #fff;
192
- }
193
-
194
- .uni-tab__cart-button-right:active {
195
- opacity: 0.7;
196
- }
197
-
198
- .uni-tab__dot-box {
199
- /* #ifndef APP-NVUE */
200
- display: flex;
201
- flex-direction: column;
202
- /* #endif */
203
- position: absolute;
204
- right: -2px;
205
- top: 2px;
206
- justify-content: center;
207
- align-items: center;
208
- // width: 0;
209
- // height: 0;
210
- }
211
-
212
- .uni-tab__dot {
213
- // width: 30rpx;
214
- // height: 30rpx;
215
- padding: 0 4px;
216
- line-height: 15px;
217
- color: #ffffff;
218
- text-align: center;
219
- font-size: 12px;
220
- background-color: #ff0000;
221
- border-radius: 15px;
222
- }
223
-
224
- .uni-tab__dots {
225
- padding: 0 4px;
226
- // width: auto;
227
- border-radius: 15px;
228
- }
123
+ <style lang="scss">
124
+ .flex {
125
+ /* #ifndef APP-NVUE */
126
+ display: flex;
127
+ /* #endif */
128
+ flex-direction: row;
129
+ }
130
+
131
+ .uni-goods-nav {
132
+ /* #ifndef APP-NVUE */
133
+ display: flex;
134
+ /* #endif */
135
+ flex: 1;
136
+ flex-direction: row;
137
+ }
138
+
139
+ .uni-tab__cart-box {
140
+ flex: 1;
141
+ height: 50px;
142
+ background-color: #fff;
143
+ z-index: 900;
144
+ }
145
+
146
+ .uni-tab__cart-sub-left {
147
+ padding: 0 5px;
148
+ }
149
+
150
+ .uni-tab__cart-sub-right {
151
+ flex: 1;
152
+ }
153
+
154
+ .uni-tab__right {
155
+ margin: 5px 0;
156
+ margin-right: 10px;
157
+ border-radius: 100px;
158
+ overflow: hidden;
159
+ }
160
+
161
+ .uni-tab__cart-button-left {
162
+ /* #ifndef APP-NVUE */
163
+ display: flex;
164
+ /* #endif */
165
+ // flex: 1;
166
+ position: relative;
167
+ justify-content: center;
168
+ align-items: center;
169
+ flex-direction: column;
170
+ margin: 0 10px;
171
+ /* #ifdef H5 */
172
+ cursor: pointer;
173
+ /* #endif */
174
+ }
175
+
176
+ .uni-tab__icon {
177
+ width: 18px;
178
+ height: 18px;
179
+ }
180
+
181
+ .image {
182
+ width: 18px;
183
+ height: 18px;
184
+ }
185
+
186
+ .uni-tab__text {
187
+ margin-top: 3px;
188
+ font-size: 12px;
189
+ color: #646566;
190
+ }
191
+
192
+ .uni-tab__cart-button-right {
193
+ /* #ifndef APP-NVUE */
194
+ display: flex;
195
+ flex-direction: column;
196
+ /* #endif */
197
+ flex: 1;
198
+ justify-content: center;
199
+ align-items: center;
200
+ /* #ifdef H5 */
201
+ cursor: pointer;
202
+ /* #endif */
203
+ }
204
+
205
+ .uni-tab__cart-button-right-text {
206
+ font-size: 14px;
207
+ color: #fff;
208
+ }
209
+
210
+ .uni-tab__cart-button-right:active {
211
+ opacity: 0.7;
212
+ }
213
+
214
+ .uni-tab__dot-box {
215
+ /* #ifndef APP-NVUE */
216
+ display: flex;
217
+ flex-direction: column;
218
+ /* #endif */
219
+ position: absolute;
220
+ right: -2px;
221
+ top: 2px;
222
+ justify-content: center;
223
+ align-items: center;
224
+ // width: 0;
225
+ // height: 0;
226
+ }
227
+
228
+ .uni-tab__dot {
229
+ // width: 30rpx;
230
+ // height: 30rpx;
231
+ padding: 0 4px;
232
+ line-height: 15px;
233
+ color: #ffffff;
234
+ text-align: center;
235
+ font-size: 12px;
236
+ background-color: #ff0000;
237
+ border-radius: 15px;
238
+ }
239
+
240
+ .uni-tab__dots {
241
+ padding: 0 4px;
242
+ // width: auto;
243
+ border-radius: 15px;
244
+ }
229
245
  </style>