From 55b84d481ea5561b41ce370a7823bbeb80843c7c Mon Sep 17 00:00:00 2001 From: Muah Date: Wed, 18 Apr 2018 18:04:25 +0200 Subject: [PATCH] add multi_file_selected option --- README.md | 27 ++++++++------- .../assets/js/mixins/media-modal.vue | 34 +++++++++++++++++-- src/resources/assets/js/modules/watch.js | 7 +++- 3 files changed, 52 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 98111e6..87c89be 100644 --- a/README.md +++ b/README.md @@ -136,19 +136,20 @@ new Vue({ - events - | type | event-name | description | - |-----------------|---------------------------------------|--------------------------------------------------| - | [JS][js] | | | - | | modal-show | when modal is showen | - | | modal-hide | when modal is hidden | - | | file_selected *(when inside modal)* | get selected file url | - | | folder_selected *(when inside modal)* | get selected folder path | - | [Laravel][lara] | | | - | | MMFileUploaded($file_path) | get uploaded file full [path][path] | - | | [MMFileSaved][event]($file_path) | get saved(edited/link) image full [path][path] | - | | MMFileDeleted($file_path, $is_folder) | get deleted file/folder full [path][path] | - | | MMFileRenamed($old_path, $new_path) | get renamed file/folder "old & new" [path][path] | - | | MMFileMoved($old_path, $new_path) | get moved file/folder "old & new" [path][path] | + | type | event-name | description | + |-----------------|-------------------------------------------|--------------------------------------------------| + | [JS][js] | | | + | | modal-show | when modal is showen | + | | modal-hide | when modal is hidden | + | | file_selected *(when inside modal)* | get selected file url | + | | multi_file_selected *(when inside modal)* | get bulk selected files url | + | | folder_selected *(when inside modal)* | get selected folder path | + | [Laravel][lara] | | | + | | MMFileUploaded($file_path) | get uploaded file full [path][path] | + | | [MMFileSaved][event]($file_path) | get saved(edited/link) image full [path][path] | + | | MMFileDeleted($file_path, $is_folder) | get deleted file/folder full [path][path] | + | | MMFileRenamed($old_path, $new_path) | get renamed file/folder "old & new" [path][path] | + | | MMFileMoved($old_path, $new_path) | get moved file/folder "old & new" [path][path] | [js]: https://github.com/gocanto/vuemit [lara]: https://laravel.com/docs/5.5/events#manually-registering-events diff --git a/src/resources/assets/js/mixins/media-modal.vue b/src/resources/assets/js/mixins/media-modal.vue index 4624762..598c93a 100644 --- a/src/resources/assets/js/mixins/media-modal.vue +++ b/src/resources/assets/js/mixins/media-modal.vue @@ -1,18 +1,48 @@