mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 10:26:45 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
41
components/Remark/index.vue
Normal file
41
components/Remark/index.vue
Normal file
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<view class="page-remark" :class="{'hidden':hidden,'fixed':fixed}">
|
||||
<slot />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Remark',
|
||||
props: {
|
||||
fixed: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
hidden: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page-remark {
|
||||
margin-top: 50px;
|
||||
background: #fff;
|
||||
padding: 15px;
|
||||
color: #aa0000;
|
||||
border: 2px dotted #ffaa00;
|
||||
}
|
||||
|
||||
.page-remark.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page-remark.fixed {
|
||||
position: fixed;
|
||||
width: 950px;
|
||||
bottom: 0px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user