Commit 6e572d4428efe4198cb7070445ebecd1d5528662

Authored by 梁灏
1 parent cbd3591c

fixed #133

fixed #133
src/components/loading-bar/index.js
... ... @@ -44,6 +44,8 @@ function clearTimer() {
44 44  
45 45 export default {
46 46 start () {
  47 + if (timer) return;
  48 +
47 49 let percent = 0;
48 50  
49 51 update({
... ...
src/styles/components/date-picker.less
... ... @@ -192,6 +192,9 @@
192 192 padding: @btn-padding-large;
193 193 transition: all @transition-time @ease-in-out;
194 194 cursor: pointer;
  195 + overflow: hidden;
  196 + text-overflow: ellipsis;
  197 + white-space: nowrap;
195 198  
196 199 &:hover{
197 200 background: @border-color-split;
... ...
test/routers/date.vue
... ... @@ -59,7 +59,7 @@
59 59 }
60 60 },
61 61 {
62   - text: '一周前',
  62 + text: '最近三个月',
63 63 value () {
64 64 const date = new Date();
65 65 date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
... ...
test/routers/more.vue
... ... @@ -22,9 +22,22 @@
22 22 <i-col :xs="{ span: 11, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 2</div></i-col>
23 23 <i-col :xs="{ span: 5, offset: 1 }" :lg="{ span: 6, offset: 2 }"><div class="aaaaa">Col 3</div></i-col>
24 24 </Row>
  25 + <i-button @click="start">Start</i-button>
  26 + <i-button @click="finish">Finish</i-button>
  27 + <i-button @click="error">Error</i-button>
25 28 </template>
26 29 <script>
27 30 export default {
28   -
  31 + methods: {
  32 + start () {
  33 + this.$Loading.start();
  34 + },
  35 + finish () {
  36 + this.$Loading.finish();
  37 + },
  38 + error () {
  39 + this.$Loading.error();
  40 + }
  41 + }
29 42 }
30 43 </script>
... ...