Commit 7a1acd09 authored by 徐乐's avatar 徐乐

perf: 修改嵌套功能可配置背景色

parent 86f91232
Pipeline #86566 waiting for manual action with stages
......@@ -13,7 +13,7 @@ const TabWidget = props => {
const params = Object.assign({}, props.params, {
fullscreen: !(props.params !== undefined && props.params.fullscreen === 'true'),
});
const { linkUrl, fullscreen } = params;
const { linkUrl, fullscreen, bgColor } = params;
const [ref, isFullscreen, handleFullScreen, handleExitFullScreen, handleExit] = useFullScreen(fullscreen);
const goToPath = (name, data, widgetId) => {
try {
......@@ -95,7 +95,7 @@ const TabWidget = props => {
height="100%"
display="block"
position="relative"
styles={{ border: 'none' }}
styles={{ border: 'none', background: bgColor ? '#' + bgColor : '' }}
/>
) : (
<Empty description="配置url链接才能显示哦!" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment