mali-applet-ui 1.1.6 → 1.1.7
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/lib/components/ml-amount-text/ml-amount-text.vue +3 -0
- package/lib/components/ml-button/ml-button.vue +8 -0
- package/lib/components/ml-calendar/ml-calendar.vue +3 -0
- package/lib/components/ml-chunk-group/ml-chunk-group.vue +6 -0
- package/lib/components/ml-dict-type/ml-dict-type.vue +7 -0
- package/lib/components/ml-header-filter-form/ml-header-filter-form.vue +0 -6
- package/lib/components/ml-hint/ml-hint.vue +3 -0
- package/lib/components/ml-icon/ml-icon.vue +3 -0
- package/lib/components/ml-list-item-title/ml-list-item-title.vue +8 -4
- package/lib/components/ml-list-menu-item/ml-list-menu-item.vue +3 -0
- package/lib/components/ml-row/ml-row.vue +3 -0
- package/lib/components/ml-status-tag/ml-status-tag.vue +4 -0
- package/lib/components/ml-tab-container-navs/ml-tab-container-navs.vue +3 -0
- package/lib/components/ml-tabs/ml-tabs.vue +3 -0
- package/lib/components/ml-text/ml-text.vue +3 -0
- package/lib/components/ml-tree-box/ml-tree-box.vue +1 -1
- package/modal/toast.js +12 -0
- package/package.json +1 -1
- package/style/variable.scss +1 -0
- package/types/toast.d.ts +7 -6
|
@@ -133,6 +133,9 @@ export default {
|
|
|
133
133
|
&.ss-pink {
|
|
134
134
|
color: $ml-pink-color;
|
|
135
135
|
}
|
|
136
|
+
&.ss-red {
|
|
137
|
+
color: $ml-red-color;
|
|
138
|
+
}
|
|
136
139
|
&.ss-orange {
|
|
137
140
|
color: $ml-orange-color;
|
|
138
141
|
}
|
|
@@ -215,6 +218,11 @@ export default {
|
|
|
215
218
|
background: $ml-pink-color;
|
|
216
219
|
border-color: $ml-pink-color;
|
|
217
220
|
}
|
|
221
|
+
&.ss-red {
|
|
222
|
+
color: #ffffff;
|
|
223
|
+
background: $ml-red-color;
|
|
224
|
+
border-color: $ml-red-color;
|
|
225
|
+
}
|
|
218
226
|
&.ss-orange {
|
|
219
227
|
color: #ffffff;
|
|
220
228
|
background: $ml-orange-color;
|
|
@@ -117,6 +117,10 @@ export default {
|
|
|
117
117
|
color: $ml-pink-color;
|
|
118
118
|
border: 1px solid $ml-pink-color;
|
|
119
119
|
}
|
|
120
|
+
&.ss-red {
|
|
121
|
+
color: $ml-red-color;
|
|
122
|
+
border: 1px solid $ml-red-color;
|
|
123
|
+
}
|
|
120
124
|
&.ss-orange {
|
|
121
125
|
color: $ml-orange-color;
|
|
122
126
|
border: 1px solid $ml-orange-color;
|
|
@@ -201,6 +205,9 @@ export default {
|
|
|
201
205
|
&.ss-pink {
|
|
202
206
|
color: $ml-pink-color;
|
|
203
207
|
}
|
|
208
|
+
&.ss-red {
|
|
209
|
+
color: $ml-red-color;
|
|
210
|
+
}
|
|
204
211
|
&.ss-orange {
|
|
205
212
|
color: $ml-orange-color;
|
|
206
213
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="ml-list-item-title" @tap="tapEvent">
|
|
3
3
|
<view class="ml-list-item-title-left">
|
|
4
|
-
<
|
|
5
|
-
<
|
|
4
|
+
<view v-if="showSeq" class="ml-list-item-title-seq">{{ itemIndex + 1 }}</view>
|
|
5
|
+
<view v-if="icon" class="ml-list-item-title-icon">
|
|
6
6
|
<ml-icon :name="icon" status="primary" />
|
|
7
|
-
</
|
|
8
|
-
<
|
|
7
|
+
</view>
|
|
8
|
+
<view class="ml-list-item-title-content">
|
|
9
|
+
<slot>
|
|
10
|
+
<view>{{ currTitle }}</view>
|
|
11
|
+
</slot>
|
|
12
|
+
</view>
|
|
9
13
|
</view>
|
|
10
14
|
<view class="ml-list-item-title-right">
|
|
11
15
|
<slot name="extra"></slot>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
:info="getPrefixIcon(item)"
|
|
46
46
|
/>
|
|
47
47
|
<view class="ml-tree-node__title" :class="{ 'hasExplain': item[useProps.explain] }" @tap.stop="handleIntoChildren(item)">
|
|
48
|
-
<view class="nowrap">{{ item[useProps.label] || '' }}
|
|
48
|
+
<view class="nowrap">{{ item[useProps.label] || '' }}<ml-text v-if="item.notEnabled" :status="item.notEnabledStatus || 'orange'">(未启用)</ml-text></view>
|
|
49
49
|
<view class="ml-tree-node__explain" v-if="item[useProps.explain]">{{ item[useProps.explain] }}</view>
|
|
50
50
|
</view>
|
|
51
51
|
<view class="ml-tree-node__extra">
|
package/modal/toast.js
CHANGED
|
@@ -25,6 +25,18 @@ const MaliToast = {
|
|
|
25
25
|
})
|
|
26
26
|
})
|
|
27
27
|
},
|
|
28
|
+
warning (option) {
|
|
29
|
+
const opts = XEUtils.isString(option) ? { content: option } : (option || {})
|
|
30
|
+
return new Promise(resolve => {
|
|
31
|
+
uni.showToast({
|
|
32
|
+
title: opts.content || '操作失败',
|
|
33
|
+
icon: 'error',
|
|
34
|
+
success () {
|
|
35
|
+
setTimeout(resolve, 2000)
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
},
|
|
28
40
|
hide () {
|
|
29
41
|
return new Promise(resolve => {
|
|
30
42
|
uni.hideLoading()
|
package/package.json
CHANGED
package/style/variable.scss
CHANGED
|
@@ -27,6 +27,7 @@ $ml-gray-color: #F0F2F5 !default;
|
|
|
27
27
|
$ml-blue-color: #246BFD !default;
|
|
28
28
|
$ml-green-color: #00D35C !default;
|
|
29
29
|
$ml-pink-color: #FF5064 !default;
|
|
30
|
+
$ml-red-color: #FF5064 !default;
|
|
30
31
|
$ml-orange-color: #FF9C00 !default;
|
|
31
32
|
$ml-purple-color: #9747FF !default;
|
|
32
33
|
$ml-dark-blue-color: #5e7092 !default;
|
package/types/toast.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
export interface MlToastOptions {
|
|
2
|
+
content?: string
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
export const MaliToast: {
|
|
2
|
-
success(options?: string |
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
error(options?: string | {
|
|
6
|
-
content?: string
|
|
7
|
-
}): Promise<void>
|
|
6
|
+
success(options?: string | MlToastOptions): Promise<void>
|
|
7
|
+
error(options?: string | MlToastOptions): Promise<void>
|
|
8
|
+
warning(options?: string | MlToastOptions): Promise<void>
|
|
8
9
|
hide(): Promise<void>
|
|
9
10
|
}
|