am-freescan/am-web/tests/lazy-components-ui.html
lixiaolong 64db825a9f feat: 完善设备工作流集成、组合执行与主题适配
集成旋转底座、机械臂示教与坐标系,完善扫描参数、电量和框架点复用。增加组合执行、步骤进度与日志,优化首屏和流程画布性能,修复表头主题适配,并保留验证脚本和回归测试。
2026-11-02 17:38:34 +08:00

33 lines
1.6 KiB
HTML

<!doctype html>
<html lang="zh-CN"><meta charset="UTF-8"><title>E2E 按需加载回归</title>
<style>body{font:14px Arial;margin:24px;background:#f5f7fa}main{background:white;padding:20px;max-width:1100px;margin:auto}button{margin:0 12px 16px 0}</style>
<main><h1>按需加载回归</h1><p>仅检查内存表单,不创建数据或执行设备动作。</p><div id="app"></div></main>
<script type="module">
import {createApp,h,ref,resolveComponent} from 'vue'
import {setupStore} from '/src/store/index.ts'
import {setupI18n} from '/src/plugins/vueI18n/index.ts'
import {setupGlobCom} from '/src/components/index.ts'
import {setupElementPlus} from '/src/plugins/elementPlus/index.ts'
import {setupFormCreate} from '/src/plugins/formCreate/index.ts'
import {Editor} from '/src/components/Editor/index.ts'
const app=createApp({setup(){
const active=ref(''), model=ref({caption:'按需加载成功'})
return ()=>h('div',[
...['表单','设计器','富文本'].map(name=>h('button',{onClick:()=>active.value=name},name)),
h('p',{role:'status'},active.value||'等待选择组件'),
active.value==='表单'?h(resolveComponent('form-create'),{
rule:[{type:'input',field:'caption',title:'回归测试字段'}],
option:{submitBtn:false},modelValue:model.value,'onUpdate:modelValue':v=>model.value=v
}):null,
active.value==='设计器'?h(resolveComponent('fc-designer'),{height:'600px'}):null,
active.value==='富文本'?h(Editor,{height:'200px',modelValue:'<p>富文本加载成功</p>'}):null
])
}})
setupStore(app)
await setupI18n(app)
setupGlobCom(app)
setupElementPlus(app)
setupFormCreate(app)
app.mount('#app')
</script></html>