diff --git a/src/app/management/productinfo/page.jsx b/src/app/management/productinfo/page.jsx
index 5d2fc10..21a4128 100644
--- a/src/app/management/productinfo/page.jsx
+++ b/src/app/management/productinfo/page.jsx
@@ -52,7 +52,7 @@ export default function ProductInfo(){
{/* 풍속선택 팝업 */}
-
+ {/* */}
)
}
\ No newline at end of file
diff --git a/src/app/reactselect/page.jsx b/src/app/reactselect/page.jsx
index eaf37c5..ac7534d 100644
--- a/src/app/reactselect/page.jsx
+++ b/src/app/reactselect/page.jsx
@@ -1,29 +1,9 @@
'use client'
-import React, { useRef, useState } from 'react'
-import Select from 'react-select'
+
+import ReactSelect from '@/components/common/reactselect/ReactSelect'
import '@/styles/_inputcommon.scss'
-export default function ReactSelect() {
- const selectOption = [
- { label: '김창수', value: '1' },
- { label: '류제영', value: '2' },
- { label: '정상연', value: '3' },
- { label: '안병근', value: '4' },
- ]
+export default function ReactSelectPage() {
- const ref = useRef()
-
- const [select, setSelect] = useState('')
-
- //isSearchable 자동완성 검색가능여부
- //isClearable x버튼
-
- const onSelectionChange = (key) => {
- if (key) {
- setSelect(key.value)
- } else {
- setSelect('')
- }
- }
return (
REACT-SELECT
@@ -31,7 +11,7 @@ export default function ReactSelect() {
diff --git a/src/components/common/reactselect/ReactSelect.jsx b/src/components/common/reactselect/ReactSelect.jsx
new file mode 100644
index 0000000..e9627e5
--- /dev/null
+++ b/src/components/common/reactselect/ReactSelect.jsx
@@ -0,0 +1,44 @@
+'use client'
+
+import React, { useRef, useState } from 'react'
+import Select from 'react-select'
+
+export default function ReactSelect(){
+ const selectOption = [
+ { label: '김창수김창수김창수김창수김창수김창수김창수김창수김창수', value: '1' },
+ { label: '敬称選択', value: '2' },
+ { label: '敬称選択', value: '3' },
+ { label: '敬称選択', value: '5' },
+ { label: '敬称選択', value: '6' },
+
+ ]
+
+ const ref = useRef()
+
+ const [select, setSelect] = useState('')
+
+ //isSearchable 자동완성 검색가능여부
+ //isClearable x버튼
+
+ const onSelectionChange = (key) => {
+ if (key) {
+ setSelect(key.value)
+ } else {
+ setSelect('')
+ }
+ }
+
+ return(
+
+ )
+}
\ No newline at end of file
diff --git a/src/components/publishpage/PublishPage.jsx b/src/components/publishpage/PublishPage.jsx
index fc1eed5..43e2ac9 100644
--- a/src/components/publishpage/PublishPage.jsx
+++ b/src/components/publishpage/PublishPage.jsx
@@ -75,6 +75,21 @@ export default function PublishPage() {
|
2024-09-05 |
+
+ |
+ 셀렉트
+ |
+
+ react-select
+ |
+
+
+ reactselect
+
+ |
+ |
+ 2024-09-05 |
+
|
React-Select
diff --git a/src/components/sub/management/productinfo/ProductInfoTable.jsx b/src/components/sub/management/productinfo/ProductInfoTable.jsx
index 857ec37..887c444 100644
--- a/src/components/sub/management/productinfo/ProductInfoTable.jsx
+++ b/src/components/sub/management/productinfo/ProductInfoTable.jsx
@@ -2,6 +2,7 @@
import Pagination from "@/components/common/grid/Pagination";
import QGrid from "@/components/common/grid/QGrid";
+import ReactSelect from "@/components/common/reactselect/ReactSelect";
import { useState } from "react";
export default function ProductInfoTable(){
@@ -83,6 +84,10 @@ export default function ProductInfoTable(){
@@ -110,9 +115,7 @@ export default function ProductInfoTable(){
|
|