Blame view

test/routers/more.vue 1.06 KB
2d948738   梁灏   update TimePicker...
1
2
3
  <style>
      body{
          height: 2000px !important;
9d844d53   梁灏   fixed Layout bug
4
5
      }
  </style>
7fa943eb   梁灏   init
6
  <template>
e011898c   梁灏   fixed #197
7
      <i-button type="primary" @click="modal1 = true">显示对话框</i-button>
f9a2e611   Rijn   added scrolling p...
8
9
      <i-button @click="scrolling = !scrolling">Toggle Scrolling</i-button>
      Scrolling:{{scrolling}}
e011898c   梁灏   fixed #197
10
11
12
      <Modal
              :visible.sync="modal1"
              title="普通的Modal对话框标题"
f9a2e611   Rijn   added scrolling p...
13
              :scrolling="scrolling"
e011898c   梁灏   fixed #197
14
15
16
17
18
              @on-ok="ok"
              @on-cancel="cancel">
          <p>对话框内容</p>
          <p>对话框内容</p>
          <p>对话框内容</p>
f9a2e611   Rijn   added scrolling p...
19
          <i-button @click="scrolling = !scrolling">Toggle Scrolling</i-button>
e011898c   梁灏   fixed #197
20
      </Modal>
7fa943eb   梁灏   init
21
22
  </template>
  <script>
7fa943eb   梁灏   init
23
      export default {
e011898c   梁灏   fixed #197
24
25
          data () {
              return {
f9a2e611   Rijn   added scrolling p...
26
27
                  modal1: false,
                  scrolling: false
e011898c   梁灏   fixed #197
28
29
30
31
32
33
34
35
36
37
38
              }
          },
          methods: {
              ok () {
                  this.$nextTick(() => this.modal1 = true);
                  this.$Message.info('点击了确定');
              },
              cancel () {
                  this.$Message.info('点击了取消');
              }
          }
7fa943eb   梁灏   init
39
      }
e1134de2   jingsam   not bundle vue in...
40
  </script>