7d5431d8
梁灏
update some style
|
1
|
<template>
|
1ff55186
梁灏
optimize InputNum...
|
2
3
|
<Input-number :max="10" :min="1" :value="1"></Input-number>
<br><br>
|
b89a982e
梁灏
fixed #205
|
4
5
|
<i-input type="textarea" :autosize="true" placeholder="请输入..."></i-input>
<i-input type="textarea" :autosize="{minRows: 2,maxRows: 5}" placeholder="请输入..."></i-input>
|
731d69a2
梁灏
fixed #101
|
6
|
<i-input name="a" icon="ios-clock-outline" @on-focus="focus" @on-blur="blur" readonly style="width:200px;" :value.sync="v" @on-enter="enter" @on-click="iconclick" size="large" placeholder="请输入"></i-input>
|
0f822c9b
梁灏
add Input component
|
7
|
<i-input icon="ios-clock-outline" style="width:200px;" :value.sync="v" @on-enter="enter" placeholder="请输入"></i-input>
|
731d69a2
梁灏
fixed #101
|
8
|
<i-input name="b" icon="ios-clock-outline" style="width:200px;" :value.sync="v" @on-enter="enter" size="small" placeholder="请输入"></i-input>
|
0f822c9b
梁灏
add Input component
|
9
10
11
12
13
14
15
16
|
<br>
<br>
<i-input style="width:200px;" :value.sync="v" @on-enter="enter" size="large" placeholder="请输入"></i-input>
<i-input style="width:200px;" :value.sync="v" @on-enter="enter" placeholder="请输入"></i-input>
<i-input style="width:200px;" :value.sync="v" @on-enter="enter" @on-change="change" size="small" placeholder="请输入"></i-input>
{{ v }}
<br>
<br>
|
0a48ac45
梁灏
Input add readonl...
|
17
|
<i-input readonly placeholder="this is something" style="width:200px;" :value.sync="t" type="textarea" :autosize="autosize"></i-input>
|
0f822c9b
梁灏
add Input component
|
18
19
20
21
|
{{ t }}
<br>
<br>
<div style="width: 400px">
|
d3eee3f4
梁灏
fixed #123
|
22
|
<i-input :value.sync="v" type="password">
|
0f822c9b
梁灏
add Input component
|
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
|
<span slot="prepend">http://</span>
<span slot="append">
<i-button icon="ios-search"></i-button>
</span>
</i-input>
<br>
<i-input :value.sync="v">
<span slot="prepend">http://</span>
<span slot="append"><Icon type="ios-search"></Icon></span>
</i-input>
<br>
<i-input :value.sync="v" size="small">
<span slot="prepend">http://</span>
<span slot="append"><Icon type="ios-search"></Icon></span>
</i-input>
<br>
<i-input :value.sync="v" size="large">
<i-select :model.sync="select1" slot="prepend" style="width: 80px">
<i-option value="http">http://</i-option>
<i-option value="https">https://</i-option>
</i-select>
<i-select :model.sync="select2" slot="append" style="width: 70px">
<i-option value="com">.com</i-option>
<i-option value="cn">.cn</i-option>
<i-option value="net">.net</i-option>
<i-option value="io">.io</i-option>
</i-select>
</i-input>
<br>
<i-input :value.sync="v">
<i-select :model.sync="select1" slot="prepend" style="width: 80px">
<i-option value="http">http://</i-option>
<i-option value="https">https://</i-option>
</i-select>
<i-select :model.sync="select2" slot="append" style="width: 70px">
<i-option value="com">.com</i-option>
<i-option value="cn">.cn</i-option>
<i-option value="net">.net</i-option>
<i-option value="io">.io</i-option>
</i-select>
</i-input>
<br>
<i-input :value.sync="v" size="small">
<i-select :model.sync="select1" slot="prepend" style="width: 80px">
<i-option value="http">http://</i-option>
<i-option value="https">https://</i-option>
</i-select>
<i-select :model.sync="select2" slot="append" style="width: 70px">
<i-option value="com">.com</i-option>
<i-option value="cn">.cn</i-option>
<i-option value="net">.net</i-option>
<i-option value="io">.io</i-option>
</i-select>
</i-input>
|
3c01d81a
梁灏
fixed Modal bug,w...
|
78
79
80
|
<Input-number :value="2" size="small"></Input-number>
<Input-number :value="2"></Input-number>
<Input-number :value="2" size="large"></Input-number>
|
6c145a04
梁灏
fixed #77
|
81
|
<i-input type="password"></i-input>
|
0f822c9b
梁灏
add Input component
|
82
|
</div>
|
7d5431d8
梁灏
update some style
|
83
84
|
</template>
<script>
|
3c01d81a
梁灏
fixed Modal bug,w...
|
85
|
import { iInput, Icon, iButton, iSelect, iOption, InputNumber } from 'iview';
|
7d5431d8
梁灏
update some style
|
86
87
88
|
export default {
components: {
|
0f822c9b
梁灏
add Input component
|
89
90
91
92
|
iInput,
Icon,
iButton,
iSelect,
|
3c01d81a
梁灏
fixed Modal bug,w...
|
93
94
|
iOption,
InputNumber
|
7d5431d8
梁灏
update some style
|
95
96
|
},
props: {
|
0f822c9b
梁灏
add Input component
|
97
|
|
7d5431d8
梁灏
update some style
|
98
99
100
|
},
data () {
return {
|
0f822c9b
梁灏
add Input component
|
101
102
103
104
105
106
107
108
|
v: 'hello',
t: '',
autosize: {
minRows: 2,
maxRows: 5
},
select1: 'http',
select2: 'com'
|
7d5431d8
梁灏
update some style
|
109
110
111
|
}
},
computed: {
|
0f822c9b
梁灏
add Input component
|
112
|
|
7d5431d8
梁灏
update some style
|
113
114
|
},
methods: {
|
0f822c9b
梁灏
add Input component
|
115
116
117
118
119
120
121
122
|
enter () {
console.log(123)
},
iconclick () {
console.log('iconclicked')
},
change (val) {
console.log(val)
|
0a48ac45
梁灏
Input add readonl...
|
123
124
125
126
127
128
|
},
focus () {
this.$Message.info('focus');
},
blur () {
this.$Message.info('blur');
|
0f822c9b
梁灏
add Input component
|
129
|
}
|
7d5431d8
梁灏
update some style
|
130
131
132
|
}
}
</script>
|