New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

trj-ui

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trj-ui

a mobile compoment

npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

vue-mobile-ui

简介

这是一款基于 vue 框架开发的基础 UI 组件,主要包括 toast 和 dialog 插件,后续会不断拓展。 效果图如下:

功能

  • toast 组件
  • dialog 组件

可以手机扫码二维码看看效果图

用法

  • 安装依赖
npm install --save trj-ui
  • 引入并使用
import UI from 'trj-ui'
Vue.use(UI)

toast

Props

nametypedefaultdescription
msgString''弹窗提示语
typeString''弹窗类型:success(成功提示),fail(失败提示),warning(警告),loading(加载)

dialog

Props

nametypedefaultdescription
titleString''标题
textString''文本内容
typeString''默认纯文本,input(输入框)
maxlengthNumber20输入的最多字数
confirmTextString确定右边按钮
cancelTextString取消左边按钮

Events

nameparamsdescription
confirmnull选择后的回调
cancelull取消后的回调

FAQs

Package last updated on 09 Dec 2020

Related posts