Interface image (#510)

* Add format filesize util

* Move and tweak file-preview

* Add file lightbox componetn

* WIP add image interface

* Add download prop option to v-button

* Add active model support to image editor

* Add functionality for buttons

* Add deselect button

* Add upload lang

* Fix translations of upload notifications

* Fix local vs global dropzone

* Add v-upload component

* Finish image interface
This commit is contained in:
Rijk van Zanten
2020-04-30 17:01:14 -04:00
committed by GitHub
parent dde5517c74
commit 27c7c055da
21 changed files with 823 additions and 51 deletions

View File

@@ -65,6 +65,7 @@ The loading slot is rendered _on top_ of the content that was there before. Make
| `align` | Align content in button. One of `left | center | right` | `'center'` |
| `dashed` | Render the border dashed. Meant to be used with `outlined`. | `false` |
| `tile` | Render without border radius | `false` |
| `download` | Add the `download` attribute (used in combo with `href`) | `null` |
## Slots

View File

@@ -5,6 +5,7 @@
:is="component"
:active-class="to ? 'activated' : null"
:exact="exact"
:download="download"
class="button"
:class="[
sizeClass,
@@ -111,6 +112,10 @@ export default defineComponent({
default: 'center',
validator: (val: string) => ['left', 'center', 'right'].includes(val),
},
download: {
type: String,
default: null,
},
...sizeProps,
},
setup(props, { emit }) {