From a2b16156bd7d663dc8d515996c6842f250704c35 Mon Sep 17 00:00:00 2001 From: xuan Date: Mon, 19 Dec 2022 11:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test(svg):=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0svg=E7=94=9F=E6=88=90iconfont=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 23 ++-- iconfont.json | 11 +- package.json | 2 +- src/components/iconfont/iconfont.tsx | 169 ++++++++++++++------------- src/styles/svg/wpassword.svg | 12 ++ yarn.lock | 95 ++++++++++++--- 6 files changed, 197 insertions(+), 115 deletions(-) create mode 100644 src/styles/svg/wpassword.svg diff --git a/.vscode/settings.json b/.vscode/settings.json index a0b07a8..3fe440c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,17 +1,6 @@ { "editor.defaultFormatter": "dbaeumer.vscode-eslint", - "eslint.validate": [ - "javascript", - "typescript", - "javascriptreact", - "typescriptreact", - "vue", - "html", - "markdown", - "json", - "jsonc", - "json5" - ], + "eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact", "vue", "html", "markdown", "json", "jsonc", "json5"], // Set the default "editor.formatOnSave": true, // Enable per-language @@ -35,8 +24,16 @@ "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode" }, - "[scss]": { + "[json]": { "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[jsonc]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[scss]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" + } } diff --git a/iconfont.json b/iconfont.json index cb30488..48be253 100644 --- a/iconfont.json +++ b/iconfont.json @@ -1,7 +1,8 @@ { - "symbol_url": "http://at.alicdn.com/t/c/font_3619513_04u5gsao0let.js", - "save_dir": "./src/components/iconfont", - "trim_icon_prefix": "", - "default_icon_size": 36, - "design_width": 750 + "symbol_url": "http://at.alicdn.com/t/c/font_3619513_04u5gsao0let.js", + "parse_local_svg": true, + "local_svg_dir": "./src/styles/svg", + "save_dir": "./src/components/iconfont", + "trim_icon_prefix": "", + "default_icon_size": 36 } diff --git a/package.json b/package.json index a0b7ffa..33a6483 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "prettier": "^2.8.0", "react-refresh": "0.14.0", "stylelint": "14.15.0", - "taro-iconfont-svg": "^1.0.19", + "taro-iconfont-svg": "^1.1.1", "terser-webpack-plugin": "^5.3.6", "typescript": "^4.9.3", "webpack": "^5.75.0" diff --git a/src/components/iconfont/iconfont.tsx b/src/components/iconfont/iconfont.tsx index 37cbfe8..80e8921 100644 --- a/src/components/iconfont/iconfont.tsx +++ b/src/components/iconfont/iconfont.tsx @@ -8,7 +8,7 @@ const SystemWidth = Taro.getSystemInfoSync().windowWidth const quot = '"' function hex2rgb(hex) { - var rgb = []; + const rgb: number[] = []; hex = hex.substr(1); @@ -24,7 +24,7 @@ function hex2rgb(hex) { return "rgb(" + rgb.join(",") + ")"; } -export type IconNames = 'icon-huozhuziti' | 'icon-a-0tianzhangqi' | 'icon-shangchuanwenli' | 'icon-gouwuche' | 'icon-zixun' | 'icon-dianhua' | 'icon-peibu' | 'icon-zhankai1' | 'icon-shouqi1' | 'icon-shouhou1' | 'icon-cangku1' | 'icon-saoma' | 'icon-dizhi1' | 'icon-huodaofukuan' | 'icon-yufukuan1' | 'icon-yue' | 'icon-zidingyi' | 'icon-jinetiaozheng' | 'icon-tuikuan1' | 'icon-zhankai' | 'icon-shouqi' | 'icon-lujing' | 'icon-jizhumima' | 'icon-a-jizhumima' | 'icon-weixindenglu' | 'icon-kehuxinxi' | 'icon-yewuyuanqizi' | 'icon-chakanquanbukehu' | 'icon-biyan' | 'icon-bianji' | 'icon-daikuan' | 'icon-cangku' | 'icon-guanlidingdan' | 'icon-mima' | 'icon-guanbi' | 'icon-jianshao' | 'icon-dingwei' | 'icon-saomiao' | 'icon-peihuo' | 'icon-shaixuan' | 'icon-paiming' | 'icon-shanchusousuoxinxi' | 'icon-shijian' | 'icon-sousuo' | 'icon-shouhou' | 'icon-sousuofanhui' | 'icon-sousuoshanchu' | 'icon-tuikuan' | 'icon-tishi' | 'icon-xianxiahuizong' | 'icon-xinzeng' | 'icon-yonghuming' | 'icon-yanjing' | 'icon-yufukuan' | 'icon-wodekefu' | 'icon-dizhi' | 'icon-shouhouzhongxin' | 'icon-wodeshoucang' | 'icon-shoukuanliebiao' | 'icon-madanguanli' | 'icon-qusechazhao' | 'icon-pandiansaoma' | 'icon-yaoqingma' | 'icon-duizhang' | 'icon-tihuoliebiao' | 'icon-yangpinduibi' | 'icon-yansequyang' | 'icon-fahuoliebiao' | 'icon-yuncangkucun' | 'icon-xiaoshou' | 'icon-qianzhicangkucun' | 'icon-lingquseka' | 'icon-gouwu1' | 'icon-dingdan1' | 'icon-gerenzhongxin1' | 'icon-shouye1' | 'icon-gerenzhongxin' | 'icon-dingdan' | 'icon-shouye' | 'icon-gouwu'; +export type IconNames = 'icon-huozhuziti' | 'icon-a-0tianzhangqi' | 'icon-shangchuanwenli' | 'icon-gouwuche' | 'icon-zixun' | 'icon-dianhua' | 'icon-peibu' | 'icon-zhankai1' | 'icon-shouqi1' | 'icon-shouhou1' | 'icon-cangku1' | 'icon-saoma' | 'icon-dizhi1' | 'icon-huodaofukuan' | 'icon-yufukuan1' | 'icon-yue' | 'icon-zidingyi' | 'icon-jinetiaozheng' | 'icon-tuikuan1' | 'icon-zhankai' | 'icon-shouqi' | 'icon-lujing' | 'icon-jizhumima' | 'icon-a-jizhumima' | 'icon-weixindenglu' | 'icon-kehuxinxi' | 'icon-yewuyuanqizi' | 'icon-chakanquanbukehu' | 'icon-biyan' | 'icon-bianji' | 'icon-daikuan' | 'icon-cangku' | 'icon-guanlidingdan' | 'icon-mima' | 'icon-guanbi' | 'icon-jianshao' | 'icon-dingwei' | 'icon-saomiao' | 'icon-peihuo' | 'icon-shaixuan' | 'icon-paiming' | 'icon-shanchusousuoxinxi' | 'icon-shijian' | 'icon-sousuo' | 'icon-shouhou' | 'icon-sousuofanhui' | 'icon-sousuoshanchu' | 'icon-tuikuan' | 'icon-tishi' | 'icon-xianxiahuizong' | 'icon-xinzeng' | 'icon-yonghuming' | 'icon-yanjing' | 'icon-yufukuan' | 'icon-wodekefu' | 'icon-dizhi' | 'icon-shouhouzhongxin' | 'icon-wodeshoucang' | 'icon-shoukuanliebiao' | 'icon-madanguanli' | 'icon-qusechazhao' | 'icon-pandiansaoma' | 'icon-yaoqingma' | 'icon-duizhang' | 'icon-tihuoliebiao' | 'icon-yangpinduibi' | 'icon-yansequyang' | 'icon-fahuoliebiao' | 'icon-yuncangkucun' | 'icon-xiaoshou' | 'icon-qianzhicangkucun' | 'icon-lingquseka' | 'icon-gouwu1' | 'icon-dingdan1' | 'icon-gerenzhongxin1' | 'icon-shouye1' | 'icon-gerenzhongxin' | 'icon-dingdan' | 'icon-shouye' | 'icon-gouwu' | 'icon-wpassword'; type PropsType = { name: IconNames; @@ -66,6 +66,8 @@ const IconFont:FC = ({ // 也可以使用 if (name === 'xxx') { return } 来渲染,但是测试发现在ios下会有问题,报错 Maximum call stack啥的。下面这个写法没问题 return ( + {/* icon-colorCard 本地svg */ } + {/* { name === 'icon-colorCard' && () } */} {/* icon-alipay */} {/* {name === "icon-alipay" && ( = ({ )} */} {/* icon-huozhuziti */} - { name === 'icon-huozhuziti' && () } + { name === 'icon-huozhuziti' && () } {/* icon-a-0tianzhangqi */} - { name === 'icon-a-0tianzhangqi' && () } + { name === 'icon-a-0tianzhangqi' && () } {/* icon-shangchuanwenli */} - { name === 'icon-shangchuanwenli' && () } + { name === 'icon-shangchuanwenli' && () } {/* icon-gouwuche */} - { name === 'icon-gouwuche' && () } + { name === 'icon-gouwuche' && () } {/* icon-zixun */} - { name === 'icon-zixun' && () } + { name === 'icon-zixun' && () } {/* icon-dianhua */} - { name === 'icon-dianhua' && () } + { name === 'icon-dianhua' && () } {/* icon-peibu */} - { name === 'icon-peibu' && () } + { name === 'icon-peibu' && () } {/* icon-zhankai1 */} - { name === 'icon-zhankai1' && () } + { name === 'icon-zhankai1' && () } {/* icon-shouqi1 */} - { name === 'icon-shouqi1' && () } + { name === 'icon-shouqi1' && () } {/* icon-shouhou1 */} - { name === 'icon-shouhou1' && () } + { name === 'icon-shouhou1' && () } {/* icon-cangku1 */} - { name === 'icon-cangku1' && () } + { name === 'icon-cangku1' && () } {/* icon-saoma */} - { name === 'icon-saoma' && () } + { name === 'icon-saoma' && () } {/* icon-dizhi1 */} - { name === 'icon-dizhi1' && () } + { name === 'icon-dizhi1' && () } {/* icon-huodaofukuan */} - { name === 'icon-huodaofukuan' && () } + { name === 'icon-huodaofukuan' && () } {/* icon-yufukuan1 */} - { name === 'icon-yufukuan1' && () } + { name === 'icon-yufukuan1' && () } {/* icon-yue */} - { name === 'icon-yue' && () } + { name === 'icon-yue' && () } {/* icon-zidingyi */} - { name === 'icon-zidingyi' && () } + { name === 'icon-zidingyi' && () } {/* icon-jinetiaozheng */} - { name === 'icon-jinetiaozheng' && () } + { name === 'icon-jinetiaozheng' && () } {/* icon-tuikuan1 */} - { name === 'icon-tuikuan1' && () } + { name === 'icon-tuikuan1' && () } {/* icon-zhankai */} - { name === 'icon-zhankai' && () } + { name === 'icon-zhankai' && () } {/* icon-shouqi */} - { name === 'icon-shouqi' && () } + { name === 'icon-shouqi' && () } {/* icon-lujing */} - { name === 'icon-lujing' && () } + { name === 'icon-lujing' && () } {/* icon-jizhumima */} - { name === 'icon-jizhumima' && () } + { name === 'icon-jizhumima' && () } {/* icon-a-jizhumima */} - { name === 'icon-a-jizhumima' && () } + { name === 'icon-a-jizhumima' && () } {/* icon-weixindenglu */} - { name === 'icon-weixindenglu' && () } + { name === 'icon-weixindenglu' && () } {/* icon-kehuxinxi */} - { name === 'icon-kehuxinxi' && () } + { name === 'icon-kehuxinxi' && () } {/* icon-yewuyuanqizi */} - { name === 'icon-yewuyuanqizi' && () } + { name === 'icon-yewuyuanqizi' && () } {/* icon-chakanquanbukehu */} - { name === 'icon-chakanquanbukehu' && () } + { name === 'icon-chakanquanbukehu' && () } {/* icon-biyan */} - { name === 'icon-biyan' && () } + { name === 'icon-biyan' && () } {/* icon-bianji */} - { name === 'icon-bianji' && () } + { name === 'icon-bianji' && () } {/* icon-daikuan */} - { name === 'icon-daikuan' && () } + { name === 'icon-daikuan' && () } {/* icon-cangku */} - { name === 'icon-cangku' && () } + { name === 'icon-cangku' && () } {/* icon-guanlidingdan */} - { name === 'icon-guanlidingdan' && () } + { name === 'icon-guanlidingdan' && () } {/* icon-mima */} - { name === 'icon-mima' && () } + { name === 'icon-mima' && () } {/* icon-guanbi */} - { name === 'icon-guanbi' && () } + { name === 'icon-guanbi' && () } {/* icon-jianshao */} - { name === 'icon-jianshao' && () } + { name === 'icon-jianshao' && () } {/* icon-dingwei */} - { name === 'icon-dingwei' && () } + { name === 'icon-dingwei' && () } {/* icon-saomiao */} - { name === 'icon-saomiao' && () } + { name === 'icon-saomiao' && () } {/* icon-peihuo */} - { name === 'icon-peihuo' && () } + { name === 'icon-peihuo' && () } {/* icon-shaixuan */} - { name === 'icon-shaixuan' && () } + { name === 'icon-shaixuan' && () } {/* icon-paiming */} - { name === 'icon-paiming' && () } + { name === 'icon-paiming' && () } {/* icon-shanchusousuoxinxi */} - { name === 'icon-shanchusousuoxinxi' && () } + { name === 'icon-shanchusousuoxinxi' && () } {/* icon-shijian */} - { name === 'icon-shijian' && () } + { name === 'icon-shijian' && () } {/* icon-sousuo */} - { name === 'icon-sousuo' && () } + { name === 'icon-sousuo' && () } {/* icon-shouhou */} - { name === 'icon-shouhou' && () } + { name === 'icon-shouhou' && () } {/* icon-sousuofanhui */} - { name === 'icon-sousuofanhui' && () } + { name === 'icon-sousuofanhui' && () } {/* icon-sousuoshanchu */} - { name === 'icon-sousuoshanchu' && () } + { name === 'icon-sousuoshanchu' && () } {/* icon-tuikuan */} - { name === 'icon-tuikuan' && () } + { name === 'icon-tuikuan' && () } {/* icon-tishi */} - { name === 'icon-tishi' && () } + { name === 'icon-tishi' && () } {/* icon-xianxiahuizong */} - { name === 'icon-xianxiahuizong' && () } + { name === 'icon-xianxiahuizong' && () } {/* icon-xinzeng */} - { name === 'icon-xinzeng' && () } + { name === 'icon-xinzeng' && () } {/* icon-yonghuming */} - { name === 'icon-yonghuming' && () } + { name === 'icon-yonghuming' && () } {/* icon-yanjing */} - { name === 'icon-yanjing' && () } + { name === 'icon-yanjing' && () } {/* icon-yufukuan */} - { name === 'icon-yufukuan' && () } + { name === 'icon-yufukuan' && () } {/* icon-wodekefu */} - { name === 'icon-wodekefu' && () } + { name === 'icon-wodekefu' && () } {/* icon-dizhi */} - { name === 'icon-dizhi' && () } + { name === 'icon-dizhi' && () } {/* icon-shouhouzhongxin */} - { name === 'icon-shouhouzhongxin' && () } + { name === 'icon-shouhouzhongxin' && () } {/* icon-wodeshoucang */} - { name === 'icon-wodeshoucang' && () } + { name === 'icon-wodeshoucang' && () } {/* icon-shoukuanliebiao */} - { name === 'icon-shoukuanliebiao' && () } + { name === 'icon-shoukuanliebiao' && () } {/* icon-madanguanli */} - { name === 'icon-madanguanli' && () } + { name === 'icon-madanguanli' && () } {/* icon-qusechazhao */} - { name === 'icon-qusechazhao' && () } + { name === 'icon-qusechazhao' && () } {/* icon-pandiansaoma */} - { name === 'icon-pandiansaoma' && () } + { name === 'icon-pandiansaoma' && () } {/* icon-yaoqingma */} - { name === 'icon-yaoqingma' && () } + { name === 'icon-yaoqingma' && () } {/* icon-duizhang */} - { name === 'icon-duizhang' && () } + { name === 'icon-duizhang' && () } {/* icon-tihuoliebiao */} - { name === 'icon-tihuoliebiao' && () } + { name === 'icon-tihuoliebiao' && () } {/* icon-yangpinduibi */} - { name === 'icon-yangpinduibi' && () } + { name === 'icon-yangpinduibi' && () } {/* icon-yansequyang */} - { name === 'icon-yansequyang' && () } + { name === 'icon-yansequyang' && () } {/* icon-fahuoliebiao */} - { name === 'icon-fahuoliebiao' && () } + { name === 'icon-fahuoliebiao' && () } {/* icon-yuncangkucun */} - { name === 'icon-yuncangkucun' && () } + { name === 'icon-yuncangkucun' && () } {/* icon-xiaoshou */} - { name === 'icon-xiaoshou' && () } + { name === 'icon-xiaoshou' && () } {/* icon-qianzhicangkucun */} - { name === 'icon-qianzhicangkucun' && () } + { name === 'icon-qianzhicangkucun' && () } {/* icon-lingquseka */} - { name === 'icon-lingquseka' && () } + { name === 'icon-lingquseka' && () } {/* icon-gouwu1 */} - { name === 'icon-gouwu1' && () } + { name === 'icon-gouwu1' && () } {/* icon-dingdan1 */} - { name === 'icon-dingdan1' && () } + { name === 'icon-dingdan1' && () } {/* icon-gerenzhongxin1 */} - { name === 'icon-gerenzhongxin1' && () } + { name === 'icon-gerenzhongxin1' && () } {/* icon-shouye1 */} - { name === 'icon-shouye1' && () } + { name === 'icon-shouye1' && () } {/* icon-gerenzhongxin */} - { name === 'icon-gerenzhongxin' && () } + { name === 'icon-gerenzhongxin' && () } {/* icon-dingdan */} - { name === 'icon-dingdan' && () } + { name === 'icon-dingdan' && () } {/* icon-shouye */} - { name === 'icon-shouye' && () } + { name === 'icon-shouye' && () } {/* icon-gouwu */} - { name === 'icon-gouwu' && () } + { name === 'icon-gouwu' && () } +{/* icon-wpassword */} + + { name === 'icon-wpassword' && () } ) diff --git a/src/styles/svg/wpassword.svg b/src/styles/svg/wpassword.svg new file mode 100644 index 0000000..f0b7dee --- /dev/null +++ b/src/styles/svg/wpassword.svg @@ -0,0 +1,12 @@ + + + 切片 + + + + + + + + + \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 6d72c04..6f0354e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1514,6 +1514,14 @@ dependencies: defer-to-connect "^1.0.1" +"@tarojs/api@3.5.10": + version "3.5.10" + resolved "https://registry.npmjs.org/@tarojs/api/-/api-3.5.10.tgz#5291ba02dde0a8efa77df25bd98f6aeda322520c" + integrity sha512-xyAz6X3rwHlwfTXQaqDBisu+hfncZDbN7ViTPbdOwcbOt6crguvTpdycvxLqDQmXZj5XdKx8c+eGMBZ7Ya0x0g== + dependencies: + "@babel/runtime" "^7.14.5" + "@tarojs/runtime" "3.5.10" + "@tarojs/api@3.5.8": version "3.5.8" resolved "https://registry.npmjs.org/@tarojs/api/-/api-3.5.8.tgz#3927c7b8dca0b14a1efcbb65134afc2542236a73" @@ -1719,6 +1727,14 @@ "@tarojs/helper" "3.5.8" scss-bundle "^3.0.2" +"@tarojs/runtime@3.5.10": + version "3.5.10" + resolved "https://registry.npmjs.org/@tarojs/runtime/-/runtime-3.5.10.tgz#c1168ed1c4dc812cdcca850d36678a52c8f57c76" + integrity sha512-zlDVnFAf3sE8Vs1IyT1dpUDiFlmyWpGsAjjc2i7kn/A/1LC8q6NwbOeCb/DuF7B3aT3mVNXkw9NFsggi8yDI6A== + dependencies: + "@tarojs/shared" "3.5.10" + lodash-es "4.17.21" + "@tarojs/runtime@3.5.8", "@tarojs/runtime@^3.5.8": version "3.5.8" resolved "https://registry.npmjs.org/@tarojs/runtime/-/runtime-3.5.8.tgz#691ecaf695fc638fbe2a507161cb4e1352aea6f7" @@ -1742,6 +1758,11 @@ tapable "^1.1.3" webpack-merge "^4.2.2" +"@tarojs/shared@3.5.10": + version "3.5.10" + resolved "https://registry.npmjs.org/@tarojs/shared/-/shared-3.5.10.tgz#b46630620fb2a82ccb3393b47f6d4f181dd43ed0" + integrity sha512-RN2e0fJfYEIofOnhha5CiGN4JtIS2ZU9lRuzASxb1BOdq/cxp+Om2rqATHL0D3Q1jBkf8xMVOZ77BoT0R/pIIw== + "@tarojs/shared@3.5.8", "@tarojs/shared@^3.5.8": version "3.5.8" resolved "https://registry.npmjs.org/@tarojs/shared/-/shared-3.5.8.tgz#ec728f22993e589e121bdee06e76ad8c9497514f" @@ -1769,7 +1790,7 @@ "@tarojs/taro" "3.5.8" loader-utils "^1.2.3" -"@tarojs/taro@3.5.8", "@tarojs/taro@^3.5.7": +"@tarojs/taro@3.5.8": version "3.5.8" resolved "https://registry.npmjs.org/@tarojs/taro/-/taro-3.5.8.tgz#768228ca821e909310431c1f4ac80c9c71d7efea" integrity sha512-qrtVz+r+mzXrTY778MQu3MimOBW2lduxG6zbRiZIQBkS9Dm87txRkdO78DoQI4kvi6yrwDG3hCPpTzHqQgf6rA== @@ -1777,6 +1798,14 @@ "@tarojs/api" "3.5.8" "@tarojs/runtime" "3.5.8" +"@tarojs/taro@^3.5.10": + version "3.5.10" + resolved "https://registry.npmjs.org/@tarojs/taro/-/taro-3.5.10.tgz#004b161099b89e0ca29311394694784445934a40" + integrity sha512-WU+y8AAdbSZS9Oexz34irKkVxRkGkTpu70mDxYenfrrkgY6tOuQ/EmHavuxmQ7aEoFIjgm6s6pW91jd2AyOh+w== + dependencies: + "@tarojs/api" "3.5.10" + "@tarojs/runtime" "3.5.10" + "@tarojs/taroize@3.5.8": version "3.5.8" resolved "https://registry.npmjs.org/@tarojs/taroize/-/taroize-3.5.8.tgz#252296d8e0097be8c2b42142fc62028e4eea4efb" @@ -4367,6 +4396,17 @@ css-select@^4.1.3: domutils "^2.8.0" nth-check "^2.0.1" +css-select@^5.1.0: + version "5.1.0" + resolved "https://registry.npmjs.org/css-select/-/css-select-5.1.0.tgz#b8ebd6554c3637ccc76688804ad3f6a6fdaea8a6" + integrity sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg== + dependencies: + boolbase "^1.0.0" + css-what "^6.1.0" + domhandler "^5.0.2" + domutils "^3.0.1" + nth-check "^2.0.1" + css-tree@1.0.0-alpha.29: version "1.0.0-alpha.29" resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.0.0-alpha.29.tgz#3fa9d4ef3142cbd1c301e7664c1f352bd82f5a39" @@ -4383,6 +4423,14 @@ css-tree@^1.1.2, css-tree@^1.1.3: mdn-data "2.0.14" source-map "^0.6.1" +css-tree@^2.2.1: + version "2.3.1" + resolved "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz#10264ce1e5442e8572fc82fbe490644ff54b5c20" + integrity sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw== + dependencies: + mdn-data "2.0.30" + source-map-js "^1.0.1" + css-tree@~2.2.0: version "2.2.1" resolved "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz#36115d382d60afd271e377f9c5f67d02bd48c032" @@ -4391,7 +4439,7 @@ css-tree@~2.2.0: mdn-data "2.0.28" source-map-js "^1.0.1" -css-what@^6.0.1: +css-what@^6.0.1, css-what@^6.1.0: version "6.1.0" resolved "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== @@ -4473,7 +4521,7 @@ csso@^4.2.0: dependencies: css-tree "^1.1.2" -csso@^5.0.2: +csso@^5.0.2, csso@^5.0.5: version "5.0.5" resolved "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz#f9b7fe6cc6ac0b7d90781bb16d5e9874303e2ca6" integrity sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ== @@ -6293,10 +6341,10 @@ fs-constants@^1.0.0: resolved "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== -fs-extra@^10.1.0: - version "10.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== +fs-extra@^11.1.0: + version "11.1.0" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.0.tgz#5784b102104433bb0e090f48bfc4a30742c357ed" + integrity sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw== dependencies: graceful-fs "^4.2.0" jsonfile "^6.0.1" @@ -8455,6 +8503,11 @@ mdn-data@2.0.28: resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz#5ec48e7bef120654539069e1ae4ddc81ca490eba" integrity sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g== +mdn-data@2.0.30: + version "2.0.30" + resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz#ce4df6f80af6cfbe218ecd5c552ba13c4dfa08cc" + integrity sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA== + mdn-data@~1.1.0: version "1.1.4" resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-1.1.4.tgz#50b5d4ffc4575276573c4eedb8780812a8419f01" @@ -11827,6 +11880,18 @@ svgo@^2.7.0: picocolors "^1.0.0" stable "^0.1.8" +svgo@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/svgo/-/svgo-3.0.2.tgz#5e99eeea42c68ee0dc46aa16da093838c262fe0a" + integrity sha512-Z706C1U2pb1+JGP48fbazf3KxHrWOsLme6Rv7imFBn5EnuanDW1GPaA/P1/dvObE670JDePC3mnj0k0B7P0jjQ== + dependencies: + "@trysound/sax" "0.2.0" + commander "^7.2.0" + css-select "^5.1.0" + css-tree "^2.2.1" + csso "^5.0.5" + picocolors "^1.0.0" + swiper@6.8.0: version "6.8.0" resolved "https://registry.npmjs.org/swiper/-/swiper-6.8.0.tgz#61c850f49ba778e403f00a01fe0b768bd85d0d20" @@ -11900,20 +11965,22 @@ taro-css-to-react-native@3.5.8: css-mediaquery "^0.1.2" postcss-value-parser "^3.3.0" -taro-iconfont-svg@^1.0.19: - version "1.0.19" - resolved "https://registry.npmjs.org/taro-iconfont-svg/-/taro-iconfont-svg-1.0.19.tgz#92c5f264af37dc5a9e5ba59cdc1b5594ff60431b" - integrity sha512-A5B5pe6gYjYcvuMAOgz5mJ3pA+syDP8lx2F2o12r1ddcccQljsU9k4KYp73wfouCCLSNi5CCy+UCcC6Ts51f4A== +taro-iconfont-svg@^1.1.1: + version "1.1.1" + resolved "https://registry.npmjs.org/taro-iconfont-svg/-/taro-iconfont-svg-1.1.1.tgz#9bf97717bb312e9ab766fb0f4dca30dcf244ff50" + integrity sha512-rOfrubDg3hGky6b7sb+rygleq97LW1dnd23MVIJ+0h9xsMxFwEv1t4+R/ZMpWhxrWV4CQPgIJJ0YKb1BIqLs5A== dependencies: - "@tarojs/taro" "^3.5.7" + "@tarojs/taro" "^3.5.10" classnames "^2.3.2" colors "^1.4.0" - fs-extra "^10.1.0" + fs-extra "^11.1.0" glob "^8.0.3" iconfont-parser "^1.0.0" minimist "^1.2.7" mkdirp "^1.0.4" + svgo "^3.0.2" ts-node "^10.9.1" + xml2js "^0.4.23" term-size@^1.2.0: version "1.2.0" @@ -12859,7 +12926,7 @@ xml-name-validator@^3.0.0: resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== -xml2js@^0.4.19, xml2js@^0.4.22: +xml2js@^0.4.19, xml2js@^0.4.22, xml2js@^0.4.23: version "0.4.23" resolved "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" integrity sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==