{
+ console.log({ event });
+ setDragOverlayContent(event.active.data?.current?.title || '');
+ }}
+ onDragEnd={async (event) => {
+ const path1 = event.active?.data?.current?.path;
+ const path2 = event.over?.data?.current?.path;
+ const data = moveToAfter(path1, path2);
+ await updateSchema(data);
+ }}
+ >
+ {createPortal(
+
+ {dragOverlayContent}
+ ,
+ document.body,
+ )}
+
+
+ {schema.mapProperties((s) => {
+ return (
+
+
+
+ );
+ })}
+
+
+
+ );
+});
+
Action.Modal = observer((props: any) => {
const {
useOkAction = useDefaultAction,
diff --git a/packages/client/src/schemas/action/style.less b/packages/client/src/schemas/action/style.less
index 1c686150c..02d489e49 100644
--- a/packages/client/src/schemas/action/style.less
+++ b/packages/client/src/schemas/action/style.less
@@ -92,4 +92,18 @@
width: auto;
color: #fff;
}
+}
+
+.ant-btn-group-link {
+ display: inline-block;
+ .ant-btn {
+ padding: 0;
+ height: auto;
+ .designable-bar {
+ top: -6px !important;
+ left: -12px !important;
+ bottom: -6px !important;
+ right: -12px !important;
+ }
+ }
}
\ No newline at end of file