@ly-js/ui
Version:
`@ly-js/ui` 是基于`vue3`常用库,会在`@ly-js/element`、`@ly-js/vant`中引入
30 lines (27 loc) • 912 B
TypeScript
// @ts-nocheck
// GlobalComponents for Volar
declare module 'vue' {
export interface GlobalComponents {
LyIcon: typeof import('@ly-js/ui')['Icon']
LyLoading: typeof import('@ly-js/ui')['Loading']
}
export interface GlobalDirectives {
vClickOutside: typeof import('@ly-js/ui/es/directives/click-outside/src/index')['ClickOutside']
vResize: typeof import('@ly-js/ui/es/directives/resize/src/index')['Resize']
vRipple: typeof import('@ly-js/ui/es/directives/ripple/src/index')['Ripple']
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$formatter: (
value: any,
list: Array<any>,
options?: string | { value: string; label: string }
) => any
$go: (url: string, replace?: boolean) => void
$back: (n?: number) => void
$open: (url: string, target?: string) => void
$fullUrl: (url: string) => string
}
}
export {}