🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lighting-ui

Package Overview
Dependencies
Maintainers
3
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lighting-ui

A rich interaction, lightweight, high performance UI library based on Weex

latest
Source
npmnpm
Version
0.3.132
Version published
Weekly downloads
298
41.9%
Maintainers
3
Weekly downloads
 
Created
Source

lighting ui 是一个基于 Weex 的富交互、轻量级、高性能、三端统一的 金融 UI 组件库。

安装

当工程需要使用 UI 组件时,首先需要对 lib 目录下的 package.json 文件进行设置,引入依赖:

{
  "dependencies": {
    "lighting-ui": "*"
  }
}

然后在 lib 目录下执行 npm install 完成安装。

npm install

使用

在需要使用组件的视图中引入 UI 组件,建议大家使用时按需引入,可以节省打包资源。例如当需要使用 button 按钮,步骤如下:

  • 引入组件:
import LcButton from 'lighting-ui/packages/lc-button'
  • 注册组件:
components: { LcButton }
  • 使用组件:
<lc-button text="确定" type="normal"></lc-button>

完整代码为:

<template>
    <div>
         <lc-button text="确定" type="normal"></lc-button>
    </div>
</template>
<script>
    import LcButton from 'lighting-ui/packages/lc-button';
    export default {
        components: { LcButton },
        data(){
            return {};
        }
    }
</script>
<style scoped>
</style>

其他组件使用方法类似,改为相对应的组件名即可。

文档

组件名称分类描述
lc-button布局基础按钮组件
lc-cell布局单元格组件 展示表单、列表
lc-grid布局网格
lc-grid-select布局网格选择
lc-lightbox布局轮播图
lc-lightbox-full布局幻灯片 图片全屏预览
lc-mask布局遮罩弹层 可定制内容
lc-overlay布局蒙层 常用于 lc-mask、lc-dialog、lc-popup 等的基础蒙层组件
lc-popup布局弹出层 支持上下左右四个方向面板弹出
lc-switch布局开关组件 用作三端统一的开关显示
lc-minibar导航顶部导航栏组件
lc-tab-bar导航底部页面切换组件
lc-tab-page导航页面滑动切换组件
lc-captchafield数据输入带有发送验证码的输入框
lc-checkbox数据输入复选列表
lc-countdown数据输入倒计时
lc-ep-slider数据输入表达式绑定效果的 slider
lc-form数据输入表单
lc-input数据输入输入框组件 支持8种基本类型,可自定义样式
lc-keyboard数据输入密码键盘
lc-numberfield数据输入货币或数量输入框
lc-passwordfield数据输入密码输入框
lc-radio数据输入单选列表
lc-rater数据输入星级评分
lc-searchbar数据输入搜索条
lc-slider-bar数据输入滑动选择条
lc-stepper数据输入计数器
lc-textarea数据输入多行文本输入
lc-textfield数据输入普通输入框
lc-badge数据展示徽标
lc-calendar-row数据展示横向日历
lc-indexlist数据展示索引列表
lc-icon数据展示图标
lc-fold-list数据展示折叠列表
lc-info-list数据展示信息列表
lc-lazy-render数据展示懒加载
lc-loading数据展示加载提示
lc-marquee数据展示跑马灯条
lc-page-calendar数据展示日历
lc-progress数据展示进度条
lc-process数据展示流程条
lc-process-row数据展示横向流程条
lc-result数据展示结果页
lc-rich-text数据展示富文本
lc-simple-flow数据展示简易流程
lc-tag数据展示标签
lc-tag-wall数据展示标签墙
lc-bank数据展示银行列表
lc-actionsheet用户操作操作栏
lc-button-group用户操作按钮组
lc-date-picker用户操作日期选择器
lc-dialog用户操作对话框
lc-map用户操作地图
lc-noticebar用户操作提醒条
lc-popover用户操作气泡弹层
lc-picker用户操作选择器
lc-swipe-cell用户操作滑动菜单
lc-tab-group用户操作页签组
lc-tip用户操作提示
lc-web用户操作外部链接
lc-slider-menu用户操作联动菜单

了解更多 lighting-ui 的信息,请点击这里

更新记录

v0.3.130

  • mask等组件兼容折叠屏

v0.3.116

  • #145501 新增lc-slider-menu组件。

v0.3.115

  • #131269 lc-passwordfield切换时数据不丢失。
  • #143549 jsn项目中页面跳转地址前面加上index.html时,页面引入lc-dialog组件,Android手机上必现点透,iOS手机上偶现点透。
  • #143971 lc-overlay组件点击阴影层关闭H5下会点透

v0.3.110

1.input组件当type为date时兼容min小于max的情况。

Keywords

Light Ui

FAQs

Package last updated on 28 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts