mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
58 lines
1.3 KiB
JavaScript
58 lines
1.3 KiB
JavaScript
module.exports = Behavior({
|
|
properties: {
|
|
loading: Boolean,
|
|
// 在自定义组件中,无法与外界的 form 组件联动,暂时不开放
|
|
// formType: String,
|
|
openType: String,
|
|
appParameter: String,
|
|
// 暂时不开放,直接传入无法设置样式
|
|
// hoverClass: {
|
|
// type: String,
|
|
// value: 'button-hover'
|
|
// },
|
|
hoverStopPropagation: Boolean,
|
|
hoverStartTime: {
|
|
type: Number,
|
|
value: 20
|
|
},
|
|
hoverStayTime: {
|
|
type: Number,
|
|
value: 70
|
|
},
|
|
lang: {
|
|
type: String,
|
|
value: 'en'
|
|
},
|
|
sessionFrom: {
|
|
type: String,
|
|
value: ''
|
|
},
|
|
sendMessageTitle: String,
|
|
sendMessagePath: String,
|
|
sendMessageImg: String,
|
|
showMessageCard: String
|
|
},
|
|
|
|
methods: {
|
|
bindgetuserinfo(event = {}) {
|
|
this.triggerEvent('getuserinfo', event.detail || {});
|
|
},
|
|
|
|
bindcontact(event = {}) {
|
|
this.triggerEvent('contact', event.detail || {});
|
|
},
|
|
|
|
bindgetphonenumber(event = {}) {
|
|
this.triggerEvent('getphonenumber', event.detail || {});
|
|
},
|
|
|
|
bindopensetting(event = {}) {
|
|
this.triggerEvent('opensetting', event.detail || {});
|
|
},
|
|
|
|
binderror(event = {}) {
|
|
this.triggerEvent('error', event.detail || {});
|
|
}
|
|
}
|
|
});
|