@ithinkdt/ui 4.0.0-201 → 4.0.0-202
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.js +3 -15
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -630,7 +630,7 @@ function useCtxMenu(z, B, V) {
|
|
|
630
630
|
{
|
|
631
631
|
key: "reload",
|
|
632
632
|
label: H("common.layout.tabs.reloadTab"),
|
|
633
|
-
disabled: U.tab
|
|
633
|
+
disabled: !U.tab || U.tab.key !== B.value,
|
|
634
634
|
icon: () => createVNode(NIcon, { size: 20 }, { default: () => [createVNode("svg", {
|
|
635
635
|
xmlns: "http://www.w3.org/2000/svg",
|
|
636
636
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
@@ -665,7 +665,7 @@ function useCtxMenu(z, B, V) {
|
|
|
665
665
|
{
|
|
666
666
|
key: "open",
|
|
667
667
|
label: H("common.layout.tabs.openTabBlank"),
|
|
668
|
-
disabled: U.tab
|
|
668
|
+
disabled: !U.tab,
|
|
669
669
|
icon: () => createVNode(NIcon, { size: 20 }, { default: () => [createVNode("svg", {
|
|
670
670
|
xmlns: "http://www.w3.org/2000/svg",
|
|
671
671
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
@@ -756,19 +756,7 @@ function useCtxMenu(z, B, V) {
|
|
|
756
756
|
V();
|
|
757
757
|
return;
|
|
758
758
|
}
|
|
759
|
-
if (
|
|
760
|
-
let z = H.find((d) => d.key === B.value);
|
|
761
|
-
switch (d) {
|
|
762
|
-
case "open":
|
|
763
|
-
window.open(z.href, "_blank");
|
|
764
|
-
break;
|
|
765
|
-
case "reload":
|
|
766
|
-
z.reloading ||= (z.reloading = !0, await promiseTimeout(220), !1);
|
|
767
|
-
break;
|
|
768
|
-
}
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
switch (d) {
|
|
759
|
+
if (U.tab) switch (d) {
|
|
772
760
|
case "open":
|
|
773
761
|
window.open(U.tab.href, "_blank");
|
|
774
762
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ithinkdt/ui",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-202",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "iThinkDT UI",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"sortablejs": "^1.15.6",
|
|
65
65
|
"@types/sortablejs": "^1.15.9",
|
|
66
66
|
"nanoid": "^5.1.6",
|
|
67
|
-
"@ithinkdt/common": "^4.0.0-
|
|
67
|
+
"@ithinkdt/common": "^4.0.0-202"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@ithinkdt/page": ">=4.0",
|