feat: sidebar style, input search, table hight

This commit is contained in:
Alisa | Side.one
2023-05-28 16:37:37 +08:00
parent 317ca32a1f
commit 5026f5e6be
8 changed files with 524 additions and 359 deletions
@@ -18,7 +18,7 @@ const header = computed(() => {
});
</script>
<template>
<div class="overflow-x-auto p-4">
<div class="overflow-auto h-[500px] p-4">
<div
v-if="header.length > 0"
class="table table-compact w-full"
@@ -35,7 +35,7 @@ const header = computed(() => {
:key="index"
class="text-left text-capitalize"
>
{{ item }}
{{ item }}
</th>
</tr>
</thead>
+7 -2
View File
@@ -4,11 +4,16 @@ import { select } from './index';
const props = defineProps(['value']);
</script>
<template>
<div class="overflow-x-auto">
<div class="overflow-auto">
<table class="table table-compact w-full text-sm">
<tbody>
<tr v-for="(v, k) of value">
<td class="text-capitalize whitespace-break-spaces w-1/5" style="min-width: 180px;">{{ String(k).replaceAll("_", " ") }}</td>
<td
class="text-capitalize whitespace-break-spaces w-1/5"
style="min-width: 180px"
>
{{ String(k).replaceAll('_', ' ') }}
</td>
<td>
<div
class="overflow-hidden w-auto whitespace-normal"