logic-helper
Version:
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
21 lines (19 loc) • 442 B
JavaScript
import {
deepMerge,
deepClone,
} from "@/utils/util.js";
import Actions from './extends/Actions.js'
export default class Link extends Actions {
constructor(config) {
super();
this.init(config)
this.eleType = "link";
}
init(config){
for(let k in config) {
this[k] = config[k];
}
this.id = `${(config.from)}>${(config.to)}`;
this.config = config;
}
}