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.js
CHANGED
|
@@ -1836,9 +1836,17 @@ var MenuManager = defineComponent3({
|
|
|
1836
1836
|
}
|
|
1837
1837
|
expandedIds.value = { ...expandedIds.value, [id]: true };
|
|
1838
1838
|
}
|
|
1839
|
-
function openCreate() {
|
|
1839
|
+
function openCreate(parent) {
|
|
1840
1840
|
editing.value = null;
|
|
1841
|
-
|
|
1841
|
+
if (parent) {
|
|
1842
|
+
Object.assign(form, {
|
|
1843
|
+
...emptyForm2(),
|
|
1844
|
+
parentId: parent.resourceId,
|
|
1845
|
+
depth: resolveMenuDepth(parent.resourceId, allKnownMenus.value)
|
|
1846
|
+
});
|
|
1847
|
+
} else {
|
|
1848
|
+
Object.assign(form, emptyForm2());
|
|
1849
|
+
}
|
|
1842
1850
|
dialogOpen.value = true;
|
|
1843
1851
|
void loadPermissionPoints();
|
|
1844
1852
|
}
|
|
@@ -1930,7 +1938,7 @@ var MenuManager = defineComponent3({
|
|
|
1930
1938
|
slots.toolbarExtra?.(),
|
|
1931
1939
|
h2(
|
|
1932
1940
|
"button",
|
|
1933
|
-
{ type: "button", style: s2.primaryBtn, onClick: openCreate },
|
|
1941
|
+
{ type: "button", style: s2.primaryBtn, onClick: () => openCreate() },
|
|
1934
1942
|
"\u65B0\u589E"
|
|
1935
1943
|
)
|
|
1936
1944
|
])
|
|
@@ -1945,7 +1953,7 @@ var MenuManager = defineComponent3({
|
|
|
1945
1953
|
h2("th", { style: { ...s2.th, width: "90px" } }, "\u7C7B\u578B"),
|
|
1946
1954
|
h2("th", { style: { ...s2.th, width: "80px" } }, "\u53EF\u89C1"),
|
|
1947
1955
|
h2("th", { style: s2.th }, "\u6743\u9650\u6807\u8BC6"),
|
|
1948
|
-
h2("th", { style: { ...s2.th, width: "
|
|
1956
|
+
h2("th", { style: { ...s2.th, width: "180px" } }, "\u64CD\u4F5C")
|
|
1949
1957
|
])
|
|
1950
1958
|
]),
|
|
1951
1959
|
h2(
|
|
@@ -2012,6 +2020,15 @@ var MenuManager = defineComponent3({
|
|
|
2012
2020
|
]),
|
|
2013
2021
|
h2("td", { style: s2.td }, renderPermissionLabels(row)),
|
|
2014
2022
|
h2("td", { style: s2.td }, [
|
|
2023
|
+
h2(
|
|
2024
|
+
"button",
|
|
2025
|
+
{
|
|
2026
|
+
type: "button",
|
|
2027
|
+
style: s2.linkBtn,
|
|
2028
|
+
onClick: () => openCreate(row)
|
|
2029
|
+
},
|
|
2030
|
+
"\u65B0\u589E"
|
|
2031
|
+
),
|
|
2015
2032
|
h2(
|
|
2016
2033
|
"button",
|
|
2017
2034
|
{
|