123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <template>
- <div class="tow">
- <div class="comTit">{{ tit }}</div>
- <div class="comMain sroolStop">
- <div class="row" v-for="(item,index) in data" :key="item.id">
- <div class="rowLeft">{{ (index+1)<10?`0${index+1}`:index+1 }}</div>
- <div class="rowRight">
- <div class="sroolStop">{{item.name}}</div>
- <p class="sroolStop" v-html="item.txt"></p>
- </div>
- </div>
- </div>
- <div class="comBs" @click="$emit('pageNext')"></div>
- </div>
- </template>
- <script>
- export default {
- name: "tow",
- props: {
- tit: {
- type: String,
- },
- data: {
- type: Array,
- default: () => [],
- },
- },
- components: {},
- data() {
- //这里存放数据
- return {};
- },
- //监听属性 类似于data概念
- computed: {},
- //监控data中的数据变化
- watch: {},
- //方法集合
- methods: {},
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {},
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {},
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang='less' scoped>
- .comMain::-webkit-scrollbar {
- /*滚动条整体样式*/
- width: 5px; /*高宽分别对应横竖滚动条的尺寸*/
- height: 1px;
- }
- .comMain::-webkit-scrollbar-thumb {
- /*滚动条里面小方块*/
- border-radius: 10px;
- -webkit-box-shadow: inset 0 0 5px transparent;
- background: #8a7351;
- }
- .comMain::-webkit-scrollbar-track {
- /*滚动条里面轨道*/
- -webkit-box-shadow: inset 0 0 5px transparent;
- border-radius: 10px;
- background: transparent;
- }
- .tow {
- position: relative;
- width: 100%;
- height: 100%;
- padding-top: 50px;
- .comMain {
- overflow-y: auto;
- width: 100%;
- max-height: calc(100% - 140px);
- .row {
- pointer-events: none;
- color: #8a7351;
- display: flex;
- padding: 20px 20px 0px 0;
- .rowLeft {
- width: 60px;
- padding-bottom: 20px;
- border-bottom: 1px solid #bfb094;
- font-family: "思源宋体";
- font-weight: 700;
- font-size: 50px;
- }
- .rowRight {
- flex: 1;
- padding-bottom: 20px;
- border-bottom: 1px solid #bfb094;
- padding-left: 50px;
- & > div {
- font-size: 24px;
- font-family: "思源宋体";
- }
- & > p {
- margin-top: 10px;
- font-size: 16px;
- }
- }
- }
- }
- }
- </style>
|