Coder Social home page Coder Social logo

Comments (9)

seateam avatar seateam commented on August 11, 2024

提议字符串是没问题的, 定义对象的时候,可以用 _ 放在前面

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

作者人呢

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

使用数字会有语法上的报错吗?

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024
case '360':
        iconName = IconNames._360;
        break;
case 'w3school':
        iconName = IconNames.w3school;
        break;
case 'v2ex':
        iconName = IconNames.v2ex;
        break;
case '500px':
        iconName = IconNames._500px;
        break;

我目前是这样处理的, 数字开头加 下划线, 字符串形式不受影响

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

你可以用这个文件试下 //at.alicdn.com/t/font_2137730_4bwxxhmwm4a.js

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

发布了1.0.1

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

字符串匹配,还是有点问题
case '500px':
希望和 iconfont 保持一致
case '_500_px':

from flutter-iconfont-cli.

fwh1990 avatar fwh1990 commented on August 11, 2024

用的是 lodash.snakeCase ,没有比较好的替代方案,

from flutter-iconfont-cli.

seateam avatar seateam commented on August 11, 2024

good

from flutter-iconfont-cli.

Related Issues (12)

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.