728x90
반응형
insert popoup
<template>
<div>
<el-dialog
:visible.sync = "popupVal"
:before-close = "handleClose">
<span>HI INSERT POPUP</span>
</el-dialog>
</div>
</template>
<script>
export default {
name : ''
, props : {
popupVal : {}
}
, methods : {
handleClose( ) {
this.$confirm('정말 끝내시겠습니까 ?')
.then(_ => {
this.popupClose();
})
.catch(_ => {});
}
, popupClose() {
this.$emit('close:popup', false)
}
}
}
</script>
update popoup
<template>
<div>
<el-dialog
:visible.sync = "popupVal"
:before-close = "handleClose">
<span>HI UPDATE POPUP</span>
</el-dialog>
</div>
</template>
<script>
export default {
name : ''
, props : {
popupVal : {}
}
, methods : {
handleClose( ) {
this.$confirm('정말 끝내시겠습니까 ?')
.then(_ => {
this.popupClose();
})
.catch(_ => {});
}
, popupClose() {
this.$emit('close:popup', false)
}
}
}
</script>
728x90
반응형
'개발중 > Vue.js' 카테고리의 다른 글
POMS Method Convention ☺❗ (0) | 2021.10.05 |
---|---|
Common Search Box Convention (0) | 2021.10.05 |
vue 유효성 span 알림 검사 (0) | 2021.08.31 |
el-table column align (0) | 2021.08.30 |
객체 배열에서 특정 값 추출 (0) | 2021.08.13 |