chore(log): add scaffold

This commit is contained in:
07akioni 2019-12-13 22:35:03 +08:00
parent 93e48ded0f
commit 3b0c7f1228
7 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,4 @@
# Log
```demo
basic
```

View File

@ -0,0 +1,8 @@
/* istanbul ignore file */
import NLog from './src/main.vue'
NLog.install = function (Vue) {
Vue.component(NLog.name, NLog)
}
export default NLog

View File

@ -0,0 +1,13 @@
<template>
<div>log</div>
</template>
<script>
export default {
name: 'NLog',
props: {
}
}
</script>

View File

@ -2,7 +2,9 @@
<div
class="n-timeline"
:class="{
[`n-${synthesizedTheme}-theme`]: synthesizedTheme
[`n-${synthesizedTheme}-theme`]: synthesizedTheme,
[`n-timeline--${size}-size`]: true,
[`n-timeline--${itemPlacement}-placement`]: true
}"
>
<slot />
@ -16,6 +18,20 @@ import themeable from '../../../mixins/themeable'
export default {
name: 'NTimeline',
mixins: [withapp, themeable],
props: {
itemPlacement: {
validator (value) {
return ['left', 'right'].includes(value)
},
default: 'right'
},
size: {
validator (value) {
return ['medium', 'large'].includes(value)
},
default: 'medium'
}
},
provide () {
return {
NTimeline: this