com-angel-authorization 1.0.33 → 1.0.34

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.
@@ -3574,11 +3574,15 @@ function UserManager({
3574
3574
  /* @__PURE__ */ jsx5(
3575
3575
  "input",
3576
3576
  {
3577
- style: styles4.input,
3577
+ style: {
3578
+ ...styles4.input,
3579
+ ...editing ? { background: "#f9fafb", color: "#667085", cursor: "not-allowed" } : null
3580
+ },
3578
3581
  value: form.username,
3579
3582
  onChange: (e) => setForm((prev) => ({ ...prev, username: e.target.value })),
3580
3583
  placeholder: "\u8D26\u53F7\u9700\u5305\u542B\u82F1\u6587\u5B57\u6BCD\uFF0C\u53EF\u642D\u914D\u6570\u5B57\uFF0C\u4E0D\u652F\u6301\u4E2D\u6587\u6216\u7279\u6B8A\u7B26\u53F7\u3002",
3581
- required: true
3584
+ required: true,
3585
+ readOnly: Boolean(editing)
3582
3586
  }
3583
3587
  )
3584
3588
  ] }),