Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vnode.d.ts 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { Vue } from "./vue";
  2. export type ScopedSlot = (props: any) => VNodeChildrenArrayContents | string;
  3. export type VNodeChildren = VNodeChildrenArrayContents | [ScopedSlot] | string;
  4. export interface VNodeChildrenArrayContents extends Array<VNode | string | VNodeChildrenArrayContents> {}
  5. export interface VNode {
  6. tag?: string;
  7. data?: VNodeData;
  8. children?: VNode[];
  9. text?: string;
  10. elm?: Node;
  11. ns?: string;
  12. context?: Vue;
  13. key?: string | number;
  14. componentOptions?: VNodeComponentOptions;
  15. componentInstance?: Vue;
  16. parent?: VNode;
  17. raw?: boolean;
  18. isStatic?: boolean;
  19. isRootInsert: boolean;
  20. isComment: boolean;
  21. }
  22. export interface VNodeComponentOptions {
  23. Ctor: typeof Vue;
  24. propsData?: object;
  25. listeners?: object;
  26. children?: VNodeChildren;
  27. tag?: string;
  28. }
  29. export interface VNodeData {
  30. key?: string | number;
  31. slot?: string;
  32. scopedSlots?: { [key: string]: ScopedSlot };
  33. ref?: string;
  34. tag?: string;
  35. staticClass?: string;
  36. class?: any;
  37. staticStyle?: { [key: string]: any };
  38. style?: object[] | object;
  39. props?: { [key: string]: any };
  40. attrs?: { [key: string]: any };
  41. domProps?: { [key: string]: any };
  42. hook?: { [key: string]: Function };
  43. on?: { [key: string]: Function | Function[] };
  44. nativeOn?: { [key: string]: Function | Function[] };
  45. transition?: object;
  46. show?: boolean;
  47. inlineTemplate?: {
  48. render: Function;
  49. staticRenderFns: Function[];
  50. };
  51. directives?: VNodeDirective[];
  52. keepAlive?: boolean;
  53. }
  54. export interface VNodeDirective {
  55. readonly name: string;
  56. readonly value: any;
  57. readonly oldValue: any;
  58. readonly expression: any;
  59. readonly arg: string;
  60. readonly modifiers: { [key: string]: boolean };
  61. }