1.2.1 • Published 11 months ago

vue-daum-postcode v1.2.1

Weekly downloads
675
License
MIT
Repository
github
Last release
11 months ago

Vue Daum Postcode

Daum 우편번호 서비스를 기반으로 작업된 Vue Component 입니다.

Vue 2.x를 사용하다면 v0.x branch브랜치를 참고해주세요.

Installation

npm i vue-daum-postcode

Global Registration

Vue3 Global Registration Guide

import { createApp } from 'vue'
import VueDaumPostcode from 'vue-daum-postcode'


const app = createApp(/* */)

app.use(VueDaumPostcode) // export default is plugin

Local Registration

Vue3 Local Registration Guide

<template>
  <VueDaumPostcode :options="options" />
</template>
<script>
import { VueDaumPostcode } from 'vue-daum-postcode'

export default {
  components: {
    VueDaumPostcode, // export VueDaumPostcode is component
  },
}
</script>

기본 태그 변경 (Global Registration)

app.use(VueDaumPostcode, {
  name: 'DaumPostcode',
})

Postcode Js 경로 변경 (Global Registration)

기본 Daum postcode.js url(https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js)을 다른 url로 변경하려면 다음과 같이 설정하시면 됩니다.

app.use(VueDaumPostcode, {
  scriptUrl: "https://s3.ap-northeast-2.amazonaws.com/YOUR_BUCKET_NAME/postcode.v2.js"
})

Props

이름타입설명기본값
qString검색어""
animationBooleanDaum 우편번호, 생성자속성에서 animation.false
noAutoMappingBooleanDaum 우편번호, 생성자속성에서 autoMapping, 기본값을 true에서 false로 조정.false
noShorthandBooleanDaum 우편번호, 생성자속성에서 shorthand, 기본값을 true에서 false로 조정.false
pleaseReadGuideNumberDaum 우편번호, 생성자속성에서 pleaseReadGuide.0
pleaseReadGuideTimerNumberDaum 우편번호, 생성자속성에서 pleaseReadGuideTimer.1.5
maxSuggestItemsNumberDaum 우편번호, 생성자속성에서 maxSuggestItems.10
showMoreHNameBooleanDaum 우편번호, 생성자속성에서 showMoreHName.false
hideMapBtnBooleanDaum 우편번호, 생성자속성에서 hideMapBtn.false
hideEngBtnBooleanDaum 우편번호, 생성자속성에서 hideEngBtn.false
alwaysShowEngAddrBooleanDaum 우편번호, 생성자속성에서 alwaysShowEngAddr.false
zonecodeOnlyBooleanDaum 우편번호, 생성자속성에서 zonecodeOnly.false
noSubmitModeBooleanSubmit Mode 비활성화시 사용. (관련 이슈 링크)false
themeobjectDaum 우편번호, 생성자속성에서 theme.{}

Events

이름설명
load다음 우편번호가 로딩 되었을 때 발생
searchDaum 우편번호, 속성에서 onsearch.
completeDaum 우편번호, 속성에서 oncomplete.
resizeDaum 우편번호, 속성에서 onresize.
error스크립트 로딩 실패시 발생

Slots

이름설명
loading다음 우편번호가 아직 완전히 불러오기 전에 보여줄 내용이 있는 경우 해당 슬롯에 넣습니다. (ex. spinner)
1.2.1

11 months ago

1.2.0

1 year ago

0.10.1

1 year ago

0.10.2

1 year ago

1.1.0

3 years ago

0.10.0

3 years ago

1.0.0

3 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago