<template>
    <div class="knwlportal">
        <div style="margin-top: 7px;">
            <van-row>
                <van-col span="22">
                    <div style="font-size: 14px;color:#555555;margin-left:15px;text-align: left;">最新发布</div>
                </van-col>
                <van-col span="2">
                    <van-icon name="descending" @click="showPopup"/>
                </van-col>
            </van-row>
        </div>

        <list></list>
        <van-popup v-model="show" position="right" :get-container="getContainer" style="height:100%;">
            <radio/>
        </van-popup>

    </div>
</template>

<script>
    /*知识库*/
    import list from '../components/list'
    import TreeSelect from '../components/treeSelect'
    import DropdownMenu from '../components/dropdownMenu'
    import cell from '../components/cell'
    import Radio from '../components/radio'

    export default {
        name: 'knwlportal',
        components: {Radio, DropdownMenu, TreeSelect, list, cell},
        data () {
            return {
                show: false
            }
        },

        methods: {
            showPopup () {
                this.show = true
            },
            // 返回一个特定的 DOM 节点，作为挂载的父节点
            getContainer () {
                return document.querySelector('.my-container')
            }
        }
    }
</script>

<style scoped>

</style>
