1
在我的上面反應文件I包括以下內容:如何在BlueprintJS中使用顏色?
import { Colors } from '@blueprintjs/core';
如何從這個角度去使用colors如@ blue3?
const homeStyle = {
background: '@blue2';
};
這似乎不起作用。
在我的上面反應文件I包括以下內容:如何在BlueprintJS中使用顏色?
import { Colors } from '@blueprintjs/core';
如何從這個角度去使用colors如@ blue3?
const homeStyle = {
background: '@blue2';
};
這似乎不起作用。
顏色遠銷像一個單一的對象,所以要訪問它應該是這樣的:
const homeStyle = {
background: Colors.BLUE3;
};
真棒,這個工作。這個簡單的例子應該在Colors文檔中。 –