Commit a31a89d4 authored by Nature's avatar Nature

Merge branch 'v0.0.1' of https://hel.hand-china.com/easyUI/hls-easy-ui into v0.0.1

parents fe9c36a7 1bf08237
<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>
...@@ -81,6 +81,7 @@ export default { ...@@ -81,6 +81,7 @@ export default {
actived (index, clientWidth) { actived (index, clientWidth) {
this.activedIndex = index this.activedIndex = index
this.$emit('tabClick', index) this.$emit('tabClick', index)
this.$emit('input', index)
this.scrollToActiveTab(index, clientWidth) this.scrollToActiveTab(index, clientWidth)
}, },
...@@ -111,6 +112,7 @@ export default { ...@@ -111,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;
} }
...@@ -139,32 +141,6 @@ export default { ...@@ -139,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