Commit dabb8303 authored by 郭铭瑶's avatar 郭铭瑶 🤘

配置按钮暂隐藏

parent 0c968d58
...@@ -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)
}) })
......
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