vue组件重复使用问题
V型聚光灯 (V-Spotlight)
🔦 Tiny reusable Spotlight component for your Vue App
for适用于Vue应用程序的可重复使用的Spotlight组件
安装 (Install)
yarn add v-spotlight
用法 (Usage)
<template>
<v-spotlight background="'https://placehold.it/1000x1000'"></v-spotlight>
</template>
<script>
import VSpotlight from 'v-spotlight';
export default {
components: {
VSpotlight,
},
};
</script>
API (API)
道具 (Props)
background
: Add background image for the spotlightbackground
:为聚光灯添加背景图像position
: Background image cover positionposition
:背景图片封面位置
贡献 (Contributing)
Fork it!
叉子!
Create your feature branch:
git checkout -b my-new-feature
创建功能分支:
git checkout -b my-new-feature
Commit your changes:
git commit -am 'Add some feature'
提交更改:
git commit -am 'Add some feature'
Push to the branch:
git push origin my-new-feature
推送到分支:
git push origin my-new-feature
Submit a pull request :D
提交拉取请求:D
作者 (Author)
v-spotlight © Vinayak, Released under the MIT License.
v-spotlight©Vinayak,根据MIT许可证发行。
翻译自: https://vuejsexamples.com/tiny-reusable-spotlight-component-for-your-vue-app/
vue组件重复使用问题