2.0.0 • Published 10 months ago

vue-calendar-mobile-panel v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 months ago

vue-calendar-mobile-panel

996.icu LICENSE

Install

pnpm i vue-calendar-mobile-panel -S

Demo

vue-calendar-mobile-panel

Preview

image

Usage

template

  <Calendar
      :date="date"
      :sunday-begin="true" // 默认是周一开始 当是true的时候 是周日开始
      :mark="marks"
      :disable="disable" // 禁用日期 字符串、数组,自定义函数 
      @select="onCheck" //日期点击时触发
  ></Calendar>

script

  import { ref } from 'vue';
  import Calendar from 'vue-calendar-mobile-panel';

  const date = ref(new Date())

  const marks = ref(['2023/07/11', '2023/07/18']);
  const disable = (day) => {
    return day.split('/')[2] === '12';
  };

  const onCheck = (day) => {
    console.log(day);
  };
1.2.7

10 months ago

2.0.0

10 months ago

1.2.6

4 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago