diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..918fa4a --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmmirror.com/ \ No newline at end of file diff --git a/package.json b/package.json index 6f06231..4d4de68 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ "@testing-library/jest-dom": "^5.0.0", "@types/fs-extra": "^9.0.13", "@types/jest": "^24.0.18", - "@types/moment": "^2.13.0", "@types/node": "^18.11.9", "@types/react": "^18.0.25", "@types/react-dom": "^18.0.9", @@ -95,4 +94,4 @@ "ts-node": "^10.9.1", "typescript": "^4.1.5" } -} +} \ No newline at end of file diff --git a/packages/components/src/form-item/style/other.tsx b/packages/components/src/form-item/style/other.tsx index 6ddc61b..5b7e9d1 100644 --- a/packages/components/src/form-item/style/other.tsx +++ b/packages/components/src/form-item/style/other.tsx @@ -46,8 +46,8 @@ export const genOtherStyle: GenerateStyle = (token) => { // Vertical Label: https://github.com/ant-design/ant-design/blob/master/components/form/style/index.ts#L391C1-L404C4 [`${componentCls}-label`]: { - lineHeight: 'unset', - minHeight: 'unset', + minHeight: lineHeight * fontSize + paddingXS, + lineHeight, padding: `0 0 ${paddingXS}px`, '&-content': { @@ -183,7 +183,6 @@ export const genOtherStyle: GenerateStyle = (token) => { [`${antCls}-select:not(${antCls}-select-disabled):not(${antCls}-select-customize-input)`]: { [`${antCls}-select-selector`]: { - backgroundColor: colorErrorBg, borderColor: `${colorError} !important`, }, @@ -195,7 +194,6 @@ export const genOtherStyle: GenerateStyle = (token) => { [`${antCls}-input-number, ${antCls}-picker`]: { - backgroundColor: colorErrorBg, borderColor: colorError, [`&-focused, @@ -204,13 +202,11 @@ export const genOtherStyle: GenerateStyle = (token) => { }, [`&:not([disabled]):hover`]: { - backgroundColor: colorErrorBg, borderColor: colorError, }, }, [`${antCls}-cascader-picker:focus ${antCls}-cascader-input`]: { - backgroundColor: colorErrorBg, ...active(colorError), }, diff --git a/yarn.lock b/yarn.lock index 9bd88fa..49495cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10892,6 +10892,11 @@ modify-values@^1.0.0: resolved "https://registry.npmmirror.com/modify-values/-/modify-values-1.0.1.tgz#b3939fa605546474e3e3e3c63d64bd43b4ee6022" integrity sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw== +moment@^2.29.4: + version "2.29.4" + resolved "https://registry.npmmirror.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108" + integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w== + move-concurrently@^1.0.1: version "1.0.1" resolved "https://registry.npmmirror.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"