Skip to content

Commit

Permalink
[+] ColumnView
Browse files Browse the repository at this point in the history
  • Loading branch information
LS-KR committed Oct 14, 2024
1 parent 14a566f commit 4b76219
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare module 'vue' {
BlurBlock: typeof import('./components/BlurBlock.vue')['default']
CapDownQuote: typeof import('./components/CapDownQuote.vue')['default']
ChannelBackupButton: typeof import('./components/buttons/ChannelBackupButton.vue')['default']
ColumnView: typeof import('./components/ColumnView.vue')['default']
Divider: typeof import('./components/divider.vue')['default']
DynamicIcon: typeof import('./components/DynamicIcon.vue')['default']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
Expand Down
26 changes: 26 additions & 0 deletions src/components/ColumnView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script lang="ts">
import {Component, Vue} from 'vue-facing-decorator';
@Component({})
export default class ColumnView extends Vue {
}
</script>

<template>
<div class="column-view">
<slot></slot>
</div>
</template>

<style lang="scss">
.column-view {
display: block;
column-count: 2;
column-gap: 20px;
@media screen and (max-width: 800px) {
column-count: 1;
}
}
</style>
16 changes: 12 additions & 4 deletions src/components/MDX.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<script lang="tsx">
import BackupButtons from "@/components/buttons/BackupButtons.vue";
import Banner from "@/components/Banner.vue";
import CapDownQuote from "@/components/CapDownQuote.vue";
import BackupButtons from "@/components/buttons/BackupButtons.vue";
import ChannelBackupButton from "@/components/buttons/ChannelBackupButton.vue";
import CapDownQuote from "@/components/CapDownQuote.vue";
import ColumnView from "@/components/ColumnView.vue";
import DynamicIcon from "@/components/DynamicIcon.vue";
import * as Vue from 'vue';
import {computed, defineComponent} from 'vue';
import PhotoScroll from './PhotoScroll.vue';
import BlurBlock from "./BlurBlock.vue";
import PhotoScroll from './PhotoScroll.vue';
export default defineComponent({
name: "MDX",
Expand Down Expand Up @@ -37,7 +38,14 @@ export default defineComponent({
{
renderFunction.value?.({
components: {
PhotoScroll, ChannelBackupButton, CapDownQuote, BackupButtons, DynamicIcon, Banner, BlurBlock
PhotoScroll,
ChannelBackupButton,
CapDownQuote,
ColumnView,
BackupButtons,
DynamicIcon,
Banner,
BlurBlock
}
})
}
Expand Down

0 comments on commit 4b76219

Please sign in to comment.