BookmarkSettings.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <Window ref="window" width="600px" height="95%" @close="close">
  3. <template slot="header">
  4. Настроить закладки
  5. </template>
  6. </Window>
  7. </template>
  8. <script>
  9. //-----------------------------------------------------------------------------
  10. import Vue from 'vue';
  11. import Component from 'vue-class-component';
  12. import Window from '../../share/Window.vue';
  13. const BookmarkSettingsProps = Vue.extend({
  14. props: {
  15. libs: Object,
  16. }
  17. });
  18. export default @Component({
  19. components: {
  20. Window,
  21. },
  22. watch: {
  23. libs: function() {
  24. },
  25. }
  26. })
  27. class BookmarkSettings extends BookmarkSettingsProps {
  28. created() {
  29. }
  30. mounted() {
  31. }
  32. init() {
  33. this.$refs.window.init();
  34. }
  35. close() {
  36. this.$emit('close');
  37. }
  38. keyHook(event) {
  39. if (event.type == 'keydown' && event.key == 'Escape') {
  40. this.close();
  41. return true;
  42. }
  43. return false;
  44. }
  45. }
  46. //-----------------------------------------------------------------------------
  47. </script>
  48. <style scoped>
  49. </style>