UNPKG

agile-core

Version:

Agile Core - A powerful component based micro front-end framework

36 lines (31 loc) 1.04 kB
import { ComponentCustomProperties } from 'vue'; import { AuiComponent } from '../core/aui'; declare module '@vue/runtime-core' { interface ComponentCustomProperties { /** * 设置或者获取原生DOM的value值,当没有参数时是获取,否则为设置 * @param v 要设置的value值 * @returns 原生DOM的value值 */ $value: (v?: any) => any; /** * 将任意数据转为字符串数组 * @param s 要转为数组的数据 * @returns 字符串数组 */ $anyToArray: (s: any) => string[]; /** * VUE组件对应的AUI原生DOM对象 * @returns AUI原生DOM对象; */ $aui: () => AuiComponent | null; /** * 调用AUI原生DOM的方法 * @param name 方法名 * @param args 参数 * @returns 方法返回值 */ $xcall: (name?: string, ...args: any[]) => any; } } export { };