Skip to content

Commit 62c3d60

Browse files
committed
feat: add prop icon-day to set calendar icon day
1 parent 864ab83 commit 62c3d60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<line x1="46" x2="46" y1="8" y2="50" />
4343
<line x1="154" x2="154" y1="8" y2="50" />
4444
<line x1="13" x2="187" y1="70" y2="70" />
45-
<text x="50%" y="135" font-size="90" stroke-width="1" text-anchor="middle" dominant-baseline="middle">{{new Date().getDate()}}</text>
45+
<text x="50%" y="135" font-size="90" stroke-width="1" text-anchor="middle" dominant-baseline="middle">{{iconDay}}</text>
4646
</svg>
4747
</slot>
4848
</span>
@@ -204,6 +204,9 @@ export default {
204204
},
205205
popupStyle: {
206206
type: Object
207+
},
208+
iconDay: {
209+
type: [Number, String]
207210
}
208211
},
209212
data () {

0 commit comments

Comments
 (0)