diff --git a/docs/components/menu.md b/docs/components/menu.md index bad0011360..c7528249b1 100644 --- a/docs/components/menu.md +++ b/docs/components/menu.md @@ -72,12 +72,12 @@ function getMenuItems(count) { ### width -You can pass a `width` string for menu. By default the `width` is `284px`. +You can pass a `width` string for menu. Currently we support numbers (will be converted to `px`), `auto`, and percentages for width. By default the `width` is `284px`. ```vue - + ``` ## KMenuItem @@ -97,11 +97,11 @@ You can pass a `width` string for menu. By default the `width` is `284px`. ```vue ``` @@ -111,7 +111,7 @@ You can pass a `width` string for menu. By default the `width` is `284px`. - `itemBody` - the body content for the menu item ```vue - + @@ -177,9 +177,9 @@ This should be used instead of the `items` property. - - diff --git a/docs/components/popover.md b/docs/components/popover.md index 4e99275d27..331be7bcd3 100644 --- a/docs/components/popover.md +++ b/docs/components/popover.md @@ -285,7 +285,7 @@ Use fixed positioning of the popover to avoid content being clipped by parental ### width -The width of the popover body - by default it is 200px. +The width of the popover body - by default it is `200px`. Currently we support numbers (will be converted to `px`), `auto`, and percentages for width. button diff --git a/docs/components/select.md b/docs/components/select.md index 132923169e..11271f917d 100644 --- a/docs/components/select.md +++ b/docs/components/select.md @@ -255,7 +255,11 @@ export default { ### width You can pass a `width` string for dropdown. By default the `width` is `200px`. This is the width -of the input, dropdown, and selected item. +of the input, dropdown, and selected item. Currently we support numbers (will be converted to `px`), `auto`, and percentages for width. + +:::tip Note +Because we are controlling the widths of multiple elements, we recommend using this prop to control the width instead of explicitly adding classes or styles to the `KSelect` component. +:::
+ + +
+ +```html + + + +``` + ### filterFunc Use this prop to override the default filter function if you want to do something like filter on an attribute other than `label`. Your filter function @@ -347,7 +402,7 @@ You can pass any input attribute and it will get properly bound to the element. You can use the `item-template` slot to customize the look and feel of your items. Use slots to gain access to the `item` data.
- +