taro-react-uilib 1.4.38 → 1.5.0
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/dist/components/AmountKeyboard/index.js +1 -1
- package/dist/components/AmountKeyboard/index.js.map +1 -1
- package/dist/components/Animated/Animated.js +1 -1
- package/dist/components/Animated/Animated.js.map +1 -1
- package/dist/components/Collapse/index.js.map +1 -1
- package/dist/components/Dialog/Alert/index.js +1 -1
- package/dist/components/Dialog/Alert/index.js.map +1 -1
- package/dist/components/Dialog/Confirm/index.js +1 -1
- package/dist/components/Dialog/Confirm/index.js.map +1 -1
- package/dist/components/DialogComponent/index.js +1 -1
- package/dist/components/DialogComponent/index.js.map +1 -1
- package/dist/components/DialogRef/index.js +1 -1
- package/dist/components/DialogRef/index.js.map +1 -1
- package/dist/components/LicensePlateInput/Keyboard.js +1 -1
- package/dist/components/LicensePlateInput/Keyboard.js.map +1 -1
- package/dist/components/NumberKeyboard/index.js +1 -1
- package/dist/components/NumberKeyboard/index.js.map +1 -1
- package/dist/components/Tabbar/tabbar/Tabbar.js +1 -1
- package/dist/components/Tabbar/tabbar/Tabbar.js.map +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/index.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/components/tabbar.scss +9 -33
- package/package.json +4 -3
- package/types/components/Tabbar/tabbar/Tabbar.d.ts +0 -2
|
@@ -1,39 +1,23 @@
|
|
|
1
1
|
@import "../../styles/themes/variable.scss";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
#{$xh-prefix}-tabbar {
|
|
4
5
|
display: flex;
|
|
5
6
|
flex-direction: column;
|
|
6
7
|
overflow: hidden;
|
|
7
8
|
height: 100%;
|
|
8
|
-
&-nav-scroll {
|
|
9
|
-
// width: 100%;
|
|
10
|
-
overflow-x: scroll; /* 横向滚动 */
|
|
11
|
-
overflow-y: hidden; /* 隐藏纵向滚动 */
|
|
12
|
-
height: 87px;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
webkit-overflow-scrolling: touch; /* 在iOS设备上启用惯性滚动 */
|
|
15
|
-
-ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
|
|
16
|
-
scrollbar-width: none; /* Firefox 隐藏滚动条 */
|
|
17
|
-
&::-webkit-scrollbar {
|
|
18
|
-
display: none; /* 隐藏滚动条 */
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
9
|
&-nav {
|
|
23
|
-
min-width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
10
|
display: flex;
|
|
26
|
-
white-space: nowrap; /* 防止内容换行 */
|
|
27
11
|
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
padding-bottom: 20px;
|
|
28
14
|
font-size: 34px;
|
|
29
|
-
position: relative;
|
|
30
15
|
box-sizing: border-box;
|
|
16
|
+
position: relative;
|
|
31
17
|
|
|
32
18
|
&-item {
|
|
33
|
-
|
|
19
|
+
flex: 1;
|
|
34
20
|
text-align: center;
|
|
35
|
-
flex-shrink: 0; /* 防止项目缩小 */
|
|
36
|
-
white-space: nowrap;
|
|
37
21
|
}
|
|
38
22
|
&-line {
|
|
39
23
|
width: 60px;
|
|
@@ -41,16 +25,13 @@
|
|
|
41
25
|
border-radius: 100px;
|
|
42
26
|
position: absolute;
|
|
43
27
|
bottom: 0;
|
|
44
|
-
transition: transform 0.3s
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
// transition: all 0.3s;
|
|
49
|
-
// }
|
|
28
|
+
transition: transform 0.3s;
|
|
29
|
+
&-active {
|
|
30
|
+
transition: all 0.3s;
|
|
31
|
+
}
|
|
50
32
|
}
|
|
51
33
|
}
|
|
52
34
|
&-content {
|
|
53
|
-
flex: 1;
|
|
54
35
|
overflow-y: scroll;
|
|
55
36
|
&-item {
|
|
56
37
|
overflow: hidden;
|
|
@@ -65,9 +46,4 @@
|
|
|
65
46
|
transition-duration: 0.5s;
|
|
66
47
|
}
|
|
67
48
|
}
|
|
68
|
-
|
|
69
|
-
.more-item {
|
|
70
|
-
padding: 0 20px;
|
|
71
|
-
box-sizing: border-box; /* 强制继承,防止被覆盖 */
|
|
72
|
-
}
|
|
73
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taro-react-uilib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "基于taro的跨端组件库",
|
|
5
5
|
"templateInfo": {
|
|
6
6
|
"name": "default",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@tarojs/webpack-runner": "3.4.2",
|
|
84
84
|
"@types/echarts": "^4.9.22",
|
|
85
85
|
"@types/react": "^17.0.2",
|
|
86
|
+
"@types/react-dom": "^19.2.3",
|
|
86
87
|
"@types/webpack-env": "^1.13.6",
|
|
87
88
|
"@typescript-eslint/eslint-plugin": "^5.24.0",
|
|
88
89
|
"@typescript-eslint/parser": "^5.24.0",
|
|
@@ -124,8 +125,8 @@
|
|
|
124
125
|
"@tarojs/components": "^3.0.8",
|
|
125
126
|
"@tarojs/react": "^3.0.8",
|
|
126
127
|
"@types/node": "^14.0.13",
|
|
127
|
-
"react": ">=
|
|
128
|
-
"react-dom": ">=
|
|
128
|
+
"react": ">=18",
|
|
129
|
+
"react-dom": ">=18"
|
|
129
130
|
},
|
|
130
131
|
"config": {
|
|
131
132
|
"commitizen": {
|
|
@@ -11,7 +11,6 @@ import Item from "./TabItem";
|
|
|
11
11
|
* @param titleInctiveColor //标题默认态颜色
|
|
12
12
|
* @param onChange //切换回调事件
|
|
13
13
|
* @param content //item公共节点
|
|
14
|
-
* @param isOverflowNav //是否超宽导航(超过屏幕宽度,自动滚动)
|
|
15
14
|
*
|
|
16
15
|
*/
|
|
17
16
|
export interface TabProps {
|
|
@@ -23,7 +22,6 @@ export interface TabProps {
|
|
|
23
22
|
onChange?: (index: number) => void;
|
|
24
23
|
content?: string | ReactNode;
|
|
25
24
|
selectIndex: number;
|
|
26
|
-
isOverflowNav?: boolean;
|
|
27
25
|
}
|
|
28
26
|
export interface TabsComponent<P = {}> extends FC<P> {
|
|
29
27
|
Item: typeof Item;
|