Home

Awesome

sc-ui

微信小程序 material design UI

展示

img

体验

使用微信扫一扫体验小程序组件示例

<img src="https://cdn.jsdelivr.net/gh/xbup/sc-ui@5b8143163dbadaa239b4d01e816f4f9ad38e9e08/gh_8cb2d1e6af9d_1280.jpg" height="256px" width="256px" />

get start

下载:目前不支持npm install 请直接clone或下载

1. 引入文件

将dist文件引入到项目目录任意位置

js

const scui = require('path/to/dist/sc-ui');

wxss

@import "path/to/dist/sc-ui.wxss";
@import "path/to/dist/assets/font-icon/material.wxss";

component

"usingComponents":{
    "sc-button":"path/to/dist/components/scButton/sc-button",
    "sc-input":"path/to/dist/components/scInput/sc-input",
    "sc-progress":"path/to/dist/components/scProgress/sc-progress",
    "sc-textarea":"path/to/dist/components/scTextarea/sc-textarea",
    "sc-checkbox":"path/to/dist/components/scCheckbox/sc-checkbox",
    "sc-checkbox-group":"path/to/dist/components/scCheckboxGroup/sc-checkbox-group",
    "sc-form":"path/to/dist/components/scForm/sc-form",
    "sc-switch":"path/to/dist/components/scSwitch/sc-switch",
    "sc-radio":"path/to/dist/components/scRadio/sc-radio",
    "sc-radio-group":"path/to/dist/components/scRadioGroup/sc-radio-group",
    "sc-cell":"path/to/dist/components/scCell/sc-cell",
    "sc-cell-group":"path/to/dist/components/scCellGroup/sc-cell-group",
    "sc-loading":"path/to/dist/components/scLoading/sc-loading",
    "sc-tab-group":"path/to/dist/components/scTabGroup/sc-tab-group",
    "sc-tab":"path/to/dist/components/scTab/sc-tab",
    "sc-dialog":"path/to/dist/components/scDialog/sc-dialog",
    "sc-snackbar":"path/to/dist/components/scSnackbar/sc-snackbar",
    "sc-date-picker":"path/to/dist/components/scDatePicker/sc-date-picker",
    "sc-time-picker":"path/to/dist/components/scTimePicker/sc-time-picker"
}

icon

http://www.iconfont.cn/collections/detail?cid=444

2. docs(文档)

3.案例

<img src="https://cdn.jsdelivr.net/gh/xbup/sc-ui@master/gh_acaa36129c87_430.jpg" height="200px" width="200px" />

4.License

MIT Copyright (c) 2018-present, xbup