Etdiyiniz dəyişikliklərin yayımlanandan sonra effekt verməsi üçün brauzerinizin keşini təmizləməyə ehtiyacınız ola bilər. Bunun üçün Chrome, Firefox, Edge, yaxud Safari istifadəçisisinizsə, klaviaturanızın Shift düyməsini sıxaraq brauzerin ⟳ səhifə yeniləmək düyməsini klik edə bilərsiniz.
<template><cdx-button@click="open=true"> Open Dialog
</cdx-button><cdx-dialogv-model:open="open"title="Save changes":use-close-button="true":primary-action="primaryAction":default-action="defaultAction"@primary="onPrimaryAction"@default="open=false"><p>Do you want to save your changes?</p><template#footer-text> You are not signed in. If you <ahref="#">log in</a> or
<ahref="#">create an account</a>, your edits will be attributed to a username.
</template></cdx-dialog></template><script>const{defineComponent,ref}=require('vue');const{CdxButton,CdxDialog}=require('@wikimedia/codex');module.exports=defineComponent({name:'DialogBasic',components:{CdxButton,CdxDialog},setup(){constopen=ref(false);constprimaryAction={label:'Save',actionType:'progressive'};constdefaultAction={label:'Cancel'};functiononPrimaryAction(){open.value=false;// eslint-disable-next-line no-consoleconsole.log('Primary action taken');}return{open,primaryAction,defaultAction,onPrimaryAction};}});</script>