UNPKG

dify-components

Version:

This is a modern component library template based on Turborepo+Vue 3.5+TypeScript.

21 lines (18 loc) 616 B
// // For this project development // import 'vue'; /** * 用作给全局引入的UI组件类型提示: * tsconfig.json 需要添加配置:"types": ["@difylib/ui/global.d.ts"] * * 或者 * 一个全局的类型声明文件.d.ts写入:/// <reference types="@difylib/ui/global.d.ts" /> * 类似于:/// <reference types="vite/client" /> 具体可参考playground下的env.d.ts */ declare module 'vue' { // GlobalComponents for Volar export interface GlobalComponents { VButton: (typeof import('@difylib/ui'))['VButton']; VDialog: (typeof import('@difylib/ui'))['VDialog']; } } export {};