@keyblade/pro-components 1.0.3 → 1.1.0

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,17 +1,55 @@
1
- import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
1
+ import type { ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, App } from 'vue';
2
2
  declare const ProBreadcrumb: {
3
3
  new (...args: any[]): {
4
4
  $: ComponentInternalInstance;
5
5
  $data: {};
6
- $props: Partial<{
7
- items: string[];
8
- }> & Omit<Readonly<ExtractPropTypes<{
9
- items: {
10
- type: PropType<string[]>;
11
- required: false;
12
- default: () => never[];
13
- };
14
- }>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "items">;
6
+ $props: {
7
+ items?: string[] | undefined;
8
+ key?: string | number | symbol | undefined;
9
+ ref?: VNodeRef | undefined;
10
+ ref_for?: boolean | undefined;
11
+ ref_key?: string | undefined;
12
+ onVnodeBeforeMount?: ((vnode: VNode<RendererNode, RendererElement, {
13
+ [key: string]: any;
14
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
15
+ [key: string]: any;
16
+ }>) => void)[] | undefined;
17
+ onVnodeMounted?: ((vnode: VNode<RendererNode, RendererElement, {
18
+ [key: string]: any;
19
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
20
+ [key: string]: any;
21
+ }>) => void)[] | undefined;
22
+ onVnodeBeforeUpdate?: ((vnode: VNode<RendererNode, RendererElement, {
23
+ [key: string]: any;
24
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
25
+ [key: string]: any;
26
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
27
+ [key: string]: any;
28
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
29
+ [key: string]: any;
30
+ }>) => void)[] | undefined;
31
+ onVnodeUpdated?: ((vnode: VNode<RendererNode, RendererElement, {
32
+ [key: string]: any;
33
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
34
+ [key: string]: any;
35
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
36
+ [key: string]: any;
37
+ }>, oldVNode: VNode<RendererNode, RendererElement, {
38
+ [key: string]: any;
39
+ }>) => void)[] | undefined;
40
+ onVnodeBeforeUnmount?: ((vnode: VNode<RendererNode, RendererElement, {
41
+ [key: string]: any;
42
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
43
+ [key: string]: any;
44
+ }>) => void)[] | undefined;
45
+ onVnodeUnmounted?: ((vnode: VNode<RendererNode, RendererElement, {
46
+ [key: string]: any;
47
+ }>) => void) | ((vnode: VNode<RendererNode, RendererElement, {
48
+ [key: string]: any;
49
+ }>) => void)[] | undefined;
50
+ class?: unknown;
51
+ style?: unknown;
52
+ };
15
53
  $attrs: {
16
54
  [x: string]: unknown;
17
55
  };
@@ -19,10 +57,10 @@ declare const ProBreadcrumb: {
19
57
  [x: string]: unknown;
20
58
  };
21
59
  $slots: Readonly<{
22
- [name: string]: Slot | undefined;
60
+ [name: string]: Slot<any> | undefined;
23
61
  }>;
24
- $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
25
- $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
62
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
63
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
26
64
  $emit: (event: string, ...args: any[]) => void;
27
65
  $el: any;
28
66
  $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
@@ -33,7 +71,7 @@ declare const ProBreadcrumb: {
33
71
  };
34
72
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
35
73
  items: string[];
36
- }, {}, string> & {
74
+ }, {}, string, {}> & {
37
75
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
38
76
  created?: ((() => void) | (() => void)[]) | undefined;
39
77
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -48,7 +86,7 @@ declare const ProBreadcrumb: {
48
86
  unmounted?: ((() => void) | (() => void)[]) | undefined;
49
87
  renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
50
88
  renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
51
- errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
89
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
52
90
  };
53
91
  $forceUpdate: () => void;
54
92
  $nextTick: typeof nextTick;
@@ -71,7 +109,7 @@ declare const ProBreadcrumb: {
71
109
  };
72
110
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
73
111
  items: string[];
74
- }, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
112
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
75
113
  install: (app: App) => void;
76
114
  };
77
115
  export { ProBreadcrumb };
@@ -13,5 +13,5 @@ declare const _sfc_main: DefineComponent<{
13
13
  };
14
14
  }>>, {
15
15
  items: string[];
16
- }>;
16
+ }, {}>;
17
17
  export default _sfc_main;
@@ -1,4 +1,5 @@
1
- import { defineComponent, inject, computed, resolveComponent, unref, openBlock, createBlock, normalizeClass, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode } from "vue";
1
+ import { defineComponent, inject, computed, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
+ const prefixClsName = "keyblade-pro-breadcrumb";
2
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
4
  __name: "pro-breadcrumb",
4
5
  props: {
@@ -10,7 +11,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
11
  },
11
12
  setup(__props) {
12
13
  const props = __props;
13
- const prefixClsName = "keyblade-pro-breadcrumb";
14
14
  const proBreadcrumbItems = inject("ProBreadcrumbItems", []);
15
15
  const breadcrumbItems = computed(() => {
16
16
  if (props.items instanceof Array && props.items.length === 0 || !props.items) {
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  const _component_icon_apps = resolveComponent("icon-apps");
23
23
  const _component_a_breadcrumb_item = resolveComponent("a-breadcrumb-item");
24
24
  const _component_a_breadcrumb = resolveComponent("a-breadcrumb");
25
- return unref(breadcrumbItems) ? (openBlock(), createBlock(_component_a_breadcrumb, {
25
+ return breadcrumbItems.value ? (openBlock(), createBlock(_component_a_breadcrumb, {
26
26
  key: 0,
27
27
  class: normalizeClass(prefixClsName)
28
28
  }, {
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  ]),
36
36
  _: 1
37
37
  }, 8, ["class"]),
38
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(breadcrumbItems), (item, index) => {
38
+ (openBlock(true), createElementBlock(Fragment, null, renderList(breadcrumbItems.value, (item, index) => {
39
39
  return openBlock(), createBlock(_component_a_breadcrumb_item, {
40
40
  key: `${item}-${index}`
41
41
  }, {