Giter Site home page Giter Site logo

qwang212 / lin-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talelin/lin-ui

0.0 0.0 0.0 3.95 MB

🌈 简洁、易用、灵活的微信小程序组件库

Home Page: https://doc.mini.talelin.com

License: MIT License

JavaScript 73.31% Less 26.69%

lin-ui's Introduction

Lin UI, not just an UI component library!
一套基于微信小程序原生语法实现的高质量 UI 组件库

目录

简介

Lin UI 是一套基于 微信小程序原生语法 实现的高质量 UI 组件库。遵循简洁、易用、美观的设计规范。

快速上手

务必勾选增强编译Es6 转 ES5以及使用 npm 模块选项参考图片

安装

  1. 初始化你的项目为一个 NPM 项目

    npm init -y
    

    若项目根目录已包含 package.json 文件,则可跳过该步骤

  2. 安装 Lin UI

    npm i lin-ui
    
  3. 配置微信开发者工具 要正确安装 Lin UI,需将微信开发者工具的如下三个选项全部勾选上参考图片

    • 使用 npm 模块
    • 增强编译
    • ES6 转 ES5

    设置路径:微信开发者工具右上角 -> 详情 -> 本地设置

  4. 构建 NPM 模块 微信开发者工具配置完成以后,还需进行一次 NPM 模块的构建

    按钮位置:微信开发者工具顶部 -> 工具 -> 构建 npm

若你本地没有 Node.js 环境,无法使用 NPM 安装,则可以采用源码方式安装

引入

  1. 配置微信开发者工具

    • 要正确使用 Lin UI,需将微信开发者工具的 Es6 转 ES5增强编译 选项勾选上

      设置路径:微信开发者工具右上角 -> 详情 -> 本地设置

    • 将基础库版本设置到 >=2.8.2

  2. 在页面中引入

    {
      "usingComponents":{
        "l-button":"/miniprogram_npm/lin-ui/button/index"
      }
    }
  3. 在页面中使用

     <l-button type="default">默认按钮</l-button>

    我们建议你在引入 Lin UI 组件时,都统一命名为 l-{组件名} 格式,遵循此规范将使你的项目代码更加清晰

    至此,Lin UI 已成功引入至你的项目中了!

讨论交流

贡献代码

我们的代码基于 develop 分支开发,欢迎提交 Pull Request 进行代码贡献。

在提交 Pull Request 之前,请详细阅读我们的开发规范,否则可能因为 Commit 信息不规范等原因被关闭 Pull Request。

开源协议

MIT © 2020 林间有风

lin-ui's People

Contributors

juzi214032 avatar 7insummer avatar zhc525349965 avatar aqingyun avatar ypchenlove avatar dpp050700 avatar murongg avatar smileshirmy avatar traviscibot avatar imgbotapp avatar yyjeffrey avatar abrahamgreyson avatar bdoycn avatar codermusou avatar

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.