diff --git a/src/BootstrapBlazor.Shared/Locales/en.json b/src/BootstrapBlazor.Shared/Locales/en.json index 76a110aead87718f1c26b8d9e943e0892e2fb890..e2bbf0bb09e8e44b417fd2d67bc3076c6ade40ba 100644 --- a/src/BootstrapBlazor.Shared/Locales/en.json +++ b/src/BootstrapBlazor.Shared/Locales/en.json @@ -2199,6 +2199,8 @@ "BasicUsageIntro": "A wide range of basic usages are used to bind components to an array of picture paths by setting the Items property values", "ShowControlsTitle": "Show Controls", "ShowControlsIntro": "Set ShowControls to true for show/hide the controls of Carousel", + "ShowIndicatorsTitle": "Indicator", + "ShowIndicatorsIntro": "Set ShowIndicators to true for show/hide the indicator of Carousel", "FadeTitle": "Fade in and out", "FadeIntro": "By setting the IsFade property, the picture switches with a fade-in and fade-out effect", "OnClickTitle": "Click on the image to call back the event", diff --git a/src/BootstrapBlazor.Shared/Locales/zh.json b/src/BootstrapBlazor.Shared/Locales/zh.json index 65c23561eb1c5ec7aac4b3dfcbb01adcc75e0544..0cd605236206a49232ac9b908bdd00f744c75db4 100644 --- a/src/BootstrapBlazor.Shared/Locales/zh.json +++ b/src/BootstrapBlazor.Shared/Locales/zh.json @@ -2203,7 +2203,9 @@ "BasicUsageTitle": "基础用法", "BasicUsageIntro": "适用广泛的基础用法,通过设置 Items 属性值对组件进行图片的绑定,值为图片路径数组", "ShowControlsTitle": "控制按钮", - "ShowControlsIntro": "通过设置 ShowControls 属性,设置是否显示控制按钮与指示标识 默认是 true", + "ShowControlsIntro": "通过设置 ShowControls 属性,设置是否显示控制按钮 默认是 true", + "ShowIndicatorsTitle": "指示器", + "ShowIndicatorsIntro": "通过设置 ShowIndicators 属性,设置是否显示指示标识 默认是 true", "FadeTitle": "淡入淡出", "FadeIntro": "通过设置 IsFade 属性,图片切换时采用淡入淡出效果", "OnClickTitle": "点击图片回调事件", diff --git a/src/BootstrapBlazor.Shared/Samples/Carousels.razor b/src/BootstrapBlazor.Shared/Samples/Carousels.razor index 66568b291c70df80ddb33736ef1513b980961440..ab022f9be89008a717f29595e801269d89ca55d0 100644 --- a/src/BootstrapBlazor.Shared/Samples/Carousels.razor +++ b/src/BootstrapBlazor.Shared/Samples/Carousels.razor @@ -6,11 +6,15 @@

@Localizer["SubTitle"]

- + - - + + + + + + diff --git a/src/BootstrapBlazor/Components/Carousel/Carousel.razor b/src/BootstrapBlazor/Components/Carousel/Carousel.razor index 0cc727bfa92c6d52b588c4a447fd38597cef4817..c06e155915f65859d2df92aec95f465180dd4227 100644 --- a/src/BootstrapBlazor/Components/Carousel/Carousel.razor +++ b/src/BootstrapBlazor/Components/Carousel/Carousel.razor @@ -6,7 +6,7 @@ @ChildContent - @if (ShowControls) + @if (ShowIndicators) {