1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <template>
- <Window ref="window" width="600px" height="95%" @close="close">
- <template slot="header">
- Настроить закладки
- </template>
- </Window>
- </template>
- <script>
- //-----------------------------------------------------------------------------
- import Vue from 'vue';
- import Component from 'vue-class-component';
- import Window from '../../share/Window.vue';
- const BookmarkSettingsProps = Vue.extend({
- props: {
- libs: Object,
- }
- });
- export default @Component({
- components: {
- Window,
- },
- watch: {
- libs: function() {
- },
- }
- })
- class BookmarkSettings extends BookmarkSettingsProps {
- created() {
- }
- mounted() {
- }
- init() {
- this.$refs.window.init();
- }
- close() {
- this.$emit('close');
- }
- keyHook(event) {
- if (event.type == 'keydown' && event.key == 'Escape') {
- this.close();
- return true;
- }
- return false;
- }
- }
- //-----------------------------------------------------------------------------
- </script>
- <style scoped>
- </style>
|