naive-ui/demo/debug-pages/modalDebug/card.vue

98 lines
2.0 KiB
Vue
Raw Normal View History

<template>
2019-12-23 15:01:22 +08:00
<n-nimbus-form-card
width="1032"
title="Parklife"
2020-12-12 13:51:22 +08:00
:deactivate="() => (isActive = false)"
2019-12-23 15:01:22 +08:00
>
2020-11-03 15:10:29 +08:00
<template #header>
2019-12-23 15:01:22 +08:00
{{ time }}
</template>
2020-11-03 15:10:29 +08:00
<template #footer>
2020-12-16 02:24:35 +08:00
#footer
2019-12-23 15:01:22 +08:00
</template>
2020-11-03 15:10:29 +08:00
<template #content>
2020-12-12 13:51:22 +08:00
<n-input v-model="time" />
2019-12-23 15:01:22 +08:00
<n-select
v-model="selectedValue"
size="small"
2019-12-23 15:01:22 +08:00
placeholder="Please Select Type"
:items="items"
2020-12-12 13:51:22 +08:00
style="flex-grow: 1"
2019-12-23 15:01:22 +08:00
/>
2020-12-12 13:51:22 +08:00
<n-tooltip placement="bottom" trigger="click" style="margin-right: 12px">
2020-11-03 15:10:29 +08:00
<template #activator>
2020-12-12 13:51:22 +08:00
<n-button style="margin: 0">
2019-12-23 15:01:22 +08:00
California Girls(Click)
</n-button>
</template>
2020-12-12 13:51:22 +08:00
<span> I wish they all could be California girls </span>
2019-12-23 15:01:22 +08:00
</n-tooltip>
</template>
2019-12-23 15:01:22 +08:00
</n-nimbus-form-card>
</template>
2019-12-23 15:01:22 +08:00
<script>
export default {
data () {
return {
time: null,
selectedValue: null,
items: [
{
label: "Everybody's Got Something to Hide Except Me and My Monkey",
value: 'song0'
},
{
label: 'Drive My Car',
value: 'song1'
},
{
label: 'Norwegian Wood',
value: 'song2'
},
{
label: "You Won't See",
value: 'song3'
},
{
label: 'Nowhere Man',
value: 'song4'
},
{
label: 'Think For Yourseld',
value: 'song5'
},
{
label: 'The Word',
value: 'song6'
},
{
label: 'Michelle',
value: 'song7'
},
{
label: 'What goes on',
value: 'song8'
},
{
label: 'Girl',
value: 'song9'
},
{
label: "I'm looking through you",
value: 'song10'
},
{
label: 'In My Life',
value: 'song11'
},
{
label: 'Wait',
value: 'song12'
}
]
}
}
}
2019-12-23 21:40:45 +08:00
</script>