Blame view

examples/routers/modal.vue 628 Bytes
6259471f   梁灏   support Modal
1
2
  <template>
      <div>
707a3d82   梁灏   update Modal for ...
3
4
5
6
7
8
9
10
          <Button @click="modal12 = true">Open the first modal</Button>
          <Button @click="modal13 = true">Open the second modal</Button>
          <Modal v-model="modal12" draggable scrollable title="Modal 1">
              <div>This is the first modal</div>
          </Modal>
          <Modal v-model="modal13" draggable scrollable title="Modal 2">
              <div>This is the second modal</div>
          </Modal>
6259471f   梁灏   support Modal
11
12
13
14
      </div>
  </template>
  <script>
      export default {
707a3d82   梁灏   update Modal for ...
15
16
17
18
          data () {
              return {
                  modal12: false,
                  modal13: false
6259471f   梁灏   support Modal
19
20
21
22
              }
          }
      }
  </script>