@kaitify/vue 0.0.2 → 0.0.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { Ref } from 'vue';
1
2
  import { Instance } from '@popperjs/core';
2
3
  import { BubblePropsType } from './props';
3
4
  declare function __VLS_template(): {
@@ -11,8 +12,8 @@ declare function __VLS_template(): {
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: import('vue').DefineComponent<BubblePropsType, {
14
- elRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
15
- popperInstance: import('vue').Ref<Instance | undefined, Instance | undefined>;
15
+ elRef: Ref<HTMLElement | undefined, HTMLElement | undefined>;
16
+ popperInstance: Ref<Instance | undefined, Instance | undefined>;
16
17
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
18
  hidden: (value: Element) => any;
18
19
  show: (value: Element) => any;
@@ -1,3 +1,4 @@
1
+ import { Ref } from 'vue';
1
2
  import { MenuDataType, MenuPropsType } from './props';
2
3
  declare function __VLS_template(): {
3
4
  slots: {
@@ -54,12 +55,12 @@ declare function __VLS_template(): {
54
55
  onHide?: ((value: Element) => any) | undefined;
55
56
  onHiding?: ((value: Element) => any) | undefined;
56
57
  }>, {
57
- visible: import('vue').Ref<boolean, boolean>;
58
+ visible: Ref<boolean, boolean>;
58
59
  showPopover: () => void;
59
60
  hidePopover: () => void;
60
- popperInstance: import('vue').Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
61
+ popperInstance: Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
61
62
  update: () => Promise<void>;
62
- realPlacement: import('vue').Ref<import('../../core/popover').PopoverPlacementType, import('../../core/popover').PopoverPlacementType>;
63
+ realPlacement: Ref<import('../../core/popover').PopoverPlacementType, import('../../core/popover').PopoverPlacementType>;
63
64
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
64
65
  hidden: (value: Element) => any;
65
66
  show: (value: Element) => any;
@@ -111,12 +112,12 @@ declare function __VLS_template(): {
111
112
  onHide?: ((value: Element) => any) | undefined;
112
113
  onHiding?: ((value: Element) => any) | undefined;
113
114
  }>, "visible" | "popperInstance" | "showPopover" | "hidePopover" | "update" | "realPlacement" | ("disabled" | "zIndex" | "animation" | "placement" | "arrow" | "trigger" | "delay")> & import('vue').ShallowUnwrapRef<{
114
- visible: import('vue').Ref<boolean, boolean>;
115
+ visible: Ref<boolean, boolean>;
115
116
  showPopover: () => void;
116
117
  hidePopover: () => void;
117
- popperInstance: import('vue').Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
118
+ popperInstance: Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
118
119
  update: () => Promise<void>;
119
- realPlacement: import('vue').Ref<import('../../core/popover').PopoverPlacementType, import('../../core/popover').PopoverPlacementType>;
120
+ realPlacement: Ref<import('../../core/popover').PopoverPlacementType, import('../../core/popover').PopoverPlacementType>;
120
121
  }> & {} & import('vue').ComponentCustomProperties & {} & {
121
122
  $slots: {
122
123
  refer?(_: {}): any;
@@ -204,11 +204,6 @@ export type WrapperEmitsType = {
204
204
  * 编辑器状态对象
205
205
  */
206
206
  export type StateType = {
207
- el?: HTMLElement;
208
207
  editor?: Editor;
209
208
  selection?: Selection;
210
- locale: LocaleType;
211
- t: (key: string) => string;
212
- disabled: boolean;
213
- isMouseDown: boolean;
214
209
  };
@@ -23,6 +23,7 @@ declare function __VLS_template(): {
23
23
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
24
  declare const __VLS_component: import('vue').DefineComponent<WrapperPropsType, {
25
25
  state: import('vue').ComputedRef<StateType>;
26
+ elRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
26
27
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
28
  [x: string]: any;
28
29
  } & {