From 2757345c64dbfd860a771dcd5a42af7bae805ded Mon Sep 17 00:00:00 2001 From: Anatoly Date: Mon, 9 Aug 2021 21:02:58 +0300 Subject: [PATCH] Initial commit --- public/index.html | 3 ++- src/App.vue | 47 ++++++++++++++++++++++++++++++++--- src/components/HelloWorld.vue | 4 +++ vue.config.js | 10 ++++++++ 4 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 vue.config.js diff --git a/public/index.html b/public/index.html index 3e5a139..47422a4 100644 --- a/public/index.html +++ b/public/index.html @@ -3,8 +3,9 @@ - + + <%= htmlWebpackPlugin.options.title %> diff --git a/src/App.vue b/src/App.vue index 889e4c5..239afcc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,8 @@ @@ -13,16 +14,54 @@ export default { components: { HelloWorld, }, + data() { + return { + sat: undefined, + }; + }, + methods: { + setSat() { + this.sat = getComputedStyle(document.body).getPropertyValue('--sat'); + }, + }, + mounted() { + window.onload = this.setSat; + }, }; diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 66b641b..697bf21 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -42,6 +42,10 @@ export default {