vue弹框实现移动功能
实现效果:
弹框效果
首先在router创建一个js文件
js文件内容:
importVuefrom'vue'
// 自定义元素实现弹框拖拽[重点]
Vue.directive('draw', {
inserted:function(el, binding, vNode) {
el.setAttribute('style', 'position: fixed; z-index: 9999')
},
bind:function(el, bin......
原创
2022-04-25 11:22:53 ·
1832 阅读 ·
0 评论