mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-08 01:53:34 +08:00
commit
2d237d0e93
@ -497,6 +497,9 @@ const genAffixStyle: GenerateStyle<InputToken> = (token: InputToken) => {
|
|||||||
|
|
||||||
[`> input${componentCls}`]: {
|
[`> input${componentCls}`]: {
|
||||||
padding: 0,
|
padding: 0,
|
||||||
|
},
|
||||||
|
|
||||||
|
[`> input${componentCls}, > textarea${componentCls}`]: {
|
||||||
fontSize: 'inherit',
|
fontSize: 'inherit',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderRadius: 0,
|
borderRadius: 0,
|
||||||
|
@ -17,7 +17,7 @@ export const genDisabledStyle = (token: InputToken): CSSObject => ({
|
|||||||
cursor: 'not-allowed',
|
cursor: 'not-allowed',
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
|
|
||||||
'input[disabled]': {
|
[`input[disabled], textarea[disabled]`]: {
|
||||||
cursor: 'not-allowed',
|
cursor: 'not-allowed',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -4,30 +4,31 @@ import type { UploadToken } from '.';
|
|||||||
import { initFadeMotion } from '../../style/motion';
|
import { initFadeMotion } from '../../style/motion';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
|
|
||||||
const uploadAnimateInlineIn = new Keyframes('uploadAnimateInlineIn', {
|
|
||||||
from: {
|
|
||||||
width: 0,
|
|
||||||
height: 0,
|
|
||||||
margin: 0,
|
|
||||||
padding: 0,
|
|
||||||
opacity: 0,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const uploadAnimateInlineOut = new Keyframes('uploadAnimateInlineOut', {
|
|
||||||
to: {
|
|
||||||
width: 0,
|
|
||||||
height: 0,
|
|
||||||
margin: 0,
|
|
||||||
padding: 0,
|
|
||||||
opacity: 0,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
// =========================== Motion ===========================
|
// =========================== Motion ===========================
|
||||||
const genMotionStyle: GenerateStyle<UploadToken> = (token) => {
|
const genMotionStyle: GenerateStyle<UploadToken> = (token) => {
|
||||||
const { componentCls } = token;
|
const { componentCls } = token;
|
||||||
const inlineCls = `${componentCls}-animate-inline`;
|
|
||||||
|
|
||||||
|
const uploadAnimateInlineIn = new Keyframes('uploadAnimateInlineIn', {
|
||||||
|
from: {
|
||||||
|
width: 0,
|
||||||
|
height: 0,
|
||||||
|
padding: 0,
|
||||||
|
opacity: 0,
|
||||||
|
margin: `calc(${token.marginXS} / -2)`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const uploadAnimateInlineOut = new Keyframes('uploadAnimateInlineOut', {
|
||||||
|
to: {
|
||||||
|
width: 0,
|
||||||
|
height: 0,
|
||||||
|
padding: 0,
|
||||||
|
opacity: 0,
|
||||||
|
margin: `calc(${token.marginXS} / -2)`,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const inlineCls = `${componentCls}-animate-inline`;
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
[`${componentCls}-wrapper`]: {
|
[`${componentCls}-wrapper`]: {
|
||||||
|
@ -362,11 +362,11 @@
|
|||||||
"size-limit": [
|
"size-limit": [
|
||||||
{
|
{
|
||||||
"path": "./dist/antd.min.js",
|
"path": "./dist/antd.min.js",
|
||||||
"limit": "338 KiB"
|
"limit": "350 KiB"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./dist/antd-with-locales.min.js",
|
"path": "./dist/antd-with-locales.min.js",
|
||||||
"limit": "385 KiB"
|
"limit": "400 KiB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"title": "Ant Design",
|
"title": "Ant Design",
|
||||||
|
Loading…
Reference in New Issue
Block a user