mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix FileItem to work with validation
(cherry picked from commit aa5e276cd18a40e8cb190967c609645343702e2e)
This commit is contained in:
parent
58fe9a6924
commit
ada9a8d0b8
1 changed files with 5 additions and 3 deletions
|
@ -5,19 +5,21 @@
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:drop-placeholder="dropPlaceholder"
|
:drop-placeholder="dropPlaceholder"
|
||||||
:state="Boolean(file)"
|
:state="state"
|
||||||
:required="required"
|
:required="required"
|
||||||
:accept="accept"
|
:browse-text="$t('words.browse')"
|
||||||
@blur="$parent.$emit('touch', name)"
|
@focusout.native="$parent.$emit('touch', name)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'FileItem',
|
name: 'FileItem',
|
||||||
|
|
||||||
data () {
|
data () {
|
||||||
return { file: null }
|
return { file: null }
|
||||||
},
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
id: { type: String, default: null },
|
id: { type: String, default: null },
|
||||||
placeholder: { type: String, default: null },
|
placeholder: { type: String, default: null },
|
||||||
|
|
Loading…
Add table
Reference in a new issue