Skip to content

Commit

Permalink
feat(lib): add new props
Browse files Browse the repository at this point in the history
Adding new props to allow specific styles; Make country select readonly when input is also readonly
  • Loading branch information
yogaaccredify committed Sep 1, 2021
1 parent 430d273 commit 8c4e6bc
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 12 deletions.
31 changes: 26 additions & 5 deletions dist/vue-tel-input-vuetify.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-tel-input-vuetify.min.js

Large diffs are not rendered by default.

31 changes: 26 additions & 5 deletions dist/vue-tel-input-vuetify.umd.js

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion lib/vue-tel-input-vuetify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@
<div :class="['vue-tel-input-vuetify', wrapperClasses]">
<div class="country-code">
<v-select
:label="selectLabel"
v-model="countryCode"
:class="selectClasses"
:label="selectLabel"
@change="onChangeCountryCode"
:items="sortedCountries"
:disabled="disabled"
:outlined="outlined"
:filled="filled"
:flat="flat"
:light="light"
:readonly="readonly"
:shaped="shaped"
:rounded="rounded"
:background-color="backgroundColor"
:dense="dense"
:menu-props="menuProps"
:height="inputHeight"
item-text="name"
item-value="iso2"
return-object
Expand All @@ -32,6 +35,7 @@
<v-text-field
ref="input"
type="tel"
:class="textFieldClasses"
:messages="messages"
:error-messages="errorMessages"
:success-messages="successMessages"
Expand Down Expand Up @@ -70,6 +74,7 @@
:id="inputId"
:maxlength="maxLen"
:tabindex="inputOptions && inputOptions.tabindex ? inputOptions.tabindex : 0"
:height="inputHeight"
@input="onInput"
@blur="onBlur"
@focus="onFocus"
Expand Down Expand Up @@ -261,6 +266,10 @@ export default {
type: Boolean,
default: false,
},
inputHeight: {
type: String,
default: '',
},
value: {
type: String,
default: '',
Expand Down Expand Up @@ -339,6 +348,14 @@ export default {
type: [String, Array, Object],
default: () => getDefault('wrapperClasses'),
},
selectClasses: {
type: [String, Array, Object],
default: () => '',
},
inputClasses: {
type: [String, Array, Object],
default: () => '',
},
inputId: {
type: String,
default: () => getDefault('inputId'),
Expand Down

0 comments on commit 8c4e6bc

Please sign in to comment.