@steedos/standard-ui 3.0.0-beta.61 → 3.0.0-beta.63

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.
@@ -0,0 +1,21 @@
1
+ // 创建一个 MutationObserver 实例
2
+ const observer = new MutationObserver((mutationsList) => {
3
+ for (const mutation of mutationsList) {
4
+ if (mutation.type === 'childList') {
5
+ mutation.addedNodes.forEach(node => {
6
+ if (node.nodeType === 1) {
7
+ if (node.matches('[data-radix-popper-content-wrapper]')) {
8
+ if (node.getAttribute('role') !== 'dialog') {
9
+ node.setAttribute('role', 'dialog');
10
+ }
11
+
12
+ }
13
+ }
14
+ });
15
+ }
16
+ }
17
+ });
18
+
19
+ const config = { childList: true, subtree: false };
20
+
21
+ observer.observe(document.body, config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "3.0.0-beta.61",
3
+ "version": "3.0.0-beta.63",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,7 +12,7 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "ab85c4012dce0268599a44ab5518e5848ac213a3",
15
+ "gitHead": "e30db027c1cf8d4b9d5bd04192d8c5705a312bea",
16
16
  "dependencies": {
17
17
  "clone": "^2.1.2"
18
18
  }