mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-02 10:26:32 +00:00
feat(IconPicker): IconPicker could allowClear and readonly for form (#3414)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<template>
|
||||
<Input
|
||||
readonly
|
||||
:style="{ width }"
|
||||
:placeholder="t('component.icon.placeholder')"
|
||||
:class="prefixCls"
|
||||
v-model:value="currentSelect"
|
||||
@click="triggerPopover"
|
||||
:allowClear="props.allowClear"
|
||||
:readonly="props.readonly"
|
||||
>
|
||||
<template #addonAfter>
|
||||
<Popover
|
||||
@@ -103,6 +104,8 @@
|
||||
pageSize?: number;
|
||||
copy?: boolean;
|
||||
mode?: 'svg' | 'iconify';
|
||||
allowClear?: boolean;
|
||||
readonly?: boolean;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
@@ -111,6 +114,8 @@
|
||||
pageSize: 140,
|
||||
copy: false,
|
||||
mode: 'iconify',
|
||||
allowClear: true,
|
||||
readonly: false,
|
||||
});
|
||||
|
||||
// Don't inherit FormItem disabled、placeholder...
|
||||
|
Reference in New Issue
Block a user