1
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
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
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
| <template>
| <view>
| <view class="main">
| <view class="title item-height">{{titleText}}</view>
| <view class="input item-height">
| <input type="text" :placeholder="placeholderText" placeholder-style="font-size:28rpx" v-model="val">
| </view>
| </view>
| </view>
| </template>
|
| <script>
| export default {
| name:"y-input",
| props: {
| title: {
| type: String,
| default: ''
| },
| inputVal: {
| type: String,
| default: ''
| }
| },
| computed: {
| titleText() {
| return this.title
| },
| placeholderText() {
| return this.placeholder
| },
| // val() {
| // return this.inputVal || t("uni-popup.inputVal")
| // }
| },
| data() {
| return {
| val:''
| };
| }
| }
| </script>
|
| <style>
| .main {
| width: 98%;
| min-height: 100rpx;
| background-color: #fff;
| margin: 1%;
| border-radius: 5rpx;
| box-shadow: 0 0 10upx rgba(0, 0, 0, 0.1);
| }
| .title {
| font-size: 32rpx;
| font-weight: bold;
| font-family: Arial, Helvetica, sans-serif;
| text-indent: 1em;
| letter-spacing: 8rpx;
| color: #303133;
| }
| .input {
| font-size: 28rpx;
| color: #606266;
|
| }
| .input input{
| width: 96%;
| margin-left: 2%;
| margin-right: 1%;
| border-radius: 5rpx;
| border: 1px solid #EBEDF0;
| background-color: #FAFAFA;
| /* box-shadow: 0 0 10upx rgba(0, 0, 0, 0.2); */
| }
| .item-height {
| height: 50rpx;
| line-height: 50rpx;
| }
| </style>
|
|