testing with setting var func and pug template

This commit is contained in:
sanjayk03-dev
2023-12-30 15:51:21 +05:30
parent 26d8314ad0
commit c0881bd966
3 changed files with 12 additions and 3 deletions

View File

@@ -203,13 +203,16 @@ module.exports = {
return Math.min(1, p); return Math.min(1, p);
}, },
isMacrosPresent: function(){ isMacrosPresent: function(){
return this.config.macros != undefined; return true;
// if(this.config.macros!=undefined){ // if(this.config.macros!=undefined){
// console.log("isMacrosPresent",this.config.macros!=undefined); // console.log("isMacrosPresent",this.config.macros!=undefined);
// console.log(this.config.macros.length!=0); // console.log(this.config.macros.length!=0);
// return this.config.macros.length!=0; // return this.config.macros.length!=0;
// } // }
// return false; // return false;
},
isMacrosAbsent: function(){
return false;
} }
}, },

View File

@@ -209,10 +209,14 @@ script#control-view-template(type="text/x-template")
.macros-div .macros-div
p Macros p Macros
.test-true(v-if="isMacrosPresent")
p true
.test-false(v-if="isMacrosAbsent")
p false`
.macros-buttons(v-if="config.macros!=undefined") .macros-buttons(v-if="config.macros!=undefined")
p there is a active macro p there is a active macro
.macros-buttons(v-if="config.macros==undefined") .macros-buttons(v-if="config.macros==undefined")
p there is no macro p there is no macro
.tabs .tabs

View File

@@ -531,6 +531,8 @@ span.unit
white-space nowrap white-space nowrap
.tabs .tabs
padding-top 40px
section section
min-height 500px min-height 500px
overflow-x hidden overflow-x hidden