You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

3 years ago
  1. <urban-bucket-filemanager>
  2. <div class="bucket-filemanager">
  3. <div>
  4. <div each={ file in props.files }>
  5. <urban-filemanager-file if={ file.is_file } file={ file }></urban-filemanager-file>
  6. <div class="bucket-filemanager__filename" if={ file !== '.' && file !== '..' }>
  7. <input type="checkbox" value="true" />
  8. </div>
  9. <div class="bucket-filemanager__filename">
  10. { file }
  11. </div>
  12. <div class="bucket-filemanager__meta" if={ file !== '.' && file !== '..' }>
  13. </div>
  14. <div class="bucket-filemanager__actions" if={ file !== '.' && file !== '..' }>
  15. <span onclick={ handleDeleteFile }>
  16. delete
  17. </span>
  18. <span onclick={ handleDownloadFile }>
  19. download
  20. </span>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. <script>
  26. import axios from 'axios'
  27. export default {
  28. onBeforeMount() {
  29. },
  30. handleClickFile() {
  31. console.log('dd')
  32. },
  33. handleDblclickFile() {
  34. console.log('dd2')
  35. },
  36. handleDeleteFile() {
  37. },
  38. handleDownloadFile() {
  39. }
  40. }
  41. </script>
  42. </urban-bucket-filemanager>