自定义界面配置
必要配置:请在启动文件中加入以下配置
import R3 from 'burgeon-r3';
import customizedPageConfig from './src/config/customized.page.config.js';//自定义页面配置文件
import customizedModalConfig from './src/config/customized.modal.config.js';//自定义弹出框配置文件
R3.launchApplication({
externalModules: customizedPageConfig,
externalModals: customizedModalConfig,
});
配置文件示例:customized.page.config.js
import TouristPage from '../component/customizedPage/TouristPage.vue';
import Personal from '../component/customizedPage/Personal';
export default {
TouristPage: {//组件名称
component: TouristPage
},
Personal: {
component: Personal
},
};
自定义弹出框配置
配置:与自定义界面配置相同
方法:
this.$emit('closeActionDialog', true); //参数为true时,关闭弹出框并且刷新界面
this.$emit('closeActionDialog', true); //参数为true时,关闭弹出框
this.$emit('setTitle', 'title名称'); // 支持定制弹出框内部组件设置title名称
this.$emit('clearSelectIdArray');//支持定制弹出框关闭时清空列表选中项
属性:
idArray: {// 获取ID用于多选
type: [Array, Object],
default: () => {}
},
itemId: {// 获取当前子表表名
type: String,
default: () => ''
}