1.0.1 • Published 3 years ago
lmq_npm_plugin v1.0.1
lmq-btn
一个测试的 npm 包
install
npm install lmq_npm_plugin
use
// main.js
import btn from 'lmq_npm_plugin'
Vue.use(btn)
// demo.js
<template>
<div class="demo">
<btn :text="msg"></btn>
</div>
</template>
<script>
import { ref } from 'vue'
export default {
name: 'demo',
setup() {
const msg = ref('hello world')
return {
msg
}
}
}
</script>