@vtj/ui 0.8.67 → 0.8.69

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/index.mjs CHANGED
@@ -8,10 +8,10 @@ import { useRouter as hd, RouterView as gb, useRoute as bm, routeLocationKey as
8
8
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
9
9
  * @name @vtj/ui
10
10
  * @author CHC chenhuachun1549@dingtalk.com
11
- * @version 0.8.67
11
+ * @version 0.8.69
12
12
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
13
13
  */
14
- const wI = "0.8.67", bb = {
14
+ const wI = "0.8.69", bb = {
15
15
  default: 14,
16
16
  small: 12,
17
17
  large: 18
@@ -2439,16 +2439,16 @@ function y1(e, t, n, o, r) {
2439
2439
  const Y = s.value.find((U) => U.url === q.url || U.id === q.id);
2440
2440
  Y ? E(Y) : (s.value.unshift(q), E(q));
2441
2441
  }, k = async (q) => {
2442
- const { url: Y = l.fullPath, icon: U, title: P = "新建标签页" } = q || {}, R = a[Y], I = am(), G = cm(Y);
2442
+ const { url: Y = l.fullPath, icon: U } = q || {}, P = a[Y], R = am(), I = cm(Y), G = q || C(l.path);
2443
2443
  return {
2444
- id: I,
2445
- name: G,
2444
+ id: R,
2445
+ name: I,
2446
2446
  url: Y,
2447
2447
  icon: U,
2448
- title: P,
2448
+ title: G?.title || "新建标签页",
2449
2449
  closable: !0,
2450
2450
  menu: q,
2451
- ...R ? await R() : {}
2451
+ ...P ? await P() : {}
2452
2452
  };
2453
2453
  }, N = async (q) => {
2454
2454
  if (await oi.confirm("是否关闭页签", "提示", {
@@ -2483,7 +2483,7 @@ function y1(e, t, n, o, r) {
2483
2483
  s.value = [q, ...Y], E(q);
2484
2484
  }, j = async () => {
2485
2485
  await ne();
2486
- const q = r.value.url === l.fullPath, Y = C(l.fullPath);
2486
+ const q = r.value.url === l.path, Y = C(l.fullPath);
2487
2487
  if (q)
2488
2488
  w.value = r.value.id;
2489
2489
  else {