feat(Search): add error-message prop (#8442)

This commit is contained in:
neverland
2021-04-01 10:19:50 +08:00
committed by GitHub
parent 522ce16159
commit 96ae24496e
5 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -35,6 +35,7 @@ export default defineComponent({
actionText: String,
background: String,
showAction: Boolean,
errorMessage: String,
clearTrigger: String as PropType<FieldClearTrigger>,
formatTrigger: String as PropType<FieldFormatTrigger>,
shape: {
@@ -51,7 +52,7 @@ export default defineComponent({
},
},
emits: ['update:modelValue', 'search', 'cancel'],
emits: ['search', 'cancel', 'update:modelValue'],
setup(props, { emit, slots, attrs }) {
const filedRef = ref<ComponentInstance>();
@@ -108,6 +109,7 @@ export default defineComponent({
'clearable',
'modelValue',
'clearTrigger',
'errorMessage',
'formatTrigger',
] as const;