Comments (9)
提议字符串是没问题的, 定义对象的时候,可以用 _ 放在前面
from flutter-iconfont-cli.
作者人呢
from flutter-iconfont-cli.
使用数字会有语法上的报错吗?
from flutter-iconfont-cli.
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.
你可以用这个文件试下 //at.alicdn.com/t/font_2137730_4bwxxhmwm4a.js
from flutter-iconfont-cli.
发布了1.0.1
from flutter-iconfont-cli.
字符串匹配,还是有点问题
case '500px':
希望和 iconfont 保持一致
case '_500_px':
from flutter-iconfont-cli.
用的是 lodash.snakeCase ,没有比较好的替代方案,
from flutter-iconfont-cli.
good
from flutter-iconfont-cli.
Related Issues (12)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-iconfont-cli.