0.1.0 • Published 4 years ago

atrist-ui v0.1.0

Weekly downloads
3
License
-
Repository
-
Last release
4 years ago

1. 创建一个 vue 项目

vue create atrist-ui

需要选择的内容为如下:

  • Babel,Css Pre-processors,Linter
  • node-sass
  • config -- Standard
  • Lint on save
  • In package.json

建立一个 vuepress 来写此 UI 的文档内容

vuepress create atrist-ui

button组件

组件名: atr-button

参数支持

参数名参数描述参数类型默认值
type按钮类型stringdefault
plain是否为朴素按钮booleanfalse
round是否为圆角按钮booleanfalse
circle是否为圆形按钮booleanfalse
disabled是否禁用按钮booleanfalse
icon图标类名string

事件支持

事件名事件描述
click点击事件

Dialog组件

参数支持

参数名参数描述参数类型默认值
title对话框string提示
width宽度string50%
top与顶部的距离string15vh
visible是都显示dialog(支持sync修饰符)booleanfalse

事件支持

事件名事件描述
opened模态框显示的事件
closed模态框关闭的事件

插槽说明

插槽名称|插槽描述 default|dialog的内容 title|dialog的标题 footer|dialog的底部操作区