PreviewText

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

简单案例

扩展案例

API

PreviewText.Input

参考 https://www.naiveui.com/zh-CN/os-theme/components/inputopen in new window

PreviewText.Select

参考 https://www.naiveui.com/zh-CN/os-theme/components/selectopen in new window

PreviewText.Cascader

参考 https://www.naiveui.com/zh-CN/os-theme/components/cascaderopen in new window

PreviewText.DatePicker

参考 https://www.naiveui.com/zh-CN/os-theme/components/date-pickeropen in new window

PreviewText.TimePicker

参考 https://www.naiveui.com/zh-CN/os-theme/components/time-pickeropen in new window

PreviewText

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

PreviewText.Placeholder

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

PreviewText.usePlaceholder

interface usePreviewTextPlaceholder {
  (): string
}