tailwind 클래스 적용이 내부적으로 동작되도록 수정.
내부적으로 클래스 적용이 안되었던 부분에서 깨지는 부분 수정.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
'use client'
|
||||
|
||||
import { SearchDiv, SelectBox, UiTable } from '@common/business_components';
|
||||
import { Button, TableRow, Input, Label } from '@common/components';
|
||||
import { TableHead } from '@common/components';
|
||||
import { Button, TableHead, TableRow } from '@common/components';
|
||||
import { useSnStore } from '../../store';
|
||||
import type { TableUpperProps } from '../../store/oper';
|
||||
|
||||
@@ -33,25 +32,25 @@ import type { TableUpperProps } from '../../store/oper';
|
||||
<div>
|
||||
<p className="pl-3 text-2xl"> 현황정보 조회</p>
|
||||
<SearchDiv>
|
||||
<div className='flex'>
|
||||
<SelectBox label='시설물' selectArray={[{text:'관로', val:'1'}]} />
|
||||
<SelectBox label='사용여부' selectArray={[{text:'사용', val:'1'}]} />
|
||||
<SelectBox label='경과년도' selectArray={[{text:'10년', val:'1'}]} />
|
||||
<SelectBox label='경사' selectArray={[{text:'', val:'1'}]} />
|
||||
<SelectBox label='흐름방식' selectArray={[{text:'자연유하', val:'1'}]} />
|
||||
<SelectBox label='용도' selectArray={[{text:'오수관', val:'1'}]} />
|
||||
<SelectBox label='관종' selectArray={[{text:'PE관관', val:'1'}]} />
|
||||
<SelectBox label='관경' selectArray={[{text:'50', val:'1'}]} />
|
||||
<Button className='mr-4' size='sm'>조회</Button>
|
||||
<div className='grid grid-cols-12 w-4/5'>
|
||||
<SelectBox className='col-span-3' label='시설물' selectArray={[{text:'관로', val:'1'}]} />
|
||||
<SelectBox className='col-span-3' label='사용여부' selectArray={[{text:'사용', val:'1'}]} />
|
||||
<SelectBox className='col-span-3' label='경과년도' selectArray={[{text:'10년', val:'1'}]} />
|
||||
<SelectBox className='col-span-3' label='경사' selectArray={[{text:'', val:'1'}]} />
|
||||
<SelectBox className='col-span-3' label='흐름방식' selectArray={[{text:'자연유하', val:'1'}]} />
|
||||
<SelectBox className='col-span-3' label='용도' selectArray={[{text:'오수관', val:'1'}]} />
|
||||
<SelectBox className='col-span-3' label='관종' selectArray={[{text:'PE관관', val:'1'}]} />
|
||||
<SelectBox className='col-span-3' label='관경' selectArray={[{text:'50', val:'1'}]} />
|
||||
</div>
|
||||
<div className='w-1/5 flex items-center justify-end'>
|
||||
<Button className='mr-10 rounded-lg'>조회</Button>
|
||||
</div>
|
||||
</SearchDiv>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div className="colsapn-1">
|
||||
<UiTable publicReuseFacility={publicReuseFacilityUper} headlist={upHeadList} pageSize={20} total={total} headName={headName()}>
|
||||
{nodeList}
|
||||
</UiTable>
|
||||
</div>
|
||||
<div className="grid grid-cols-1 gap-4">
|
||||
<UiTable tableData={publicReuseFacilityUper} headlist={upHeadList} pageSize={20} total={total} headName={headName()}>
|
||||
{nodeList}
|
||||
</UiTable>
|
||||
</div>
|
||||
</> )
|
||||
}
|
||||
|
||||
@@ -1,54 +1,42 @@
|
||||
'use client'
|
||||
|
||||
import { SearchDiv, SelectBox, UiTable } from '@common/business_components';
|
||||
import { Button, TableRow, Input, Label } from '@common/components';
|
||||
import { TableHead } from '@common/components';
|
||||
import { Button } from '@common/components';
|
||||
import { useSnStore } from '../../store';
|
||||
import type { TableUpperProps } from '../../store/oper/pplines';
|
||||
|
||||
const headMakeColSpan = (upHeadList: TableUpperProps[]) => {
|
||||
return ( <>
|
||||
<TableRow>{
|
||||
upHeadList.map((head: TableUpperProps) =>
|
||||
(<TableHead key={head.id} >{head.title}</TableHead>))}
|
||||
</TableRow>
|
||||
</> )
|
||||
}
|
||||
|
||||
export default function PublicReuseFaciltyInsert() {
|
||||
const { upHeadList, publicReuseFacilityUper} = useSnStore((state) => state);
|
||||
const nodeList= headMakeColSpan(upHeadList);
|
||||
const total = 100;
|
||||
const headName= ()=>{
|
||||
return(
|
||||
<p className="pl-3 text-xl">현황정보</p>
|
||||
)
|
||||
}
|
||||
return ( <>
|
||||
return (
|
||||
<div>
|
||||
<p className="pl-3 text-2xl"> 현황정보 조회</p>
|
||||
<SearchDiv>
|
||||
<div className='flex'>
|
||||
<SelectBox label='시설물' selectArray={[{text:'관로', val:'1'}]} />
|
||||
<SelectBox label='사용여부' selectArray={[{text:'사용', val:'1'}]} />
|
||||
<SelectBox label='경과년도' selectArray={[{text:'10년', val:'1'}]} />
|
||||
<SelectBox label='경사' selectArray={[{text:'', val:'1'}]} />
|
||||
<SelectBox label='흐름방식' selectArray={[{text:'자연유하', val:'1'}]} />
|
||||
<SelectBox label='용도' selectArray={[{text:'오수관', val:'1'}]} />
|
||||
<SelectBox label='관종' selectArray={[{text:'PE관관', val:'1'}]} />
|
||||
<SelectBox label='관경' selectArray={[{text:'50', val:'1'}]} />
|
||||
<Button className='mr-4' size='sm'>조회</Button>
|
||||
<SearchDiv >
|
||||
<div className='grid grid-cols-12 gap-1 w-4/5'>
|
||||
<SelectBox label='시설물' selectArray={[{text:'관로', val:'1'}]} className='col-span-3'/>
|
||||
<SelectBox label='사용여부' selectArray={[{text:'사용', val:'1'}]} className='col-span-3'/>
|
||||
<SelectBox label='경과년도' selectArray={[{text:'10년', val:'1'}]} className='col-span-3'/>
|
||||
<SelectBox label='경사' selectArray={[{text:'', val:'1'}]} className='col-span-3'/>
|
||||
<SelectBox label='흐름방식' selectArray={[{text:'자연유하', val:'1'}]} className='col-span-3'/>
|
||||
<SelectBox label='용도' selectArray={[{text:'오수관', val:'1'}]} className='col-span-3'/>
|
||||
<SelectBox label='관종' selectArray={[{text:'PE관관', val:'1'}]} className='col-span-3'/>
|
||||
{/* <SelectBox label='관경' selectArray={[{text:'50', val:'1'}]} className='col-span-3'/> */}
|
||||
</div>
|
||||
<div className='w-1/5 flex justify-end items-center'>
|
||||
<Button className='mr-10 rounded-lg'>조회</Button>
|
||||
</div>
|
||||
</SearchDiv>
|
||||
</div>
|
||||
{/* </div> */}
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div className="colsapn-1">
|
||||
<UiTable publicReuseFacility={publicReuseFacilityUper} headlist={upHeadList} pageSize={20} total={total} headName={headName()}>
|
||||
|
||||
</UiTable>
|
||||
<div className="col-span-2">
|
||||
<UiTable tableData={publicReuseFacilityUper} headlist={upHeadList} pageSize={20} total={total} headName={headName()}/>
|
||||
</div>
|
||||
</div>
|
||||
</> )
|
||||
</div> );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import { BaseLayout } from "@common/components";
|
||||
|
||||
const App = ({ children }: Readonly<{ children: React.ReactNode }>) => {
|
||||
return (
|
||||
<BaseLayout>
|
||||
<>
|
||||
{children}
|
||||
</BaseLayout>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -5,8 +5,9 @@ export default {
|
||||
presets: [presetConfig],
|
||||
darkMode: ["class", "[data-mode='dark']"],
|
||||
content: [
|
||||
"./src/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"../../packages/common/components/src/ui/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
"../../packages/common/business_components/src/ui/**/**/*.{js,ts,jsx,tsx,mdx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
|
||||
Reference in New Issue
Block a user