Skip to content

Commit b2e42f1

Browse files
author
刘欢
committed
refactor: use rc-component/tooltip
1 parent 602df52 commit b2e42f1

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

docs/examples/characterRender.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* eslint no-console: 0 */
2-
import React from 'react';
3-
import Tooltip from 'rc-tooltip';
4-
import 'rc-tooltip/assets/bootstrap_white.css';
52
import Rate from '@rc-component/rate';
3+
import Tooltip from '@rc-component/tooltip';
4+
import '@rc-component/tooltip/assets/bootstrap_white.css';
5+
import React from 'react';
66
import '../../assets/index.less';
77

88
export default () => (

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,51 @@
22
"name": "@rc-component/rate",
33
"version": "1.0.0",
44
"description": "React Star Rate Component",
5-
"engines": {
6-
"node": ">=8.x"
7-
},
85
"keywords": [
96
"react",
107
"react-component",
118
"react-rate",
129
"rate"
1310
],
1411
"homepage": "https://github.com/react-component/rate",
12+
"bugs": {
13+
"url": "https://github.com/react-component/rate/issues"
14+
},
1515
"repository": {
1616
"type": "git",
1717
"url": "https://github.com/react-component/rate.git"
1818
},
19-
"bugs": {
20-
"url": "https://github.com/react-component/rate/issues"
21-
},
19+
"license": "MIT",
20+
"main": "./lib/index",
21+
"module": "./es/index",
2222
"files": [
2323
"lib",
2424
"es",
2525
"assets/*.css"
2626
],
27-
"license": "MIT",
28-
"main": "./lib/index",
29-
"module": "./es/index",
3027
"scripts": {
31-
"start": "dumi dev",
28+
"compile": "father build && lessc assets/index.less assets/index.css",
29+
"coverage": "rc-test --coverage",
3230
"docs:build": "dumi build",
3331
"docs:deploy": "gh-pages -d .doc",
34-
"compile": "father build && lessc assets/index.less assets/index.css",
32+
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
33+
"now-build": "npm run docs:build",
3534
"prepare": "dumi setup",
3635
"prepublishOnly": "npm run compile && rc-np",
37-
"postpublish": "npm run docs:build && npm run docs:deploy",
38-
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
3936
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
37+
"postpublish": "npm run docs:build && npm run docs:deploy",
38+
"start": "dumi dev",
4039
"test": "rc-test",
41-
"tsc": "bunx tsc --noEmit",
42-
"coverage": "rc-test --coverage",
43-
"now-build": "npm run docs:build"
40+
"tsc": "bunx tsc --noEmit"
4441
},
4542
"dependencies": {
46-
"classnames": "^2.2.5",
47-
"@rc-component/util": "^1.3.0"
43+
"@rc-component/util": "^1.3.0",
44+
"classnames": "^2.2.5"
4845
},
4946
"devDependencies": {
50-
"@rc-component/father-plugin": "^2.1.3",
47+
"@rc-component/father-plugin": "^2.1.3",
5148
"@rc-component/np": "^1.0.0",
49+
"@rc-component/tooltip": "^1.2.1",
5250
"@types/classnames": "^2.2.9",
5351
"@types/jest": "^29.5.1",
5452
"@types/react": "^17.0.15",
@@ -65,13 +63,15 @@
6563
"gh-pages": "^3.1.0",
6664
"less": "^3.0.0",
6765
"rc-test": "^7.0.15",
68-
"rc-tooltip": "^5.0.1",
6966
"react": "^16.0.0",
7067
"react-dom": "^16.0.0",
7168
"typescript": "^5.0.4"
7269
},
7370
"peerDependencies": {
7471
"react": ">=16.9.0",
7572
"react-dom": ">=16.9.0"
73+
},
74+
"engines": {
75+
"node": ">=8.x"
7676
}
7777
}

0 commit comments

Comments
 (0)