2.7.2 • Published 3 years ago

vx-hooks v2.7.2

Weekly downloads
45
License
MIT
Repository
github
Last release
3 years ago

vx-hooks (ts 重构中)

umi hooks 等工具包的 typescript + vue3.0 实现

安装

  npm i vx-hooks

  // or
  yarn add vx-hooks

使用

<template>
  <img v-if='visibal' :src='https://avatars.githubusercontent.com/u/27235325?s=460&u=f722ec56565c6d644cd8c37be8dadf2a79022c51&v=4'>
  <button @click='show'> show </button>
  <button @click='hidden'> hidden </button>
</template>

<script lang='ts'>
import { defineComponent } from 'vue'
import { useBool } from 'vx-hooks'
export default defineComponent({
  setup(){
    const { state:visibal, setTrue:show, setFalse:hidden } = useBool
    return {
      visibal,
      show,
      hidden
    }
  }
})
</script>

本地API文档

npm run doc

// of

yarn doc

API 文档

2.7.2

3 years ago

2.7.0

3 years ago

2.6.0

3 years ago

2.7.1

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.1.2-beta

3 years ago

2.1.2-bate

3 years ago

2.1.1

3 years ago

2.1.1-beta

3 years ago

2.0.0-beta

3 years ago