mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-19 20:41:52 +00:00
improve visibility of some code-blocks
This commit is contained in:
parent
20675ec905
commit
c7b22b9e15
2 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="code-block" :data-lang="lang">
|
||||
<div class="code-block-wrapper">
|
||||
<div class="code-block-wrapper" :style="{ 'max-height': height }">
|
||||
<pre><code :class="lang" ref="block"><slot></slot></code></pre>
|
||||
|
||||
<span class="copied" :class="{ 'active': showMessage }">Copied!</span>
|
||||
|
|
@ -168,7 +168,10 @@
|
|||
highlight.registerLanguage('javascript', highlightJS);
|
||||
|
||||
export default {
|
||||
props: ['lang'],
|
||||
props: {
|
||||
lang: String,
|
||||
height: [Number, String]
|
||||
},
|
||||
data: () => ({
|
||||
showMessage: false
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
</api-table>
|
||||
|
||||
<api-table name="md-account-header">
|
||||
<code-block lang="xml">
|
||||
<code-block lang="xml" height="none">
|
||||
<md-toolbar class="md-account-header">
|
||||
<md-list class="md-transparent">
|
||||
<md-list-item class="md-avatar-list">
|
||||
|
|
|
|||
Loading…
Reference in a new issue