This commit is contained in:
yanran200730
2022-08-30 10:37:09 +08:00
parent 8f17c453e1
commit bef847e128
3 changed files with 234 additions and 4 deletions

View File

@@ -0,0 +1,50 @@
<template>
<div class="AppMaterialLibrary-wrapper">
<component ref="component" :is="component" @change="onChange" :params="params" :instance="instance" :dict="dict"></component>
</div>
</template>
<script>
import List from './components/List'
export default {
name: 'AppMaterialLibrary',
label: '素材库',
props: {
instance: Function,
dict: Object
},
data () {
return {
component: 'List',
params: {}
}
},
components: {
List
},
mounted () {
},
methods: {
onChange (data) {
if (data.type === 'list') {
this.component = 'List'
this.params = data.params
}
}
}
}
</script>
<style lang="scss">
.AppMaterialLibrary-wrapper {
height: 100%;
background: #F3F6F9;
overflow: auto;
}
</style>