mali-applet-ui 1.0.66 → 1.0.67
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-echarts/ml-echarts.vue +21 -19
- package/lib/components/ml-fixed-footer/ml-fixed-footer.vue +1 -1
- package/lib/components/ml-fixed-header/ml-fixed-header.vue +1 -1
- package/lib/components/ml-header-filter-form/ml-header-filter-form.vue +9 -2
- package/lib/components/ml-list-item-title/ml-list-item-title.vue +7 -1
- package/package.json +1 -1
|
@@ -128,25 +128,27 @@ export default {
|
|
|
128
128
|
context: true
|
|
129
129
|
})
|
|
130
130
|
.exec(res => {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
131
|
+
if (res && res[0]) {
|
|
132
|
+
const canvasNode = res[0].node
|
|
133
|
+
const ratio = getAppDpr()
|
|
134
|
+
const canvasWidth = res[0].width
|
|
135
|
+
const canvasHeight = res[0].height
|
|
136
|
+
this.cvsWidth = canvasWidth
|
|
137
|
+
this.cvsHeight = canvasHeight
|
|
138
|
+
this.ctx = canvasNode.getContext('2d')
|
|
139
|
+
const canvas = new WxCanvas(this.ctx, this.canvasId, true, canvasNode)
|
|
140
|
+
echarts.setCanvasCreator(() => {
|
|
141
|
+
return canvas
|
|
142
|
+
})
|
|
143
|
+
const chart = echarts.init(canvas, null, {
|
|
144
|
+
width: canvasWidth,
|
|
145
|
+
height: canvasHeight,
|
|
146
|
+
devicePixelRatio: ratio
|
|
147
|
+
})
|
|
148
|
+
canvas.setChart(chart)
|
|
149
|
+
this.chart = chart
|
|
150
|
+
this.loadChart()
|
|
151
|
+
}
|
|
150
152
|
})
|
|
151
153
|
},
|
|
152
154
|
// #endif
|
|
@@ -74,8 +74,15 @@ export default {
|
|
|
74
74
|
},
|
|
75
75
|
resetDownEvent () {
|
|
76
76
|
const { filterForm } = this
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
const newValue = {}
|
|
78
|
+
XEUtils.each(filterForm, (item, key) => {
|
|
79
|
+
if (XEUtils.isArray(item)) {
|
|
80
|
+
newValue[key] = []
|
|
81
|
+
} else {
|
|
82
|
+
newValue[key] = null
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
this.$emit('update:filterForm', newValue)
|
|
79
86
|
this.$emit('reset')
|
|
80
87
|
},
|
|
81
88
|
confirmDownEvent () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="ml-list-item-title">
|
|
2
|
+
<view class="ml-list-item-title" @tap="tapEvent">
|
|
3
3
|
<view class="ml-list-item-title-left">
|
|
4
4
|
<text v-if="showSeq" class="ml-list-item-title-seq">{{ itemIndex + 1 }}</text>
|
|
5
5
|
<text v-if="icon" class="ml-list-item-title-icon">
|
|
@@ -36,6 +36,12 @@ export default {
|
|
|
36
36
|
}
|
|
37
37
|
return text
|
|
38
38
|
}
|
|
39
|
+
},
|
|
40
|
+
methods: {
|
|
41
|
+
tapEvent () {
|
|
42
|
+
this.$emit('tap', {})
|
|
43
|
+
this.$emit('click', {})
|
|
44
|
+
}
|
|
39
45
|
}
|
|
40
46
|
}
|
|
41
47
|
</script>
|