@topthink/common 1.5.28 → 1.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +9 -9
- package/lib/index.js.map +1 -1
- package/package.json +53 -54
- package/scss/app.scss +9 -9
- package/scss/menu.scss +402 -402
- package/types/components/access.d.ts +8 -8
- package/types/components/app-provider.d.ts +12 -12
- package/types/components/content.d.ts +13 -13
- package/types/components/header.d.ts +8 -8
- package/types/components/link-button.d.ts +6 -6
- package/types/components/user-provider.d.ts +15 -15
- package/types/components/with-request.d.ts +9 -9
- package/types/hooks/use-route-handle.d.ts +1 -1
- package/types/index.d.ts +39 -39
- package/types/layout/sider/context.d.ts +13 -13
- package/types/layout/sider/index.d.ts +14 -14
- package/types/layout/sider/toggle.d.ts +1 -1
- package/types/layout/tab.d.ts +9 -9
- package/types/layout/use-menu.d.ts +3 -3
- package/types/pages/login.d.ts +10 -10
- package/types/pages/logout.d.ts +5 -5
- package/types/pages/social.d.ts +8 -8
- package/types/theme.d.ts +7 -7
- package/types/utils/create-application.d.ts +23 -23
- package/types/utils/get-menu-data.d.ts +11 -11
- package/types/utils/transform-routes.d.ts +2 -2
- package/types/utils/types.d.ts +19 -19
package/package.json
CHANGED
|
@@ -1,55 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
2
|
+
"name": "@topthink/common",
|
|
3
|
+
"version": "1.5.30",
|
|
4
|
+
"module": "lib/index.js",
|
|
5
|
+
"types": "types/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib",
|
|
8
|
+
"types",
|
|
9
|
+
"scss"
|
|
10
|
+
],
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@topthink/components": "1.1.25",
|
|
13
|
+
"classnames": "^2.3.1",
|
|
14
|
+
"history": "^5.0.0",
|
|
15
|
+
"query-string": "^8.1.0",
|
|
16
|
+
"rc-menu": "^9.0.12",
|
|
17
|
+
"rc-motion": "^2.6.2",
|
|
18
|
+
"react-router-dom": "^6.21.1"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"lodash": "*",
|
|
22
|
+
"react": "^17||^18",
|
|
23
|
+
"react-bootstrap": "^2.1.2",
|
|
24
|
+
"react-dom": "^17||^18"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@babel/core": "^7.13.8",
|
|
28
|
+
"@babel/plugin-transform-runtime": "^7.11.5",
|
|
29
|
+
"@babel/preset-env": "^7.13.9",
|
|
30
|
+
"@rollup/plugin-babel": "^5.2.1",
|
|
31
|
+
"@rollup/plugin-commonjs": "^19.0.0",
|
|
32
|
+
"@rollup/plugin-image": "^2.0.6",
|
|
33
|
+
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
34
|
+
"@svgr/rollup": "^6.2.1",
|
|
35
|
+
"@types/lodash": "^4.14.161",
|
|
36
|
+
"@types/node": "^18.11.18",
|
|
37
|
+
"@types/react": "^17.0.0",
|
|
38
|
+
"@types/react-dom": "^17.0.0",
|
|
39
|
+
"react-bootstrap": "^2.1.2",
|
|
40
|
+
"rollup": "^2.26.11",
|
|
41
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
42
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
43
|
+
"typescript": "^5.9.2"
|
|
44
|
+
},
|
|
45
|
+
"author": "yunwuxin <tzzhangyajun@qq.com> (https://github.com/yunwuxin)",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"gitHead": "1b2aed0bfff536822073eab1b44970fadc754bce",
|
|
48
|
+
"scripts": {
|
|
49
|
+
"prebuild": "rimraf lib types",
|
|
50
|
+
"build": "rollup -c --environment NODE_ENV:production",
|
|
51
|
+
"build:dev": "rollup -c",
|
|
52
|
+
"watch": "rollup -c -w"
|
|
53
|
+
}
|
|
54
|
+
}
|
package/scss/app.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@import "~@topthink/components/scss/app";
|
|
2
|
-
@import "menu";
|
|
3
|
-
|
|
4
|
-
#app {
|
|
5
|
-
min-height: var(--100vh, 100vh);
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
background-color: #eee;
|
|
9
|
-
}
|
|
1
|
+
@import "~@topthink/components/scss/app";
|
|
2
|
+
@import "menu";
|
|
3
|
+
|
|
4
|
+
#app {
|
|
5
|
+
min-height: var(--100vh, 100vh);
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
background-color: #eee;
|
|
9
|
+
}
|