We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7478939 commit f9d8523Copy full SHA for f9d8523
src/uni_modules/wot-design-uni/components/wd-textarea/wd-textarea.vue
@@ -177,7 +177,11 @@ const isRequired = computed(() => {
177
178
// 当前文本域文字长度
179
const currentLength = computed(() => {
180
- return String(formatValue(props.modelValue) || '').length
+ /**
181
+ * 使用Array.from处理多码元字符以获取正确的长度
182
+ * @link https://github.com/Moonofweisheng/wot-design-uni/issues/933
183
+ */
184
+ return Array.from(String(formatValue(props.modelValue) || '')).length
185
})
186
187
const rootClass = computed(() => {
0 commit comments