Git Product home page Git Product logo

kai-ui's Introduction

快速上手

使用之前

使用 kai-ui 前,务必要先阅读wepy自定义组件开发

预览小程序

如何使用

安装

方式一. 通过 npm 安装 (推荐)
# npm
npm i kai-ui -S --production
方式二. 下载代码

直接下载GitHub或者通过 git 命令下载并把minparogram文件夹拷贝到自己项目中

git clone https://github.com/Chaunjie/kai-ui.git

使用组件

以按钮组件为例,只需要在 json 文件中引入按钮对应的自定义组件即可

import Panel from 'kai-ui/Panel'

components = {
  'k-panel': Panel
}

接着就可以在 wxml 中直接使用组件

<k-panel>使用kai-ui组件库开始</k-panel>

在开发者工具中预览

# 拉取代码
git clone https://github.com/Chaunjie/kai-ui.git

# 安装项目依赖
npm install

# 执行组件编译
npm run dev

打开开发者工具,把dist目录添加进去就可以预览示例了。

贡献者

感谢下面这些小朋友的贡献

stardew wppeng

组件列表

  • cell 列表
  • button 按钮
  • icon 图标
  • popup 弹出层
  • tag 标记
  • tab 标签
  • select 选择
  • toptips 顶部提示
  • toast 轻提示组件
  • numberpicker 数字输入框
  • switch 开关
  • actionsheet 操作盘
  • dialog 对话框
  • uploader 上传
  • grid 宫格
  • loadmore 更多
  • loading 加载中
  • panel 面板
  • layout 布局
  • checkbox 复选框
  • radio 单选框
  • noticebar 通知栏
  • searchbar 搜索框
  • input 输入框
  • step 步骤条
  • slider 滑块
  • rate 星级评分
  • folder 折叠面板
  • calander 日期选择
  • swipeout 滑动菜单
  • scrollviewrefresh 下拉刷新

kai-ui's People

Contributors

chaunjie avatar wppeng 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.