JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q25573F
  • License ISC

A Vue.js project

Package Exports

  • at-night

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (at-night) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

at-night

A Vue.js project

安装

npm i at-night

介绍

这是一个灯光效果,类似与小时候在在被窝里拿着手电筒看书

使用

<template>
  <div>
    <at-right>
        <div>hello world</div>
    </at-right>
  </div>
</template>

<script>
import atNight from 'at-night'

export default {
  components: {
    atNight
  }
}
</script>

传值

<at-right :isShow="true" :colorStyle="yellow" :rightSize="100"></at-right>
<!-- isShow: 是否开启 => String -->
<!-- colorStyle: 灯光颜色 => String / 可选值 => yellow white -->
<!-- rightSize: 光圈大小 => Number -->