From 59834220c1db73b276ad606a5a292735b40eef4e Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Feb 2018 22:50:26 +0900 Subject: [PATCH] :v: --- src/web/app/common/define-widget.ts | 4 +++ .../app/common/views/widgets/slideshow.vue | 28 +++++++++---------- src/web/app/desktop/views/components/home.vue | 2 +- src/web/app/mobile/views/pages/home.vue | 3 +- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/web/app/common/define-widget.ts b/src/web/app/common/define-widget.ts index 97925cf44..efce7e813 100644 --- a/src/web/app/common/define-widget.ts +++ b/src/web/app/common/define-widget.ts @@ -12,6 +12,10 @@ export default function(data: { isMobile: { type: Boolean, default: false + }, + isCustomizeMode: { + type: Boolean, + default: false } }, computed: { diff --git a/src/web/app/common/views/widgets/slideshow.vue b/src/web/app/common/views/widgets/slideshow.vue index 56eb654c2..eb83c6570 100644 --- a/src/web/app/common/views/widgets/slideshow.vue +++ b/src/web/app/common/views/widgets/slideshow.vue @@ -1,12 +1,14 @@ @@ -42,6 +44,9 @@ export default define({ clearInterval(this.clock); }, methods: { + func() { + this.resize(); + }, applySize() { let h; @@ -117,24 +122,17 @@ export default define({ border solid 1px rgba(0, 0, 0, 0.075) border-radius 6px - &:hover > button - display block - - > button - position absolute - left 0 - bottom 0 - display none - padding 4px - font-size 24px - color #fff - text-shadow 0 0 8px #000 - > div width 100% height 100% cursor pointer + > p + display block + margin 1em + text-align center + color #888 + > * pointer-events none diff --git a/src/web/app/desktop/views/components/home.vue b/src/web/app/desktop/views/components/home.vue index 59fd2aa36..69f06fbf3 100644 --- a/src/web/app/desktop/views/components/home.vue +++ b/src/web/app/desktop/views/components/home.vue @@ -47,7 +47,7 @@ :key="place" >
- +
diff --git a/src/web/app/mobile/views/pages/home.vue b/src/web/app/mobile/views/pages/home.vue index f4f458068..2aa650ec5 100644 --- a/src/web/app/mobile/views/pages/home.vue +++ b/src/web/app/mobile/views/pages/home.vue @@ -25,6 +25,7 @@ + @@ -45,7 +46,7 @@ %fa:bars%{{ widget.name }}
- +