ant-design-vue/components/calendar/demo/card.md

486 B

#### 卡片模式 用于嵌套在空间有限的容器中。 #### Card Nested inside a container element for rendering in limited space.
<template>
  <div :style="{ width: '300px', border: '1px solid #d9d9d9', borderRadius: '4px' }">
    <a-calendar :fullscreen="false" @panelChange="onPanelChange" />
  </div>
</template>
<script>
export default {
  methods: {
    onPanelChange(value, mode) {
      console.log(value, mode);
    }
  }
}
</script>