Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
757f10cb
authored
Sep 04, 2024
by
卢越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】现在每次点击装修组件都刷新右侧属性窗口
parent
19789fab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/components/DiyEditor/components/ComponentContainer.vue
+1
-1
src/components/DiyEditor/index.vue
+2
-1
No files found.
src/components/DiyEditor/components/ComponentContainer.vue
View file @
757f10cb
...
...
@@ -5,7 +5,7 @@
...style
}"
>
<component
:is=
"component.id"
:property=
"component.property"
:component=
"component"
/>
<component
:is=
"component.id"
:property=
"component.property"
/>
</div>
<div
class=
"component-wrap"
>
<!-- 左侧:组件名(悬浮的小贴条) -->
...
...
src/components/DiyEditor/index.vue
View file @
757f10cb
...
...
@@ -151,8 +151,9 @@
class=
"m-[calc(0px-var(--el-card-padding))]"
view-class=
"p-[var(--el-card-padding)] p-b-[calc(var(--el-card-padding)+var(--el-card-padding))] property"
>
<!--这里的 key 使用时间戳是为了保证每次点击组件都进行刷新-->
<component
:key=
"selectedComponent?.uid || selectedComponent?.id"
:key=
"selectedComponent?.uid || selectedComponent?.id
+ new Date().getTime() || new Date().getTime().toString()
"
:is=
"selectedComponent?.id + 'Property'"
v-model=
"selectedComponent.property"
/>
...
...
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