12345678910111213141516171819202122232425262728 |
- Page({
- data: {
- height: 20,
- focus: false,
- },
- bindButtonTap() {
- this.onFocus();
- },
- onFocus() {
- this.setData({
- focus: true,
- });
- },
- onBlur() {
- this.setData({
- focus: false,
- });
- },
- bindTextAreaBlur(e) {
- console.log(e.detail.value);
- },
- bindFormSubmit(e) {
- my.alert({
- content: e.detail.value.textarea,
- });
- },
- });
|