File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 9898 <h4 >Minimized Modal</h4 >
9999 <p >This one has backdrop on small screens too.</p >
100100 <q-btn color =" red" @click =" $refs.minimizedModal.hide()" >Close Me</q-btn >
101+ <q-input type =" textarea" v-model =" textarea" />
101102 </q-modal >
102103
103104 <q-modal ref =" maximizedModal" maximized :content-css =" {padding: '50px'}" >
@@ -117,6 +118,7 @@ export default {
117118 data () {
118119 return {
119120 search: ' ' ,
121+ textarea: ' Textarea' ,
120122 toggle: false ,
121123 someModel: false ,
122124 types: [
Original file line number Diff line number Diff line change 88 Header
99 <span slot =" subtitle" >The Subtiiiitleeee</span >
1010 </q-toolbar-title >
11+ <q-color dark v-model =" mainColor" />
1112 <q-toggle v-model =" toggle" color =" amber" dark />
1213 <q-btn flat round dense icon =" menu" @click =" right = !right" />
1314 </q-toolbar >
@@ -217,6 +218,8 @@ export default {
217218 data () {
218219 const v = ' lHh Lpr fFf'
219220 return {
221+ mainColor: ' #027be3' ,
222+
220223 toggle: false ,
221224 header: true ,
222225 footer: true ,
@@ -262,6 +265,11 @@ export default {
262265 return ` ${ top} ${ middle} ${ bottom} `
263266 }
264267 },
268+ watch: {
269+ mainColor (v ) {
270+ document .documentElement .style .setProperty (` --q-color-primary` , v)
271+ }
272+ },
265273 methods: {
266274 onScroll (data ) {
267275 // console.log('scroll', data.position)
You can’t perform that action at this time.
0 commit comments