table组件的loading设置项无效
table

const baTable = new baTableClass(api,
    // 表格参数
    {
        // 表格的ref
        ref: undefined,
        // 数据表主键字段
        pk: 'id',
        // 数据源,通过api自动加载
        data: [],
        // 路由remark(显示到表格顶部的文案)
        remark: null,
        // 表格加载状态
        loading: false,
        ...
    }

loading设置为false后,表单加载loading依然会启用。

4个回答默认排序 投票数排序
程序爱好者
程序爱好者
这家伙很懒,什么也没写~
9月前

要看控制台代码,贴出来

東昇
東昇
这家伙很懒,什么也没写~
9月前

小事情 估计官方就解决了 临时解决方案

web/src/utils/baTable.ts

//107行改一下
    getIndex = () => {
        if (this.runBefore('getIndex') === false) return
        this.table.loading = true
        return this.api
    getIndex = () => {
        if (this.runBefore('getIndex') === false) return
        let loading=this.table.loading
        this.table.loading =loading
東昇
東昇
这家伙很懒,什么也没写~
9月前

是不是看着有点好玩.......

東昇
東昇
这家伙很懒,什么也没写~
9月前

不过话说 有个loading挺好的 .干啥要关

请先登录
0
1
0
4