import { Input } from 'antd'
import styles from './index.less'
const App= () => {
return (
<div className={styles.root}>
<Input placeholder="Basic usage" />
</div>
)
}
export default App
Index.less を作成する
.root {
:global {
//在控制台 找到对应的元素的类名 然后设置样式 比如不生效设置!important
.adm-tabs-content {
height: 100%;
padding: 0;
}
}
}
また
import { Input } from 'antd'
import './index.less'
const App= () => {
return (
<div className={'testInp'}>
<Input placeholder="Basic usage" />
</div>
)
}
export default App
Index.less 内
.testInp {
//在控制台 找到对应的元素的类名 然后设置样式 比如不生效设置!important
.adm-tabs-content {
height: 100%;
padding: 0;
}
}