Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/lugia-web-test' into lugia-web-test
Browse files Browse the repository at this point in the history
  • Loading branch information
SleepyAries authored and liyaqin committed Jul 31, 2019
2 parents b2b64f6 + 12c2ac9 commit 5f1a389
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/widgets/tooltip/BaseTooltip.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { Tooltip, Theme, Button } from "@lugia/lugia-web";
import styled from "styled-components";
import Widget from "@lugia/lugia-web/dist/consts";
const buttonWidth = 80;
const DirectionButton = styled(Button)`
width: ${buttonWidth}px;
Expand Down Expand Up @@ -35,8 +36,18 @@ const ToolTipVWrapper = styled(ToolTipBaseWrapper)`
export default class BaseTooltip extends React.Component<any, any> {
render() {
const text = <span>prompt text</span>;
const config = {
[Widget.Button]: {
Container: {
normal: {
width: buttonWidth
}
}
}
};
return (
<div>
<Theme config={config}>
<DirectionTopWrapper>
<ToolTipHWrapper>
<Tooltip placement="topLeft" title={text}>
Expand Down Expand Up @@ -105,6 +116,7 @@ export default class BaseTooltip extends React.Component<any, any> {
</Tooltip>
</ToolTipHWrapper>
</DirectionBottomWrapper>
</Theme>
</div>
);
}
Expand Down

0 comments on commit 5f1a389

Please sign in to comment.