fix: 移动端适配样式调整

This commit is contained in:
TsMask
2023-12-12 19:30:44 +08:00
parent cd53fab1f9
commit fe81a2d924
6 changed files with 28 additions and 13 deletions

View File

@@ -67,6 +67,11 @@ function fnTreeSelect(_: any, info: any) {
state.autoCompleteValue =
`${state.mmlSelect.operation} ${state.mmlSelect.object}`.trim();
// state.mmlCmdLog = '';
// 回到顶部
window.scrollTo({
top: 0,
behavior: 'smooth', // 平滑滚动到顶部,如果不需要平滑效果可以将此行代码删除
});
}
/**清空控制台日志 */
@@ -496,7 +501,7 @@ onMounted(() => {
<template>
<PageContainer>
<a-row :gutter="16">
<a-col :span="6">
<a-col :lg="6" :md="6" :xs="24" style="margin-bottom: 24px">
<!-- 命令导航 -->
<a-card
size="small"
@@ -524,7 +529,7 @@ onMounted(() => {
</a-form>
</a-card>
</a-col>
<a-col :span="18">
<a-col :lg="18" :md="18" :xs="24">
<!-- 命令参数输入 -->
<a-card size="small" :bordered="false">
<template #title>