UNPKG

qt-public-ui

Version:

新设计规范下业务组件库

37 lines (23 loc) 1.07 kB
## Layout 布局框架,有基础的布局样式 以及会加载统一顶导资源: //workbench.umeng.com/public/workbench/um-header.js | 参数 | 说明 | 类型 | 默认值 | | --- | --- | --- | --- | | children | 子节点 | React.ReactNode | - | | nav | 顶部的一条友盟的导航中间的nav部分,只用window.UmHeader.Header存在时才展示(header是写在工作台项目中然后挂在在window上给各个项目通用的) | React.ReactNode | - | | headerProps | 配置header的参数,可配置产品名称,跳转链接,主题等 | object | - | | className | className | string | - | | style | style | React.CSSProperties | - | ## Layout.Sider 左边的Nav um样式,宽度会根据 globalContext 的 theme 变化 ```js const widthOptions = { analytical: 168, operational: 96 }; ``` 其他参数同[antd Layout.Sider](https://ant.design/components/layout-cn/#Layout.Sider): ## Layout.Advertise 用于顶部的广告位 ![顶导航](https://img.alicdn.com/imgextra/i2/O1CN01A6gOJj1ZX1IXx9u6f_!!6000000003203-2-tps-1442-38.png)