组件引入

const PopoverInput = defineAsyncComponent(
  () => import("/@/components/PopoverInput/index.vue")
);

基本用法

<popover-input @confirm="onConfirm">
  <template #default>
    <el-button>点击输入</el-button>
  </template>
</popover-input>

属性说明

属性说明类型默认值
valueString-
type类型String’text’
width宽度Number | String’300px’
placeholder提示文字String-
disabled是否禁用Booleanfalse
options选项列表Array<any>[]
size大小’default’ | ‘small’ | ‘large''default’
limit字符限制Number200
showLimit是否显示字符限制Booleanfalse
teleported是否使用传送门(teleport)进行渲染Booleantrue

♥️ 获取支持

遇到问题?

如果您在使用过程中遇到任何问题、有功能建议或需求,请点击此卡片前往 Gitee 仓库提交 Issue。