vue组件编写 组件库
Vuereddit (vuereddit)
A simple reddit client written as a vue component.
作为vue组件编写的简单Reddit客户端。
用法 (Usage)
Install the module first:
首先安装模块:
npm install vuereddit
And use it in your vue application:
并在您的vue应用程序中使用它:
<template>
<subreddit name='videos'></subreddit>
</template>
<script>
import 'vuereddit/dist/vuereddit.css'
import Subreddit from 'vuereddit'
export default {
name: 'App',
components: {
Subreddit
}
}
</script>
This should give you a very simple reddit viewer:
这应该给您一个非常简单的reddit查看器:
为什么? (Why?)
I love reddit, obviously. I also want to build more tools on top of reddit, so I decided to make this preview component.
很明显,我喜欢reddit。 我还想在reddit之上构建更多工具,因此我决定制作此预览组件。
Stay tuned for more.
敬请期待更多。
In the mean time I have also recorded development of this library on video. The total time spent here was around 7 hours. I compressed each session to a 30-60 seconds video, where lots of screens are flashing, except maybe last 15 seconds, where the final result of work is visible.
同时,我还通过视频记录了该库的开发。 在这里花费的总时间约为7个小时。 我将每个会话压缩为一个30-60秒的视频,该屏幕上闪烁着许多屏幕,除了最后15秒外,最后的工作可见。
翻译自: https://vuejsexamples.com/a-simple-reddit-client-written-as-a-vue-component/
vue组件编写 组件库