-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
main.js:
import Vue from 'vue/dist/vue'
import router from './router'
import Cube from 'cube-ui'
import 'cube-ui/lib/style.css'
Vue.use(Cube)
new Vue({
el: '#app',
router,
})index.vue:
<template>
<div id="index">
<cube-button @click="showDiaog" :disabled="true" icon="cubeic-right">show dialog</cube-button>
<cube-button type="submit" :active="true">submit</cube-button>
<div class="scroll-wrapper">
<cube-scroll :data="items"></cube-scroll>
</div>
</div>
</template>
<script>
export default {
data() {
return {
items: [1, 2, 3, 4, 5],
}
},
methods: {
showDiaog() {
this.$createDialog({
type: 'alert',
title: 'Alert',
content: 'dialog content'
}).show()
}
}
}
</script>