'升级mavonEditor兼容IE样式'
parent
267dc854d8
commit
2f1fe92a4f
File diff suppressed because it is too large
Load Diff
|
@ -13,7 +13,7 @@
|
||||||
"axios": "^0.15.3",
|
"axios": "^0.15.3",
|
||||||
"babel-polyfill": "^6.23.0",
|
"babel-polyfill": "^6.23.0",
|
||||||
"element-ui": "2.3.3",
|
"element-ui": "2.3.3",
|
||||||
"mavon-editor": "^2.5.2",
|
"mavon-editor": "^2.5.4",
|
||||||
"vue": "^2.5.16",
|
"vue": "^2.5.16",
|
||||||
"vue-cropperjs": "^2.2.0",
|
"vue-cropperjs": "^2.2.0",
|
||||||
"vue-quill-editor": "3.0.6",
|
"vue-quill-editor": "3.0.6",
|
||||||
|
|
|
@ -88,10 +88,10 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style scoped>
|
<style>
|
||||||
.tags {
|
.tags {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 40px;
|
height: 30px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding-right: 120px;
|
padding-right: 120px;
|
||||||
|
@ -105,13 +105,13 @@
|
||||||
|
|
||||||
.tags-li {
|
.tags-li {
|
||||||
float: left;
|
float: left;
|
||||||
margin: 4px;
|
margin: 3px 5px 2px 3px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 32px;
|
height: 23px;
|
||||||
line-height: 32px;
|
line-height: 23px;
|
||||||
border: 1px solid #e9eaec;
|
border: 1px solid #e9eaec;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 0 5px 0 12px;
|
padding: 0 5px 0 12px;
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
transition: all .3s ease-in;
|
transition: all .3s ease-in;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags-li:hover {
|
.tags-li:not(.active):hover {
|
||||||
background: #f8f8f8;
|
background: #f8f8f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,10 +149,10 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-top: 8px;
|
padding-top: 1px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 110px;
|
width: 110px;
|
||||||
height: 40px;
|
height: 30px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
box-shadow: -3px 0 15px 3px rgba(0, 0, 0, .1);
|
box-shadow: -3px 0 15px 3px rgba(0, 0, 0, .1);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="crumbs">
|
<div class="crumbs">
|
||||||
<el-breadcrumb separator="/">
|
<el-breadcrumb separator="/">
|
||||||
<el-breadcrumb-item><i class="el-icon-date"></i> 表单</el-breadcrumb-item>
|
<el-breadcrumb-item><i class="el-icon-date"></i> 表单</el-breadcrumb-item>
|
||||||
<el-breadcrumb-item>markdown</el-breadcrumb-item>
|
<el-breadcrumb-item>markdown编辑器</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -20,8 +20,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { mavonEditor } from 'mavon-editor'
|
import { mavonEditor } from 'mavon-editor'
|
||||||
import 'mavon-editor/dist/css/index.css'
|
import 'mavon-editor/dist/css/index.css'
|
||||||
// 重写mavon的flex样式来兼容IE
|
|
||||||
import 'static/css/mavon-flex.css'
|
|
||||||
export default {
|
export default {
|
||||||
data: function(){
|
data: function(){
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -126,4 +126,8 @@ a{text-decoration: none}
|
||||||
}
|
}
|
||||||
.editor-btn{
|
.editor-btn{
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
/*markdown*/
|
||||||
|
.v-note-wrapper .v-note-panel {
|
||||||
|
min-height: 500px;
|
||||||
|
}
|
|
@ -1,70 +0,0 @@
|
||||||
.v-note-wrapper{
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
.v-note-wrapper .v-note-op{
|
|
||||||
display: flex;
|
|
||||||
flex: none;
|
|
||||||
}
|
|
||||||
.v-note-wrapper .v-note-op .left,
|
|
||||||
.v-note-wrapper .v-note-op .right{
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
.v-note-wrapper {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
.v-note-wrapper .v-note-op {
|
|
||||||
display: flex;
|
|
||||||
flex: none;
|
|
||||||
}
|
|
||||||
.v-note-wrapper .v-note-op .left,
|
|
||||||
.v-note-wrapper .v-note-op .right {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-note-wrapper .v-note-panel {
|
|
||||||
display: flex;
|
|
||||||
flex: 1;
|
|
||||||
min-height: 500px;
|
|
||||||
}
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-edit.divarea-wrapper {
|
|
||||||
flex: 0 0 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-edit.divarea-wrapper.single-edit {
|
|
||||||
flex: 0 0 100%;
|
|
||||||
}
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-edit.divarea-wrapper.single-show {
|
|
||||||
width: 0;
|
|
||||||
flex: 0 0 0;
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-show {
|
|
||||||
flex: 0 0 50%;
|
|
||||||
}
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-show.single-show {
|
|
||||||
flex: 0 0 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-navigation-wrapper {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-navigation-wrapper .v-note-navigation-title {
|
|
||||||
flex: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-note-wrapper .v-note-panel .v-note-navigation-wrapper .v-note-navigation-content {
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
.v-note-img-wrapper{
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
.v-note-img-wrapper img {
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
Loading…
Reference in New Issue