浏览代码

引导页

DESKTOP-O04BTUJ\muzen 3 年之前
父节点
当前提交
b72b6aec1c
共有 1 个文件被更改,包括 20 次插入2 次删除
  1. 20 2
      src/pages/guide/index.vue

+ 20 - 2
src/pages/guide/index.vue

@@ -1,6 +1,6 @@
 <template>
-  <view class="app-container" :style="{'height' : !content ? '100%' : ''}">
-    <view v-if="content" class="ql-snow">
+  <view class="app-container">
+    <view v-if="content" class="ql-container">
       <rich-text class="ql-editor" :nodes="content" />
     </view>
     <noData v-else>
@@ -34,3 +34,21 @@ export default {
   }
 }
 </script>
+
+<style lang="scss" scoped>
+.app-container {
+  height: 100%;
+}
+
+.ql-container {
+  height: calc(100% - 106rpx);
+  overflow-y: scroll;
+}
+
+button {
+  position: absolute;
+  bottom: 32rpx;
+  left: 32rpx;
+  width: calc(100% - 64rpx);
+}
+</style>