We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dfb7c2 commit 0591f5eCopy full SHA for 0591f5e
tests/unit/component.spec.js
@@ -10,22 +10,11 @@ const ContainerQueryApp = {
10
data () {
11
return { params: {} }
12
},
13
- methods: {
14
- handleChange (params) {
15
- this.params = params
16
- }
17
- },
18
- render (h) {
19
- return (
20
- <container-query
21
- query={this.query}
22
- initialSize={this.initialSize}
23
- onChange={this.handleChange}
24
- >
25
- <pre class="app">{ this.params }</pre>
26
- </container-query>
27
- )
28
+ template: `
+<container-query :query="query" :initialSize="initialSize" v-model="params">
+ <pre class="app">{{ params }}</pre>
+</container-query>
+`
29
}
30
31
describe('ContainerQuery', () => {
@@ -55,4 +44,3 @@ describe('ContainerQuery', () => {
55
44
expect(wrapper.is('pre.app')).toBe(true)
56
45
})
57
46
58
-
0 commit comments