ivue-material-plus
Version:
A high quality UI components Library with Vue.js
67 lines (66 loc) • 1.81 kB
TypeScript
import { Props } from './types/menu-item';
declare const _sfc_main: {
name: string;
props: {
/**
* 菜单项的唯一标识,必填
*
* @type {String | NUmber}
*/
name: {
type: (NumberConstructor | StringConstructor)[];
required: boolean;
};
/**
* 禁用
*
* @type {Boolean}
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
/**
* 跳转的链接,支持 vue-router 对象
*
* @type {Object | String}
*/
to: {
type: (ObjectConstructor | StringConstructor)[];
};
/**
* 相当于 a 链接的 target 属性
*
* @type {String}
*/
target: {
type: StringConstructor;
validator(value: string): boolean;
default: string;
};
/**
* 路由跳转时,开启 replace 将不会向 history 添加新记录
*
* @type {Boolean}
*/
replace: {
type: BooleanConstructor;
default: boolean;
};
};
setup(props: Props): {
active: import("vue").Ref<boolean>;
wrapperClasses: import("vue").ComputedRef<(string | {
[x: string]: boolean;
})[]>;
wrapperStyles: import("vue").ComputedRef<{
paddingLeft?: string;
}>;
linkUrl: import("vue").ComputedRef<any>;
handleActive: (event: Event, newWindow?: boolean) => void;
handleCheckClick: (event: Event, newWindow?: boolean) => boolean;
handleOpenTo: () => void;
handleLink: (newWindow?: boolean) => void;
};
};
export default _sfc_main;