ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
30 lines (26 loc) • 849 B
text/typescript
import { Component, Input, ViewEncapsulation } from '@angular/core';
import { helpMotion } from 'ng-zorro-antd/core/animation';
import { SFSchema } from './schema/index';
import { SFOptionalHelp, SFUISchemaItem } from './schema/ui';
export class SFItemWrapComponent {
id: string;
schema: SFSchema;
ui: SFUISchemaItem;
showError: boolean;
error: string;
showTitle: boolean;
title: string | null = null;
get t(): string {
return this.title === null ? this.schema.title! : this.title;
}
get oh(): SFOptionalHelp {
return this.ui.optionalHelp as SFOptionalHelp;
}
}