angular穿梭框_"穿梭框"组件:<transfer> —— 快应用组件库H-UI

这篇博客介绍了如何在快应用中利用H-UI组件库实现Angular穿梭框组件<transfer>的使用。内容涵盖了基本的数据配置,如数据项、选中值以及禁用状态,并展示了如何监听和响应穿梭框的事件,例如通过prompt弹窗显示选择的详细信息。
摘要由CSDN通过智能技术生成

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

]

}

}

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

],

values: ["option2", "option4"]

}

}

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

]

}

}

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3", disabled: true},

{label: "深圳", value: "option4"}

]

}

}

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

]

}

}

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

]

}

}

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

]

}

}

@import '../Common/styles/container.less';

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

]

}

}

@import '../Common/styles/container.less';

import prompt from '@system.prompt'

export default {

private: {

params: {},

data: [

{label: "北京", value: "option1"},

{label: "上海", value: "option2"},

{label: "广州", value: "option3"},

{label: "深圳", value: "option4"}

]

},

onInit() {

this.$on('transfer9_dispatchEvt',this.dispatchEvt)

},

dispatchEvt(evt) {

// 弹窗显示详细说明

prompt.showToast({

message: evt.detail.value,

duration: 1,

gravity: 'top'

})

}

}

扫码体验

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值