@10yun/cv-mobile-ui 0.5.17 → 0.5.18
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button class="cv-button-wrap" :type="type" :
|
|
2
|
+
<button class="cv-button-wrap" :type="type" :size="size" @click="parentClick"><slot /></button>
|
|
3
3
|
</template>
|
|
4
4
|
<script>
|
|
5
5
|
export default {
|
|
@@ -14,10 +14,6 @@ export default {
|
|
|
14
14
|
type: [String],
|
|
15
15
|
default: 'primary'
|
|
16
16
|
},
|
|
17
|
-
formType: {
|
|
18
|
-
type: [String],
|
|
19
|
-
default: ''
|
|
20
|
-
},
|
|
21
17
|
click: {
|
|
22
18
|
type: [Function]
|
|
23
19
|
},
|
|
@@ -91,6 +91,9 @@ export default {
|
|
|
91
91
|
background-color: #ffffff;
|
|
92
92
|
padding-left: 10px;
|
|
93
93
|
}
|
|
94
|
+
.cv-cell-box:active {
|
|
95
|
+
background-color: #e5e5e5;
|
|
96
|
+
}
|
|
94
97
|
.cv-cell-main-box {
|
|
95
98
|
padding: 5px 10px 5px 0;
|
|
96
99
|
border-bottom: solid 1px #f1f1f1;
|
|
@@ -118,14 +121,14 @@ export default {
|
|
|
118
121
|
align-items: center;
|
|
119
122
|
}
|
|
120
123
|
.cv-cell-left-icon {
|
|
121
|
-
width:
|
|
122
|
-
height:
|
|
124
|
+
width: 30px;
|
|
125
|
+
height: 30px;
|
|
123
126
|
line-height: 40px;
|
|
124
127
|
padding-right: 10px;
|
|
125
128
|
}
|
|
126
129
|
.cv-cell-left-image {
|
|
127
|
-
width:
|
|
128
|
-
height:
|
|
130
|
+
width: 30px;
|
|
131
|
+
height: 30px;
|
|
129
132
|
}
|
|
130
133
|
.cv-cell-left-content {
|
|
131
134
|
padding-left: 0px;
|
|
File without changes
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="cv-
|
|
3
|
-
<view class="cv-
|
|
4
|
-
<view class="cv-
|
|
5
|
-
<view class="cv-
|
|
2
|
+
<view class="cv-griditem-box" @click="jump" v-bind:style="cvNavColStyle">
|
|
3
|
+
<view class="cv-griditem-img-area" v-bind:style="cvNavImgAreaStyle">
|
|
4
|
+
<view class="cv-griditem-img-box">
|
|
5
|
+
<view class="cv-griditem-img-main">
|
|
6
6
|
<view class="cv-nav-img-pla" v-if="isViewPla === true"></view>
|
|
7
7
|
<slot name="default" />
|
|
8
|
-
<image class="cv-
|
|
8
|
+
<image class="cv-griditem-img" v-bind:style="cvNavImgStyle" @load="onImgLoad" :src="img" v-if="!$slots.default"></image>
|
|
9
9
|
</view>
|
|
10
10
|
</view>
|
|
11
11
|
</view>
|
|
12
|
-
<view class="cv-
|
|
12
|
+
<view class="cv-griditem-label">
|
|
13
13
|
{{ label }}
|
|
14
14
|
</view>
|
|
15
15
|
</view>
|
|
@@ -150,33 +150,33 @@ export default {
|
|
|
150
150
|
</script>
|
|
151
151
|
<style>
|
|
152
152
|
/* #ifdef MP-WEIXIN */
|
|
153
|
-
.cv-
|
|
153
|
+
.cv-griditem-box {
|
|
154
154
|
display: contents;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/* #endif */
|
|
158
|
-
.cv-
|
|
158
|
+
.cv-griditem-box {
|
|
159
159
|
width: calc(100% - 10px);
|
|
160
160
|
margin: 5px 5px;
|
|
161
161
|
display: inline-flex;
|
|
162
162
|
flex-direction: column;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.cv-
|
|
165
|
+
.cv-griditem-img-area {
|
|
166
166
|
width: 100%;
|
|
167
167
|
max-width: 40px;
|
|
168
168
|
text-align: center;
|
|
169
169
|
margin: 0 auto;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.cv-
|
|
172
|
+
.cv-griditem-img-box {
|
|
173
173
|
width: 100%;
|
|
174
174
|
height: 0;
|
|
175
175
|
padding-bottom: 100%;
|
|
176
176
|
position: relative;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.cv-
|
|
179
|
+
.cv-griditem-img-main {
|
|
180
180
|
position: absolute;
|
|
181
181
|
width: 100%;
|
|
182
182
|
height: 100%;
|
|
@@ -200,12 +200,12 @@ export default {
|
|
|
200
200
|
left: 0%;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
.cv-
|
|
203
|
+
.cv-griditem-img {
|
|
204
204
|
width: 100%;
|
|
205
205
|
height: 100%;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.cv-
|
|
208
|
+
.cv-griditem-label {
|
|
209
209
|
font-size: 12px;
|
|
210
210
|
color: #666666;
|
|
211
211
|
text-align: center;
|