test-bentoweb-ui 1.0.50 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -3
- package/dist/bentoweb-ui.css +1 -1
- package/dist/bentoweb-ui.es.js +4356 -4038
- package/dist/bentoweb-ui.umd.js +25 -25
- package/package.json +1 -1
package/README.md
CHANGED
@@ -75,7 +75,7 @@ export default {
|
|
75
75
|
| Prop | Type | Default | Description |
|
76
76
|
|------|------|---------|-------------|
|
77
77
|
| BannerImage | Array | required | Array of objects with `src` and `link` properties |
|
78
|
-
| size | String | '
|
78
|
+
| size | String | 'l' | Size/layout of the banner. Options: 'm' (interactive style), 'l' (full banner with pagination), 'xl' (two-column layout), 'grid-2' (two square banners), 'grid-6' (3x2 grid of banners) |
|
79
79
|
|
80
80
|
The `src` property can be:
|
81
81
|
- A path relative to the public directory (e.g., `/images/example.jpg`)
|
@@ -85,6 +85,50 @@ The `link` property can be:
|
|
85
85
|
- A Vue Router path for internal navigation (e.g., `/products`)
|
86
86
|
- An external URL (e.g., `https://example.com`) which will open in a new tab
|
87
87
|
|
88
|
+
### Banner Configurations
|
89
|
+
|
90
|
+
The SwiperBanner component supports multiple layout configurations, all with proper aspect ratios to maintain consistent proportions across different screen sizes:
|
91
|
+
|
92
|
+
#### Banner M (size="m")
|
93
|
+
Small interactive banner with horizontal scrolling. Shows 1.2 slides on mobile and 2 slides on desktop.
|
94
|
+
|
95
|
+
#### Banner L (size="l")
|
96
|
+
Full-width banner with pagination bullets. This is the default configuration and was previously called 'xl'.
|
97
|
+
|
98
|
+
#### Banner XL (size="xl")
|
99
|
+
Two-column layout where the left column takes 60% of the width (16:9 aspect ratio) and the right column has two rows of smaller banners (21:10 aspect ratio). Requires at least 3 banner images.
|
100
|
+
|
101
|
+
On mobile devices (screen width < 768px), this layout automatically switches to a regular swiper with pagination for better user experience.
|
102
|
+
|
103
|
+
#### Grid-2 (size="grid-2")
|
104
|
+
Two equal-width square banners side by side (1:1 aspect ratio). Requires at least 2 banner images. This layout has a maximum width of 900px and is centered on the page to prevent the square images from appearing too large on wide screens.
|
105
|
+
|
106
|
+
On mobile devices (screen width < 768px), this layout automatically switches to a regular swiper with pagination for better user experience.
|
107
|
+
|
108
|
+
#### Grid-6 (size="grid-6")
|
109
|
+
3x2 grid of rectangle banners (16:9 aspect ratio). Requires at least 6 banner images for full display.
|
110
|
+
|
111
|
+
On mobile devices (screen width < 768px), this layout automatically switches to a regular swiper with pagination for better user experience.
|
112
|
+
|
113
|
+
### Usage Examples
|
114
|
+
|
115
|
+
```vue
|
116
|
+
<!-- Banner M - Small interactive banner -->
|
117
|
+
<SwiperBanner :BannerImage="bannerImages" size="m" />
|
118
|
+
|
119
|
+
<!-- Banner L - Full width banner with pagination (default) -->
|
120
|
+
<SwiperBanner :BannerImage="bannerImages" size="l" />
|
121
|
+
|
122
|
+
<!-- Banner XL - Two column layout -->
|
123
|
+
<SwiperBanner :BannerImage="bannerImages" size="xl" />
|
124
|
+
|
125
|
+
<!-- Grid-2 - Two square banners -->
|
126
|
+
<SwiperBanner :BannerImage="bannerImages" size="grid-2" />
|
127
|
+
|
128
|
+
<!-- Grid-6 - 3x2 grid of banners -->
|
129
|
+
<SwiperBanner :BannerImage="bannerImages" size="grid-6" />
|
130
|
+
```
|
131
|
+
|
88
132
|
### Swiper Element Attributes
|
89
133
|
|
90
134
|
When using Swiper Element (WebComponent), attributes must be passed as strings rather than bound objects:
|
@@ -140,9 +184,9 @@ swiper-container.banner-full::part(bullet-active) {
|
|
140
184
|
|
141
185
|
Available parts include: `container`, `wrapper`, `slide`, `pagination`, `bullet`, `bullet-active`, and more. See the [Swiper Element documentation](https://swiperjs.com/element#parts) for a complete list.
|
142
186
|
|
143
|
-
### SwiperInteractive Usage (
|
187
|
+
### SwiperInteractive Usage (Removed)
|
144
188
|
|
145
|
-
The SwiperInteractive component
|
189
|
+
The SwiperInteractive component has been removed. Please use the SwiperBanner component with `size="m"` instead:
|
146
190
|
|
147
191
|
```vue
|
148
192
|
<template>
|