import{$ as e,B as t,P as n,_ as r,f as i,g as a,h as o,l as s}from"./runtime-core.esm-bundler-CZvn3YaB.js";import{t as c}from"./plugin-vue_export-helper-CxTVcLa7.js";var l=JSON.parse(`{"path":"/guide/components/plot/","title":"“隐秘” 文本 | 指南","lang":"zh-CN","frontmatter":{"title":"“隐秘” 文本","icon":"lets-icons:hide-eye","createTime":"2024/08/18 23:02:39","permalink":"/guide/components/plot/","description":"概述 使用 <Plot> 组件显示 ,能够更灵活地控制行为。 该组件默认不启用,你需要在 theme 配置中启用。 .vuepress/config.ts Props 示例 输入: 输出: 鼠标悬停 - 点击 -","head":[["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"“隐秘” 文本\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2026-03-08T13:55:27.000Z\\",\\"author\\":[]}"],["meta",{"property":"og:url","content":"https://theme-plume.vuejs.press/guide/components/plot/"}],["meta",{"property":"og:site_name","content":"Plume 主题"}],["meta",{"property":"og:title","content":"“隐秘” 文本"}],["meta",{"property":"og:description","content":"概述 使用 <Plot> 组件显示 ,能够更灵活地控制行为。 该组件默认不启用,你需要在 theme 配置中启用。 .vuepress/config.ts Props 示例 输入: 输出: 鼠标悬停 - 点击 -"}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2026-03-08T13:55:27.000Z"}],["meta",{"property":"article:modified_time","content":"2026-03-08T13:55:27.000Z"}],["link",{"rel":"alternate","hreflang":"en-us","href":"https://theme-plume.vuejs.press/en/guide/components/plot/"}]]},"readingTime":{"minutes":0.57,"words":170},"git":{"createdTime":1724002416000,"updatedTime":1772978127000,"contributors":[{"name":"pengzhanbo","username":"pengzhanbo","email":"volodymyr@foxmail.com","commits":7,"avatar":"https://avatars.githubusercontent.com/pengzhanbo?v=4","url":"https://github.com/pengzhanbo"}],"changelog":[{"hash":"97a5ba20c3eb976864d8a9ec7342a061bb73c03b","time":1772978127000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: fix typo"},{"hash":"4d2361a7046214fe0f4e4af01831107fd00e38ad","time":1759849989000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(theme)!: add collections support (#704)"},{"hash":"9efa2c1a801d37ef079bfda0b716374d77d664ea","time":1750263142000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"feat(plugin-md-power): improve plot behavior (#620)"},{"hash":"d14961d038bc1a13318ce14ee9fe25a8b2c9ac99","time":1746023641000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: update docs"},{"hash":"0fd6cac57412002f4d72dc10378789b529adc357","time":1742063370000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"refactor(theme): improve types and flat config (#524)"},{"hash":"6e6f9af12cfa52770de67ee966bd15b37c3256dc","time":1740886005000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: improve docs (#509)"},{"hash":"e3b1c3cc531ac9e163ec809c2a3ccdc35b12a4bb","time":1724002416000,"email":"volodymyr@foxmail.com","author":"pengzhanbo","message":"docs: improve docs"}]},"autoDesc":true,"filePathRelative":"guide/components/plot.md","headers":[],"bulletin":false}`),u={name:`plot.md`},d={class:`code-block-title`,"data-title":`.vuepress/config.ts`},f={class:`code-block-title-bar`},p={class:`title`},m={class:`vp-field-group`};function h(c,l,u,h,g,_){let v=t(`VPLink`),y=t(`VPIcon`),b=t(`VPField`),x=t(`Plot`,!0);return n(),i(`div`,null,[l[13]||=s(`h2`,{id:`概述`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#概述`},[s(`span`,null,`概述`)])],-1),s(`p`,null,[l[1]||=a(`使用 `,-1),l[2]||=s(`code`,null,``,-1),l[3]||=a(` 组件显示 `,-1),r(v,{href:`../markdown/plot.md`},{default:e(()=>[...l[0]||=[a(`"隐秘"文本`,-1)]]),_:1}),l[4]||=a(`,能够更灵活地控制行为。`,-1)]),l[14]||=s(`p`,null,`该组件默认不启用,你需要在 theme 配置中启用。`,-1),s(`div`,d,[s(`div`,f,[s(`span`,p,[r(y,{provider:`iconify`,name:`vscode-icons:file-type-typescript`}),l[5]||=a(`.vuepress/config.ts`,-1)])]),l[6]||=o(`
export default defineUserConfig({
  theme: plumeTheme({
    markdown: {
      plot: true,
    },
  })
})
`,1)]),l[15]||=s(`h2`,{id:`props`,tabindex:`-1`},[s(`a`,{class:`header-anchor`,href:`#props`},[s(`span`,null,`Props`)])],-1),s(`div`,m,[r(b,{name:`trigger`,optional:``,type:`'hover' | 'click'`,"default-value":`'hover'`},{default:e(()=>[...l[7]||=[s(`p`,null,`鼠标悬停触发,或者点击触发`,-1)]]),_:1}),r(b,{name:`effect`,optional:``,type:`'blur' | 'mask'`,"default-value":`'mask'`},{default:e(()=>[...l[8]||=[s(`p`,null,`遮罩层效果,或者文本模糊效果`,-1)]]),_:1})]),l[16]||=o(`

示例

输入:

- 鼠标悬停 - <Plot>悬停时可见</Plot>
- 点击 - <Plot trigger="click">点击时可见</Plot>

输出:

`,4),s(`ul`,null,[s(`li`,null,[l[10]||=a(`鼠标悬停 - `,-1),r(x,null,{default:e(()=>[...l[9]||=[a(`悬停时可见`,-1)]]),_:1})]),s(`li`,null,[l[12]||=a(`点击 - `,-1),r(x,{trigger:`click`},{default:e(()=>[...l[11]||=[a(`点击时可见`,-1)]]),_:1})])])])}var g=c(u,[[`render`,h]]);export{l as _pageData,g as default};