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.
@@ -128,25 +128,27 @@ export default {
128
128
  context: true
129
129
  })
130
130
  .exec(res => {
131
- const canvasNode = res[0].node
132
- const ratio = getAppDpr()
133
- const canvasWidth = res[0].width
134
- const canvasHeight = res[0].height
135
- this.cvsWidth = canvasWidth
136
- this.cvsHeight = canvasHeight
137
- this.ctx = canvasNode.getContext('2d')
138
- const canvas = new WxCanvas(this.ctx, this.canvasId, true, canvasNode)
139
- echarts.setCanvasCreator(() => {
140
- return canvas
141
- })
142
- const chart = echarts.init(canvas, null, {
143
- width: canvasWidth,
144
- height: canvasHeight,
145
- devicePixelRatio: ratio
146
- })
147
- canvas.setChart(chart)
148
- this.chart = chart
149
- this.loadChart()
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
@@ -84,7 +84,7 @@ export default {
84
84
  left: 0;
85
85
  width: $ml-page-full-width;
86
86
  bottom: 0;
87
- z-index: 20;
87
+ z-index: 22;
88
88
  box-shadow: 0px -2px 4px 0px rgba(0,0,0,0.1);
89
89
  // #ifdef H5
90
90
  left: 50%;
@@ -81,7 +81,7 @@ export default {
81
81
  position: fixed;
82
82
  left: 0;
83
83
  top: 0;
84
- z-index: 20;
84
+ z-index: 33;
85
85
  width: $ml-page-full-width;
86
86
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
87
87
  // #ifdef H5
@@ -74,8 +74,15 @@ export default {
74
74
  },
75
75
  resetDownEvent () {
76
76
  const { filterForm } = this
77
- XEUtils.clear(filterForm, null)
78
- this.$emit('update:filterForm', filterForm)
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",