feat(Sku): add disable-soldout-sku prop (#7759)

* feat(Sku): 售罄sku支持点击

* feat(Sku): add disable-soldout-sku prop

Co-authored-by: zhanglin_0715 <zhanglin_0715@youzan.com>
This commit is contained in:
木槿花开
2020-12-17 14:27:32 +08:00
committed by GitHub
co-authored by zhanglin_0715
parent 4af658e67a
commit 7a6e78fbf9
12 changed files with 105 additions and 90 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const IMPORT_STYLE_RE = /import\s+?(?:(?:".*?")|(?:'.*?'))[\s]*?(?:;|$|)/g;
// "import 'a.less';" => "import 'a.css';"
export function replaceCssImportExt(code: string) {
return code.replace(IMPORT_STYLE_RE, str =>
return code.replace(IMPORT_STYLE_RE, (str) =>
str.replace(`.${CSS_LANG}`, '.css')
);
}