@citruslime/ui 2.0.0-beta.2 → 2.0.0-beta.3
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/dist/.eslintrc.js +2 -1
- package/dist/ui.es.js +1 -1
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/app/cl-ui-app.vue +10 -1
package/package.json
CHANGED
|
@@ -3,6 +3,12 @@ import { computed, useSlots } from 'vue';
|
|
|
3
3
|
|
|
4
4
|
import ClUiNotification from '../notification/cl-ui-notification.vue';
|
|
5
5
|
|
|
6
|
+
withDefaults(defineProps<{
|
|
7
|
+
removePadding?: boolean;
|
|
8
|
+
}>(), {
|
|
9
|
+
removePadding: false
|
|
10
|
+
});
|
|
11
|
+
|
|
6
12
|
const slots = useSlots();
|
|
7
13
|
|
|
8
14
|
const hasAppHeader = computed(() => slots?.header !== undefined);
|
|
@@ -18,7 +24,10 @@ const hasAppHeader = computed(() => slots?.header !== undefined);
|
|
|
18
24
|
:class="{ 'pt-20' : hasAppHeader }">
|
|
19
25
|
<slot name="navigation"></slot>
|
|
20
26
|
|
|
21
|
-
<div class="flex-grow max-h-full
|
|
27
|
+
<div class="flex-grow max-h-full overflow-x-hidden overflow-y-auto w-auto"
|
|
28
|
+
:class="{
|
|
29
|
+
'md:p-8': !removePadding
|
|
30
|
+
}">
|
|
22
31
|
<slot></slot>
|
|
23
32
|
</div>
|
|
24
33
|
</div>
|