import { Empty, Skeleton, Divider, Flex, Button } from 'antd' import { Conditional } from '@/components/Conditional' import { isNotEmpty } from '@haina/utils-commons' const HtmlPreview = (props) => { const { loading = false, value, onEdit, onCopied, onDelete } = props if (loading) { return } return (
} whenFalse={} /> 编辑} /> { const range = document.createRange() range.selectNode(document.getElementById('__preHtml__')) window.getSelection().removeAllRanges() window.getSelection().addRange(range) document.execCommand('copy') // window.getSelection().removeAllRanges() onCopied() }}> 复制 } /> 删除} /> ) } export default HtmlPreview