Commit bd24ef18 authored by rockyl's avatar rockyl

修改dropdown的箭头为el-link

parent 73c6ac18
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
{{item.label || ''}} {{item.label || ''}}
</el-badge> </el-badge>
</el-link> </el-link>
<el-dropdown v-if="item.sub" trigger="click" placement="top" size="mini" @command="onSubCommand"> <el-dropdown v-if="item.sub" trigger="hover" placement="top" size="mini" @command="onSubCommand">
<i class="el-icon-arrow-down el-icon--right"></i> <el-link icon="el-icon-arrow-down" :underline="false"></el-link>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="(subItem, key) in item.sub" :command="key" :key="key">{{subItem}}</el-dropdown-item> <el-dropdown-item v-for="(subItem, key) in item.sub" :command="key" :key="key">{{subItem}}</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-link class="menu-item" @click="toAddView">{{$t('Add')}}</el-link> <el-link class="menu-item" @click="toAddView">{{$t('Add')}}</el-link>
<el-link @click="toImport(0)">{{$t('Import')}}</el-link> <el-link @click="toImport(0)">{{$t('Import')}}</el-link>
<el-dropdown trigger="hover" placement="top" size="mini" @command="onImportCommand"> <el-dropdown trigger="hover" placement="top" size="mini" @command="onImportCommand">
<i class="el-icon-arrow-down el-icon--right"></i> <el-link icon="el-icon-arrow-down" :underline="false"></el-link>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="single">{{$t('Single view')}}</el-dropdown-item> <el-dropdown-item command="single">{{$t('Single view')}}</el-dropdown-item>
<el-dropdown-item command="multi">{{$t('Multi views')}}</el-dropdown-item> <el-dropdown-item command="multi">{{$t('Multi views')}}</el-dropdown-item>
......
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