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
1 parent
4f64c82
commit 9a08c5d
Showing
28 changed files
with
379 additions
and
180 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,59 @@ | ||
<template> | ||
<div class="color-block-box" | ||
:style="{ transform: `rotate(-60deg) translateY(${left}%)` }" | ||
:class="{ | ||
[color]: true, | ||
'border-left': border === 'left', | ||
'border-right': border === 'right' | ||
}" | ||
></div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'color-block-box', | ||
props: { | ||
left: Number, | ||
border: { | ||
type: String, | ||
default: 'right' | ||
}, | ||
color: String | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
.color-block-box { | ||
z-index: -1; | ||
position: absolute; | ||
display: flex; | ||
width: 100%; | ||
padding-bottom: 50%; | ||
&.border-right { | ||
border-bottom-width: 1rem; | ||
border-bottom-style: solid; | ||
} | ||
&.border-left { | ||
border-top-width: 1rem; | ||
border-top-style: solid; | ||
} | ||
&.primary { | ||
background-color: $primary-opacity-9; | ||
border-color: $accent; | ||
} | ||
&.accent { | ||
background-color: $accent; | ||
border-color: $red; | ||
} | ||
&.red { | ||
background-color: $red; | ||
border-color: $accent; | ||
} | ||
} | ||
</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,14 @@ | ||
/** | ||
* @file Color block component / ES module | ||
* @author Surmon <surmon@foxmail.com> | ||
*/ | ||
|
||
import ColorBlockComponent from './block' | ||
|
||
const colorBlock = { | ||
install(Vue) { | ||
Vue.component(ColorBlockComponent.name, ColorBlockComponent) | ||
} | ||
} | ||
|
||
export default colorBlock |
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
2 changes: 1 addition & 1 deletion
2
components/common/vue-comment/index.js → components/common/comment/index.js
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
<script> | ||
export default { | ||
name: 'vue-empty' | ||
name: 'empty-box' | ||
} | ||
</script> | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
components/common/vue-empty/index.js → components/common/empty/index.js
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
2 changes: 1 addition & 1 deletion
2
components/common/vue-loading/index.js → components/common/loading/index.js
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.