z-components
Version:
17 lines (13 loc) • 512 B
TypeScript
/* 全局引入时的类型提示效果 */
import components from './index'
declare module '@vue/runtime-core' {
export interface GlobalComponents {
// 定义名为 ZtButton 的全局组件,对应于 components.Button 的类型
ZtButton: typeof components.ZtButton
ZtInput: typeof components.ZtInput
ZtTreeTransfer: typeof components.ZtTreeTransfer
ZtRuleCondition: typeof components.ZtRuleCondition
}
}
// 确保模块可以作为一个单独的模块被导入,避免命名冲突
export {}