Przeglądaj źródła

修改轮播图一张时的展示

shaun-sheep 4 lat temu
rodzic
commit
5046d148c8

+ 8 - 1
src/components/Rotation/src/rotation.vue

@@ -16,7 +16,14 @@
                 <img :src='item.url' alt />
             </el-carousel-item>
         </el-carousel>-->
-        <el-carousel v-else style='height:100%;width:100%' :interval='5000' arrow='always' @change='changePic'>
+        <el-carousel
+            v-else
+            style='height:100%;width:100%'
+            :interval='5000'
+            :indicator-position='rotationImg.length == 1 ? "none":""'
+            :arrow='rotationImg.length == 1 ? "never":"always"'
+            @change='changePic'
+        >
             <el-carousel-item v-for='(item,index) in rotationImg' :key='index'>
                 <img :src='item.url' alt style='  width: 100%; height: 100%;object-fit: cover;' />
             </el-carousel-item>

+ 18 - 1
src/components/legendremarks.vue

@@ -36,7 +36,23 @@ export default {
             remarksTexts: '', //展示的备注
             editorOption: {
                 modules: {
-                    toolbar: [['bold', 'underline'], [{ color: [] }]]
+                    toolbar: [['bold', 'underline'], [{ color: [] }], [{ list: 'ordered' }]]
+                    // toolbar: [
+                    //     ['bold', 'italic', 'underline', 'strike'],
+                    //     ['blockquote', 'code-block'],
+                    //     [{ header: 1 }, { header: 2 }],
+                    //     [{ list: 'ordered' }, { list: 'bullet' }],
+                    //     [{ script: 'sub' }, { script: 'super' }],
+                    //     [{ indent: '-1' }, { indent: '+1' }],
+                    //     [{ direction: 'rtl' }],
+                    //     [{ size: ['small', false, 'large', 'huge'] }],
+                    //     [{ header: [1, 2, 3, 4, 5, 6, false] }],
+                    //     [{ font: [] }],
+                    //     [{ color: [] }, { background: [] }],
+                    //     [{ align: [] }],
+                    //     ['clean'],
+                    //     ['link', 'image', 'video']
+                    // ]
                 },
                 theme: 'snow',
                 placeholder: '请输入内容...'
@@ -107,6 +123,7 @@ export default {
         onEditorBlur(val) {},
         onEditorFocus(val) {},
         onEditorChange(val) {
+            console.log(val, 'val')
             val.quill.deleteText(200, 6)
             if (this.remarksTexts === '') {
                 this.valLen = 0