Skip to content

Commit

Permalink
style: 布局样式微调
Browse files Browse the repository at this point in the history
  • Loading branch information
ttop5 committed Aug 7, 2019
1 parent daeacd1 commit 0cb5470
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
4 changes: 2 additions & 2 deletions quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function (ctx) {
extras: [
// 'ionicons-v4',
// 'mdi-v3',
// 'fontawesome-v5',
'fontawesome-v5',
// 'eva-icons',
// 'themify',
// 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
Expand All @@ -26,7 +26,7 @@ module.exports = function (ctx) {
],

framework: {
// iconSet: 'ionicons-v4',
iconSet: 'fontawesome-v5',
// lang: 'de', // Quasar language

// all: true, // --- includes everything; for dev only!
Expand Down
38 changes: 26 additions & 12 deletions src/layouts/MyLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,28 @@
<q-icon name="menu" />
</q-btn>
<q-toolbar-title>{{ typeListObj[$route.query.id] }}</q-toolbar-title>
<iframe
src="https://ghbtns.com/github-btn.html?user=ttop5&repo=to-be-slack&type=star&count=true"
frameborder="0"
scrolling="0"
width="100px"
height="20px"
>
</iframe>
<q-btn-dropdown flat label="更多">
<q-list>
<q-item clickable v-ripple tag="a" target="_blank" href="https://github.com/ttop5/to-be-slack">
<q-item-section avatar>
<q-icon name="fab fa-github" />
</q-item-section>
<q-item-section>GitHub 仓库</q-item-section>
</q-item>
<q-item clickable v-ripple tag="a" target="_blank" href="https://chrome.google.com/webstore/detail/%E4%BB%8A%E6%97%A5%E7%83%AD%E6%A6%9C/ldmhioaifhbepgelhgcjkpfjlhmcjmmd">
<q-item-section avatar>
<q-icon name="fab fa-chrome" />
</q-item-section>
<q-item-section>Chrome 插件</q-item-section>
</q-item>
<q-item clickable v-ripple tag="a" target="_blank" href="https://github.com/ttop5/to-be-slack/blob/master/README.md#pwa-1">
<q-item-section avatar>
<q-icon name="fas fa-mobile-alt" />
</q-item-section>
<q-item-section>PWA 程序使用</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-toolbar>
</q-header>

Expand All @@ -28,14 +42,14 @@
<q-item-label header class="flex">
<q-item-section>Links</q-item-section>
<q-item-section side top>
<q-btn-dropdown flat label="菜单定制">
<q-btn-dropdown flat label="设置">
<q-list>
<q-item clickable v-ripple>
<q-toggle dense v-model="showEdit">编辑开关</q-toggle>
<q-toggle dense v-model="showEdit">菜单编辑</q-toggle>
</q-item>
<q-item clickable v-ripple @click="showAll">
<q-item-section avatar style="padding-left: 12px;">
<q-icon name="list" size="28px" />
<q-item-section avatar style="padding-left: 18px;">
<q-icon name="fas fa-list" size="22px" />
</q-item-section>
<q-item-section>恢复默认</q-item-section>
</q-item>
Expand Down

0 comments on commit 0cb5470

Please sign in to comment.