com-angel-authorization 1.0.25 → 1.0.26
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 +8 -9
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +8 -9
- package/dist/react/index.js.map +1 -1
- package/dist/vue/index.cjs +8 -7
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.js +8 -7
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -371,7 +371,7 @@ export function Page() {
|
|
|
371
371
|
|
|
372
372
|
| 字段 | 说明 |
|
|
373
373
|
|------|------|
|
|
374
|
-
| parentId |
|
|
374
|
+
| parentId | 上级菜单(表单内只读展示;行内「新增」默认当前项,顶部「新增」为无) |
|
|
375
375
|
| depth | 菜单层级(页面不展示;无上级为 `1`,否则上级 depth + 1,提交时自动带上) |
|
|
376
376
|
| type | `page` 目录 / `menu` 菜单 / `button` 按钮 |
|
|
377
377
|
| name | 菜单名称 |
|
package/dist/react/index.cjs
CHANGED
|
@@ -1644,16 +1644,10 @@ function MenuManager({
|
|
|
1644
1644
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1645
1645
|
"select",
|
|
1646
1646
|
{
|
|
1647
|
-
style: styles2.input,
|
|
1647
|
+
style: { ...styles2.input, ...styles2.inputReadonly },
|
|
1648
1648
|
value: form.parentId ?? ROOT_PARENT_ID,
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
setForm((prev) => ({
|
|
1652
|
-
...prev,
|
|
1653
|
-
parentId,
|
|
1654
|
-
depth: resolveMenuDepth(parentId, allKnownMenus)
|
|
1655
|
-
}));
|
|
1656
|
-
},
|
|
1649
|
+
disabled: true,
|
|
1650
|
+
"aria-readonly": "true",
|
|
1657
1651
|
children: [
|
|
1658
1652
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: ROOT_PARENT_ID, children: "\u65E0" }),
|
|
1659
1653
|
parentOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
|
|
@@ -2019,6 +2013,11 @@ var styles2 = {
|
|
|
2019
2013
|
boxSizing: "border-box",
|
|
2020
2014
|
width: "100%"
|
|
2021
2015
|
},
|
|
2016
|
+
inputReadonly: {
|
|
2017
|
+
backgroundColor: "#f9fafb",
|
|
2018
|
+
color: "#667085",
|
|
2019
|
+
cursor: "not-allowed"
|
|
2020
|
+
},
|
|
2022
2021
|
control: {
|
|
2023
2022
|
width: 16,
|
|
2024
2023
|
height: 16,
|