Skip to content

Commit 78d08d1

Browse files
committed
Allow Array, Object and String as type for custom classes
1 parent 7cfa94f commit 78d08d1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ Read more on `vue-form-generator`'s [instruction page](https://icebob.gitbooks.i
110110
| `autocomplete`| `String` | `'on'` | Native input 'autocomplete' attribute |
111111
| `name`| `String` | `'telephone'` | Native input 'name' attribute |
112112
| `maxLen`| `Number` | `25` | Native input 'maxlength' attribute |
113-
| `wrapperClasses`| `String` | `''` | Custom classes for the wrapper |
114-
| `inputClasses`| `String` | `''` | Custom classes for the `input` |
113+
| `wrapperClasses`| `String | Array | Object` | `''` | Custom classes for the wrapper |
114+
| `inputClasses`| `String | Array | Object` | `''` | Custom classes for the `input` |
115115
| `dropdownOptions`| `Object` | `{ disabledDialCode: false, tabindex: 0 }` | Options for dropdown, supporting `disabledDialCode` and `tabindex`|
116116
| `inputOptions`| `Object` | `{ showDialCode: false, tabindex: 0 }` | Options for input, supporting `showDialCode` (always show dial code in the input) and `tabindex`|
117117

@@ -165,6 +165,7 @@ npm install --save-dev @types/vue-tel-input
165165
- [mikob](https://github.com/mikob) for super awesome work to [remove the bootstrap dependency](https://github.com/EducationLink/vue-tel-input/pull/13).
166166
- [kalcifield](https://github.com/kalcifield) for helping make the input [preload with a phone number](https://github.com/EducationLink/vue-tel-input/pull/8).
167167
- [serbemas](https://github.com/serbemas) for [adding web components support](https://github.com/EducationLink/vue-tel-input/pull/92).
168+
168169
...[more](https://github.com/EducationLink/vue-tel-input/graphs/contributors)
169170
170171
made with ❤ by [Steven](https://github.com/iamstevendao).

src/vue-tel-input.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@ export default {
212212
default: 'telephone',
213213
},
214214
wrapperClasses: {
215-
type: String,
215+
type: [String, Array, Object],
216216
default: '',
217217
},
218218
inputClasses: {
219-
type: String,
219+
type: [String, Array, Object],
220220
default: '',
221221
},
222222
dropdownOptions: {

0 commit comments

Comments
 (0)