Commit b5e40cbb authored by rockyl's avatar rockyl

提交一波

parent 5d31f64c
......@@ -540,6 +540,13 @@ export const projectStore = {
Vue.delete(state.activeComponent.properties, cmd);
this.commit('makeProjectDirty');
},
modifyViewDepAssets(state, {view, explicitDepAssets, implicitDepAssets}){
view.explicitDepAssets = explicitDepAssets;
view.implicitDepAssets = implicitDepAssets;
this.commit('makeProjectDirty');
}
},
getters: {
project(state) {
......
......@@ -176,8 +176,35 @@
.asset-dependence-dialog {
.wrapper {
display: flex;
flex-direction: column;
height: 50vh;
.explicit-tags{
display: flex;
div+div{
margin-left: 5px;
}
div{
display: flex;
align-items: center;
div{
width: 10px;
height: 10px;
}
.explicit{
background-color: $--color-danger;
}
.implicit{
background-color: $--color-success;
}
}
}
.assets-scrollbar {
flex: 1;
border: 1px solid $--border-color-light;
......
......@@ -10,6 +10,16 @@
custom-class="asset-dependence-dialog flex-dialog"
>
<div class="wrapper">
<div class="explicit-tags">
<div>
<div class="explicit"></div>
显式依赖
</div>
<div>
<div class="implicit"></div>
隐式依赖
</div>
</div>
<el-scrollbar class="assets-scrollbar" wrap-class="wrap-x-hidden"
view-class="scrollbar-view">
<asset-list ref="depAssetList" :editable="false" :selectable="false"
......@@ -72,7 +82,11 @@
this.visible = true;
},
clickSave() {
this.modifyViewDepAssets({
view: this.view,
explicitDepAssets: this.explicitDepAssets,
implicitDepAssets: this.implicitDepAssets,
});
this.visible = false;
},
clickClose() {
......@@ -93,7 +107,7 @@
implicitDepAssets.push(uuid);
}
},
...mapMutations(['modifyViewStore'])
...mapMutations(['modifyViewDepAssets'])
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment