Skip to content

Commit

Permalink
feat: add prop icon-day to set calendar icon day
Browse files Browse the repository at this point in the history
  • Loading branch information
mengxiong10 committed Oct 14, 2019
1 parent 864ab83 commit 62c3d60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<line x1="46" x2="46" y1="8" y2="50" />
<line x1="154" x2="154" y1="8" y2="50" />
<line x1="13" x2="187" y1="70" y2="70" />
<text x="50%" y="135" font-size="90" stroke-width="1" text-anchor="middle" dominant-baseline="middle">{{new Date().getDate()}}</text>
<text x="50%" y="135" font-size="90" stroke-width="1" text-anchor="middle" dominant-baseline="middle">{{iconDay}}</text>
</svg>
</slot>
</span>
Expand Down Expand Up @@ -204,6 +204,9 @@ export default {
},
popupStyle: {
type: Object
},
iconDay: {
type: [Number, String]
}
},
data () {
Expand Down

0 comments on commit 62c3d60

Please sign in to comment.