Skip to content

Commit

Permalink
fix(grid-toolbar): [grid] fix toolbar ref name error (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
gimmyhehe authored Jul 12, 2024
1 parent 0b3ea56 commit ccfc904
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vue/src/grid-toolbar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentiny/vue-grid-toolbar",
"version": "3.17.1",
"version": "3.17.2",
"description": "",
"main": "lib/index.js",
"module": "index.ts",
Expand Down
13 changes: 9 additions & 4 deletions packages/vue/src/grid-toolbar/src/custom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@
</tiny-grid-column>
</tiny-grid>
</tiny-tab-item>
<tiny-tab-item class="tabs-body-item" :title="t('ui.grid.individuation.tabs.other.title')" name="other">
<tiny-tab-item
v-if="other"
class="tabs-body-item"
:title="t('ui.grid.individuation.tabs.other.title')"
name="other"
>
<tiny-alert
class="tiny-grid-custom__alert"
:description="t('ui.grid.individuation.tabs.other.tips')"
Expand Down Expand Up @@ -299,11 +304,11 @@ export default defineComponent({
showFixed() {
return (this as any).$grid
},
TinyTable() {
return ((this as any).$grid && (this as any).$grid.$refs.TinyTable) || {}
tinyTable() {
return ((this as any).$grid && (this as any).$grid.$refs.tinyTable) || {}
},
isGroup() {
return this.TinyTable.isGroup
return this.tinyTable.isGroup
},
historyConfig() {
const multipleHistory =
Expand Down

0 comments on commit ccfc904

Please sign in to comment.