April-Zheng
April-Zheng
scoped
保留组件状态 避免重新渲染
`'obj.xx': { handler: function(val) {}, deep:true }`
beforeCreate, created, beforeMount, mounted
1、绝对路径直接引入 在index.html中用script引入 `` 然后在webpack中配置external `externals: { 'jquery': 'jQuery' }` 在组件中使用时import `import $ from 'jquery'` 2 、在webpack中配置alias `resolve: { extensions: ['.js', '.vue', '.json'], alias: { '@': resolve('src'), 'jquery': resolve('static/jquery-1.12.4.js') } }`...
在切换tab时 第二个tab的图表无法正常显示 切换tab时使用方法@tab-click="handleClick"加载图表的render函数
组件吧 vuex是状态管理
flex布局下 表格宽度无限增加
数据共享不方便