mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
chore(log): add scaffold
This commit is contained in:
parent
93e48ded0f
commit
3b0c7f1228
0
demo/documentation/components/log/enUS/basic.md
Normal file
0
demo/documentation/components/log/enUS/basic.md
Normal file
4
demo/documentation/components/log/enUS/index.md
Normal file
4
demo/documentation/components/log/enUS/index.md
Normal file
@ -0,0 +1,4 @@
|
||||
# Log
|
||||
```demo
|
||||
basic
|
||||
```
|
0
demo/documentation/components/log/index.entry
Normal file
0
demo/documentation/components/log/index.entry
Normal file
0
demo/documentation/components/log/zhCN/index.md
Normal file
0
demo/documentation/components/log/zhCN/index.md
Normal file
8
packages/common/Log/index.js
Normal file
8
packages/common/Log/index.js
Normal 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
|
13
packages/common/Log/src/main.vue
Normal file
13
packages/common/Log/src/main.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>log</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'NLog',
|
||||
props: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user