fixed bug about auto calc yAxis pos

This commit is contained in:
jiaming 2018-12-14 14:16:49 +08:00
parent 53f2199087
commit c3e1946792
3 changed files with 17 additions and 5 deletions

View File

@ -9,8 +9,10 @@ import 'highlight.js/styles/monokai-sublime.css'
import highlight from 'highlight.js/lib/highlight' import highlight from 'highlight.js/lib/highlight'
import xml from 'highlight.js/lib/languages/xml'
import javascript from 'highlight.js/lib/languages/javascript' import javascript from 'highlight.js/lib/languages/javascript'
highlight.registerLanguage('xml', xml)
highlight.registerLanguage('javascript', javascript) highlight.registerLanguage('javascript', javascript)
export default { export default {

View File

@ -128,7 +128,7 @@ export default {
minus = max - min minus = max - min
!num && (num = minus < 10 ? minus : 10) !num && (num = minus < 9 ? minus + 1 : 10)
const gapNum = minus / (num - 1) const gapNum = minus / (num - 1)

View File

@ -1,7 +1,14 @@
<template> <template>
<div id="border-box"> <div id="border-box">
<border-box-1 class="border-box-item"> <border-box-1 class="border-box-item">
border-box-1 <highlight-code class="javascript">
// html
@import wqe from './'
</highlight-code>
<highlight-code>
&lt;body&gt;&lt;/body&gt;
</highlight-code>
</border-box-1> </border-box-1>
<border-box-2 class="border-box-item"> <border-box-2 class="border-box-item">
@ -53,10 +60,13 @@ export default {
position: relative; position: relative;
width: 50%; width: 50%;
height: 300px; height: 300px;
text-align: center;
line-height: 300px;
font-weight: bold;
margin-bottom: 10px; margin-bottom: 10px;
display: flex;
flex-direction: row;
justify-content: space-around;
.highlight-code {
}
} }
.bbi-2 { .bbi-2 {