vue-django
Version:
个人实验项目, 本框架的目标是借鉴并超越django admin的自动化思想, 实现UI前端的极简快速定制开发
20 lines (18 loc) • 480 B
JavaScript
/**
* Created by denishuang on 2023/7/14.
*/
import {difference} from 'lodash'
export default function (value) {
return {
last: value.slice(),
current: value.slice(),
addParts: [],
removeParts: [],
changed(v){
this.last = this.current
this.current = v.slice()
this.addParts = difference(this.current, this.last)
this.removeParts = difference(this.last, this.current)
}
}
}