Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-04-21 13:46:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3b44b5912ee383286409aebc2682cfb8a5d4e0b2
3b44b591
1 parent
2bfa79f1
✨ feat(组件): 新增左圆右靠列表组件
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
src/components/RightSideList/index.vue
src/components/RightSideList/index.vue
0 → 100644
View file @
3b44b59
<template>
<div class="wrapper">
<van-image
class="van-hairline--surround"
round
width="4rem"
height="4rem"
lazy-load
:src="avatar"
style="position: absolute; left: -2rem;"
>
<template v-slot:error>加载失败</template>
</van-image>
<div class="text-wrapper" @click="handle">
<van-row>
<van-col span="20" style="color: #713610;"><slot></slot></van-col>
<van-col span="4"><van-icon name="arrow" /></van-col>
</van-row>
</div>
</div>
</template>
<script setup>
import { ref, reactive, onMounted } from 'vue'
const props = defineProps({
avatar: String
})
const emit = defineEmits(['on-click']);
const handle = () => {
emit('on-click', '')
}
onMounted(() => {
})
</script>
<script>
export default {
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style lang="less" scoped>
.wrapper {
position: relative;
background-color: #fff;
margin: 1rem;
margin-right: 0;
margin-left: 4rem;
height: 4rem;
.text-wrapper {
text-align: left;
line-height: 4rem;
padding-left: 3rem;
}
}
</style>
\ No newline at end of file
Please
register
or
login
to post a comment