chore(client): tweak ui
This commit is contained in:
parent
4550a4459b
commit
d7247e2db2
|
@ -316,7 +316,7 @@ const render = () => {
|
||||||
plugins: [{
|
plugins: [{
|
||||||
id: 'vLine',
|
id: 'vLine',
|
||||||
beforeDraw(chart, args, options) {
|
beforeDraw(chart, args, options) {
|
||||||
if (chart.tooltip._active && chart.tooltip._active.length) {
|
if (chart.tooltip?._active?.length) {
|
||||||
const activePoint = chart.tooltip._active[0];
|
const activePoint = chart.tooltip._active[0];
|
||||||
const ctx = chart.ctx;
|
const ctx = chart.ctx;
|
||||||
const x = activePoint.element.x;
|
const x = activePoint.element.x;
|
||||||
|
|
|
@ -30,7 +30,7 @@ export default defineComponent({
|
||||||
props: {
|
props: {
|
||||||
def: {
|
def: {
|
||||||
type: Array,
|
type: Array,
|
||||||
required: true
|
required: true,
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
@ -64,7 +64,7 @@ export default defineComponent({
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px 16px 10px 8px;
|
padding: 10px 16px 10px 8px;
|
||||||
border-radius: 9px;
|
border-radius: 9px;
|
||||||
font-size: 0.95em;
|
font-size: 0.9em;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -355,7 +355,7 @@ async function renderChart() {
|
||||||
plugins: [{
|
plugins: [{
|
||||||
id: 'vLine',
|
id: 'vLine',
|
||||||
beforeDraw(chart, args, options) {
|
beforeDraw(chart, args, options) {
|
||||||
if (chart.tooltip._active && chart.tooltip._active.length) {
|
if (chart.tooltip?._active?.length) {
|
||||||
const activePoint = chart.tooltip._active[0];
|
const activePoint = chart.tooltip._active[0];
|
||||||
const ctx = chart.ctx;
|
const ctx = chart.ctx;
|
||||||
const x = activePoint.element.x;
|
const x = activePoint.element.x;
|
||||||
|
|
Loading…
Reference in New Issue