mali-applet-ui 1.1.16 → 1.1.17

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.
@@ -69,7 +69,8 @@ export default {
69
69
  selectMonth: new Date(),
70
70
  weekList: ['日', '一', '二', '三', '四', '五', '六'],
71
71
  months: [],
72
- selectDay: ''
72
+ selectDay: '',
73
+ dateMaps: {}
73
74
  }
74
75
  },
75
76
  computed: {
@@ -112,6 +113,7 @@ export default {
112
113
  rest.forEach(item => {
113
114
  dateMaps[item.date] = item
114
115
  })
116
+ this.dateMaps = dateMaps
115
117
  this.months.forEach(list => {
116
118
  list.forEach(item => {
117
119
  if (dateMaps[item.date]) {
@@ -158,7 +160,10 @@ export default {
158
160
  this.updateCalendar()
159
161
  }
160
162
  this.$emit('input', value)
161
- this.$emit('click', { value })
163
+ this.$emit('click', {
164
+ value,
165
+ data: this.dateMaps[value]
166
+ })
162
167
  },
163
168
  onLastMonth () {
164
169
  this.selectMonth = XEUtils.getWhatMonth(this.selectMonth, -1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",