Initial import
This commit is contained in:
34
docs/components/select.md
Executable file
34
docs/components/select.md
Executable file
@@ -0,0 +1,34 @@
|
||||
# Select Input
|
||||
|
||||
## 목적
|
||||
|
||||
`code/value` 데이터를 받아 실제 값은 `code`로 유지하고, 드롭다운 표시와 검색은 `value` 기준으로 처리하는 select combo 입력 컴포넌트입니다.
|
||||
|
||||
## 폴더 구조
|
||||
|
||||
```text
|
||||
src/components/inputs/select
|
||||
├─ SelectUI.tsx
|
||||
├─ index.ts
|
||||
├─ plugins/
|
||||
├─ samples/
|
||||
└─ types/
|
||||
```
|
||||
|
||||
## 주요 props
|
||||
|
||||
- `data: { code, value }[]`
|
||||
- `value`, `defaultValue`
|
||||
- `onChange(code, item)`
|
||||
- `showSearch`
|
||||
- `allowClear`
|
||||
- `placeholder`
|
||||
|
||||
## plugins
|
||||
|
||||
- `createSelectPlaceholderPlugin`
|
||||
- `createSelectSortPlugin`
|
||||
|
||||
## 샘플
|
||||
|
||||
- 대표 샘플: `src/components/inputs/select/samples/Sample.tsx`
|
||||
Reference in New Issue
Block a user