@titaui/pc 1.16.25 → 1.16.26
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.
|
@@ -74,6 +74,27 @@
|
|
|
74
74
|
height: calc(100% - 27px);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
.titaui-tabs .rc-tabs-nav-operations {
|
|
78
|
+
border-radius: 0 12px 0 0;
|
|
79
|
+
box-shadow: -3px 0px 6px 0px #F5F8FD;
|
|
80
|
+
border: none !important;
|
|
81
|
+
position: relative;
|
|
82
|
+
z-index: 10;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.titaui-tabs .rc-tabs-nav-operations .rc-tabs-nav-more {
|
|
86
|
+
padding: 0 9px 0 8px;
|
|
87
|
+
border-radius: 0 12px 0 0;
|
|
88
|
+
background-color: transparent;
|
|
89
|
+
border: none;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.titaui-tabs .rc-tabs-nav-wrap-ping-left::before,
|
|
94
|
+
.titaui-tabs .rc-tabs-nav-wrap-ping-right::after {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
77
98
|
.tita-tab-btn {
|
|
78
99
|
display: flex;
|
|
79
100
|
margin-left: -4px;
|
|
@@ -93,3 +114,66 @@
|
|
|
93
114
|
background: #E9F1FF;
|
|
94
115
|
color: #2879ff;
|
|
95
116
|
}
|
|
117
|
+
|
|
118
|
+
.rc-tabs-dropdown {
|
|
119
|
+
max-width: 160px;
|
|
120
|
+
padding: 0 16px;
|
|
121
|
+
border: 1px solid #f0f2f5 !important;
|
|
122
|
+
border-radius: 12px;
|
|
123
|
+
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
124
|
+
background-color: #ffffff !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.rc-tabs-dropdown::before, .rc-tabs-dropdown::after {
|
|
128
|
+
content: "";
|
|
129
|
+
width: 100%;
|
|
130
|
+
height: 16px;
|
|
131
|
+
background-color: #ffffff;
|
|
132
|
+
display: block;
|
|
133
|
+
position: sticky;
|
|
134
|
+
z-index: 1;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.rc-tabs-dropdown::before {
|
|
138
|
+
top: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.rc-tabs-dropdown::after {
|
|
142
|
+
bottom: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.rc-tabs-dropdown::-webkit-scrollbar {
|
|
146
|
+
height: 8px !important;
|
|
147
|
+
width: 8px !important;
|
|
148
|
+
border-top: 1px solid #DFE3EA;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.rc-tabs-dropdown::-webkit-scrollbar-thumb {
|
|
152
|
+
border-radius: 6px !important;
|
|
153
|
+
border-style: dashed;
|
|
154
|
+
background-color: #bfc7d5 !important;
|
|
155
|
+
border-color: transparent;
|
|
156
|
+
border-width: 2px !important;
|
|
157
|
+
background-clip: padding-box;
|
|
158
|
+
box-shadow: none !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.rc-tabs-dropdown::-webkit-scrollbar-thumb:hover {
|
|
162
|
+
background: #bfc7d5;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.rc-tabs-dropdown::-webkit-scrollbar-track {
|
|
166
|
+
box-shadow: none !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.rc-tabs-dropdown-menu-item {
|
|
170
|
+
padding: 5px 8px;
|
|
171
|
+
border-radius: 8px;
|
|
172
|
+
transition: all .3s ease;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.rc-tabs-dropdown-menu-item:hover {
|
|
177
|
+
color: #2879FF;
|
|
178
|
+
background-color: #F7F8FA;
|
|
179
|
+
}
|
|
@@ -35,7 +35,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
35
35
|
|
|
36
36
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
37
37
|
|
|
38
|
-
var preCls =
|
|
38
|
+
var preCls = 'titaui-tabs';
|
|
39
39
|
|
|
40
40
|
function TitaTabs(props) {
|
|
41
41
|
var _classNames;
|
|
@@ -46,15 +46,16 @@ function TitaTabs(props) {
|
|
|
46
46
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
47
47
|
|
|
48
48
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
49
|
-
className: (0, _classnames["default"])(preCls, (_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "--big"), size ==
|
|
49
|
+
className: (0, _classnames["default"])(preCls, (_classNames = {}, _defineProperty(_classNames, "".concat(preCls, "--big"), size == 'big'), _defineProperty(_classNames, "".concat(preCls, "--no-bottom-line"), noBottomLine), _classNames), tabWrapperClass)
|
|
50
50
|
}, /*#__PURE__*/_react["default"].createElement(_rcTabs["default"], _extends({
|
|
51
51
|
tabBarStyle: {
|
|
52
|
-
borderBottom:
|
|
52
|
+
borderBottom: 'solid 1px #E9ECF0'
|
|
53
53
|
},
|
|
54
54
|
animated: {
|
|
55
55
|
inkBar: true,
|
|
56
56
|
tabPane: true
|
|
57
|
-
}
|
|
57
|
+
} // eslint-disable-next-line react/jsx-props-no-spreading
|
|
58
|
+
|
|
58
59
|
}, restProps)));
|
|
59
60
|
}
|
|
60
61
|
|