Skip to content

Commit

Permalink
Update HomeView.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Sep 7, 2023
1 parent d0971e3 commit 8b184d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export default {
this.errorMessage = '请输入字符串';
}
// return;
break;
break;
case 'fontSize':
case 'lineSpacing':
case 'marginTop':
Expand All @@ -547,7 +547,7 @@ export default {
this.errorMessage = '请输入数字';
}
// return
break;
break;
case 'backgroundImage':
// 验证 backgroundImage 是否是有效的 URL 或者文件路径
// 这可能需要更复杂的验证
Expand Down Expand Up @@ -906,13 +906,15 @@ export default {
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
min-width: 100px;
min-height: 200px;
}
.preview img {
max-width: 100%;
height: auto;
object-fit: cover
object-fit: cover;
position: sticky;
top: 0;
}
input[type="number"],
Expand Down

0 comments on commit 8b184d9

Please sign in to comment.