antd组件RTL支持

时间:2018-08-01 21:38:49

标签: reactjs antd

我正在尝试制作Ant Design右对左(RTL)的组件。但是在某些情况下,我没有任何办法。作为示例,我可以提到以下代码,其中我无法将搜索按钮移到相反的一侧(左):

  <div>
    <Search
      dir="rtl"
      placeholder="enter the Book name"
      onSearch={value => console.log(value)}
      style={{ width: 200 }}
      enterButton
    />
  </div>

注意:所有依赖项均已导入。

我想更改代码以达到下图中的目的:

enter image description here

有什么主意吗?!

0 个答案:

没有答案
相关问题