1234567891011121314151617181920212223 |
- <template>
- <kk-button text @click="dialogVisible = true">
- Click to open Dialog
- </kk-button>
- <kk-dialog v-model="dialogVisible" title="Tips" width="30%" draggable>
- <span>It's a draggable Dialog</span>
- <template #footer>
- <span class="dialog-footer">
- <kk-button @click="dialogVisible = false">Cancel</kk-button>
- <kk-button type="primary" @click="dialogVisible = false">
- Confirm
- </kk-button>
- </span>
- </template>
- </kk-dialog>
- </template>
- <script lang="ts" setup>
- import { ref } from 'vue'
- import { KkButton, KkDialog } from 'kankan-components'
- const dialogVisible = ref(false)
- </script>
|