Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfe24205

Browse files
committed
polls
1 parent7e8a006 commitfe24205

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

‎src/components/item.vue‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@
2323
color$gray
2424
.subtexta:hover
2525
text-decorationunderline
26-
.poll-options
27-
padding-left30px
28-
list-style-typedisc
29-
li
30-
margin12px0
31-
p
32-
margin8px0
33-
&.current
34-
background-colordarken($bg,5%)
3526
</style>
3627

3728
<template>

‎src/views/item-view.vue‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
<style lang="stylus">
2-
.view.items
2+
@import"src/shared.styl"
3+
.item-view
34
.item
45
padding-left0
56
margin-bottom30px
67
.index,.comments-link
78
displaynone
9+
.poll-options
10+
margin-left30px
11+
margin-bottom40px
12+
li
13+
margin12px0
14+
p
15+
margin8px0
16+
.subtext
17+
color$gray
18+
font-size11px
819
</style>
920

1021
<template>
11-
<divclass="viewitems"v-with="id:params.itemId"v-show="item">
22+
<divclass="viewitem-view"v-with="id:params.itemId"v-show="item">
1223
<divclass="item"v-component="item"v-with="item"></div>
1324
<ulclass="poll-options"v-if="pollOptions">
1425
<liv-repeat="pollOptions">
@@ -56,7 +67,9 @@ module.exports = {
5667
}.bind(this))
5768
},
5869
fetchPollOptions:function () {
59-
70+
store.fetchItems(this.item.parts,function (options) {
71+
this.pollOptions= options
72+
}.bind(this))
6073
}
6174
},
6275
components: {

‎src/views/news-view.vue‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<style lang="stylus">
2-
.view.news
2+
.news-view
33
padding-left0
44
padding-right0
5-
65
&.loading:before
76
content"Loading..."
87
positionabsolute
98
top16px
109
left20px
11-
1210
.nav
1311
padding10px10px10px40px
1412
margin-top10px
@@ -20,7 +18,7 @@
2018
</style>
2119

2220
<template>
23-
<divclass="view news"v-with="page:params.page"v-class="loading:!items.length">
21+
<divclass="view news-view"v-with="page:params.page"v-class="loading:!items.length">
2422
<!-- item list-->
2523
<ul>
2624
<liclass="item"v-repeat="items"v-component="item"trackby="id"></li>

‎src/views/user-view.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<style lang="stylus">
2-
.view.user
2+
.user-view
33
color$gray
44
li
55
margin5px0
@@ -13,7 +13,7 @@
1313
</style>
1414

1515
<template>
16-
<divclass="view user"v-with="id:params.userId"v-show="user">
16+
<divclass="view user-view"v-with="id:params.userId"v-show="user">
1717
<ul>
1818
<li><spanclass="label">user:</span> {{user.id}}</li>
1919
<li><spanclass="label">created:</span> {{user.created | fromNow}} ago</li>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp