@hsu-react/ui 2.2.12 → 2.2.13
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/es/components/Select/AutoCompleteSelect/index.module.scss +7 -3
- package/es/components/Select/index.module.scss +9 -1
- package/lib/components/Select/AutoCompleteSelect/index.module.scss +7 -3
- package/lib/components/Select/index.module.scss +9 -1
- package/package.json +1 -1
- package/src/components/Select/AutoCompleteSelect/index.module.scss +7 -3
- package/src/components/Select/index.module.scss +9 -1
|
@@ -196,13 +196,13 @@
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
//
|
|
200
|
-
//
|
|
199
|
+
// 箭头由 v6 的 flex 根布局,居中不用补偿;**清除按钮不是** —— antd 仍然把它绝对定位,
|
|
200
|
+
// 用 `top: 50%` 加 `margin-top: -半个图标高` 拉回中线。把 margin-top 一并归零就只剩
|
|
201
|
+
// top: 50%,图标整个掉到中线以下(实测偏下 7px,正好半个 14px 图标)。
|
|
201
202
|
:global(.ant-select-suffix),
|
|
202
203
|
:global(.ant-select-clear) {
|
|
203
204
|
width: 14px;
|
|
204
205
|
height: 14px;
|
|
205
|
-
margin-top: 0px;
|
|
206
206
|
|
|
207
207
|
font-size: 14px;
|
|
208
208
|
|
|
@@ -210,6 +210,10 @@
|
|
|
210
210
|
|
|
211
211
|
pointer-events: all;
|
|
212
212
|
}
|
|
213
|
+
|
|
214
|
+
:global(.ant-select-suffix) {
|
|
215
|
+
margin-top: 0px;
|
|
216
|
+
}
|
|
213
217
|
}
|
|
214
218
|
}
|
|
215
219
|
|
|
@@ -205,7 +205,6 @@
|
|
|
205
205
|
:global(.ant-select-clear) {
|
|
206
206
|
width: 14px;
|
|
207
207
|
height: 14px;
|
|
208
|
-
margin-top: 0px;
|
|
209
208
|
|
|
210
209
|
font-size: 14px;
|
|
211
210
|
|
|
@@ -214,6 +213,15 @@
|
|
|
214
213
|
pointer-events: all;
|
|
215
214
|
}
|
|
216
215
|
|
|
216
|
+
// 箭头是 `.ant-select` 的 flex 子项,靠 align-items: center 居中,margin 归零无副作用。
|
|
217
|
+
// 清除按钮不一样:它是绝对定位的,antd 靠 `top: 50%` 再配一个 `margin-top: -半个图标高`
|
|
218
|
+
// 把它拉回中线。上面那条规则从前把 margin-top 一并重置成 0,等于只做了 top: 50%
|
|
219
|
+
// 而没有回拉,图标就整个掉到中线以下(实测偏下 7px,正好是半个 14px 图标)。
|
|
220
|
+
// 所以这里只重置箭头的,清除按钮的 margin-top 交给 antd。
|
|
221
|
+
:global(.ant-select-suffix) {
|
|
222
|
+
margin-top: 0px;
|
|
223
|
+
}
|
|
224
|
+
|
|
217
225
|
&:global(.ant-select-multiple) {
|
|
218
226
|
// Keep the search input from claiming a slot of its own between the tags.
|
|
219
227
|
:global(.ant-select-input) {
|
|
@@ -196,13 +196,13 @@
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
//
|
|
200
|
-
//
|
|
199
|
+
// 箭头由 v6 的 flex 根布局,居中不用补偿;**清除按钮不是** —— antd 仍然把它绝对定位,
|
|
200
|
+
// 用 `top: 50%` 加 `margin-top: -半个图标高` 拉回中线。把 margin-top 一并归零就只剩
|
|
201
|
+
// top: 50%,图标整个掉到中线以下(实测偏下 7px,正好半个 14px 图标)。
|
|
201
202
|
:global(.ant-select-suffix),
|
|
202
203
|
:global(.ant-select-clear) {
|
|
203
204
|
width: 14px;
|
|
204
205
|
height: 14px;
|
|
205
|
-
margin-top: 0px;
|
|
206
206
|
|
|
207
207
|
font-size: 14px;
|
|
208
208
|
|
|
@@ -210,6 +210,10 @@
|
|
|
210
210
|
|
|
211
211
|
pointer-events: all;
|
|
212
212
|
}
|
|
213
|
+
|
|
214
|
+
:global(.ant-select-suffix) {
|
|
215
|
+
margin-top: 0px;
|
|
216
|
+
}
|
|
213
217
|
}
|
|
214
218
|
}
|
|
215
219
|
|
|
@@ -205,7 +205,6 @@
|
|
|
205
205
|
:global(.ant-select-clear) {
|
|
206
206
|
width: 14px;
|
|
207
207
|
height: 14px;
|
|
208
|
-
margin-top: 0px;
|
|
209
208
|
|
|
210
209
|
font-size: 14px;
|
|
211
210
|
|
|
@@ -214,6 +213,15 @@
|
|
|
214
213
|
pointer-events: all;
|
|
215
214
|
}
|
|
216
215
|
|
|
216
|
+
// 箭头是 `.ant-select` 的 flex 子项,靠 align-items: center 居中,margin 归零无副作用。
|
|
217
|
+
// 清除按钮不一样:它是绝对定位的,antd 靠 `top: 50%` 再配一个 `margin-top: -半个图标高`
|
|
218
|
+
// 把它拉回中线。上面那条规则从前把 margin-top 一并重置成 0,等于只做了 top: 50%
|
|
219
|
+
// 而没有回拉,图标就整个掉到中线以下(实测偏下 7px,正好是半个 14px 图标)。
|
|
220
|
+
// 所以这里只重置箭头的,清除按钮的 margin-top 交给 antd。
|
|
221
|
+
:global(.ant-select-suffix) {
|
|
222
|
+
margin-top: 0px;
|
|
223
|
+
}
|
|
224
|
+
|
|
217
225
|
&:global(.ant-select-multiple) {
|
|
218
226
|
// Keep the search input from claiming a slot of its own between the tags.
|
|
219
227
|
:global(.ant-select-input) {
|
package/package.json
CHANGED
|
@@ -196,13 +196,13 @@
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
//
|
|
200
|
-
//
|
|
199
|
+
// 箭头由 v6 的 flex 根布局,居中不用补偿;**清除按钮不是** —— antd 仍然把它绝对定位,
|
|
200
|
+
// 用 `top: 50%` 加 `margin-top: -半个图标高` 拉回中线。把 margin-top 一并归零就只剩
|
|
201
|
+
// top: 50%,图标整个掉到中线以下(实测偏下 7px,正好半个 14px 图标)。
|
|
201
202
|
:global(.ant-select-suffix),
|
|
202
203
|
:global(.ant-select-clear) {
|
|
203
204
|
width: 14px;
|
|
204
205
|
height: 14px;
|
|
205
|
-
margin-top: 0px;
|
|
206
206
|
|
|
207
207
|
font-size: 14px;
|
|
208
208
|
|
|
@@ -210,6 +210,10 @@
|
|
|
210
210
|
|
|
211
211
|
pointer-events: all;
|
|
212
212
|
}
|
|
213
|
+
|
|
214
|
+
:global(.ant-select-suffix) {
|
|
215
|
+
margin-top: 0px;
|
|
216
|
+
}
|
|
213
217
|
}
|
|
214
218
|
}
|
|
215
219
|
|
|
@@ -205,7 +205,6 @@
|
|
|
205
205
|
:global(.ant-select-clear) {
|
|
206
206
|
width: 14px;
|
|
207
207
|
height: 14px;
|
|
208
|
-
margin-top: 0px;
|
|
209
208
|
|
|
210
209
|
font-size: 14px;
|
|
211
210
|
|
|
@@ -214,6 +213,15 @@
|
|
|
214
213
|
pointer-events: all;
|
|
215
214
|
}
|
|
216
215
|
|
|
216
|
+
// 箭头是 `.ant-select` 的 flex 子项,靠 align-items: center 居中,margin 归零无副作用。
|
|
217
|
+
// 清除按钮不一样:它是绝对定位的,antd 靠 `top: 50%` 再配一个 `margin-top: -半个图标高`
|
|
218
|
+
// 把它拉回中线。上面那条规则从前把 margin-top 一并重置成 0,等于只做了 top: 50%
|
|
219
|
+
// 而没有回拉,图标就整个掉到中线以下(实测偏下 7px,正好是半个 14px 图标)。
|
|
220
|
+
// 所以这里只重置箭头的,清除按钮的 margin-top 交给 antd。
|
|
221
|
+
:global(.ant-select-suffix) {
|
|
222
|
+
margin-top: 0px;
|
|
223
|
+
}
|
|
224
|
+
|
|
217
225
|
&:global(.ant-select-multiple) {
|
|
218
226
|
// Keep the search input from claiming a slot of its own between the tags.
|
|
219
227
|
:global(.ant-select-input) {
|