1 files modified
1 files added
| New file |
| | |
| | | <template> |
| | | <view class="cur-container" :style="{color: color}"> |
| | | <view class="title"> |
| | | {{title}} |
| | | </view> |
| | | <view class="bg-box"> |
| | | |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | title: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | color: { |
| | | type: String, |
| | | default: '#000' |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .cur-container { |
| | | padding-left: 10rpx; |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | position: relative; |
| | | height: 60rpx; |
| | | |
| | | .title { |
| | | position: absolute; |
| | | z-index: 1; |
| | | } |
| | | |
| | | .bg-box { |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 10rpx; |
| | | bottom: 0; |
| | | width: 96rpx; |
| | | background: linear-gradient(to right, #407BE999, #73A2F900); |
| | | z-index: 0; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | import App from './App' |
| | | import store from '@/store'; |
| | | |
| | | |
| | | import boxTitle from '@/components/boxTitle/index.vue'; |
| | | Vue.component('box-title', boxTitle) // |
| | | |
| | | Vue.config.productionTip = false; |
| | | |