v-text-field 양수만 입력하는법
2023. 2. 17. 18:01ㆍVue
<v-text-field
type="number"
oninput="if(this.value < 0) this.value = 0;"
></v-text-field
oninput="if(this.value < 0) this.value = 0;"를 v-text-field에 넣는다.
value가 0보다 작으면 0으로 설정하게 하는 것이다.
참고한 링크
'Vue' 카테고리의 다른 글
Vue: v-data-table에 버튼 넣는법 (0) | 2023.02.24 |
---|---|
[Vue] 숫자에 세자리 마다 콤마 찍는법 (0) | 2023.02.20 |
vue 오류: Could not find a declaration file for module 'vue-xxx' (0) | 2023.02.10 |
[Vue] Vuex ( state, getter, mapGetters, mapstate) (0) | 2022.11.02 |
vue router 기본 개념 (0) | 2022.10.27 |