Commit b5e40cbb authored by rockyl's avatar rockyl

提交一波

parent 5d31f64c
...@@ -540,6 +540,13 @@ export const projectStore = { ...@@ -540,6 +540,13 @@ export const projectStore = {
Vue.delete(state.activeComponent.properties, cmd); Vue.delete(state.activeComponent.properties, cmd);
this.commit('makeProjectDirty'); this.commit('makeProjectDirty');
}, },
modifyViewDepAssets(state, {view, explicitDepAssets, implicitDepAssets}){
view.explicitDepAssets = explicitDepAssets;
view.implicitDepAssets = implicitDepAssets;
this.commit('makeProjectDirty');
}
}, },
getters: { getters: {
project(state) { project(state) {
......
...@@ -176,8 +176,35 @@ ...@@ -176,8 +176,35 @@
.asset-dependence-dialog { .asset-dependence-dialog {
.wrapper { .wrapper {
display: flex; display: flex;
flex-direction: column;
height: 50vh; 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 { .assets-scrollbar {
flex: 1; flex: 1;
border: 1px solid $--border-color-light; border: 1px solid $--border-color-light;
......
...@@ -10,6 +10,16 @@ ...@@ -10,6 +10,16 @@
custom-class="asset-dependence-dialog flex-dialog" custom-class="asset-dependence-dialog flex-dialog"
> >
<div class="wrapper"> <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" <el-scrollbar class="assets-scrollbar" wrap-class="wrap-x-hidden"
view-class="scrollbar-view"> view-class="scrollbar-view">
<asset-list ref="depAssetList" :editable="false" :selectable="false" <asset-list ref="depAssetList" :editable="false" :selectable="false"
...@@ -72,7 +82,11 @@ ...@@ -72,7 +82,11 @@
this.visible = true; this.visible = true;
}, },
clickSave() { clickSave() {
this.modifyViewDepAssets({
view: this.view,
explicitDepAssets: this.explicitDepAssets,
implicitDepAssets: this.implicitDepAssets,
});
this.visible = false; this.visible = false;
}, },
clickClose() { clickClose() {
...@@ -93,7 +107,7 @@ ...@@ -93,7 +107,7 @@
implicitDepAssets.push(uuid); implicitDepAssets.push(uuid);
} }
}, },
...mapMutations(['modifyViewStore']) ...mapMutations(['modifyViewDepAssets'])
} }
} }
</script> </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