TextMiniCard.vue 516 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <text-card-base v-bind="$attrs" ellipsis>
  3. <template v-slot:footer-extra="{ text }">
  4. <b-button @click="$emit('open', text.id)" variant="outline-dark">
  5. {{ $t('text.read') }}
  6. </b-button>
  7. </template>
  8. </text-card-base>
  9. </template>
  10. <script>
  11. import TextCardBase from './TextCardBase'
  12. export default {
  13. name: 'TextMiniCard',
  14. components: {
  15. TextCardBase
  16. }
  17. }
  18. </script>
  19. <style lang="scss" scoped>
  20. .text-card {
  21. box-shadow: .5rem .5rem 1rem rgba($black, .25);
  22. }
  23. </style>