mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
Merge branch 'develop' of ***REMOVED*** into develop
This commit is contained in:
commit
3f27aa6dbd
32
demo/components/anchorDemo/index.vue
Normal file
32
demo/components/anchorDemo/index.vue
Normal file
@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div
|
||||
ref="doc"
|
||||
class="n-doc"
|
||||
>
|
||||
<div class="n-doc-header">
|
||||
<n-gradient-text :font-size="20">
|
||||
scaffold
|
||||
</n-gradient-text>
|
||||
</div>
|
||||
<div class="n-doc-body">
|
||||
<scaffold />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import scaffold from './scaffold.demo.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
scaffold
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
28
demo/components/anchorDemo/scaffold.demo.vue
Normal file
28
demo/components/anchorDemo/scaffold.demo.vue
Normal file
@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="n-doc-section">
|
||||
<div class="n-doc-section__header">
|
||||
Scaffold
|
||||
</div>
|
||||
<div
|
||||
class="n-doc-section__view"
|
||||
style="flex-wrap: nowrap;"
|
||||
>
|
||||
<!--EXAMPLE_START-->
|
||||
Write some demo here
|
||||
<!--EXAMPLE_END-->
|
||||
</div>
|
||||
<pre class="n-doc-section__inspect">Inspect some value here</pre>
|
||||
<n-doc-source-block>
|
||||
<!--SOURCE-->
|
||||
</n-doc-source-block>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
32
demo/components/popConfirmDemo/index.vue
Normal file
32
demo/components/popConfirmDemo/index.vue
Normal file
@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div
|
||||
ref="doc"
|
||||
class="n-doc"
|
||||
>
|
||||
<div class="n-doc-header">
|
||||
<n-gradient-text :font-size="20">
|
||||
scaffold
|
||||
</n-gradient-text>
|
||||
</div>
|
||||
<div class="n-doc-body">
|
||||
<scaffold />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import scaffold from './scaffold.demo.vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
scaffold
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
</script>
|
28
demo/components/popConfirmDemo/scaffold.demo.vue
Normal file
28
demo/components/popConfirmDemo/scaffold.demo.vue
Normal file
@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="n-doc-section">
|
||||
<div class="n-doc-section__header">
|
||||
Scaffold
|
||||
</div>
|
||||
<div
|
||||
class="n-doc-section__view"
|
||||
style="flex-wrap: nowrap;"
|
||||
>
|
||||
<!--EXAMPLE_START-->
|
||||
Write some demo here
|
||||
<!--EXAMPLE_END-->
|
||||
</div>
|
||||
<pre class="n-doc-section__inspect">Inspect some value here</pre>
|
||||
<n-doc-source-block>
|
||||
<!--SOURCE-->
|
||||
</n-doc-source-block>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
@ -47,6 +47,8 @@ import tagDemo from './components/tagDemo'
|
||||
import timelineDemo from './components/timelineDemo'
|
||||
import progressDemo from './components/progressDemo'
|
||||
import dividerDemo from './components/dividerDemo'
|
||||
import popConfirmDemo from './components/popConfirmDemo'
|
||||
import anchorDemo from './components/anchorDemo'
|
||||
import demo from './demo'
|
||||
|
||||
import popoverDebug from './debugComponents/popoverDebug'
|
||||
@ -120,7 +122,9 @@ const routes = [
|
||||
{ path: '/n-scrollbar-debug2', component: scrollbarDebug2 },
|
||||
{ path: '/n-back-top', component: backTopDemo },
|
||||
{ path: '/n-date-picker-debug', component: datePickerDebug },
|
||||
{ path: '/n-divider', component: dividerDemo }
|
||||
{ path: '/n-divider', component: dividerDemo },
|
||||
{ path: '/n-pop-confirm', component: popConfirmDemo },
|
||||
{ path: '/n-anchor', component: anchorDemo }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
4
index.js
4
index.js
@ -45,6 +45,8 @@ import BackTop from './packages/common/BackTop'
|
||||
import Divider from './packages/common/Divider'
|
||||
import Collapse from './packages/common/Collapse'
|
||||
import Timeline from './packages/common/Timeline'
|
||||
import PopConfirm from './packages/common/PopConfirm'
|
||||
import Anchor from './packages/common/Anchor'
|
||||
|
||||
function install (Vue) {
|
||||
Card.install(Vue)
|
||||
@ -94,6 +96,8 @@ function install (Vue) {
|
||||
Divider.install(Vue)
|
||||
Collapse.install(Vue)
|
||||
Timeline.install(Vue)
|
||||
PopConfirm.install(Vue)
|
||||
Anchor.install(Vue)
|
||||
}
|
||||
|
||||
export default {
|
||||
|
8
packages/common/Anchor/index.js
Normal file
8
packages/common/Anchor/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
import Scaffold from './src/main.vue'
|
||||
|
||||
Scaffold.install = function (Vue) {
|
||||
Vue.component(Scaffold.name, Scaffold)
|
||||
}
|
||||
|
||||
export default Scaffold
|
9
packages/common/Anchor/src/main.vue
Normal file
9
packages/common/Anchor/src/main.vue
Normal file
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div>example</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'NScaffold'
|
||||
}
|
||||
</script>
|
8
packages/common/PopConfirm/index.js
Normal file
8
packages/common/PopConfirm/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
import Scaffold from './src/main.vue'
|
||||
|
||||
Scaffold.install = function (Vue) {
|
||||
Vue.component(Scaffold.name, Scaffold)
|
||||
}
|
||||
|
||||
export default Scaffold
|
9
packages/common/PopConfirm/src/main.vue
Normal file
9
packages/common/PopConfirm/src/main.vue
Normal file
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div>example</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'NScaffold'
|
||||
}
|
||||
</script>
|
6
styles/Anchor.scss
Normal file
6
styles/Anchor.scss
Normal file
@ -0,0 +1,6 @@
|
||||
@import './mixins/mixins.scss';
|
||||
@import './theme/default.scss';
|
||||
|
||||
@include b(scaffold) {
|
||||
position: relative;
|
||||
}
|
6
styles/PopConfirm.scss
Normal file
6
styles/PopConfirm.scss
Normal file
@ -0,0 +1,6 @@
|
||||
@import './mixins/mixins.scss';
|
||||
@import './theme/default.scss';
|
||||
|
||||
@include b(scaffold) {
|
||||
position: relative;
|
||||
}
|
@ -35,6 +35,8 @@
|
||||
@import './Divider.scss';
|
||||
@import './Collapse.scss';
|
||||
@import './Timeline.scss';
|
||||
@import './PopConfirm.scss';
|
||||
@import './Anchor.scss';
|
||||
|
||||
@import "./NimbusServiceLayout.scss";
|
||||
@import "./Popover.scss";
|
||||
|
Loading…
Reference in New Issue
Block a user