@vtj/materials 0.10.6 → 0.10.8
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/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +3 -3
- package/dist/assets/uni-ui/index.umd.js +3 -3
- package/dist/assets/vant/index.umd.js +2 -2
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +3 -3
- package/dist/deps/@vtj/utils/index.umd.js +20 -20
- package/dist/deps/@vueuse/core/index.iife.min.js +1 -1
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/package.json +7 -7
- package/src/uni-h5/components/input.ts +2 -2
- package/src/uni-h5/components/scrollView.ts +3 -3
- package/src/uni-h5/components/video.ts +1 -1
- package/src/uni-ui/components/badge.ts +1 -5
- package/src/uni-ui/components/breadcrumb.ts +1 -20
- package/src/uni-ui/components/collapse.ts +22 -23
- package/src/uni-ui/components/grid.ts +0 -9
- package/src/uni-ui/components/group.ts +1 -10
- package/src/uni-ui/components/index.ts +4 -4
- package/src/uni-ui/components/popup.ts +10 -2
- package/src/uni-ui/components/swiperDot.ts +21 -7
- package/src/uni-ui/components/table.ts +9 -3
- package/src/uni-ui/components/transition.ts +10 -1
- package/src/uni-ui/index.ts +19 -44
- package/src/uni-ui/lib/uni-collapse/uni-collapse.vue +153 -0
- package/src/uni-ui/lib/uni-collapse-item/uni-collapse-item.vue +425 -0
- package/src/uni-ui/lib/uni-data-picker/keypress.js +45 -0
- package/src/uni-ui/lib/uni-data-picker/uni-data-picker.vue +604 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-picker.js +622 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.css +76 -0
- package/src/uni-ui/lib/uni-data-pickerview/uni-data-pickerview.vue +335 -0
- package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +181 -170
- package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +977 -939
- package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +1024 -932
- package/src/uni-ui/lib/uni-datetime-picker/uni-datetime-picker.vue +15 -17
- package/src/uni-ui/lib/uni-datetime-picker/util.js +419 -392
- package/src/uni-ui/lib/uni-fav/i18n/en.json +4 -0
- package/src/uni-ui/lib/uni-fav/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hans.json +4 -0
- package/src/uni-ui/lib/uni-fav/i18n/zh-Hant.json +4 -0
- package/src/uni-ui/lib/uni-fav/uni-fav.vue +170 -0
- package/src/uni-ui/lib/uni-file-picker/choose-and-upload-file.js +280 -0
- package/src/uni-ui/lib/uni-file-picker/uni-file-picker.vue +668 -0
- package/src/uni-ui/lib/uni-file-picker/upload-file.vue +325 -0
- package/src/uni-ui/lib/uni-file-picker/upload-image.vue +292 -0
- package/src/uni-ui/lib/uni-file-picker/utils.js +110 -0
- package/src/uni-ui/lib/uni-grid/uni-grid.vue +148 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +152 -128
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +50 -50
- package/src/uni-ui/lib/uni-load-more/i18n/en.json +5 -0
- package/src/uni-ui/lib/uni-load-more/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hans.json +5 -0
- package/src/uni-ui/lib/uni-load-more/i18n/zh-Hant.json +5 -0
- package/src/uni-ui/lib/uni-load-more/uni-load-more.vue +456 -0
- package/src/uni-ui/lib/uni-notice-bar/uni-notice-bar.vue +484 -0
- package/src/uni-ui/lib/uni-popup/uni-popup.vue +4 -4
- package/src/uni-ui/lib/uni-popup-message/uni-popup-message.vue +149 -0
- package/src/uni-ui/lib/uni-rate/uni-rate.vue +362 -343
- package/src/uni-ui/lib/uni-row/uni-row.vue +193 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/en.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hans.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/i18n/zh-Hant.json +4 -0
- package/src/uni-ui/lib/uni-search-bar/uni-search-bar.vue +339 -0
- package/src/uni-ui/lib/uni-swipe-action-item/bindingx.js +294 -285
- package/src/uni-ui/lib/uni-swipe-action-item/uni-swipe-action-item.vue +8 -9
- package/src/uni-ui/lib/uni-th/filter-dropdown.vue +551 -503
- package/src/uni-ui/lib/uni-tr/table-checkbox.vue +165 -163
- package/src/uni-ui/lib/uni-tr/uni-tr.vue +6 -6
- package/src/uni-ui/lib/uni-transition/createAnimation.js +131 -0
- package/src/uni-ui/lib/uni-transition/uni-transition.vue +310 -0
- package/src/version.ts +2 -2
@@ -0,0 +1,148 @@
|
|
1
|
+
<template>
|
2
|
+
<view class="uni-grid-wrap">
|
3
|
+
<view
|
4
|
+
:id="elId"
|
5
|
+
ref="uni-grid"
|
6
|
+
class="uni-grid"
|
7
|
+
:class="{ 'uni-grid--border': showBorder }"
|
8
|
+
:style="{ 'border-left-color': borderColor }">
|
9
|
+
<slot />
|
10
|
+
</view>
|
11
|
+
</view>
|
12
|
+
</template>
|
13
|
+
|
14
|
+
<script>
|
15
|
+
// #ifdef APP-NVUE
|
16
|
+
const dom = uni.requireNativePlugin('dom');
|
17
|
+
// #endif
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Grid 宫格
|
21
|
+
* @description 宫格组件
|
22
|
+
* @tutorial https://ext.dcloud.net.cn/plugin?id=27
|
23
|
+
* @property {Number} column 每列显示个数
|
24
|
+
* @property {String} borderColor 边框颜色
|
25
|
+
* @property {Boolean} showBorder 是否显示边框
|
26
|
+
* @property {Boolean} square 是否方形显示
|
27
|
+
* @property {Boolean} Boolean 点击背景是否高亮
|
28
|
+
* @event {Function} change 点击 grid 触发,e={detail:{index:0}},index 为当前点击 gird 下标
|
29
|
+
*/
|
30
|
+
export default {
|
31
|
+
name: 'UniGrid',
|
32
|
+
emits: ['change'],
|
33
|
+
props: {
|
34
|
+
// 每列显示个数
|
35
|
+
column: {
|
36
|
+
type: Number,
|
37
|
+
default: 3
|
38
|
+
},
|
39
|
+
// 是否显示边框
|
40
|
+
showBorder: {
|
41
|
+
type: Boolean,
|
42
|
+
default: true
|
43
|
+
},
|
44
|
+
// 边框颜色
|
45
|
+
borderColor: {
|
46
|
+
type: String,
|
47
|
+
default: '#D2D2D2'
|
48
|
+
},
|
49
|
+
// 是否正方形显示,默认为 true
|
50
|
+
square: {
|
51
|
+
type: Boolean,
|
52
|
+
default: true
|
53
|
+
},
|
54
|
+
highlight: {
|
55
|
+
type: Boolean,
|
56
|
+
default: true
|
57
|
+
}
|
58
|
+
},
|
59
|
+
provide() {
|
60
|
+
return {
|
61
|
+
grid: this
|
62
|
+
};
|
63
|
+
},
|
64
|
+
data() {
|
65
|
+
const elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`;
|
66
|
+
return {
|
67
|
+
elId,
|
68
|
+
width: 0
|
69
|
+
};
|
70
|
+
},
|
71
|
+
created() {
|
72
|
+
this.children = [];
|
73
|
+
},
|
74
|
+
mounted() {
|
75
|
+
this.$nextTick(() => {
|
76
|
+
this.init();
|
77
|
+
});
|
78
|
+
},
|
79
|
+
methods: {
|
80
|
+
init() {
|
81
|
+
setTimeout(() => {
|
82
|
+
this._getSize((width) => {
|
83
|
+
this.children.forEach((item, index) => {
|
84
|
+
item.width = width;
|
85
|
+
});
|
86
|
+
});
|
87
|
+
}, 50);
|
88
|
+
},
|
89
|
+
change(e) {
|
90
|
+
this.$emit('change', e);
|
91
|
+
},
|
92
|
+
_getSize(fn) {
|
93
|
+
// #ifndef APP-NVUE
|
94
|
+
uni
|
95
|
+
.createSelectorQuery()
|
96
|
+
.in(this)
|
97
|
+
.select(`#${this.elId}`)
|
98
|
+
.boundingClientRect()
|
99
|
+
.exec((ret) => {
|
100
|
+
this.width = parseInt((ret[0].width - 1) / this.column) + 'px';
|
101
|
+
fn(this.width);
|
102
|
+
});
|
103
|
+
// #endif
|
104
|
+
// #ifdef APP-NVUE
|
105
|
+
// dom.getComponentRect(this.$refs['uni-grid'], (ret) => {
|
106
|
+
// this.width = parseInt((ret.size.width - 1) / this.column) + 'px'
|
107
|
+
// fn(this.width)
|
108
|
+
// })
|
109
|
+
// #endif
|
110
|
+
}
|
111
|
+
}
|
112
|
+
};
|
113
|
+
</script>
|
114
|
+
|
115
|
+
<style lang="scss" scoped>
|
116
|
+
.uni-grid-wrap {
|
117
|
+
/* #ifndef APP-NVUE */
|
118
|
+
display: flex;
|
119
|
+
/* #endif */
|
120
|
+
flex: 1;
|
121
|
+
flex-direction: column;
|
122
|
+
/* #ifdef H5 */
|
123
|
+
width: 100%;
|
124
|
+
/* #endif */
|
125
|
+
}
|
126
|
+
|
127
|
+
.uni-grid {
|
128
|
+
/* #ifndef APP-NVUE */
|
129
|
+
display: flex;
|
130
|
+
/* #endif */
|
131
|
+
// flex: 1;
|
132
|
+
flex-direction: row;
|
133
|
+
flex-wrap: wrap;
|
134
|
+
}
|
135
|
+
|
136
|
+
.uni-grid--border {
|
137
|
+
position: relative;
|
138
|
+
/* #ifdef APP-NVUE */
|
139
|
+
border-left-color: #d2d2d2;
|
140
|
+
border-left-style: solid;
|
141
|
+
border-left-width: 0.5px;
|
142
|
+
/* #endif */
|
143
|
+
/* #ifndef APP-NVUE */
|
144
|
+
z-index: 1;
|
145
|
+
border-left: 1px #d2d2d2 solid;
|
146
|
+
/* #endif */
|
147
|
+
}
|
148
|
+
</style>
|
@@ -1,144 +1,168 @@
|
|
1
1
|
<template>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
2
|
+
<view>
|
3
|
+
<view
|
4
|
+
v-if="loaded || list.itemIndex < 15"
|
5
|
+
class="uni-indexed-list__title-wrapper">
|
6
|
+
<text
|
7
|
+
v-if="list.items && list.items.length > 0"
|
8
|
+
class="uni-indexed-list__title"
|
9
|
+
>{{ list.key }}</text
|
10
|
+
>
|
11
|
+
</view>
|
12
|
+
<view
|
13
|
+
v-if="
|
14
|
+
(loaded || list.itemIndex < 15) && list.items && list.items.length > 0
|
15
|
+
"
|
16
|
+
class="uni-indexed-list__list">
|
17
|
+
<view
|
18
|
+
v-for="(item, index) in list.items"
|
19
|
+
:key="index"
|
20
|
+
class="uni-indexed-list__item"
|
21
|
+
hover-class="uni-indexed-list__item--hover">
|
22
|
+
<view
|
23
|
+
class="uni-indexed-list__item-container"
|
24
|
+
@click="onClick(idx, index)">
|
25
|
+
<view
|
26
|
+
class="uni-indexed-list__item-border"
|
27
|
+
:class="{
|
28
|
+
'uni-indexed-list__item-border--last':
|
29
|
+
index === list.items.length - 1
|
30
|
+
}">
|
31
|
+
<view v-if="showSelect" style="margin-right: 20rpx">
|
32
|
+
<uni-icons
|
33
|
+
:type="item.checked ? 'checkbox-filled' : 'circle'"
|
34
|
+
:color="item.checked ? '#007aff' : '#C0C0C0'"
|
35
|
+
size="24" />
|
36
|
+
</view>
|
37
|
+
<text class="uni-indexed-list__item-content">{{ item.name }}</text>
|
38
|
+
</view>
|
39
|
+
</view>
|
40
|
+
</view>
|
41
|
+
</view>
|
42
|
+
</view>
|
19
43
|
</template>
|
20
44
|
|
21
45
|
<script>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
46
|
+
export default {
|
47
|
+
name: 'UniIndexedList',
|
48
|
+
emits: ['itemClick'],
|
49
|
+
props: {
|
50
|
+
loaded: {
|
51
|
+
type: Boolean,
|
52
|
+
default: false
|
53
|
+
},
|
54
|
+
idx: {
|
55
|
+
type: Number,
|
56
|
+
default: 0
|
57
|
+
},
|
58
|
+
list: {
|
59
|
+
type: Object,
|
60
|
+
default() {
|
61
|
+
return {};
|
62
|
+
}
|
63
|
+
},
|
64
|
+
showSelect: {
|
65
|
+
type: Boolean,
|
66
|
+
default: false
|
67
|
+
}
|
68
|
+
},
|
69
|
+
methods: {
|
70
|
+
onClick(idx, index) {
|
71
|
+
this.$emit('itemClick', {
|
72
|
+
idx,
|
73
|
+
index
|
74
|
+
});
|
75
|
+
}
|
76
|
+
}
|
77
|
+
};
|
54
78
|
</script>
|
55
79
|
|
56
80
|
<style lang="scss" scoped>
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
81
|
+
.uni-indexed-list__list {
|
82
|
+
background-color: $uni-bg-color;
|
83
|
+
/* #ifndef APP-NVUE */
|
84
|
+
display: flex;
|
85
|
+
/* #endif */
|
86
|
+
flex-direction: column;
|
87
|
+
border-top-style: solid;
|
88
|
+
border-top-width: 1px;
|
89
|
+
border-top-color: #dedede;
|
90
|
+
}
|
67
91
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
92
|
+
.uni-indexed-list__item {
|
93
|
+
font-size: 14px;
|
94
|
+
/* #ifndef APP-NVUE */
|
95
|
+
display: flex;
|
96
|
+
/* #endif */
|
97
|
+
flex: 1;
|
98
|
+
flex-direction: row;
|
99
|
+
justify-content: space-between;
|
100
|
+
align-items: center;
|
101
|
+
}
|
78
102
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
103
|
+
.uni-indexed-list__item-container {
|
104
|
+
padding-left: 15px;
|
105
|
+
flex: 1;
|
106
|
+
position: relative;
|
107
|
+
/* #ifndef APP-NVUE */
|
108
|
+
display: flex;
|
109
|
+
box-sizing: border-box;
|
110
|
+
/* #endif */
|
111
|
+
flex-direction: row;
|
112
|
+
justify-content: space-between;
|
113
|
+
align-items: center;
|
114
|
+
/* #ifdef H5 */
|
115
|
+
cursor: pointer;
|
116
|
+
/* #endif */
|
117
|
+
}
|
94
118
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
119
|
+
.uni-indexed-list__item-border {
|
120
|
+
flex: 1;
|
121
|
+
position: relative;
|
122
|
+
/* #ifndef APP-NVUE */
|
123
|
+
display: flex;
|
124
|
+
box-sizing: border-box;
|
125
|
+
/* #endif */
|
126
|
+
flex-direction: row;
|
127
|
+
justify-content: space-between;
|
128
|
+
align-items: center;
|
129
|
+
height: 50px;
|
130
|
+
padding: 25px;
|
131
|
+
padding-left: 0;
|
132
|
+
border-bottom-style: solid;
|
133
|
+
border-bottom-width: 1px;
|
134
|
+
border-bottom-color: #dedede;
|
135
|
+
}
|
112
136
|
|
113
|
-
|
114
|
-
|
115
|
-
|
137
|
+
.uni-indexed-list__item-border--last {
|
138
|
+
border-bottom-width: 0px;
|
139
|
+
}
|
116
140
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
141
|
+
.uni-indexed-list__item-content {
|
142
|
+
flex: 1;
|
143
|
+
font-size: 14px;
|
144
|
+
color: #191919;
|
145
|
+
}
|
122
146
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
147
|
+
.uni-indexed-list {
|
148
|
+
/* #ifndef APP-NVUE */
|
149
|
+
display: flex;
|
150
|
+
/* #endif */
|
151
|
+
flex-direction: row;
|
152
|
+
}
|
129
153
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
154
|
+
.uni-indexed-list__title-wrapper {
|
155
|
+
/* #ifndef APP-NVUE */
|
156
|
+
display: flex;
|
157
|
+
width: 100%;
|
158
|
+
/* #endif */
|
159
|
+
background-color: #f7f7f7;
|
160
|
+
}
|
137
161
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
162
|
+
.uni-indexed-list__title {
|
163
|
+
padding: 6px 12px;
|
164
|
+
line-height: 24px;
|
165
|
+
font-size: 16px;
|
166
|
+
font-weight: 500;
|
167
|
+
}
|
144
168
|
</style>
|
@@ -1,24 +1,24 @@
|
|
1
1
|
<template>
|
2
2
|
<view class="uni-indexed-list" ref="list" id="list">
|
3
3
|
<!-- #ifdef APP-NVUE -->
|
4
|
-
<list
|
4
|
+
<!-- <list
|
5
5
|
class="uni-indexed-list__scroll"
|
6
6
|
scrollable="true"
|
7
7
|
show-scrollbar="false">
|
8
8
|
<cell
|
9
9
|
v-for="(list, idx) in lists"
|
10
10
|
:key="idx"
|
11
|
-
:ref="'uni-indexed-list-' + idx">
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
:ref="'uni-indexed-list-' + idx"> -->
|
12
|
+
<!-- #endif -->
|
13
|
+
<!-- #ifndef APP-NVUE -->
|
14
|
+
<scroll-view
|
15
|
+
:scroll-into-view="scrollViewId"
|
16
|
+
class="uni-indexed-list__scroll"
|
17
|
+
scroll-y>
|
18
|
+
<view
|
19
|
+
v-for="(list, idx) in lists"
|
20
|
+
:key="idx"
|
21
|
+
:id="'uni-indexed-list-' + idx">
|
22
22
|
<!-- #endif -->
|
23
23
|
<indexed-list-item
|
24
24
|
:list="list"
|
@@ -27,12 +27,12 @@
|
|
27
27
|
:showSelect="showSelect"
|
28
28
|
@itemClick="onClick"></indexed-list-item>
|
29
29
|
<!-- #ifndef APP-NVUE -->
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
</list>
|
30
|
+
</view>
|
31
|
+
</scroll-view>
|
32
|
+
<!-- #endif -->
|
33
|
+
<!-- #ifdef APP-NVUE -->
|
34
|
+
<!-- </cell>
|
35
|
+
</list> -->
|
36
36
|
<!-- #endif -->
|
37
37
|
<view
|
38
38
|
class="uni-indexed-list__menu"
|
@@ -66,21 +66,21 @@
|
|
66
66
|
<script>
|
67
67
|
import indexedListItem from './uni-indexed-list-item.vue';
|
68
68
|
// #ifdef APP-NVUE
|
69
|
-
const dom = weex.requireModule('dom');
|
69
|
+
// const dom = weex.requireModule('dom');
|
70
70
|
// #endif
|
71
71
|
// #ifdef APP-PLUS
|
72
|
-
function throttle(func, delay) {
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
}
|
72
|
+
// function throttle(func, delay) {
|
73
|
+
// var prev = Date.now();
|
74
|
+
// return function () {
|
75
|
+
// var context = this;
|
76
|
+
// var args = arguments;
|
77
|
+
// var now = Date.now();
|
78
|
+
// if (now - prev >= delay) {
|
79
|
+
// func.apply(context, args);
|
80
|
+
// prev = Date.now();
|
81
|
+
// }
|
82
|
+
// };
|
83
|
+
// }
|
84
84
|
|
85
85
|
function touchMove(e) {
|
86
86
|
let pageY = e.touches[0].pageY;
|
@@ -95,14 +95,14 @@
|
|
95
95
|
this.touchmoveIndex = index;
|
96
96
|
// #endif
|
97
97
|
// #ifdef APP-NVUE
|
98
|
-
dom.scrollToElement(this.$refs['uni-indexed-list-' + index][0], {
|
99
|
-
|
100
|
-
});
|
101
|
-
this.touchmoveIndex = index;
|
98
|
+
// dom.scrollToElement(this.$refs['uni-indexed-list-' + index][0], {
|
99
|
+
// animated: false
|
100
|
+
// });
|
101
|
+
// this.touchmoveIndex = index;
|
102
102
|
// #endif
|
103
103
|
}
|
104
104
|
}
|
105
|
-
const throttleTouchMove = throttle(touchMove, 40);
|
105
|
+
// const throttleTouchMove = throttle(touchMove, 40);
|
106
106
|
// #endif
|
107
107
|
|
108
108
|
/**
|
@@ -205,11 +205,11 @@
|
|
205
205
|
});
|
206
206
|
// #endif
|
207
207
|
// #ifdef APP-NVUE
|
208
|
-
dom.getComponentRect(this.$refs['list'], (res) => {
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
});
|
208
|
+
// dom.getComponentRect(this.$refs['list'], (res) => {
|
209
|
+
// this.winOffsetY = res.size.top;
|
210
|
+
// this.winHeight = res.size.height;
|
211
|
+
// this.itemHeight = this.winHeight / this.lists.length;
|
212
|
+
// });
|
213
213
|
// #endif
|
214
214
|
},
|
215
215
|
touchStart(e) {
|
@@ -221,9 +221,9 @@
|
|
221
221
|
this.scrollViewId = 'uni-indexed-list-' + index;
|
222
222
|
this.touchmoveIndex = index;
|
223
223
|
// #ifdef APP-NVUE
|
224
|
-
dom.scrollToElement(this.$refs['uni-indexed-list-' + index][0], {
|
225
|
-
|
226
|
-
});
|
224
|
+
// dom.scrollToElement(this.$refs['uni-indexed-list-' + index][0], {
|
225
|
+
// animated: false
|
226
|
+
// });
|
227
227
|
// #endif
|
228
228
|
}
|
229
229
|
},
|
@@ -241,7 +241,7 @@
|
|
241
241
|
}
|
242
242
|
// #endif
|
243
243
|
// #ifdef APP-PLUS
|
244
|
-
throttleTouchMove.call(this, e);
|
244
|
+
// throttleTouchMove.call(this, e);
|
245
245
|
// #endif
|
246
246
|
},
|
247
247
|
touchEnd() {
|
@@ -361,12 +361,12 @@
|
|
361
361
|
color: #aaa;
|
362
362
|
}
|
363
363
|
|
364
|
-
.uni-indexed-list__menu--active {
|
365
|
-
|
366
|
-
}
|
364
|
+
// .uni-indexed-list__menu--active {
|
365
|
+
// // background-color: rgb(200, 200, 200);
|
366
|
+
// }
|
367
367
|
|
368
|
-
.uni-indexed-list__menu--active {
|
369
|
-
}
|
368
|
+
// .uni-indexed-list__menu--active {
|
369
|
+
// }
|
370
370
|
|
371
371
|
.uni-indexed-list__menu-text--active {
|
372
372
|
border-radius: 16px;
|