File tree Expand file tree Collapse file tree
examples/vue-quasar/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,13 +262,6 @@ const handleInitialized = async (registry: PluginRegistry) => {
262262 <Search />
263263 </aside >
264264
265- <button
266- v-if =" leftDrawerOpen || rightDrawerOpen"
267- type =" button"
268- class =" application__drawer-overlay"
269- aria-label =" Close drawers"
270- @click =" closeDrawers"
271- />
272265 </div >
273266 </div >
274267 </template >
@@ -324,39 +317,36 @@ const handleInitialized = async (registry: PluginRegistry) => {
324317}
325318
326319.application__drawer {
320+ position : absolute ;
321+ top : 0 ;
322+ bottom : 0 ;
327323 width : 300px ;
328- flex : 0 0 auto ;
329324 background-color : #ffffff ;
330325 border-right : 1px solid var (--q-color-grey-4 );
331326 overflow : auto ;
332327 transform : translateX (-100% );
333- transition : transform 0.2s ease ;
328+ transition : transform 0.2s ease , opacity 0.2s ease ;
329+ pointer-events : none ;
330+ opacity : 0 ;
334331 z-index : 2 ;
335332}
336333
334+ .application__drawer--left {
335+ left : 0 ;
336+ }
337+
337338.application__drawer--right {
339+ right : 0 ;
340+ left : auto ;
338341 border-right : none ;
339342 border-left : 1px solid var (--q-color-grey-4 );
340343 transform : translateX (100% );
341344}
342345
343346.application__drawer.is-open {
344347 transform : translateX (0 );
345- }
346-
347- .application__drawer-overlay {
348- position : absolute ;
349- inset : 0 ;
350- background : rgba (0 , 0 , 0 , 0.25 );
351- border : none ;
352- padding : 0 ;
353- margin : 0 ;
354- cursor : pointer ;
355- z-index : 1 ;
356- }
357-
358- .application__drawer-overlay :focus {
359- outline : 2px solid var (--q-color-primary );
348+ pointer-events : auto ;
349+ opacity : 1 ;
360350}
361351
362352.application__main {
Original file line number Diff line number Diff line change @@ -89,9 +89,10 @@ const handleNextPage = () => {
8989 }
9090};
9191
92- const handleInputChange = (value : string ) => {
92+ const handleInputChange = (value : string | number | null ) => {
9393 // Only allow numeric input
94- const numericValue = value .replace (/ [^ 0-9 ] / g , ' ' );
94+ const stringValue = value === null ? ' ' : String (value );
95+ const numericValue = stringValue .replace (/ [^ 0-9 ] / g , ' ' );
9596 inputValue .value = numericValue ;
9697};
9798
@@ -142,19 +143,21 @@ const isNextDisabled = computed(() => state.value.currentPage === state.value.to
142143
143144<style scoped>
144145.page-controls {
145- position : absolute ;
146- bottom : 16px ;
146+ position : fixed ;
147147 left : 50% ;
148+ bottom : 32px ;
148149 transform : translateX (-50% );
149150 z-index : 1000 ;
150- opacity : v-bind(isVisible ? 1 : 0 );
151+ opacity : v-bind(' isVisible ? 1 : 0' );
151152 transition : opacity 0.2s ease-in-out ;
153+ pointer-events : none ;
152154}
153155
154156.page-controls-card {
155157 background-color : #f8f9fa ;
156158 padding : 6px 10px ;
157159 border-radius : 10px ;
160+ pointer-events : auto ;
158161}
159162
160163.page-input {
You can’t perform that action at this time.
0 commit comments