mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
bb5089014d
commit
96d32d758a
2 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue