Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-editor
Commits
b5e40cbb
Commit
b5e40cbb
authored
Apr 28, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交一波
parent
5d31f64c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
2 deletions
+50
-2
project.js
src/store/modules/project.js
+7
-0
inspector.scss
src/themes/light/inspector.scss
+27
-0
AssetDependenceDialog.vue
...views/Editor/Inspector/PropsTab/AssetDependenceDialog.vue
+16
-2
No files found.
src/store/modules/project.js
View file @
b5e40cbb
...
...
@@ -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
)
{
...
...
src/themes/light/inspector.scss
View file @
b5e40cbb
...
...
@@ -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
;
...
...
src/views/Editor/Inspector/PropsTab/AssetDependenceDialog.vue
View file @
b5e40cbb
...
...
@@ -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
([
'modifyView
Store
'
])
...
mapMutations
([
'modifyView
DepAssets
'
])
}
}
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment