qt-vue3-directives
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

安装

# npm 安装
npm install i qt-vue3-directives

# pnpm 安装
pnpm install i qt-vue3-directives

使用指令

滚动条美化:

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

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-vue3-directives

Weekly Downloads

0

Version

1.0.10

License

ISC

Unpacked Size

8.01 kB

Total Files

15

Last publish

Collaborators

  • partiny