niuma-ui 1.1.9 → 1.1.11

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,19 @@
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.1.11] - 2026-08-29
10
+
11
+ ### 优化
12
+
13
+ - `RsTree`:`nodes` 变更不再 `deep` 监听,避免万级节点每次替换都整树深遍历;仍会清空拖拽态。
14
+
15
+ ## [1.1.10] - 2026-08-29
16
+
17
+ ### 修复
18
+
19
+ - `RsTree`:虚拟 / 限高视口套上 `rs-native-scrollbar`,滚动条颜色随 `--rs-*` 主题变化。
20
+ - `RsContextMenu`:菜单改为实色底,不再依赖 `backdrop-filter`。CEF 等环境 GPU 崩溃后右键菜单不再透出下层。
21
+
9
22
  ## [1.1.9] - 2026-08-28
10
23
 
11
24
  ### 修复
@@ -195,7 +208,9 @@
195
208
 
196
209
  - 1.0 之前的私有 tag(如 `v0.1.0`)仅作历史记录;新接入请依赖 `v1.0.0` 及之后版本。
197
210
 
198
- [Unreleased]: https://github.com/Blair-Shang/niuma-ui/compare/v1.1.9...HEAD
211
+ [Unreleased]: https://github.com/Blair-Shang/niuma-ui/compare/v1.1.11...HEAD
212
+ [1.1.11]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.11
213
+ [1.1.10]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.10
199
214
  [1.1.9]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.9
200
215
  [1.1.8]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.8
201
216
  [1.1.7]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "niuma-ui",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "description": "Vue 3 设计系统与 Rs* 组件库(--rs-* token)",
@@ -367,6 +367,7 @@ describe('RsTree', () => {
367
367
  props: { nodes: largeNodes, height: 200 },
368
368
  })
369
369
  expect(wrapper.classes()).toContain('rs-tree--virtual')
370
+ expect(wrapper.find('.rs-tree__viewport').classes()).toContain('rs-native-scrollbar')
370
371
  expect(wrapper.findAll('.rs-tree__item').length).toBeLessThan(largeNodes.length)
371
372
  })
372
373
 
@@ -104,9 +104,8 @@ function onSelect(item: RsContextMenuItem) {
104
104
  padding: 5px;
105
105
  border-radius: 10px;
106
106
  border: 0.5px solid var(--rs-ctx-border);
107
+ /* 实底。半透明 + backdrop-filter 在 CEF GPU 崩溃后会被丢掉,菜单会透出下层。 */
107
108
  background: var(--rs-ctx-bg);
108
- backdrop-filter: blur(40px) saturate(180%);
109
- -webkit-backdrop-filter: blur(40px) saturate(180%);
110
109
  box-shadow: var(--rs-ctx-shadow);
111
110
  outline: none;
112
111
  overflow-x: hidden;
@@ -252,7 +251,7 @@ function onSelect(item: RsContextMenuItem) {
252
251
  /* ── 主题变量:深色 ── */
253
252
  :root,
254
253
  [data-rs-theme='dark'] {
255
- --rs-ctx-bg: rgba(40, 40, 42, 0.85);
254
+ --rs-ctx-bg: #2c2c2e;
256
255
  --rs-ctx-border: rgba(255, 255, 255, 0.13);
257
256
  --rs-ctx-shadow:
258
257
  0 0 0 0.5px rgba(255, 255, 255, 0.08),
@@ -265,7 +264,7 @@ function onSelect(item: RsContextMenuItem) {
265
264
 
266
265
  /* ── 主题变量:亮色 ── */
267
266
  [data-rs-theme='light'] {
268
- --rs-ctx-bg: rgba(255, 255, 255, 0.88);
267
+ --rs-ctx-bg: #f5f5f7;
269
268
  --rs-ctx-border: rgba(0, 0, 0, 0.1);
270
269
  --rs-ctx-shadow:
271
270
  0 0 0 0.5px rgba(0, 0, 0, 0.06),
@@ -376,7 +376,6 @@ watch(
376
376
  dragKey.value = null
377
377
  dropTargetKey.value = null
378
378
  },
379
- { deep: true },
380
379
  )
381
380
 
382
381
  function setRowRef(key: string, element: Element | null): void {
@@ -706,7 +705,9 @@ defineExpose({
706
705
  v-else
707
706
  ref="viewportRef"
708
707
  class="rs-tree__viewport"
709
- :class="{ 'rs-tree__viewport--scroll': useVirtualScroll || height !== undefined }"
708
+ :class="{
709
+ 'rs-tree__viewport--scroll rs-native-scrollbar': useVirtualScroll || height !== undefined,
710
+ }"
710
711
  :style="viewportStyle"
711
712
  @scroll="onViewportScroll"
712
713
  >