niuma-ui 2.1.5 → 2.1.6

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 CHANGED
@@ -6,6 +6,12 @@
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.1.6] - 2026-10-08
10
+
11
+ ### 修复
12
+
13
+ - `RsContextMenu`:页面上任意元素滚动都会关掉已打开的菜单。旁边面板(例如流式输出把消息列表往下滚)会把另一侧的右键清掉。现在只在触发器自己的滚动链上关闭:滚动的节点包含触发器,或触发器包含该节点。菜单内部滚动仍不关闭;点菜单外空白处仍关闭。
14
+
9
15
  ## [2.1.5] - 2026-09-28
10
16
 
11
17
  ### 变更
@@ -522,6 +522,10 @@ var RsContextMenu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
522
522
  if (!open.value) return;
523
523
  const target = event.target;
524
524
  if (target instanceof Node && isInsideMenu(target)) return;
525
+ const trigger = triggerEl.value;
526
+ if (trigger && target instanceof Node) {
527
+ if (!(target.contains(trigger) || trigger.contains(target))) return;
528
+ }
525
529
  restoreOnClose = false;
526
530
  setOpen(false);
527
531
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niuma-ui",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Vue 3 workbench design system — Rs* components, --rs-* tokens, optional Monaco / CodeMirror / xterm",