调整pad端按钮对齐方式,取消按钮英文全大写

This commit is contained in:
fangxiang 2022-04-24 19:38:49 +08:00
parent e1198cfbc3
commit 1eb47308a6
3 changed files with 29 additions and 15 deletions

View File

@ -15,4 +15,7 @@ export default {
"power on": "PowerOn", "power on": "PowerOn",
"power off": "PowerOff", "power off": "PowerOff",
"stop plan": "StopPlan", "stop plan": "StopPlan",
"other setting": "Other",
close: "Close",
logout: "Logout",
}; };

View File

@ -11,8 +11,7 @@
v-model="tab" v-model="tab"
dense dense
inline-label inline-label
class="text-white bg-accent" class="col-12 text-white bg-accent"
:class="'col-' + ($store.state.landspace ? '8' : '12')"
style="border: none" style="border: none"
active-color="secondary" active-color="secondary"
indicator-color="secondary" indicator-color="secondary"

View File

@ -4,86 +4,95 @@
style="flex-wrap: wrap" style="flex-wrap: wrap"
> >
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/close_icon.png" icon="img:pad/toolbar/close_icon.png"
:label="$t('close')" :label="$t('close')"
@click="closeCurrentWindow" @click="closeCurrentWindow"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/clean_windows_icon.png" icon="img:pad/toolbar/clean_windows_icon.png"
:label="$t('clean screen')" :label="$t('clean screen')"
@click="closeAllWindows" @click="closeAllWindows"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/full_screen_icon.png" icon="img:pad/toolbar/full_screen_icon.png"
:label="$t('full screen window')" :label="$t('full screen window')"
@click="fullscreenWindow" @click="fullscreenWindow"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/exit_full_screen_icon.png" icon="img:pad/toolbar/exit_full_screen_icon.png"
:label="$t('restore window size')" :label="$t('restore window size')"
@click="exitFullscreenWindow" @click="exitFullscreenWindow"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/top_window_icon.png" icon="img:pad/toolbar/top_window_icon.png"
:label="$t('win top')" :label="$t('win top')"
@click="topWindow" @click="topWindow"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/lower_window_icon.png" icon="img:pad/toolbar/lower_window_icon.png"
:label="$t('win lower')" :label="$t('win lower')"
@click="lowerWindow" @click="lowerWindow"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/center_control_icon.png" icon="img:pad/toolbar/center_control_icon.png"
:label="$t('center control')" :label="$t('center control')"
@click="$refs.center_control_dialog.showDialog()" @click="$refs.center_control_dialog.showDialog()"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/power_on_icon.png" icon="img:pad/toolbar/power_on_icon.png"
:label="$t('power on')" :label="$t('power on')"
@click="powerOn" @click="powerOn"
/> />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/power_off_icon.png" icon="img:pad/toolbar/power_off_icon.png"
:label="$t('power off')" :label="$t('power off')"
@click="powerOff" @click="powerOff"
@ -92,20 +101,21 @@
stretch stretch
flat flat
stack stack
no-caps
icon="img:pad/toolbar/stop_plan.png" icon="img:pad/toolbar/stop_plan.png"
:label="$t('stop plan')" :label="$t('stop plan')"
class="col-1" class="col-auto"
v-if="plan_running" v-if="plan_running"
@click="stopPlan" @click="stopPlan"
/> />
<q-space />
<q-btn <q-btn
class="col-1" class="col-auto"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/other_setting.png" icon="img:pad/toolbar/other_setting.png"
:label="$t('other')" :label="$t('other setting')"
> >
<q-popup-proxy> <q-popup-proxy>
<q-list class="shadow-2 text-primary"> <q-list class="shadow-2 text-primary">
@ -144,11 +154,13 @@
</q-list> </q-list>
</q-popup-proxy> </q-popup-proxy>
</q-btn> </q-btn>
<q-space />
<q-btn <q-btn
class="col-1" class="col-1"
stretch stretch
stack stack
flat flat
no-caps
icon="img:pad/toolbar/logout_icon.png" icon="img:pad/toolbar/logout_icon.png"
:label="$t('logout')" :label="$t('logout')"
@click="logout" @click="logout"