PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.03k stars 346 forks source link

antd upload the customization does not take effect #884

Open jiangzongyu opened 7 months ago

jiangzongyu commented 7 months ago

What happened?

A bug happened!

Version

Latest

What OS are you seeing the problem on?

mac

What browsers are you seeing the problem on?

chrome

Relevant log output

import ConfigProvider from "antd/es/config-provider"
import type { ReactNode } from "react"

export const ThemeProvider = ({ children = null as ReactNode }) => (
  <ConfigProvider
    theme={{
      token: {
        colorPrimary: "#a1701d"
      }
    }}
    upload={{
      className: "ant-upload",
      style: {
        width: '30px',
        height: '30px',
      }
    }}
  >
    {children}
  </ConfigProvider>
)

(OPTIONAL) Contribution

Code of Conduct