@10yun/cv-mobile-ui 0.5.11 → 0.5.13
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 +2 -2
- package/ui-cv/cv-cell-row/cv-cell-row.vue +219 -0
- package/ui-cv/cv-date-base/cv-date-base.vue +4 -3
- package/ui-cv/cv-datetime-base/cv-datetime-base.vue +4 -3
- package/ui-cv/{cv-datetime5-base/cv-datetime5-base.vue → cv-datetime-linkage/cv-datetime-linkage.vue} +5 -3
- package/ui-cv/cv-dialog-full/cv-dialog-full.vue +1 -0
- package/ui-cv/cv-form-item/cv-form-item.vue +16 -8
- package/ui-cv/cv-input-digit/cv-input-digit.vue +1 -37
- package/ui-cv/cv-input-idcard/cv-input-idcard.vue +1 -27
- package/ui-cv/cv-input-number/cv-input-number.vue +1 -37
- package/ui-cv/cv-input-password/cv-input-password.vue +4 -41
- package/ui-cv/cv-input-text/cv-input-text.vue +1 -36
- package/ui-cv/cv-input-text/input.css +46 -0
- package/ui-cv/cv-markdown-show/cv-markdown-show.vue +1 -1
- package/ui-cv/cv-markdown-show/lib/11.8.0-es/highlight.min.js +1205 -0
- package/ui-cv/cv-picker1/cv-picker1.vue +3 -0
- package/ui-cv/cv-picker2/cv-picker2.vue +3 -0
- package/ui-cv/cv-picker3/cv-picker3.vue +3 -0
- package/ui-cv/cv-textarea/cv-textarea.vue +1 -1
- package/ui-cv/cv-time-base/cv-time-base.vue +4 -3
- package/ui-cv/cv-cell/cv-cell.vue +0 -256
- package/ui-cv/cv-form-merge/cv-form-merge.vue +0 -30
- package/ui-cv/cv-markdown-show/lib/highlight/uni-highlight.min.js +0 -9122
- package/ui-cv/cv-nav-row/cv-nav-row.vue +0 -256
package/package.json
CHANGED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="cv-cell-box">
|
|
3
|
+
<view class="cv-cell-main-box" :class="isBottom && 'cv-cell-main-big'" @tap="bingClick">
|
|
4
|
+
<view class="cv-cell-left-box">
|
|
5
|
+
<view class="cv-cell-left-icon" v-if="leftIcon || $slots.leftIcon">
|
|
6
|
+
<slot name="leftIcon">
|
|
7
|
+
<image class="cv-cell-left-image" :src="leftIcon" mode="aspectFit" />
|
|
8
|
+
</slot>
|
|
9
|
+
</view>
|
|
10
|
+
<view class="cv-cell-left-content">
|
|
11
|
+
<view class="cv-cell-left-content-top" v-if="leftTop || $slots.leftTop">
|
|
12
|
+
<slot name="leftBottom">{{ leftTop }}</slot>
|
|
13
|
+
</view>
|
|
14
|
+
<view class="cv-cell-left-content-bottom" v-if="leftBottom || $slots.leftBottom">
|
|
15
|
+
<slot name="leftBottom">{{ leftBottom }}</slot>
|
|
16
|
+
</view>
|
|
17
|
+
</view>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="cv-cell-right-box">
|
|
20
|
+
<view class="cv-cell-right-content">
|
|
21
|
+
<view class="cv-cell-right-content-top" v-if="rightTop || $slots.rightTop">
|
|
22
|
+
<slot name="rightBottom">{{ rightTop }}</slot>
|
|
23
|
+
</view>
|
|
24
|
+
<view class="cv-cell-right-content-bottom" v-if="rightBottom || $slots.rightBottom">
|
|
25
|
+
<slot name="rightBottom">{{ rightBottom }}</slot>
|
|
26
|
+
</view>
|
|
27
|
+
</view>
|
|
28
|
+
<view class="cv-cell-right-icon" v-if="rightIcon || $slots.rightIcon">
|
|
29
|
+
<slot name="rightIcon">
|
|
30
|
+
<view class="cv-cell-right-icon-top"></view>
|
|
31
|
+
<view class="cv-cell-right-icon-bottom"></view>
|
|
32
|
+
</slot>
|
|
33
|
+
</view>
|
|
34
|
+
</view>
|
|
35
|
+
</view>
|
|
36
|
+
</view>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script>
|
|
40
|
+
export default {
|
|
41
|
+
emits: ['click'],
|
|
42
|
+
name: 'cvCell',
|
|
43
|
+
options: {
|
|
44
|
+
addGlobalClass: true
|
|
45
|
+
},
|
|
46
|
+
props: {
|
|
47
|
+
leftIcon: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ''
|
|
50
|
+
},
|
|
51
|
+
leftTop: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: ''
|
|
54
|
+
},
|
|
55
|
+
leftBottom: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: ''
|
|
58
|
+
},
|
|
59
|
+
rightTop: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: ''
|
|
62
|
+
},
|
|
63
|
+
rightBottom: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: ''
|
|
66
|
+
},
|
|
67
|
+
rightIcon: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
computed: {
|
|
73
|
+
isBottom() {
|
|
74
|
+
return this.leftBottom || this.rightBottom || this.$slots.leftBottom || this.$slots.rightBottom;
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
data() {
|
|
78
|
+
return {};
|
|
79
|
+
},
|
|
80
|
+
created() {
|
|
81
|
+
// console.log(this.$slots);
|
|
82
|
+
},
|
|
83
|
+
methods: {
|
|
84
|
+
bingClick() {
|
|
85
|
+
this.$emit('click');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
</script>
|
|
90
|
+
<style>
|
|
91
|
+
.cv-cell-box {
|
|
92
|
+
height: auto;
|
|
93
|
+
background-color: #ffffff;
|
|
94
|
+
padding-left: 10px;
|
|
95
|
+
}
|
|
96
|
+
.cv-cell-main-box {
|
|
97
|
+
padding: 5px 10px 5px 0;
|
|
98
|
+
border-bottom: solid 1px #f1f1f1;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: row;
|
|
101
|
+
justify-content: space-between;
|
|
102
|
+
}
|
|
103
|
+
/* #ifndef MP-WEIXIN */
|
|
104
|
+
.cv-cell-box:last-child .cv-cell-main-box {
|
|
105
|
+
border-bottom: none;
|
|
106
|
+
}
|
|
107
|
+
/* #endif */
|
|
108
|
+
/* #ifdef MP-WEIXIN */
|
|
109
|
+
.cv-cell-box:last-child .cv-cell-main-box {
|
|
110
|
+
border-bottom: none;
|
|
111
|
+
}
|
|
112
|
+
/* #endif */
|
|
113
|
+
.cv-cell-main-big {
|
|
114
|
+
padding: 9px 10px 9px 0;
|
|
115
|
+
}
|
|
116
|
+
.cv-cell-left-box {
|
|
117
|
+
width: 50%;
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: row;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
.cv-cell-left-icon {
|
|
123
|
+
width: 20px;
|
|
124
|
+
height: 40px;
|
|
125
|
+
line-height: 40px;
|
|
126
|
+
padding-right: 10px;
|
|
127
|
+
}
|
|
128
|
+
.cv-cell-left-image {
|
|
129
|
+
width: 20px;
|
|
130
|
+
height: 40px;
|
|
131
|
+
}
|
|
132
|
+
.cv-cell-left-content {
|
|
133
|
+
padding-left: 0px;
|
|
134
|
+
width: 100%;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
justify-content: center;
|
|
138
|
+
align-items: flex-start;
|
|
139
|
+
}
|
|
140
|
+
.cv-cell-left-content-top {
|
|
141
|
+
font-size: 15px;
|
|
142
|
+
line-height: 22px;
|
|
143
|
+
height: 22px;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
}
|
|
146
|
+
.cv-cell-left-content-bottom {
|
|
147
|
+
font-size: 12px;
|
|
148
|
+
color: #999999;
|
|
149
|
+
line-height: 18px;
|
|
150
|
+
height: 18px;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
}
|
|
153
|
+
/**右边 */
|
|
154
|
+
.cv-cell-right-box {
|
|
155
|
+
width: 50%;
|
|
156
|
+
display: table;
|
|
157
|
+
height: 40px;
|
|
158
|
+
padding-left: 10px;
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: row;
|
|
161
|
+
align-items: center;
|
|
162
|
+
}
|
|
163
|
+
.cv-cell-right-content {
|
|
164
|
+
width: calc(100% - 20px);
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-direction: column;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
align-items: flex-end;
|
|
169
|
+
}
|
|
170
|
+
.cv-cell-right-content-top {
|
|
171
|
+
font-size: 14px;
|
|
172
|
+
color: #666666;
|
|
173
|
+
line-height: 20px;
|
|
174
|
+
height: 20px;
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
text-align: right;
|
|
177
|
+
}
|
|
178
|
+
.cv-cell-right-content-bottom {
|
|
179
|
+
font-size: 14px;
|
|
180
|
+
color: #999999;
|
|
181
|
+
line-height: 20px;
|
|
182
|
+
height: 20px;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
text-align: right;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.cv-cell-main-right-intact {
|
|
188
|
+
font-size: 14px;
|
|
189
|
+
color: #999999;
|
|
190
|
+
display: table-cell;
|
|
191
|
+
vertical-align: middle;
|
|
192
|
+
line-height: 20px;
|
|
193
|
+
height: 40px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
max-height: 40px;
|
|
196
|
+
text-align: right;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.cv-cell-right-icon {
|
|
200
|
+
height: 40px;
|
|
201
|
+
width: 20px;
|
|
202
|
+
}
|
|
203
|
+
.cv-cell-right-icon-top,
|
|
204
|
+
.cv-cell-right-icon-bottom {
|
|
205
|
+
width: 10px;
|
|
206
|
+
height: 2px;
|
|
207
|
+
background-color: #c1c1c1;
|
|
208
|
+
position: relative;
|
|
209
|
+
left: 10px;
|
|
210
|
+
}
|
|
211
|
+
.cv-cell-right-icon-top {
|
|
212
|
+
transform: rotate(45deg);
|
|
213
|
+
top: 16px;
|
|
214
|
+
}
|
|
215
|
+
.cv-cell-right-icon-bottom {
|
|
216
|
+
transform: rotate(-45deg);
|
|
217
|
+
top: 20px;
|
|
218
|
+
}
|
|
219
|
+
</style>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
<script>
|
|
20
20
|
export default {
|
|
21
|
-
name: '
|
|
21
|
+
name: 'cvDateBase',
|
|
22
22
|
props: {
|
|
23
23
|
//默认输入框
|
|
24
24
|
value: {
|
|
@@ -89,13 +89,14 @@ export default {
|
|
|
89
89
|
<style>
|
|
90
90
|
.cv-date-base {
|
|
91
91
|
min-height: 35px;
|
|
92
|
+
display: flex;
|
|
93
|
+
flex: 1;
|
|
92
94
|
}
|
|
93
95
|
.cv-date-base-item {
|
|
94
96
|
height: 35px;
|
|
95
97
|
line-height: 35px;
|
|
96
|
-
float: left;
|
|
97
|
-
margin-right: 10px;
|
|
98
98
|
width: 100%;
|
|
99
|
+
margin-left: 20px;
|
|
99
100
|
}
|
|
100
101
|
.cv-date-base-placeholder {
|
|
101
102
|
color: grey;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
<script>
|
|
33
33
|
export default {
|
|
34
|
-
name: '
|
|
34
|
+
name: 'cvDatetimeBase',
|
|
35
35
|
props: {
|
|
36
36
|
//默认输入框
|
|
37
37
|
value: {
|
|
@@ -129,16 +129,17 @@ export default {
|
|
|
129
129
|
<style>
|
|
130
130
|
.cv-picker-date-time {
|
|
131
131
|
min-height: 35px;
|
|
132
|
+
display: flex;
|
|
133
|
+
flex: 1;
|
|
132
134
|
}
|
|
133
135
|
.cv-picker-date-item,
|
|
134
136
|
.cv-time-base-item {
|
|
135
137
|
height: 35px;
|
|
136
138
|
line-height: 35px;
|
|
137
|
-
float: left;
|
|
138
139
|
display: flex;
|
|
139
140
|
width: auto;
|
|
140
|
-
margin-right: 10px;
|
|
141
141
|
min-width: 60px;
|
|
142
|
+
margin-left: 20px;
|
|
142
143
|
}
|
|
143
144
|
.cv-time-base-item {
|
|
144
145
|
min-width: 50px;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
<script>
|
|
21
21
|
export default {
|
|
22
|
-
name: '
|
|
22
|
+
name: 'cvDatetimeLinkage',
|
|
23
23
|
props: {
|
|
24
24
|
//默认输入框内容
|
|
25
25
|
value: {
|
|
@@ -469,15 +469,17 @@ export default {
|
|
|
469
469
|
<style>
|
|
470
470
|
.cv-picker {
|
|
471
471
|
min-height: 35px;
|
|
472
|
+
display: flex;
|
|
473
|
+
flex: 1;
|
|
472
474
|
}
|
|
473
475
|
.cv-picker-item {
|
|
474
476
|
height: 35px;
|
|
475
477
|
line-height: 35px;
|
|
476
|
-
float: left;
|
|
477
478
|
/* display: flex;微信小程序不加这个 */
|
|
478
|
-
|
|
479
|
+
|
|
479
480
|
width: 100%;
|
|
480
481
|
flex-wrap: wrap;
|
|
482
|
+
margin-left: 20px;
|
|
481
483
|
}
|
|
482
484
|
|
|
483
485
|
.cv-picker-item-placeholder {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<view class="cv-form-item__inner" :class="['is-direction-' + labelPos]">
|
|
8
8
|
<view class="cv-form-item__label" :style="{ width: labelWid, justifyContent: justifyContent }">
|
|
9
9
|
<slot name="left">
|
|
10
|
-
<
|
|
10
|
+
<cv-icons v-if="leftIcon" class="label-icon" size="16" :type="leftIcon" :color="iconColor" />
|
|
11
11
|
<text v-if="required" class="is-required">*</text>
|
|
12
12
|
<text class="label-text">{{ label }}</text>
|
|
13
13
|
<view v-if="label" class="label-seat"></view>
|
|
@@ -190,6 +190,7 @@ export default {
|
|
|
190
190
|
// fix by mehaotian 修改不修改的情况,动态值不检验的问题
|
|
191
191
|
this.form.formData[this.name] = this.form._getValue(this.name, '');
|
|
192
192
|
}
|
|
193
|
+
console.log(this.$slots);
|
|
193
194
|
},
|
|
194
195
|
mounted() {
|
|
195
196
|
if (this.form) {
|
|
@@ -433,14 +434,20 @@ export default {
|
|
|
433
434
|
/* padding-bottom: 22px; */
|
|
434
435
|
}
|
|
435
436
|
|
|
436
|
-
.is-direction-left {
|
|
437
|
+
.cv-form-item__inner.is-direction-left {
|
|
437
438
|
flex-direction: row;
|
|
438
439
|
}
|
|
439
|
-
|
|
440
|
-
.is-direction-top {
|
|
440
|
+
.cv-form-item__inner.is-direction-top {
|
|
441
441
|
flex-direction: column;
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
.cv-form-item__inner.is-direction-top .cv-form-item__label {
|
|
444
|
+
padding: 0;
|
|
445
|
+
padding-top: 5px;
|
|
446
|
+
min-height: 20px;
|
|
447
|
+
}
|
|
448
|
+
.cv-form-item__inner.is-direction-top .cv-form-item__content {
|
|
449
|
+
min-height: 30px;
|
|
450
|
+
}
|
|
444
451
|
.cv-form-item__label {
|
|
445
452
|
/* #ifndef APP-NVUE */
|
|
446
453
|
display: flex;
|
|
@@ -456,19 +463,19 @@ export default {
|
|
|
456
463
|
}
|
|
457
464
|
|
|
458
465
|
.cv-form-item__label .label-text {
|
|
459
|
-
font-size:
|
|
466
|
+
font-size: 15px;
|
|
460
467
|
color: #333;
|
|
468
|
+
font-weight: 500;
|
|
461
469
|
}
|
|
462
470
|
|
|
463
471
|
.cv-form-item__label .label-seat {
|
|
464
472
|
margin-right: 5px;
|
|
465
473
|
}
|
|
466
|
-
|
|
467
474
|
.cv-form-item__content {
|
|
468
475
|
/* #ifndef APP-NVUE */
|
|
469
476
|
width: 100%;
|
|
470
477
|
box-sizing: border-box;
|
|
471
|
-
min-height:
|
|
478
|
+
min-height: 45px;
|
|
472
479
|
/* #endif */
|
|
473
480
|
flex: 1;
|
|
474
481
|
display: flex;
|
|
@@ -536,6 +543,7 @@ export default {
|
|
|
536
543
|
color: rgba(0, 0, 0, 0.4);
|
|
537
544
|
font-size: 12px;
|
|
538
545
|
padding-bottom: 5px;
|
|
546
|
+
margin-top: -6px;
|
|
539
547
|
}
|
|
540
548
|
|
|
541
549
|
.cv-form-item__line {
|
|
@@ -107,41 +107,5 @@ export default {
|
|
|
107
107
|
};
|
|
108
108
|
</script>
|
|
109
109
|
<style>
|
|
110
|
-
|
|
111
|
-
min-height: 36px;
|
|
112
|
-
line-height: 36px;
|
|
113
|
-
font-size: 14px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.cv-input__placeholder {
|
|
117
|
-
font-size: 14px;
|
|
118
|
-
}
|
|
119
|
-
.cv-input__right {
|
|
120
|
-
height: 16px;
|
|
121
|
-
position: absolute;
|
|
122
|
-
bottom: 10px;
|
|
123
|
-
right: 0px;
|
|
124
|
-
z-index: 2;
|
|
125
|
-
}
|
|
126
|
-
.cv-input__clear {
|
|
127
|
-
width: 16px;
|
|
128
|
-
height: 16px;
|
|
129
|
-
border-radius: 50%;
|
|
130
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
131
|
-
font-size: 8px;
|
|
132
|
-
line-height: 16px;
|
|
133
|
-
text-align: center;
|
|
134
|
-
color: #fff;
|
|
135
|
-
float: left;
|
|
136
|
-
margin-left: 10px;
|
|
137
|
-
}
|
|
138
|
-
.cv-input__append {
|
|
139
|
-
color: rgba(0, 0, 0, 0.4);
|
|
140
|
-
width: 25px;
|
|
141
|
-
text-align: center;
|
|
142
|
-
overflow: hidden;
|
|
143
|
-
height: 16px;
|
|
144
|
-
font-size: 12px;
|
|
145
|
-
line-height: 16px;
|
|
146
|
-
}
|
|
110
|
+
@import '../cv-input-text/input.css';
|
|
147
111
|
</style>
|
|
@@ -102,31 +102,5 @@ export default {
|
|
|
102
102
|
};
|
|
103
103
|
</script>
|
|
104
104
|
<style>
|
|
105
|
-
|
|
106
|
-
min-height: 36px;
|
|
107
|
-
line-height: 36px;
|
|
108
|
-
font-size: 14px;
|
|
109
|
-
}
|
|
110
|
-
.cv-input__placeholder {
|
|
111
|
-
font-size: 14px;
|
|
112
|
-
}
|
|
113
|
-
.cv-input__right {
|
|
114
|
-
height: 16px;
|
|
115
|
-
position: absolute;
|
|
116
|
-
bottom: 10px;
|
|
117
|
-
right: 0px;
|
|
118
|
-
z-index: 2;
|
|
119
|
-
}
|
|
120
|
-
.cv-input__clear {
|
|
121
|
-
width: 16px;
|
|
122
|
-
height: 16px;
|
|
123
|
-
border-radius: 50%;
|
|
124
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
125
|
-
font-size: 8px;
|
|
126
|
-
line-height: 16px;
|
|
127
|
-
text-align: center;
|
|
128
|
-
color: #fff;
|
|
129
|
-
float: left;
|
|
130
|
-
margin-left: 10px;
|
|
131
|
-
}
|
|
105
|
+
@import '../cv-input-text/input.css';
|
|
132
106
|
</style>
|
|
@@ -106,42 +106,6 @@ export default {
|
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
</script>
|
|
109
|
-
|
|
110
109
|
<style>
|
|
111
|
-
|
|
112
|
-
min-height: 36px;
|
|
113
|
-
line-height: 36px;
|
|
114
|
-
font-size: 14px;
|
|
115
|
-
}
|
|
116
|
-
.cv-input__placeholder {
|
|
117
|
-
font-size: 14px;
|
|
118
|
-
}
|
|
119
|
-
.cv-input__right {
|
|
120
|
-
height: 16px;
|
|
121
|
-
position: absolute;
|
|
122
|
-
bottom: 10px;
|
|
123
|
-
right: 0px;
|
|
124
|
-
z-index: 2;
|
|
125
|
-
}
|
|
126
|
-
.cv-input__clear {
|
|
127
|
-
width: 16px;
|
|
128
|
-
height: 16px;
|
|
129
|
-
border-radius: 50%;
|
|
130
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
131
|
-
font-size: 8px;
|
|
132
|
-
line-height: 16px;
|
|
133
|
-
text-align: center;
|
|
134
|
-
color: #fff;
|
|
135
|
-
float: left;
|
|
136
|
-
margin-left: 10px;
|
|
137
|
-
}
|
|
138
|
-
.cv-input__append {
|
|
139
|
-
color: rgba(0, 0, 0, 0.4);
|
|
140
|
-
width: 25px;
|
|
141
|
-
text-align: center;
|
|
142
|
-
overflow: hidden;
|
|
143
|
-
height: 16px;
|
|
144
|
-
font-size: 12px;
|
|
145
|
-
line-height: 16px;
|
|
146
|
-
}
|
|
110
|
+
@import '../cv-input-text/input.css';
|
|
147
111
|
</style>
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
<!-- 清空 -->
|
|
18
18
|
<view class="cv-input__clear" @click="onEmpty" v-if="clearable == true && localVal != ''">X</view>
|
|
19
19
|
<!-- 眼睛-->
|
|
20
|
-
<
|
|
20
|
+
<cv-icons
|
|
21
21
|
class="cv-input__eyes"
|
|
22
22
|
v-if="localVal != '' && passwordIcon"
|
|
23
|
-
:type="showPassword ? '
|
|
23
|
+
:type="showPassword ? 'base-eyeslash-fill' : 'base-eye-fill'"
|
|
24
24
|
:size="18"
|
|
25
25
|
color="rgba(0, 0, 0, 0.4)"
|
|
26
26
|
@click="onEyes"
|
|
27
|
-
></
|
|
27
|
+
></cv-icons>
|
|
28
28
|
</view>
|
|
29
29
|
</view>
|
|
30
30
|
</template>
|
|
@@ -120,42 +120,5 @@ export default {
|
|
|
120
120
|
};
|
|
121
121
|
</script>
|
|
122
122
|
<style>
|
|
123
|
-
|
|
124
|
-
min-height: 36px;
|
|
125
|
-
line-height: 36px;
|
|
126
|
-
font-size: 14px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.cv-input__placeholder {
|
|
130
|
-
font-size: 14px;
|
|
131
|
-
}
|
|
132
|
-
.cv-input__right {
|
|
133
|
-
height: 16px;
|
|
134
|
-
position: absolute;
|
|
135
|
-
bottom: 10px;
|
|
136
|
-
right: 0px;
|
|
137
|
-
z-index: 2;
|
|
138
|
-
}
|
|
139
|
-
.cv-input__clear {
|
|
140
|
-
width: 16px;
|
|
141
|
-
height: 16px;
|
|
142
|
-
border-radius: 50%;
|
|
143
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
144
|
-
font-size: 8px;
|
|
145
|
-
line-height: 16px;
|
|
146
|
-
text-align: center;
|
|
147
|
-
color: #fff;
|
|
148
|
-
float: left;
|
|
149
|
-
margin-left: 10px;
|
|
150
|
-
}
|
|
151
|
-
.cv-input__eyes {
|
|
152
|
-
color: rgba(0, 0, 0, 0.4);
|
|
153
|
-
width: 25px;
|
|
154
|
-
text-align: center;
|
|
155
|
-
overflow: hidden;
|
|
156
|
-
height: 16px;
|
|
157
|
-
font-size: 12px;
|
|
158
|
-
line-height: 16px;
|
|
159
|
-
padding: 0 5px;
|
|
160
|
-
}
|
|
123
|
+
@import '../cv-input-text/input.css';
|
|
161
124
|
</style>
|
|
@@ -113,40 +113,5 @@ export default {
|
|
|
113
113
|
};
|
|
114
114
|
</script>
|
|
115
115
|
<style>
|
|
116
|
-
.
|
|
117
|
-
min-height: 36px;
|
|
118
|
-
line-height: 36px;
|
|
119
|
-
font-size: 14px;
|
|
120
|
-
}
|
|
121
|
-
.cv-input__placeholder {
|
|
122
|
-
font-size: 14px;
|
|
123
|
-
}
|
|
124
|
-
.cv-input__right {
|
|
125
|
-
height: 16px;
|
|
126
|
-
position: absolute;
|
|
127
|
-
bottom: 10px;
|
|
128
|
-
right: 0px;
|
|
129
|
-
z-index: 2;
|
|
130
|
-
}
|
|
131
|
-
.cv-input__clear {
|
|
132
|
-
width: 16px;
|
|
133
|
-
height: 16px;
|
|
134
|
-
border-radius: 50%;
|
|
135
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
136
|
-
font-size: 8px;
|
|
137
|
-
line-height: 16px;
|
|
138
|
-
text-align: center;
|
|
139
|
-
color: #fff;
|
|
140
|
-
float: left;
|
|
141
|
-
margin-left: 10px;
|
|
142
|
-
}
|
|
143
|
-
.cv-input__append {
|
|
144
|
-
color: rgba(0, 0, 0, 0.4);
|
|
145
|
-
width: 25px;
|
|
146
|
-
text-align: center;
|
|
147
|
-
overflow: hidden;
|
|
148
|
-
height: 16px;
|
|
149
|
-
font-size: 12px;
|
|
150
|
-
line-height: 16px;
|
|
151
|
-
}
|
|
116
|
+
@import './input.css';
|
|
152
117
|
</style>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.cv-input__content {
|
|
2
|
+
/* min-height: 28px; */
|
|
3
|
+
/* line-height: 36px; */
|
|
4
|
+
font-size: 15px;
|
|
5
|
+
}
|
|
6
|
+
.cv-input__placeholder {
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
}
|
|
9
|
+
.cv-input__right {
|
|
10
|
+
height: 16px;
|
|
11
|
+
position: absolute;
|
|
12
|
+
bottom: 10px;
|
|
13
|
+
right: 0px;
|
|
14
|
+
z-index: 2;
|
|
15
|
+
}
|
|
16
|
+
.cv-input__clear {
|
|
17
|
+
width: 16px;
|
|
18
|
+
height: 16px;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
21
|
+
font-size: 8px;
|
|
22
|
+
line-height: 16px;
|
|
23
|
+
text-align: center;
|
|
24
|
+
color: #fff;
|
|
25
|
+
float: left;
|
|
26
|
+
margin-left: 10px;
|
|
27
|
+
}
|
|
28
|
+
.cv-input__append {
|
|
29
|
+
color: rgba(0, 0, 0, 0.4);
|
|
30
|
+
width: 25px;
|
|
31
|
+
text-align: center;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
height: 16px;
|
|
34
|
+
font-size: 13px;
|
|
35
|
+
line-height: 16px;
|
|
36
|
+
}
|
|
37
|
+
.cv-input__eyes {
|
|
38
|
+
color: rgba(0, 0, 0, 0.4);
|
|
39
|
+
width: 25px;
|
|
40
|
+
text-align: center;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
height: 16px;
|
|
43
|
+
font-size: 13px;
|
|
44
|
+
line-height: 16px;
|
|
45
|
+
padding: 0 5px;
|
|
46
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<script setup>
|
|
9
9
|
import { ref, computed } from 'vue';
|
|
10
10
|
import MarkdownIt from './lib/markdown-it.min.js';
|
|
11
|
-
import hljs from './lib/
|
|
11
|
+
import hljs from './lib/11.8.0-es/highlight.min.js';
|
|
12
12
|
import './lib/highlight/atom-one-dark.css';
|
|
13
13
|
import parseHtml from './lib/html-parser.js';
|
|
14
14
|
const props = defineProps({
|