-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
48 lines (45 loc) · 950 Bytes
/
App.vue
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
<template>
<div id="app">
<div>
普通按钮:<hm-button>按钮</hm-button>
</div>
<div>
primary按钮:<hm-button type='primary'>primary</hm-button>
</div>
<div>
success按钮:<hm-button type='success'>success</hm-button>
</div>
<div>
普通输入框:<hm-input placeholder="请输入内容" v-model="username"></hm-input>
</div>
<div>
密码输入框:<hm-input placeholder="请输入内容" type= 'password'></hm-input>
</div>
<div>
禁用输入框:<hm-input placeholder="请输入内容" disabled></hm-input>
</div>
<div>
<hm-switch v-model="active"></hm-switch>
</div>
</div>
</template>
<script>
export default {
data () {
return {
username: '',
active: false
}
}
}
</script>
<style lang="scss">
#app{
div {
margin: 5px 0px 5px 20px;
}
.hm-input {
width: 200px;
}
}
</style>