| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/bitnami/htdocs/app/node_modules/vuetify-dialog/src/components/ |
Upload File : |
<template>
<v-card
:flat="flat"
:class="{'v-inner-scroll': innerScroll }"
>
<slot name="title">
<v-card-title
v-if="title"
:class="titleClass"
>
{{ title }}
</v-card-title>
</slot>
<v-card-text>
<slot />
</v-card-text>
<DialogActions
v-if="actions"
ref="actions"
:actions="actions"
v-bind="actionOptions"
:handler="handler || handle"
/>
<slot name="footer" />
</v-card>
</template>
<script>
import DialogActions from './DialogActions.vue'
import { VCard, VCardTitle, VCardText } from 'vuetify/lib'
export default {
inheritAttrs: false,
components: {
DialogActions,
VCard,
VCardTitle,
VCardText
},
props: {
title: String,
flat: Boolean,
innerScroll: Boolean,
titleClass: [String, Object],
actions: [Array, Object, Function],
actionOptions: {
type: Object,
default: () => ({
flat: true
})
},
handle: Function, // todo: remove this parameter in next version
handler: Function
},
created () {
if (this.handle) {
console.warn('DEPRECATED: "handle" prop will be deprecated, please use "handler" instead')
}
},
methods: {
trigger (name) {
this.$refs.actions && this.$refs.actions.trigger(name)
}
}
}
</script>
<style lang="scss">
.v-dialog:not(.v-dialog--fullscreen) {
.v-card.v-inner-scroll {
.v-card__text {
max-height: 70vh;
}
}
}
.v-card.v-inner-scroll {
.v-card__text {
overflow: auto;
background:
linear-gradient(white 30%, hsla(0,0%,100%, 0)),
linear-gradient(hsla(0,0%,100%,0) 10px, white 70%) bottom,
radial-gradient(at top, rgba(0,0,0,0.2), transparent 70%),
radial-gradient(at bottom, rgba(0,0,0,0.2), transparent 70%) bottom;
background-repeat:no-repeat;
background-size: 100% 30px, 100% 30px, 100% 10px, 100% 10px;
background-attachment:local, local, scroll, scroll;
}
}
.theme--dark.v-inner-scroll {
.v-card__text {
background:
linear-gradient(#1d1d1d 30%, rgba(255, 255, 255, 0)),
linear-gradient(hsla(0,0%,100%,0) 10px, #1d1d1d 70%) bottom,
radial-gradient(at top, rgba(255, 255, 255, 0.2), transparent 70%),
radial-gradient(at bottom, rgba(255, 253, 253, 0.2), transparent 70%) bottom;
background-repeat:no-repeat;
background-size: 100% 30px, 100% 30px, 100% 10px, 100% 10px;
background-attachment:local, local, scroll, scroll;
}
}
</style>