Catalog npm
Back to packageRELEASE DETAILS

0.0.4

npm

94-toast

```bash npm i 94-toast ```

Published26 Apr 2023
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

94Toast

安装

npm i 94-toast

导入

// main.ts

import '94-toast/style.css'
import { ToastPlugin } from '94-toast';

const app = createApp(App);
app.use(ToastPlugin);
app.mount('#app');

使用

<script lang="ts">
export default {
  name: "App",
  methods: {
    toast() {
      this.$toast.show('Hello Vuejs')
    }
  }
}
</script>
<script setup lang="ts">
import { getCurrentInstance } from 'vue';
const global = getCurrentInstance()?.appContext.config.globalProperties;

const toast = () => {
  global?.$toast.show('Hello Vuejs')
}
</script>
<script lang="ts">
import { defineComponent, getCurrentInstance } from 'vue';
export default defineComponent({
  name: "App",
  setup() {

   const global = getCurrentInstance()?.appContext.config.globalProperties;

    const toast = () => {
      global?.$toast.show('Hello Vuejs')
    }

    return {
      toast,
    }
  }
})
</script>

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-5JURk9Fi9rfIo7Vx+evsidYTbccK1Chy3z/ZLWbI80Z+ktr0I69JuZzgwjPYtgUKwvqcA8Q92fmUd1FuNWP6Dw==",
  "shasum": "050e9ad1c8e25072ce35d0ba45fa7e89c66266b1",
  "tarball": "https://registry.npmjs.org/94-toast/-/94-toast-0.0.4.tgz",
  "fileCount": 7,
  "unpackedSize": 5867,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIGedo+m7dJkLUf4L6RbKZNTavsLvcCQA46wBB34VvePBAiEAtQg6X6SETqylCnTky1Bzl1OSwSsr0dJZYoWCOl1f3nw="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSPKVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUtBAAk2mtJWQSuXFHVo45ql29KoFS5MwONrBmcE0fzBV3SFBmzz8F\r\nM3f2pgByUHpHnUKAwwZ1A2JaAXajoLs0aq+Nk2xf3mC5nwj2EIFHLFEPnMnG\r\nCAr9GkjndY8KZclYbzFA9axB4hGEI585injinhTk4nb8i2xTAMWV5Wx6gKUM\r\nr36jQyLRrqxwbcwUiEi8+rpjZXKOYft/buZc64mwdRj18CKlGQcUFVXfOpRo\r\n4DR/vebFh9Ko4CghG+KFkDanaJVS+XXFLejbNGg7xz38j5gI2azmCd9/5J4G\r\ny8aAKrosLsGgCc4gY8wyW1J+89ttaw1z0Nur+KL0hqyi10azOAKBrABwBnN7\r\nH5KVAR5BmKUJEqWP6URiAv8ma12urqUvBLtZZkoXkGE0/YQltY6oKoerV+QD\r\ntcrU0EP5OFSpFAB38BJCLLvIuQ43oOQfWZ85ohL0vqgQIjF80eVtBzKb+cuZ\r\nWpXyz7fMGqjWu0/ypNMfsfjLDYC2WubdBFV/SQzPdh2lutNGUwAtvlCIdvvK\r\nEsaFNveUl3tjQlbRqMzF9dZUujkdQ1yZTIDQkHeD4Ni1d3m2E9Kao/uVpNBG\r\nu0ef3V3bmVR0XMpC7x7SGoukC1MbVf9rE8pfxkdorD0z//hyB2uDmd11PFpZ\r\nwlG387n31Gsf0/sEHtBI9sGCA8zKzXndjIg=\r\n=yoe4\r\n-----END PGP SIGNATURE-----\r\n"
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:36c195c1626850dda4e4f100b7bb7c52865e89999cb3dd16aa35f9f81afddf83

Other collected versions

0.0.326 Apr0.0.226 Apr0.0.126 AprView all collected versions →