File tree Expand file tree Collapse file tree 2 files changed +31
-7
lines changed Expand file tree Collapse file tree 2 files changed +31
-7
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <blockquote :class =" classes" >
3+ <slot ></slot >
4+ </blockquote >
5+ </template >
6+
7+ <script lang="ts">
8+ import { Classy } from " @/utils/helpers" ;
9+ import { computed , defineComponent } from " vue" ;
10+
11+ export default defineComponent ({
12+ setup() {
13+ const classes = computed (() =>
14+ new Classy (" p-6 border-l-4 border-green-500 bg(gray-100 dark:gray-800)" )
15+ .twind ()
16+ .val ()
17+ );
18+ return { classes };
19+ },
20+ });
21+ </script >
22+
23+ <style scoped>
24+ </style >
Original file line number Diff line number Diff line change 1313 <slot name =" right-side" ></slot >
1414 </div >
1515 </div >
16- <div :class =" tw`mt-12`" v-if =" notice" >
17- <blockquote
18- :class =" tw`p-6 border-l-4 border-shamrock bg(white dark:gray-800)`"
19- >
20- <slot name =" notice" ></slot >
21- </blockquote >
22- </div >
16+ <Blockquote :class =" tw`mt-12`" v-if =" notice" >
17+ <slot name =" notice" ></slot >
18+ </Blockquote >
2319 </header >
2420</template >
2521
2622<script lang="ts">
2723import { defineComponent } from " vue" ;
2824import { tw } from " twind" ;
25+ import Blockquote from " @/views/components/Blockquote.vue" ;
2926
3027export default defineComponent ({
28+ components: {
29+ Blockquote ,
30+ },
3131 setup(_ , { slots }) {
3232 const { notice } = slots ;
3333 return { tw , notice };
You can’t perform that action at this time.
0 commit comments