Skip to content

Commit

Permalink
chore: delete useless components
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Mar 31, 2024
1 parent 2c4a66d commit 9284e81
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 160 deletions.
21 changes: 2 additions & 19 deletions src/components/AutoSection.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<script setup lang="ts">
import {
LInfinite,
LCompare,
LComment,
type LInfiniteProps,
type LCompareProps,
type LCommentProps
} from '../index'
Expand All @@ -15,7 +13,6 @@ import LSection, { type LSectionProps } from './layout/Section.vue'
const components = {
LTileWrap,
LInfinite,
LCompare,
LComment,
LGallery
Expand All @@ -26,7 +23,6 @@ export interface LAutoSectionProps extends LSectionProps {
des?: string
// 全为对象
props?:
| LInfiniteProps
| LCompareProps
| LCommentProps
| LTileWrapProps
Expand All @@ -43,26 +39,13 @@ const { color, left, cover, props } = withDefaults(
)
interface _LAutoSectionTypeList {
type: 'LTileWrap' | 'LInfinite' | 'LCompare' | 'LComment' | 'LGallery'
props:
| LInfiniteProps
| LCompareProps
| LCommentProps
| LTileWrapProps
| LGalleryProps
type: 'LTileWrap' | 'LCompare' | 'LComment' | 'LGallery'
props: LCompareProps | LCommentProps | LTileWrapProps | LGalleryProps
}
const _typeList: _LAutoSectionTypeList[] = []
if (props) {
if ('infinites' in props) {
_typeList.push({
type: 'LInfinite',
props: {
infinites: props.infinites
}
})
}
if ('comments' in props) {
_typeList.push({
type: 'LComment',
Expand Down
127 changes: 0 additions & 127 deletions src/components/feature/Infinite.vue

This file was deleted.

11 changes: 0 additions & 11 deletions src/components/layout/Grid.vue

This file was deleted.

3 changes: 0 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ export { default as LTile } from './components/feature/Tile.vue'
export * from './components/layout/Footer.vue'
export { default as LFooter } from './components/layout/Footer.vue'

export * from './components/layout/Grid.vue'
export { default as LGrid } from './components/layout/Grid.vue'

export * from './components/layout/Section.vue'
export { default as LSection } from './components/layout/Section.vue'

Expand Down

0 comments on commit 9284e81

Please sign in to comment.