Hzy0913 / mpvue-calendar

📅 A calendar component for vue3.0. Support gesture sliding, range selection, according to the week switch...
http://preview.binlive.cn/mpvue-calendar#/
MIT License
514 stars 105 forks source link

vite + vue3 项目引入有问题,不显示组件 #107

Closed Michaelwong0820 closed 2 years ago

Michaelwong0820 commented 2 years ago

能否提供在vite框架上运行的案例

Hzy0913 commented 2 years ago

使用官方提供的模板测试可以正常运行

npm init vite@latest my-vue-app --template vue

<script setup>
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup

import Calendar from 'mpvue-calendar';
</script>

<template>
  <Calendar
    selectMode="multi"
    class-name="multi-mode"
    language="en"
  />
</template>

<style>
#app {
  color: #2c3e50;
}
</style>

image