2.0.0 • Published 3 years ago

vue-calendar-mobile-panel v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years 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

3 years ago

2.0.0

3 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago