UNPKG

vxe-table-demonic

Version:

一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式...

60 lines (47 loc) 1.43 kB
import { SetupContext } from 'vue' import { VXEComponent, VxeComponentBase } from './component' /* eslint-disable no-use-before-define */ /** * 组件 - 图标 * @example import { VxeIcon } from 'vxe-components' */ export const VxeIcon: VXEComponent<{ [key: string]: any }> /** * 组件 - 图标 */ export const Icon: VXEComponent<{ [key: string]: any }> export interface VxeIconConstructor extends VxeComponentBase, VxeIconMethods { props: VxeIconProps context: SetupContext<VxeIconEmits> } export interface IconMethods {} export interface VxeIconMethods extends IconMethods { } export type VxeIconProps<D = any> = { name?: VxeIconPropTypes.Name roll?: VxeIconPropTypes.Roll status?: VxeIconPropTypes.Status } export namespace VxeIconPropTypes { export type Name = string export type Roll = boolean export type Status = string } export type VxeIconEmits = [ 'click' ] export namespace VxeIconDefines { interface IconKeyboardEventParams { $event: KeyboardEvent } export interface ClickParams {} export interface ClickEventParams extends IconKeyboardEventParams, ClickParams { } } export type VxeIconEventProps = { onClick?: VxeIconEvents.Click } export interface VxeIconListeners { click?: VxeIconEvents.Click } export namespace VxeIconEvents { export type Click = (params: VxeIconDefines.ClickEventParams) => void }