Commit 336b4f463c8bdff7c11ca975d0c0881eb2ee270b
1 parent
e55f00ff
fixed #132
fixed #132
Showing
2 changed files
with
5 additions
and
6 deletions
Show diff stats
src/components/table/table.vue
| @@ -306,12 +306,10 @@ | @@ -306,12 +306,10 @@ | ||
| 306 | }, | 306 | }, |
| 307 | toggleSelect (_index) { | 307 | toggleSelect (_index) { |
| 308 | let data = {}; | 308 | let data = {}; |
| 309 | - let index = -1; | ||
| 310 | 309 | ||
| 311 | for (let i in this.objData) { | 310 | for (let i in this.objData) { |
| 312 | if (parseInt(i) === _index) { | 311 | if (parseInt(i) === _index) { |
| 313 | data = this.objData[i]; | 312 | data = this.objData[i]; |
| 314 | - index = i; | ||
| 315 | } | 313 | } |
| 316 | } | 314 | } |
| 317 | const status = !data._isChecked; | 315 | const status = !data._isChecked; |
test/routers/date.vue
| 1 | <template> | 1 | <template> |
| 2 | - <div style="margin: 50px"> | 2 | + <div style="margin: 150px"> |
| 3 | <br> | 3 | <br> |
| 4 | <row> | 4 | <row> |
| 5 | - <i-col span="4"> | 5 | + <i-col span="8"> |
| 6 | <!--<i-button @click="setDate">set date</i-button>--> | 6 | <!--<i-button @click="setDate">set date</i-button>--> |
| 7 | <date-picker | 7 | <date-picker |
| 8 | style="width:200px" | 8 | style="width:200px" |
| @@ -11,12 +11,13 @@ | @@ -11,12 +11,13 @@ | ||
| 11 | :options="options" | 11 | :options="options" |
| 12 | @on-change="change" | 12 | @on-change="change" |
| 13 | :format="format" | 13 | :format="format" |
| 14 | + :editable="false" | ||
| 14 | @on-open-change="change2"></date-picker> | 15 | @on-open-change="change2"></date-picker> |
| 15 | </i-col> | 16 | </i-col> |
| 16 | - <i-col span="4"> | 17 | + <i-col span="8"> |
| 17 | <date-picker type="year" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker> | 18 | <date-picker type="year" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker> |
| 18 | </i-col> | 19 | </i-col> |
| 19 | - <i-col span="4"> | 20 | + <i-col span="8"> |
| 20 | <date-picker type="month" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker> | 21 | <date-picker type="month" style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker> |
| 21 | </i-col> | 22 | </i-col> |
| 22 | </row> | 23 | </row> |