Skip to content

Commit

Permalink
fix: demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyschudel committed Jan 29, 2019
1 parent 31feeb7 commit d89a480
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 26 deletions.
Binary file removed public/favicon.ico
Binary file not shown.
17 changes: 0 additions & 17 deletions public/index.html

This file was deleted.

33 changes: 25 additions & 8 deletions src/demo/Demo.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
<template>
<div id="demo">
<VueColormind
:value.sync="colors"
:active-index.sync="activeIndex"
@color-select="onColorSelect"
/>
<pre>
<UiWidgetManager>
<UiWidget
title="colormind.io"
>
<VueColormind
:value.sync="colors"
:active-index.sync="activeIndex"
@color-select="onColorSelect"
/>
</UiWidget>
<UiWidget
title="debug"
>
<pre>
{{activeIndex}}
{{color}}
{{colors}}
</pre>
</pre>
</UiWidget>
</UiWidgetManager>
</div>
</template>

<script>
import VueColormind from './entry';
import VueColormind from '@/entry';
export default {
name: 'demo',
Expand All @@ -35,4 +45,11 @@ export default {
</script>

<style lang="scss">
#demo {
.ui-widget__content {
padding: 16px;
border: 1px solid black;
background-color: white;
}
}
</style>
5 changes: 4 additions & 1 deletion src/demo/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import Vue from 'vue';
import MonoUi from '@hotpink/vue-mono-ui';

import Demo from './Demo.vue';

Vue.config.productionTip = false;

Vue.use(MonoUi);

new Vue({
render: h => h(Demo),
}).$mount('#demo');
}).$mount('#app');

0 comments on commit d89a480

Please sign in to comment.