1.0.1 • Published 4 years ago
custom-package-vue v1.0.1
custom-package-vue
Install
npm i custom-package-vue -S
# OR
yarn add custom-package-vue --dev
Usage
Import and registry
import buoyPopup from 'custom-package-vue/lib\buoyPopup'
Vue.use(buoyPopup)
// OR
Vue.component('buoy-popup', buoyPopup);
Wrap the content by buoyPopup
组件内使用:
<buoy-popup></buoy-popup>
组件模板:
<div class="buoyPopup" :class="addclass" @click="clickEvent" @touchstart="ontouchstart" @touchmove="ontouchmove" @touchend="ontouchend" :style="{ width: itemWidth + 'px', height: itemHeight + 'px', left: left + 'px', top: top + 'px' }" ref="buoyPopup" <slot /> </div>