10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
v-show
1 parent 462d062 commit 69c17bcCopy full SHA for 69c17bc
platform/nativescript/runtime/directives/index.js
@@ -1,5 +1,7 @@
1
+import show from './show'
2
import view from './view'
3
4
export default {
- view: view
5
+ show,
6
+ view
7
}
platform/nativescript/runtime/directives/show.js
@@ -0,0 +1,12 @@
+function show(el, show) {
+ el.setAttribute('visibility', show ? 'visible' : 'collapsed')
+}
+
+export default {
+ inserted(el, { value }) {
+ show(el, value)
8
+ },
9
+ update(el, { value }) {
10
11
+ }
12
0 commit comments