使用ant-design select呈现可搜索的选择下拉列表
从文档中,我编写了以下组件
@Component
@ManagedResource
public class JobRunner
{
private static boolean stopped = false;
@ManagedOperation
public void start()
{
stopped = false;
while (!stopped)
{
// Some actions..
}
}
@ManagedOperation
public void stop()
{
stopped = true;
}
}
但是选择下拉列表没有正确风格化
答案 0 :(得分:1)
你为ant.design导入了css吗?
protected void switchTabsUsingPartOfUrl(String platform) {
String currentHandle = null;
try {
final Set<String> handles = driver.getWindowHandles();
if (handles.size() > 1) {
currentHandle = driver.getWindowHandle();
}
if (currentHandle != null) {
for (final String handle : handles) {
driver.switchTo().window(handle);
if (currentUrl().contains(platform) && !currentHandle.equals(handle)) {
break;
}
}
} else {
for (final String handle : handles) {
driver.switchTo().window(handle);
if (currentUrl().contains(platform)) {
break;
}
}
}
} catch (Exception e) {
System.out.println("Switching tabs failed");
}
}
上的演示