Commit daa7d48b authored by 吴婷慧's avatar 吴婷慧

二级菜单优化

parent 86de414a
<template> <template>
<div class="icon-class" :style="`font-size:${size}px`" @click="clickEvent"> <div
class="icon-class"
:style="`font-size:${size}px`"
@click.stop="clickEvent"
>
<svg class="icon" aria-hidden="true"> <svg class="icon" aria-hidden="true">
<use :xlink:href="iconName" /> <use :xlink:href="iconName" />
</svg> </svg>
......
...@@ -215,15 +215,19 @@ ...@@ -215,15 +215,19 @@
<a-button type="primary"> <a-button type="primary">
<Icon name="ssiprint" :size="14" />打印理赔申请书 <Icon name="ssiprint" :size="14" />打印理赔申请书
</a-button> </a-button>
<a-button
type="primary"
class="mar-left10 text-r"
@click="handlerReset"
>
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button <a-button
class="mar-left10 text-r" class="mar-left10 text-r"
type="primary" type="primary"
@click="handlerSave" @click="handlerSave"
><Icon name="ssidownload" :size="14" />保存 ><Icon name="ssidownload" :size="14" />保存
</a-button> </a-button>
<a-button type="primary" class="text-r" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置
</a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
...@@ -464,8 +468,8 @@ export default { ...@@ -464,8 +468,8 @@ export default {
.mg-r(10); .mg-r(10);
} }
} }
.none-label .text-r { .none-label {
float: right; text-align: right;
} }
/deep/ .ant-upload { /deep/ .ant-upload {
width: 100%; width: 100%;
......
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
} }
} else if (item.path && item.path === key) { } else if (item.path && item.path === key) {
console.log(item, key); console.log(item, key);
menuStack.push(item); menuStack.unshift(item);
this.$store.commit("common/setMenuStack", menuStack); this.$store.commit("common/setMenuStack", menuStack);
return true; return true;
} }
......
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.sub-menu { .sub-menu {
width: 100%;
overflow-x: auto;
white-space: nowrap;
.mg-b(16); .mg-b(16);
.btn { .btn {
.fs(14); .fs(14);
......
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