diff --git a/docs/components/bottom-popup.md b/docs/components/bottom-popup.md index 53b46df..19fe3cb 100644 --- a/docs/components/bottom-popup.md +++ b/docs/components/bottom-popup.md @@ -28,10 +28,14 @@ demo-preview=../demos/bottom-popup/basic.vue 按钮文案传空字符串即可隐藏对应按钮;也可以分别用 `leftButton` / `rightButton` 插槽完全接管,插槽会收到 `onClick`。 +通过 `left-button-disabled` 和 `right-button-disabled` 分别绑定默认按钮的禁用状态,默认均为 `false`。自定义插槽按钮的禁用状态由插槽自行控制。 + ## 高度 `height` 默认 `"auto"`,按内容撑开;传具体值(如 `"60vh"`)时内容区滚动、标题栏吸顶。 +使用 `max-height` 限制弹层最大高度,例如 `max-height="80vh"`;内容超过最大高度时,内容区滚动。数字值以 `px` 为单位。未设置时不限制最大高度。 + ## API diff --git a/src/components/bottom-popup/index.vue b/src/components/bottom-popup/index.vue index 62d5faf..990e33c 100644 --- a/src/components/bottom-popup/index.vue +++ b/src/components/bottom-popup/index.vue @@ -1,10 +1,10 @@