Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(composable): 함수형 Modal 구성하기 #24

Open
seongpil0948 opened this issue Jun 27, 2023 · 0 comments
Open

Feat(composable): 함수형 Modal 구성하기 #24

seongpil0948 opened this issue Jun 27, 2023 · 0 comments

Comments

@seongpil0948
Copy link
Contributor

trello link

ElMessageBox 형식 처럼, 비동기 함수 호출 형식으로 팝업을 손쉽게 사용할 수 있는 구조 구성

호출 구조는 공통 script로 구성하고, 각각 필요 modal을 컴포넌트 형태로 구성. 이를 비동기 함수로 호출하고 resolve나 reject 이후에 차후 처리하는 방식

예제 소스

import UserSearchPopup from UserSearchPopup.vue


// 팝업 호출
CmModal(UserSearchPopup, {compType: 'TOO'}).then((user) => {
  // 선택된 유저 처리
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant