1.0.6 • Published 2 years ago

soinmyui v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

my-ui

介绍

做一些简单的移动端的ui组件

软件架构

依赖于vue做的一一些移动组件

安装教程

  1. npm i soinmyui

使用说明

  1. 在main.js里引入css样式 import 'soinmyui/theme-chalk/index.css';
  2. 在main.js里引入组件库import myui from 'soinmyui';
  3. Vue.use(myui)
  4. 就可以随便在组件里使用了

组件列表

组件名:button--按钮

Props

属性名描述类型默认值可选值
type按钮样式stringdefaultprimary/info/warn/danger/default

组件名:drawer--抽屉


Props

属性名描述类型默认值可选值
open打开drawer参数booleanfalsetrue
aligndrawer出现的位置stringbottomtop/right/bottom/left
sizedrawer框大小string30%-
showClose关闭按钮的显隐booleantruefalse
isDestroyDom是否卸载drawer内部的dombooleanfalsetrue
isMaskBg是否去掉drawer遮罩booleanfalsetrue

Events

属性名描述回调参数
close关闭事件callback

Slots

属性名描述
-自定义drawer内容

组件名:search--搜索框


Props

属性名描述类型默认值可选值
type和原生input类型保持一致string--
placeholder和原生placeholder一致string--
shape搜索框的圆角和直角stringsquaresquare(直角)|round(圆角)
value / v-model绑定值string / number--
showAction是否显示右侧按钮booleanfalsetrue
actionText右侧按钮名称string取消-

Events

属性名描述回调参数
blur失焦事件{event: Event}
focus聚焦事件{event: Event}
search搜索事件value:string/number
cancel取消事件-

Slots

属性名描述
label左侧内容 (搜索框外部)
left-icon左侧图标(搜索框内)
right-icon右侧图标(搜索框内)
action右侧内容(搜索框外部)

组件名:icon--字体图标


Props—name

可选值描述
arrow-up
arrow-right
arrow-down
arrow-left
double-arrow-left
double-arrow-right
cross
add
sub
navigate-w
orders-w
upload-w
dowload-w
around-exchange-w
star-w
search-w
fold-w
refresh-w
edit-w
map-w
home-w
close-w
success-w
info-w
warn-w
question-w
sub-w
add-w
statistical-w
setting-w
del-w
location-w
time-w
copy-w
boult-up-w
boult-down-w
zoom-in-w
zoom-out-w
loading-w
stop-w
img-circle-w
img-round-w
file-w
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago