el-plus-crud
Version:
采用Vue3 + TS,封装的element-plus数据驱动表单、列表组件
14 lines (10 loc) • 355 B
TypeScript
import type { DefineComponent } from 'vue'
// 声明文件,*.vue 后缀的文件交给 vue 模块来处理
declare module '*.vue' {
const component: DefineComponent<{}, {}, any>
export default component
}
// 声明 ref
declare type RefType<T = any> = T | null
// 声明 HTMLElement
declare type HtmlType = HTMLElement | string | undefined | null