1.0.0 • Published 7 years ago

bento-generator v1.0.0

Weekly downloads
3
License
-
Repository
-
Last release
7 years ago

Bento-Generator-Web

基于文件内容生成对应网页代码

开发说明

值的转换

<space>, <size>, <radius> 等,如果值是数字,需要被转换成 rem, n = n * 1rem / 16,方法见 https://github.com/BentoTeam/Bento-Transfer/blob/master/transfer.js

结构

Bento-Generator-Web/
    |
    ├──src/
        ├──fucntions/
            ├──class/           生成class的方法
            ├──style/           生成style的方法
            inlineStyle.js      直接生成inline style
            num2rem.js          数值转换方法
        index.js                主要文件分配和属性配置