mali-applet-ui 0.0.81 → 0.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button class="ml-button" :class="[className || '', `type-${type}`, status ? `status-${status}` : '', round ? 'is-round' : '']" :style="styles" @tap="tapEvent" @click="clickEvent">
|
|
2
|
+
<button class="ml-button" :class="[className || '', `type-${type}`, status ? `status-${status}` : '', round ? 'is-round' : '']" :open-type="openType" :style="styles" @tap="tapEvent" @click="clickEvent">
|
|
3
3
|
<slot>{{ content }}</slot>
|
|
4
4
|
</button>
|
|
5
5
|
</template>
|
|
@@ -18,6 +18,7 @@ export default {
|
|
|
18
18
|
type: String,
|
|
19
19
|
default: 'button'
|
|
20
20
|
},
|
|
21
|
+
openType: String,
|
|
21
22
|
width: String,
|
|
22
23
|
redirect: Boolean,
|
|
23
24
|
url: String,
|
|
@@ -87,22 +88,27 @@ export default {
|
|
|
87
88
|
&.status-primary {
|
|
88
89
|
color: #ffffff;
|
|
89
90
|
background: $uni-color-primary;
|
|
91
|
+
border-color: $uni-color-primary;
|
|
90
92
|
}
|
|
91
93
|
&.status-success {
|
|
92
94
|
color: #ffffff;
|
|
93
95
|
background: $uni-color-success;
|
|
96
|
+
border-color: $uni-color-success;
|
|
94
97
|
}
|
|
95
98
|
&.status-info {
|
|
96
99
|
color: #ffffff;
|
|
97
100
|
background: #909399;
|
|
101
|
+
border-color: #909399;
|
|
98
102
|
}
|
|
99
103
|
&.status-warning {
|
|
100
104
|
color: #ffffff;
|
|
101
105
|
background: $uni-color-warning;
|
|
106
|
+
border-color: $uni-color-warning;
|
|
102
107
|
}
|
|
103
108
|
&.status-danger {
|
|
104
109
|
color: #ffffff;
|
|
105
110
|
background: $uni-color-error;
|
|
111
|
+
border-color: $uni-color-error;
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
114
|
&.is-round {
|
|
@@ -68,15 +68,12 @@ export default {
|
|
|
68
68
|
width: nth($spans, $index + 1);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
&:not(.is-vertical) {
|
|
72
|
-
border-bottom: 1px solid #e5e5e5;
|
|
73
|
-
}
|
|
74
71
|
&.is-vertical {
|
|
75
72
|
flex-direction: row;
|
|
76
73
|
border-bottom: 1px solid #e5e5e5;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
&:last-child {
|
|
75
|
+
border: 0;
|
|
76
|
+
}
|
|
80
77
|
}
|
|
81
78
|
}
|
|
82
79
|
</style>
|