1.0.0 • Published 8 years ago

gitbook-plugin-fsui v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gitbook-plugin-fsui

gitbook plugin for FSUI library. It initialize the Vue context for FSUI and bootstrap FSUI component in gitbook pages.

Intall

gitbook install fsui

Usage

config plugin in book.json/book.js

"plugins": ["fsui"]

after that, you can writing blocks in markdown files with three different styles

style-A

<vue>
	<fs-button>A Button</fs-button>
</vue>

style-B

<vue>
	<template>
		<fs-icon @click="doClick"></fs-icon>
	</template>
</vue>

style-C

<vue>
	<config>
	{
		methods: {
			doClick: function() {
				alert('icon clicked')
			}
		}
	}
	</config>
	<template>
		<fs-icon @click="doClick"></fs-icon>
	</template>
</vue>

FAQ

can't use "{{}}" in template

place use v-text replace