ant-design/components/input-number/demo/debug-token.md
MadCcc 932398333e
test: add override component token test (#36257)
* test: add override component token test

* test: update snapshot
2022-06-27 21:26:12 +08:00

610 B

order title debug
999
zh-CN en-US
覆盖组件样式 Override Component Style
true
import { ConfigProvider, InputNumber, Space } from 'antd';

export default () => (
  <ConfigProvider
    theme={{
      override: {
        InputNumber: {
          handleWidth: 50,
        },
      },
    }}
  >
    <Space>
      <InputNumber />

      <ConfigProvider
        theme={{
          override: {
            InputNumber: {
              handleWidth: 25,
            },
          },
        }}
      >
        <InputNumber />
      </ConfigProvider>
    </Space>
  </ConfigProvider>
);