74 lines
2.2 KiB
JavaScript
74 lines
2.2 KiB
JavaScript
'use strict';
|
|
|
|
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: function bindgetuserinfo() {
|
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
_ref$detail = _ref.detail,
|
|
detail = _ref$detail === undefined ? {} : _ref$detail;
|
|
|
|
this.triggerEvent('getuserinfo', detail);
|
|
},
|
|
bindcontact: function bindcontact() {
|
|
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
_ref2$detail = _ref2.detail,
|
|
detail = _ref2$detail === undefined ? {} : _ref2$detail;
|
|
|
|
this.triggerEvent('contact', detail);
|
|
},
|
|
bindgetphonenumber: function bindgetphonenumber() {
|
|
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
_ref3$detail = _ref3.detail,
|
|
detail = _ref3$detail === undefined ? {} : _ref3$detail;
|
|
|
|
this.triggerEvent('getphonenumber', detail);
|
|
},
|
|
bindopensetting: function bindopensetting() {
|
|
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
_ref4$detail = _ref4.detail,
|
|
detail = _ref4$detail === undefined ? {} : _ref4$detail;
|
|
|
|
this.triggerEvent('opensetting', detail);
|
|
},
|
|
binderror: function binderror() {
|
|
var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
_ref5$detail = _ref5.detail,
|
|
detail = _ref5$detail === undefined ? {} : _ref5$detail;
|
|
|
|
this.triggerEvent('error', detail);
|
|
}
|
|
}
|
|
}); |