no message
Former-commit-id: 71dffee3b7ab76ab1d69950a92792f42a790a9a1 Former-commit-id: f407136326e1aa9dd05d35689a1fcefb57bd623b Former-commit-id: 18e5c2c1a5b9152a0357acb9b881f1c390dcac60
This commit is contained in:
@@ -1,41 +0,0 @@
|
|||||||
`highLight` 组件已经全局注册,可以直接使用
|
|
||||||
|
|
||||||
组件内部使用 `Prism` 实现代码高亮
|
|
||||||
|
|
||||||
```
|
|
||||||
<Card>
|
|
||||||
<p slot="title">示例1</p>
|
|
||||||
<highLight :data="test1"></highLight>
|
|
||||||
</Card>
|
|
||||||
<br>
|
|
||||||
<Card>
|
|
||||||
<p slot="title">示例2</p>
|
|
||||||
<highLight :data="test2"></highLight>
|
|
||||||
</Card>
|
|
||||||
<br>
|
|
||||||
<Card>
|
|
||||||
<p slot="title">示例3</p>
|
|
||||||
<highLight :data="test3" :stringify="false"></highLight>
|
|
||||||
</Card>
|
|
||||||
```
|
|
||||||
|
|
||||||
数据源
|
|
||||||
|
|
||||||
```
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
test1: [0, 1, 2, 3],
|
|
||||||
test2: {
|
|
||||||
name: 'me',
|
|
||||||
like: [
|
|
||||||
'like1',
|
|
||||||
'like2'
|
|
||||||
],
|
|
||||||
address: [
|
|
||||||
'address1'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
test3: '<Markdown url="/static/markdownFiles/article/highLight组件使用方法.md"></Markdown>'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user