@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.
- package/dist/uni/uni-ui/uni-badge/uni-badge.vue +222 -219
- package/dist/uni/uni-ui/uni-breadcrumb/uni-breadcrumb.vue +29 -29
- package/dist/uni/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue +88 -88
- package/dist/uni/uni-ui/uni-calendar/calendar.js +936 -532
- package/dist/uni/uni-ui/uni-calendar/i18n/en.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hans.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/i18n/zh-Hant.json +10 -10
- package/dist/uni/uni-ui/uni-calendar/uni-calendar-item.vue +190 -168
- package/dist/uni/uni-ui/uni-calendar/uni-calendar.vue +459 -459
- package/dist/uni/uni-ui/uni-calendar/util.js +324 -340
- package/dist/uni/uni-ui/uni-card/uni-card.vue +8 -1
- package/dist/uni/uni-ui/uni-col/uni-col.vue +294 -287
- package/dist/uni/uni-ui/uni-collapse/uni-collapse.vue +139 -140
- package/dist/uni/uni-ui/uni-collapse-item/uni-collapse-item.vue +381 -378
- package/dist/uni/uni-ui/uni-combox/uni-combox.vue +280 -272
- package/dist/uni/uni-ui/uni-countdown/i18n/en.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hans.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/i18n/zh-Hant.json +4 -4
- package/dist/uni/uni-ui/uni-countdown/uni-countdown.vue +249 -257
- package/dist/uni/uni-ui/uni-data-checkbox/uni-data-checkbox.vue +832 -813
- package/dist/uni/uni-ui/uni-data-picker/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-data-picker/uni-data-picker.vue +535 -516
- package/dist/uni/uni-ui/uni-data-pickerview/uni-data-picker.js +623 -618
- package/dist/uni/uni-ui/uni-data-pickerview/uni-data-pickerview.vue +293 -288
- package/dist/uni/uni-ui/uni-data-select/uni-data-select.vue +495 -509
- package/dist/uni/uni-ui/uni-dateformat/date-format.js +181 -184
- package/dist/uni/uni-ui/uni-dateformat/uni-dateformat.vue +81 -82
- package/dist/uni/uni-ui/uni-datetime-picker/calendar-item.vue +176 -170
- package/dist/uni/uni-ui/uni-datetime-picker/calendar.vue +926 -920
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/en.json +20 -20
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hans.json +21 -21
- package/dist/uni/uni-ui/uni-datetime-picker/i18n/zh-Hant.json +21 -21
- package/dist/uni/uni-ui/uni-datetime-picker/time-picker.vue +921 -926
- package/dist/uni/uni-ui/uni-datetime-picker/uni-datetime-picker.vue +1059 -1012
- package/dist/uni/uni-ui/uni-datetime-picker/util.js +366 -377
- package/dist/uni/uni-ui/uni-drawer/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-drawer/uni-drawer.vue +176 -167
- package/dist/uni/uni-ui/uni-easyinput/common.js +40 -42
- package/dist/uni/uni-ui/uni-easyinput/uni-easyinput.vue +628 -547
- package/dist/uni/uni-ui/uni-fab/uni-fab.vue +507 -483
- package/dist/uni/uni-ui/uni-fav/i18n/en.json +2 -2
- package/dist/uni/uni-ui/uni-fav/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-fav/i18n/zh-Hans.json +2 -2
- package/dist/uni/uni-ui/uni-fav/i18n/zh-Hant.json +2 -2
- package/dist/uni/uni-ui/uni-fav/uni-fav.vue +155 -147
- package/dist/uni/uni-ui/uni-file-picker/choose-and-upload-file.js +172 -198
- package/dist/uni/uni-ui/uni-file-picker/uni-file-picker.vue +636 -634
- package/dist/uni/uni-ui/uni-file-picker/upload-file.vue +294 -293
- package/dist/uni/uni-ui/uni-file-picker/upload-image.vue +267 -270
- package/dist/uni/uni-ui/uni-file-picker/utils.js +81 -82
- package/dist/uni/uni-ui/uni-forms/uni-forms.vue +360 -372
- package/dist/uni/uni-ui/uni-forms/utils.js +170 -174
- package/dist/uni/uni-ui/uni-forms/validate.js +447 -456
- package/dist/uni/uni-ui/uni-forms-item/uni-forms-item.vue +497 -497
- package/dist/uni/uni-ui/uni-goods-nav/i18n/en.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hans.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/i18n/zh-Hant.json +4 -4
- package/dist/uni/uni-ui/uni-goods-nav/uni-goods-nav.vue +238 -222
- package/dist/uni/uni-ui/uni-grid/uni-grid.vue +134 -134
- package/dist/uni/uni-ui/uni-grid-item/uni-grid-item.vue +121 -119
- package/dist/uni/uni-ui/uni-group/uni-group.vue +121 -121
- package/dist/uni/uni-ui/uni-icons/icons.js +1170 -1168
- package/dist/uni/uni-ui/uni-icons/uni-icons.vue +91 -86
- package/dist/uni/uni-ui/uni-icons/uniicons.css +166 -166
- package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list-item.vue +129 -129
- package/dist/uni/uni-ui/uni-indexed-list/uni-indexed-list.vue +352 -347
- package/dist/uni/uni-ui/uni-link/uni-link.vue +134 -119
- package/dist/uni/uni-ui/uni-list/uni-list.vue +119 -110
- package/dist/uni/uni-ui/uni-list/uni-refresh.vue +14 -14
- package/dist/uni/uni-ui/uni-list/uni-refresh.wxs +14 -14
- package/dist/uni/uni-ui/uni-list-ad/uni-list-ad.vue +101 -95
- package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.scss +18 -18
- package/dist/uni/uni-ui/uni-list-chat/uni-list-chat.vue +602 -586
- package/dist/uni/uni-ui/uni-list-item/uni-list-item.vue +507 -503
- package/dist/uni/uni-ui/uni-load-more/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hans.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/i18n/zh-Hant.json +3 -3
- package/dist/uni/uni-ui/uni-load-more/uni-load-more.vue +402 -392
- package/dist/uni/uni-ui/uni-nav-bar/uni-nav-bar.vue +328 -330
- package/dist/uni/uni-ui/uni-nav-bar/uni-status-bar.vue +17 -17
- package/dist/uni/uni-ui/uni-notice-bar/uni-notice-bar.vue +422 -401
- package/dist/uni/uni-ui/uni-number-box/uni-number-box.vue +211 -205
- package/dist/uni/uni-ui/uni-pagination/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/es.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/fr.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/index.js +12 -11
- package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hans.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/i18n/zh-Hant.json +3 -3
- package/dist/uni/uni-ui/uni-pagination/uni-pagination.vue +450 -433
- package/dist/uni/uni-ui/uni-popup/uni-popup.vue +404 -404
- package/dist/uni/uni-ui/uni-popup-dialog/keypress.js +42 -42
- package/dist/uni/uni-ui/uni-popup-dialog/uni-popup-dialog.vue +1 -0
- package/dist/uni/uni-ui/uni-popup-message/uni-popup-message.vue +126 -125
- package/dist/uni/uni-ui/uni-popup-share/uni-popup-share.vue +172 -172
- package/dist/uni/uni-ui/uni-rate/uni-rate.vue +343 -347
- package/dist/uni/uni-ui/uni-row/uni-row.vue +180 -182
- package/dist/uni/uni-ui/uni-scss/changelog.md +11 -4
- package/dist/uni/uni-ui/uni-scss/package.json +73 -73
- package/dist/uni/uni-ui/uni-scss/readme.md +2 -1
- package/dist/uni/uni-ui/uni-scss/styles/setting/_border.scss +2 -2
- package/dist/uni/uni-ui/uni-scss/styles/setting/_color.scss +46 -47
- package/dist/uni/uni-ui/uni-scss/styles/setting/_radius.scss +49 -49
- package/dist/uni/uni-ui/uni-scss/styles/setting/_space.scss +52 -53
- package/dist/uni/uni-ui/uni-scss/styles/setting/_styles.scss +142 -147
- package/dist/uni/uni-ui/uni-scss/styles/setting/_text.scss +20 -20
- package/dist/uni/uni-ui/uni-scss/styles/setting/_variables.scss +111 -95
- package/dist/uni/uni-ui/uni-scss/styles/tools/functions.scss +28 -18
- package/dist/uni/uni-ui/uni-scss/theme.scss +10 -7
- package/dist/uni/uni-ui/uni-scss/variables.scss +42 -24
- package/dist/uni/uni-ui/uni-search-bar/i18n/en.json +3 -3
- package/dist/uni/uni-ui/uni-search-bar/i18n/index.js +8 -7
- package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hans.json +2 -2
- package/dist/uni/uni-ui/uni-search-bar/i18n/zh-Hant.json +2 -2
- package/dist/uni/uni-ui/uni-search-bar/uni-search-bar.vue +290 -281
- package/dist/uni/uni-ui/uni-section/uni-section.vue +149 -146
- package/dist/uni/uni-ui/uni-segmented-control/uni-segmented-control.vue +141 -131
- package/dist/uni/uni-ui/uni-steps/uni-steps.vue +255 -236
- package/dist/uni/uni-ui/uni-swipe-action/uni-swipe-action.vue +51 -51
- package/dist/uni/uni-ui/uni-swipe-action-item/bindingx.js +276 -282
- package/dist/uni/uni-ui/uni-swipe-action-item/isPC.js +10 -10
- package/dist/uni/uni-ui/uni-swipe-action-item/mpalipay.js +182 -187
- package/dist/uni/uni-ui/uni-swipe-action-item/mpother.js +235 -244
- package/dist/uni/uni-ui/uni-swipe-action-item/mpwxs.js +70 -75
- package/dist/uni/uni-ui/uni-swipe-action-item/render.js +238 -247
- package/dist/uni/uni-ui/uni-swipe-action-item/uni-swipe-action-item.vue +387 -313
- package/dist/uni/uni-ui/uni-swipe-action-item/wx.wxs +206 -215
- package/dist/uni/uni-ui/uni-swiper-dot/uni-swiper-dot.vue +241 -197
- package/dist/uni/uni-ui/uni-table/uni-table.vue +445 -447
- package/dist/uni/uni-ui/uni-tag/uni-tag.vue +234 -244
- package/dist/uni/uni-ui/uni-tbody/uni-tbody.vue +20 -23
- package/dist/uni/uni-ui/uni-td/uni-td.vue +79 -80
- package/dist/uni/uni-ui/uni-th/filter-dropdown.vue +510 -503
- package/dist/uni/uni-ui/uni-th/uni-th.vue +289 -273
- package/dist/uni/uni-ui/uni-thead/uni-thead.vue +115 -114
- package/dist/uni/uni-ui/uni-title/uni-title.vue +151 -154
- package/dist/uni/uni-ui/uni-tooltip/uni-tooltip.vue +55 -60
- package/dist/uni/uni-ui/uni-tr/table-checkbox.vue +162 -163
- package/dist/uni/uni-ui/uni-tr/uni-tr.vue +158 -157
- package/dist/uni/uni-ui/uni-transition/createAnimation.js +130 -113
- package/dist/uni/uni-ui/uni-transition/uni-transition.vue +274 -272
- package/package.json +1 -1
|
@@ -1,218 +1,262 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
<view class="uni-swiper__warp">
|
|
3
|
+
<slot />
|
|
4
|
+
<view v-if="mode === 'default'" :style="{ bottom: dots.bottom + 'px' }" class="uni-swiper__dots-box" key="default">
|
|
5
|
+
<view
|
|
6
|
+
v-for="(item, index) in info"
|
|
7
|
+
@click="clickItem(index)"
|
|
8
|
+
:style="{
|
|
9
|
+
width: (index === current ? dots.width * 2 : dots.width) + 'px',
|
|
10
|
+
height: dots.width / 2 + 'px',
|
|
11
|
+
'background-color': index !== current ? dots.backgroundColor : dots.selectedBackgroundColor,
|
|
12
|
+
'border-radius': '0px',
|
|
13
|
+
}"
|
|
14
|
+
:key="index"
|
|
15
|
+
class="uni-swiper__dots-item uni-swiper__dots-bar"
|
|
16
|
+
/>
|
|
17
|
+
</view>
|
|
18
|
+
<view v-if="mode === 'dot'" :style="{ bottom: dots.bottom + 'px' }" class="uni-swiper__dots-box" key="dot">
|
|
19
|
+
<view
|
|
20
|
+
v-for="(item, index) in info"
|
|
21
|
+
@click="clickItem(index)"
|
|
22
|
+
:style="{
|
|
23
|
+
width: dots.width + 'px',
|
|
24
|
+
height: dots.height + 'px',
|
|
25
|
+
'background-color': index !== current ? dots.backgroundColor : dots.selectedBackgroundColor,
|
|
26
|
+
border: index !== current ? dots.border : dots.selectedBorder,
|
|
27
|
+
}"
|
|
28
|
+
:key="index"
|
|
29
|
+
class="uni-swiper__dots-item"
|
|
30
|
+
/>
|
|
31
|
+
</view>
|
|
32
|
+
<view v-if="mode === 'round'" :style="{ bottom: dots.bottom + 'px' }" class="uni-swiper__dots-box" key="round">
|
|
33
|
+
<view
|
|
34
|
+
v-for="(item, index) in info"
|
|
35
|
+
@click="clickItem(index)"
|
|
36
|
+
:class="[index === current && 'uni-swiper__dots-long']"
|
|
37
|
+
:style="{
|
|
38
|
+
width: (index === current ? dots.width * 3 : dots.width) + 'px',
|
|
39
|
+
height: dots.height + 'px',
|
|
40
|
+
'background-color': index !== current ? dots.backgroundColor : dots.selectedBackgroundColor,
|
|
41
|
+
border: index !== current ? dots.border : dots.selectedBorder,
|
|
42
|
+
}"
|
|
43
|
+
:key="index"
|
|
44
|
+
class="uni-swiper__dots-item"
|
|
45
|
+
/>
|
|
46
|
+
</view>
|
|
47
|
+
<view
|
|
48
|
+
v-if="mode === 'nav'"
|
|
49
|
+
key="nav"
|
|
50
|
+
:style="{ 'background-color': dotsStyles.backgroundColor, bottom: '0' }"
|
|
51
|
+
class="uni-swiper__dots-box uni-swiper__dots-nav"
|
|
52
|
+
>
|
|
53
|
+
<text :style="{ color: dotsStyles.color }" class="uni-swiper__dots-nav-item">{{
|
|
54
|
+
current + 1 + '/' + info.length + ' ' + info[current][field]
|
|
55
|
+
}}</text>
|
|
56
|
+
</view>
|
|
57
|
+
<view v-if="mode === 'indexes'" key="indexes" :style="{ bottom: dots.bottom + 'px' }" class="uni-swiper__dots-box">
|
|
58
|
+
<view
|
|
59
|
+
v-for="(item, index) in info"
|
|
60
|
+
@click="clickItem(index)"
|
|
61
|
+
:style="{
|
|
62
|
+
width: dots.width + 'px',
|
|
63
|
+
height: dots.height + 'px',
|
|
64
|
+
color: index === current ? dots.selectedColor : dots.color,
|
|
65
|
+
'background-color': index !== current ? dots.backgroundColor : dots.selectedBackgroundColor,
|
|
66
|
+
border: index !== current ? dots.border : dots.selectedBorder,
|
|
67
|
+
}"
|
|
68
|
+
:key="index"
|
|
69
|
+
class="uni-swiper__dots-item uni-swiper__dots-indexes"
|
|
70
|
+
><text class="uni-swiper__dots-indexes-text">{{ index + 1 }}</text></view
|
|
71
|
+
>
|
|
72
|
+
</view>
|
|
73
|
+
</view>
|
|
28
74
|
</template>
|
|
29
75
|
|
|
30
76
|
<script>
|
|
77
|
+
/**
|
|
78
|
+
* SwiperDod 轮播图指示点
|
|
79
|
+
* @description 自定义轮播图指示点
|
|
80
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=284
|
|
81
|
+
* @property {Number} current 当前指示点索引,必须是通过 `swiper` 的 `change` 事件获取到的 `e.detail.current`
|
|
82
|
+
* @property {String} mode = [default|round|nav|indexes] 指示点的类型
|
|
83
|
+
* @value defualt 默认指示点
|
|
84
|
+
* @value round 圆形指示点
|
|
85
|
+
* @value nav 条形指示点
|
|
86
|
+
* @value indexes 索引指示点
|
|
87
|
+
* @property {String} field mode 为 nav 时,显示的内容字段(mode = nav 时必填)
|
|
88
|
+
* @property {String} info 轮播图的数据,通过数组长度决定指示点个数
|
|
89
|
+
* @property {Object} dotsStyles 指示点样式
|
|
90
|
+
* @event {Function} clickItem 组件触发点击事件时触发,e={currentIndex}
|
|
91
|
+
*/
|
|
31
92
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
created() {
|
|
109
|
-
if (this.mode === 'indexes') {
|
|
110
|
-
this.dots.width = 12
|
|
111
|
-
this.dots.height = 12
|
|
112
|
-
}
|
|
113
|
-
this.dots = Object.assign(this.dots, this.dotsStyles)
|
|
114
|
-
},
|
|
115
|
-
methods: {
|
|
116
|
-
clickItem(index) {
|
|
117
|
-
this.$emit('clickItem', index)
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
93
|
+
export default {
|
|
94
|
+
name: 'UniSwiperDot',
|
|
95
|
+
emits: ['clickItem'],
|
|
96
|
+
props: {
|
|
97
|
+
info: {
|
|
98
|
+
type: Array,
|
|
99
|
+
default() {
|
|
100
|
+
return [];
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
current: {
|
|
104
|
+
type: Number,
|
|
105
|
+
default: 0,
|
|
106
|
+
},
|
|
107
|
+
dotsStyles: {
|
|
108
|
+
type: Object,
|
|
109
|
+
default() {
|
|
110
|
+
return {};
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
// 类型 :default(默认) indexes long nav
|
|
114
|
+
mode: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: 'default',
|
|
117
|
+
},
|
|
118
|
+
// 只在 nav 模式下生效,变量名称
|
|
119
|
+
field: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: '',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
data() {
|
|
125
|
+
return {
|
|
126
|
+
dots: {
|
|
127
|
+
width: 6,
|
|
128
|
+
height: 6,
|
|
129
|
+
bottom: 10,
|
|
130
|
+
color: '#fff',
|
|
131
|
+
backgroundColor: 'rgba(0, 0, 0, .3)',
|
|
132
|
+
border: '1px rgba(0, 0, 0, .3) solid',
|
|
133
|
+
selectedBackgroundColor: '#333',
|
|
134
|
+
selectedBorder: '1px rgba(0, 0, 0, .9) solid',
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
watch: {
|
|
139
|
+
dotsStyles(newVal) {
|
|
140
|
+
this.dots = Object.assign(this.dots, this.dotsStyles);
|
|
141
|
+
},
|
|
142
|
+
mode(newVal) {
|
|
143
|
+
if (newVal === 'indexes') {
|
|
144
|
+
this.dots.width = 14;
|
|
145
|
+
this.dots.height = 14;
|
|
146
|
+
} else {
|
|
147
|
+
this.dots.width = 6;
|
|
148
|
+
this.dots.height = 6;
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
created() {
|
|
153
|
+
if (this.mode === 'indexes') {
|
|
154
|
+
this.dots.width = 12;
|
|
155
|
+
this.dots.height = 12;
|
|
156
|
+
}
|
|
157
|
+
this.dots = Object.assign(this.dots, this.dotsStyles);
|
|
158
|
+
},
|
|
159
|
+
methods: {
|
|
160
|
+
clickItem(index) {
|
|
161
|
+
this.$emit('clickItem', index);
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
};
|
|
121
165
|
</script>
|
|
122
166
|
|
|
123
167
|
<style lang="scss">
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
168
|
+
.uni-swiper__warp {
|
|
169
|
+
/* #ifndef APP-NVUE */
|
|
170
|
+
display: flex;
|
|
171
|
+
/* #endif */
|
|
172
|
+
flex: 1;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
position: relative;
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
}
|
|
133
177
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
178
|
+
.uni-swiper__dots-box {
|
|
179
|
+
position: absolute;
|
|
180
|
+
bottom: 10px;
|
|
181
|
+
left: 0;
|
|
182
|
+
right: 0;
|
|
183
|
+
/* #ifndef APP-NVUE */
|
|
184
|
+
display: flex;
|
|
185
|
+
/* #endif */
|
|
186
|
+
flex: 1;
|
|
187
|
+
flex-direction: row;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
align-items: center;
|
|
190
|
+
}
|
|
147
191
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
192
|
+
.uni-swiper__dots-item {
|
|
193
|
+
width: 8px;
|
|
194
|
+
border-radius: 100px;
|
|
195
|
+
margin-left: 6px;
|
|
196
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
197
|
+
/* #ifndef APP-NVUE */
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
/* #endif */
|
|
200
|
+
/* #ifdef H5 */
|
|
201
|
+
// border-width: 5px 0;
|
|
202
|
+
// border-style: solid;
|
|
203
|
+
// border-color: transparent;
|
|
204
|
+
// background-clip: padding-box;
|
|
205
|
+
/* #endif */
|
|
206
|
+
// transition: width 0.2s linear; 不要取消注释,不然会不能变色
|
|
207
|
+
}
|
|
164
208
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
209
|
+
.uni-swiper__dots-item:first-child {
|
|
210
|
+
margin: 0;
|
|
211
|
+
}
|
|
168
212
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
213
|
+
.uni-swiper__dots-default {
|
|
214
|
+
border-radius: 100px;
|
|
215
|
+
}
|
|
172
216
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
217
|
+
.uni-swiper__dots-long {
|
|
218
|
+
border-radius: 50px;
|
|
219
|
+
}
|
|
176
220
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
221
|
+
.uni-swiper__dots-bar {
|
|
222
|
+
border-radius: 50px;
|
|
223
|
+
}
|
|
180
224
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
225
|
+
.uni-swiper__dots-nav {
|
|
226
|
+
bottom: 0px;
|
|
227
|
+
// height: 26px;
|
|
228
|
+
padding: 8px 0;
|
|
229
|
+
/* #ifndef APP-NVUE */
|
|
230
|
+
display: flex;
|
|
231
|
+
/* #endif */
|
|
232
|
+
flex: 1;
|
|
233
|
+
flex-direction: row;
|
|
234
|
+
justify-content: flex-start;
|
|
235
|
+
align-items: center;
|
|
236
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
237
|
+
}
|
|
194
238
|
|
|
195
|
-
|
|
196
|
-
|
|
239
|
+
.uni-swiper__dots-nav-item {
|
|
240
|
+
/* overflow: hidden;
|
|
197
241
|
text-overflow: ellipsis;
|
|
198
242
|
white-space: nowrap; */
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
243
|
+
font-size: 14px;
|
|
244
|
+
color: #fff;
|
|
245
|
+
margin: 0 15px;
|
|
246
|
+
}
|
|
203
247
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
248
|
+
.uni-swiper__dots-indexes {
|
|
249
|
+
/* #ifndef APP-NVUE */
|
|
250
|
+
display: flex;
|
|
251
|
+
/* #endif */
|
|
252
|
+
// flex: 1;
|
|
253
|
+
justify-content: center;
|
|
254
|
+
align-items: center;
|
|
255
|
+
}
|
|
212
256
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
257
|
+
.uni-swiper__dots-indexes-text {
|
|
258
|
+
color: #fff;
|
|
259
|
+
font-size: 12px;
|
|
260
|
+
line-height: 14px;
|
|
261
|
+
}
|
|
218
262
|
</style>
|