docs: explain configuration inputs and authentication components

This commit is contained in:
cieanyau committed 2026-11-06 00:29:13 +08:00
1 parent dc32a74d7a
commit 3a53d2e58f
19 files changed
+72

No files matched your search

@@ -1,4 +1,5 @@
<script>
/** CPU/内存等资源档位选择器:离散资源显示卡片,区间资源显示范围选择和数值输入。 */
import "~/assets/styles/OsIcon.CAi4Iz2S.css";
import "~/assets/styles/ConfigResourceOption.Dj4VopnA.css";
import { toDisplayString } from "vue";
@@ -91,6 +92,7 @@ var h = {
: Number(_.modelValue),
);
function C(e) {
// 在当前区间按步长吸附,并将最大值收敛到实际可达档位后再通知父级。
if (_.disabled || e === null || !Number.isFinite(e) || !x.value)
return;
let { min: t, max: n, step: r } = x.value,
@@ -105,6 +107,7 @@ var h = {
(v(`update:modelValue`, a), v(`change`));
}
function w(e) {
// 选择新的范围时使用该范围最小值;当前值仍属于同一合法档位时不重复发事件。
if (_.disabled) return;
let t = y.value.find((t) => t.value === e);
if (!t) return;