mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user