@yxhl/specter-pui-vtk 1.0.111 → 1.0.113
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/package.json
CHANGED
|
@@ -23,13 +23,11 @@
|
|
|
23
23
|
clearable
|
|
24
24
|
>
|
|
25
25
|
<template v-slot:append-inner>
|
|
26
|
-
<
|
|
27
|
-
class="search-icon"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<span class="search-divider"></span>
|
|
32
|
-
<span class="search-advanced">
|
|
26
|
+
<span class="search-trigger" @click.stop="search">
|
|
27
|
+
<VIcon class="search-icon" size="small">mdi-magnify</VIcon>
|
|
28
|
+
</span>
|
|
29
|
+
<span v-bind="props" class="search-advanced">
|
|
30
|
+
<span class="search-divider"></span>
|
|
33
31
|
<VBadge
|
|
34
32
|
dot
|
|
35
33
|
:content="initialIndex"
|
|
@@ -38,7 +36,6 @@
|
|
|
38
36
|
class="advanced-badge"
|
|
39
37
|
>
|
|
40
38
|
<span
|
|
41
|
-
v-bind="props"
|
|
42
39
|
class="pl-1 text-blue vtk-cursor-pointer d-inline-flex align-center text-body-2"
|
|
43
40
|
>
|
|
44
41
|
高级
|
|
@@ -271,29 +268,46 @@ defineExpose({ search, reset });
|
|
|
271
268
|
}
|
|
272
269
|
|
|
273
270
|
:deep(.advanced-badge .v-badge__badge) {
|
|
274
|
-
transform: translate(
|
|
271
|
+
transform: translate(8px, -2px);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.search-trigger {
|
|
275
|
+
flex-shrink: 0;
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
align-self: stretch;
|
|
279
|
+
/* 搜索热区铺满「放大镜 → 竖线」整段:右侧 10px 即图标与竖线之间的空白,
|
|
280
|
+
竖线的左边距已并入此处,点击该区域执行搜索(不再落到高级弹窗热区) */
|
|
281
|
+
padding: 1px 10px 0 0;
|
|
282
|
+
cursor: pointer;
|
|
275
283
|
}
|
|
276
284
|
|
|
277
285
|
.search-advanced {
|
|
278
286
|
flex-shrink: 0;
|
|
279
287
|
white-space: nowrap;
|
|
288
|
+
display: inline-flex;
|
|
289
|
+
align-items: center;
|
|
290
|
+
align-self: stretch;
|
|
291
|
+
/* 高级热区从竖线开始:右侧 12px 补 .v-field--appended 的 padding-inline-end,
|
|
292
|
+
负外边距抵消 padding,视觉与布局保持原样 */
|
|
293
|
+
padding: 1px 12px 0 0;
|
|
294
|
+
margin-right: -12px;
|
|
295
|
+
cursor: pointer;
|
|
280
296
|
}
|
|
281
297
|
|
|
282
298
|
.search-divider {
|
|
283
299
|
width: 1px;
|
|
284
300
|
align-self: stretch;
|
|
285
|
-
margin: 0 8px 0
|
|
301
|
+
margin: 0 8px 0 0;
|
|
286
302
|
background: #cccccc88;
|
|
287
303
|
flex-shrink: 0;
|
|
288
304
|
}
|
|
289
305
|
|
|
290
306
|
.search-icon {
|
|
291
|
-
cursor: pointer;
|
|
292
|
-
margin-right: 4px;
|
|
293
307
|
transition: color 0.2s;
|
|
294
308
|
}
|
|
295
309
|
|
|
296
|
-
.search-
|
|
310
|
+
.search-trigger:hover .search-icon {
|
|
297
311
|
color: rgb(var(--v-theme-primary));
|
|
298
312
|
}
|
|
299
313
|
</style>
|