2019-12-17 06:20:05 +08:00
|
|
|
import Extension from './Extension'
|
|
|
|
|
2020-03-06 03:30:58 +08:00
|
|
|
export default abstract class Node extends Extension {
|
2019-12-17 06:20:05 +08:00
|
|
|
|
|
|
|
constructor(options = {}) {
|
|
|
|
super(options)
|
|
|
|
}
|
|
|
|
|
2020-03-06 04:05:01 +08:00
|
|
|
public type = 'node'
|
2019-12-17 06:20:05 +08:00
|
|
|
|
2020-03-06 07:15:36 +08:00
|
|
|
public topNode = false
|
|
|
|
|
2020-03-06 03:30:58 +08:00
|
|
|
// get type() {
|
|
|
|
// return 'node'
|
|
|
|
// }
|
2019-12-17 06:20:05 +08:00
|
|
|
|
2020-03-06 03:30:58 +08:00
|
|
|
// get view(): any {
|
|
|
|
// return null
|
|
|
|
// }
|
2019-12-17 06:20:05 +08:00
|
|
|
|
2020-03-06 03:30:58 +08:00
|
|
|
// get schema(): any {
|
|
|
|
// return null
|
|
|
|
// }
|
2019-12-17 06:20:05 +08:00
|
|
|
|
2020-03-06 03:30:58 +08:00
|
|
|
public abstract schema: any
|
2020-03-06 18:02:35 +08:00
|
|
|
// public abstract plugins?: any
|
2020-03-06 03:30:58 +08:00
|
|
|
|
|
|
|
// command() {
|
|
|
|
// return () => {}
|
|
|
|
// }
|
2019-12-17 06:20:05 +08:00
|
|
|
|
|
|
|
}
|