diff options
author | 2024-11-29 17:32:22 +0800 | |
---|---|---|
committer | 2024-11-29 17:32:27 +0800 | |
commit | e5de10348e38a4cac9f70da856ab7c6941bfc347 (patch) | |
tree | 4aa7bc3808b54653f4a8f068a1903094b38d574b /usecaseui-portal/src/app/shared/components | |
parent | 35d38716bfb367497f563bc4081109f6053c43af (diff) |
add maas knowledge base, Knowledge Assistant, application and update link
Issue-ID: USECASEUI-844
Change-Id: I1dc2b4bc12f364d017b24b2752acfef63e27ad94
Signed-off-by: kaixiliu <liukaixi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/shared/components')
3 files changed, 62 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/shared/components/description-info/description-info.component.html b/usecaseui-portal/src/app/shared/components/description-info/description-info.component.html new file mode 100644 index 00000000..9575dca1 --- /dev/null +++ b/usecaseui-portal/src/app/shared/components/description-info/description-info.component.html @@ -0,0 +1,20 @@ +<div *ngFor="let item of data" class="input-wrapper"> + <div class="desc-label"> + <nz-popover> + <div class="text-single-ellipsis text-label" nz-popover> + {{ item.label }} + </div> + <ng-template #nzTemplate> + {{ item.label }} + </ng-template> + </nz-popover> + </div> + <div class="desc-item"> + <nz-popover> + <div class="text-single-ellipsis" nz-popover>{{ item.value }}</div> + <ng-template #nzTemplate> + {{ item.value }} + </ng-template> + </nz-popover> + </div> +</div>
\ No newline at end of file diff --git a/usecaseui-portal/src/app/shared/components/description-info/description-info.component.less b/usecaseui-portal/src/app/shared/components/description-info/description-info.component.less new file mode 100644 index 00000000..51e22485 --- /dev/null +++ b/usecaseui-portal/src/app/shared/components/description-info/description-info.component.less @@ -0,0 +1,24 @@ +.input-wrapper { + display: flex; + margin: 20px 0; +} + +.desc-label { + display: inline-block; + width: 30%; + margin-left: 8px; +} +.text-single-ellipsis { + text-overflow: ellipsis; + overflow: hidden; + word-break: break-all; + white-space: nowrap; +} +.text-label::after { + content: ':' +} + +.desc-item { + display: inline-block; + width: 70%; +}
\ No newline at end of file diff --git a/usecaseui-portal/src/app/shared/components/description-info/description-info.component.ts b/usecaseui-portal/src/app/shared/components/description-info/description-info.component.ts new file mode 100644 index 00000000..26148dce --- /dev/null +++ b/usecaseui-portal/src/app/shared/components/description-info/description-info.component.ts @@ -0,0 +1,18 @@ +import { Component, EventEmitter, Input, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-description-info', + templateUrl: './description-info.component.html', + styleUrls: ['./description-info.component.less'] +}) +export class DescriptionInfoComponent implements OnInit { + + constructor( + ) { } + @Input() data: Array<any>; + + ngOnInit() { + console.log('data is :', this.data) + } + +}
\ No newline at end of file |