mali-applet-ui 0.1.52 → 0.1.54
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.
- package/components/ml-amount-text/ml-amount-text.vue +18 -0
- package/components/ml-button/ml-button.vue +42 -0
- package/components/ml-chunk-group/ml-chunk-group.vue +36 -0
- package/components/ml-dict-type/ml-dict-type.vue +3 -1
- package/components/ml-icon/ml-icon.vue +18 -0
- package/components/ml-list-menu-item/ml-list-menu-item.vue +18 -0
- package/components/ml-row/ml-row.vue +18 -0
- package/components/ml-status-tag/ml-status-tag.vue +18 -0
- package/components/ml-text/ml-text.vue +18 -0
- package/config/store.js +7 -7
- package/package.json +1 -1
- package/theme.scss +2 -1
|
@@ -79,5 +79,23 @@ export default {
|
|
|
79
79
|
&.status-danger {
|
|
80
80
|
color: $uni-color-error;
|
|
81
81
|
}
|
|
82
|
+
&.status-gray {
|
|
83
|
+
color: $ml-gray-color;
|
|
84
|
+
}
|
|
85
|
+
&.status-blue {
|
|
86
|
+
color: $ml-blue-color;
|
|
87
|
+
}
|
|
88
|
+
&.status-green {
|
|
89
|
+
color: $ml-green-color;
|
|
90
|
+
}
|
|
91
|
+
&.status-pink {
|
|
92
|
+
color: $ml-pink-color;
|
|
93
|
+
}
|
|
94
|
+
&.status-orange {
|
|
95
|
+
color: $ml-orange-color;
|
|
96
|
+
}
|
|
97
|
+
&.status-purple {
|
|
98
|
+
color: $ml-purple-color;
|
|
99
|
+
}
|
|
82
100
|
}
|
|
83
101
|
</style>
|
|
@@ -80,6 +80,24 @@ export default {
|
|
|
80
80
|
&.status-danger {
|
|
81
81
|
color: $uni-color-error;
|
|
82
82
|
}
|
|
83
|
+
&.status-gray {
|
|
84
|
+
color: $ml-gray-color;
|
|
85
|
+
}
|
|
86
|
+
&.status-blue {
|
|
87
|
+
color: $ml-blue-color;
|
|
88
|
+
}
|
|
89
|
+
&.status-green {
|
|
90
|
+
color: $ml-green-color;
|
|
91
|
+
}
|
|
92
|
+
&.status-pink {
|
|
93
|
+
color: $ml-pink-color;
|
|
94
|
+
}
|
|
95
|
+
&.status-orange {
|
|
96
|
+
color: $ml-orange-color;
|
|
97
|
+
}
|
|
98
|
+
&.status-purple {
|
|
99
|
+
color: $ml-purple-color;
|
|
100
|
+
}
|
|
83
101
|
}
|
|
84
102
|
&.type-button {
|
|
85
103
|
width: 100%;
|
|
@@ -137,6 +155,30 @@ export default {
|
|
|
137
155
|
background: $uni-color-error;
|
|
138
156
|
border-color: $uni-color-error;
|
|
139
157
|
}
|
|
158
|
+
&.status-gray {
|
|
159
|
+
background: $ml-gray-color;
|
|
160
|
+
border-color: $ml-gray-color;
|
|
161
|
+
}
|
|
162
|
+
&.status-blue {
|
|
163
|
+
background: $ml-blue-color;
|
|
164
|
+
border-color: $ml-blue-color;
|
|
165
|
+
}
|
|
166
|
+
&.status-green {
|
|
167
|
+
background: $ml-green-color;
|
|
168
|
+
border-color: $ml-green-color;
|
|
169
|
+
}
|
|
170
|
+
&.status-pink {
|
|
171
|
+
background: $ml-pink-color;
|
|
172
|
+
border-color: $ml-pink-color;
|
|
173
|
+
}
|
|
174
|
+
&.status-orange {
|
|
175
|
+
background: $ml-orange-color;
|
|
176
|
+
border-color: $ml-orange-color;
|
|
177
|
+
}
|
|
178
|
+
&.status-purple {
|
|
179
|
+
background: $ml-purple-color;
|
|
180
|
+
border-color: $ml-purple-color;
|
|
181
|
+
}
|
|
140
182
|
&.is-round {
|
|
141
183
|
border-radius: 50rpx;
|
|
142
184
|
&.size-medium {
|
|
@@ -110,5 +110,41 @@ export default {
|
|
|
110
110
|
background: $uni-color-error;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
&.status-gray {
|
|
114
|
+
.ml-chunk-group-content {
|
|
115
|
+
color: #ffffff;
|
|
116
|
+
background: $ml-gray-color;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
&.status-blue {
|
|
120
|
+
.ml-chunk-group-content {
|
|
121
|
+
color: #ffffff;
|
|
122
|
+
background: $ml-blue-color;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
&.status-green {
|
|
126
|
+
.ml-chunk-group-content {
|
|
127
|
+
color: #ffffff;
|
|
128
|
+
background: $ml-green-color;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
&.status-pink {
|
|
132
|
+
.ml-chunk-group-content {
|
|
133
|
+
color: #ffffff;
|
|
134
|
+
background: $ml-pink-color;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
&.status-orange {
|
|
138
|
+
.ml-chunk-group-content {
|
|
139
|
+
color: #ffffff;
|
|
140
|
+
background: $ml-orange-color;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
&.status-purple {
|
|
144
|
+
.ml-chunk-group-content {
|
|
145
|
+
color: #ffffff;
|
|
146
|
+
background: $ml-purple-color;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
113
149
|
}
|
|
114
150
|
</style>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<text class="ml-dict-type" :class="[className || '', (status || showStatus) && selectStatus ? `status-${selectStatus}` : '', {'is-underline': underline, 'is-border': border, 'is-round': round}]">
|
|
2
|
+
<text class="ml-dict-type" :class="[className || '', (status || showStatus) && selectStatus ? `status-${selectStatus}` : '', {'is-underline': underline, 'is-border': border, 'is-round': round}]">
|
|
3
|
+
<slot>{{ selectLabel }}</slot>
|
|
4
|
+
</text>
|
|
3
5
|
</template>
|
|
4
6
|
|
|
5
7
|
<script>
|
|
@@ -58,5 +58,23 @@ export default {
|
|
|
58
58
|
&.status-danger {
|
|
59
59
|
color: $uni-color-error;
|
|
60
60
|
}
|
|
61
|
+
&.status-gray {
|
|
62
|
+
color: $ml-gray-color;
|
|
63
|
+
}
|
|
64
|
+
&.status-blue {
|
|
65
|
+
color: $ml-blue-color;
|
|
66
|
+
}
|
|
67
|
+
&.status-green {
|
|
68
|
+
color: $ml-green-color;
|
|
69
|
+
}
|
|
70
|
+
&.status-pink {
|
|
71
|
+
color: $ml-pink-color;
|
|
72
|
+
}
|
|
73
|
+
&.status-orange {
|
|
74
|
+
color: $ml-orange-color;
|
|
75
|
+
}
|
|
76
|
+
&.status-purple {
|
|
77
|
+
color: $ml-purple-color;
|
|
78
|
+
}
|
|
61
79
|
}
|
|
62
80
|
</style>
|
|
@@ -132,6 +132,24 @@ export default {
|
|
|
132
132
|
&.status-danger {
|
|
133
133
|
background-color: $uni-color-error;
|
|
134
134
|
}
|
|
135
|
+
&.status-gray {
|
|
136
|
+
background-color: $ml-gray-color;
|
|
137
|
+
}
|
|
138
|
+
&.status-blue {
|
|
139
|
+
background-color: $ml-blue-color;
|
|
140
|
+
}
|
|
141
|
+
&.status-green {
|
|
142
|
+
background-color: $ml-green-color;
|
|
143
|
+
}
|
|
144
|
+
&.status-pink {
|
|
145
|
+
background-color: $ml-pink-color;
|
|
146
|
+
}
|
|
147
|
+
&.status-orange {
|
|
148
|
+
background-color: $ml-orange-color;
|
|
149
|
+
}
|
|
150
|
+
&.status-purple {
|
|
151
|
+
background-color: $ml-purple-color;
|
|
152
|
+
}
|
|
135
153
|
}
|
|
136
154
|
}
|
|
137
155
|
.ml-list-menu-item-left-icon,
|
|
@@ -46,5 +46,23 @@ export default {
|
|
|
46
46
|
&.status-danger {
|
|
47
47
|
color: $uni-color-error;
|
|
48
48
|
}
|
|
49
|
+
&.status-gray {
|
|
50
|
+
color: $ml-gray-color;
|
|
51
|
+
}
|
|
52
|
+
&.status-blue {
|
|
53
|
+
color: $ml-blue-color;
|
|
54
|
+
}
|
|
55
|
+
&.status-green {
|
|
56
|
+
color: $ml-green-color;
|
|
57
|
+
}
|
|
58
|
+
&.status-pink {
|
|
59
|
+
color: $ml-pink-color;
|
|
60
|
+
}
|
|
61
|
+
&.status-orange {
|
|
62
|
+
color: $ml-orange-color;
|
|
63
|
+
}
|
|
64
|
+
&.status-purple {
|
|
65
|
+
color: $ml-purple-color;
|
|
66
|
+
}
|
|
49
67
|
}
|
|
50
68
|
</style>
|
|
@@ -48,5 +48,23 @@ export default {
|
|
|
48
48
|
&.status-danger {
|
|
49
49
|
background: $uni-color-error;
|
|
50
50
|
}
|
|
51
|
+
&.status-gray {
|
|
52
|
+
background: $ml-gray-color;
|
|
53
|
+
}
|
|
54
|
+
&.status-blue {
|
|
55
|
+
background: $ml-blue-color;
|
|
56
|
+
}
|
|
57
|
+
&.status-green {
|
|
58
|
+
background: $ml-green-color;
|
|
59
|
+
}
|
|
60
|
+
&.status-pink {
|
|
61
|
+
background: $ml-pink-color;
|
|
62
|
+
}
|
|
63
|
+
&.status-orange {
|
|
64
|
+
background: $ml-orange-color;
|
|
65
|
+
}
|
|
66
|
+
&.status-purple {
|
|
67
|
+
background: $ml-purple-color;
|
|
68
|
+
}
|
|
51
69
|
}
|
|
52
70
|
</style>
|
|
@@ -69,6 +69,24 @@ export default {
|
|
|
69
69
|
&.status-danger {
|
|
70
70
|
color: $uni-color-error;
|
|
71
71
|
}
|
|
72
|
+
&.status-gray {
|
|
73
|
+
color: $ml-gray-color;
|
|
74
|
+
}
|
|
75
|
+
&.status-blue {
|
|
76
|
+
color: $ml-blue-color;
|
|
77
|
+
}
|
|
78
|
+
&.status-green {
|
|
79
|
+
color: $ml-green-color;
|
|
80
|
+
}
|
|
81
|
+
&.status-pink {
|
|
82
|
+
color: $ml-pink-color;
|
|
83
|
+
}
|
|
84
|
+
&.status-orange {
|
|
85
|
+
color: $ml-orange-color;
|
|
86
|
+
}
|
|
87
|
+
&.status-purple {
|
|
88
|
+
color: $ml-purple-color;
|
|
89
|
+
}
|
|
72
90
|
.ml-text-left-icon,
|
|
73
91
|
.ml-text-right-icon,
|
|
74
92
|
.ml-text-content {
|
package/config/store.js
CHANGED
|
@@ -28,13 +28,13 @@ const globalStore = {
|
|
|
28
28
|
optionMethod: null
|
|
29
29
|
},
|
|
30
30
|
types: [
|
|
31
|
-
{ value: 0, label: '起草中', color: '' },
|
|
32
|
-
{ value: 1, label: '审批中', color: '#
|
|
33
|
-
{ value: 2, label: '已通过', color: '#
|
|
34
|
-
{ value: 3, label: '已驳回', color: '#
|
|
35
|
-
{ value: 4, label: '会签中', color: '#
|
|
36
|
-
{ value: 5, label: '处理中', color: '#
|
|
37
|
-
{ value: 6, label: '已完成', color: '#
|
|
31
|
+
{ value: 0, label: '起草中', color: '#F0F2F5' },
|
|
32
|
+
{ value: 1, label: '审批中', color: '#246BFD' },
|
|
33
|
+
{ value: 2, label: '已通过', color: '#00D35C' },
|
|
34
|
+
{ value: 3, label: '已驳回', color: '#FF5064' },
|
|
35
|
+
{ value: 4, label: '会签中', color: '#FF9C00' },
|
|
36
|
+
{ value: 5, label: '处理中', color: '#246BFD' },
|
|
37
|
+
{ value: 6, label: '已完成', color: '#00D35C' }
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
// 上拉加载更多
|
package/package.json
CHANGED
package/theme.scss
CHANGED
|
@@ -11,8 +11,9 @@ $ml-page-interval-margin: 16rpx;
|
|
|
11
11
|
$ml-gray-color: #F0F2F5;
|
|
12
12
|
$ml-blue-color: #246BFD;
|
|
13
13
|
$ml-green-color: #00D35C;
|
|
14
|
-
$ml-
|
|
14
|
+
$ml-pink-color: #FF5064;
|
|
15
15
|
$ml-orange-color: #FF9C00;
|
|
16
|
+
$ml-purple-color: #9747FF;
|
|
16
17
|
|
|
17
18
|
// 边框圆角
|
|
18
19
|
$ml-border-radius: 8rpx;
|