18 changed files with 192 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,26 @@ |
|||||
|
<template> |
||||
|
<w-dialog ref="dialogRef" width="800px" :title="$t('myMessages')"> </w-dialog> |
||||
|
</template> |
||||
|
<script setup lang="ts"> |
||||
|
import { ref } from 'vue'; |
||||
|
import { useQuasar } from 'quasar'; |
||||
|
import { axios, PConst, Environment, SessionManager, noErrorAxios, NotifyManager } from '@/platform'; |
||||
|
|
||||
|
const $q = useQuasar(); |
||||
|
const dialogRef = ref(); |
||||
|
const itemRef = ref(); |
||||
|
|
||||
|
const open = async (item) => { |
||||
|
itemRef.value = item; |
||||
|
dialogRef.value.show(); |
||||
|
}; |
||||
|
|
||||
|
const close = () => { |
||||
|
dialogRef.value.hide(); |
||||
|
}; |
||||
|
|
||||
|
defineExpose({ |
||||
|
open, |
||||
|
close, |
||||
|
}); |
||||
|
</script> |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,23 @@ |
|||||
|
<template> |
||||
|
<div class="row justify-center py-10"> |
||||
|
<q-btn |
||||
|
label="在对话框中打开远程组件" |
||||
|
@click=" |
||||
|
() => { |
||||
|
dialogRef.show(); |
||||
|
} |
||||
|
" |
||||
|
></q-btn> |
||||
|
<w-dialog ref="dialogRef" width="900px" :title="$t('system.user.grid.title')"> |
||||
|
<div style="height: 500px"> |
||||
|
<component :is="defineAsyncComponent(ComponentManager.getRemoteComponent('io.sc.platform.developer.frontend', 'component.remote.developer.XXX'))" /> |
||||
|
</div> |
||||
|
</w-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
<script setup lang="ts"> |
||||
|
import { ref, defineAsyncComponent } from 'vue'; |
||||
|
import { ComponentManager } from '@/platform'; |
||||
|
|
||||
|
const dialogRef = ref(); |
||||
|
</script> |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,23 @@ |
|||||
|
<template> |
||||
|
<div class="row justify-center py-10"> |
||||
|
<q-btn |
||||
|
label="在对话框中打开远程组件" |
||||
|
@click=" |
||||
|
() => { |
||||
|
dialogRef.show(); |
||||
|
} |
||||
|
" |
||||
|
></q-btn> |
||||
|
<w-dialog ref="dialogRef" width="900px" :title="$t('system.user.grid.title')"> |
||||
|
<div style="height: 500px"> |
||||
|
<component :is="defineAsyncComponent(ComponentManager.getRemoteComponent('io.sc.platform.developer.frontend', 'component.remote.developer.XXX'))" /> |
||||
|
</div> |
||||
|
</w-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
<script setup lang="ts"> |
||||
|
import { ref, defineAsyncComponent } from 'vue'; |
||||
|
import { ComponentManager } from '@/platform'; |
||||
|
|
||||
|
const dialogRef = ref(); |
||||
|
</script> |
@ -0,0 +1,12 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
{ |
||||
|
"component": "component.remote.developer.XXX", |
||||
|
"componentPath": "@/views/XXX.vue" |
||||
|
} |
||||
|
] |
@ -0,0 +1,4 @@ |
|||||
|
<template> |
||||
|
<div>XXX</div> |
||||
|
</template> |
||||
|
<script setup lang="ts"></script> |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
@ -0,0 +1,8 @@ |
|||||
|
[ |
||||
|
/* |
||||
|
{ |
||||
|
"component": "组件名称", |
||||
|
"componentPath": "组件 .vue 文件路径" |
||||
|
} |
||||
|
*/ |
||||
|
] |
Loading…
Reference in new issue