Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ref } from 'vue'
import { TinyInput } from '@opentiny/vue'

const input = ref(
'表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏'
'表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏'
)
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
data() {
return {
input:
'表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏。表单文本域开启只读模式,文本内容超过 5 行自动隐藏'
'表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏。\n表单文本域开启只读模式,\n文本内容超过 5 行自动隐藏'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/input/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
:append-to-body="true"
@update:visible="state.showDisplayOnlyBox = $event"
>
<div>{{ state.displayOnlyText }}</div>
<pre>{{ state.displayOnlyText }}</pre>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from <div> to <pre> is a significant change as it affects how whitespace and line breaks are handled. Ensure that this change does not inadvertently affect other styles or functionalities related to text display.

<template #footer>
<tiny-button @click="state.showDisplayOnlyBox = false">{{ t('ui.input.close') }}</tiny-button>
</template>
Expand Down
Loading