sadais-piui 1.2.7-beta34 → 1.2.7-beta35

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.
@@ -39,6 +39,7 @@
39
39
  :start-text="getCalendarPanel.startText"
40
40
  :end-text="getCalendarPanel.endText"
41
41
  :date-format="getCalendarPanel.dateFormat"
42
+ @date-change="$emit('date-change', $event)"
42
43
  />
43
44
  <!-- footer -->
44
45
  <view class="pi-w-100P pi-align-center pi-pd-24 pi-solid-top-1">
@@ -347,6 +347,10 @@ export default {
347
347
  } else {
348
348
  this.month = month
349
349
  }
350
+ this.$emit('date-change', {
351
+ year: this.year,
352
+ month: this.month
353
+ })
350
354
  },
351
355
  handlePrevMonth() {
352
356
  if (this.currentTabIndex === 0) {
@@ -368,6 +372,10 @@ export default {
368
372
  if (change > 0 && this.isMaxYear) return
369
373
  if (change < 0 && this.isMinYear) return
370
374
  this.year = this.year + change
375
+ this.$emit('date-change', {
376
+ year: this.year,
377
+ month: this.month
378
+ })
371
379
  },
372
380
  handleBackToday() {
373
381
  this.year = this.now.year
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7beta34",
3
+ "version": "1.2.7beta35",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {