-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
1,052 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<h1 class="doc-header">Card 示例</h1> | ||
<Demo :component="Card1Demo" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Demo from "../components/Demo.vue"; | ||
import Card1Demo from "../demos/Card1.demo.vue"; | ||
export default { | ||
components: { | ||
Demo, | ||
}, | ||
setup() { | ||
return { | ||
Card1Demo, | ||
}; | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<h1 class="doc-header">走马灯/轮播图 示例</h1> | ||
<Demo :component="Carousel1Demo" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Demo from "../components/Demo.vue"; | ||
import Carousel1Demo from "../demos/Carousel1.demo.vue"; | ||
export default { | ||
components: { | ||
Demo, | ||
}, | ||
setup() { | ||
return { | ||
Carousel1Demo, | ||
}; | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<demo> | ||
卡片 | ||
</demo> | ||
<template> | ||
<section> | ||
<div> | ||
<Card title="video1" /> | ||
</div> | ||
<div> | ||
<Card title="video2"> 这是卡片描述 </Card> | ||
</div> | ||
<div> | ||
<Card title="video3" type="normal" /> | ||
</div> | ||
<div> | ||
<Card title="video4" type="normal"> 这是卡片描述 </Card> | ||
</div> | ||
<div> | ||
<Card title="video5" type="normal" shadow="awalys" /> | ||
</div> | ||
<div> | ||
<Card title="video6" type="normal" shadow="never" /> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Card } from "../lib/index"; | ||
export default { | ||
components: { | ||
Card, | ||
}, | ||
setup() {}, | ||
}; | ||
</script> | ||
<style lang="scss" scoped> | ||
section { | ||
display: flex; | ||
flex-wrap: wrap; | ||
div { | ||
margin: 5px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<demo> | ||
走马灯-轮播图 | ||
</demo> | ||
<template> | ||
<div> | ||
<Carousel :speed="speed" :autoDelay="autoDelay" :timingFunction="timingFunction"> | ||
<carousel-item class="container">1</carousel-item> | ||
<carousel-item class="container">2</carousel-item> | ||
<carousel-item class="container">3</carousel-item> | ||
<carousel-item class="container">4</carousel-item> | ||
<carousel-item class="container">5</carousel-item> | ||
</Carousel> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Carousel } from "../lib/index"; | ||
import { CarouselItem } from "../lib/index"; | ||
export default { | ||
components: { | ||
Carousel, | ||
CarouselItem | ||
}, | ||
setup() { | ||
return { | ||
speed: 0.45, | ||
autoDelay: 2500, | ||
timingFunction: "ease-in-out" | ||
} | ||
} | ||
}; | ||
</script> | ||
<style lang="scss" scoped> | ||
.container { | ||
text-align: center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.