Commit a61480e7 authored by JingChao's avatar JingChao

Update index.vue

parent 6b46a0e8
<template>
<section :class="[c(),tabCss, cusClass,overFlow]" >
<section :style="transform" class="tab-content">
<section :class="[c(),cusClass,overFlow]" >
<section :style="transform" :class="[tabCss]" class="tab-content">
<slot/>
</section>
</section>
......@@ -10,7 +10,7 @@ import { base } from '../../common/mixins'
import stabItem from './tab-item'
export default {
name: 'SwitchTab',
name: 'STab',
mixins: [base],
component: { stabItem },
props: {
......@@ -112,6 +112,7 @@ export default {
</script>
<style lang="less">
@import "../../common/styles/vue-1px";
.auto-overflow-x {
overflow-x: auto;
}
......@@ -140,32 +141,6 @@ export default {
.setTopLine();
}
}
.setTopLine(@c: rgba(0,0,0,.1)) {
content: " ";
position: absolute;
left: 0;
top: 0;
right: 0;
height: 1px;
border-top: 1px solid @c; /*no*/
color: @c;
transform-origin: 0 0;
transform: scaleY(0.5);
}
.setBottomLine(@c: rgba(0,0,0,.1)) {
content: " ";
position: absolute;
left: 0;
bottom: 0;
right: 0;
height: 1px;
border-bottom: 1px solid @c; /*no*/
color: @c;
transform-origin: 0 100%;
transform: scaleY(0.5);
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment