docs: explain navigation, search and content components
This commit is contained in:
1 parent
2ff311005e
commit
179c6febf0
10 files changed
+34
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script>
|
||||
// 商品卡片配置摘要:从各模块的默认可售配置中提取 CPU、内存、磁盘和网络信息。
|
||||
import "~/assets/styles/ProductConfigurationSummary.BqZns1LB.css";
|
||||
import { toDisplayString } from "vue";
|
||||
import { renderList } from "vue";
|
||||
@@ -32,6 +33,7 @@ function S(e) {
|
||||
let n = Number(t);
|
||||
return Number.isFinite(n) && n > 0 ? n : void 0;
|
||||
}
|
||||
// 将不同后台使用的资源标签归类;未识别的营销文字不参与硬件摘要推断。
|
||||
function C(e) {
|
||||
let t = e.trim().replace(/\s+/g, ``).toLowerCase();
|
||||
if (/^(cpu|处理器|cpu核心|cpu核数|核心数)$/.test(t)) return `cpu`;
|
||||
@@ -79,6 +81,7 @@ function E(e, t) {
|
||||
o = /^g/i.test(n[3]) ? `Gbps` : /^k/i.test(n[3]) ? `Kbps` : `Mbps`;
|
||||
return `${i}${a}${Number(n[2])}${o}`;
|
||||
}
|
||||
// 按资源类型格式化并去重,方向不同且数值不同的带宽保留上/下行标记。
|
||||
function D(e) {
|
||||
let t = ``,
|
||||
n = ``,
|
||||
@@ -153,6 +156,7 @@ function A(e, t, n = ``) {
|
||||
value: S(t) === void 0 ? `` : `${Number(t)}${n}`,
|
||||
};
|
||||
}
|
||||
// 按真实订单模块读取配置;含级联或高级限制且无法安全推导默认值时不生成摘要。
|
||||
async function j(e, t) {
|
||||
if (!product_name_t(t.name)) return [];
|
||||
let n = (t, n) => e.get(t, n, !1, y);
|
||||
@@ -354,6 +358,7 @@ var M = {
|
||||
}),
|
||||
y = 0;
|
||||
return (
|
||||
// 外部 summary 优先;商品变化时清空旧摘要,用序号隔离异步返回结果。
|
||||
watch(
|
||||
() => [
|
||||
m.product.id,
|
||||
|
||||
Reference in new issue
Block a user