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>