// ==================== 所有弹窗组件 ==================== // -------------------- JSON 预览弹窗 -------------------- window.JsonPreviewDialog = { name: 'JsonPreviewDialog', props: { show: { type: Boolean, default: false }, jsonData: { type: Object, default: () => ({}) }, title: { type: String, default: '配置 JSON' } }, emits: ['close', 'copy', 'save'], data() { return { draft: '' }; }, watch: { show: { handler(value) { if (value) { this.draft = JSON.stringify(this.jsonData || {}, null, 2); } }, immediate: true }, jsonData: { handler() { if (this.show) { this.draft = JSON.stringify(this.jsonData || {}, null, 2); } }, deep: true } }, template: `
不只是看“找到了没”,还会给出候选写法、风险提示和回填入口。
{{ diagnosis.summary }}
{{ result.message }}
{{ candidate.selector }}
{{ element.html_preview }}
{{ candidate.selector }}
{{ singleImportHint }}
用于工作流配置中引用此元素
AI 会根据这个描述在页面中查找对应的元素