docs(breadcrumbs): remove incorrect prop descriptions (#25415)

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Amanda Johnston
2022-06-07 11:28:39 -05:00
committed by GitHub
gitea-unlock(16/)
parent 122cdcc825
commit 1e8c95d592
octicon-diff(16/tw-mr-1) 2 changed files with 8 additions and 6 deletions

8
core/src/components.d.ts vendored
View File

@@ -338,11 +338,11 @@ export namespace Components {
*/
"color"?: Color;
/**
* The number of breadcrumbs to show after the collapsed indicator. If this property exists `maxItems` will be ignored.
* The number of breadcrumbs to show after the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed.
*/
"itemsAfterCollapse": number;
/**
* The number of breadcrumbs to show before the collapsed indicator. If this property exists `maxItems` will be ignored.
* The number of breadcrumbs to show before the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed.
*/
"itemsBeforeCollapse": number;
/**
@@ -4228,11 +4228,11 @@ declare namespace LocalJSX {
*/
"color"?: Color;
/**
* The number of breadcrumbs to show after the collapsed indicator. If this property exists `maxItems` will be ignored.
* The number of breadcrumbs to show after the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed.
*/
"itemsAfterCollapse"?: number;
/**
* The number of breadcrumbs to show before the collapsed indicator. If this property exists `maxItems` will be ignored.
* The number of breadcrumbs to show before the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed.
*/
"itemsBeforeCollapse"?: number;
/**

6
core/src/components/breadcrumbs/breadcrumbs.tsx
View File

@@ -38,13 +38,15 @@ export class Breadcrumbs implements ComponentInterface {
/**
* The number of breadcrumbs to show before the collapsed indicator.
* If this property exists `maxItems` will be ignored.
* If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`,
* the breadcrumbs will not be collapsed.
*/
@Prop() itemsBeforeCollapse = 1;
/**
* The number of breadcrumbs to show after the collapsed indicator.
* If this property exists `maxItems` will be ignored.
* If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`,
* the breadcrumbs will not be collapsed.
*/
@Prop() itemsAfterCollapse = 1;