riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
miniprogram_npm/tdesign-miniprogram/textarea/textarea.js
@@ -31,13 +31,14 @@
        };
        this.observers = {
            value(val) {
                this.updateCount(val);
                this.updateCount(val !== null && val !== void 0 ? val : this.properties.defaultValue);
            },
        };
        this.lifetimes = {
            ready() {
                const { value } = this.properties;
                this.updateValue(value == null ? '' : value);
                var _a;
                const { value, defaultValue } = this.properties;
                this.updateValue((_a = value !== null && value !== void 0 ? value : defaultValue) !== null && _a !== void 0 ? _a : '');
            },
        };
        this.methods = {
@@ -77,9 +78,9 @@
                };
            },
            onInput(event) {
                const { value } = event.detail;
                const { value, cursor } = event.detail;
                this.updateValue(value);
                this.triggerEvent('change', { value: this.data.value });
                this.triggerEvent('change', { value: this.data.value, cursor });
            },
            onFocus(event) {
                this.triggerEvent('focus', Object.assign({}, event.detail));