com-angel-authorization 1.0.22 → 1.0.23
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/react/index.cjs +21 -4
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +21 -4
- package/dist/react/index.js.map +1 -1
- package/dist/vue/index.cjs +21 -4
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +21 -4
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/dist/vue/index.cjs
CHANGED
|
@@ -1910,9 +1910,17 @@ var MenuManager = (0, import_vue4.defineComponent)({
|
|
|
1910
1910
|
}
|
|
1911
1911
|
expandedIds.value = { ...expandedIds.value, [id]: true };
|
|
1912
1912
|
}
|
|
1913
|
-
function openCreate() {
|
|
1913
|
+
function openCreate(parent) {
|
|
1914
1914
|
editing.value = null;
|
|
1915
|
-
|
|
1915
|
+
if (parent) {
|
|
1916
|
+
Object.assign(form, {
|
|
1917
|
+
...emptyForm2(),
|
|
1918
|
+
parentId: parent.resourceId,
|
|
1919
|
+
depth: resolveMenuDepth(parent.resourceId, allKnownMenus.value)
|
|
1920
|
+
});
|
|
1921
|
+
} else {
|
|
1922
|
+
Object.assign(form, emptyForm2());
|
|
1923
|
+
}
|
|
1916
1924
|
dialogOpen.value = true;
|
|
1917
1925
|
void loadPermissionPoints();
|
|
1918
1926
|
}
|
|
@@ -2004,7 +2012,7 @@ var MenuManager = (0, import_vue4.defineComponent)({
|
|
|
2004
2012
|
slots.toolbarExtra?.(),
|
|
2005
2013
|
(0, import_vue4.h)(
|
|
2006
2014
|
"button",
|
|
2007
|
-
{ type: "button", style: s2.primaryBtn, onClick: openCreate },
|
|
2015
|
+
{ type: "button", style: s2.primaryBtn, onClick: () => openCreate() },
|
|
2008
2016
|
"\u65B0\u589E"
|
|
2009
2017
|
)
|
|
2010
2018
|
])
|
|
@@ -2019,7 +2027,7 @@ var MenuManager = (0, import_vue4.defineComponent)({
|
|
|
2019
2027
|
(0, import_vue4.h)("th", { style: { ...s2.th, width: "90px" } }, "\u7C7B\u578B"),
|
|
2020
2028
|
(0, import_vue4.h)("th", { style: { ...s2.th, width: "80px" } }, "\u53EF\u89C1"),
|
|
2021
2029
|
(0, import_vue4.h)("th", { style: s2.th }, "\u6743\u9650\u6807\u8BC6"),
|
|
2022
|
-
(0, import_vue4.h)("th", { style: { ...s2.th, width: "
|
|
2030
|
+
(0, import_vue4.h)("th", { style: { ...s2.th, width: "180px" } }, "\u64CD\u4F5C")
|
|
2023
2031
|
])
|
|
2024
2032
|
]),
|
|
2025
2033
|
(0, import_vue4.h)(
|
|
@@ -2086,6 +2094,15 @@ var MenuManager = (0, import_vue4.defineComponent)({
|
|
|
2086
2094
|
]),
|
|
2087
2095
|
(0, import_vue4.h)("td", { style: s2.td }, renderPermissionLabels(row)),
|
|
2088
2096
|
(0, import_vue4.h)("td", { style: s2.td }, [
|
|
2097
|
+
(0, import_vue4.h)(
|
|
2098
|
+
"button",
|
|
2099
|
+
{
|
|
2100
|
+
type: "button",
|
|
2101
|
+
style: s2.linkBtn,
|
|
2102
|
+
onClick: () => openCreate(row)
|
|
2103
|
+
},
|
|
2104
|
+
"\u65B0\u589E"
|
|
2105
|
+
),
|
|
2089
2106
|
(0, import_vue4.h)(
|
|
2090
2107
|
"button",
|
|
2091
2108
|
{
|