fixed bug about auto calc yAxis pos
This commit is contained in:
parent
53f2199087
commit
c3e1946792
|
@ -9,8 +9,10 @@ import 'highlight.js/styles/monokai-sublime.css'
|
|||
|
||||
import highlight from 'highlight.js/lib/highlight'
|
||||
|
||||
import xml from 'highlight.js/lib/languages/xml'
|
||||
import javascript from 'highlight.js/lib/languages/javascript'
|
||||
|
||||
highlight.registerLanguage('xml', xml)
|
||||
highlight.registerLanguage('javascript', javascript)
|
||||
|
||||
export default {
|
||||
|
|
|
@ -128,7 +128,7 @@ export default {
|
|||
|
||||
minus = max - min
|
||||
|
||||
!num && (num = minus < 10 ? minus : 10)
|
||||
!num && (num = minus < 9 ? minus + 1 : 10)
|
||||
|
||||
const gapNum = minus / (num - 1)
|
||||
|
||||
|
|
|
@ -1,7 +1,14 @@
|
|||
<template>
|
||||
<div id="border-box">
|
||||
<border-box-1 class="border-box-item">
|
||||
border-box-1
|
||||
<highlight-code class="javascript">
|
||||
// html
|
||||
@import wqe from './'
|
||||
</highlight-code>
|
||||
|
||||
<highlight-code>
|
||||
<body></body>
|
||||
</highlight-code>
|
||||
</border-box-1>
|
||||
|
||||
<border-box-2 class="border-box-item">
|
||||
|
@ -53,10 +60,13 @@ export default {
|
|||
position: relative;
|
||||
width: 50%;
|
||||
height: 300px;
|
||||
text-align: center;
|
||||
line-height: 300px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
|
||||
.highlight-code {
|
||||
}
|
||||
}
|
||||
|
||||
.bbi-2 {
|
||||
|
|
Loading…
Reference in New Issue