feat: enhance AutoProbe components with improved styling and iframe sandboxing

This commit is contained in:
Marvin Zhang
2025-05-16 17:52:05 +08:00
parent 5d837cca7e
commit 2ec4707510
2 changed files with 14 additions and 2 deletions

View File

@@ -168,14 +168,21 @@ defineOptions({ name: 'ClAutoProbeItemDetail' });
</script>
<template>
<div class="cl-autoprobe-page-pattern-detail">
<div class="autoprobe-page-pattern-detail">
<cl-table
:columns="tableColumns"
:data="tableData"
embedded
sticky-header
hide-footer
:row-style="rowStyle"
:cell-style="cellStyle"
/>
</div>
</template>
<style scoped>
.autoprobe-page-pattern-detail {
height: 100%;
}
</style>

View File

@@ -154,7 +154,12 @@ defineOptions({ name: 'ClAutoProbeResultsContainer' });
/>
</div>
<div class="preview" v-else-if="activeTabName === TAB_NAME_PREVIEW">
<iframe v-if="url" ref="iframeRef" :src="url" />
<iframe
v-if="url"
ref="iframeRef"
:src="url"
sandbox="allow-scripts allow-same-origin allow-pointer-lock allow-downloads allow-modals allow-presentation"
/>
</div>
</div>
</template>