feat: copyable stopPropagation #5746 (#5769)

* 分离copyable按钮动作,不再冒泡至父级组件

* Update interactive.vue

Co-authored-by: tangjinzhou <415800467@qq.com>
pull/5934/head
atom 2022-09-01 14:09:07 +08:00 committed by GitHub
parent 187f3b8c07
commit d48cd8ef57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ const Base = defineComponent({
// ================ Copy ================
function onCopyClick(e: MouseEvent) {
e.preventDefault();
e.stopPropagation();
const { copyable } = props;
const copyConfig = {