Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

Initial value for Input component bug fix. #527

Open
wants to merge 6 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions dist/vue-strap-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ de: {
search: 'Suche'
},

pl: {
daysOfWeek: ['Nd', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So'],
limit: 'Limit osiągnięty (maks. {{limit}}).',
loading: 'Ładuję…',
minLength: 'Min. długość',
months: [
'Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec',
'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień'
],
notSelected: 'Nie wybrano',
required: 'Wymagane',
search: 'Szukaj'
},

ru: {
daysOfWeek: ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'],
limit: 'Достигнут максимальный лимит ({{limit}}).',
Expand All @@ -97,6 +111,7 @@ var aliases = {
en: /^en-[A-Z]{2}$/i,
de: /^de-[A-Z]{2}$/i,
ru: /^ru-[A-Z]{2}$/i,
pl: /^pl-[A-Z]{2}$/i,
};

return function (lang) {
Expand Down
2 changes: 2 additions & 0 deletions src/Input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
:title="attr(title)"
:type="type=='textarea'?null:type"
v-model="val"
:value="value"
@blur="emit" @focus="emit" @input="emit"
@keyup.enter="type!='textarea'&&enterSubmit&&submit()"
></textarea>
Expand Down Expand Up @@ -47,6 +48,7 @@
:title="attr(title)"
:type="type=='textarea'?null:type"
v-model="val"
:value="value"
@blur="emit" @focus="emit" @input="emit"
@keyup.enter="type!='textarea'&&enterSubmit&&submit()"
></textarea>
Expand Down
5 changes: 3 additions & 2 deletions src/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,17 @@ export default {
search: {type: Boolean, default: false},
searchText: {type: String, default: null},
url: {type: String, default: null},
value: null
value: {default: null}
},
data () {
var val = this.value
return {
list: [],
loading: null,
searchValue: null,
show: false,
notify: false,
val: null,
val,
valid: null
}
},
Expand Down