feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<!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 · LoadingOverlay(普通 H5)</title>
|
||||
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
|
||||
<link rel="stylesheet" href="LoadingOverlay.css" />
|
||||
<style>
|
||||
body { margin: 0; padding: 24px; background: var(--au-color-page-bg); font-family: var(--font-family, sans-serif); }
|
||||
.aa-box { position: relative; height: 200px; background: var(--au-color-card-bg); border: 1px solid var(--au-color-border); border-radius: 8px; padding: 16px; margin-top: 16px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<button onclick="toggleFull()">切换全屏遮罩</button>
|
||||
<div class="aa-box">
|
||||
局部内容区域
|
||||
<button style="margin-top:8px" onclick="toggleInline()">切换局部遮罩</button>
|
||||
<div class="aa-loading-overlay is-inline" role="status" aria-busy="true" id="inline" style="display:none">
|
||||
<div class="aa-loading-spinner" role="status" aria-busy="true"></div>
|
||||
<div class="aa-loading-text" aria-busy="true">加载中…</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="aa-loading-overlay" role="status" aria-busy="true" id="full" style="display:none">
|
||||
<div class="aa-loading-spinner" role="status" aria-busy="true"></div>
|
||||
<div class="aa-loading-text" aria-busy="true">正在提交,请稍候</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function toggleFull() { var e = document.getElementById('full'); e.style.display = e.style.display === 'none' ? 'flex' : 'none'; }
|
||||
function toggleInline() { var e = document.getElementById('inline'); e.style.display = e.style.display === 'none' ? 'flex' : 'none'; }
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import './LoadingOverlay.css';
|
||||
|
||||
export default function LoadingOverlay({ visible = false, text = '', inline = false, dark = false }) {
|
||||
if (!visible) return null;
|
||||
return (
|
||||
<div className={'aa-loading-overlay' + (inline ? ' is-inline' : '') + (dark ? ' is-dark' : '')}>
|
||||
<div className="aa-loading-spinner" />
|
||||
{text ? <div className="aa-loading-text">{text}</div> : null}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div v-if="visible" class="aa-loading-overlay" :class="{ 'is-inline': inline, 'is-dark': dark }">
|
||||
<div class="aa-loading-spinner"></div>
|
||||
<div class="aa-loading-text" v-if="text">{{ text }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AaLoadingOverlay',
|
||||
props: {
|
||||
visible: { type: Boolean, default: false },
|
||||
text: { type: String, default: '' },
|
||||
inline: { type: Boolean, default: false },
|
||||
dark: { type: Boolean, default: false }
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style src="./LoadingOverlay.css"></style>
|
||||
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div v-if="visible" class="aa-loading-overlay" :class="{ 'is-inline': inline, 'is-dark': dark }">
|
||||
<div class="aa-loading-spinner"></div>
|
||||
<div class="aa-loading-text" v-if="text">{{ text }}</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineProps({
|
||||
visible: { type: Boolean, default: false },
|
||||
text: { type: String, default: '' },
|
||||
inline: { type: Boolean, default: false },
|
||||
dark: { type: Boolean, default: false }
|
||||
});
|
||||
</script>
|
||||
|
||||
<style src="./LoadingOverlay.css"></style>
|
||||
Reference in New Issue
Block a user