feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
Deploy to GitHub Pages / deploy (push) Failing after 16s
Regression / regression (push) Failing after 15m2s

This commit is contained in:
aurora-admin
2026-09-12 14:18:41 +08:00
parent 16f365a045
commit c65a69c34e
401 changed files with 22932 additions and 140 deletions
+61
View File
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Aurora Admin · Card (H5)</title>
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css">
<style>
/* 对齐 components.css 与 card.json 契约 */
.demo { padding: 24px; background: var(--au-color-page-bg); color: var(--au-color-text-body); font-family: var(--font-family); }
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: var(--au-color-text-secondary); margin: 0 0 24px; font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.aa-card {
background: var(--au-color-card-bg); border-radius: 8px; box-sizing: border-box;
min-width: 280px; max-width: 360px;
}
.aa-card--bordered { border: 1px solid var(--au-color-border); }
.aa-card--shadowed { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.aa-card__header {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
font-weight: 600; color: var(--au-color-text-title);
}
.aa-card__title { font-size: 16px; }
.aa-card__extra { color: var(--au-color-brand); font-size: 14px; cursor: pointer; }
.aa-card__body { color: var(--au-color-text-body); font-size: 14px; line-height: 22px; }
.aa-card__actions { display: flex; justify-content: flex-end; gap: 8px; }
</style>
</head>
<body>
<div class="demo">
<h1>Aurora Admin · Card 组件(纯 H5)</h1>
<p class="sub">对齐 card.json 契约:圆角8px、边框1px / 低阴影、内边距16/24px、结构含标题区/内容区/操作区</p>
<div class="row">
<div class="aa-card aa-card--bordered" style="padding:16px">
<div class="aa-card__header"><div class="aa-card__title">边框卡片</div></div>
<div class="aa-card__body" style="margin-top:12px">用于轻量内容承载,1px 边框区分卡片边界。</div>
</div>
<div class="aa-card aa-card--shadowed" style="padding:24px">
<div class="aa-card__header"><div class="aa-card__title">阴影卡片</div></div>
<div class="aa-card__body" style="margin-top:12px">通过低阴影表现层级浮起,适合突出展示类内容。</div>
</div>
<div class="aa-card aa-card--bordered" style="padding:24px">
<div class="aa-card__header">
<div class="aa-card__title">客户详情</div>
<div class="aa-card__extra" role="button" tabindex="0">查看全部</div>
</div>
<div class="aa-card__body" style="margin-top:12px">含标题区与右侧操作区,内容区展示客户关键信息。</div>
<div class="aa-card__actions" style="margin-top:16px">
<button style="border:1px solid var(--color-border);background:var(--color-bg-card);border-radius:4px;padding:4px 12px;cursor:pointer;color:var(--color-text-body)">取消</button>
<button style="background:var(--color-brand);border:none;border-radius:4px;padding:4px 12px;cursor:pointer;color:var(--color-bg-card)">确定</button>
</div>
</div>
</div>
</div>
</body>
</html>
+53
View File
@@ -0,0 +1,53 @@
import React from 'react';
import './Card.css';
/**
* Aurora Admin Card(React)
* 对齐 card.json 契约:
* - style: bordered | shadowed
* - padding: 16 | 24
* - section: title(含右侧 extra)/ content / actions
*/
export default function Card({
title = '',
bordered = false,
shadowed = false,
padding = 16,
className = '',
children,
extra,
actions
}) {
const paddingPx = typeof padding === 'number' ? `${padding}px` : padding;
const classes = [
'aa-card',
bordered ? 'aa-card--bordered' : '',
shadowed ? 'aa-card--shadowed' : '',
className
].filter(Boolean).join(' ');
return (
<div className={classes} style={{ padding: paddingPx }}>
{(title || extra) && (
<div className="aa-card__header">
<div className="aa-card__title">{title}</div>
{extra && <div className="aa-card__extra">{extra}</div>}
</div>
)}
<div className="aa-card__body">{children}</div>
{actions && <div className="aa-card__actions">{actions}</div>}
</div>
);
}
/*
用法示例:
import Card from './Card';
<Card title="客户详情" extra={<a>查看全部</a>} shadowed padding={24}>
内容区...
</Card>
<Card title="操作卡片" bordered actions={<><button>取消</button><button>确定</button></>}>
内容区...
</Card>
*/
+53
View File
@@ -0,0 +1,53 @@
<template>
<div class="aa-card" :class="classes" :style="{ padding: paddingPx }">
<div v-if="title || $slots.extra" class="aa-card__header">
<div class="aa-card__title">
<slot name="title">{{ title }}</slot>
</div>
<div v-if="$slots.extra" class="aa-card__extra"><slot name="extra" /></div>
</div>
<div class="aa-card__body"><slot /></div>
<div v-if="$slots.actions" class="aa-card__actions"><slot name="actions" /></div>
</div>
</template>
<script>
export default {
name: 'AaCard',
props: {
title: { type: String, default: '' },
bordered: { type: Boolean, default: false },
shadowed: { type: Boolean, default: false },
padding: { type: [Number, String], default: 16 } // 16 | 24
},
computed: {
classes() {
return [
this.bordered ? 'aa-card--bordered' : '',
this.shadowed ? 'aa-card--shadowed' : ''
];
},
paddingPx() {
return typeof this.padding === 'number' ? `${this.padding}px` : this.padding;
}
}
};
</script>
<!-- 样式对齐 components.css 与 card.json 契约 -->
<style>
.aa-card {
background: #fff; border-radius: 8px; box-sizing: border-box;
min-width: 280px; max-width: 360px;
}
.aa-card--bordered { border: 1px solid #E8ECF1; }
.aa-card--shadowed { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.aa-card__header {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
font-weight: 600; color: #1F2329;
}
.aa-card__title { font-size: 16px; }
.aa-card__extra { color: #2F54EB; font-size: 14px; cursor: pointer; }
.aa-card__body { color: #262626; font-size: 14px; line-height: 22px; }
.aa-card__actions { display: flex; justify-content: flex-end; gap: 8px; }
</style>
+49
View File
@@ -0,0 +1,49 @@
<template>
<div class="aa-card" :class="classes" :style="{ padding: paddingPx }">
<div v-if="title || $slots.extra" class="aa-card__header">
<div class="aa-card__title">
<slot name="title">{{ title }}</slot>
</div>
<div v-if="$slots.extra" class="aa-card__extra"><slot name="extra" /></div>
</div>
<div class="aa-card__body"><slot /></div>
<div v-if="$slots.actions" class="aa-card__actions"><slot name="actions" /></div>
</div>
</template>
<script setup>
import { computed } from 'vue';
const props = defineProps({
title: { type: String, default: '' },
bordered: { type: Boolean, default: false },
shadowed: { type: Boolean, default: false },
padding: { type: [Number, String], default: 16 } // 16 | 24
});
const classes = computed(() => [
props.bordered ? 'aa-card--bordered' : '',
props.shadowed ? 'aa-card--shadowed' : ''
]);
const paddingPx = computed(() =>
typeof props.padding === 'number' ? `${props.padding}px` : props.padding
);
</script>
<!-- 样式对齐 components.css 与 card.json 契约 -->
<style scoped>
.aa-card {
background: #fff; border-radius: 8px; box-sizing: border-box;
min-width: 280px; max-width: 360px;
}
.aa-card--bordered { border: 1px solid #E8ECF1; }
.aa-card--shadowed { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.aa-card__header {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
font-weight: 600; color: #1F2329;
}
.aa-card__title { font-size: 16px; }
.aa-card__extra { color: #2F54EB; font-size: 14px; cursor: pointer; }
.aa-card__body { color: #262626; font-size: 14px; line-height: 22px; }
.aa-card__actions { display: flex; justify-content: flex-end; gap: 8px; }
</style>