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

配置按钮暂隐藏

parent 0c968d58
......@@ -34,14 +34,14 @@
>
<TrashBin />
</n-icon>
<n-icon
<!-- <n-icon
v-show="!!components[index]"
class="btn config"
size=".16rem"
@click="onSetComponent(componentList[components[index]])"
>
<Settings />
</n-icon>
</n-icon> -->
</div>
</m-grid>
</div>
......@@ -105,7 +105,6 @@ import LayoutModal from './components/layout-modal.vue'
import ComponentModal from './components/component-modal.vue'
import useLayout from '@/hooks/useLayout'
import useComponent from '@/hooks/useComponent'
import useConfig from '@/hooks/useConfig'
import { TrashBin, Settings } from '@vicons/ionicons5'
import { bus } from '@/utils/component-list'
import axios from 'axios'
......@@ -135,7 +134,6 @@ const {
const handleMessage = (e) => {
const { type, data } = e.data
console.log('大屏:', e)
switch (type) {
case 'save':
window.parent.postMessage(
......@@ -175,18 +173,6 @@ onBeforeUnmount(() => {
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) => {
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