index.d.mts 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. import * as vue from 'vue';
  2. import { ComponentPropsOptions, ExtractPropTypes } from 'vue';
  3. interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
  4. filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
  5. }
  6. declare const VLabel: {
  7. new (...args: any[]): {
  8. $: vue.ComponentInternalInstance;
  9. $data: {};
  10. $props: {
  11. style?: vue.StyleValue | undefined;
  12. clickable?: boolean | undefined;
  13. key?: string | number | symbol | undefined;
  14. text?: string | undefined;
  15. class?: any;
  16. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  17. default?: (() => vue.VNodeChild) | undefined;
  18. };
  19. ref?: vue.VNodeRef | undefined;
  20. ref_for?: boolean | undefined;
  21. ref_key?: string | undefined;
  22. theme?: string | undefined;
  23. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  24. 'v-slots'?: {
  25. default?: false | (() => vue.VNodeChild) | undefined;
  26. } | undefined;
  27. onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  28. [key: string]: any;
  29. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  30. [key: string]: any;
  31. }>) => void)[] | undefined;
  32. onVnodeMounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  33. [key: string]: any;
  34. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  35. [key: string]: any;
  36. }>) => void)[] | undefined;
  37. onVnodeBeforeUpdate?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  38. [key: string]: any;
  39. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  40. [key: string]: any;
  41. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  42. [key: string]: any;
  43. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  44. [key: string]: any;
  45. }>) => void)[] | undefined;
  46. onVnodeUpdated?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  47. [key: string]: any;
  48. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  49. [key: string]: any;
  50. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  51. [key: string]: any;
  52. }>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  53. [key: string]: any;
  54. }>) => void)[] | undefined;
  55. onVnodeBeforeUnmount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  56. [key: string]: any;
  57. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  58. [key: string]: any;
  59. }>) => void)[] | undefined;
  60. onVnodeUnmounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  61. [key: string]: any;
  62. }>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
  63. [key: string]: any;
  64. }>) => void)[] | undefined;
  65. };
  66. $attrs: {
  67. [x: string]: unknown;
  68. };
  69. $refs: {
  70. [x: string]: unknown;
  71. };
  72. $slots: Readonly<{
  73. default?: (() => vue.VNode<vue.RendererNode, vue.RendererElement, {
  74. [key: string]: any;
  75. }>[]) | undefined;
  76. }>;
  77. $root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  78. $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
  79. $emit: (event: string, ...args: any[]) => void;
  80. $el: any;
  81. $options: vue.ComponentOptionsBase<{
  82. style: vue.StyleValue;
  83. clickable: boolean;
  84. } & {
  85. text?: string | undefined;
  86. class?: any;
  87. theme?: string | undefined;
  88. } & {
  89. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  90. default?: (() => vue.VNodeChild) | undefined;
  91. };
  92. 'v-slots'?: {
  93. default?: false | (() => vue.VNodeChild) | undefined;
  94. } | undefined;
  95. } & {
  96. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  97. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
  98. style: vue.StyleValue;
  99. clickable: boolean;
  100. }, {}, string, vue.SlotsType<Partial<{
  101. default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  102. [key: string]: any;
  103. }>[];
  104. }>>> & {
  105. beforeCreate?: ((() => void) | (() => void)[]) | undefined;
  106. created?: ((() => void) | (() => void)[]) | undefined;
  107. beforeMount?: ((() => void) | (() => void)[]) | undefined;
  108. mounted?: ((() => void) | (() => void)[]) | undefined;
  109. beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
  110. updated?: ((() => void) | (() => void)[]) | undefined;
  111. activated?: ((() => void) | (() => void)[]) | undefined;
  112. deactivated?: ((() => void) | (() => void)[]) | undefined;
  113. beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
  114. beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
  115. destroyed?: ((() => void) | (() => void)[]) | undefined;
  116. unmounted?: ((() => void) | (() => void)[]) | undefined;
  117. renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  118. renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
  119. errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
  120. };
  121. $forceUpdate: () => void;
  122. $nextTick: typeof vue.nextTick;
  123. $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
  124. } & {
  125. style: vue.StyleValue;
  126. clickable: boolean;
  127. } & {
  128. text?: string | undefined;
  129. class?: any;
  130. theme?: string | undefined;
  131. } & {
  132. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  133. default?: (() => vue.VNodeChild) | undefined;
  134. };
  135. 'v-slots'?: {
  136. default?: false | (() => vue.VNodeChild) | undefined;
  137. } | undefined;
  138. } & {
  139. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  140. } & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
  141. __isFragment?: undefined;
  142. __isTeleport?: undefined;
  143. __isSuspense?: undefined;
  144. } & vue.ComponentOptionsBase<{
  145. style: vue.StyleValue;
  146. clickable: boolean;
  147. } & {
  148. text?: string | undefined;
  149. class?: any;
  150. theme?: string | undefined;
  151. } & {
  152. $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
  153. default?: (() => vue.VNodeChild) | undefined;
  154. };
  155. 'v-slots'?: {
  156. default?: false | (() => vue.VNodeChild) | undefined;
  157. } | undefined;
  158. } & {
  159. "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
  160. }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
  161. style: vue.StyleValue;
  162. clickable: boolean;
  163. }, {}, string, vue.SlotsType<Partial<{
  164. default: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
  165. [key: string]: any;
  166. }>[];
  167. }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
  168. theme: StringConstructor;
  169. class: vue.PropType<any>;
  170. style: {
  171. type: vue.PropType<vue.StyleValue>;
  172. default: null;
  173. };
  174. text: StringConstructor;
  175. clickable: BooleanConstructor;
  176. }, vue.ExtractPropTypes<{
  177. theme: StringConstructor;
  178. class: vue.PropType<any>;
  179. style: {
  180. type: vue.PropType<vue.StyleValue>;
  181. default: null;
  182. };
  183. text: StringConstructor;
  184. clickable: BooleanConstructor;
  185. }>>;
  186. type VLabel = InstanceType<typeof VLabel>;
  187. export { VLabel };