mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
42 lines
566 B
Vue
42 lines
566 B
Vue
<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>
|