Giter Site home page Giter Site logo

dengwb1991 / mpx-cube-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from didi/mpx-cube-ui

0.0 0.0 0.0 1.76 MB

基于"Mpx 小程序框架"的移动端基础组件库

Home Page: https://www.mpxjs.cn/mpx-cube-ui/

License: Apache License 2.0

Shell 0.01% JavaScript 25.81% TypeScript 66.41% Stylus 7.77%

mpx-cube-ui's Introduction

介绍

mpx-cube-ui 是基于 Mpx 小程序框架 的移动端基础组件库,一份源码可以跨端输出所有小程序平台及 Web。

官网

欢迎访问 mpx-cube-ui 官网,跟随我们提供的文档指南使用 mpx-cube-ui 组件库进行跨端小程序开发。

安装

npm install @mpxjs/mpx-cube-ui

使用组件

以按钮组件为例,只需要在 mpx 单文件的 json 配置中引入按钮对应的自定义组件:

// your-page.mpx
<template>
  <cube-button></cube-button>
</template>

<script>
import { createPage } from '@mpxjs/component'

createPage({})
</script>

<script type="application/json">
  {
    "usingComponents": {
      "cube-button": "@mpxjs/mpx-cube-ui/lib/components/button/index.mpx"
    }
  }
</script>

组件库预览

// 安装依赖
pnpm install

// 启动示例代码编译
pnpm run example:dev

在小程序开发者工具中导入 dist 目录下代码即可或者通过控制输出 url 地址在本地浏览器预览。

链接

mpx-cube-ui's People

Contributors

mater1996 avatar weilinerl avatar qiushuibai avatar commanderxl 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.