naive-ui/demo/components/nimbusFormCardDemo.vue

124 lines
3.2 KiB
Vue
Raw Normal View History

<template>
2019-06-21 13:11:06 +08:00
<div
ref="doc"
2019-06-24 15:11:27 +08:00
class="n-doc"
2019-06-21 13:11:06 +08:00
>
2019-06-24 15:11:27 +08:00
<div class="n-doc-header">
<n-gradient-text :font-size="20">
Nimbus Form Card / n-nimbus-form-card
</n-gradient-text>
</div>
<div class="n-doc-body">
<div class="n-doc-section">
<div class="n-doc-section__header">
Basic Usage
</div>
<div class="n-doc-section__view">
<n-modal v-model="isActive">
<template v-slot:activator>
<n-button
size="small"
@click="isActive = true"
>
Parklife
</n-button>
</template>
<n-nimbus-form-card
width="1032"
title="Parklife"
:deactivate="() => isActive = false"
>
<template v-slot:header>
v-slot:header
</template>
<template v-slot:footer>
v-slot:footer
</template>
<template v-slot:content>
All the people<br>
So many people<br>
And the all go hand in hand<br>
Hand in hand throught their parklife<br>
All the people<br>
So many people<br>
And the all go hand in hand<br>
Hand in hand throught their parklife<br>
All the people<br>
So many people<br>
And the all go hand in hand<br>
Hand in hand throught their parklife<br>
All the people<br>
So many people<br>
And the all go hand in hand<br>
Hand in hand throught their parklife<br>
All the people<br>
So many people<br>
And the all go hand in hand<br>
Hand in hand throught their parklife<br>
All the people<br>
So many people<br>
And the all go hand in hand<br>
Hand in hand throught their parklife<br>
2019-06-24 15:11:27 +08:00
</template>
</n-nimbus-form-card>
</n-modal>
</div>
<div class="n-doc-section__source">
<textarea><n-modal v-model="isActive">
2019-06-17 16:12:10 +08:00
<template v-slot:activator>
2019-06-24 15:11:27 +08:00
<n-button
size="small"
@click="isActive = true"
>
Parklife
</n-button>
2019-06-17 16:12:10 +08:00
</template>
<n-nimbus-form-card
width="1032"
2019-06-24 15:11:27 +08:00
title="Parklife"
2019-06-17 16:12:10 +08:00
:deactivate="() => isActive = false"
>
<template v-slot:header>
v-slot:header
</template>
<template v-slot:footer>
v-slot:footer
</template>
<template v-slot:content>
2019-06-24 15:11:27 +08:00
All the people<br>
So many people<br>
And they all go hand in hand<br>
Hand in hand throught their parklife
2019-06-17 16:12:10 +08:00
</template>
</n-nimbus-form-card>
</n-modal>
2019-06-24 15:11:27 +08:00
<script>
export default {
data () {
return {
isActive: false
}
}
}
</script></textarea>
</div>
</div>
</div>
</div>
</template>
<script>
2019-06-21 13:11:06 +08:00
import docCodeEditorMixin from './docCodeEditorMixin'
export default {
2019-06-21 13:11:06 +08:00
mixins: [docCodeEditorMixin],
data () {
return {
2019-06-24 15:11:27 +08:00
isActive: false
}
2019-06-24 15:11:27 +08:00
},
methods: {
}
}
</script>