mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
[update]使has方法可用
This commit is contained in:
parent
c59d0fb55e
commit
b71d170331
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div :class="grouped ? 'el-button-group' : ''">
|
||||
<el-button v-for="item in actions" :key="item.name" :size="size" v-bind="item" @click="handleClick(item.name)">
|
||||
<i v-if="item.fa" :class="'fa ' + item.fa" />
|
||||
<i v-if="item.has" :class="'fa ' + item.fa" />
|
||||
{{ item.title }}
|
||||
</el-button>
|
||||
<el-dropdown v-if="moreActions.length > 0" trigger="click" @command="handleClick">
|
||||
|
@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="table-header">
|
||||
<slot name="header">
|
||||
<div class="table-header-left-side">
|
||||
<div v-if="hasLeftActions" class="table-header-left-side">
|
||||
<ActionsGroup :actions="actions" :more-actions="moreActions" class="header-action" @actionClick="handleActionClick" />
|
||||
</div>
|
||||
<div class="table-action-right-side">
|
||||
<el-input v-model="keyword" suffix-icon="el-icon-search" :placeholder="$tc('Search')" class="right-side-item action-search" size="small" clearable @change="handleSearch" @input="handleSearch" />
|
||||
<el-input v-if="hasSearch" v-model="keyword" suffix-icon="el-icon-search" :placeholder="$tc('Search')" class="right-side-item action-search" size="small" clearable @change="handleSearch" @input="handleSearch" />
|
||||
<ActionsGroup :is-fa="true" :actions="defaultRightSideActions" class="right-side-actions right-side-item" @actionClick="handleActionClick" />
|
||||
</div>
|
||||
</slot>
|
||||
|
Loading…
Reference in New Issue
Block a user