Ver código fonte

修改样式

Jing 1 mês atrás
pai
commit
bce11f6bf9
2 arquivos alterados com 25 adições e 11 exclusões
  1. 14 0
      src/styles/global.less
  2. 11 11
      src/views/news/creatNews.vue

+ 14 - 0
src/styles/global.less

@@ -432,4 +432,18 @@
 .el-scrollbar__wrap {
   height: 100% !important;
 }
+
+//dialog弹框提示信息位置
+// .el-form-item__error {
+//   color: #ff4949;
+//   font-size: 12px;
+//   line-height: 1;
+//   padding-top: 4px;
+//   position: relative;
+// }
+// 输入框距离底部的距离
+// .el-form-item {
+//   margin-bottom: 5px;
+// }
+
 // el-cascader高度 end

+ 11 - 11
src/views/news/creatNews.vue

@@ -68,7 +68,7 @@
                   <el-select v-model="form.level" multiple clearable placeholder="请选择推荐等级.." @change="levelChange">
                     <el-option label="头条" :value="1"></el-option>
                     <el-option label="轮播图" :value="2"></el-option>
-                    <el-option label="推荐图" :value="3"></el-option>
+                    <el-option label="今日热点" :value="6"></el-option>
                     <!-- <el-option label="热点资讯" :value="4"></el-option>
                     <el-option label="资讯推荐" :value="5"></el-option> -->
                   </el-select>
@@ -161,7 +161,7 @@
               <el-form-item label="" prop="content">
                 <div class="editor-container">
                   <div v-if="showHtml">
-                    <textarea v-model="editorHtml" style="width: 100%; height: 300px;"></textarea>
+                    <textarea v-model="editorHtml" style="width: 100%; height: 375px;"></textarea>
                   </div>
                   <div v-else>
                     <quill-editor ref="quillEditor" v-model="form.content" :options="editorOptions"
@@ -1204,16 +1204,17 @@ export default {
 }
 
 .editor-container {
-  height: 310px;
+  height: 375px;
   padding-bottom: 5px;
+  background-color: #fff;
 }
 
 .my-quill-editor {
-  height: 245px;
+  height: 280px;
 }
 
 .ql-editor {
-  height: 245px;
+  height: 280px;
 }
 
 /* 富文本对齐方式 */
@@ -1312,10 +1313,10 @@ export default {
   color: #ff4949;
   font-size: 12px;
   line-height: 1;
-  padding-top: 0px;
-  position: absolute;
-  top: 22%;
-  left: 93%;
+  padding-top: 4px;
+  position: relative;
+  // top: 22%;
+  // left: 93%;
 }
 
 //输入框距离底部的距离
@@ -1328,5 +1329,4 @@ export default {
   font-size: 12px;
   color: #999;
 }
-// 执行v-deep穿透scope选择器 end------------------------------------------------------------>
-</style>
+// 执行v-deep穿透scope选择器 end------------------------------------------------------------></style>