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