Переход на quasar
This commit is contained in:
@@ -234,13 +234,29 @@ selectedTabOld = null;//todo: remove
|
|||||||
}
|
}
|
||||||
|
|
||||||
get wallpaperOptions() {
|
get wallpaperOptions() {
|
||||||
let result = [{label: 'Нет', value: ''}];
|
let result = [{label: 'Нет', value: ''}];
|
||||||
for (let i = 1; i < 10; i++) {
|
for (let i = 1; i < 10; i++) {
|
||||||
result.push({label: i, value: `paper${i}`});
|
result.push({label: i, value: `paper${i}`});
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get fontsOptions() {
|
||||||
|
let result = [];
|
||||||
|
this.fonts.forEach(font => {
|
||||||
|
result.push({label: (font.label ? font.label : font.name), value: font.name});
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
get webFontsOptions() {
|
||||||
|
let result = [{label: 'Нет', value: ''}];
|
||||||
|
this.webFonts.forEach(font => {
|
||||||
|
result.push({label: font.name, value: font.name});
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
get currentProfile() {
|
get currentProfile() {
|
||||||
return this.$store.state.reader.currentProfile;
|
return this.$store.state.reader.currentProfile;
|
||||||
}
|
}
|
||||||
@@ -526,7 +542,7 @@ selectedTabOld = null;//todo: remove
|
|||||||
}
|
}
|
||||||
|
|
||||||
.label-2 {
|
.label-2 {
|
||||||
width: 100px;
|
width: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label-1, .label-2 {
|
.label-1, .label-2 {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="col" style="position: relative; top: 35px; left: 30px;">Обои:</span>
|
<span class="col" style="position: relative; top: 35px; left: 15px;">Обои:</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -55,8 +55,8 @@
|
|||||||
</q-input>
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="q-px-sm"/>
|
||||||
<q-select class="col" v-model="wallpaper" :options="wallpaperOptions"
|
<q-select class="col" v-model="wallpaper" :options="wallpaperOptions"
|
||||||
style="max-width: 120px; margin-left: 30px"
|
|
||||||
dropdown-icon="la la-angle-down la-sm"
|
dropdown-icon="la la-angle-down la-sm"
|
||||||
outlined dense emit-value map-options
|
outlined dense emit-value map-options
|
||||||
/>
|
/>
|
||||||
@@ -66,6 +66,23 @@
|
|||||||
<!---------------------------------------------->
|
<!---------------------------------------------->
|
||||||
<div class="part-header">Шрифт</div>
|
<div class="part-header">Шрифт</div>
|
||||||
|
|
||||||
|
<div class="item row">
|
||||||
|
<div class="label-2">Локальный/веб</div>
|
||||||
|
<div class="col row">
|
||||||
|
<div class="col-left-2">
|
||||||
|
<q-select class="col" v-model="fontName" :options="fontsOptions" :disable="webFontName != ''"
|
||||||
|
dropdown-icon="la la-angle-down la-sm"
|
||||||
|
outlined dense emit-value map-options
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="q-px-sm"/>
|
||||||
|
<q-select class="col" v-model="webFontName" :options="webFontsOptions"
|
||||||
|
dropdown-icon="la la-angle-down la-sm"
|
||||||
|
outlined dense emit-value map-options
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!--el-form :model="form" size="mini" label-width="120px" @submit.native.prevent>
|
<!--el-form :model="form" size="mini" label-width="120px" @submit.native.prevent>
|
||||||
|
|||||||
Reference in New Issue
Block a user