tmagic-editor/docs/assets/form-config_editor-fields_page-fragment-select.md.BCMgnfOv.js
2026-02-02 11:13:56 +00:00

6 lines
3.6 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{ax as a,z as e,A as s,b2 as i}from"./chunks/framework.DkLJC2NO.js";const g=JSON.parse('{"title":"PageFragmentSelect 页面片选择器","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/editor-fields/page-fragment-select.md","filePath":"form-config/editor-fields/page-fragment-select.md"}'),n={name:"form-config/editor-fields/page-fragment-select.md"};function r(d,t,l,h,o,p){return s(),e("div",null,[...t[0]||(t[0]=[i(`<h1 id="pagefragmentselect-页面片选择器" tabindex="-1">PageFragmentSelect 页面片选择器 <a class="header-anchor" href="#pagefragmentselect-页面片选择器" aria-label="Permalink to &quot;PageFragmentSelect 页面片选择器&quot;"></a></h1><p>用于选择页面片的下拉选择器。</p><div class="warning custom-block"><p class="custom-block-title">注意</p><p>此组件仅在编辑器环境中可用,需要配合 <code>@tmagic/editor</code> 使用。</p></div><h2 id="基础用法" tabindex="-1">基础用法 <a class="header-anchor" href="#基础用法" aria-label="Permalink to &quot;基础用法&quot;"></a></h2><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;page-fragment-select&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> name</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;pageFragment&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> text</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;页面片&#39;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2 id="attributes" tabindex="-1">Attributes <a class="header-anchor" href="#attributes" aria-label="Permalink to &quot;Attributes&quot;"></a></h2><table tabindex="0"><thead><tr><th>参数</th><th>说明</th><th>类型</th><th>可选值</th><th>默认值</th></tr></thead><tbody><tr><td>name</td><td>绑定值</td><td>string</td><td>—</td><td>—</td></tr><tr><td>text</td><td>表单标签</td><td>string</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>是否禁用</td><td>boolean / <a href="https://github.com/Tencent/tmagic-editor/blob/master/packages/form/src/schema.ts" target="_blank" rel="noreferrer">FilterFunction</a></td><td>—</td><td>false</td></tr><tr><td>onChange</td><td>值变化时触发的函数</td><td><a href="https://github.com/Tencent/tmagic-editor/blob/master/packages/form/src/schema.ts" target="_blank" rel="noreferrer">OnChangeHandler</a></td><td>—</td><td>-</td></tr></tbody></table><h2 id="使用说明" tabindex="-1">使用说明 <a class="header-anchor" href="#使用说明" aria-label="Permalink to &quot;使用说明&quot;"></a></h2><ol><li>下拉框会自动列出当前项目中所有的页面片</li><li>选中页面片后,点击编辑图标可跳转到对应页面片进行编辑</li></ol>`,9)])])}const k=a(n,[["render",r]]);export{g as __pageData,k as default};