frappe-ui 0.1.231 → 0.1.232
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.
package/package.json
CHANGED
|
@@ -26,13 +26,13 @@ const Btn = h('button')
|
|
|
26
26
|
<template>
|
|
27
27
|
<TabsRoot
|
|
28
28
|
:as="props.as"
|
|
29
|
-
class="flex flex-1 overflow-hidden flex-col data-[orientation=vertical]:flex-row
|
|
29
|
+
class="flex flex-1 overflow-hidden flex-col data-[orientation=vertical]:flex-row"
|
|
30
30
|
:orientation="props.vertical ? 'vertical' : 'horizontal'"
|
|
31
31
|
:default-value="props.tabs[0].label"
|
|
32
32
|
>
|
|
33
33
|
<TabsList
|
|
34
|
-
class="relative min-h-fit flex data-[orientation=vertical]:flex-col p-1 border-b data-[orientation=vertical]:border-r"
|
|
35
|
-
:class="{ 'overflow-auto': !props.vertical }"
|
|
34
|
+
class="relative min-h-fit flex data-[orientation=vertical]:flex-col p-1 border-b data-[orientation=vertical]:border-r "
|
|
35
|
+
:class="{ 'overflow-x-auto overflow-y-hidden': !props.vertical }"
|
|
36
36
|
>
|
|
37
37
|
<TabsIndicator
|
|
38
38
|
class="absolute rounded-full duration-300"
|
|
@@ -58,10 +58,12 @@ const Btn = h('button')
|
|
|
58
58
|
</TabsTrigger>
|
|
59
59
|
</TabsList>
|
|
60
60
|
|
|
61
|
-
<TabsContent
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
<TabsContent
|
|
62
|
+
v-for="(tab, i) in props.tabs"
|
|
63
|
+
:value="i"
|
|
64
|
+
class="flex flex-col overflow-auto"
|
|
65
|
+
>
|
|
66
|
+
<slot name="tab-panel" v-bind="{ tab }" />
|
|
65
67
|
</TabsContent>
|
|
66
68
|
</TabsRoot>
|
|
67
69
|
</template>
|