浏览代码

小程序:样式

panyong 2 年之前
父节点
当前提交
b2210b05c6
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 2 1
      htmldev/wxMini/pages/business/business.wxml
  2. 3 1
      htmldev/wxMini/project.config.json

+ 2 - 1
htmldev/wxMini/pages/business/business.wxml

@@ -8,7 +8,8 @@
 </view>
 <scroll-view
   class="app_nav-wrap"
-  scroll-x="{{true}}">
+  scroll-x="{{true}}"
+  scroll-with-animation="{{true}}">
   <view
     class="nav {{currentCategory === item.id ? 'active' : ''}}"
     wx:for="{{category}}"

+ 3 - 1
htmldev/wxMini/project.config.json

@@ -50,7 +50,9 @@
     "disableUseStrict": false,
     "minifyWXML": true,
     "showES6CompileOption": false,
-    "useCompilerPlugins": false,
+    "useCompilerPlugins": [
+      "sass"
+    ],
     "useStaticServer": true
   },
   "compileType": "miniprogram",