demo.vue
1.16 KB
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 lang="html">
<div style="padding: 20px">
<x-button disabled class="disbaled-btn">确定disabled</x-button>
<x-button class="default-btn">确定default</x-button>
<x-button class="active-btn">确定active</x-button>
<divider> line </divider>
<flexbox>
<flexbox-item><x-button plain class="line-btn">关闭</x-button></flexbox-item>
<flexbox-item><x-button plain class="default-btn">确定</x-button></flexbox-item>
</flexbox>
<divider> line </divider>
<x-button mini plain class="line-btn">选好了</x-button>
</div>
</template>
<script>
import { Flexbox, FlexboxItem, XButton, Divider } from 'vux'
export default {
components: {
Divider,
Flexbox,
FlexboxItem,
XButton
}
}
</script>
<style lang="less">
.disbaled-btn {
border: 1px solid #dbdce0;
background: #ebeef7;
color: #c8cbd0
}
.default-btn {
background: #86aace!important;
border: 1px solid #86aace!important;
color: #fff!important;
}
.active-btn {
border: 1px solid #86aace!important;
background: #697f9f!important;
color: #fff!important;
}
.line-btn {
border: 1px solid #8aa0b4!important;
color: #8298b4!important;
}
</style>