UNPKG

@vtj/web

Version:

VTJ 是一款基于 Vue3 + Typescript 的低代码页面可视化设计器。内置低代码引擎、渲染器和代码生成器,面向前端开发者,开箱即用。 无缝嵌入本地开发工程,不改变前端开发流程和编码习惯。

29 lines (24 loc) 628 B
import { createAdapter } from '@vtj/renderer'; import { useTitle } from '@vueuse/core'; import { ElNotification, ElLoading } from 'element-plus'; import { Startup } from './components'; export function loading() { return ElLoading.service({ lock: true, text: 'Loading', background: 'rgba(0, 0, 0, 0.7)' }); } export function notify( message: string, title: string = '', type: 'success' | 'warning' | 'error' | 'info' = 'warning' ) { ElNotification({ title, message, type }); } export * from '@vtj/renderer'; export const adapter = createAdapter({ loading, notify, Startup, useTitle });