lu-lowcode-package-form 0.11.34 → 0.11.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import React, { forwardRef, useEffect } from "react";
2
2
  import { Form, Row, Col, message } from "antd";
3
+ import { ConfigProvider } from 'antd';
3
4
 
4
5
  import { debounce, isEqual, throttle } from 'lodash';
5
6
  import { evalFormula } from '../../utils/formula'
@@ -799,12 +800,28 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
799
800
  };
800
801
 
801
802
  return (
803
+ <ConfigProvider
804
+ theme={{
805
+ components: {
806
+ Table: {
807
+ rowHoverBg: '#ebebeb',
808
+ // "fontSize": 14,
809
+ // "cellPaddingBlock": 6
810
+ },
811
+ },
812
+ token: {
813
+ colorBgContainerDisabled: 'rgba(0, 0, 0, 0.02)', // 设置更浅的灰色背景
814
+ colorTextDisabled: '#000',
815
+ }
816
+ }}
817
+ >
802
818
  <Form form={form} className={"form-container fp-0 fw-full fh-full box-border fflex fflex-col " + (mode == "desgin" ? " fp-6" : "")} onFieldsChange={handleFieldsChange}>
803
819
  <Form.Item name="__id" hidden={true}>
804
820
  <input type="hidden" />
805
821
  </Form.Item>
806
822
  {formContent}
807
823
  </Form>
824
+ </ConfigProvider>
808
825
  );
809
826
  });
810
827