fix
This commit is contained in:
parent
80920b5d8a
commit
2e392e518f
|
|
@ -65,6 +65,7 @@ export const FilterContent: FC<{
|
||||||
}
|
}
|
||||||
|
|
||||||
.field.search {
|
.field.search {
|
||||||
|
width: auto;
|
||||||
&.focused,
|
&.focused,
|
||||||
&.filled {
|
&.filled {
|
||||||
input {
|
input {
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,9 @@ import { GFCol, parseGenField } from "@/gen/utils";
|
||||||
import { cn } from "@/utils";
|
import { cn } from "@/utils";
|
||||||
import { fields_map } from "@/utils/format-value";
|
import { fields_map } from "@/utils/format-value";
|
||||||
import { useLocal } from "@/utils/use-local";
|
import { useLocal } from "@/utils/use-local";
|
||||||
|
import { set } from "lib/utils/set";
|
||||||
import get from "lodash.get";
|
import get from "lodash.get";
|
||||||
import { AlertTriangle, Loader2 } from "lucide-react";
|
import { AlertTriangle, Loader2, Sticker } from "lucide-react";
|
||||||
import {
|
import {
|
||||||
ChangeEvent,
|
ChangeEvent,
|
||||||
FC,
|
FC,
|
||||||
|
|
@ -26,10 +27,9 @@ import { Toaster, toast } from "sonner";
|
||||||
import { call_prasi_events } from "../../..";
|
import { call_prasi_events } from "../../..";
|
||||||
import { filterWhere } from "../filter/parser/filter-where";
|
import { filterWhere } from "../filter/parser/filter-where";
|
||||||
import { getFilter } from "../filter/utils/get-filter";
|
import { getFilter } from "../filter/utils/get-filter";
|
||||||
|
import { MDLocal } from "../md/utils/typings";
|
||||||
import { Skeleton } from "../ui/skeleton";
|
import { Skeleton } from "../ui/skeleton";
|
||||||
import { sortTree } from "./utils/sort-tree";
|
import { sortTree } from "./utils/sort-tree";
|
||||||
import { set } from "lib/utils/set";
|
|
||||||
import { MDLocal } from "../md/utils/typings";
|
|
||||||
|
|
||||||
type OnRowClick = (arg: {
|
type OnRowClick = (arg: {
|
||||||
row: any;
|
row: any;
|
||||||
|
|
@ -283,6 +283,7 @@ export const TableList: FC<TableListProp> = ({
|
||||||
try {
|
try {
|
||||||
callback(await result);
|
callback(await result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
local.status = "error";
|
local.status = "error";
|
||||||
toast.dismiss();
|
toast.dismiss();
|
||||||
toast.error(
|
toast.error(
|
||||||
|
|
@ -793,12 +794,12 @@ export const TableList: FC<TableListProp> = ({
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<div
|
{Array.isArray(data) && data.length > 0 ? (
|
||||||
className="w-full h-full overflow-y-auto c-flex-col"
|
<div
|
||||||
onScroll={local.paging.scroll}
|
className="w-full h-full overflow-y-auto c-flex-col"
|
||||||
>
|
onScroll={local.paging.scroll}
|
||||||
{Array.isArray(data) ? (
|
>
|
||||||
data.map((e, idx) => {
|
{data.map((e, idx) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="c-flex-grow c-flex"
|
className="c-flex-grow c-flex"
|
||||||
|
|
@ -818,11 +819,14 @@ export const TableList: FC<TableListProp> = ({
|
||||||
</PassProp>
|
</PassProp>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})}
|
||||||
) : (
|
</div>
|
||||||
<>No Data asf as</>
|
) : (
|
||||||
)}
|
<div className="c-flex c-items-center c-justify-center c-flex-1 w-full h-full c-flex-col ">
|
||||||
</div>
|
<Sticker size={35} strokeWidth={1.3} />
|
||||||
|
<div className="c-pt-2">No Data</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue