Skip to content

Commit

Permalink
Merge branch 'dev' of https://gitee.com/lookforwhat/vue-devui into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
unfound committed Aug 10, 2021
2 parents 50bcb26 + ea5a640 commit 7430303
Show file tree
Hide file tree
Showing 79 changed files with 3,516 additions and 2,445 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ dist-ssr
*.local
package-lock.json
.history
.vscode
devui/vue-devui.ts
10 changes: 10 additions & 0 deletions devui/accordion/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { App } from 'vue'
import Accordion from './accordion'

Accordion.install = function(Vue: App) {
Vue.component(Accordion.name, Accordion)
};

Accordion.version = '0.0.1'

export default Accordion
10 changes: 10 additions & 0 deletions devui/alert/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { App } from 'vue'
import Alert from './alert'

Alert.install = function(Vue: App) {
Vue.component(Alert.name, Alert)
};

Alert.version = '0.0.1'

export default Alert
10 changes: 10 additions & 0 deletions devui/anchor/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { App } from 'vue'
import Anchor from './anchor'

Anchor.install = function(Vue: App) {
Vue.component(Anchor.name, Anchor)
};

Anchor.version = '0.0.1'

export default Anchor
10 changes: 10 additions & 0 deletions devui/avatar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { App } from 'vue'
import Avatar from './avatar'

Avatar.install = function(Vue: App) {
Vue.component(Avatar.name, Avatar)
};

Avatar.version = '0.0.1'

export default Avatar
10 changes: 10 additions & 0 deletions devui/button/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { App } from 'vue'
import Button from './button'

Button.install = function(Vue: App) {
Vue.component(Button.name, Button)
};

Button.version = '0.0.1'

export default Button
10 changes: 10 additions & 0 deletions devui/card/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { App } from 'vue'
import Card from './card'

Card.install = function(Vue: App) {
Vue.component(Card.name, Card)
};

Card.version = '0.0.1'

export default Card
111 changes: 111 additions & 0 deletions devui/carousel/carousel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
@import '../style/theme/color';
@import '../style/theme/shadow';
@import '../style/core/animation';

@mixin fixed-arrow-button() {
position: absolute;
top: -18px;
z-index: 2;
cursor: pointer;
width: 36px;
height: 36px;
border-radius: 18px;
background: $devui-highlight-overlay;
box-shadow: $devui-shadow-length-hover $devui-light-shadow;
display: inline-flex;
align-items: center;
justify-content: center;

&:hover {
background: $devui-area;
}

svg polygon {
fill: $devui-text;
}
}

.devui-carousel-container {
display: block;
position: relative;

.devui-carousel-arrow {
position: absolute;
width: 100%;
top: 50%;

.arrow-left {
@include fixed-arrow-button();

left: 10px;
}

.arrow-right {
@include fixed-arrow-button();

right: 10px;
}
}

.devui-carousel-item-wrapper {
position: relative;
overflow: hidden;
height: 100%;

.devui-carousel-item-container {
display: flex;
height: 100%;
position: relative;

.d-carousel-item {
flex: 1;
position: relative;
height: 100%;
}
}
}

.devui-carousel-dots {
position: absolute;
display: flex;
justify-content: center;
width: 100%;
list-style: none;

&.bottom {
bottom: 8px;
}

&.top {
top: 8px;
}

.dot-item {
width: 6px;
height: 6px;
border-radius: 3px;
margin-right: 8px;
background: $devui-icon-fill;

&:hover {
cursor: pointer;
background: $devui-list-item-hover-bg;
}

&.active {
width: 24px;
background: $devui-list-item-active-bg;
transition: all $devui-animation-duration-slow $devui-animation-ease-in-smooth;
}
}
}
}

.devui-carousel-container {
.devui-carousel-arrow {
.arrow-left,
.arrow-right {
transition: background-color $devui-animation-duration-slow $devui-animation-ease-in-smooth;
}
}
}
Loading

0 comments on commit 7430303

Please sign in to comment.