You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< div >
< header class = "mui-bar mui-bar-nav" >
< router -link to = "/index" class = "mui-icon mui-icon-left-nav mui-pull-left" > < / r o u t e r - l i n k >
< h1 class = "mui-title" > 带图标按钮 < / h1 >
< / header >
< div class = "mui-content" >
< div class = "mui-content-padded" >
< h5 > 图标居左 : < / h5 >
< button type = "button" class = "mui-btn mui-icon mui-icon-home" >
首页
< / button >
< button type = "button" class = "mui-btn mui-btn-primary mui-icon mui-icon-search" >
搜索
< / button >
< button type = "button" class = "mui-btn mui-btn-success mui-icon mui-icon-plus" > 添加 < / button >
< button type = "button" class = "mui-btn mui-btn-danger mui-btn-outlined" >
< span class = "mui-icon mui-icon-trash" > < / span >
删除
< / button >
< button type = "button" class = "mui-btn mui-btn-link" >
< span class = "mui-icon mui-icon-back" > < / span >
返回
< / button >
< h5 > 图标居右 : < / h5 >
< button type = "button" class = "mui-btn mui-icon mui-icon-home mui-right" >
首页
< / button >
< button type = "button" class = "mui-btn mui-btn-primary mui-icon mui-icon-search mui-right" >
搜索
< / button >
< button type = "button" class = "mui-btn mui-btn-success mui-icon mui-icon-plus mui-right" > 添加 < / button >
< button type = "button" class = "mui-btn mui-btn-danger mui-btn-outlined" >
删除
< span class = "mui-icon mui-icon-trash" > < / span >
< / button >
< button type = "button" class = "mui-btn mui-btn-link" >
下一步
< span class = "mui-icon mui-icon-forward" > < / span >
< / button >
< / div >
< / div >
< / div >
< / template >
< script >
export default {
mounted ( ) {
mui . init ( {
swipeBack : true //启用右滑关闭功能
} ) ;
}
}
< / script >
< style scoped >
. mui - btn {
margin - top : 10 px ;
margin - left : 10 px ;
}
< / style >