![](https://img-blog.csdnimg.cn/1be6f2a598ea4832a35be296e6c9364b.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Vue
Vue相关
古古一
这个作者很懒,什么都没留下…
展开
-
Vue Cli Elemengt Ui框架 Tab表格居中
Vue Cli Elemengt Ui框架 Tab表格居中需要在对应的页面样式加上 表格数据居中的效果/deep/.el-table th > .cell { text-align: center;}/deep/.el-table .cell { text-align: center;}/deep/的意思是深入的更改原创 2021-06-03 17:30:21 · 423 阅读 · 0 评论 -
Vue 中 Event Bus兄弟传值
1、先在main.js中全局定义import bus from '@/utlis/bus.js'Vue.prototype.$bus = bus2、然后在需要传值的组件中的 beforeDestroy () 生命周期中选择要转的值第一个是自定义的方法名,第二个是需要传的beforeDestroy () { this.$bus.$emit('menuList', this.msg) }3、在接收值的组件中created ()生命周期中接收created () { this原创 2021-06-03 17:36:53 · 120 阅读 · 0 评论 -
VsCode Vue文件 用户代码片段
此片段根据个人习惯使用,仅供参考 "Print to console": { "prefix": "vue", "body": [ "<template>", " <div class='$0'>\n", " </div>", "</template>\n", "<script>", " export default {", " nam原创 2021-09-02 10:41:26 · 234 阅读 · 0 评论 -
Element-Ui:el-table模糊查询
表格模糊查询具体实现效果图如下:具体代码如下::data="tables"这个tables绑定是的computed里的tables方法定义的变量tableData放的是从后端获取的动态数据 data() { return { search: "", tableData: [], }; }, computed: { tables() { const search = this.search; ...原创 2021-07-26 11:03:54 · 1560 阅读 · 0 评论