Skip to content

Commit 6a3a378

Browse files
committed
新增className,style属性
1 parent 1b23f98 commit 6a3a378

File tree

11 files changed

+31
-17
lines changed

11 files changed

+31
-17
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export default function App() {
4040

4141
```ts
4242
export interface TooltipProps extends Omit<TriggerProps, "popup" | "defaultPopupVisible" | "popupVisible" | "destroyPopupOnHide" | "action" | "popupTransition" | "adjustPosition"> {
43+
/** 提示框样式 */
44+
className?: string;
45+
/** 提示框样式属性 */
46+
style?: React.CSSProperties;
4347
/** 提示文字 */
4448
title?: React.ReactNode | (() => React.ReactNode);
4549
/** 提示框位置,可选 top left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom */

docs/asset-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"index.css": "static/css/index.fa4784b4.chunk.css",
3-
"index.js": "static/js/index.fa4784b4.chunk.js",
2+
"index.css": "static/css/index.79eefb4a.chunk.css",
3+
"index.js": "static/js/index.79eefb4a.chunk.js",
44
"runtime-index.js": "static/js/runtime-index.92eae014.js",
5-
"static/js/2.b694e620.chunk.js": "static/js/2.b694e620.chunk.js",
5+
"static/js/2.91961bd0.chunk.js": "static/js/2.91961bd0.chunk.js",
66
"index.html": "index.html"
77
}

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html><head><meta charset="utf-8"/><title>Tooltip</title><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"/><style>.demo{width:80%;margin:100px auto;background:#fff;font-size:12px;overflow:auto}</style><link href="static/css/index.fa4784b4.chunk.css" rel="stylesheet"></head><body style="background:#f5f5f5"><div class="demo" id="demo"></div><script src="static/js/runtime-index.92eae014.js"></script><script src="static/js/2.b694e620.chunk.js"></script><script src="static/js/index.fa4784b4.chunk.js"></script></body></html>
1+
<!doctype html><html><head><meta charset="utf-8"/><title>Tooltip</title><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"/><style>.demo{width:80%;margin:100px auto;background:#fff;font-size:12px;overflow:auto}</style><link href="static/css/index.79eefb4a.chunk.css" rel="stylesheet"></head><body style="background:#f5f5f5"><div class="demo" id="demo"></div><script src="static/js/runtime-index.92eae014.js"></script><script src="static/js/2.91961bd0.chunk.js"></script><script src="static/js/index.79eefb4a.chunk.js"></script></body></html>

docs/static/js/2.b694e620.chunk.js renamed to docs/static/js/2.91961bd0.chunk.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/js/index.79eefb4a.chunk.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/js/index.fa4784b4.chunk.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/demos/demo1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class DEMO extends Component {
3030
render() {
3131
return (
3232
<div>
33-
<TooltipButton placement="bottomLeft" />
33+
<TooltipButton placement="bottomLeft" style={{ border: "1px solid red" }} />
3434
<TooltipButton placement="bottom" />
3535
<TooltipButton placement="bottomRight" />
3636
<hr />

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-widget-tooltip",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "react-widget-tooltip",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -40,7 +40,7 @@
4040
"@babel/runtime": "^7.9.2",
4141
"classnames": "^2.2.6",
4242
"dom-helpers-extra": "^0.2.1",
43-
"react-widget-trigger": "^2.0.8"
43+
"react-widget-trigger": "^2.0.10"
4444
},
4545
"author": "nobo.zhou@foxmail.com",
4646
"license": "MIT",

0 commit comments

Comments
 (0)