Comments (2)
not an exact solution but heres how ive done about solving it
const inputProps = {
variant: 'outlined',
density: 'compact',
hideDetails: true,
color: 'primary',
persistentPlaceholder: true,
}
export default defineNuxtPlugin((nuxtApp) => {
const vuetify = createVuetify({
// ...
defaults: {
VTextField: { ...inputProps },
VTextarea: { ...inputProps },
VSelect: { ...inputProps, openOnClear: false },
VAutocomplete: { ...inputProps, openOnClear: false },
VCombobox: { ...inputProps, openOnClear: false },
}
})
}
from vuetify.
not an exact solution but heres how ive done about solving it
const inputProps = { variant: 'outlined', density: 'compact', hideDetails: true, color: 'primary', persistentPlaceholder: true, } export default defineNuxtPlugin((nuxtApp) => { const vuetify = createVuetify({ // ... defaults: { VTextField: { ...inputProps }, VTextarea: { ...inputProps }, VSelect: { ...inputProps, openOnClear: false }, VAutocomplete: { ...inputProps, openOnClear: false }, VCombobox: { ...inputProps, openOnClear: false }, } }) }
Surely better than mine, but I'd like to have a more elegant and shorter solution from Vuetify.
from vuetify.
Related Issues (20)
- [Bug Report][3.6.3] VTabs scoped class doen't works HOT 2
- [Bug Report][3.6.3] VTabs attribute inheritance runtime warning
- [Bug Report][3.6.3] VDialog location and offset props do not affect dialog HOT 2
- [Bug Report][3.5.15] Combobox does not work properly with type date/month HOT 2
- [Bug Report][3.6.3] labs/number inputs (v-input-number) unable to tab out of control HOT 1
- [Bug Report][3.6.3] VDefaultsProvider doesn't work with local component HOT 1
- [Feature Request] Simplify v-img error slot usage
- [Bug Report][3.6.3] Dropdown menu list does not update for v-select with eager props
- [Bug Report][3.6.3] VMenu: Invalid default value for aria-expanded HOT 3
- [Bug Report][3.6.3] VMenu dismisses on enter keypress when inner textarea is focused
- [Bug Report][3.6.4] Error in v-text-field size when using slot HOT 1
- [Bug Report][3.6.4] TextField does not change text alignment based on the input HOT 1
- [Bug Report][3.6.4] clear-icon not animating when binding boolean value to :clearable prop
- [Feature Request] VNumberInput dynamic step size HOT 1
- [Bug Report][3.6.4] V-Menu Persistent Parent Closed by Child
- [Feature Request] Prevent overflow in mobile data tables
- [Bug Report][3.6.4] Default prop values with a null value are ignored
- [Bug Report][3.6.4] Speed dial position doesn't work at all
- [Bug Report][3.6.4] Speed dial and tooltip crashes HOT 3
- [Feature Request] Mobile devices click on increment or decrement in a v-input-number stop open the keyboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuetify.