+ {t('Color')}
+
+ {
+ field.componentProps = field.componentProps || {};
+ field.componentProps.color = value;
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
+ fieldSchema['x-component-props'].color = value;
+ dn.emit('patch', {
+ schema: fieldSchema,
+ });
+ dn.refresh();
+ }}
+ />
+
+
+ ),
+ };
+ },
+ },
+ {
+ name: 'borderColor',
+ type: 'item',
+ useComponentProps: () => {
+ const { t } = useTranslation();
+ const { dn } = useDesignable();
+ const field = useField();
+ const fieldSchema = useFieldSchema();
+ return {
+ title: (
+
+ {t('Divider line color')}
+
+ {
+ field.componentProps = field.componentProps || {};
+ field.componentProps.borderColor = value;
+ fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
+ fieldSchema['x-component-props'].borderColor = value;
+ dn.emit('patch', {
+ schema: fieldSchema,
+ });
+ dn.refresh();
+ }}
+ />
+
+
+ ),
+ };
+ },
+ },
+ {
+ name: 'delete',
+ type: 'remove',
+ useComponentProps() {
+ return {
+ removeParentsIfNoChildren: true,
+ breakRemoveOn: {
+ 'x-component': 'Grid',
+ },
+ };
+ },
+ },
+ ] as any,
+});
diff --git a/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx b/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx
index 45a88c92f3..15978b5ce4 100644
--- a/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx
+++ b/packages/core/client/src/schema-component/antd/color-picker/ColorPicker.tsx
@@ -28,7 +28,7 @@ export const ColorPicker = connect(
trigger="hover"
{...others}
destroyTooltipOnHide
- getPopupContainer={(current) => current}
+ // getPopupContainer={(current) => current}
presets={[
{
label: 'Recommended',
diff --git a/packages/core/client/src/schema-component/antd/divider/Divider.tsx b/packages/core/client/src/schema-component/antd/divider/Divider.tsx
new file mode 100644
index 0000000000..31b8015612
--- /dev/null
+++ b/packages/core/client/src/schema-component/antd/divider/Divider.tsx
@@ -0,0 +1,27 @@
+/**
+ * This file is part of the NocoBase (R) project.
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
+ * Authors: NocoBase Team.
+ *
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
+ * For more information, please refer to: https://www.nocobase.com/agreement.
+ */
+
+import { connect, mapProps } from '@formily/react';
+import { Divider as AntdDivider } from 'antd';
+import React from 'react';
+
+export const Divider = connect(
+ (props) => {
+ const { color, borderColor } = props;
+ return