-
Couldn't load subscription status.
- Fork 286
feat(popup): 增加一些新属性,顺便解决了下input的只读无法点击、焦点等问题 #3342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bb3056c
e6e678f
6331fc3
94c5073
5dfd20f
b8c3fd2
3dbc7bc
bd12ee6
e47d0d4
e7a4b1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,19 +97,25 @@ import { Popup } from '@nutui/nutui-react-taro' | |
| | closeable | 是否显示关闭按钮 | `boolean` | `false` | | ||
| | closeIconPosition | 关闭按钮位置 | `top-left` \| `top-right` \| `bottom-left` \| `bottom-right` | `top-right` | | ||
| | closeIcon | 自定义 Icon | `ReactNode` | `close` | | ||
| | resizable | 上下滑动调整高度,当前只支持从底部弹出 | `boolean` | `false` | | ||
| | minHeight | 设置最小高度 | `string` | `26%` | | ||
| | left | 标题左侧部分 | `ReactNode` | `-` | | ||
| | title | 标题中间部分 | `ReactNode` | `-` | | ||
| | top | 頂部佔位 | `ReactNode` | `-` | | ||
| | description | 子标题/描述部分 | `ReactNode` | `-` | | ||
| | destroyOnClose | 组件不可见时,卸载内容 | `boolean` | `false` | | ||
| | round | 是否显示圆角 | `boolean` | `false` | | ||
| | portal | 指定节点挂载 | ``HTMLElement` \| `(() => HTMLElement)` \| null`` | `null` | | ||
| | afterShow | 继承于`Overlay`, 遮罩打开动画结束时触发 | `event: HTMLElement` | `-` | | ||
| | afterClose | 继承于`Overlay`, 遮罩关闭动画结束时触发 | `event: HTMLElement` | `-` | | ||
|
Comment on lines
+109
to
+110
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainafterShow/afterClose 的事件类型在 Taro 多端需再确认 如果在小程序端没有 HTMLElement 概念,建议注明“仅 H5 返回 HTMLElement”,或改为更通用的 可用脚本辅助核对 Overlay 的类型定义来源: 🏁 Script executed: #!/bin/bash
# 搜索 Overlay 的 afterShow/afterClose 类型定义
rg -nP "(afterShow|afterClose)\s*[:(]" -C2 src | sed -n '1,120p'Length of output: 1111 修正 afterShow/afterClose 参数类型 根据 afterShow: () => void
afterClose: () => void 文档中使用了 请在 • 文件: 原有表格行: -| afterShow | 继承于`Overlay`, 遮罩打开动画结束时触发 | `event: HTMLElement` | `-` |
-| afterClose | 继承于`Overlay`, 遮罩关闭动画结束时触发 | `event: HTMLElement` | `-` |建议修改为: | afterShow | 继承于`Overlay`,遮罩打开动画结束时触发 | `() => void` | `-` |
| afterClose | 继承于`Overlay`,遮罩关闭动画结束时触发 | `() => void` | `-` |若未来仅 H5 端支持获取 🤖 Prompt for AI Agents |
||
| | onClick | 点击弹框时触发 | `event: MouseEvent` | `-` | | ||
| | onCloseIconClick | 点击关闭图标时触发 | `event: MouseEvent` | `-` | | ||
| | onOpen | 打开弹框时触发 | `-` | `-` | | ||
| | onClose | 关闭弹框时触发 | `-` | `-` | | ||
| | afterShow | 继承于`Overlay`, 遮罩打开动画结束时触发 | `event: HTMLElement` | `-` | | ||
| | afterClose | 继承于`Overlay`, 遮罩关闭动画结束时触发 | `event: HTMLElement` | `-` | | ||
| | onOverlayClick | 点击遮罩触发 | `event: MouseEvent` | `-` | | ||
| | onTouchStart | 开始触碰时触发 | `(height: number, event: ITouchEvent) => void` | `-` | | ||
| | onTouchMove | 滑动时触发 | `(height: number, event: ITouchEvent, direction: 'up' \| 'down') => void` | `-` | | ||
| | onTouchEnd | 结束触碰时触发 | `(height: number, event: ITouchEvent) => void` | `-` | | ||
|
|
||
| ## 主题定制 | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
版本号提升到 3.0.18-cpp,请同步校验发版信息一致性
3.0.18-cpp,而 CHANGELOG 顶部条目为v3.0.18。请确认是否需要在 CHANGELOG 或发布标签中体现-cpp渠道,以避免包版本与发布记录不一致。可以用以下命令快速检查并统一:
🏁 Script executed:
Length of output: 56
请同步
package.json与CHANGELOG.md的版本号后缀当前存在不一致:
"version": "3.0.18-cpp"# v3.0.18请根据发布渠道需求,二选一并保持一致:
-cpp渠道后缀:# v3.0.18修改为# v3.0.18-cpp"3.0.18"🤖 Prompt for AI Agents