Skip to content

Commit 13b5a25

Browse files
authored
fix(input): [input] fix textarea word wrap style (#2896)
1 parent 445740d commit 13b5a25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/sites/demos/pc/app/input/display-only-popup-more-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ref } from 'vue'
99
import { TinyInput } from '@opentiny/vue'
1010
1111
const input = ref(
12-
'表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏'
12+
'表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏'
1313
)
1414
</script>
1515

examples/sites/demos/pc/app/input/display-only-popup-more.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
data() {
1515
return {
1616
input:
17-
'表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏'
17+
'表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏'
1818
}
1919
}
2020
}

packages/vue/src/input/src/pc.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
:append-to-body="true"
194194
@update:visible="state.showDisplayOnlyBox = $event"
195195
>
196-
<div>{{ state.displayOnlyText }}</div>
196+
<pre>{{ state.displayOnlyText }}</pre>
197197
<template #footer>
198198
<tiny-button @click="state.showDisplayOnlyBox = false">{{ t('ui.input.close') }}</tiny-button>
199199
</template>

0 commit comments

Comments
 (0)