mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 09:59:55 +08:00
refactor(core): doc property (#8465)
doc property upgraded to use orm. The visibility of the property are simplified to three types: `always show`, `always hide`, `hide when empty`, and the default is `always show`.  Added a sidebar view to manage properties  new property ui in workspace settings  Property lists can be collapsed 
This commit is contained in:
@@ -182,6 +182,11 @@ export const useDraggable = <D extends DNDData = DNDData>(
|
||||
let previewPosition: DraggableDragPreviewPosition =
|
||||
options.dragPreviewPosition ?? 'native';
|
||||
|
||||
source.element.dataset['dragPreview'] = 'true';
|
||||
requestAnimationFrame(() => {
|
||||
delete source.element.dataset['dragPreview'];
|
||||
});
|
||||
|
||||
if (enableCustomDragPreview.current) {
|
||||
setCustomNativeDragPreview({
|
||||
getOffset: (...args) => {
|
||||
|
||||
Reference in New Issue
Block a user