haomingming 97a504c6d2 优化
2023-05-05 11:44:37 +08:00

73 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// commpents/textarea-cell/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
textarea_cell_name: {
type: String,
value: '标题',
},
required: {
type: Boolean,
value: true,
},
disabled: {
type: Boolean,
value: false,
},
textarea_cell_note: {
type: String,
value: '查看示例',
},
textarea_cell_note_show:{
type: Boolean,
value: true,
},
textarea_cell_content_placeholder: {
type: String,
value: '请输入文字',
},
t_icon_name: {
type: String,
value: 'heart',
},
t_icon_size: {
type: String,
value: '32rpx',
},
textarea_val: {
type: String,
value: '',
},
has_error_content: {
type: String,
value: "",
},
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
onshowNote: function(e){
console.log(e);
var myEventDetail = {} // detail对象提供给事件监听函数
var myEventOption = {} // 触发事件的选项
this.triggerEvent('showNote', myEventDetail, myEventOption)
},
bindTextAreaBlur(e){
console.log("textarea val: ", e.detail.value);
this.triggerEvent('TextAreaBlur', e.detail)
}
}
})