vue3-select-linkage
Version:
vue3 下拉框联动组件
28 lines (23 loc) • 535 B
TypeScript
interface Window {
Vue: any
}
declare module '*.vue' {
import { ComponentOptions } from 'vue'
const componentOptions: ComponentOptions
export default componentOptions
}
type IBaseOption = string | number
interface ICascadeOptions {
value: IBaseOption
label: IBaseOption
children?: ICascadeOptions[]
}
interface ISelectOption {
[index: number]: ICascadeOptions
}
interface IFileOption {
[index: string]: string
}
interface INewHTMLElement extends HTMLElement {
selectedIndex: number
}