Giter Site home page Giter Site logo

egrid's Issues

columns 属性中设置 Table-column Attributes 的 formatter 无效

因为表格中需要自定义序号列(只有column-type,但是不知道如何自定义内容)。所以新增了一个列,在columns属性中设置如下:

[{
  label: "序号",
  prop: "xuhao",
  formatter: function(row, column, cellValue, index) {
    return 1;
  }
}]

但是表格渲染出来的数据还是undefined,此时开发者工具中该列的props已经有formatter函数了。尝试直接通过element-ui设置formatter是可行的。

期望结果:
该列全部渲染出“1”这个数字。

关于折叠表格的

1.折叠表格一般都是列比较的多,打开折叠的会把基本的列展现出来,折叠里面的是别的列,现在我看demo里面折叠和直观看的列是一样的,这一个能设置嘛

是不是需要什么特定版本的依赖呢,之前使用没问题

Uncaught ReferenceError: babelHelpers is not defined
at Object.module.exports.installedModules (index.com.min.js:1)
at webpack_require (bootstrap 21c68f20aebf7125787e:688)
at fn (bootstrap 21c68f20aebf7125787e:109)
at Object. (main.js:1)
at webpack_require (bootstrap 21c68f20aebf7125787e:688)
at fn (bootstrap 21c68f20aebf7125787e:109)
at Object. (vml.js:9)
at webpack_require (bootstrap 21c68f20aebf7125787e:688)
at BUILTIN_OBJECT.[object Function] (bootstrap 21c68f20aebf7125787e:789)
at app.js:793
vue.esm.js:8246 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

components没生效

在columns里配置
label: '操作',
prop: 123,
component: 'Btn',
但是没有实际渲染出Btn组件,只是有一个html ,打印Btn是有内容的,看组件源码感觉也没有问题,就是一个动态组件问题在哪。。。

关于 listeners 配置项的疑问

你好作者, 我有一点关于 listeners 配置项的疑问,
listeners 可以用来监听自定义组件 emit 的事件
但是在 listeners 选项中 定义的函数 如何触发 egrid 组件所在作用域即 egrid 父组件中的函数呢
这里面的函数似乎是没有绑定 this 的
如果用箭头函数的话 假如配置项 columns 放在外部文件来引入 会指向引入的对象
求解惑

请教几个问题

1.columnType属性能否自定义label属性呢?就是把那个"#"改成自定义的文字描述,如:序号/新增等呢?
2.是否支持指定列设置为下拉选呢?
3.是否可以指定列添加校验规则呢?如,电话/邮箱设置校验电话/邮箱的校验规则呢?
http://jsfiddle.net/yr0uf0fm/23/

babelHelpers is not defined

Uncaught ReferenceError: babelHelpers is not defined
at eval (webpack-internal:///./node_modules/egrid/lib/index.com.min.js:1)
at Object../node_modules/egrid/lib/index.com.min.js (app.js:2219)
at webpack_require (app.js:679)
at fn (app.js:89)
at eval (webpack-internal:///./src/main.js:18)
at Object../src/main.js (app.js:3333)
at webpack_require (app.js:679)
at fn (app.js:89)
at Object.0 (app.js:3620)
at webpack_require (app.js:679)

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.