From d88237d967588b95f44418e8eed09a33dc3d8be7 Mon Sep 17 00:00:00 2001 From: rigor789 Date: Wed, 1 Apr 2020 19:38:02 +0200 Subject: [PATCH] feat(vShow): add runtime directive for vShow --- apps/test/app/app.js | 8 +++- packages/runtime/src/directives/vShow.ts | 49 ++++++++++++++++++++++++ packages/runtime/src/index.ts | 3 ++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 packages/runtime/src/directives/vShow.ts diff --git a/apps/test/app/app.js b/apps/test/app/app.js index 9e7668e5..212cdb62 100755 --- a/apps/test/app/app.js +++ b/apps/test/app/app.js @@ -10,14 +10,20 @@ import { } from 'nativescript-vue' const testComp = defineComponent({ + data() { + return { + toggle: true + } + }, template: `