自定义客户管理系统开发过程中遇到的问题总结

mac2026-08-05  6

element 组件手动控制dropdown组件的显示隐藏

看dropdown的源码封装有hiden()和show()方法,直接给el-dropdown加个ref再通过ref运行组件内的方法即可

<el-dropdown trigger="click" ref="messageDrop"></el-dropdown> this.$refs.messageDrop.hide(); this.$refs.messageDrop.show();

给html,body设置min-height 没有作用?

html { height: 100%; } body { position: relative; min-height: 100%; box-sizing: border-box; padding-bottom: 80px; /* .footer 的高度,为 footer 占位 */ } .footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; }

拖拽组件

https://github.com/SortableJS/Vue.Draggable

多个Popover 手动控制不起作用

模仿点击空白处

给外层的元素添加一个ref 

<div class="client-list-wrap" ref="closePopover"></div> this.$refs.closePopover.click()

Vue页面刷新时如何获取VueX存储的变量

http://www.speedcode.cn/ArticleDetail?id=99
最新回复(0)