Skip to content

Commit 38ac150

Browse files
committed
Merge branch 'dev'
2 parents 10a217a + 0803fa0 commit 38ac150

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Contact.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
欢迎小伙伴们加入micro-app微信群交流^ ^
3-
![image](https://github.com/user-attachments/assets/bc2ed2a1-a5a5-4ad7-8a2f-0f3a58507490)
3+
![image](https://github.com/user-attachments/assets/284af1ee-832d-4c8a-8977-cba507fb9137)
4+
45

56

67

docs/zh-cn/changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
- 修订版本号:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布)
88

99
---
10+
### 1.0.0-rc.17
11+
12+
`2024-12-14`
13+
- **Bug Fix**
14+
- 🐞 修复 子应用挂载到父应用中的时候,子应用写的样式全部都丢失了,因为vue语法中的style有一个scoped样式隔离,去掉就正常了,但是不加会影响全局,[issue 1466](https://github.com/micro-zoe/micro-app/issues/1466)
1015
### 1.0.0-rc.16
1116

1217
`2024-12-09`

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@micro-zoe/micro-app",
3-
"version": "1.0.0-rc.16",
3+
"version": "1.0.0-rc.17",
44
"description": "A lightweight, efficient and powerful micro front-end framework",
55
"private": false,
66
"main": "lib/index.min.js",

src/sandbox/scoped_css.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ class CSSParser {
108108
* should be ==> micro-app[name=xxx] :where(.a, .b, .c) a {}
109109
*/
110110
const attributeValues: {[key: string]: any} = {}
111-
const matchRes = m[0].replace(/\[([^=]+)=?(.+?)\]/g, (match, p1, p2) => {
111+
const matchRes = m[0].replace(/\[([^\]=]+)(?:=([^\]]+))?\]/g, (match, p1, p2) => {
112112
const mock = `__mock_${p1}Value__`
113113
attributeValues[mock] = p2
114114
return match.replace(p2, mock)
115115
})
116116

117117
return matchRes.replace(/(^|,[\n\s]*)([^,]+)/g, (_, separator, selector) => {
118118
selector = trim(selector)
119-
selector = selector.replace(/\[[^=]+=?(.+?)\]/g, (match:string, p1: string) => {
119+
selector = selector.replace(/\[([^\]=]+)(?:=([^\]]+))?\]/g, (match:string, p1: string) => {
120120
if (attributeValues[p1]) {
121121
return match.replace(p1, attributeValues[p1])
122122
}

0 commit comments

Comments
 (0)