com-angel-authorization 1.0.10 → 1.0.11
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/README.md +1 -1
- package/dist/react/index.cjs +27 -9
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +27 -9
- package/dist/react/index.js.map +1 -1
- package/dist/vue/index.cjs +27 -13
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +27 -13
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -372,7 +372,7 @@ export function Page() {
|
|
|
372
372
|
| 字段 | 说明 |
|
|
373
373
|
|------|------|
|
|
374
374
|
| parentId | 上级菜单(下拉,无 → `null`) |
|
|
375
|
-
| depth |
|
|
375
|
+
| depth | 菜单层级(页面不展示;无上级为 `1`,否则上级 depth + 1,提交时自动带上) |
|
|
376
376
|
| type | `page` 目录 / `menu` 菜单 / `button` 按钮 |
|
|
377
377
|
| name | 菜单名称 |
|
|
378
378
|
| identification | 请求地址 |
|
package/dist/react/index.cjs
CHANGED
|
@@ -1614,10 +1614,6 @@ function MenuManager({
|
|
|
1614
1614
|
}
|
|
1615
1615
|
)
|
|
1616
1616
|
] }),
|
|
1617
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: styles2.field, children: [
|
|
1618
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: styles2.label, children: "\u83DC\u5355\u5C42\u7EA7\uFF08depth\uFF09" }),
|
|
1619
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { style: styles2.input, value: form.depth, readOnly: true })
|
|
1620
|
-
] }),
|
|
1621
1617
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("fieldset", { style: styles2.fieldset, children: [
|
|
1622
1618
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("legend", { style: styles2.label, children: "\u83DC\u5355\u7C7B\u578B" }),
|
|
1623
1619
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: styles2.radioGroup, children: MENU_TYPE_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("label", { style: styles2.radioItem, children: [
|
|
@@ -1626,6 +1622,7 @@ function MenuManager({
|
|
|
1626
1622
|
{
|
|
1627
1623
|
type: "radio",
|
|
1628
1624
|
name: "menu-type",
|
|
1625
|
+
style: styles2.control,
|
|
1629
1626
|
checked: form.type === opt.value,
|
|
1630
1627
|
onChange: () => setForm((prev) => ({
|
|
1631
1628
|
...prev,
|
|
@@ -1668,6 +1665,7 @@ function MenuManager({
|
|
|
1668
1665
|
"input",
|
|
1669
1666
|
{
|
|
1670
1667
|
type: "checkbox",
|
|
1668
|
+
style: styles2.control,
|
|
1671
1669
|
checked: form.permissionPointIds.includes(p.resourceId),
|
|
1672
1670
|
onChange: () => togglePermission(p.resourceId)
|
|
1673
1671
|
}
|
|
@@ -1686,6 +1684,7 @@ function MenuManager({
|
|
|
1686
1684
|
{
|
|
1687
1685
|
type: "radio",
|
|
1688
1686
|
name: "menu-status",
|
|
1687
|
+
style: styles2.control,
|
|
1689
1688
|
checked: form.status === opt.value,
|
|
1690
1689
|
onChange: () => setForm((prev) => ({ ...prev, status: opt.value }))
|
|
1691
1690
|
}
|
|
@@ -1941,7 +1940,9 @@ var styles2 = {
|
|
|
1941
1940
|
border: "none",
|
|
1942
1941
|
display: "flex",
|
|
1943
1942
|
flexDirection: "column",
|
|
1944
|
-
gap: 8
|
|
1943
|
+
gap: 8,
|
|
1944
|
+
backgroundColor: "transparent",
|
|
1945
|
+
color: "#101828"
|
|
1945
1946
|
},
|
|
1946
1947
|
label: { fontSize: 13, color: "#344054", fontWeight: 500 },
|
|
1947
1948
|
input: {
|
|
@@ -1955,14 +1956,29 @@ var styles2 = {
|
|
|
1955
1956
|
boxSizing: "border-box",
|
|
1956
1957
|
width: "100%"
|
|
1957
1958
|
},
|
|
1958
|
-
|
|
1959
|
+
control: {
|
|
1960
|
+
width: 16,
|
|
1961
|
+
height: 16,
|
|
1962
|
+
margin: 0,
|
|
1963
|
+
flexShrink: 0,
|
|
1964
|
+
accentColor: "#049BAD",
|
|
1965
|
+
backgroundColor: "#ffffff",
|
|
1966
|
+
colorScheme: "light"
|
|
1967
|
+
},
|
|
1968
|
+
radioGroup: {
|
|
1969
|
+
display: "flex",
|
|
1970
|
+
flexWrap: "wrap",
|
|
1971
|
+
gap: 16,
|
|
1972
|
+
backgroundColor: "transparent"
|
|
1973
|
+
},
|
|
1959
1974
|
radioItem: {
|
|
1960
1975
|
display: "flex",
|
|
1961
1976
|
alignItems: "center",
|
|
1962
1977
|
gap: 6,
|
|
1963
1978
|
fontSize: 14,
|
|
1964
1979
|
color: "#344054",
|
|
1965
|
-
cursor: "pointer"
|
|
1980
|
+
cursor: "pointer",
|
|
1981
|
+
backgroundColor: "transparent"
|
|
1966
1982
|
},
|
|
1967
1983
|
multiSelect: {
|
|
1968
1984
|
maxHeight: 160,
|
|
@@ -1970,7 +1986,8 @@ var styles2 = {
|
|
|
1970
1986
|
border: "1px solid #eaecf0",
|
|
1971
1987
|
borderRadius: 8,
|
|
1972
1988
|
padding: 8,
|
|
1973
|
-
|
|
1989
|
+
backgroundColor: "#ffffff",
|
|
1990
|
+
color: "#101828"
|
|
1974
1991
|
},
|
|
1975
1992
|
checkItem: {
|
|
1976
1993
|
display: "flex",
|
|
@@ -1979,7 +1996,8 @@ var styles2 = {
|
|
|
1979
1996
|
padding: "6px 4px",
|
|
1980
1997
|
fontSize: 13,
|
|
1981
1998
|
color: "#344054",
|
|
1982
|
-
cursor: "pointer"
|
|
1999
|
+
cursor: "pointer",
|
|
2000
|
+
backgroundColor: "transparent"
|
|
1983
2001
|
},
|
|
1984
2002
|
hint: { fontSize: 13, color: "#98a2b3", padding: 8 },
|
|
1985
2003
|
dialogFooter: {
|