Skip to content

Commit

Permalink
add AppBar sample
Browse files Browse the repository at this point in the history
fix some errors
  • Loading branch information
A1Gard committed May 11, 2021
1 parent bbe7594 commit e89f74b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
13 changes: 10 additions & 3 deletions src/components/flutter/AppBar.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
<template>
<div id="#appBar">

<div id="appBar">
{{title}}
</div>
</template>

<script>
export default {
name: "AppBar"
name: "AppBar",
props: [
'title',
'backgroundColor',
'textColor',
],
}
</script>

<style scoped>
#appBar {
}
</style>
11 changes: 4 additions & 7 deletions src/components/pages/MainAppPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<div id="main">
<div class="container">
<div id="mobile" :style="'width:'+display.width * display.scale+'px;height:'+display.height * display.scale+'px'">
<span class="material-icons-outlined">360</span>
<span class="material-icons-round">home</span>
<span class="material-icons-sharp">home</span>
<span class="material-icons-two-tone">home</span>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequuntur error ipsum placeat quam? Ad alias
commodi debitis distinctio doloribus illo necessitatibus neque nesciunt nobis optio quo reprehenderit, sed,
sequi voluptatum!
Expand Down Expand Up @@ -90,7 +86,6 @@ import property from '../elements/PropertyElement';
import compo from '../elements/ComponentElement';
import appMenu from '../elements/AppMenuElement';
export default {
name: "MainAppPage",
components: {page, property, compo, appMenu},
Expand Down Expand Up @@ -118,8 +113,10 @@ export default {
//
console.log(e.message);
}
},methods:{
getcomponent (x) {
return () => import(`../flutter/${component}`);
}
}
}
</script>
Expand Down
3 changes: 2 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "script-loader!jquery.nicescroll/dist/jquery.nicescroll.min";
import "script-loader!semantic-ui-css/semantic.min";
/*eslint-enable */
Vue.config.productionTip = false;
require('@/assets/js/win_vars.js');
require('@/assets/js/winVars.js');


new Vue({
Expand All @@ -17,3 +17,4 @@ new Vue({
// this.$router.push("/");
}
}).$mount("#app");

0 comments on commit e89f74b

Please sign in to comment.