Skip to content

Commit

Permalink
Checklist: Title is not required now
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Jul 7, 2016
1 parent 1f22c62 commit 839fff3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/checklist/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div v-show="title" class="weui_cells_title">{{title}}</div>
<div class="weui_cells weui_cells_checkbox">
<label class="weui_cell weui_check_label" for="checkbox_{{uuid}}_{{index}}" v-for="(index,one) in options">
<label class="weui_cell weui_check_label" for="checkbox_{{uuid}}_{{index}}" v-for="(index, one) in options">
<div class="weui_cell_hd">
<input type="checkbox" class="weui_check" value="{{one | getKey}}" v-model="value" id="checkbox_{{uuid}}_{{index}}">
<i class="weui_icon_checked"></i>
Expand Down Expand Up @@ -32,10 +32,7 @@ export default {
},
mixins: [Base],
props: {
title: {
type: String,
required: true
},
title: String,
required: {
type: Boolean,
default: true
Expand Down

0 comments on commit 839fff3

Please sign in to comment.