@wikicasa-dev/components 2.3.1-alpha.20 → 2.3.1-alpha.21
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.
|
@@ -5,7 +5,8 @@ export interface BaseTabsProps<T extends string | number> extends TabsRootProps<
|
|
|
5
5
|
declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
7
|
readonly "onUpdate:modelValue"?: ((payload: T) => any) | undefined;
|
|
8
|
-
|
|
8
|
+
readonly onMounted?: (() => any) | undefined;
|
|
9
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onMounted"> & BaseTabsProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
9
10
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
10
11
|
attrs: any;
|
|
11
12
|
slots: {
|
|
@@ -13,7 +14,7 @@ declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awa
|
|
|
13
14
|
modelValue: T;
|
|
14
15
|
}): any;
|
|
15
16
|
};
|
|
16
|
-
emit: (evt: "update:modelValue", payload: T) => void;
|
|
17
|
+
emit: ((evt: "update:modelValue", payload: T) => void) & ((evt: "mounted") => void);
|
|
17
18
|
}>) => import('vue').VNode & {
|
|
18
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
19
20
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as l, createPropsRestProxy as i, shallowRef as m, provide as d, onMounted as p, createBlock as c, openBlock as f, unref as y, mergeProps as C, withCtx as B, renderSlot as M } from "vue";
|
|
2
2
|
import { TabsRoot as V } from "reka-ui";
|
|
3
|
-
const
|
|
3
|
+
const v = /* @__PURE__ */ l({
|
|
4
4
|
__name: "BaseTabs",
|
|
5
5
|
props: {
|
|
6
6
|
dataCy: {},
|
|
@@ -13,18 +13,20 @@ const k = /* @__PURE__ */ i({
|
|
|
13
13
|
asChild: { type: Boolean },
|
|
14
14
|
as: {}
|
|
15
15
|
},
|
|
16
|
-
emits: ["update:modelValue"],
|
|
17
|
-
setup(t, { emit:
|
|
18
|
-
const
|
|
16
|
+
emits: ["update:modelValue", "mounted"],
|
|
17
|
+
setup(t, { emit: s }) {
|
|
18
|
+
const r = i(t, ["dataCy"]), o = s, a = m(!1);
|
|
19
19
|
return d("indicatorMounted", a), d("setIndicatorMounted", () => {
|
|
20
20
|
a.value = !0;
|
|
21
|
-
}),
|
|
21
|
+
}), p(() => {
|
|
22
|
+
o("mounted");
|
|
23
|
+
}), (u, n) => (f(), c(y(V), C(r, {
|
|
22
24
|
"data-cy": t.dataCy,
|
|
23
25
|
class: "uikit-base-tabs",
|
|
24
|
-
"onUpdate:modelValue":
|
|
26
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => o("update:modelValue", e))
|
|
25
27
|
}), {
|
|
26
|
-
default:
|
|
27
|
-
|
|
28
|
+
default: B(({ modelValue: e }) => [
|
|
29
|
+
M(u.$slots, "default", {
|
|
28
30
|
modelValue: e
|
|
29
31
|
})
|
|
30
32
|
]),
|
|
@@ -33,5 +35,5 @@ const k = /* @__PURE__ */ i({
|
|
|
33
35
|
}
|
|
34
36
|
});
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
v as default
|
|
37
39
|
};
|