1.0.21 • Published 3 years ago
ujin v1.0.21
#引入
import {ujin_upDownMenu ,ujin_pop} from 'ujin';
#下拉菜单
var upDownMenu = new ujin_upDownMenu({
//选中项样式设置
selectStyle:{
color: '#fff',
background: '#0090FF'
},
//设置默认选中项
select: 2,
//下拉菜单列表
list: [
{
name: 'ddd'
},
{
name: 'dddw'
}
],
//选中回调函数
callback: function(res){
console.log(res)
}
});
//展示
upDownMenu.show();
//关闭
upDownMenu.close();
#select
var ujin_select = new ujin.ujin_select({
id: 'j-select',
select: 2,
placeholder: '选择理由',
mainStyle:{
default:{
color: '#818894',
'border-radius': '6px',
'margin-bottom': '3px',
background: 'rgba(98,119,192,0.04)'
},
select:{
color: '#000'
}
},
itemStyle:{
// //默认
default:{
color: '#818894',
'border-radius': '6px',
'margin-bottom': '3px',
background: 'rgba(98,119,192,0.04)'
},
//选中
select:{
color: '#000'
}
},
list: [
{
name: 'ddd'
},
{
name: 'dddw'
},
{
name: 'ddde'
},
{
name: 'ddde'
},
{
name: 'ddde'
}
],
//选中回调函数
callback: function(idx){
console.log(idx)
}
})
#弹窗
var pop = new ujin_pop();
pop.alert('提示文案')
1.0.21
3 years ago
1.0.19
3 years ago
1.0.20
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago