Skip to content

Commit

Permalink
ui: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pycook committed Jan 12, 2024
1 parent ae1f0f6 commit ab8ccf7
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 46 deletions.
85 changes: 42 additions & 43 deletions cmdb-ui/src/components/Pager/index.vue
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
<template>
<div>
<a-row class="row" type="flex" justify="end">
<a-col>
<a-space align="end">
<a-button
class="left-button"
size="small"
:disabled="prevIsDisabled"
@click="prevPage"
><a-icon
type="left"
/></a-button>
<a-button class="page-button" size="small">{{ currentPage }}</a-button>
<a-button
class="right-button"
size="small"
:disabled="nextIsDisabled"
@click="nextPage"
><a-icon
type="right"
/></a-button>
<a-dropdown
class="dropdown"
size="small"
placement="topCenter"
:trigger="['click']"
:disabled="dropdownIsDisabled"
>
<a-menu slot="overlay">
<a-menu-item v-for="(size, index) in pageSizes" :key="index" @click="handleItemClick(size)">
{{ `${size}${$t('itemsPerPage')}` }}
</a-menu-item>
</a-menu>
<a-button size="small">{{ `${pageSize}${$t('itemsPerPage')}` }}<a-icon type="down" /> </a-button>
</a-dropdown>
</a-space>
</a-col>
</a-row>
</div>
</template>
<div>
<a-row class="row" type="flex" justify="end">
<a-col>
<a-space align="end">
<a-button
class="left-button"
size="small"
:disabled="prevIsDisabled"
@click="prevPage"
><a-icon
type="left"
/></a-button>
<a-button class="page-button" size="small">{{ currentPage }}</a-button>
<a-button
class="right-button"
size="small"
:disabled="nextIsDisabled"
@click="nextPage"
><a-icon
type="right"
/></a-button>
<a-dropdown
class="dropdown"
size="small"
placement="topCenter"
:trigger="['click']"
:disabled="dropdownIsDisabled"
>
<a-menu slot="overlay">
<a-menu-item v-for="(size, index) in pageSizes" :key="index" @click="handleItemClick(size)">
{{ `${size}${$t('itemsPerPage')}` }}
</a-menu-item>
</a-menu>
<a-button size="small">{{ `${pageSize}${$t('itemsPerPage')}` }}<a-icon type="down" /> </a-button>
</a-dropdown>
</a-space>
</a-col>
</a-row>
</div>
</template>

<script>
export default {
name: 'Pager',
Expand Down Expand Up @@ -117,7 +117,7 @@
},
}
</script>

<style lang="less" scoped>
.row {
margin-top: 5px;
Expand All @@ -135,4 +135,3 @@
}
}
</style>

2 changes: 1 addition & 1 deletion cmdb-ui/src/modules/acl/views/module/resourceUserForm.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template>
<template>
<CustomDrawer
width="800px"
placement="left"
Expand Down
2 changes: 1 addition & 1 deletion cmdb-ui/src/modules/acl/views/module/triggerForm.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template>
<template>
<CustomDrawer
@close="handleClose"
width="500"
Expand Down
2 changes: 1 addition & 1 deletion cmdb-ui/src/modules/cmdb/api/preference.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ export function preferenceCitypeOrder(data) {
method: 'POST',
data: data
})
}
}

0 comments on commit ab8ccf7

Please sign in to comment.