paul-thebaud / v-phone-input

International and accessible phone input for Vuetify 3 and Vue 3.
https://paul-thebaud.github.io/v-phone-input/
MIT License
65 stars 6 forks source link

question: after building the field will be separate v-text-field and v-select #38

Closed HudaNasih closed 4 months ago

HudaNasih commented 4 months ago

Expected Behavior

The phone field is getting separate v-text-field and v-select or v-auto-complete

import Vue from 'vue'
// v-phone-input:  https://github.com/paul-thebaud/v-phone-input/tree/2.x.x
import { createVPhoneInput } from 'v-phone-input'
import 'v-phone-input/dist/v-phone-input.css'

import { VAutocomplete, VSelect } from 'vuetify/lib'
import i18n from '@/plugins/i18n'
// Globally import VAutocomplete, IMPORTANT: required when tree shaking Vuetify components.
Vue.component('VAutocomplete', VAutocomplete)
Vue.component('VSelect', VSelect)

const vPhoneInput = createVPhoneInput({
  countryLabel: `${i18n.t('label.code')}`
})

// Configure VPhoneInput library.
Vue.use(vPhoneInput)

In the local host image

after building the project it will be rendered like that image

Specifications

paul-thebaud commented 4 months ago

Hello, looks like CSS is missing in your production build. Please provide a stackblitz or GitHub reproduction if you need help.

HudaNasih commented 4 months ago

Hello, I just statically set the style inside the component to solve it for now, Thank you

paul-thebaud commented 4 months ago

OK. Closing as IMO its not related to v-phone-input. Feel free to open a new issue with a reproduction if you need something else.