Skip to content

Commit 1e9f471

Browse files
authored
fix(grid): fix title is not reactive (#3858)
1 parent c2c54d4 commit 1e9f471

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/vue/src/grid-toolbar/src/custom-saas.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,11 @@ export default defineComponent({
756756
this.colIds = []
757757
const getColNodes = (columns) => {
758758
return columns
759-
.map(({ id, title, property, fixed, visible, order, sortable, level, children }) => {
759+
.map(({ id, own, property, fixed, visible, order, sortable, level, children }) => {
760760
if (property) {
761761
const column = {
762762
id,
763-
title,
763+
title: own.title,
764764
property,
765765
alwaysShow: alwaysShowColumns.includes(property),
766766
fixed,

packages/vue/src/grid-toolbar/src/custom-select.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ export default {
8989
getColumnConfigs(configs) {
9090
const getColNodes = (columns) =>
9191
columns
92-
.map(({ id, title, property, fixed, visible, order, sortable, level, children }) => {
92+
.map(({ id, own, property, fixed, visible, order, sortable, level, children }) => {
9393
if (property) {
94-
const column = { id, title, property, fixed, visible, order, sortable, level, children }
94+
const column = { id, title: own.title, property, fixed, visible, order, sortable, level, children }
9595
9696
column.disabled = Boolean(this.setting?.customDisable?.(column))
9797

packages/vue/src/grid-toolbar/src/custom.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ export default defineComponent({
338338
getColumnConfigs(configs) {
339339
const getColNodes = (columns) => {
340340
return columns
341-
.map(({ id, title, property, fixed, visible, order, sortable, level, children }) => {
341+
.map(({ id, own, property, fixed, visible, order, sortable, level, children }) => {
342342
if (property) {
343343
const column = {
344344
id,
345-
title,
345+
title: own.title,
346346
property,
347347
fixed,
348348
visible,

0 commit comments

Comments
 (0)