File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed
examples/sites/demos/mobile-first/app/input
packages/vue/src/input/src Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div class =" demo-input" >
3+ <tiny-input type =" textarea" v-model =" input" display-only popup-more ></tiny-input >
4+ </div >
5+ </template >
6+
7+ <script >
8+ import { TinyInput } from ' @opentiny/vue'
9+
10+ export default {
11+ components: {
12+ TinyInput
13+ },
14+ data () {
15+ return {
16+ input:
17+ ' 表单文本域开启只读模式,\n 文本内容超过 5 行自动隐藏。\n 表单文本域开启只读模式,\n 文本内容超过 5 行自动隐藏。\n 表单文本域开启只读模式,\n 文本内容超过 5 行自动隐藏。\n 表单文本域开启只读模式,\n 文本内容超过 5 行自动隐藏。\n 表单文本域开启只读模式,\n 文本内容超过 5 行自动隐藏'
18+ }
19+ }
20+ }
21+ </script >
22+
23+ <style scoped>
24+ .demo-input .tiny-textarea {
25+ width : 260px ;
26+ }
27+ </style >
Original file line number Diff line number Diff line change @@ -508,6 +508,20 @@ export default {
508508 'en-US' : '<p>bbutton click</p>'
509509 } ,
510510 codeFiles : [ 'display-only-content.vue' ]
511+ } ,
512+ {
513+ demoId : 'display-only-popup-more' ,
514+ name : {
515+ 'zh-CN' : '文本域只读超出显示更多按钮' ,
516+ 'en-US' : 'Text field read-only beyond Show more button'
517+ } ,
518+ desc : {
519+ 'zh-CN' :
520+ '在只读的基础上增加<code>popup-more</code>属性,可使文本域超出显示更多按钮,点击更多按钮可以查看详细信息。' ,
521+ 'en-US' :
522+ 'The <code>popup-more</code> attribute is added to enable the text field to exceed the display of more buttons. You can click more buttons to view details.'
523+ } ,
524+ codeFiles : [ 'display-only-popup-more.vue' ]
511525 }
512526 ]
513527}
Original file line number Diff line number Diff line change 314314 :close-on-click-modal =" false"
315315 @update:visible =" state.showDisplayOnlyBox = $event"
316316 >
317- <div >{{ state.displayOnlyText }}</div >
317+ <pre class = " font-[inherit] " >{{ state.displayOnlyText }}</pre >
318318 <template #footer >
319319 <tiny-button @click =" state.showDisplayOnlyBox = false" >{{ t('ui.input.close') }}</tiny-button >
320320 </template >
You can’t perform that action at this time.
0 commit comments