haomingming 12e4984a95 优化
2023-03-23 15:52:15 +08:00

69 lines
1.2 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_content_placeholder: {
type: String,
value: '示例placeholder',
},
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)
}
}
})