一个用于 Vue.js 2/3 的滑出组件。
A Slide-Out component for Vue3
npm i @hyjiacan/vue-slideout@3or
yarn add @hyjiacan/vue-slideout@3If you need compatible with Vue.js 2.x, use version @hyjiacan/vue-slideout@2.
You can get the latest code:
git clone https://github.com/hyjiacan/vue-slideout.gitor just download archive
Like node-env, a global Slideout will be attached onto window.
The newest version
Specified version
/dist/slideout.css"/>unpkg is also available: instead cdn.jsdelivr.net with unpkg.com.
Also, you can use the uncompressed dist by instead slideout.umd.min.js with slideout.umd.js
main.js
import Vue from 'vue'
import Slideout from '@hyjiacan/vue-slideout'
import '@hyjiacan/vue-slideout/dist/slideout.css'
// import Slideout component, and set the defaults props
Vue.use(Slideout, {
// set default props here
})Foobar.vue
Try it on the fly CodePen
yarn
# start dev server
yarn serve
# Build library
yarn release暂无开放 Issues,或尚未同步最近议题。