Vanessa 2025-07-01 11:53:04 +08:00
parent bb5089014d
commit 96d32d758a
2 changed files with 7 additions and 0 deletions

View file

@ -380,6 +380,8 @@ export const bindEditEvent = (options: {
data: !wrapElement.checked,
blockID: options.blockID
}]);
colData.wrap = wrapElement.checked;
options.data.view.wrapField = options.data.view.wrapField && wrapElement.checked;
});
}

View file

@ -2,6 +2,7 @@ import {transaction} from "../../wysiwyg/transaction";
import {Constants} from "../../../constants";
import {fetchSyncPost} from "../../../util/fetch";
import {getCardAspectRatio} from "./gallery/util";
import {getFieldsByData} from "./view";
export const getLayoutHTML = (data: IAV) => {
let html = "";
@ -148,6 +149,10 @@ export const bindLayoutEvent = (options: {
blockID,
data: !checked
}]);
getFieldsByData(options.data).forEach(item => {
item.wrap = checked;
});
options.data.view.wrapField = checked;
});
if (options.data.viewType !== "gallery") {
return;