|
@@ -2,7 +2,12 @@
|
|
|
<div class="tool">
|
|
|
<div class="tool-left">
|
|
|
<el-button v-for="(item,index) of showTools" :icon="item.icon" :key="index" size="small" @click="clickBtn(item)">{{ item.name }}</el-button>
|
|
|
+ <slot name="tool-left" />
|
|
|
</div>
|
|
|
+ <slot name="tool-right" />
|
|
|
+ <!-- <div class="tool-right">
|
|
|
+
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -69,7 +74,10 @@ export default class GmTools extends Vue {
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
.tool-left{
|
|
|
- width: 70%;;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ .tool-right{
|
|
|
+ flex-shrink: 0;
|
|
|
}
|
|
|
}
|
|
|
</style>
|