Coder Social home page Coder Social logo

Comments (12)

QingWei-Li avatar QingWei-Li commented on April 18, 2024

请问你是怎么注册组件的?贴一下完整代码

from element.

perfectyang avatar perfectyang commented on April 18, 2024

import Element from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
Vue.use(Element)

直接在main.js里面注册

from element.

QingWei-Li avatar QingWei-Li commented on April 18, 2024

Vue 和 Element 的版本号报一下

from element.

perfectyang avatar perfectyang commented on April 18, 2024

"element-ui": "^1.0.0-rc.1",
"vue": "^2.0.0-rc.4",

from element.

perfectyang avatar perfectyang commented on April 18, 2024

直接是你的项目里面将docs 里面用法拷过来,报这个error的

from element.

QingWei-Li avatar QingWei-Li commented on April 18, 2024

刚建的项目,跟你同样的用法,只是去掉了那些方法,是正常的
image

<template>
  <div class="y_table">
    <el-table
      :data="tableData3"
      selection-mode="multiple"
      :fixed-column-count="2"
      height="600"
      border
    >
    <el-table-column type="selection">
    </el-table-column>
    <el-table-column inline-template label="操作">
        <a style="color: #ff6161;">{{ row.item1 }}操作</a>
    </el-table-column>
    </el-table>
  </div>
</template>

<script>
  import Element from 'element-ui';
  import Vue from 'vue';
  import 'element-ui/lib/theme-default/index.css';

  Vue.use(Element);

  export default {
    name: 'app',

    data() {
      return {
        tableData3: [
          { item1: 'aaa' }
        ]
      };
    }
  };
</script>

from element.

Leopoldthecoder avatar Leopoldthecoder commented on April 18, 2024

建议全文搜索一下 tableTable,看看除了在 el-table 里是不是还在哪里出现过。

from element.

perfectyang avatar perfectyang commented on April 18, 2024

好的

from element.

perfectyang avatar perfectyang commented on April 18, 2024

文档什么时候能出啊

from element.

QingWei-Li avatar QingWei-Li commented on April 18, 2024

完善中,快了,没具体时间

from element.

wltony avatar wltony commented on April 18, 2024

doc 里的md已经很全了。

from element.

perfectyang avatar perfectyang commented on April 18, 2024

现在在跑官方项目

from element.

Related Issues (20)

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.