日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

56 lines
944 B

// 头像组件
Component({
properties: {
maxlength: {
type: Number,
value: 250,
},
placeholder: {
type: String,
value: "请输入内容",
},
content: {
type: String,
value: "",
},
fm: {
type: String,
value: "fmData",
},
name: {
type: String,
value: "",
},
showLength: {
type: Boolean,
value: true,
},
},
data: {
isFolded: false,
noNeedFold: false,
},
lifetimes: {
ready() {
this.init();
},
},
methods: {
init() {
console.log("e-textarea组件初始化完毕");
},
input(event) {
const {
detail: { value },
} = event;
const { fm, name, maxlength } = this.data;
this.setData({ content: value });
this.triggerEvent("input", { fm, name, value, maxlength });
},
},
});