진스
input에 1byte마다 자음마다 validation 본문
728x90
<div class="pop_content">
<div class="login_input_area">
<div class="input_box">
<input
type="text"
id="id00"
@input="chageAddress"
vlaue="address"
/>
<label for="id00"
><span v-if="!isAddressValided" class="in_box"
>도로명+건물명,도로명,지번,건물명</span
></label
>
</div>
</div>
</div>
data() {
return {
address: '',
};
},
computed: {
isAddressValided() {
return this.address != '';
},
},
methods: {
chageAddress(e) {
this.address = e.target.value;
},
},
728x90
'Vue' 카테고리의 다른 글
Vue Swipe Tabs 구현 (0) | 2021.05.16 |
---|---|
mousemove (0) | 2021.05.16 |
vue 개발 확장 플러그인 (0) | 2021.05.13 |
eslint와prettier 설정 (0) | 2021.05.10 |
video 태그 삽입 (0) | 2021.05.06 |
Comments