index.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. import { camelize } from '../util';
  2. import initDefaultProps from './initDefaultProps';
  3. import type { VueInstance } from '../hooks/_vueuse/unrefElement';
  4. declare const splitAttrs: (attrs: any) => {
  5. onEvents: Record<string, any>;
  6. events: Record<string, any>;
  7. extraAttrs: Record<string, any>;
  8. };
  9. declare const parseStyleText: (cssText?: string, camel?: boolean) => {};
  10. declare const hasProp: (instance: any, prop: string) => boolean;
  11. export declare const skipFlattenKey: unique symbol;
  12. declare const flattenChildren: (children?: any[], filterEmpty?: boolean) => any[];
  13. declare const getSlot: (self: any, name?: string, options?: {}) => any[];
  14. declare const findDOMNode: (instance: any) => any;
  15. declare const getOptionProps: (instance: VueInstance) => {};
  16. declare const getComponent: (instance: any, prop?: string, options?: any, execute?: boolean) => any;
  17. declare const getKey: (ele: any) => any;
  18. export declare function getEvents(ele?: any, on?: boolean): Record<string, any>;
  19. export declare function getClass(ele: any): {};
  20. export declare function getStyle(ele: any, camel?: boolean): any;
  21. export declare function getComponentName(opts: any): any;
  22. export declare function isFragment(c: any): boolean;
  23. export declare function isEmptyContent(c: any): boolean;
  24. export declare function isEmptyElement(c: any): boolean;
  25. export declare function isEmptySlot(c: any): any;
  26. export declare function isStringElement(c: any): boolean;
  27. export declare function filterEmpty(children?: any[]): any[];
  28. export declare function filterEmptyWithUndefined(children: any[]): any[];
  29. declare function isValidElement(element: any): boolean;
  30. declare function getPropsSlot(slots: any, props: any, prop?: string): any;
  31. export declare const getTextFromElement: (ele: any) => any;
  32. export { splitAttrs, hasProp, getOptionProps, getComponent, getKey, parseStyleText, initDefaultProps, isValidElement, camelize, getSlot, findDOMNode, flattenChildren, getPropsSlot, };
  33. export default hasProp;