강의

멘토링

커뮤니티

Inflearn コミュニティ Q&A

alrax35747193 のプロフィール画像
alrax35747193

投稿した質問数

クエサー(Quasar)完璧マスター:Vueフロントウェブをすばやく作成したい場合(Based Vue3)

q-input 컴포넌트 질문

作成

·

453

0

q-input태그에서 약간의 굴곡을 적용하고싶은데 style을 따로 정의하여도 적용되지 않던데 다른 방법이 있을까요?

<template>
  <q-page>
    <q-input
      label="Your Label"
      outlined
      class="rounded-input"
    />
  </q-page>
</template>

<style scoped>
.rounded-input {
  border-radius: 10px; 
}
</style>
vue.jsquasar

回答 1

1

gymcoding님의 프로필 이미지
gymcoding
インストラクター

안녕하세요 🙂

  1. 개발자도구에서 디버깅을 해보시면 실제 border-radius 를 담당하고 있는 요소는 파랑색 네모 박스로 체크한 요소인걸 확인할 수 있습니다. (스크린샷 참고)

  2. 하지만 수강생 분이 스타일을 위해 class를 적용한건 노랑색 박스이지요?

  3. 만약 변경하시려면 파랑색 박스로 감싼 요소를 변경해야 합니다.

image

<template>
<q-page>
    <q-input
    v-model="model"
    label="Your Label"
    outlined
    class="rounded-input"
    />
</q-page>
</template>
<script setup>
import { ref } from 'vue';
const model = ref('');

</script>
<style>
.rounded-input.q-field--outlined .q-field__control {
    border-radius: 30px; 
}
</style>
  
  

 

alrax3574님의 프로필 이미지
alrax3574
質問者

왜 적용이 안되나 답답했는데 감사합니다!

alrax35747193 のプロフィール画像
alrax35747193

投稿した質問数

質問する