qt-vue-tools
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

安装

# npm 安装
npm install i qt-vue-tools

# pnpm 安装
pnpm install i qt-vue-tools

使用指令

滚动条美化:

// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { scrollbar } from 'qt-vue-tools'

const app = createApp(App)

// 指令注册,方式一:
app.directive('scrollbar', scrollbar)
// 指令注册,方式二:
// scrollbar.install(app)
// demo.vue
// 注意:v-scrollbar 所在的元素一定要有以下 position 属性之一:relative、absolute、fixed、sticky
<div v-scrollbar>
  // ...
</div>

Readme

Keywords

Package Sidebar

Install

npm i qt-vue-tools

Weekly Downloads

0

Version

1.0.13

License

ISC

Unpacked Size

12.9 kB

Total Files

20

Last publish

Collaborators

  • partiny