material-ui

    0熱度

    1回答

    場景整個應用程序是簡單的: 材料的UI與AppBar AppBar不同爲我有每個路由。例如: /ROUTE1:AppBar有iconElementLeft和iconElementRight /路徑2:AppBar有iconElementLeft /路徑3:AppBar有iconElementRight ... 我不想重複代碼並在每條路徑中呈現AppBar children和title也可能發生變化

    0熱度

    2回答

    我很努力修改Material-UI @ next(v1)中的按鈕顏色。 如何設置muitheme的行爲與bootstrap的相似性,所以我可以對紅色使用「btn-danger」,對於綠色使用「btn-danger」...? 我試着用自定義className,但它不能正常工作(懸停顏色不會改變),它似乎重複。我有什麼選擇?

    0熱度

    1回答

    在一個陣營項目中使用材料的UI @未來圖書館和打字稿, 這裏是我的代碼 <CardMedia image={item.image_url} style={{ width: 238, height: 124.5 }} /> ,我發現了錯誤 (54,19): error TS2339: Property 'image' does not exist on type 'IntrinsicA

    0熱度

    1回答

    的旁邊呈現使用React v15.6.2(還有v16)和[email protected](當前爲v1.0.0-beta.12),每當我在表頭中使用<Tooltip>組件時,工具提示呈現關閉在頁面的左上角而不是在用<Tooltip>包裝的元素旁邊。如果我將工具提示剪切/粘貼到表格主體或我的代碼中的任何其他位置,它將按預期工作。 編輯:當我說'工具提示呈現'我的意思是當你將鼠標懸停在<Tooltip

    0熱度

    1回答

    我有一張材料用戶界面卡列表,每張卡內有一個選擇列表。 const ads = this.props.ads; let adsItems = ads.map((c, i) => <div key={ads[i].adid}> <Card> <CardHeade> <SelectField id={String(ads[i].ad

    0熱度

    1回答

    我一直在遵循Material UI Beta for react的指南,並希望使用抽屜製作一個簡單的組件。以下是官方文檔中指定如何創建組件的代碼。 import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Draw

    0熱度

    1回答

    我有以下使用自定義材質UI主題的React組件 const getTheme = name => themes.filter(theme => theme.name === name)[0] ||主題[0]; const Root = props => ( <MuiThemeProvider muiTheme={getMuiTheme(getTheme(props.theme).data)

    0熱度

    1回答

    問題:我有一個自定義類繼承自UITableViewController。我試圖在視圖中定位材質中的Fab按鈕。 然而,由於控制器的上海華是UITableView,而不是一個簡單的UIView,所述Fab按鈕不使用 view.layout.width()。高度()。右時出現().bottom() 如何定位的Fab按鈕,使其顯示,當上海華是不一個UIView? 由於我的自定義類繼承自UITableVi

    1熱度

    1回答

    你好我嘗試定製UI材料的主要文本顏色, 我這樣做是爲了自定義原色: const blue = { 50: '#3ea5d7', 100: '#3ea5d7', 200: '#3ea5d7', 300: '#3ea5d7', 400: '#3ea5d7', 500: '#3ea5d7', 600: '#3ea5d7',

    0熱度

    1回答

    使用Material UI React的Im,並在其中使用多個選項構建下拉菜單。我的問題是,如果我從菜單中的兩個下拉列表中選擇兩個選項,如何攔截或記錄點擊了哪個選項? 我的代碼看起來是這樣的:使用 import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Popo