feat: 完成前端业务闭环与后端联调
This commit is contained in:
@@ -294,7 +294,7 @@ const applyRows = (rows) => {
|
||||
genealogyName.value = named?.genealogyName || "当前家谱";
|
||||
};
|
||||
const loadPoems = async ({ management = false } = {}) => {
|
||||
if (!genealogyId.value) {
|
||||
if (!/^[1-9]\d*$/.test(genealogyId.value)) {
|
||||
poemState.value = "error";
|
||||
return false;
|
||||
}
|
||||
@@ -473,7 +473,7 @@ onUnload(() => {
|
||||
@include adaptive-genealogy-state-panel;
|
||||
z-index: 2;
|
||||
width: calc(100% - 32rpx);
|
||||
margin: 18rpx auto 0;
|
||||
margin: 18rpx auto calc(34rpx + env(safe-area-inset-bottom));
|
||||
padding: 76rpx 8%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -526,7 +526,7 @@ onUnload(() => {
|
||||
.poem-row {
|
||||
@include adaptive-genealogy-form-field;
|
||||
display: grid;
|
||||
min-height: 72rpx;
|
||||
min-height: var(--app-touch-min);
|
||||
margin-top: 10rpx;
|
||||
grid-template-columns: minmax(116rpx, 38%) minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
@@ -726,4 +726,12 @@ onUnload(() => {
|
||||
width: calc(100% - 48rpx);
|
||||
}
|
||||
}
|
||||
@media (max-width: 340px) {
|
||||
.poem-editor__actions {
|
||||
flex-direction: column;
|
||||
}
|
||||
.poem-editor__actions .poem-action {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user