-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/ui-photo fixed #5
Conversation
src/components/UiPhoto/FileField.vue
Outdated
|
||
async validateFile (file) { | ||
if (!this.isValidFileType(file)) { | ||
this.$emit('error') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's provide a prop with a handler for each. type of error. should be possible to do smth like:
<ui-photo
@err-invalid-file-size="someHandler"
@err-invalid-file-type="someAnotherHandler"
@err-invalid-file-dimensions="oneMoreHandler"
/>
src/components/UiPhoto/FileField.vue
Outdated
labelMain: { type: String, default: 'Logo (Optional)' }, | ||
labelTitle: { type: String, default: 'Drag a file here or click to browse' }, | ||
labelFileName: { type: String, default: 'Selected file: ' }, | ||
labelDraged: { type: String, default: 'Drag another file or click to browse' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use slots for placing text
src/components/UiText/index.vue
Outdated
@@ -1,6 +1,10 @@ | |||
<template> | |||
<div class="ui-text" :for="inputId"> | |||
<span class="ui-text__dock ui-text__dock_left" v-if="hasSlot('dock-left')"> | |||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update ui-text
component soon, so please rollback these changes to avoid conflicts on merge
No description provided.