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 2.1KB

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