尝试一下大屏设计的问题
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
//引入当前工程所有的应用
|
||||
const install = function(Vue) {
|
||||
if (install.installed) return Promise.resolve();
|
||||
else {
|
||||
let contexts = require.context('../packages', true, /(\/.+)\/App[^\/]+\.vue$/);
|
||||
if (contexts) {
|
||||
contexts.keys().map((e) => {
|
||||
if (contexts(e).default) {
|
||||
Vue.component(contexts(e).default.name, contexts(e).default);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
// 判断是否是直接引入文件
|
||||
if (typeof window !== 'undefined' && window.Vue) {
|
||||
install(window.Vue);
|
||||
}
|
||||
export default {
|
||||
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
||||
install
|
||||
};
|
||||
@@ -11,7 +11,6 @@ import store from './store';
|
||||
import dataV from '@jiaminghi/data-view';
|
||||
|
||||
Vue.use(dataV);
|
||||
|
||||
Vue.use(ui);
|
||||
Vue.use(vcUI);
|
||||
//富文本编辑器配置
|
||||
|
||||
@@ -22,14 +22,14 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import dvui from "dvcp-dv-ui"
|
||||
import List from './components/List.vue'
|
||||
import Add from './components/Add'
|
||||
import SourceData from './components/SourceData'
|
||||
import dvui from '../../../project/dvui/entries'
|
||||
import 'dvcp-ui/lib/styles/common.scss'
|
||||
import Vue from "vue";
|
||||
|
||||
Vue.use(dvui)
|
||||
|
||||
export default {
|
||||
name: 'AppDesigner',
|
||||
label: '大屏设计',
|
||||
|
||||
Reference in New Issue
Block a user