chuckchen 107975c4e2 first commit 1 năm trước cách đây
..
components 107975c4e2 first commit 1 năm trước cách đây
changelog.md 107975c4e2 first commit 1 năm trước cách đây
package.json 107975c4e2 first commit 1 năm trước cách đây
readme.md 107975c4e2 first commit 1 năm trước cách đây

readme.md

zero-markdown-view

插件说明

个人仅测试于微信小程序

使用方法

**符合easycom组件模式, 导入 uni_modules 后直接使用即可 **

先下载将要使用到的依赖包

<template>
	<view class="container">
		<!-- 默认用法 -->
	<zero-markdown-view :themeColor="themeColor" :markdown="content"></zero-markdown-view>
	</view>
</template>
<script>
	
	export default {
		data() {
			return {
				
			}
		},
		created() {
		},
		methods: {
		
		},
	}
</script>
	<style lang="scss" scoped>
	</style>

参数说明

|参数 |类型 |默认值 |描述 | |-- |-- |-- |-- | |markdown |String | |markdown文本 | |themeColor |String |'#007AFF' |主题色 | |codeBgColor|String |'#2d2d2d' |代码块背景色 |

感谢 mp-html 插件

插件地址: https://ext.dcloud.net.cn/plugin?id=805

文档地址: https://jin-yufeng.gitee.io/mp-html/#/overview/quickstart

插件预览: code

预览的小程序不一定能及时更新当前插件