@@ -149,7 +149,7 @@
"ts-jest": "^26.0.0",
"ts-loader": "^7.0.4",
"ts-node": "^9.1.1",
- "typescript": "^4.1.5",
+ "typescript": "^4.1.5 <=4.5.5",
"vue-eslint-parser": "^7.1.1",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
@@ -236,6 +236,8 @@ export const BaseItem: React.FC<React.PropsWithChildren<IFormItemProps>> = ({
const getContainerRefAncestor = () => {
let ancestor = containerRef.current
while (ancestor && ancestor.tagName !== 'FORM') {
+ //忽略Property 'align' is missing in type 'HTMLElement' but required in type 'HTMLDivElement'
+ // @ts-ignore
ancestor = ancestor.parentElement
}
return ancestor
@@ -2,7 +2,6 @@ import React, { createContext, useContext } from 'react'
import { useResponsiveFormLayout } from './useResponsiveFormLayout'
import { usePrefixCls } from '../__builtins__'
import cls from 'classnames'
-import './style.less'
export interface IFormLayoutProps {
prefixCls?: string
@@ -2,5 +2,5 @@
@import (reference) '~antd/es/style/themes/index.less';
.@{ant-prefix}-formily-layout{
- position: relative;
+ position: relative;
@@ -8,7 +8,6 @@ import {
useFieldSchema,
useField,
} from '@formily/react'
-import { useDesigner } from '@designable/react'
export interface ISubmitProps extends ButtonProps {
onClick?: (e: React.MouseEvent<Element, MouseEvent>) => any
onSubmit?: (values: any) => any