@lcap/builder
Version:
lcap builder utils
32 lines (29 loc) • 740 B
text/typescript
/// <reference types="@nasl/types" />
namespace extensions.{{pkgName}}.viewComponents {
const { Component, Prop, ViewComponent, Slot, Method, Event, ViewComponentOptions } = nasl.ui;
({
type: '{{type}}',
ideusage: {
idetype: 'element',
},
})
({
title: '{{title}}',
description: '{{description}}',
})
export class {{compName}} extends ViewComponent {
constructor(options?: Partial<{{compName}}Options>) {
super();
}
}
export class {{compName}}Options extends ViewComponentOptions {
({
title: '内容',
description: '显示文本',
setter: {
concept: 'InputSetter'
}
})
text: nasl.core.String = '';
}
}