@befe/brick-comp-popper 0.2.96 → 0.2.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,68 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 0.2.98 (2026-06-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* peerDependencies versions ([dfffa0b](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/dfffa0b504b8a1583373bd5e13f7185d527f7e4c))
|
|
12
|
+
* peerDependencies versions ([66c1e4f](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/66c1e4fd695a2d00d4ee7993fa0c39acfa3d995c))
|
|
13
|
+
* **popper:** baidu-be-fe-brick-36 [Issue] [Popper] trigger type 为 `click` 时,内嵌 MenuPopper 选项无法触达 ([81b2886](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/81b28860f608423d8cf39d923477fc6c802eeb29))
|
|
14
|
+
* **popper:** baidu-be-fe-brick-38 [Issue] [Popper] popper 在 target 上方时,位置不更新 ([5b4c203](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/5b4c203bf1ff00e835184c764c7a96d0e00a279a))
|
|
15
|
+
* **popper:** fix importing mistake ([1fb48fd](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/1fb48fd2601b064542d742f86cd06e2cdbc8e7c9))
|
|
16
|
+
* **popper:** icon模式下,设置箭头的偏移量需要调整一下popper的偏移量 ([83eecf9](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/83eecf9d15f55f5125483109ec82a41ca3e5e95c))
|
|
17
|
+
* **popper:** import 依赖组件的样式 ([4c55dc1](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/4c55dc157fe84ee356675351bd4a93ae05b8bfd9))
|
|
18
|
+
* **popper:** remove incorrect importing ([25633dc](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/25633dcd394d622337f65684a3ec8350d4c3b88d))
|
|
19
|
+
* **popper:** 修复 “在 popper 尺寸变化时进行 `updatePopperInstance()`” 的逻辑 ([889c861](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/889c861f0cea365928aa5a6d945f980d636800bf))
|
|
20
|
+
* **popper:** 修复 “在 popper 尺寸变化时进行 `updatePopperInstance()`” 的逻辑 ([99dd219](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/99dd21918c9e519840a6d462029c15342db2bf1d))
|
|
21
|
+
* **popper:** 修复 react 重复引用问题 ([b07b800](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/b07b8002e1b77d4d3a9c543e949ff795a1b0f2ac))
|
|
22
|
+
* **popper:** 修复引用失误 ([7fd1825](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/7fd1825e46539b8dfb7284db843e01f447986c29))
|
|
23
|
+
* **popper:** 修正 `componentDidUpdate()` 中 `shouldReCreate` 的判断,加入 “visible 但 popperInstance 不存在时” case ([14a25f7](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/14a25f75fd3773712f574cd9a7931c5927f32ea1))
|
|
24
|
+
* **popper:** 修正 `matchMinWidthToTarget` 为 true 时的宽度修正在 placement {bottom/top}-end 情况下对齐位置不当的问题 ([31bcc4b](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/31bcc4b5aa6994d6a539a279fd358dbb6c9af68e))
|
|
25
|
+
* **popper:** 修正 demo ([20d94f6](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/20d94f68becf703f17900ff128953cb440f2ed50))
|
|
26
|
+
* **popper:** 修正 demo 样式 ([d2db53a](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/d2db53a00734b256d95bb0d60d786307abaa1c0c))
|
|
27
|
+
* **popper:** 修正 popper styles 得取值方式,避免忽略计算结果为 'auto' 的情况 ([e883f29](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/e883f290b3ac080e77d96023052aaa9b5eb0971d))
|
|
28
|
+
* **popper:** 修正 re-export 写法,以规避产品包使用 webpack 引入 对 undefined interface exporting 的 warning ([9ea3d41](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/9ea3d4137ee3da917c4244a7a4fadefa4a9d4b01))
|
|
29
|
+
* **popper:** 修正 Trigger 的 `setVisible()` 方法中 beforeChange -> change 的处理逻辑,使同步 beforeChange 情况保持同步的执行顺序 ([56d5f91](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/56d5f91e77318e1c5d2a57c856069ea3e29823a8))
|
|
30
|
+
* **popper:** 修正箭头样式 ([e536830](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/e5368306e9a7556fc5bd4dd603686d7c4bb72885))
|
|
31
|
+
* **popper:** 加入针对 target 大小变化情况的 re-create / update 处理 ([ceba655](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/ceba6557f4fa22189994f2f8f04aaa93c2929d7d))
|
|
32
|
+
* **popper:** 去掉 popper updateState 之后的自动修正,因为在某些情况下因浏览器前后两次绘制的细微差别会导致无限循环的 update,如 chrome 88 缩小为 80% 情况下 ([640a511](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/640a51110c2565f2fee67836f29de8b0496c67a1))
|
|
33
|
+
* **popper:** 在 popper 尺寸变化时进行 `updatePopperInstance()` ([f012171](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/f01217165134198f13008c6f1c445db5f8ade0f8))
|
|
34
|
+
* **popper:** 如果前一次因无 children 不渲染 `brick-popper-wrap`,则需进行 `reCreatePopperInstance()` ([669454f](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/669454f5629c125cbf352695d053427a5590ddd9))
|
|
35
|
+
* **popper:** 将 PopperTigger 的 `setScrollElement()` 操作移到 `componentDidUpdate()`,以保证 `nodePopper` 已完成 ref 取值 ([399a30b](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/399a30bcd14c2c984b7f1bcfb5c0fc51e60fbd8e))
|
|
36
|
+
* **popper:** 通过关掉 popper.js 的 `computeStyle.gpuAcceleration` 避免 firefox 中 popper 拖拽导致异常选中层叠下层元素的问题 ([e52cf5f](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/e52cf5fb71b144aff0a0cba10310afe42d3b3dd4))
|
|
37
|
+
* **table:** 尝试补偿单元格中 switch 垂直位置样式 ([bb2e780](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/bb2e780e90e2b878c413fbe82a47cb8a73887c07))
|
|
38
|
+
* 修复各组件的 index.scss 中对依赖组件样式的引用,应引用依赖 index.scss ([b7c32eb](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/b7c32eb53b575d6cbd92cf5b01e8e1cbd44ab2ba))
|
|
39
|
+
* 修正各组件 peerDependecy `mobx` 的版本号 ([321ed47](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/321ed4704f2bd53449c6c71f1a340db427d4c656))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* **demo:** 加入 demo-case 的 desc 分离为同名 md file 的写法支持,以提供针对较复杂的 case desc 的书写便利 ([fee4dca](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/fee4dcac1811ecf76a99e44a9dddcb41b3df1fb4))
|
|
45
|
+
* **popper:** baidu-be-fe-brick-37 [Issue] [Popper] 提供 “略过 click outside 的自定义方式 ” ([a471d6d](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/a471d6d362c3af1c425047ede59cb657c43dfded))
|
|
46
|
+
* **popper:** Tigger 加入对 `preventOverflowBoundary` 缺省处理:type 为 hover 或 被 table 元素包裹时,取值为 `'viewport'` ([c0fe888](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/c0fe8883bc079b0d7b25e85e1e0a261d0eb60af2))
|
|
47
|
+
* **popper:** trigger 支持 props.popperWrapRef ([7490a2d](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/7490a2d929e42d8884e6c0b7b971ef55605c4b0b))
|
|
48
|
+
* **popper:** 加入 `hideByChid` 能力 ([8210636](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/82106364011569b5e923b361120f93d82e252ea2))
|
|
49
|
+
* **popper:** 加入 `props.arrowOffset` 支持箭头不正 target 中心情况的自动化、定制化偏移处理 ([597562e](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/597562e4c030cc2c18f2afbd21affc1bfdf66221))
|
|
50
|
+
* **popper:** 加入 delay 触发功能 ([e57e8a9](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/e57e8a9d3e638fce33f37b5ac8d2855e1de6a95a))
|
|
51
|
+
* **popper:** 当 popper 处于显示状态,而 target 尺寸/位置有变化时,应更新 popper 的位置 ([9282c5f](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/9282c5feeba9a84b3f47d814ba792c5c1a3dc9bf))
|
|
52
|
+
* **popper:** 提供 `props.preventOverflowBoundary` 定制 popper 放置边界 ([5f551cf](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/5f551cf8b6e40ec86f2ab5f24a59d3eb45d9c3de))
|
|
53
|
+
* **popper:** 提供 popperWrapDistance 以定制 popper 与 target 的距离 ([707f0fd](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/707f0fdd5d4068d2b78c13f6e82aa060bfaee5ca))
|
|
54
|
+
* **select:** baidu-be-fe-brick-15 [Issue] [Select] 加入 `props.preventOverflowBoundary` 以支持指定下拉 MenuPopper 的 `preventOverflowBoundary`, https://console.cloud.baidu-int.com/devops/icafe/issue/baidu-be-fe-brick-15/show ([ab3c7ef](https://icode.baidu.com/repos/baidu/be-fe/brick/commits/ab3c7ef87504f6b30a910edb9cfc245b19a77897))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
## [0.2.97](https://icode.baidu.com:8235/baidu/be-fe/brick//%40befe%2Fbrick-comp-popper%400.2.96...%40befe%2Fbrick-comp-popper%400.2.97) (2026-05-25)
|
|
61
|
+
|
|
62
|
+
**Note:** Version bump only for package @befe/brick-comp-popper
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
6
68
|
## [0.2.96](https://icode.baidu.com:8235/baidu/be-fe/brick//%40befe%2Fbrick-comp-popper%400.2.95...%40befe%2Fbrick-comp-popper%400.2.96) (2026-05-22)
|
|
7
69
|
|
|
8
70
|
**Note:** Version bump only for package @befe/brick-comp-popper
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@befe/brick-comp-popper",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.98",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "ssh://git@icode.baidu.com:8235/baidu/be-fe/brick",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"author": "wujun07",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@befe/brick-comp-popup": "^0.2.
|
|
29
|
-
"@befe/brick-core": "^0.2.
|
|
30
|
-
"@befe/brick-style": "^0.2.
|
|
31
|
-
"@befe/brick-utils": "^0.2.
|
|
28
|
+
"@befe/brick-comp-popup": "^0.2.94",
|
|
29
|
+
"@befe/brick-core": "^0.2.53",
|
|
30
|
+
"@befe/brick-style": "^0.2.65",
|
|
31
|
+
"@befe/brick-utils": "^0.2.25",
|
|
32
32
|
"@popperjs/core": "^2.11.6"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"react": "^16.9.0 || ^17.0.0",
|
|
38
38
|
"react-dom": "^16.9.0 || ^17.0.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "370a467c43e73fd87ab22bfebe9d0953775a1d17"
|
|
41
41
|
}
|