20 lines
4.3 KiB
JavaScript
20 lines
4.3 KiB
JavaScript
|
import{r as a,o as u,h as k,e as s,d as e,g as t,f as n}from"./vendor.e7911ee1.js";const i={class:"markdown-body"},r=t("\u4F7F \u7528 useFullScreen \u5FEB \u901F \u5B8C \u6210 fullScreen \u64CD \u4F5C"),d=n("div",{class:"language-vue"},[n("pre",null,[n("code",{"v-pre":""},[n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("button")]),t(),n("span",{class:"token attr-name"},"id"),n("span",{class:"token attr-value"},[n("span",{class:"token punctuation attr-equals"},"="),n("span",{class:"token punctuation"},'"'),t("button"),n("span",{class:"token punctuation"},'"')]),n("span",{class:"token punctuation"},">")]),t("\u62D6\u52A8"),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("button")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("template")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
|
||
|
`),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"<"),t("script")]),n("span",{class:"token punctuation"},">")]),n("span",{class:"token script"},[n("span",{class:"token language-javascript"},[t(`
|
||
|
`),n("span",{class:"token keyword"},"import"),t(),n("span",{class:"token punctuation"},"{"),t(" ref"),n("span",{class:"token punctuation"},","),t(" watch"),n("span",{class:"token punctuation"},","),t(" onMounted "),n("span",{class:"token punctuation"},"}"),t(),n("span",{class:"token keyword"},"from"),t(),n("span",{class:"token string"},"'vue'"),t(`
|
||
|
`),n("span",{class:"token keyword"},"import"),t(),n("span",{class:"token punctuation"},"{"),t(" useMove "),n("span",{class:"token punctuation"},"}"),t(),n("span",{class:"token keyword"},"from"),t(),n("span",{class:"token string"},"'@layui/hooks-vue'"),t(`
|
||
|
|
||
|
`),n("span",{class:"token keyword"},"export"),t(),n("span",{class:"token keyword"},"default"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
`),n("span",{class:"token function"},"setup"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
`),n("span",{class:"token function"},"onMounted"),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},"("),n("span",{class:"token punctuation"},")"),t(),n("span",{class:"token operator"},"=>"),t(),n("span",{class:"token punctuation"},"{"),t(`
|
||
|
`),n("span",{class:"token keyword"},"const"),t(" el "),n("span",{class:"token operator"},"="),t(" document"),n("span",{class:"token punctuation"},"."),n("span",{class:"token function"},"getElementById"),n("span",{class:"token punctuation"},"("),n("span",{class:"token string"},"'button'"),n("span",{class:"token punctuation"},")"),t(`
|
||
|
`),n("span",{class:"token function"},"useMove"),n("span",{class:"token punctuation"},"("),t("el"),n("span",{class:"token punctuation"},")"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},")"),t(`
|
||
|
`),n("span",{class:"token keyword"},"return"),t(),n("span",{class:"token punctuation"},"{"),n("span",{class:"token punctuation"},"}"),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),n("span",{class:"token punctuation"},","),t(`
|
||
|
`),n("span",{class:"token punctuation"},"}"),t(`
|
||
|
`)])]),n("span",{class:"token tag"},[n("span",{class:"token tag"},[n("span",{class:"token punctuation"},"</"),t("script")]),n("span",{class:"token punctuation"},">")]),t(`
|
||
|
`)])])],-1),m=n("table",null,[n("thead",null,[n("tr",null,[n("th",null,"\u5907\u6CE8"),n("th",null,"\u63CF\u8FF0"),n("th",null,"\u7C7B\u578B")])]),n("tbody",null,[n("tr",null,[n("td",null,"el"),n("td",null,"\u9700\u8981\u62D6\u62FD\u7684\u5143\u7D20"),n("td",null,"HtmlElement")])])],-1),h={setup(g,{expose:c}){return c({frontmatter:{}}),(y,f)=>{const o=a("lay-field"),p=a("lay-block"),l=a("lay-table-box");return u(),k("div",i,[s(o,{title:"\u57FA\u7840\u4F7F\u7528",style:{"margin-top":"20px","margin-bottom":"20px"}}),s(p,{style:{"margin-left":"8px","margin-bottom":"40px"}},{default:e(()=>[r]),_:1}),d,s(o,{title:"\u4F7F\u7528\u5907\u6CE8",style:{"margin-top":"20px","margin-bottom":"20px"}}),s(l,null,{default:e(()=>[m]),_:1})])}}};export{h as default};
|