Giter Club home page Giter Club logo

miniui's Introduction

MiniUI

一套用于公司内部的小程序的组件库

文档

中文文档

体验

内置了所有组件的示例,可按以下方式在微信开发者工具中查看

npm run dev

然后,将example目录用微信开发者工具打开即可。

快速上手

使用之前

在开始使用之前,需要先阅读微信开发者文档-自定义组件相关知识

如何使用

将dist目录下需要使用到的组件copy到项目中。然后按照以下方式使用组件,以input为例:

1. 在页面的 json 中配置(路径根据自己项目位置配置):

"usingComponents": {
    "d-input": "../../dist/input/index"
}

2 在 wxml 中使用组件:

<d-input name="mobile" type="text" placeholder="请输入手机号码" value=""/>   

如何开发

将项目clone到本地,然后按照以下步骤开发: 1. 开启热更新:

npm run dev

2 在src下编辑组件相关代码

3 在example/pages下编辑页面代码,即可在微信开发者工具中查看对应的样式

4 开发完成并测试通过后,运行以下命令打包组件:

npm run build

miniui's People

Contributors

5kinna avatar

Watchers

 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.