Dhtmlx Event Calendar 付费版使用

TypeScript 复制代码
<template>
  <div ref="eventCalendarRef" class="event-calendar"></div>
</template>

<script lang="ts" setup>
import { onMounted, ref } from "vue";
// @ts-ignore
import { eventCalendar } from "./lib/event-calendar.dev.js";
import "./lib/event-calendar.css";
import { eventCalendarProps } from "./event-calendar";
defineOptions({ name: "EventCalendar" });
const {
  events,
  date,
  config,
  locale,
  mode,
  calendars,
  colors,
  editorConfig,
  editorValidation,
} = defineProps(eventCalendarProps);
const eventCalendarRef = ref();
const eventCalendarInstance = ref();
const { EventCalendar } = eventCalendar;
onMounted(() => {
  eventCalendarInstance.value = new EventCalendar(eventCalendarRef.value, {
    config: config,
    events: events,
    calendars: calendars,
    date: date,
    mode: mode,
    colors: colors,
    editorConfig: editorConfig,
    editorValidation: editorValidation,
    locale: eventCalendar[locale],
  });
});

defineExpose({
  instance: eventCalendarInstance,
});
</script>

<style lang="scss" scoped>
</style>
相关推荐
努力往上爬de蜗牛几秒前
react native真机调试
javascript·react native·react.js
y***86691 小时前
TypeScript在Electron应用中的使用
javascript·typescript·electron
zy happy3 小时前
若依 vue3 报错:找不到模块“@/api/xxxx/xxxxx”或其相应的类型声明。。Vue 3 can not find mod
前端·javascript·vue.js
meichaoWen4 小时前
【Vue3】vue3的全面学习(一)
前端·javascript·学习
Q***l6875 小时前
Vue增强现实案例
前端·vue.js·ar
b***74886 小时前
Vue开源
前端·javascript·vue.js
ByteCraze7 小时前
我整理的大文件上传方案设计
前端·javascript
前端小白۞7 小时前
vue2 md文件预览和下载
前端·javascript·vue.js
u***u6858 小时前
Vue云原生
前端·vue.js·云原生
OpenTiny社区8 小时前
TinyEngine 低代码实时协作揭秘:原理 +实操,看完直接用!
前端·vue.js·低代码