mali-applet-ui 0.2.68 → 0.2.70
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-approval-type/ml-approval-type.vue +3 -2
- package/components/ml-button/ml-button.vue +5 -1
- package/components/ml-card/ml-card.vue +17 -5
- package/components/ml-echarts/echarts.min.js +45 -18
- package/components/ml-echarts/echarts.simple.min.js +18 -0
- package/components/ml-echarts/ml-echarts.vue +1 -1
- package/components/ml-file-upload/file-handle.js +52 -0
- package/components/ml-file-upload/ml-file-upload.vue +565 -0
- package/components/ml-table/ml-table.vue +11 -0
- package/config/store.js +7 -7
- package/iconfont.css +33 -1
- package/package.json +1 -1
- package/components/ml-echarts/echarts.js +0 -46
|
@@ -27,7 +27,9 @@ export default {
|
|
|
27
27
|
return this.selectItem ? this.selectItem.label : ''
|
|
28
28
|
},
|
|
29
29
|
styles () {
|
|
30
|
-
|
|
30
|
+
const colStys = this.selectItem && this.selectItem.background? `background:${this.selectItem.background};` : ''
|
|
31
|
+
const bgStys = this.selectItem && this.selectItem.color? `color:${this.selectItem.color};` : ''
|
|
32
|
+
return `${bgStys}${colStys}`
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
}
|
|
@@ -36,7 +38,6 @@ export default {
|
|
|
36
38
|
<style lang="scss">
|
|
37
39
|
.ml-approval-type {
|
|
38
40
|
display: inline-block;
|
|
39
|
-
color: #ffffff;
|
|
40
41
|
padding: 8rpx 16rpx;
|
|
41
42
|
border-radius: $ml-border-radius;
|
|
42
43
|
font-size: 24rpx;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button class="ml-button" :class="[className || '', `type-${type}`, size ? `size-${size}` : '', status ? `ss-${status}` : '', round
|
|
2
|
+
<button class="ml-button" :class="[className || '', `type-${type}`, size ? `size-${size}` : '', status ? `ss-${status}` : '', {'is-round': round, 'is-underline': underline}]" :open-type="openType" :style="styles" @tap="tapEvent" @click="clickEvent">
|
|
3
3
|
<slot>{{ content }}</slot>
|
|
4
4
|
</button>
|
|
5
5
|
</template>
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
default: 'button'
|
|
20
20
|
},
|
|
21
21
|
size: String,
|
|
22
|
+
underline: Boolean,
|
|
22
23
|
openType: String,
|
|
23
24
|
width: String,
|
|
24
25
|
height: String,
|
|
@@ -68,6 +69,9 @@ export default {
|
|
|
68
69
|
vertical-align: middle;
|
|
69
70
|
background: transparent;
|
|
70
71
|
font-size: $uni-font-size-base;
|
|
72
|
+
&.is-underline {
|
|
73
|
+
text-decoration: underline;
|
|
74
|
+
}
|
|
71
75
|
&.ss-primary {
|
|
72
76
|
color: $uni-color-primary;
|
|
73
77
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="ml-card">
|
|
2
|
+
<view class="ml-card" :class="{'is-bg': background, 'is-padding': padding}">
|
|
3
3
|
<view v-if="title || showHeader" class="ml-card-header">
|
|
4
4
|
<view class="ml-card-title">
|
|
5
5
|
<slot name="title">{{ title }}</slot>
|
|
@@ -22,6 +22,14 @@ export default {
|
|
|
22
22
|
},
|
|
23
23
|
props: {
|
|
24
24
|
title: String,
|
|
25
|
+
background: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
padding: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true
|
|
32
|
+
},
|
|
25
33
|
showHeader: Boolean
|
|
26
34
|
}
|
|
27
35
|
}
|
|
@@ -31,7 +39,14 @@ export default {
|
|
|
31
39
|
.ml-card {
|
|
32
40
|
margin-bottom: 20rpx;
|
|
33
41
|
border-radius: $ml-border-radius;
|
|
34
|
-
|
|
42
|
+
&.is-bg {
|
|
43
|
+
background: #fff;
|
|
44
|
+
}
|
|
45
|
+
&.is-padding {
|
|
46
|
+
.ml-card-body {
|
|
47
|
+
padding: 0 20rpx 20rpx 20rpx;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
35
50
|
.ml-card-header {
|
|
36
51
|
display: flex;
|
|
37
52
|
flex-direction: row;
|
|
@@ -56,8 +71,5 @@ export default {
|
|
|
56
71
|
flex-shrink: 0;
|
|
57
72
|
}
|
|
58
73
|
}
|
|
59
|
-
.ml-card-body {
|
|
60
|
-
padding: 20rpx;
|
|
61
|
-
}
|
|
62
74
|
}
|
|
63
75
|
</style>
|