Skip to content

Commit

Permalink
fix(ui) (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-liang0615 authored Feb 4, 2024
1 parent 357880d commit ca84203
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
14 changes: 8 additions & 6 deletions oneterm-ui/src/modules/oneterm/views/assets/assets/account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<treeselect
class="custom-treeselect custom-treeselect-bgcAndBorder"
:style="{
'--custom-height': '24px',
lineHeight: '24px',
'--custom-height': '32px',
lineHeight: '32px',
'--custom-bg-color': '#fff',
'--custom-border': '1px solid #d9d9d9',
}"
Expand Down Expand Up @@ -51,8 +51,8 @@
<treeselect
class="custom-treeselect custom-treeselect-bgcAndBorder"
:style="{
'--custom-height': '24px',
lineHeight: '24px',
'--custom-height': '32px',
lineHeight: '32px',
'--custom-bg-color': '#fff',
'--custom-border': '1px solid #d9d9d9',
}"
Expand Down Expand Up @@ -95,11 +95,13 @@
:placeholder="`${$t(`placeholder2`)}`"
class="custom-treeselect custom-treeselect-bgcAndBorder"
:style="{
'--custom-height': '24px',
lineHeight: '24px',
'--custom-height': '32px',
lineHeight: '32px',
'--custom-bg-color': '#fff',
'--custom-border': '1px solid #d9d9d9',
'--custom-multiple-lineHeight': '18px',
}"
:limit="1"
/>
</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default {
return null
},
changeEnable(row) {
putCommandById(row.id, { ...row, enable: Number(!row.enable) }).then(() => {
putCommandById(row.id, { ...row, enable: Boolean(!row.enable) }).then(() => {
this.$message.success(this.$t('editSuccess'))
this.updateTableData()
})
Expand Down
3 changes: 3 additions & 0 deletions oneterm-ui/src/style/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,9 @@ body {
border: none;
box-shadow: 0px 4px 6px rgba(78, 94, 160, 0.25) !important;
}
.vue-treeselect__limit-tip-text {
margin: 0;
}
}

// 自定义背景颜色和border
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:noOptionsText="$t('cs.components.empty')"
:class="className ? className : 'ops-setting-treeselect'"
value-consists-of="LEAF_PRIORITY"
:limit="20"
:limit="limit"
:limitText="(count) => `+ ${count}`"
v-bind="$attrs"
appendToBody
Expand Down Expand Up @@ -60,6 +60,10 @@ export default {
type: String,
default: 'employee_id',
},
limit: {
type: Number,
default: 20,
},
},
data() {
return {}
Expand Down

0 comments on commit ca84203

Please sign in to comment.