🚨fix: QSelectBox 주석 추가

This commit is contained in:
yoosangwook 2024-12-26 09:04:32 +09:00
parent e55fe74aa1
commit 23a023812b

View File

@ -4,10 +4,10 @@ import { useOnClickOutside } from 'usehooks-ts'
/** /**
* *
* @param {string} title - 선택 제목 * @param {string} title - 선택 제목 (선택이 없을때 보여질 )
* @param {array} options - 선택 옵션 * @param {array} options - 선택 옵션 객체 {}
* @param {function} onChange - 선택 변경 함수 * @param {function} onChange - 선택 변경 함수
* @param {object} value - 선택 * @param {object} value - 선택 객체 {}
* @param {boolean} disabled - 선택 비활성화 여부 * @param {boolean} disabled - 선택 비활성화 여부
* @param {string} sourceKey - options에 있는 * @param {string} sourceKey - options에 있는
* @param {string} targetKey - value에 있는 * @param {string} targetKey - value에 있는
@ -26,6 +26,11 @@ export default function QSelectBox({
showKey = '', showKey = '',
params = {}, params = {},
}) { }) {
/**
* 초기 상태 처리
* useState 초기 값으로 사용해야 해서 useState 보다 위에 작성
* @returns {string} 초기 상태
*/
const handleInitState = () => { const handleInitState = () => {
//title ( ) //title ( )
if (title !== '') { if (title !== '') {