@10yun/cv-mobile-ui 0.4.10 → 0.4.11
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 +1 -1
- package/ui-cv/{cv-picker-date/cv-picker-date.vue → cv-date-base/cv-date-base.vue} +7 -7
- package/ui-cv/{cv-picker-datetime/cv-picker-datetime.vue → cv-datetime-base/cv-datetime-base.vue} +4 -4
- package/ui-cv/{cv-picker-datetime5/cv-picker-datetime5.vue → cv-datetime5-base/cv-datetime5-base.vue} +0 -0
- package/ui-cv/cv-form-item/cv-form-item.vue +3 -1
- package/ui-cv/cv-input-digit/cv-input-digit.vue +2 -2
- package/ui-cv/cv-input-idcard/cv-input-idcard.vue +2 -2
- package/ui-cv/cv-input-number/cv-input-number.vue +2 -2
- package/ui-cv/cv-input-password/cv-input-password.vue +2 -2
- package/ui-cv/cv-input-text/cv-input-text.vue +2 -2
- package/ui-cv/cv-textarea/cv-textarea.vue +2 -1
- package/ui-cv/{cv-picker-time/cv-picker-time.vue → cv-time-base/cv-time-base.vue} +7 -7
- package/ui-cv/{cv-upload-img/cv-upload-img.vue → cv-upload-image/cv-upload-image.vue} +15 -16
- package/docs.md +0 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="cv-
|
|
2
|
+
<view class="cv-date-base">
|
|
3
3
|
<picker
|
|
4
|
-
class="cv-
|
|
4
|
+
class="cv-date-base-item"
|
|
5
5
|
mode="date"
|
|
6
6
|
:value="localVal"
|
|
7
7
|
:start="startDate"
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
:fields="fields"
|
|
12
12
|
@click="changeIconTop"
|
|
13
13
|
>
|
|
14
|
-
<view class="cv-
|
|
15
|
-
<view class="cv-
|
|
14
|
+
<view class="cv-date-base-text" v-if="localVal != ''">{{ localVal }}</view>
|
|
15
|
+
<view class="cv-date-base-placeholder" v-else>{{ placeholder }}</view>
|
|
16
16
|
</picker>
|
|
17
17
|
</view>
|
|
18
18
|
</template>
|
|
@@ -66,17 +66,17 @@ export default {
|
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<style>
|
|
69
|
-
.cv-
|
|
69
|
+
.cv-date-base {
|
|
70
70
|
min-height: 35px;
|
|
71
71
|
}
|
|
72
|
-
.cv-
|
|
72
|
+
.cv-date-base-item {
|
|
73
73
|
height: 35px;
|
|
74
74
|
line-height: 35px;
|
|
75
75
|
float: left;
|
|
76
76
|
margin-right: 10px;
|
|
77
77
|
width: 100%;
|
|
78
78
|
}
|
|
79
|
-
.cv-
|
|
79
|
+
.cv-date-base-placeholder {
|
|
80
80
|
color: grey;
|
|
81
81
|
}
|
|
82
82
|
</style>
|
package/ui-cv/{cv-picker-datetime/cv-picker-datetime.vue → cv-datetime-base/cv-datetime-base.vue}
RENAMED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<view class="cv-picker-item-placeholder" v-else>{{ placeholder }}</view>
|
|
16
16
|
</picker>
|
|
17
17
|
<picker
|
|
18
|
-
class="cv-
|
|
18
|
+
class="cv-time-base-item"
|
|
19
19
|
mode="time"
|
|
20
20
|
:value="localVal_time"
|
|
21
21
|
:start="startTime"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@click="changeIconTop"
|
|
25
25
|
@cancel="bindPickerCancel"
|
|
26
26
|
>
|
|
27
|
-
<view class="cv-
|
|
27
|
+
<view class="cv-time-base-text" v-if="localVal_time != ''">{{ localVal_time }}</view>
|
|
28
28
|
<view class="cv-picker-item-placeholder" v-else>{{ placeholder }}</view>
|
|
29
29
|
</picker>
|
|
30
30
|
</view>
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
min-height: 35px;
|
|
108
108
|
}
|
|
109
109
|
.cv-picker-date-item,
|
|
110
|
-
.cv-
|
|
110
|
+
.cv-time-base-item {
|
|
111
111
|
height: 35px;
|
|
112
112
|
line-height: 35px;
|
|
113
113
|
float: left;
|
|
@@ -116,7 +116,7 @@ export default {
|
|
|
116
116
|
margin-right: 10px;
|
|
117
117
|
min-width: 60px;
|
|
118
118
|
}
|
|
119
|
-
.cv-
|
|
119
|
+
.cv-time-base-item {
|
|
120
120
|
min-width: 50px;
|
|
121
121
|
margin-right: 10px;
|
|
122
122
|
}
|
|
File without changes
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
>
|
|
28
28
|
<text class="uni-error-message-text">{{ showMsg === 'undertext' ? msg : '' }}</text>
|
|
29
29
|
</view>
|
|
30
|
-
<view class="cv-form-item__tip"><slot name="tip"></slot></view>
|
|
30
|
+
<view class="cv-form-item__tip" v-if="$slots['tip']"><slot name="tip"></slot></view>
|
|
31
31
|
</view>
|
|
32
32
|
<view class="cv-form-item__line" v-if="localLine"></view>
|
|
33
33
|
</view>
|
|
@@ -470,6 +470,8 @@ export default {
|
|
|
470
470
|
min-height: 36px;
|
|
471
471
|
/* #endif */
|
|
472
472
|
flex: 1;
|
|
473
|
+
display: flex;
|
|
474
|
+
align-items: center;
|
|
473
475
|
}
|
|
474
476
|
|
|
475
477
|
.label-icon {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="cv-
|
|
2
|
+
<view class="cv-time-base">
|
|
3
3
|
<picker
|
|
4
|
-
class="cv-
|
|
4
|
+
class="cv-time-base-item"
|
|
5
5
|
mode="time"
|
|
6
6
|
:value="localVal"
|
|
7
7
|
:start="startTime"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
@cancel="bindPickerCancel"
|
|
11
11
|
@click="changeIconTop"
|
|
12
12
|
>
|
|
13
|
-
<view class="cv-
|
|
14
|
-
<view class="cv-
|
|
13
|
+
<view class="cv-time-base-text" v-if="localVal != ''">{{ localVal }}</view>
|
|
14
|
+
<view class="cv-time-base-placeholder" v-else>{{ placeholder }}</view>
|
|
15
15
|
</picker>
|
|
16
16
|
</view>
|
|
17
17
|
</template>
|
|
@@ -56,17 +56,17 @@ export default {
|
|
|
56
56
|
</script>
|
|
57
57
|
|
|
58
58
|
<style>
|
|
59
|
-
.cv-
|
|
59
|
+
.cv-time-base {
|
|
60
60
|
min-height: 35px;
|
|
61
61
|
}
|
|
62
|
-
.cv-
|
|
62
|
+
.cv-time-base-item {
|
|
63
63
|
height: 35px;
|
|
64
64
|
line-height: 35px;
|
|
65
65
|
float: left;
|
|
66
66
|
margin-right: 10px;
|
|
67
67
|
width: 100%;
|
|
68
68
|
}
|
|
69
|
-
.cv-
|
|
69
|
+
.cv-time-base-placeholder {
|
|
70
70
|
color: grey;
|
|
71
71
|
}
|
|
72
72
|
</style>
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
2
|
+
<view
|
|
3
|
+
class="cv-upload-img-wrap"
|
|
4
|
+
:style="{
|
|
5
|
+
marginTop: uploadType == 'one' ? '5px' : ''
|
|
6
|
+
}"
|
|
7
|
+
>
|
|
3
8
|
<block v-if="uploadType == 'big'">
|
|
4
9
|
<view class="cv-upload-imgbig_view" @tap="imgChoose" v-if="localSrc == ''">
|
|
5
10
|
<view class="cv-upload-imgbig-left">
|
|
6
|
-
<view class="cv-upload-imgbig-left__title">{{
|
|
11
|
+
<view class="cv-upload-imgbig-left__title">{{ uploadTitle }}</view>
|
|
7
12
|
<view>{{ uploadTip.dimension }}</view>
|
|
8
13
|
<view>{{ uploadTip.format }}</view>
|
|
9
14
|
<view>{{ uploadTip.size }}</view>
|
|
@@ -37,7 +42,6 @@
|
|
|
37
42
|
</view>
|
|
38
43
|
</block>
|
|
39
44
|
<block v-else>
|
|
40
|
-
<view class="cv-upload-img-hd">{{ label }}</view>
|
|
41
45
|
<view class="cv-upload-imgmore_img">
|
|
42
46
|
<block v-if="localSrc != ''">
|
|
43
47
|
<block v-for="(item, index) in localSrc" :key="index">
|
|
@@ -76,7 +80,7 @@ export default {
|
|
|
76
80
|
name: 'cvUploadImg',
|
|
77
81
|
components: {},
|
|
78
82
|
props: {
|
|
79
|
-
|
|
83
|
+
uploadTitle: {
|
|
80
84
|
type: [String],
|
|
81
85
|
default: ''
|
|
82
86
|
},
|
|
@@ -95,11 +99,6 @@ export default {
|
|
|
95
99
|
};
|
|
96
100
|
}
|
|
97
101
|
},
|
|
98
|
-
// 提示
|
|
99
|
-
tip: {
|
|
100
|
-
type: String,
|
|
101
|
-
default: ''
|
|
102
|
-
},
|
|
103
102
|
//默认输入框
|
|
104
103
|
value: {
|
|
105
104
|
type: [Array, Object, String],
|
|
@@ -358,8 +357,7 @@ export default {
|
|
|
358
357
|
</script>
|
|
359
358
|
<style>
|
|
360
359
|
.cv-upload-img-wrap {
|
|
361
|
-
|
|
362
|
-
background: #fff !important;
|
|
360
|
+
width: 100%;
|
|
363
361
|
}
|
|
364
362
|
|
|
365
363
|
.cv-upload-img-hd {
|
|
@@ -409,7 +407,7 @@ export default {
|
|
|
409
407
|
height: 66px;
|
|
410
408
|
border: 1px dashed #99999999;
|
|
411
409
|
border-radius: 10px;
|
|
412
|
-
margin-bottom:
|
|
410
|
+
margin-bottom: 5px;
|
|
413
411
|
position: relative;
|
|
414
412
|
}
|
|
415
413
|
|
|
@@ -427,14 +425,15 @@ export default {
|
|
|
427
425
|
padding: 0px !important;
|
|
428
426
|
}
|
|
429
427
|
.cv-upload-imgbig_view {
|
|
430
|
-
height:
|
|
431
|
-
padding:
|
|
428
|
+
height: 170px;
|
|
429
|
+
padding: 10px 20px;
|
|
432
430
|
display: flex;
|
|
433
|
-
border:
|
|
431
|
+
border: 1px dashed #c7c7c7;
|
|
434
432
|
color: #888888;
|
|
435
|
-
border-radius:
|
|
433
|
+
border-radius: 5px;
|
|
436
434
|
justify-content: space-between;
|
|
437
435
|
font-size: 24rpx;
|
|
436
|
+
margin-bottom: 5px;
|
|
438
437
|
}
|
|
439
438
|
.cv-upload-imgbig-left {
|
|
440
439
|
display: flex;
|