{"id":1639,"date":"2021-02-03T22:19:28","date_gmt":"2021-02-03T14:19:28","guid":{"rendered":"http:\/\/123.57.164.21\/?p=1639"},"modified":"2021-02-03T22:19:28","modified_gmt":"2021-02-03T14:19:28","slug":"elementui-%e4%b8%8b%e6%8b%89%e6%a1%86%e5%9c%a8-ios%e7%a7%bb%e5%8a%a8%e7%ab%af%e7%82%b9%e4%b8%a4%e6%ac%a1%e6%89%8d%e8%83%bd%e9%80%89%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=1639","title":{"rendered":"ElementUI \u4e0b\u62c9\u6846\u5728 ios\u79fb\u52a8\u7aef\u70b9\u4e24\u6b21\u624d\u80fd\u9009\u4e2d"},"content":{"rendered":"\n<p>\u9700\u8981\u5b89\u88c5SCSS<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">1.\u5b89\u88c5sass \u4f9d\u8d56\u5305 \uff0c\u5728cmd\u754c\u9762\u8f93\u5165\uff1a<\/h5>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">npm  install sass-loader --save-dev\nnpm install node-sass --sava-d<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">2.\u5728build\u6587\u4ef6\u5939\u4e0b\u7684webpack.base.conf.js\u7684rules\u91cc\u9762\u6dfb\u52a0\u914d\u7f6e<\/h5>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\ntest: \/\\.scss$\/,\nloaders: ['style', 'css', 'sass']\n}<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/02\/image-17-1024x299.png\" alt=\"\" class=\"wp-image-1640\" width=\"491\" height=\"143\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17-1024x299.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17-300x87.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17-768x224.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17-830x242.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17-230x67.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17-350x102.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17-480x140.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2021\/02\/image-17.png 1468w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">3.\u5728App.vue\u4e2d\u6dfb\u52a0\u4e0b\u9762\u4ee3\u7801<\/h5>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;style lang=\"scss\">\n.el-scrollbar {\n  > .el-scrollbar__bar {\n    opacity: 1 !important;\n  }\n}\n&lt;\/style><\/pre>\n\n\n\n<p>\u53e6\u5916\u5b89\u88c5SCSS\u65f6\u6709\u53ef\u80fd\u51fa\u73b0<em>The \u201cpath\u201c argument must be of type string. Received undefined vue sass<\/em>\u7684\u9519\u8bef\u3002\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>\u8fd9\u662fvue\u9879\u76ee\uff08\u7531vue-cli\u521b\u5efa\uff09\u5f15\u5165sass\u540e\uff0c\u6253\u5305\u9879\u76ee\u51fa\u73b0\u7684\u9519\u8bef\u3002\u8fd9\u4e2a\u9519\u8bef\u662fsass-loader\u7248\u672c\u9020\u6210\u7684<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6848\uff1a\u5728package.json\u4e2d\u5c06\u00a0\u201csass-loader\u201d:&#8221;^10.0.1&#8243;\u7248\u672c\u4fee\u6539\u4e3a&#8221;sass-loader&#8221;:\u00a0&#8220;^7.3.1&#8221;,\u7136\u540e\u91cd\u65b0npm install<\/p>\n\n\n\n<p>\u521b\u5efa\u5b8c\u8fd9\u4e2a\u6587\u4ef6\u4ee5\u540e\uff0c\u53c8\u51fa\u73b0\u4e86\u65b0\u7684\u9519\u8bef<em>\u201cNode Sass version 5.0.0 is incompatible with ^4.0.0.\u201d<\/em><\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n\n\n\n<p>\u5378\u8f7d\u5df2\u5b89\u88c5\u7248\u672c npm uninstall node-sass<\/p>\n\n\n\n<p>\u5b89\u88c5 npm install node-sass@4.14.1<\/p>\n\n\n\n<p>\u6700\u540e\u603b\u7ed3\u4e00\u4e0b\u5f53\u7528vue-cli\u521b\u5efa\u4e00\u4e2avue\u9879\u76ee\u65f6\uff0c\u5f15\u5165sass\u7684\u6b65\u9aa4[\u4e0d\u7528\u914d\u7f6e\uff0c\u56e0\u4e3avue-cli\u4e2d\u5df2\u7ecf\u7ed9\u6211\u4eec\u914d\u7f6e\u597d\u4e86]<\/p>\n\n\n\n<p>\u4e0b\u8f7d\u5b89\u88c5\uff1anpm i node-sass sass-loader style-loader -D<\/p>\n\n\n\n<p>\u53ef\u4ee5\u5f00\u59cb\u7528\u4e86\u3010lang=&#8221;scss&#8221;\u3011<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9700\u8981\u5b89\u88c5SCSS 1.\u5b89\u88c5sass \u4f9d\u8d56\u5305 \uff0c\u5728cmd\u754c\u9762\u8f93\u5165\uff1a 2.\u5728build\u6587\u4ef6\u5939\u4e0b\u7684webpack.b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1639"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1639"}],"version-history":[{"count":3,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1639\/revisions"}],"predecessor-version":[{"id":1643,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1639\/revisions\/1643"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}