Coder Social home page Coder Social logo

Comments (8)

huangshuwei avatar huangshuwei commented on May 19, 2024

你用的哪个版本?

我这边用了版本是 1.5.8 测试 没问题。

看你的报错信息应该是‘字体’loader 沒找到,字体loader配置可以参考:

  {
            test: /\.(eot|woff|woff2|ttf|svg)(\?\S*)?$/,
            use: [{
                loader: 'url-loader',
                options: {
                    limit: 5000,
                    name: 'font/[name]-[hash:8].[ext]'
                }
            }]

        }

有问题再反馈

from vue-easytable.

z1047549075 avatar z1047549075 commented on May 19, 2024

我的也是1.5.8版本的,昨天又调试了很久没找到原因,应该是和vue-vli、node的版本有些关系,我换成是直接引用umd/css/index.css就可以了

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 19, 2024

你的 webpack loader 配置发出来我看下

from vue-easytable.

z1047549075 avatar z1047549075 commented on May 19, 2024

image
采取的是vue-cli新建项目默认的loader

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 19, 2024

@z1047549075
知道了,你少配置了一种字体格式:woff
你加上去应该就可以了

  {
            test: /\.(eot|woff|woff2|ttf|svg)(\?\S*)?$/,
            use: [{
                loader: 'url-loader',
                options: {
                    limit: 5000,
                    name: 'font/[name]-[hash:8].[ext]'
                }
            }]

        }

from vue-easytable.

z1047549075 avatar z1047549075 commented on May 19, 2024

不是呢,我现在重新换了你给的配置,还是不行
去掉import或者是缓存是umd/css/index.css就可以,真不知道是哪里的问题

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 19, 2024

woff 类型字体是必须配置的,因为table组件依赖这个字体。

配置改完以后,需要重新执行webpack 命令,你在重新打包试试

from vue-easytable.

huangshuwei avatar huangshuwei commented on May 19, 2024

@ALL
已修复,已发布
https://github.com/huangshuwei/vue-easytable/releases/tag/1.5.11

from vue-easytable.

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.