forked from alibaba/weex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-tip.we
65 lines (54 loc) · 972 Bytes
/
ui-tip.we
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
<!-- Inspired by bootstrap http://getbootstrap.com/ -->
<template>
<div class="tip tip-{{type}}">
<text class="tip-txt tip-txt-{{type}}">{{value}}</text>
</div>
</template>
<script>
module.exports = {
data: {
type: 'success',
value: ''
}
}
</script>
<style>
.tip {
padding-left: 36px;
padding-right: 36px;
padding-top: 36px;
padding-bottom: 36px;
border-radius: 10px;
}
.tip-txt{
font-size: 28px;
}
.tip-success {
background-color: #dff0d8;
border-color: #d6e9c6;
}
.tip-txt-success {
color: #3c763d;
}
.tip-info {
background-color: #d9edf7;
border-color: #bce8f1;
}
.tip-txt-info {
color: #31708f;
}
.tip-warning {
background-color: #fcf8e3;
border-color: #faebcc;
}
.tip-txt-warning {
color: #8a6d3b;
}
.tip-danger {
background-color: #f2dede;
border-color: #ebccd1;
}
.tip-txt-danger {
color: #a94442;
}
</style>