Работа над loaderPage
This commit is contained in:
@@ -7,10 +7,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="part center">
|
<div class="part center">
|
||||||
<el-input ref="input" placeholder="URL книги" v-model="bookUrl">
|
<el-input ref="input" placeholder="URL книги" v-model="bookUrl">
|
||||||
<el-button slot="append" icon="el-icon-search" @click="submitUrl"></el-button>
|
<el-button slot="append" icon="el-icon-check" @click="submitUrl"></el-button>
|
||||||
</el-input>
|
</el-input>
|
||||||
|
<div class="space"></div>
|
||||||
|
<el-button size="mini" @click="loadFle">
|
||||||
|
Загрузить файл
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="part bottom">
|
<div class="part bottom">
|
||||||
|
<span class="bottom-span clickable" @click="openHelp">Справка</span>
|
||||||
|
<span class="bottom-span">{{ version }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,9 +37,6 @@ class LoaderPage extends Vue {
|
|||||||
this.config = this.$store.state.config;
|
this.config = this.$store.state.config;
|
||||||
}
|
}
|
||||||
|
|
||||||
mounted() {
|
|
||||||
}
|
|
||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
this.$refs.input.focus();
|
this.$refs.input.focus();
|
||||||
}
|
}
|
||||||
@@ -45,12 +48,22 @@ class LoaderPage extends Vue {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get version() {
|
||||||
|
return `v${this.config.version}`;
|
||||||
|
}
|
||||||
|
|
||||||
submitUrl() {
|
submitUrl() {
|
||||||
if (this.bookUrl)
|
if (this.bookUrl)
|
||||||
//loadUrl()
|
//loadUrl()
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loadFle() {
|
||||||
|
}
|
||||||
|
|
||||||
|
openHelp() {
|
||||||
|
}
|
||||||
|
|
||||||
keyHook(event) {
|
keyHook(event) {
|
||||||
//недостатки сторонних ui
|
//недостатки сторонних ui
|
||||||
if (document.activeElement == this.$refs.input.$refs.input && event.type == 'keyup' && event.key == 'Enter')
|
if (document.activeElement == this.$refs.input.$refs.input && event.type == 'keyup' && event.key == 'Enter')
|
||||||
@@ -83,6 +96,12 @@ class LoaderPage extends Vue {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.clickable {
|
||||||
|
color: blue;
|
||||||
|
text-decoration: underline;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
padding: 0 5px 0 5px;
|
padding: 0 5px 0 5px;
|
||||||
@@ -92,7 +111,16 @@ class LoaderPage extends Vue {
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bottom-span {
|
||||||
|
font-size: 70%;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.el-input {
|
.el-input {
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.space {
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user