init ColorPicker
This commit is contained in:
parent
ad22557812
commit
c6faec44a8
8 changed files with 40 additions and 1 deletions
|
@ -55,6 +55,7 @@ li + li { border-left: solid 1px #bbb; padding-left: 10px; margin-left: 10px; }
|
|||
<li><router-link to="/message">Message</router-link></li>
|
||||
<li><router-link to="/notice">Notice</router-link></li>
|
||||
<li><router-link to="/avatar">Avatar</router-link></li>
|
||||
<li><router-link to="/color-picker">ColorPicker</router-link></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<router-view></router-view>
|
||||
|
|
|
@ -184,6 +184,10 @@ const router = new VueRouter({
|
|||
{
|
||||
path: '/avatar',
|
||||
component: require('./routers/avatar.vue')
|
||||
},
|
||||
{
|
||||
path: '/color-picker',
|
||||
component: require('./routers/color-picker.vue')
|
||||
}
|
||||
]
|
||||
});
|
||||
|
|
13
examples/routers/color-picker.vue
Normal file
13
examples/routers/color-picker.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {};
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
13
src/components/color-picker/color-picker.vue
Normal file
13
src/components/color-picker/color-picker.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
props: {},
|
||||
data () {
|
||||
return {};
|
||||
},
|
||||
computed: {},
|
||||
methods: {}
|
||||
};
|
||||
</script>
|
0
src/components/color-picker/color.js
Normal file
0
src/components/color-picker/color.js
Normal file
2
src/components/color-picker/index.js
Normal file
2
src/components/color-picker/index.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
import ColorPicker from './color-picker.vue';
|
||||
export default ColorPicker;
|
5
src/styles/components/color-picker.less
Normal file
5
src/styles/components/color-picker.less
Normal file
|
@ -0,0 +1,5 @@
|
|||
@color-picker-prefix-cls: ~"@{css-prefix}color-picker";
|
||||
|
||||
.@{color-picker-prefix-cls} {
|
||||
|
||||
}
|
|
@ -39,4 +39,5 @@
|
|||
@import "rate";
|
||||
@import "upload";
|
||||
@import "tree";
|
||||
@import "avatar";
|
||||
@import "avatar";
|
||||
@import "color-picker";
|
Loading…
Add table
Reference in a new issue