feat: 空调可视化列表点击链接

This commit is contained in:
huanghao1412 2024-04-19 15:57:21 +08:00
parent 8cb59f3d6b
commit 56d93c8d04

View File

@ -35,10 +35,11 @@
}" }"
:isGroup="true" :isGroup="true"
:groupAttr="groupData.attr" :groupAttr="groupData.attr"
v-on="useLifeHandler(item)"
@changeZIndex="(z: number | string | undefined) => changeZIndex(item.id, z)" @changeZIndex="(z: number | string | undefined) => changeZIndex(item.id, z)"
@fullScreen="fullScreen" @fullScreen="fullScreen"
v-on="bindEvent(item)"
></component> ></component>
<!-- v-on="useLifeHandler(item)"-->
</div> </div>
</div> </div>
</template> </template>
@ -49,6 +50,7 @@ import { CreateComponentGroupType } from '@/packages/index.d'
import { animationsClass, getFilterStyle, getTransformStyle, getBlendModeStyle } from '@/utils' import { animationsClass, getFilterStyle, getTransformStyle, getBlendModeStyle } from '@/utils'
import { getSizeStyle, getComponentAttrStyle, getStatusStyle, getPreviewConfigStyle } from '../../utils' import { getSizeStyle, getComponentAttrStyle, getStatusStyle, getPreviewConfigStyle } from '../../utils'
import { useLifeHandler } from '@/hooks' import { useLifeHandler } from '@/hooks'
import { useCustomEvent } from '../../hooks/useCustomEvent.hook'
const props = defineProps({ const props = defineProps({
groupData: { groupData: {
@ -101,6 +103,7 @@ const _fullScreen = () => {
fullScreenStyle.value = {} fullScreenStyle.value = {}
} }
} }
const { bindEvent } = useCustomEvent()
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>