<div v-if="isShowToolbar" ref="toolbarRef" class="kanban-toolbar">div>
<div ref="kanbanRef" class="kanban">div>
import { computed, onMounted, ref } from "vue";
import { kanban } from "./lib/kanban.dev.js";
import "./lib/kanban.css";
import { kanbanProps } from "./kanban";
import zhCN from "./locale/zh-CN";
defineOptions({ name: "Kanban" });
} = defineProps(kanbanProps);
const kanbanInstance = ref();
const toolbarRef = ref();
const toolbarInstance = ref();
const isShowToolbar = computed(() => isToolbar);
const { Kanban, Toolbar, defaultEditorShape } = kanban;
kanbanInstance.value = new Kanban(kanbanRef.value, {
columnShape: columnsConfig,
editorShape: editorConfig,
locale: locale === "cn" ? zhCN : "en",
toolbarInstance.value = new Toolbar(toolbarRef.value, {
api: kanbanInstance.value.api,
instance: kanbanInstance,