@yxhl/specter-pui-vtk 1.0.112 → 1.0.115

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yxhl/specter-pui-vtk",
3
- "version": "1.0.112",
3
+ "version": "1.0.115",
4
4
  "description": "雅心互联 Vue 3 + Vuetify3 组件库",
5
5
  "type": "module",
6
6
  "main": "./dist/specter-pui.umd.js",
@@ -5,7 +5,7 @@
5
5
  @update:model-value="obtain"
6
6
  location="bottom end"
7
7
  origin="top end"
8
- offset="12"
8
+ offset="4"
9
9
  :close-on-content-click="false"
10
10
  >
11
11
  <template v-slot:activator="{ props }">
@@ -23,11 +23,9 @@
23
23
  clearable
24
24
  >
25
25
  <template v-slot:append-inner>
26
- <VIcon
27
- class="search-icon"
28
- size="small"
29
- @click.stop="search"
30
- >mdi-magnify</VIcon>
26
+ <span class="search-trigger" @click.stop="search">
27
+ <VIcon class="search-icon" size="small">mdi-magnify</VIcon>
28
+ </span>
31
29
  <span v-bind="props" class="search-advanced">
32
30
  <span class="search-divider"></span>
33
31
  <VBadge
@@ -49,7 +47,7 @@
49
47
  </template>
50
48
 
51
49
  <VCard class="search-panel">
52
- <VCardTitle class="pr-3 d-flex justify-space-between align-center pb-5">
50
+ <VCardTitle class="pr-3 d-flex justify-space-between align-center pb-3">
53
51
  <span>高级搜索</span>
54
52
  <VBtn class="mx-0" variant="text" icon @click="close" size="small">
55
53
  <VIcon>mdi-close</VIcon>
@@ -236,7 +234,6 @@ defineExpose({ search, reset });
236
234
 
237
235
  .search-panel {
238
236
  width: 380px;
239
- margin-right: -13px;
240
237
  overflow: visible;
241
238
  }
242
239
 
@@ -273,34 +270,43 @@ defineExpose({ search, reset });
273
270
  transform: translate(8px, -2px);
274
271
  }
275
272
 
273
+ .search-trigger {
274
+ flex-shrink: 0;
275
+ display: inline-flex;
276
+ align-items: center;
277
+ align-self: stretch;
278
+ /* 搜索热区铺满「放大镜 → 竖线」整段:右侧 10px 即图标与竖线之间的空白,
279
+ 竖线的左边距已并入此处,点击该区域执行搜索(不再落到高级弹窗热区) */
280
+ padding: 1px 10px 0 0;
281
+ cursor: pointer;
282
+ }
283
+
276
284
  .search-advanced {
277
285
  flex-shrink: 0;
278
286
  white-space: nowrap;
279
287
  display: inline-flex;
280
288
  align-items: center;
281
289
  align-self: stretch;
282
- /* 热区铺满「放大镜右侧 → 输入框右内缘」整段:左侧 4px 补图标外边距,右侧 12px 补
283
- .v-field--appended 的 padding-inline-end;负外边距抵消 padding,视觉与布局保持原样 */
284
- padding: 1px 12px 0 4px;
285
- margin: 0 -12px 0 -4px;
290
+ /* 高级热区从竖线开始:右侧 12px 补 .v-field--appended 的 padding-inline-end,
291
+ 负外边距抵消 padding,视觉与布局保持原样 */
292
+ padding: 1px 12px 0 0;
293
+ margin-right: -12px;
286
294
  cursor: pointer;
287
295
  }
288
296
 
289
297
  .search-divider {
290
298
  width: 1px;
291
299
  align-self: stretch;
292
- margin: 0 8px 0 6px;
300
+ margin: 0 8px 0 0;
293
301
  background: #cccccc88;
294
302
  flex-shrink: 0;
295
303
  }
296
304
 
297
305
  .search-icon {
298
- cursor: pointer;
299
- margin-right: 4px;
300
306
  transition: color 0.2s;
301
307
  }
302
308
 
303
- .search-icon:hover {
309
+ .search-trigger:hover .search-icon {
304
310
  color: rgb(var(--v-theme-primary));
305
311
  }
306
312
  </style>