From fa3d5a158acdbbdc7f30f80a6b1233fa9759466a Mon Sep 17 00:00:00 2001 From: Rewrite0 Date: Mon, 29 Jul 2024 17:31:30 +0800 Subject: [PATCH] feat: add image component with adjustable aspect ratio --- webui/src/components/ab-image.vue | 46 +++++++++++++++++++++++++++++++ webui/types/dts/components.d.ts | 1 + 2 files changed, 47 insertions(+) create mode 100644 webui/src/components/ab-image.vue diff --git a/webui/src/components/ab-image.vue b/webui/src/components/ab-image.vue new file mode 100644 index 00000000..495d9b4b --- /dev/null +++ b/webui/src/components/ab-image.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/webui/types/dts/components.d.ts b/webui/types/dts/components.d.ts index 1c967c1a..b3938435 100644 --- a/webui/types/dts/components.d.ts +++ b/webui/types/dts/components.d.ts @@ -19,6 +19,7 @@ declare module '@vue/runtime-core' { AbContainer: typeof import('./../../src/components/ab-container.vue')['default'] AbEditRule: typeof import('./../../src/components/ab-edit-rule.vue')['default'] AbFoldPanel: typeof import('./../../src/components/ab-fold-panel.vue')['default'] + AbImage: typeof import('./../../src/components/ab-image.vue')['default'] AbLabel: typeof import('./../../src/components/ab-label.vue')['default'] AbPageTitle: typeof import('./../../src/components/basic/ab-page-title.vue')['default'] AbPopup: typeof import('./../../src/components/ab-popup.vue')['default']