niuma-ui 1.1.9 → 1.1.10
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,13 @@
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.1.10] - 2026-08-29
|
|
10
|
+
|
|
11
|
+
### 修复
|
|
12
|
+
|
|
13
|
+
- `RsTree`:虚拟 / 限高视口套上 `rs-native-scrollbar`,滚动条颜色随 `--rs-*` 主题变化。
|
|
14
|
+
- `RsContextMenu`:菜单改为实色底,不再依赖 `backdrop-filter`。CEF 等环境 GPU 崩溃后右键菜单不再透出下层。
|
|
15
|
+
|
|
9
16
|
## [1.1.9] - 2026-08-28
|
|
10
17
|
|
|
11
18
|
### 修复
|
|
@@ -195,7 +202,8 @@
|
|
|
195
202
|
|
|
196
203
|
- 1.0 之前的私有 tag(如 `v0.1.0`)仅作历史记录;新接入请依赖 `v1.0.0` 及之后版本。
|
|
197
204
|
|
|
198
|
-
[Unreleased]: https://github.com/Blair-Shang/niuma-ui/compare/v1.1.
|
|
205
|
+
[Unreleased]: https://github.com/Blair-Shang/niuma-ui/compare/v1.1.10...HEAD
|
|
206
|
+
[1.1.10]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.10
|
|
199
207
|
[1.1.9]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.9
|
|
200
208
|
[1.1.8]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.8
|
|
201
209
|
[1.1.7]: https://github.com/Blair-Shang/niuma-ui/releases/tag/v1.1.7
|
package/package.json
CHANGED
|
@@ -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:
|
|
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:
|
|
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),
|
|
@@ -706,7 +706,9 @@ defineExpose({
|
|
|
706
706
|
v-else
|
|
707
707
|
ref="viewportRef"
|
|
708
708
|
class="rs-tree__viewport"
|
|
709
|
-
:class="{
|
|
709
|
+
:class="{
|
|
710
|
+
'rs-tree__viewport--scroll rs-native-scrollbar': useVirtualScroll || height !== undefined,
|
|
711
|
+
}"
|
|
710
712
|
:style="viewportStyle"
|
|
711
713
|
@scroll="onViewportScroll"
|
|
712
714
|
>
|