Coder Social home page Coder Social logo

a-virtual-table's People

Contributors

xiaocheng555 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

a-virtual-table's Issues

自定义列表标题不会显示

自定义列表标题,不会显示

<a slot="name" slot-scope="text">{{ text }}</a>
<span slot="customTitle"><a-icon type="smile-o" /> Name</span>
columns = [
  {
    dataIndex: 'name',
    key: 'name',
    slots: { title: 'customTitle' },
    scopedSlots: { customRender: 'name' },
  }]

获取不了record index

<template v-for="slot in Object.keys($scopedSlots)" :slot="slot" slot-scope="text"> <slot :name="slot" v-bind="typeof text === 'object' ? text : {text}"></slot> </template>
应该改成:
<template v-for="slot in Object.keys($scopedSlots)" :slot="slot" slot-scope="text, record, index"> <slot :name="slot" v-bind="{text, record, index}"></slot> </template>

在列少情况下 网格列对不齐

在列少情况下。没有X滚动条。列就会对不齐

columns: [
{
title: '#',
index: true,
width:60,
},
{
title:'唯一码',
align:"center",
dataIndex: 'prodUnicode',
width:280,
scopedSlots: {
filterDropdown: 'filterProdUnicode'
},
},
{
title:'数量',
align:"center",
width:60,
dataIndex: 'qty'
},
{
title:'sku代码',
align:"center",
width:200,
dataIndex: 'skuCode'
},
{
title:'商品代码',
align:"center",
width:100,
dataIndex: 'prodCode'
},
{
title:'款号',
align:"center",
width:100,
dataIndex: 'prodModel'
},
{
title:'名称',
align:"center",
width:150,
dataIndex: 'prodName'
},
{
title:'属性',
align:"center",
width:250,
dataIndex: 'skuValues'
},

      {
        title: '操作',
        align:"center",
        fixed:"right",
        width:60,
        scopedSlots: { customRender: 'action' },
      }
    ]

无法获取record

slot-scope="text” 只能获取到 text ,无法获取record 我的操作列都无法使用了

表格树如何修改

我现在有个需求,使用 antd 的 table, 但数据量太大了,所以也想用虚拟滚动效果,请问下有什么思路吗?样式和框架还是想使用 antd 的 css。

行号不对

key:'rowIndex', 行号会不对 有办法解决问题吗
customRender function (t,r,index) {
return parseInt(index)+1;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.