Skip to content

Commit e081d1b

Browse files
committed
update
1 parent 625204d commit e081d1b

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# rc-tooltip
1+
# @rc-component/tooltip
22

33
React Tooltip
44

@@ -9,18 +9,18 @@ React Tooltip
99
[![bundle size][bundlephobia-image]][bundlephobia-url]
1010
[![dumi][dumi-image]][dumi-url]
1111

12-
[npm-image]: http://img.shields.io/npm/v/rc-tooltip.svg?style=flat-square
13-
[npm-url]: http://npmjs.org/package/rc-tooltip
14-
[travis-image]: https://img.shields.io/travis/react-component/tooltip/master?style=flat-square
15-
[travis-url]: https://travis-ci.com/react-component/tooltip
16-
[github-actions-image]: https://github.com/react-component/tooltip/actions/workflows/react-component-ci.yml/badge.svg
17-
[github-actions-url]: https://github.com/react-component/tooltip/actions/workflows/react-component-ci.yml
18-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/tooltip/master.svg?style=flat-square
19-
[codecov-url]: https://app.codecov.io/gh/react-component/tooltip
20-
[download-image]: https://img.shields.io/npm/dm/rc-tooltip.svg?style=flat-square
21-
[download-url]: https://npmjs.org/package/rc-tooltip
22-
[bundlephobia-url]: https://bundlephobia.com/package/rc-tooltip
23-
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-tooltip
12+
[npm-image]: http://img.shields.io/npm/v/@rc-component/tooltip.svg?style=flat-square
13+
[npm-url]: http://npmjs.org/package/@rc-component/tooltip
14+
[travis-image]: https://img.shields.io/travis/@rc-component/tooltip/master?style=flat-square
15+
[travis-url]: https://travis-ci.com/@rc-component/tooltip
16+
[github-actions-image]: https://github.com/@rc-component/tooltip/actions/workflows/react-component-ci.yml/badge.svg
17+
[github-actions-url]: https://github.com/@rc-component/tooltip/actions/workflows/react-component-ci.yml
18+
[codecov-image]: https://img.shields.io/codecov/c/github/@rc-component/tooltip/master.svg?style=flat-square
19+
[codecov-url]: https://app.codecov.io/gh/@rc-component/tooltip
20+
[download-image]: https://img.shields.io/npm/dm/@rc-component/tooltip.svg?style=flat-square
21+
[download-url]: https://npmjs.org/package/@rc-component/tooltip
22+
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/tooltip
23+
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/tooltip
2424
[dumi-url]: https://github.com/umijs/dumi
2525
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
2626

@@ -36,18 +36,18 @@ React Tooltip
3636

3737
## Install
3838

39-
[![rc-tooltip](https://nodei.co/npm/rc-tooltip.png)](https://npmjs.org/package/rc-tooltip)
39+
[![@rc-component/tooltip](https://nodei.co/npm/@rc-component/tooltip.png)](https://npmjs.org/package/@rc-component/tooltip)
4040

4141
## Usage
4242

4343
```js
44-
var Tooltip = require('rc-tooltip');
44+
var Tooltip = require('@rc-component/tooltip');
4545
var React = require('react');
4646
var ReactDOM = require('react-dom');
4747

4848
// By default, the tooltip has no style.
4949
// Consider importing the stylesheet it comes with:
50-
// 'rc-tooltip/assets/bootstrap_white.css'
50+
// '@rc-component/tooltip/assets/bootstrap_white.css'
5151

5252
ReactDOM.render(
5353
<Tooltip placement="left" trigger={['click']} overlay={<span>tooltip</span>}>
@@ -135,4 +135,4 @@ npm run coverage
135135

136136
## License
137137

138-
`rc-tooltip` is released under the MIT license.
138+
`@rc-component/tooltip` is released under the MIT license.

src/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface TooltipRef extends TriggerRef {}
6060

6161
const Tooltip = React.forwardRef<TooltipRef, TooltipProps>((props, ref) => {
6262
const {
63-
trigger = ['hover', 'focus'],
63+
trigger = ['hover'],
6464
mouseEnterDelay = 0,
6565
mouseLeaveDelay = 0.1,
6666
prefixCls = 'rc-tooltip',

0 commit comments

Comments
 (0)