Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jingan-wisdom
Project
Project
Details
Activity
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
郭铭瑶
jingan-wisdom
Commits
dabb8303
Commit
dabb8303
authored
Oct 26, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置按钮暂隐藏
parent
0c968d58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
edit-page.vue
src/view/edit-page.vue
+2
-16
No files found.
src/view/edit-page.vue
View file @
dabb8303
...
@@ -34,14 +34,14 @@
...
@@ -34,14 +34,14 @@
>
>
<TrashBin
/>
<TrashBin
/>
</n-icon>
</n-icon>
<n-icon
<
!--
<
n-icon
v-show=
"!!components[index]"
v-show=
"!!components[index]"
class=
"btn config"
class=
"btn config"
size=
".16rem"
size=
".16rem"
@
click=
"onSetComponent(componentList[components[index]])"
@
click=
"onSetComponent(componentList[components[index]])"
>
>
<Settings
/>
<Settings
/>
</n-icon>
</n-icon>
-->
</div>
</div>
</m-grid>
</m-grid>
</div>
</div>
...
@@ -105,7 +105,6 @@ import LayoutModal from './components/layout-modal.vue'
...
@@ -105,7 +105,6 @@ import LayoutModal from './components/layout-modal.vue'
import
ComponentModal
from
'./components/component-modal.vue'
import
ComponentModal
from
'./components/component-modal.vue'
import
useLayout
from
'@/hooks/useLayout'
import
useLayout
from
'@/hooks/useLayout'
import
useComponent
from
'@/hooks/useComponent'
import
useComponent
from
'@/hooks/useComponent'
import
useConfig
from
'@/hooks/useConfig'
import
{
TrashBin
,
Settings
}
from
'@vicons/ionicons5'
import
{
TrashBin
,
Settings
}
from
'@vicons/ionicons5'
import
{
bus
}
from
'@/utils/component-list'
import
{
bus
}
from
'@/utils/component-list'
import
axios
from
'axios'
import
axios
from
'axios'
...
@@ -135,7 +134,6 @@ const {
...
@@ -135,7 +134,6 @@ const {
const
handleMessage
=
(
e
)
=>
{
const
handleMessage
=
(
e
)
=>
{
const
{
type
,
data
}
=
e
.
data
const
{
type
,
data
}
=
e
.
data
console
.
log
(
'大屏:'
,
e
)
switch
(
type
)
{
switch
(
type
)
{
case
'save'
:
case
'save'
:
window
.
parent
.
postMessage
(
window
.
parent
.
postMessage
(
...
@@ -175,18 +173,6 @@ onBeforeUnmount(() => {
...
@@ -175,18 +173,6 @@ onBeforeUnmount(() => {
window
.
removeEventListener
(
'message'
,
handleMessage
)
window
.
removeEventListener
(
'message'
,
handleMessage
)
})
})
// const save = () => {
// const data = {
// layout: layout.value,
// components: components.value,
// }
// useConfig(JSON.stringify(data))
// bus.emit('update:A002', [
// { name: '分户', value: 100 },
// { name: '门牌', value: 100 },
// { name: '小区', value: 100 },
// ])
// }
bus
.
on
(
'map'
,
(
e
:
any
)
=>
{
bus
.
on
(
'map'
,
(
e
:
any
)
=>
{
console
.
log
(
'emit by : '
,
e
)
console
.
log
(
'emit by : '
,
e
)
})
})
...
...
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