chore: 增加 build:statging
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user