|
1 | | -<!DOCTYPE html><html lang="zh-CN" class="astro-f3etvp4p"> <head><meta charset="UTF-8"><title>复选框</title><meta name="generator" content="Astro v5.8.0"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/svg+xml" href="/stylus/_astro/clover.VeQ5ejgv.svg"><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/stylus/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js"></script><script fetchpriority="high" src="data:text/javascript;base64,InVzZSBzdHJpY3QiO3ZhciBlO2U9WyJkYXJrIiwibGlnaHQiXSx3aW5kb3cuaGFzT3duUHJvcGVydHkoInRoZW1lIil8fE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh3aW5kb3csInRoZW1lIix7Z2V0OigpPT5sb2NhbFN0b3JhZ2UuZ2V0SXRlbSgidGhlbWUiKT8/ZVsrIXdpbmRvdy5tYXRjaE1lZGlhPy4oIihwcmVmZXJzLWNvbG9yLXNjaGVtZTogZGFyaykiKT8ubWF0Y2hlc119KSxkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuZGF0YXNldC50aGVtZT13aW5kb3cudGhlbWU7Ly8jIHNvdXJjZU1hcHBpbmdVUkw9aW5kZXguanMubWFw"></script><script type="module">function D(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y,v;function h(){return v||(v=1,y=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var o=document.activeElement,u=[],i=0;i<t.rangeCount;i++)u.push(t.getRangeAt(i));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||u.forEach(function(d){t.addRange(d)}),o&&o.focus()}}),y}var g,C;function E(){if(C)return g;C=1;var t=h(),o={"text/plain":"Text","text/html":"Url",default:"Text"},u="Copy to clipboard: #{key}, Enter";function i(n){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,a)}function d(n,a){var c,m,b,s,l,e,f=!1;a||(a={}),c=a.debug||!1;try{b=t(),s=document.createRange(),l=document.getSelection(),e=document.createElement("span"),e.textContent=n,e.ariaHidden="true",e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(r){if(r.stopPropagation(),a.format)if(r.preventDefault(),typeof r.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=o[a.format]||o.default;window.clipboardData.setData(p,n)}else r.clipboardData.clearData(),r.clipboardData.setData(a.format,n);a.onCopy&&(r.preventDefault(),a.onCopy(r.clipboardData))}),document.body.appendChild(e),s.selectNodeContents(e),l.addRange(s);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");f=!0}catch(r){c&&console.error("unable to copy using execCommand: ",r),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",n),a.onCopy&&a.onCopy(window.clipboardData),f=!0}catch(p){c&&console.error("unable to copy using clipboardData: ",p),c&&console.error("falling back to prompt"),m=i("message"in a?a.message:u),window.prompt(m,n)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(s):l.removeAllRanges()),e&&document.body.removeChild(e),b()}return f}return g=d,g}var R=E();const T=D(R);window.copy=T;</script><script type="module" src="/stylus/_astro/app.astro_astro_type_script_index_1_lang.CT1rlmTJ.js"></script><script type="module" src="/stylus/_astro/app.astro_astro_type_script_index_2_lang.BrmHR3tj.js"></script><link rel="stylesheet" href="/stylus/_astro/badge.RbczOEkl.css"> |
| 1 | +<!DOCTYPE html><html lang="zh-CN" class="astro-f3etvp4p"> <head><meta charset="UTF-8"><title>复选框</title><meta name="generator" content="Astro v5.8.0"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/svg+xml" href="/stylus/_astro/clover.VeQ5ejgv.svg"><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/stylus/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js"></script><script fetchpriority="high" src="data:text/javascript;base64,InVzZSBzdHJpY3QiO3ZhciBlO2U9WyJkYXJrIiwibGlnaHQiXSx3aW5kb3cuaGFzT3duUHJvcGVydHkoInRoZW1lIil8fE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh3aW5kb3csInRoZW1lIix7Z2V0OigpPT5sb2NhbFN0b3JhZ2UuZ2V0SXRlbSgidGhlbWUiKT8/ZVsrIXdpbmRvdy5tYXRjaE1lZGlhPy4oIihwcmVmZXJzLWNvbG9yLXNjaGVtZTogZGFyaykiKT8ubWF0Y2hlc119KSxkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuZGF0YXNldC50aGVtZT13aW5kb3cudGhlbWU7Ly8jIHNvdXJjZU1hcHBpbmdVUkw9aW5kZXguanMubWFw"></script><script type="module">function D(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y,v;function h(){return v||(v=1,y=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var o=document.activeElement,u=[],i=0;i<t.rangeCount;i++)u.push(t.getRangeAt(i));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||u.forEach(function(d){t.addRange(d)}),o&&o.focus()}}),y}var g,C;function E(){if(C)return g;C=1;var t=h(),o={"text/plain":"Text","text/html":"Url",default:"Text"},u="Copy to clipboard: #{key}, Enter";function i(n){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return n.replace(/#{\s*key\s*}/g,a)}function d(n,a){var c,m,b,s,l,e,f=!1;a||(a={}),c=a.debug||!1;try{b=t(),s=document.createRange(),l=document.getSelection(),e=document.createElement("span"),e.textContent=n,e.ariaHidden="true",e.style.all="unset",e.style.position="fixed",e.style.top=0,e.style.clip="rect(0, 0, 0, 0)",e.style.whiteSpace="pre",e.style.webkitUserSelect="text",e.style.MozUserSelect="text",e.style.msUserSelect="text",e.style.userSelect="text",e.addEventListener("copy",function(r){if(r.stopPropagation(),a.format)if(r.preventDefault(),typeof r.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=o[a.format]||o.default;window.clipboardData.setData(p,n)}else r.clipboardData.clearData(),r.clipboardData.setData(a.format,n);a.onCopy&&(r.preventDefault(),a.onCopy(r.clipboardData))}),document.body.appendChild(e),s.selectNodeContents(e),l.addRange(s);var w=document.execCommand("copy");if(!w)throw new Error("copy command was unsuccessful");f=!0}catch(r){c&&console.error("unable to copy using execCommand: ",r),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",n),a.onCopy&&a.onCopy(window.clipboardData),f=!0}catch(p){c&&console.error("unable to copy using clipboardData: ",p),c&&console.error("falling back to prompt"),m=i("message"in a?a.message:u),window.prompt(m,n)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(s):l.removeAllRanges()),e&&document.body.removeChild(e),b()}return f}return g=d,g}var R=E();const T=D(R);window.copy=T;</script><script type="module" src="/stylus/_astro/app.astro_astro_type_script_index_1_lang.CT1rlmTJ.js"></script><script type="module" src="/stylus/_astro/app.astro_astro_type_script_index_2_lang.BrmHR3tj.js"></script><link rel="stylesheet" href="/stylus/_astro/badge.CGvu6pki.css"> |
2 | 2 | <style>.na-checkbox[data-marker="*"]>input:checked+.na-checkbox-label:after{content:"*";color:rgb(var(--white));font-size:18px} |
3 | 3 | footer:where(.astro-vdvlf67m){z-index:1;display:flex;gap:.5em;justify-content:center;align-items:center;line-height:var(--line-height-2);font-size:var(--font-size-2);color:rgb(var(--gray-3));--color-link: var(--primary-2);--color-link-hover: var(--primary-3);--color-link-focus: var(--primary-1)}footer:where(.astro-vdvlf67m) a:where(.astro-vdvlf67m){align-items:center}footer:where(.astro-vdvlf67m) a:where(.astro-vdvlf67m) svg:where(.astro-vdvlf67m){width:1em;height:1em}section:where(.astro-m5fpuu4z){overflow:hidden}section:where(.astro-m5fpuu4z) aside:where(.astro-m5fpuu4z){--width-aside: 240px;padding:1em 0}@media screen and (max-width: 768px){section:where(.astro-m5fpuu4z) aside:where(.astro-m5fpuu4z){position:absolute}}@media screen and (min-width: 1024px){section:where(.astro-m5fpuu4z) aside:where(.astro-m5fpuu4z)[data-collapsed]{width:var(--width-aside, unset)}}section:where(.astro-m5fpuu4z) main:where(.astro-m5fpuu4z){overflow-y:auto;scroll-behavior:smooth;padding:2em;scroll-timeline-name:--progress-y-main}@property --timeline-y-main{syntax: "<percentage>"; inherits: false; initial-value: 0%;}section:where(.astro-m5fpuu4z) main:where(.astro-m5fpuu4z) .progress:where(.astro-m5fpuu4z){position:fixed;left:0;right:0;bottom:0;height:22px;width:100vw;animation-name:progress-y-main;animation-duration:1ms;animation-direction:alternate;animation-timeline:--progress-y-main;background-image:linear-gradient(to right,rgb(var(--magenta-6)) 0,rgb(var(--purple-6)) var(--timeline-y-main),transparent var(--timeline-y-main))}@-moz-keyframes progress-y-main{0%{--timeline-y-main: 0%}to{--timeline-y-main: 100%}}@-webkit-keyframes progress-y-main{0%{--timeline-y-main: 0%}to{--timeline-y-main: 100%}}@-o-keyframes progress-y-main{0%{--timeline-y-main: 0%}to{--timeline-y-main: 100%}}@keyframes progress-y-main{0%{--timeline-y-main: 0%}to{--timeline-y-main: 100%}}svg:where(.astro-xu32ckhl){width:1em;height:1em;transform:rotate(-76deg) rotateY(180deg)}a:where(.astro-7bm3c7wc):focus-visible{outline:none;filter:drop-shadow(0 0 2px rgb(var(--outline-color-focus)))}a:where(.astro-7bm3c7wc):focus-visible svg:where(.astro-7bm3c7wc){fill:rgb(var(--outline-color-focus))}svg:where(.astro-7bm3c7wc){width:1em;height:1em;transform:rotate(-37deg) rotateY(180deg)}a:where(.astro-6bg4rdkg):focus-visible{outline:none;filter:drop-shadow(0 0 2px rgb(var(--outline-color-focus)))}a:where(.astro-6bg4rdkg):focus-visible svg:where(.astro-6bg4rdkg){fill:rgb(var(--outline-color-focus))}svg:where(.astro-6bg4rdkg){width:1em;height:1em;transform:rotate(-33deg) rotateY(180deg)}a:where(.astro-zvj6bymb):focus-visible{outline:none;filter:drop-shadow(0 0 2px rgb(var(--outline-color-focus)))}a:where(.astro-zvj6bymb):focus-visible svg:where(.astro-zvj6bymb){fill:rgb(var(--outline-color-focus))}svg:where(.astro-zvj6bymb){width:1em;height:1em;transform:rotate(-27deg) rotateY(180deg)}a:where(.astro-3yec5rnh):focus-visible{outline:none;filter:drop-shadow(0 0 2px rgb(var(--outline-color-focus)))}a:where(.astro-3yec5rnh):focus-visible svg:where(.astro-3yec5rnh){fill:rgb(var(--outline-color-focus))}svg:where(.astro-3yec5rnh){width:1em;height:1em;transform:rotate(-23deg) rotateY(180deg)}a:where(.astro-3iia5zja):focus-visible{outline:none;filter:drop-shadow(0 0 2px rgb(var(--outline-color-focus)))}a:where(.astro-3iia5zja):focus-visible svg:where(.astro-3iia5zja){fill:rgb(var(--outline-color-focus))}svg:where(.astro-3iia5zja){width:1em;height:1em;transform:rotate(-17deg) rotateY(180deg)}.na-image svg[role=button]{width:24px;height:24px;cursor:pointer}.na-image svg[aria-disabled]{width:24px;height:24px;cursor:not-allowed}.na-image[data-error] svg[data-icon="interactive-button/outline/eye"],.na-image:not([data-error]) svg[data-icon="interactive-button/outline/eye-invisible"]{display:none} |
4 | 4 | @media screen and (min-width: 768px){div:where(.astro-rhkvn4pf){grid-template-columns:1fr 1fr}}@media screen and (min-width: 1024px){div:where(.astro-rhkvn4pf){grid-template-columns:repeat(4,1fr)}} |
@@ -791,7 +791,7 @@ <h2 class="na-title na-font-serif astro-7bm3c7wc" id="custom-style"> <a href="#c |
791 | 791 | "> color rgb(var(--white))</span></span></code></pre> </section> |
792 | 792 | <h3 class="na-title na-font-serif astro-6bg4rdkg" id="hide-label"> <a href="#hide-label" class="na-link na-connot-select astro-6bg4rdkg"> <svg width="1em" height="1em" viewBox="0 0 682.667 682.667" class="astro-6bg4rdkg" data-icon="logo/outline/clover"> <use href="#ai:local:logo/outline/clover"></use> </svg> <span style="font-size:0" class="astro-6bg4rdkg">###</span> </a> hide label </h3> |
793 | 793 | <p class="na-paragraph na-font-serif"> label为空即可不显示 </p> |
794 | | -<div class="na-form-item"><label>是否完成</label><div class="na-input-wrapper" data-primary="true"><span class="na-checkbox " data-indeterminate> <input type="checkbox" class="na-input" id="e6084d7d-7558-40d3-807a-5dabde006b29" name="饿死了" title="饿死了"> <label class="na-checkbox-label" for="e6084d7d-7558-40d3-807a-5dabde006b29"></label> </span></div></div> |
| 794 | +<div class="na-form-item"><label>是否完成</label><div class="na-input-wrapper" data-primary="true"><span class="na-checkbox " data-indeterminate> <input type="checkbox" class="na-input" id="e15b4654-00e5-4213-8fe5-23a5696bc458" name="饿死了" title="饿死了"> <label class="na-checkbox-label" for="e15b4654-00e5-4213-8fe5-23a5696bc458"></label> </span></div></div> |
795 | 795 | <section class="na-watermark" style="--border-radius-watermark:var(--border-radius-md)"> <pre data-language="pug" class="na-pre" style=""><code class="na-code"><span class="line"><span style=" |
796 | 796 | --color-code: from #6F42C1 r g b; |
797 | 797 | --color-code-dark: from #B392F0 r g b; |
|
0 commit comments