Skip to content

Commit 537a232

Browse files
committed
chore: additions to /dev test cases
1 parent 32da9cc commit 537a232

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dev/components/components/modal.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
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: [

dev/components/new-layout/new-layout.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
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)

0 commit comments

Comments
 (0)