chore: 增加 build:statging

This commit is contained in:
wangxuefeng
2025-03-12 19:35:05 +08:00
parent 5f8609fc02
commit 6016504c94
12 changed files with 114 additions and 148 deletions

View File

@@ -5,15 +5,13 @@ import Postmate from 'postmate';
const props = defineProps<{
accessToken?: string;
applicationId: string;
fileId: string;
applicationId: number | string;
fileId: number | string;
name: string;
projectId: string;
projectId: number | string;
url: string;
}>();
Console.log('props', props);
const initPostmate = async () => {
const container = document.querySelector('#low-code-adapter');
if (!container) {
@@ -38,6 +36,7 @@ const initPostmate = async () => {
connection.then((child) => {
child.frame.style.height = '100%';
child.frame.style.width = '100%';
// @ts-ignore 忽略 console
console.log(`${props.name} 连接成功`, child);
child.call('child-connected', {
name: props.name,
@@ -51,5 +50,21 @@ onMounted(() => {
</script>
<template>
<div id="low-code-adapter" style="width: 100%; height: 100%"></div>
<div
id="low-code-adapter"
class="low-code-adapter"
style="width: 100%; height: 100%"
></div>
</template>
<style scoped>
.low-code-adapter {
width: 100%;
}
.low-code-adapter iframe {
width: 100%;
height: 100%;
border: none;
}
</style>