# 9.30 Weex 子窗口(Common Weex View)
# Weex子窗口midea-common-weex-view
此组件为APP内置组件,不需要前端import导入, 可直接在template里使用。weex子窗口,支持weex页面设置一个内嵌窗口,打开另外一个weex页面 前端自行定义图标样式:大小和位置 插件页面打开的weex子窗口,同样支持插件的特有接口
# 实例 :
# 基础用法
<template>
<div>
<midea-common-weex-view class="view-style" :router="route" />
</div>
</template>
<script>
export default {
data() {
return {
route: {
type: 'jumpWeex',
param: {
pageName: 'community'
// 也可使用 remoteUrl 指定远程 Weex 地址,或 url 指定本地地址。
}
}
}
}
}
</script>
<style scoped>
.view-style {
width: 750px;
height: 1200px;
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Attributes
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
router | Object | N | - | 支持weex子窗口加载文件的设置,目前支持routerModule模块的jumpWeex 解析 注1 |
注1
例子:
{
type:"jumpWeex",
param:{
pageName:"community",
}
}
1
2
3
4
5
6
2
3
4
5
6