2 Commits d9b70b1514 ... 775b0e32b1

Author SHA1 Message Date
  leo 775b0e32b1 移除import style.less 1 year ago
  leo 0689c17ba6 typescript 1 year ago

+ 1 - 1
package.json

@@ -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",

+ 2 - 0
packages/antd/src/form-item/index.tsx

@@ -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

+ 0 - 1
packages/antd/src/form-layout/index.tsx

@@ -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

+ 1 - 1
packages/antd/src/form-layout/style.less

@@ -2,5 +2,5 @@
 @import (reference) '~antd/es/style/themes/index.less';
 
 .@{ant-prefix}-formily-layout{
-    position: relative;
+  position: relative;
 }

+ 0 - 1
packages/antd/src/submit/index.tsx

@@ -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

File diff suppressed because it is too large
+ 761 - 713
yarn.lock


Some files were not shown because too many files changed in this diff