Commit a61480e7 authored by JingChao's avatar JingChao

Update index.vue

parent 6b46a0e8
<template> <template>
<section :class="[c(),tabCss, cusClass,overFlow]" > <section :class="[c(),cusClass,overFlow]" >
<section :style="transform" class="tab-content"> <section :style="transform" :class="[tabCss]" class="tab-content">
<slot/> <slot/>
</section> </section>
</section> </section>
...@@ -10,7 +10,7 @@ import { base } from '../../common/mixins' ...@@ -10,7 +10,7 @@ import { base } from '../../common/mixins'
import stabItem from './tab-item' import stabItem from './tab-item'
export default { export default {
name: 'SwitchTab', name: 'STab',
mixins: [base], mixins: [base],
component: { stabItem }, component: { stabItem },
props: { props: {
...@@ -112,6 +112,7 @@ export default { ...@@ -112,6 +112,7 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
@import "../../common/styles/vue-1px";
.auto-overflow-x { .auto-overflow-x {
overflow-x: auto; overflow-x: auto;
} }
...@@ -140,32 +141,6 @@ export default { ...@@ -140,32 +141,6 @@ export default {
.setTopLine(); .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> </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