摘要:
let a = new Date(); let time = this.dateFomat("yyyy-MM-dd hh:mm:ss", a); //fmt 需要被转换后的时间类型 time 需要转换的时间dateFomat(fmt, time) { if (!time) return ""; le 阅读全文
摘要:
同时给父元素和需要拖拽的元素进行设置style="position: relative;" 注册指令 export default (app) => { app.directive("drag", { mounted(el) { let dragBox = el; dragBox.onmousedo 阅读全文