Skip to content

Commit

Permalink
chore: 优化组件示例和文档
Browse files Browse the repository at this point in the history
  • Loading branch information
zyprepare committed Nov 11, 2024
1 parent 317cb1e commit f26a968
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions packages/ui/pagination/hi-docs.config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@
## Props

<!-- Inject Props -->

### PopperOverlayProps

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| -------------- | ---------------------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| className | 弹层类名 | string | - | - |
| matchWidth | 自动计算匹配吸附元素的宽度与其一致 | boolean | true \| false | true |
| placement | 相对吸附元素的位置 | PopperPlacementEnum | "top" \| "bottom" \| "right" \| "left" \| "top-start" \| "top-end" \| "bottom-start" \| "bottom-end" \| "right-start" \| "right-end" \| "left-start" \| "left-end" \| "auto" \| "auto-start" \| "auto-end" | "bottom-start" |
| container | 指定 portal 的容器 | HTMLElement | - | - |
| disabledPortal | 禁用 portal | boolean | true \| false | false |
| arrow | 是否展示箭头 | boolean | true \| false | false |
4 changes: 2 additions & 2 deletions packages/ui/table/stories/scrollbar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ export const Scrollbar = () => {
zIndex: 9,
settings: {
// 垂直滑动时,让横向滚动条一直显示在容器底部
scrollbarXStickToBottom: true,
// scrollbarXStickToBottom: true,
// 横向滚动条距离底部的距离
scrollbarXStickToBottomGap: 20,
// scrollbarXStickToBottomGap: 20,
},
}
}
Expand Down

0 comments on commit f26a968

Please sign in to comment.