<template>
<div id="app2" >

    <!--
    <StockList ref='stocklist1' ></StockList>
    <p>全屏宽度测试用例</p>
    <StockList ref='stocklist2' ></StockList>
    <p>百分比宽度+默认股票测试用例</p>
    

    <p>固定宽度测试用例</p>
    <div id="app3" style=" left:20px;width:600px; position: relative;"> 
        <StockList ref='stocklist3' ></StockList> 
    </div>
    -->

    <div id='app4' style="width:500px; height:300px">
        <StockList ref='stocklist4' ></StockList> 
    </div>
   

</div>
</template>

<script>
import StockList from '../../jscommon/umychart.vue.components/stocklist.demo.vue'

export default 
{
    data () 
    {
        return {
          
        }
    },   

    components: { StockList },

    created:function()
    {
        
    },

    mounted:function()
    {
        var self=this;
        window.onresize = function() { self.OnSize() }
    },


    methods:
    {
        OnSize:function()
        {
            this.$refs.stocklist4.OnSize();
        }
    }
}

</script>

<style>

  
</style>
