# 简单开始
# vue2
# 安装 sh
npm install lattice-lottery --save
# 注册
import Vue from 'vue'
# 根据个人需要引入
import {
LotteryGrid,
LotteryList,
SlotMachine
} from 'lattice-lottery'
import 'lattice-lottery/lib/lattice-lottery.css'
Vue.use(LotteryGrid)
Vue.use(LotteryList)
Vue.use(SlotMachine)
new Vue({
render: h => h(App),
}).$mount('#app')
# vue3
# 安装 sh
npm install lattice-lottery-plus --save
# 注册
import { createApp } from 'vue'
import App from './App.vue'
# 根据个人需要引入
import {
LotteryGrid,
LotteryList,
SlotMachine
} from 'lattice-lottery-plus'
import 'lattice-lottery-plus/lib/lattice-lottery.css'
createApp(App).use(LotteryGrid).use(LotteryList).use(SlotMachine).mount('#app')