.icon { width: 17px !important; height: 1em; vertical-align: -0.15em; fill: currentColor; overflow: hidden; }
时间: 2024-04-10 16:32:27 浏览: 137
这段CSS代码是为一个名为".icon"的选择器定义了一系列样式属性。让我逐一解释每个属性的作用:
1. `width: 17px !important;`:设置图标的宽度为17像素。`!important`表示该属性具有最高优先级,将覆盖其他可能存在的相同属性。
2. `height: 1em;`:设置图标的高度为1个字体大小单位(em)。这样可以确保图标的尺寸与周围文本保持一致。
3. `vertical-align: -0.15em;`:将图标垂直对齐到文本的基线上,向上偏移0.15个字体大小单位(em)。
4. `fill: currentColor;`:设置图标的填充颜色与当前元素的文字颜色保持一致。这样可以根据上下文自动应用正确的颜色。
5. `overflow: hidden;`:如果图标超出了其容器的尺寸,将隐藏多余部分,以避免溢出。
这些样式属性通常用于处理SVG图标或icon font等可缩放矢量图形的显示和布局。请注意,这段代码中的样式只适用于使用".icon"类的元素。
相关问题
e.target.innerHTML值为<div><div class="ant-spin-nested-loading"><div class="ant-spin-container"><div class="_face_detect_next_"><div class="m-form-control content"><div class="content-video"><div class="ant-row video-wrap-div" style="row-gap: 0px;"><div class="video-wrap"><span><span role="img" class="anticon myicon-videoDefault myicon undefined"><svg viewBox="0 0 80 80" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 80px; height: 80px;"><path fill-rule="evenodd" clip-rule="evenodd" fill="#222" d="M72 40c0 6.627-5.373 12-12 12-6.628 0-12-5.373-12-12s5.372-12 12-12c6.627 0 12 5.373 12 12zm-21.004 0c0 4.973 4.031 9.004 9.004 9.004s9.004-4.031 9.004-9.004-4.031-9.004-9.004-9.004-9.004 4.031-9.004 9.004zM40 8c6.627 0 12 5.373 12 12s-5.373 12-12 12c-6.628 0-12-5.373-12-12S33.372 8 40 8zm0 21.004c4.973 0 9.004-4.031 9.004-9.004S44.973 10.996 40 10.996 30.996 15.027 30.996 20s4.031 9.004 9.004 9.004zM8 40c0-6.627 5.372-12 12-12 6.627 0 12 5.373 12 12s-5.373 12-12 12c-6.628 0-12-5.373-12-12zm21.004 0c0-4.973-4.031-9.004-9.004-9.004S10.996 35.027 10.996 40s4.031 9.004 9.004 9.004 9.004-4.031 9.004-9.004zM37 40a3 3 0 116 0 3 3 0 01-6 0zm15 20c0 6.627-5.373 12-12 12-6.628 0-12-5.373-12-12s5.372-12 12-12c6.627 0 12 5.373 12 12zm-12-9.004c-4.973 0-9.004 4.031-9.004 9.004s4.031 9.004 9.004 9.004 9.004-4.031 9.004-9.004-4.031-9.004-9.004-9.004zm28.284 17.288l-2.828-2.828C71.971 58.941 76 49.941 76 40 76 20.118 59.882 4 40 4 20.117 4 4 20.118 4 40c0 19.883 16.117 36 36 36h36.5c.828 0 1.5.896 1.5 2s-.672 2-1.5 2H40h-.5c-.04 0-.077-.012-.115-.016C17.578 79.654 0 61.885 0 40 0 17.909 17.908 0 40 0c22.091 0 40 17.909 40 40 0 11.046-4.478 21.046-11.716 28.284z"></path></svg></span></span></div></div><div class="video-wrap-left"><div class="ant-row" style="row-gap: 0px;"><div class="ant-col"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container undefined max-width-100 " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 9.28571rem; text-align: left;">Target Filter</div><div class="label-object-padding virtual-line-style css-weight-add ">Target Filter</div><div class="label-normal-wrapper undefined max-width-100 label-custom-wrapper" style="width: 15.7143rem;"><div title="" class="labelText-wrapper labelText undefined" value="" pxunit="14" checkstatus="normal" icon="[object Object]" textalign="left" langlocale="[object Object]"><div><button title="Draw Target" type="button" class="ant-btn" style="margin-right: 20px;"><span><span role="img" class="anticon myicon-drawTarget myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path fill="none" d="M0 0h20v20H0z"></path><path d="M3 16.5a.5.5 0 00.5.5H6v-1h2.6v-.8a2.308 2.308 0 01.03-.37 2.036 2.036 0 01.11-.35 2.547 2.547 0 01.17-.33.983.983 0 01.12-.15H6V6h8v3.02l.65-.66a3.309 3.309 0 01.3-.25c.11-.06.22-.12.33-.17a2.014 2.014 0 01.35-.1A1.5 1.5 0 0116 7.8V6h1V3.5a.5.5 0 00-.5-.5h-2.51v.99H6V3H3.5a.5.5 0 00-.5.5V6h1v8H3zm7 1v-2.3a.5.5 0 01.14-.35l5.5-5.5a.5.5 0 01.71 0l2.29 2.29a.5.5 0 010 .71l-5.5 5.5a.509.509 0 01-.35.15H10.5a.5.5 0 01-.5-.5zm2-1.5h.17l4-4-.17-.18-4 4zm4.5 1h-.52L17 15.98v.52a.508.508 0 01-.5.5z" fill-rule="evenodd"></path></svg></span></span></button><button title="Clear" type="button" class="ant-btn"><span><span role="img" class="anticon myicon-clear myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path data-name="37081 1374" fill="none" d="M0 0h20v20H0z"></path><g data-name="590779 946"><path data-name="433189 354" d="M18 5h-4.142a3.981 3.981 0 00-7.716 0H2v2h2v10a1 1 0 001 1h10a1 1 0 001-1V7h2zm-8-1a1.993 1.993 0 011.722 1H8.278A1.993 1.993 0 0110 4zm4 12H6V7h8z"></path><path data-name="37081 1612" d="M11 9h2v5h-2z"></path><path data-name="37081 1613" d="M7 9h2v5H7z"></path></g></svg></span></span></button></div></div><div class="virtual-text-wrapper"><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;"><div><button title="Draw Target" type="button" class="ant-btn" style="margin-right: 20px;"><span><span role="img" class="anticon myicon-drawTarget myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path fill="none" d="M0 0h20v20H0z"></path><path d="M3 16.5a.5.5 0 00.5.5H6v-1h2.6v-.8a2.308 2.308 0 01.03-.37 2.036 2.036 0 01.11-.35 2.547 2.547 0 01.17-.33.983.983 0 01.12-.15H6V6h8v3.02l.65-.66a3.309 3.309 0 01.3-.25c.11-.06.22-.12.33-.17a2.014 2.014 0 01.35-.1A1.5 1.5 0 0116 7.8V6h1V3.5a.5.5 0 00-.5-.5h-2.51v.99H6V3H3.5a.5.5 0 00-.5.5V6h1v8H3zm7 1v-2.3a.5.5 0 01.14-.35l5.5-5.5a.5.5 0 01.71 0l2.29 2.29a.5.5 0 010 .71l-5.5 5.5a.509.509 0 01-.35.15H10.5a.5.5 0 01-.5-.5zm2-1.5h.17l4-4-.17-.18-4 4zm4.5 1h-.52L17 15.98v.52a.508.508 0 01-.5.5z" fill-rule="evenodd"></path></svg></span></span></button><button title="Clear" type="button" class="ant-btn"><span><span role="img" class="anticon myicon-clear myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path data-name="37081 1374" fill="none" d="M0 0h20v20H0z"></path><g data-name="590779 946"><path data-name="433189 354" d="M18 5h-4.142a3.981 3.981 0 00-7.716 0H2v2h2v10a1 1 0 001 1h10a1 1 0 001-1V7h2zm-8-1a1.993 1.993 0 011.722 1H8.278A1.993 1.993 0 0110 4zm4 12H6V7h8z"></path><path data-name="37081 1612" d="M11 9h2v5h-2z"></path><path data-name="37081 1613" d="M7 9h2v5H7z"></path></g></svg></span></span></button></div></div></div></div></div></div></div></div><div class="ant-row faceDetect_notAllowd" style="row-gap: 0px;"><div class="ant-col"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 9.28571rem; text-align: left;">Min Size</div><div class="label-object-padding virtual-line-style css-weight-add ">Min Size</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 7.14286rem;"><div class="ant-input-number labelInput labelInputNumber ant-input-number-disabled"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="true" class="ant-input-number-handler ant-input-number-handler-down ant-input-number-handler-down-disabled"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="256" aria-valuemax="8191" step="1" status="normal" pxunit="14" icon="[object Object]" textalign="left" langlocale="[object Object]" class="ant-input-number-input" disabled="" value="256" aria-valuenow="256"></div></div></div><div title="" class="label-normal-behind " style="width: 10.7143rem;"><span>*</span><div class="lableInput-behind-div"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0px; padding-bottom: 0px;"><div class="label-normal-wrapper label-custom-wrapper" style="width: 7.14286rem;"><div class="ant-input-number labelInput labelInputNumber ant-input-number-disabled" style="min-width: 80px;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="true" class="ant-input-number-handler ant-input-number-handler-down ant-input-number-handler-down-disabled"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="256" aria-valuemax="8191" step="1" status="normal" pxunit="14" icon="[object Object]" controlwidth="0,13,1" langlocale="[object Object]" class="ant-input-number-input" disabled="" value="256" aria-valuenow="256"></div></div></div></div></div></div></div></div></div></div></div><div class="ant-row" style="margin-top: 30px; row-gap: 0px;"><div class="ant-col"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container undefined max-width-100 " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 9.28571rem; text-align: left;">Detection Area</div><div class="label-object-padding virtual-line-style css-weight-add ">Detection Area</div><div class="label-normal-wrapper undefined max-width-100 label-custom-wrapper" style="width: 15.7143rem;"><div title="" class="labelText-wrapper labelText undefined" value="" pxunit="14" checkstatus="normal" icon="[object Object]" textalign="left" langlocale="[object Object]"><div><button title="Detection Area" type="button" class="ant-btn" style="margin-right: 20px;"><span><span role="img" class="anticon myicon-drawTarget myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path fill="none" d="M0 0h20v20H0z"></path><path d="M3 16.5a.5.5 0 00.5.5H6v-1h2.6v-.8a2.308 2.308 0 01.03-.37 2.036 2.036 0 01.11-.35 2.547 2.547 0 01.17-.33.983.983 0 01.12-.15H6V6h8v3.02l.65-.66a3.309 3.309 0 01.3-.25c.11-.06.22-.12.33-.17a2.014 2.014 0 01.35-.1A1.5 1.5 0 0116 7.8V6h1V3.5a.5.5 0 00-.5-.5h-2.51v.99H6V3H3.5a.5.5 0 00-.5.5V6h1v8H3zm7 1v-2.3a.5.5 0 01.14-.35l5.5-5.5a.5.5 0 01.71 0l2.29 2.29a.5.5 0 010 .71l-5.5 5.5a.509.509 0 01-.35.15H10.5a.5.5 0 01-.5-.5zm2-1.5h.17l4-4-.17-.18-4 4zm4.5 1h-.52L17 15.98v.52a.508.508 0 01-.5.5z" fill-rule="evenodd"></path></svg></span></span></button><button title="Clear" type="button" class="ant-btn"><span><span role="img" class="anticon myicon-clear myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path data-name="37081 1374" fill="none" d="M0 0h20v20H0z"></path><g data-name="590779 946"><path data-name="433189 354" d="M18 5h-4.142a3.981 3.981 0 00-7.716 0H2v2h2v10a1 1 0 001 1h10a1 1 0 001-1V7h2zm-8-1a1.993 1.993 0 011.722 1H8.278A1.993 1.993 0 0110 4zm4 12H6V7h8z"></path><path data-name="37081 1612" d="M11 9h2v5h-2z"></path><path data-name="37081 1613" d="M7 9h2v5H7z"></path></g></svg></span></span></button></div></div><div class="virtual-text-wrapper"><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;"><div><button title="Detection Area" type="button" class="ant-btn" style="margin-right: 20px;"><span><span role="img" class="anticon myicon-drawTarget myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path fill="none" d="M0 0h20v20H0z"></path><path d="M3 16.5a.5.5 0 00.5.5H6v-1h2.6v-.8a2.308 2.308 0 01.03-.37 2.036 2.036 0 01.11-.35 2.547 2.547 0 01.17-.33.983.983 0 01.12-.15H6V6h8v3.02l.65-.66a3.309 3.309 0 01.3-.25c.11-.06.22-.12.33-.17a2.014 2.014 0 01.35-.1A1.5 1.5 0 0116 7.8V6h1V3.5a.5.5 0 00-.5-.5h-2.51v.99H6V3H3.5a.5.5 0 00-.5.5V6h1v8H3zm7 1v-2.3a.5.5 0 01.14-.35l5.5-5.5a.5.5 0 01.71 0l2.29 2.29a.5.5 0 010 .71l-5.5 5.5a.509.509 0 01-.35.15H10.5a.5.5 0 01-.5-.5zm2-1.5h.17l4-4-.17-.18-4 4zm4.5 1h-.52L17 15.98v.52a.508.508 0 01-.5.5z" fill-rule="evenodd"></path></svg></span></span></button><button title="Clear" type="button" class="ant-btn"><span><span role="img" class="anticon myicon-clear myicon undefined"><svg viewBox="0 0 20 20" width="1em" height="1em" fill="currentColor" aria-hidden="true" focusable="false" class="" style="width: 20px; height: 20px;"><path data-name="37081 1374" fill="none" d="M0 0h20v20H0z"></path><g data-name="590779 946"><path data-name="433189 354" d="M18 5h-4.142a3.981 3.981 0 00-7.716 0H2v2h2v10a1 1 0 001 1h10a1 1 0 001-1V7h2zm-8-1a1.993 1.993 0 011.722 1H8.278A1.993 1.993 0 0110 4zm4 12H6V7h8z"></path><path data-name="37081 1612" d="M11 9h2v5h-2z"></path><path data-name="37081 1613" d="M7 9h2v5H7z"></path></g></svg></span></span></button></div></div></div></div></div></div></div></div></div></div><div class="content-info"><div class="param-title-div"><ul class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light" role="menu" tabindex="0" data-menu-list="true"><li class="ant-menu-overflow-item ant-menu-item ant-menu-item-selected ant-menu-item-only-child" title="Recognition" role="menuitem" tabindex="-1" data-menu-id="rc-menu-uuid-76803-2-recognition" style="opacity: 1; order: 0;"><span class="ant-menu-title-content">Recognition</span></li><li class="ant-menu-overflow-item ant-menu-item ant-menu-item-only-child" title="Exposure" role="menuitem" tabindex="-1" style="opacity: 1; order: 1;" data-menu-id="rc-menu-uuid-76803-2-exposure"><span class="ant-menu-title-content">Exposure</span></li><li class="ant-menu-overflow-item ant-menu-overflow-item-rest ant-menu-submenu ant-menu-submenu-horizontal ant-menu-submenu-disabled" aria-hidden="true" role="none" style="opacity: 0; height: 0px; overflow-y: hidden; order: 2147483647; pointer-events: none; position: absolute;"><div role="menuitem" class="ant-menu-submenu-title" aria-expanded="false" aria-haspopup="true" data-menu-id="rc-menu-uuid-76803-2-rc-menu-more" aria-controls="rc-menu-uuid-76803-2-rc-menu-more-popup" aria-disabled="true"><span role="img" aria-label="ellipsis" class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" focusable="false" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"></path></svg></span><i class="ant-menu-submenu-arrow"></i></div></li></ul><div aria-hidden="true" style="display: none;"></div></div><div class="param-content-div"><div class="two-column-layout"><div class="ant-row" style="margin-left: 40px; min-width: 500px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container undefined max-width-100 " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="Face Recognition Threshold" class="label-normal " style="width: 13.5714rem; text-align: left;">Face Recognition Threshold</div><div class="label-object-padding virtual-line-style css-weight-add ">Face Recognition Threshold</div><div class="label-normal-wrapper undefined max-width-100 label-auto-wrapper" style="width: auto;"><div title="" class="labelText-wrapper labelText undefined" value="" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]"><div class="ant-input-number" style="width: 220px;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="0" aria-valuemax="100" step="1" class="ant-input-number-input" value="85" aria-valuenow="85"></div></div><span> (0-100)</span></div><div class="virtual-text-wrapper"><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;"><div class="ant-input-number" style="width: 220px;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="0" aria-valuemax="100" step="1" class="ant-input-number-input" value="85" aria-valuenow="85"></div></div><span> (0-100)</span></div></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; min-width: 500px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container undefined max-width-100 " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="Max Face Recognition Angle Deviation" class="label-normal " style="width: 13.5714rem; text-align: left;">Max Face Recognition Angle Deviation</div><div class="label-object-padding virtual-line-style css-weight-add ">Max Face Recognition Angle Deviation</div><div class="label-normal-wrapper undefined max-width-100 label-auto-wrapper" style="width: auto;"><div title="" class="labelText-wrapper labelText undefined" value="" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]"><div class="ant-input-number" style="width: 220px;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="0" aria-valuemax="90" step="1" class="ant-input-number-input" value="30" aria-valuenow="30"></div></div><span> (0-90)</span></div><div class="virtual-text-wrapper"><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;"><div class="ant-input-number" style="width: 220px;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="0" aria-valuemax="90" step="1" class="ant-input-number-input" value="30" aria-valuenow="30"></div></div><span> (0-90)</span></div></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; min-width: 500px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Anti-spoofing Level</div><div class="label-object-padding virtual-line-style css-weight-add ">Anti-spoofing Level</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 27.5rem;"><div class="sdd-radioGroup-container "><div class="ant-radio-group ant-radio-group-outline labelRadioGroup wrapRadio" style="width: 100%;"><label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" value="0" checked=""><span class="ant-radio-inner"></span></span><span><span class="labelRadio-content-wrapper" name="0" style="width: auto;"><div title="" class="labelText-wrapper labelText undefined">Close</div><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;">Close</div></span></span></label><label class="ant-radio-wrapper ant-radio-wrapper-checked"><span class="ant-radio ant-radio-checked"><input type="radio" class="ant-radio-input" value="63"><span class="ant-radio-inner"></span></span><span><span class="labelRadio-content-wrapper" name="63" style="width: auto;"><div title="" class="labelText-wrapper labelText undefined">General</div><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;">General</div></span></span></label><label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" value="127"><span class="ant-radio-inner"></span></span><span><span class="labelRadio-content-wrapper" name="127" style="width: auto;"><div title="" class="labelText-wrapper labelText undefined">High</div><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;">High</div></span></span></label><label class="ant-radio-wrapper"><span class="ant-radio"><input type="radio" class="ant-radio-input" value="255"><span class="ant-radio-inner"></span></span><span><span class="labelRadio-content-wrapper" name="255" style="width: auto;"><div title="" class="labelText-wrapper labelText undefined">Ultra High</div><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;">Ultra High</div></span></span></label></div></div></div></div></div></div><div class="ant-row lableInput-behind-row" style="margin-left: 40px; min-width: 500px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Valid Face Interval (sec)</div><div class="label-object-padding virtual-line-style css-weight-add ">Valid Face Interval (sec)</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="ant-input-number labelInput labelInputNumber " style="width: 100%;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="1" aria-valuemax="60" step="1" status="normal" pxunit="14" icon="[object Object]" textalign="left" langlocale="[object Object]" class="ant-input-number-input" value="3" aria-valuenow="3"></div></div></div><div title="" class="label-normal-behind " style="width: 5.71429rem;">(1-60)</div></div></div></div><div class="ant-row lableInput-behind-row" style="margin-left: 40px; min-width: 500px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Invalid Face Interval (sec)</div><div class="label-object-padding virtual-line-style css-weight-add ">Invalid Face Interval (sec)</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="ant-input-number labelInput labelInputNumber " style="width: 100%;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="0" aria-valuemax="60" step="1" status="normal" pxunit="14" icon="[object Object]" textalign="left" langlocale="[object Object]" class="ant-input-number-input" value="10" aria-valuenow="10"></div></div></div><div title="" class="label-normal-behind " style="width: 5.71429rem;">(0-60)</div></div></div></div><div class="ant-row lableInput-behind-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Recognition Distance</div><div class="label-object-padding virtual-line-style css-weight-add ">Recognition Distance</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="ant-select labelSelect ant-select-single ant-select-show-arrow" status="normal" pxunit="14" type="select" langlocale="[object Object]" style="width: 100%;"><div class="ant-select-selector"><span class="ant-select-selection-search"><input autocomplete="off" type="search" class="ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_1_list" aria-autocomplete="list" aria-controls="rc_select_1_list" aria-activedescendant="rc_select_1_list_0" readonly="" unselectable="on" value="" id="rc_select_1" style="opacity: 0;"></span><span class="ant-select-selection-item"><span name="150">1.5 meters</span></span></div><span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;"><span role="img" aria-label="down" class="anticon anticon-down ant-select-suffix"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Mask mode</div><div class="label-object-padding virtual-line-style css-weight-add ">Mask mode</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="ant-select labelSelect ant-select-single ant-select-show-arrow" status="normal" pxunit="14" textalign="left" type="select" langlocale="[object Object]" style="width: 100%;"><div class="ant-select-selector"><span class="ant-select-selection-search"><input autocomplete="off" type="search" class="ant-select-selection-search-input" role="combobox" aria-haspopup="listbox" aria-owns="rc_select_2_list" aria-autocomplete="list" aria-controls="rc_select_2_list" aria-activedescendant="rc_select_2_list_0" readonly="" unselectable="on" value="" id="rc_select_2" style="opacity: 0;"></span><span class="ant-select-selection-item"><span name="2">No Authorization without Wearing Face Mask</span></span></div><span class="ant-select-arrow" unselectable="on" aria-hidden="true" style="user-select: none;"><span role="img" aria-label="down" class="anticon anticon-down ant-select-suffix"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; min-width: 500px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container undefined max-width-100 " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Face Mask Threshold</div><div class="label-object-padding virtual-line-style css-weight-add ">Face Mask Threshold</div><div class="label-normal-wrapper undefined max-width-100 label-auto-wrapper" style="width: auto;"><div title="" class="labelText-wrapper labelText undefined" value="" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]"><div class="ant-input-number" style="width: 220px;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" step="1" class="ant-input-number-input" value="75"></div></div><span> (0-100)</span></div><div class="virtual-text-wrapper"><div class="labelText" style="white-space: nowrap; position: absolute; top: 0px; visibility: hidden; z-index: -10000; width: auto;"><div class="ant-input-number" style="width: 220px;"><div class="ant-input-number-handler-wrap"><span unselectable="on" role="button" aria-label="Increase Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-up"><span role="img" aria-label="up" class="anticon anticon-up ant-input-number-handler-up-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="up" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"></path></svg></span></span><span unselectable="on" role="button" aria-label="Decrease Value" aria-disabled="false" class="ant-input-number-handler ant-input-number-handler-down"><span role="img" aria-label="down" class="anticon anticon-down ant-input-number-handler-down-inner"><svg viewBox="64 64 896 896" focusable="false" data-icon="down" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"></path></svg></span></span></div><div class="ant-input-number-input-wrap"><input autocomplete="off" role="spinbutton" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" step="1" class="ant-input-number-input" value="75"></div></div><span> (0-100)</span></div></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Snapshot Mode</div><div class="label-object-padding virtual-line-style css-weight-add ">Snapshot Mode</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="sdd-swtich-contianer"><button value="false" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]" type="button" role="switch" aria-checked="false" class="ant-switch"><div class="ant-switch-handle"></div><span class="ant-switch-inner"><span></span></span></button></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="Face Snapshot Enhancement" class="label-normal " style="width: 13.5714rem; text-align: left;">Face Snapshot Enhancement</div><div class="label-object-padding virtual-line-style css-weight-add ">Face Snapshot Enhancement</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="sdd-swtich-contianer"><button value="false" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]" type="button" role="switch" aria-checked="false" class="ant-switch"><div class="ant-switch-handle"></div><span class="ant-switch-inner"><span></span></span></button></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Beautifier</div><div class="label-object-padding virtual-line-style css-weight-add ">Beautifier</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="sdd-swtich-contianer"><button value="false" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]" type="button" role="switch" aria-checked="false" class="ant-switch"><div class="ant-switch-handle"></div><span class="ant-switch-inner"><span></span></span></button></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Enable Helmet Detection</div><div class="label-object-padding virtual-line-style css-weight-add ">Enable Helmet Detection</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="sdd-swtich-contianer"><button value="false" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]" type="button" role="switch" aria-checked="false" class="ant-switch"><div class="ant-switch-handle"></div><span class="ant-switch-inner"><span></span></span></button></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Multi-face Recognition</div><div class="label-object-padding virtual-line-style css-weight-add ">Multi-face Recognition</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="sdd-swtich-contianer"><button value="false" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]" type="button" role="switch" aria-checked="false" class="ant-switch"><div class="ant-switch-handle"></div><span class="ant-switch-inner"><span></span></span></button></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Night Mode</div><div class="label-object-padding virtual-line-style css-weight-add ">Night Mode</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="sdd-swtich-contianer"><button value="true" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]" type="button" role="switch" aria-checked="true" class="ant-switch ant-switch-checked"><div class="ant-switch-handle"></div><span class="ant-switch-inner"><span></span></span></button></div></div></div></div></div><div class="ant-row" style="margin-left: 40px; row-gap: 0px;"><div class="label-div-Container label-v4-version label-ant-version"><div class="label-normal-container " style="padding-top: 0.571429rem; padding-bottom: 0.571429rem;"><div title="" class="label-normal " style="width: 13.5714rem; text-align: left;">Smart Screen Light Up</div><div class="label-object-padding virtual-line-style css-weight-add ">Smart Screen Light Up</div><div class="label-normal-wrapper label-custom-wrapper" style="width: 15.7143rem;"><div class="sdd-swtich-contianer"><button value="true" pxunit="14" checkstatus="normal" icon="[object Object]" langlocale="[object Object]" type="button" role="switch" aria-checked="true" class="ant-switch ant-switch-checked"><div class="ant-switch-handle"></div><span class="ant-switch-inner"><span></span></span></button></div></div></div></div></div></div><div class="two-column-layout"></div></div></div></div><div class="fixed-button halfwidth"><button type="button" class="ant-btn ant-btn-primary right"><span>Apply</span></button><button type="button" class="ant-btn left"><span>Refresh</span></button><button type="button" class="ant-btn right"><span>Default</span></button></div></div></div></div></div>,为什么e.target.innerHTML.test(/div/)会报错,Uncaught TypeError: e.target.innerHTML.test is not a function
### 问题分析
在 JavaScript 中,`e.target.innerHTML` 是一个字符串,表示触发事件的目标元素的 HTML 内容。然而,字符串对象并没有 `test` 方法,这是正则表达式对象的方法。因此,当尝试调用 `e.target.innerHTML.test(/div/)` 时,会抛出 `'Uncaught TypeError: e.target.innerHTML.test is not a function'` 错误[^1]。
### 原因解释
`test` 方法是正则表达式的原生方法,用于测试一个字符串是否匹配该正则表达式。由于 `innerHTML` 是一个字符串,而字符串对象本身没有 `test` 方法,所以直接调用会导致错误。正确的做法是将正则表达式作为主体,并对字符串进行测试[^2]。
### 正确解决方案
以下是正确的代码实现方式:
```javascript
// 使用正则表达式测试 innerHTML 是否包含 'div'
if (/div/.test(e.target.innerHTML)) {
console.log("innerHTML 包含 div 标签");
} else {
console.log("innerHTML 不包含 div 标签");
}
```
在此代码中,正则表达式 `/div/` 被用来调用 `test` 方法,传入的参数是 `e.target.innerHTML`,这是一个字符串。这样可以避免 `'Uncaught TypeError: e.target.innerHTML.test is not a function'` 错误[^3]。
### 注意事项
如果需要更精确地匹配 `<div>` 标签而不是简单地查找 "div" 字符串,可以使用更复杂的正则表达式。例如:
```javascript
const regex = /<div\b[^>]*>/i; // 匹配 <div> 标签
if (regex.test(e.target.innerHTML)) {
console.log("innerHTML 包含 div 标签");
} else {
console.log("innerHTML 不包含 div 标签");
}
```
此正则表达式确保只匹配 `<div>` 标签,而不会误匹配其他包含 "div" 的内容[^4]。
### 示例代码
以下是一个完整的示例代码片段,展示如何正确使用正则表达式来检测 `innerHTML` 是否包含 `<div>` 标签:
```javascript
document.addEventListener('click', function(e) {
const regex = /<div\b[^>]*>/i;
if (regex.test(e.target.innerHTML)) {
console.log("innerHTML 包含 div 标签");
} else {
console.log("innerHTML 不包含 div 标签");
}
});
```
###
<template> <div class="sidebar-logo-container" :class="{'collapse':collapse}" :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }"> <transition name="sidebarLogoFade"> <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/"> <img v-if="logo" :src="logo" class="sidebar-logo" /> <h1 v-else class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1> </router-link> <router-link v-else key="expand" class="sidebar-logo-link" to="/"> <img v-if="logo" :src="logo" class="sidebar-logo" /> <h1 class="sidebar-title" :style="{ color: sideTheme === 'theme-dark' ? variables.logoTitleColor : variables.logoLightTitleColor }">{{ title }} </h1> </router-link> </transition> </div> </template> <script> import logoImg from '@/assets/logo/logo.png' import variables from '@/assets/styles/variables.scss' export default { name: 'SidebarLogo', props: { collapse: { type: Boolean, required: true } }, computed: { variables() { return variables; }, sideTheme() { return this.$store.state.settings.sideTheme } }, data() { return { // title: process.env.VUE_APP_TITLE, title: "癌症防治管理系统", logo: logoImg } } } </script> <style lang="scss" scoped> .sidebarLogoFade-enter-active { transition: opacity 1.5s; } .sidebarLogoFade-enter, .sidebarLogoFade-leave-to { opacity: 0; } .sidebar-logo-container { position: relative; width: 100%; height: 50px; line-height: 50px; background: #2b2f3a; text-align: center; overflow: hidden; & .sidebar-logo-link { height: 100%; width: 100%; & .sidebar-logo { width: 32px; height: 32px; vertical-align: middle; margin-right: 12px; } & .sidebar-title { display: inline-block; marg
<think>好的,我需要帮助用户在Vue.js项目中创建一个可折叠的侧边栏Logo组件,这个组件需要根据状态切换显示完整标题或仅图标,并且能够动态更改背景颜色和文字颜色。让我先理清楚用户的需求。
首先,用户提到了可折叠的侧边栏,这意味着组件需要响应某种状态变化,比如点击按钮或侧边栏的展开/收起状态。通常这种状态管理可以通过Vuex或者组件自身的data属性来处理。考虑到组件可能需要跨组件通信,使用Vuex可能更合适,但如果是单个组件内部的状态,也可以用props和emit。
接下来是动态切换显示内容。当侧边栏展开时显示完整标题和图标,收起时仅显示图标。这部分可能需要根据一个布尔值状态来控制,比如isCollapsed。在模板中,可以使用v-if或v-show来条件渲染标题部分。
然后是动态更改背景颜色和文字颜色。用户提到需要根据主题设置来动态更改,这意味着颜色可能存储在Vuex的状态中,或者通过CSS变量传递。可能需要使用计算属性来获取当前主题的颜色值,并绑定到组件的样式上。
另外,用户提供的引用中提到了使用SVG图标,并且图标存放在@/icons/svg目录下,自动全局注册。因此,在Logo组件中使用SVG图标应该直接通过组件名称调用即可,无需额外导入。同时,改变SVG颜色可以通过修改fill属性的CSS来实现,可能需要使用currentColor来继承父元素的颜色,以便动态调整。
组件的结构方面,可能需要一个包裹元素,比如div,内部包含SVG图标和标题文本。当侧边栏收起时,标题部分隐藏,只显示图标。样式上,可能需要使用flex布局来排列图标和标题,并设置过渡效果让折叠过程更平滑。
动态颜色方面,可以绑定内联样式,将背景色和文字颜色设置为计算属性返回的值。例如,:style="{ backgroundColor: theme.backgroundColor, color: theme.textColor }"。这里的theme可能来自Vuex的state或者通过props传递进来。
关于路由监听,用户引用中提到使用watch来监听$route的变化,这可能用于在路由切换时更新组件状态,但当前需求中可能不需要,除非Logo组件需要根据路由改变颜色或其他属性。暂时可以忽略这部分,除非用户有额外需求。
测试部分,用户可能需要验证折叠状态切换时标题的显示隐藏是否正确,颜色是否根据主题变化,以及SVG图标的颜色是否随文字颜色改变。此外,还要检查过渡动画是否平滑。
总结步骤:
1. 创建Logo组件,结构包含图标和标题。
2. 使用Vuex管理侧边栏的折叠状态isCollapsed。
3. 根据isCollapsed的值条件渲染标题部分。
4. 动态绑定样式,从主题设置中获取颜色。
5. 确保SVG图标颜色随文字颜色变化,可能通过CSS继承。
6. 添加过渡效果提升用户体验。
7. 在需要的地方引入组件,比如侧边栏顶部。
可能遇到的问题:
- SVG图标的颜色如何动态改变?可能需要设置fill为currentColor,并在父元素设置color。
- 状态管理是否需要Vuex?如果应用较大,使用Vuex更好,否则可以用provide/inject或props。
- 过渡效果如何实现?使用CSS transition或Vue的transition组件。
现在根据这些思考,构建具体的代码示例和步骤。</think>在Vue.js中实现可折叠侧边栏Logo组件需要结合状态管理、动态样式绑定和SVG图标处理技术。以下是具体实现步骤:
### 一、组件结构实现
```vue
<template>
<div
class="logo-container"
:style="{
backgroundColor: theme.backgroundColor,
color: theme.textColor
}"
>
<svg-icon
:icon-class="isCollapsed ? 'logo-mini' : 'logo-full'"
class-name="logo-icon"
/>
<transition name="fade">
<h1 v-show="!isCollapsed" class="logo-title">{{ title }}</h1>
</transition>
</div>
</template>
```
### 二、核心功能实现
1. **状态管理**(使用Vuex):
```javascript
// store/modules/app.js
export default {
state: {
isCollapsed: false
},
mutations: {
TOGGLE_SIDEBAR(state) {
state.isCollapsed = !state.isCollapsed
}
}
}
```
2. **动态主题处理**:
```javascript
export default {
computed: {
theme() {
return this.$store.state.settings.theme // 从Vuex获取主题配置
},
isCollapsed() {
return this.$store.state.app.isCollapsed
}
}
}
```
### 三、样式配置
```css
.logo-container {
height: 60px;
display: flex;
align-items: center;
padding: 0 20px;
transition: all 0.3s;
}
.logo-icon {
width: 35px;
height: 35px;
flex-shrink: 0;
}
.logo-title {
margin-left: 12px;
white-space: nowrap;
font-size: 18px;
}
.fade-enter-active, .fade-leave-active {
transition: opacity 0.3s;
}
.fade-enter, .fade-leave-to {
opacity: 0;
}
```
### 四、SVG图标处理技巧
1. 将`logo-mini.svg`和`logo-full.svg`放置在`@/icons/svg`目录[^1]
2. 通过`svg-icon`组件自动加载图标
3. 修改SVG颜色:
```css
.svg-icon {
fill: currentColor; /* 继承父元素文字颜色 */
}
```
### 五、使用示例
```vue
<template>
<div>
<sidebar-logo :title="appTitle" />
<el-button @click="toggleCollapse">切换折叠</el-button>
</div>
</template>
<script>
export default {
methods: {
toggleCollapse() {
this.$store.commit('app/TOGGLE_SIDEBAR')
}
}
}
</script>
```
阅读全文
相关推荐





Traceback (most recent call last): File "d:\pythonbaijiahao\baijiahao.py", line 82, in mianrun sub_element.click() File "D:\python3\lib\site-packages\selenium\webdriver\remote\webelement.py", line 81, in click self._execute(Command.CLICK_ELEMENT) File "D:\python3\lib\site-packages\selenium\webdriver\remote\webelement.py", line 710, in _execute return self._parent.execute(command, params) File "D:\python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 425, in execute self.error_handler.check_response(response) File "D:\python3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element 管理商品 is not clickable at point (930, 347). Other element would receive the click: <svg viewBox="64 64 896 896" focusable="false" data-icon="vertical-align-top" width="1em" height="1em" fill="currentColor" aria-hidden="true">...</svg> (Session info: MicrosoftEdge=113.0.1774.42) Stacktrace:


通过cypress 上传文件并检查文件是否上传成功 <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" width="1.37em" height="1em" viewBox="0 0 1920 1408" data-icon="fa:cloud-upload" class="iconify iconify--fa"></svg> 拖动文件到此处或点击上传 支持的文件格式:xls、xlsx、pdf、jpg、png、doc、docx、zip、rar、7z,不超过100M <input class="el-upload__input" name="file" multiple="" accept=".pdf,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.zip,.rar,.7z" type="file"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"></svg>立项备案导出.xlsx<label class="el-upload-list__item-status-label"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"></svg></label><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"></svg>按 delete 键可删除<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"></svg>sh001.jpg<label class="el-upload-list__item-status-label"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"></svg></label><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024"></svg>按 delete 键可删除







