From 8e118f36383f16de180ad69227ae525d3b77930e Mon Sep 17 00:00:00 2001 From: raoenhui Date: Mon, 9 Dec 2024 11:40:31 +0800 Subject: [PATCH 1/3] Update Contact.md --- Contact.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Contact.md b/Contact.md index ed898e50..9005f0f6 100644 --- a/Contact.md +++ b/Contact.md @@ -1,6 +1,7 @@ 欢迎小伙伴们加入micro-app微信群交流^ ^ -![image](https://github.com/user-attachments/assets/bc2ed2a1-a5a5-4ad7-8a2f-0f3a58507490) +![image](https://github.com/user-attachments/assets/284af1ee-832d-4c8a-8977-cba507fb9137) + From 3dc01105f3e8da5b1b83bddf5b38b684ec7f7d35 Mon Sep 17 00:00:00 2001 From: timhub66 Date: Sat, 14 Dec 2024 13:25:21 +0800 Subject: [PATCH 2/3] fix: fix 1466 --- src/sandbox/scoped_css.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sandbox/scoped_css.ts b/src/sandbox/scoped_css.ts index 6856ded0..923e7180 100644 --- a/src/sandbox/scoped_css.ts +++ b/src/sandbox/scoped_css.ts @@ -108,7 +108,7 @@ class CSSParser { * should be ==> micro-app[name=xxx] :where(.a, .b, .c) a {} */ const attributeValues: {[key: string]: any} = {} - const matchRes = m[0].replace(/\[([^=]+)=?(.+?)\]/g, (match, p1, p2) => { + const matchRes = m[0].replace(/\[([^\]=]+)(?:=([^\]]+))?\]/g, (match, p1, p2) => { const mock = `__mock_${p1}Value__` attributeValues[mock] = p2 return match.replace(p2, mock) @@ -116,7 +116,7 @@ class CSSParser { return matchRes.replace(/(^|,[\n\s]*)([^,]+)/g, (_, separator, selector) => { selector = trim(selector) - selector = selector.replace(/\[[^=]+=?(.+?)\]/g, (match:string, p1: string) => { + selector = selector.replace(/\[([^\]=]+)(?:=([^\]]+))?\]/g, (match:string, p1: string) => { if (attributeValues[p1]) { return match.replace(p1, attributeValues[p1]) } From 0803fa007dc0b4145ba285be96977cd3891e137e Mon Sep 17 00:00:00 2001 From: timhub66 Date: Sat, 14 Dec 2024 13:31:03 +0800 Subject: [PATCH 3/3] chore: release 1.0.0-rc.17 --- docs/zh-cn/changelog.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/zh-cn/changelog.md b/docs/zh-cn/changelog.md index b33c0979..1511f0ab 100644 --- a/docs/zh-cn/changelog.md +++ b/docs/zh-cn/changelog.md @@ -7,6 +7,11 @@ - 修订版本号:每周末会进行日常 bugfix 更新。(如果有紧急的 bugfix,则任何时候都可发布) --- +### 1.0.0-rc.17 + +`2024-12-14` +- **Bug Fix** + - 🐞 修复 子应用挂载到父应用中的时候,子应用写的样式全部都丢失了,因为vue语法中的style有一个scoped样式隔离,去掉就正常了,但是不加会影响全局,[issue 1466](https://github.com/micro-zoe/micro-app/issues/1466)。 ### 1.0.0-rc.16 `2024-12-09` diff --git a/package.json b/package.json index fc096769..215fc676 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@micro-zoe/micro-app", - "version": "1.0.0-rc.16", + "version": "1.0.0-rc.17", "description": "A lightweight, efficient and powerful micro front-end framework", "private": false, "main": "lib/index.min.js",