【问题标题】:AG-Grid Vue editor integration: difference between 20.1.0 and 20.2.0AG-Grid Vue 编辑器集成:20.1.0 和 20.2.0 的区别
【发布时间】:2019-08-29 17:09:51
【问题描述】:

我在使用 Vue 2.6.0 和 Vuetify 1.5.9 的 AG-Grid 20.2.0 企业版和自定义编辑器方面遇到了一些问题。

非常简单的编辑器组件就是这个:

<template>
    <v-combobox v-model="value" :items="items" hide-details single-line flat solo></v-combobox>
</template>

<script>
import Vue from 'vue'

export default Vue.extend({
    name: 'kus-test',
    data() {
        return {
            items: [],
            value: ''
        }
    },
    methods: {
        getValue() {
            return this.value
        }
    }
})
</script>

在 AG-Grid 20.1.0 中,当我写“某事”并按 Enter 时,字符串被保存,编辑器关闭,我在单元格中看到“某事”。

在 AG-Grid 20.2.0 中,当我按下回车键时,编辑器关闭并且没有保存任何内容,我看到一个空单元格并且控制台中没有出现错误。

使用稍微复杂的编辑器组件,我看到所有$refs 都设置为undefined

我不知道这是否是一个错误,但这绝对是 AG-Grid 的问题,因为我的其他依赖项保持不变并且在 20.1.0 中运行良好。

你有什么想法吗? 谢谢

【问题讨论】:

    标签: vue.js ag-grid vuetify.js


    【解决方案1】:

    从版本 22.1.0 开始,使用 vuetify 2,这不再是问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-10
      • 1970-01-01
      • 2019-07-28
      • 2021-03-14
      • 2021-06-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多