Skip to content

Commit

Permalink
fix: remove useless attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed Sep 1, 2016
1 parent a7e39d9 commit 5745318
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/fields/fieldCheckbox.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="jade">
input(type="checkbox", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :readonly="schema.readonly")
input(type="checkbox", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled")
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldColor.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="jade">
.wrapper
input(type="color", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :readonly="schema.readonly")
input(type="color", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled")
span.helper {{ value }}
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldImage.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template lang="jade">
div.wrapper
input.form-control.link(type="text", v-model="wrappedValue", :autocomplete="schema.autocomplete", :disabled="disabled", :placeholder="schema.placeholder", :readonly="schema.readonly")
input.form-control.file(type="file", v-if="schema.browse !== false", :autocomplete="schema.autocomplete", :disabled="disabled", :readonly="schema.readonly", @change="fileChanged")
input.form-control.file(type="file", v-if="schema.browse !== false", :disabled="disabled", @change="fileChanged")
.preview(:style="previewStyle")
.remove(title="Remove image", @click="remove")
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldNumber.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="jade">
input.form-control(type="number", v-model="value", number, :autocomplete="schema.autocomplete", :disabled="disabled", :max="schema.max", :min="schema.min", :placeholder="schema.placeholder", :readonly="schema.readonly")
input.form-control(type="number", v-model="value", number, :autocomplete="schema.autocomplete", :disabled="disabled", :max="schema.max", :min="schema.min", :readonly="schema.readonly")
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldPassword.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="jade">
input.form-control(type="password", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :placeholder="schema.placeholder", :readonly="schema.readonly")
input.form-control(type="password", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :readonly="schema.readonly")
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldRange.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="jade">
.wrapper
input.form-control(type="range", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :max="schema.max", :min="schema.min", :placeholder="schema.placeholder", :readonly="schema.readonly")
input.form-control(type="range", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :max="schema.max", :min="schema.min")
.helpText {{ value }}
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldSelect.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template lang="jade">
select.form-control(v-model="value", :disabled="disabled")
select.form-control(v-model="value", :disabled="disabled", :readonly="schema.readonly")
option(:disabled="schema.required", :value="null", :selected="value == undefined") &lt;Not selected&gt;
option(v-for="item in items", :value="getItemID(item)") {{ getItemName(item) }}
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fieldSwitch.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="jade">
label
input(type="checkbox", v-model="value", :autocomplete="schema.autocomplete", :disabled="disabled", :placeholder="schema.placeholder", :readonly="schema.readonly")
input(type="checkbox", v-model="value", :disabled="disabled")
span.label(:data-on="schema.textOn || 'On'", :data-off="schema.textOff || 'Off'")
span.handle
</template>
Expand Down

0 comments on commit 5745318

Please sign in to comment.