代码提示优化
This commit is contained in:
@@ -169,15 +169,16 @@ const onChangeTab = (name: IconType) => {
|
||||
getAwesomeIconfontNames().then((res) => {
|
||||
state.fontIconNames = res.map((name) => `fa ${name}`)
|
||||
})
|
||||
} else if (name == 'ali') {
|
||||
getIconfontNames().then((res) => {
|
||||
state.fontIconNames = res.map((name) => `iconfont ${name}`)
|
||||
})
|
||||
} else if (name == 'local') {
|
||||
getLocalIconfontNames().then((res) => {
|
||||
state.fontIconNames = res
|
||||
})
|
||||
}
|
||||
}
|
||||
// else if (name == 'ali') {
|
||||
// getIconfontNames().then((res) => {
|
||||
// state.fontIconNames = res.map((name) => `iconfont ${name}`)
|
||||
// })
|
||||
// } else if (name == 'local') {
|
||||
// getLocalIconfontNames().then((res) => {
|
||||
// state.fontIconNames = res
|
||||
// })
|
||||
// }
|
||||
}
|
||||
const onIcon = (icon: string) => {
|
||||
state.iconSelectorMouseover = state.popoverVisible = false
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export const defaultAttribute = {
|
||||
import { VxeTableProps } from "vxe-table";
|
||||
|
||||
export const defaultAttribute:VxeTableProps = {
|
||||
align: 'center',
|
||||
class: 'ba-data-table w100',
|
||||
headerCellClassName: 'table-header-cell',
|
||||
border: true,
|
||||
stripe: true,
|
||||
|
||||
@@ -18,8 +18,9 @@
|
||||
<div class='table-header ba-scroll-style' v-if='showOperation'>
|
||||
<slot name='operation'></slot>
|
||||
<!-- 右侧搜索框和工具按钮 -->
|
||||
<div class='table-search' v-if='$slots.select'>
|
||||
<div class='table-search-button-group'>
|
||||
<div class='table-search' >
|
||||
<slot name='right'></slot>
|
||||
<div class='table-search-button-group' v-if='$slots.select'>
|
||||
<el-button class='table-search-button-item' color='#dcdfe6' plain @click='showSelectChange'>
|
||||
<Icon size='14' name='el-icon-Search' />
|
||||
</el-button>
|
||||
|
||||
Reference in New Issue
Block a user