PreviewText

阅读态组件,主要用来实现类 Input,类 DatePicker 这些组件的阅读态

简单案例

:
Hello world

扩展案例

:

显示类型

FPreviewTextSelectFPreviewTextCascader 组件支持 2 种显示类型及自定义分隔符

:

API

PreviewText.Input

参考 https://element-plus.org/zh-CN/component/input.html

PreviewText.Select

参考 https://element-plus.org/zh-CN/component/select.html

属性名说明类型默认值
displayType显示类型Stringtag
separator数组转字符串分隔符String;

PreviewText.Cascader

参考 https://element-plus.org/zh-CN/component/cascader.html

属性名说明类型默认值
displayType显示类型Stringtag
separator数组转字符串分隔符String;

PreviewText.DatePicker

参考 https://element-plus.org/zh-CN/component/date-picker.html

PreviewText.TimePicker

参考 https://element-plus.org/zh-CN/component/datetime-picker.html

PreviewText

属性名类型描述默认值
valuestirng缺省占位符N/A

PreviewText.Placeholder

属性名类型描述默认值
valuestirng缺省占位符N/A

PreviewText.usePlaceholder

ts
interface usePreviewTextPlaceholder {
  (): string
}

源代码

文档