Anhang (Bild oder Datei) — component.issue-attachment
Anhang eines Vorgangs oder Verlaufseintrags: Bild als Vorschau oder Datei als Zeile mit Name und Größe. Der Link kann einen Dialog öffnen (component.modal mit source file), sonst öffnet er die Datei in einem neuen Tab. 1.1 (opt-in): preview thumb = Dateizeile mit Vorschaubild links und Symbol-Knöpfe
Componentv1.6.0Inhaltweb.documentweb.applicationdesktop.shellbuilder.preview
Beispiele
Keine Demo-Fälle hinterlegt (demo.php ergänzen).
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
href | string | "" |
missing | boolean | false |
name | string | "" |
size | string | "" |
type | string | "" |
preview | string: file | image | thumb | "file" |
thumbSrc | string | "" |
downloadHref | string | "" |
openLabel | string | "Öffnen" |
downloadLabel | string | "Herunterladen" |
removeName | string | "" |
removeSubmit | boolean | false |
removeAction | string | "" |
removeConfirm | string | "" |
removeValue | string | "1" |
removeLabel | string | "Entfernen" |
trigger | string | "" |
density | string: default | compact | "default" |
Genutzte Design-Tokens
border.emphasis border.hairline color.action.primary color.border.default color.border.subtle color.status.danger color.surface.default color.surface.sunken color.text.default color.text.muted duration.fast easing.standard font.family.default radius.control size.1 size.10 size.12 size.2 size.3 size.6 size.8 text.sm text.xs weight.medium weight.regular weight.semibold