feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<!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 · FullScreenModal</title>
|
||||
<link rel="stylesheet" href="../.design_library/aurora-admin/colors_and_type.css" />
|
||||
<link rel="stylesheet" href="./FullScreenModal.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="aa-page">
|
||||
<h2 class="aa-h2">FullScreenModal 全屏弹窗</h2>
|
||||
<p class="aa-desc">全屏展示内容,标题栏 + 关闭按钮 + 滚动内容区 + 底部操作栏。</p>
|
||||
|
||||
<div class="aa-demo">
|
||||
<button class="aa-btn aa-btn--primary" id="open">打开全屏编辑</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="aa-fs-mask" id="mask" style="display:none">
|
||||
<div class="aa-fs-head">
|
||||
<span class="aa-fs-title">商品编辑(全屏)</span>
|
||||
<button class="aa-fs-close" id="close">×</button>
|
||||
</div>
|
||||
<div class="aa-fs-body">
|
||||
<h3>基础信息</h3>
|
||||
<p>此处可放置复杂表单、富文本编辑、多区块配置等内容。全屏模式便于处理信息密度高的任务。</p>
|
||||
<p>内容区可滚动,底部固定操作栏始终可见。</p>
|
||||
<h3>详细描述</h3>
|
||||
<p>支持长文、图片、视频等富媒体内容。关闭弹窗时可通过底部按钮提交或取消。</p>
|
||||
</div>
|
||||
<div class="aa-fs-foot">
|
||||
<button class="aa-btn" id="cancel">取消</button>
|
||||
<button class="aa-btn aa-btn--primary" id="ok">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var mask = document.getElementById('mask');
|
||||
document.getElementById('open').onclick = function () { mask.style.display = 'flex'; };
|
||||
document.getElementById('close').onclick = close;
|
||||
document.getElementById('cancel').onclick = close;
|
||||
document.getElementById('ok').onclick = close;
|
||||
function close() { mask.style.display = 'none'; }
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import './FullScreenModal.css';
|
||||
|
||||
export default function FullScreenModal({ visible = false, title = '全屏弹窗', onCancel, onOk, children }) {
|
||||
if (!visible) return null;
|
||||
return (
|
||||
<div className="aa-fs-mask">
|
||||
<div className="aa-fs-head">
|
||||
<span className="aa-fs-title">{title}</span>
|
||||
<button className="aa-fs-close" onClick={() => onCancel && onCancel()}>×</button>
|
||||
</div>
|
||||
<div className="aa-fs-body">{children}</div>
|
||||
<div className="aa-fs-foot">
|
||||
<button className="aa-btn" onClick={() => onCancel && onCancel()}>取消</button>
|
||||
<button className="aa-btn aa-btn--primary" onClick={() => onOk && onOk()}>保存</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="aa-fs-mask" v-if="visible">
|
||||
<div class="aa-fs-head">
|
||||
<span class="aa-fs-title">{{ title }}</span>
|
||||
<button class="aa-fs-close" @click="$emit('cancel')">×</button>
|
||||
</div>
|
||||
<div class="aa-fs-body">
|
||||
<slot>内容区</slot>
|
||||
</div>
|
||||
<div class="aa-fs-foot">
|
||||
<button class="aa-btn" @click="$emit('cancel')">取消</button>
|
||||
<button class="aa-btn aa-btn--primary" @click="$emit('ok')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AaFullScreenModal',
|
||||
props: {
|
||||
visible: { type: Boolean, default: false },
|
||||
title: { type: String, default: '全屏弹窗' }
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style src="./FullScreenModal.css"></style>
|
||||
@@ -0,0 +1,25 @@
|
||||
<template>
|
||||
<div class="aa-fs-mask" v-if="visible">
|
||||
<div class="aa-fs-head">
|
||||
<span class="aa-fs-title">{{ title }}</span>
|
||||
<button class="aa-fs-close" @click="$emit('cancel')">×</button>
|
||||
</div>
|
||||
<div class="aa-fs-body">
|
||||
<slot>内容区</slot>
|
||||
</div>
|
||||
<div class="aa-fs-foot">
|
||||
<button class="aa-btn" @click="$emit('cancel')">取消</button>
|
||||
<button class="aa-btn aa-btn--primary" @click="$emit('ok')">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
defineProps({
|
||||
visible: { type: Boolean, default: false },
|
||||
title: { type: String, default: '全屏弹窗' }
|
||||
});
|
||||
defineEmits(['cancel', 'ok']);
|
||||
</script>
|
||||
|
||||
<style src="./FullScreenModal.css"></style>
|
||||
Reference in New Issue
Block a user