mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(components): update
This commit is contained in:
@@ -142,7 +142,7 @@ export default {
|
||||
|
||||
const autoFocus = () => {
|
||||
if (props.autofocus) {
|
||||
textarea.value.focus()
|
||||
input.value.focus()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,10 +66,7 @@ export default {
|
||||
},
|
||||
resize: {
|
||||
type: Boolean,
|
||||
default: null,
|
||||
validator (value) {
|
||||
return ['none'].includes(value)
|
||||
}
|
||||
default: true
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
@@ -152,7 +149,7 @@ export default {
|
||||
})[props.appearance])
|
||||
|
||||
const resizeClass = computed(() => {
|
||||
return props.resize === 'none' ? 'resize-none' : ''
|
||||
return props.resize ? '' : 'resize-none'
|
||||
})
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user