UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

2 lines (1 loc) 24.4 kB
import{_ as t,o as e,c as d,a as o}from"./app-e5356031.js";const a={},r=o('<h2 id="modules" tabindex="-1"><a class="header-anchor" href="#modules" aria-hidden="true">#</a> Modules</h2><dl><dt><a href="#module_Cipher">Cipher</a></dt><dd></dd><dt><a href="#module_Datetime">Datetime</a></dt><dd></dd><dt><a href="#module_Form">Form</a></dt><dd></dd><dt><a href="#module_Interact">Interact</a></dt><dd></dd><dt><a href="#module_Network">Network</a></dt><dd></dd><dt><a href="#module_Uitls">Uitls</a></dt><dd></dd></dl><p><a name="module_Cipher"></a></p><h2 id="cipher" tabindex="-1"><a class="header-anchor" href="#cipher" aria-hidden="true">#</a> Cipher</h2><ul><li><a href="#module_Cipher">Cipher</a><ul><li><a href="#module_Cipher.useSm2">.useSm2()</a></li><li><a href="#module_Cipher.useSm3">.useSm3(msg, [options])</a><code>*</code></li><li><a href="#module_Cipher.useSm4Encrypt">.useSm4Encrypt(msg, key, [options])</a><code>Uint8Array</code></li><li><a href="#module_Cipher.useSm4Decrypt">.useSm4Decrypt(encryptData, key, [options])</a><code>Uint8Array</code></li></ul></li></ul><p><a name="module_Cipher.useSm2"></a></p><h3 id="cipher-usesm2" tabindex="-1"><a class="header-anchor" href="#cipher-usesm2" aria-hidden="true">#</a> Cipher.useSm2()</h3><p>国密 sm2</p><p><strong>Kind</strong>: static method of <a href="#module_Cipher"><code>Cipher</code></a><br><a name="module_Cipher.useSm3"></a></p><h3 id="cipher-usesm3-msg-options-⇒" tabindex="-1"><a class="header-anchor" href="#cipher-usesm3-msg-options-⇒" aria-hidden="true">#</a> Cipher.useSm3(msg, [options]) ⇒ <code>*</code></h3><p>国密 sm3 加密</p><p><strong>Kind</strong>: static method of <a href="#module_Cipher"><code>Cipher</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>msg</td><td><code>string</code></td><td></td><td>密码信息</td></tr><tr><td>[options]</td><td><code>Object</code></td><td><code>{}</code></td><td></td></tr></tbody></table><p><a name="module_Cipher.useSm4Encrypt"></a></p><h3 id="cipher-usesm4encrypt-msg-key-options-⇒-uint8array" tabindex="-1"><a class="header-anchor" href="#cipher-usesm4encrypt-msg-key-options-⇒-uint8array" aria-hidden="true">#</a> Cipher.useSm4Encrypt(msg, key, [options]) ⇒ <code>Uint8Array</code></h3><p>国密 sm4 加密</p><p><strong>Kind</strong>: static method of <a href="#module_Cipher"><code>Cipher</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>msg</td><td><code>string</code></td><td></td><td>密码信息</td></tr><tr><td>key</td><td><code>string</code></td><td></td><td>秘钥</td></tr><tr><td>[options]</td><td><code>Object</code></td><td><code>{}</code></td><td></td></tr></tbody></table><p><a name="module_Cipher.useSm4Decrypt"></a></p><h3 id="cipher-usesm4decrypt-encryptdata-key-options-⇒-uint8array" tabindex="-1"><a class="header-anchor" href="#cipher-usesm4decrypt-encryptdata-key-options-⇒-uint8array" aria-hidden="true">#</a> Cipher.useSm4Decrypt(encryptData, key, [options]) ⇒ <code>Uint8Array</code></h3><p>国密 sm4 解密</p><p><strong>Kind</strong>: static method of <a href="#module_Cipher"><code>Cipher</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>encryptData</td><td><code>string</code></td><td></td><td>加密信息</td></tr><tr><td>key</td><td><code>string</code></td><td></td><td>秘钥</td></tr><tr><td>[options]</td><td><code>Object</code></td><td><code>{}</code></td><td></td></tr></tbody></table><p><a name="module_Datetime"></a></p><h2 id="datetime" tabindex="-1"><a class="header-anchor" href="#datetime" aria-hidden="true">#</a> Datetime</h2><ul><li><a href="#module_Datetime">Datetime</a><ul><li><a href="#module_Datetime.useDayjs">.useDayjs(date, [format])</a><code>dayjs.Dayjs</code></li><li><a href="#module_Datetime.useDateFormat">.useDateFormat(date, [format])</a><code>string</code></li><li><a href="#module_Datetime.useDateUnix">.useDateUnix(date)</a><code>number</code> | <code>string</code></li></ul></li></ul><p><a name="module_Datetime.useDayjs"></a></p><h3 id="datetime-usedayjs-date-format-⇒-dayjs-dayjs" tabindex="-1"><a class="header-anchor" href="#datetime-usedayjs-date-format-⇒-dayjs-dayjs" aria-hidden="true">#</a> Datetime.useDayjs(date, [format]) ⇒ <code>dayjs.Dayjs</code></h3><p>根据格式创建 Dayjs 对象</p><p><strong>Kind</strong>: static method of <a href="#module_Datetime"><code>Datetime</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>date</td><td><code>string</code> | <code>number</code></td><td></td><td>日期字符</td></tr><tr><td>[format]</td><td><code>string</code></td><td><code>null</code></td><td>日期格式</td></tr></tbody></table><p><a name="module_Datetime.useDateFormat"></a></p><h3 id="datetime-usedateformat-date-format-⇒-string" tabindex="-1"><a class="header-anchor" href="#datetime-usedateformat-date-format-⇒-string" aria-hidden="true">#</a> Datetime.useDateFormat(date, [format]) ⇒ <code>string</code></h3><p>格式化日期</p><p><strong>Kind</strong>: static method of <a href="#module_Datetime"><code>Datetime</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>date</td><td><code>dayjs.Dayjs</code> | <code>Date</code></td><td></td><td>日期对象</td></tr><tr><td>[format]</td><td><code>string</code></td><td><code>&quot;YYYY-MM-DD HH:mm&quot;</code></td><td>日期格式</td></tr></tbody></table><p><a name="module_Datetime.useDateUnix"></a></p><h3 id="datetime-usedateunix-date-⇒-number-string" tabindex="-1"><a class="header-anchor" href="#datetime-usedateunix-date-⇒-number-string" aria-hidden="true">#</a> Datetime.useDateUnix(date) ⇒ <code>number</code> | <code>string</code></h3><p>获取日期的 Unix 时间戳</p><p><strong>Kind</strong>: static method of <a href="#module_Datetime"><code>Datetime</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>date</td><td><code>dayjs.Dayjs</code> | <code>Date</code></td><td>日期对象</td></tr></tbody></table><p><a name="module_Form"></a></p><h2 id="form" tabindex="-1"><a class="header-anchor" href="#form" aria-hidden="true">#</a> Form</h2><ul><li><a href="#module_Form">Form</a><ul><li><a href="#module_Form.formLabel">.formLabel</a></li><li><a href="#module_Form.useHiddenForm">.useHiddenForm(options)</a><code>HTMLFormElement</code></li><li><a href="#module_Form.useProcessStatus">.useProcessStatus(res, ops)</a></li><li><a href="#module_Form.useProcessStatusSuccess">.useProcessStatusSuccess(res, success)</a></li><li><a href="#module_Form.useFormFail">.useFormFail(e)</a></li><li><a href="#module_Form.useFormFormat">.useFormFormat(form, [format])</a><code>Object</code></li></ul></li></ul><p><a name="module_Form.formLabel"></a></p><h3 id="form-formlabel" tabindex="-1"><a class="header-anchor" href="#form-formlabel" aria-hidden="true">#</a> Form.formLabel</h3><p>表单布局</p><p><strong>Kind</strong>: static constant of <a href="#module_Form"><code>Form</code></a><br><strong>Properties</strong></p><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>formLabel.commonLabelCol</td><td><code>Object</code></td><td><code>{ span: 8, xxl: 6 }</code></td></tr><tr><td>formLabel.commonWrapperCol</td><td><code>Object</code></td><td><code>{ span: 12, xxl: 14 }</code></td></tr><tr><td>formLabel.commonWrapperOffset</td><td><code>Object</code></td><td><code>{ xs: { offset: 8, span: 12 }, xxl: { offset: 6, span: 14 } }</code></td></tr><tr><td>formLabel.commonLabelFullCol</td><td><code>Object</code></td><td><code>{ span: 8, xxl: 6 }</code></td></tr><tr><td>formLabel.commonWrapperFullCol</td><td><code>Object</code></td><td><code>{ span: 16, xxl: 18 }</code></td></tr><tr><td>formLabel.commonWrapperFullOffset</td><td><code>Object</code></td><td><code>{ xs: { offset: 8, span: 16 }, xxl: { offset: 6, span: 18 } }</code></td></tr><tr><td>formLabel.commonLabelPartCol</td><td><code>Object</code></td><td><code>{ span: 4, xxl: 3 }</code></td></tr><tr><td>formLabel.commonWrapperPartCol</td><td><code>Object</code></td><td><code>{ span: 20, xxl: 21 }</code></td></tr><tr><td>formLabel.commonWrapperPartOffset</td><td><code>Object</code></td><td><code>{ xs: { offset: 4, span: 20 }, xxl: { offset: 3, span: 21 } }</code></td></tr></tbody></table><p><a name="module_Form.useHiddenForm"></a></p><h3 id="form-usehiddenform-options-⇒-htmlformelement" tabindex="-1"><a class="header-anchor" href="#form-usehiddenform-options-⇒-htmlformelement" aria-hidden="true">#</a> Form.useHiddenForm(options) ⇒ <code>HTMLFormElement</code></h3><p>创建一个隐藏的表单</p><p><strong>Kind</strong>: static method of <a href="#module_Form"><code>Form</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td><code>Object</code></td><td></td><td></td></tr><tr><td>options.url</td><td><code>string</code></td><td></td><td>请求地址</td></tr><tr><td>options.data</td><td><code>Object</code></td><td></td><td>发送的数据</td></tr><tr><td>[options.method]</td><td><code>string</code></td><td><code>&quot;post&quot;</code></td><td>请求方法</td></tr><tr><td>[options.csrfToken]</td><td><code>string</code></td><td><code>null</code></td><td>CSRF Token</td></tr></tbody></table><p><a name="module_Form.useProcessStatus"></a></p><h3 id="form-useprocessstatus-res-ops" tabindex="-1"><a class="header-anchor" href="#form-useprocessstatus-res-ops" aria-hidden="true">#</a> Form.useProcessStatus(res, ops)</h3><p>处理请求结果</p><p><strong>Kind</strong>: static method of <a href="#module_Form"><code>Form</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>res</td><td><code>object</code></td><td>请求结果</td></tr><tr><td>res.status</td><td><code>string</code></td><td>请求结果状态</td></tr><tr><td>res.result</td><td><code>*</code></td><td>请求结果信息</td></tr><tr><td>ops</td><td><code>Object.&lt;string, (string|function())&gt;</code></td><td>状态的处理对象</td></tr></tbody></table><p><a name="module_Form.useProcessStatusSuccess"></a></p><h3 id="form-useprocessstatussuccess-res-success" tabindex="-1"><a class="header-anchor" href="#form-useprocessstatussuccess-res-success" aria-hidden="true">#</a> Form.useProcessStatusSuccess(res, success)</h3><p>处理正确请求结果</p><p><strong>Kind</strong>: static method of <a href="#module_Form"><code>Form</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>res</td><td><code>object</code></td><td>请求结果</td></tr><tr><td>res.status</td><td><code>string</code></td><td>请求结果状态</td></tr><tr><td>res.result</td><td><code>*</code></td><td>请求结果信息</td></tr><tr><td>success</td><td><code>string</code> | <code>function</code></td><td>状态的处理对象</td></tr></tbody></table><p><a name="module_Form.useFormFail"></a></p><h3 id="form-useformfail-e" tabindex="-1"><a class="header-anchor" href="#form-useformfail-e" aria-hidden="true">#</a> Form.useFormFail(e)</h3><p>处理表单提交失败</p><p><strong>Kind</strong>: static method of <a href="#module_Form"><code>Form</code></a></p><table><thead><tr><th>Param</th><th>Type</th></tr></thead><tbody><tr><td>e</td><td><code>*</code></td></tr></tbody></table><p><a name="module_Form.useFormFormat"></a></p><h3 id="form-useformformat-form-format-⇒-object" tabindex="-1"><a class="header-anchor" href="#form-useformformat-form-format-⇒-object" aria-hidden="true">#</a> Form.useFormFormat(form, [format]) ⇒ <code>Object</code></h3><p>处理表单数据</p><p><strong>Kind</strong>: static method of <a href="#module_Form"><code>Form</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>form</td><td><code>Object</code></td><td></td></tr><tr><td>[format]</td><td><code>Object</code></td><td>需要处理的类型</td></tr><tr><td>[format.date]</td><td><code>boolean</code> | <code>string</code> | <code>function</code></td><td><code>true</code>: 转成时间戳,<code>string</code>: 为 Format 格式, 如 <code>&quot;YYYY-MM-DD&quot;</code>, <code>function</code>: 自定义处理函数, 参数为 dayjs 对象</td></tr><tr><td>[format.boolean]</td><td><code>boolean</code></td><td>布尔值处理, 如果开启则 <code>true</code> 转成 1, <code>false</code> 转成 0</td></tr><tr><td>[format.attachment]</td><td><code>string</code> | <code>function</code></td><td><code>string</code>: 附件字段名, <code>function</code>: 自定义处理函数, 参数为附件对象</td></tr></tbody></table><p><a name="module_Interact"></a></p><h2 id="interact" tabindex="-1"><a class="header-anchor" href="#interact" aria-hidden="true">#</a> Interact</h2><p><a name="module_Interact.useModalConfirm"></a></p><h3 id="interact-usemodalconfirm-msg-onok-loading-oncancel-⇒" tabindex="-1"><a class="header-anchor" href="#interact-usemodalconfirm-msg-onok-loading-oncancel-⇒" aria-hidden="true">#</a> Interact.useModalConfirm(msg, [onOk], [loading], [onCancel]) ⇒ <code>*</code></h3><p>确认弹窗</p><p><strong>Kind</strong>: static method of <a href="#module_Interact"><code>Interact</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>msg</td><td><code>string</code></td><td></td><td>提示信息</td></tr><tr><td>[onOk]</td><td><code>function</code></td><td><code></code></td><td>确认回调</td></tr><tr><td>[loading]</td><td><code>boolean</code></td><td><code>false</code></td><td>是否异步加载</td></tr><tr><td>[onCancel]</td><td><code>function</code></td><td><code></code></td><td>取消回调</td></tr></tbody></table><p><a name="module_Network"></a></p><h2 id="network" tabindex="-1"><a class="header-anchor" href="#network" aria-hidden="true">#</a> Network</h2><ul><li><a href="#module_Network">Network</a><ul><li><em>static</em><ul><li><a href="#module_Network.STATUS">.STATUS</a></li><li><a href="#module_Network.useFetch">.useFetch([fetcher])</a><code>Object</code></li><li><a href="#module_Network.usePage">.usePage(pagination, refresh, [process])</a><code>object</code></li></ul></li><li><em>inner</em><ul><li><a href="#module_Network..get">~get(url, [config])</a><code>Promise</code></li><li><a href="#module_Network..post">~post(url, data, [config])</a><code>Promise</code></li></ul></li></ul></li></ul><p><a name="module_Network.STATUS"></a></p><h3 id="network-status" tabindex="-1"><a class="header-anchor" href="#network-status" aria-hidden="true">#</a> Network.STATUS</h3><p>请求返回状态码</p><p><strong>Kind</strong>: static constant of <a href="#module_Network"><code>Network</code></a><br><strong>Properties</strong></p><table><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>STATUS.STATE_CODE_SUCCESS</td><td><code>string</code></td><td><code>SUCCESS</code> 成功</td></tr><tr><td>STATUS.STATE_CODE_FAIL</td><td><code>string</code></td><td><code>FAIL</code> 失败</td></tr><tr><td>STATUS.STATE_CODE_NOT_FOUND</td><td><code>string</code></td><td><code>NOT_FOUND</code> 找不到资源</td></tr><tr><td>STATUS.STATE_CODE_INFO_NOT_COMPLETE</td><td><code>string</code></td><td><code>INCOMPLETE</code> 信息不完整</td></tr><tr><td>STATUS.STATE_CODE_NOT_ALLOWED</td><td><code>string</code></td><td><code>NOT_ALLOWED</code> 无权限</td></tr></tbody></table><p><a name="module_Network.useFetch"></a></p><h3 id="network-usefetch-fetcher-⇒-object" tabindex="-1"><a class="header-anchor" href="#network-usefetch-fetcher-⇒-object" aria-hidden="true">#</a> Network.useFetch([fetcher]) ⇒ <code>Object</code></h3><p>通用 AJAX 请求</p><p><strong>Kind</strong>: static method of <a href="#module_Network"><code>Network</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>[fetcher]</td><td><code>Object</code></td><td>用于存储请求状态的对象</td></tr></tbody></table><p><a name="module_Network.usePage"></a></p><h3 id="network-usepage-pagination-refresh-process-⇒-object" tabindex="-1"><a class="header-anchor" href="#network-usepage-pagination-refresh-process-⇒-object" aria-hidden="true">#</a> Network.usePage(pagination, refresh, [process]) ⇒ <code>object</code></h3><p>分页请求</p><p><strong>Kind</strong>: static method of <a href="#module_Network"><code>Network</code></a><br><strong>Returns</strong>: <code>object</code> - pagination 分页对象</p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>pagination</td><td><code>object</code></td><td>分页对象</td></tr><tr><td>pagination.uri</td><td><code>string</code></td><td>请求地址</td></tr><tr><td>[pagination.params]</td><td><code>object</code></td><td>请求参数</td></tr><tr><td>[pagination.page]</td><td><code>number</code></td><td>当前页码</td></tr><tr><td>pagination.finishedText</td><td><code>string</code></td><td>加载完毕文本</td></tr><tr><td>pagination.loading</td><td><code>boolean</code></td><td>加载状态</td></tr><tr><td>pagination.finished</td><td><code>boolean</code></td><td>加载完毕</td></tr><tr><td>pagination.error</td><td><code>boolean</code></td><td>是否错误</td></tr><tr><td>pagination.errorText</td><td><code>string</code></td><td>错误文本</td></tr><tr><td>pagination.empty</td><td><code>boolean</code></td><td>是否无内容</td></tr><tr><td>pagination.items</td><td><code>array</code></td><td>分页数据</td></tr><tr><td>refresh</td><td><code>boolean</code></td><td>是否刷新</td></tr><tr><td>[process]</td><td><code>function</code></td><td>数据处理函数</td></tr></tbody></table><p><a name="module_Network..get"></a></p><h3 id="network-get-url-config-⇒-promise" tabindex="-1"><a class="header-anchor" href="#network-get-url-config-⇒-promise" aria-hidden="true">#</a> Network~get(url, [config]) ⇒ <code>Promise</code></h3><p>get请求</p><p><strong>Kind</strong>: inner method of <a href="#module_Network"><code>Network</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>url</td><td></td><td></td></tr><tr><td>[config]</td><td><code>Object</code></td><td>axios config</td></tr></tbody></table><p><a name="module_Network..post"></a></p><h3 id="network-post-url-data-config-⇒-promise" tabindex="-1"><a class="header-anchor" href="#network-post-url-data-config-⇒-promise" aria-hidden="true">#</a> Network~post(url, data, [config]) ⇒ <code>Promise</code></h3><p>post请求</p><p><strong>Kind</strong>: inner method of <a href="#module_Network"><code>Network</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>url</td><td><code>string</code></td><td></td></tr><tr><td>data</td><td><code>Object</code></td><td></td></tr><tr><td>[config]</td><td><code>Object</code></td><td>axios config</td></tr></tbody></table><p><a name="module_Uitls"></a></p><h2 id="uitls" tabindex="-1"><a class="header-anchor" href="#uitls" aria-hidden="true">#</a> Uitls</h2><ul><li><a href="#module_Uitls">Uitls</a><ul><li><a href="#module_Uitls.useLabelFromOptionsValue">.useLabelFromOptionsValue(value, options)</a><code>string</code></li><li><a href="#module_Uitls.useFindLabelsInValues">.useFindLabelsInValues(options, values, [adapter])</a></li><li><a href="#module_Uitls.useFindLabelsFromPath">.useFindLabelsFromPath(options, path, [adapter])</a></li><li><a href="#module_Uitls.useFindParentLabels">.useFindParentLabels(options, value, adapter)</a><code>*</code></li><li><a href="#module_Uitls.useFindParentValues">.useFindParentValues(options, value, adapter)</a><code>*</code></li></ul></li></ul><p><a name="module_Uitls.useLabelFromOptionsValue"></a></p><h3 id="uitls-uselabelfromoptionsvalue-value-options-⇒-string" tabindex="-1"><a class="header-anchor" href="#uitls-uselabelfromoptionsvalue-value-options-⇒-string" aria-hidden="true">#</a> Uitls.useLabelFromOptionsValue(value, options) ⇒ <code>string</code></h3><p>从 options 中根据 value 获取 label</p><p><strong>Kind</strong>: static method of <a href="#module_Uitls"><code>Uitls</code></a></p><table><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>value</td><td><code>string</code> | <code>number</code></td><td></td></tr><tr><td>options</td><td><code>Array</code></td><td>选项</td></tr></tbody></table><p><a name="module_Uitls.useFindLabelsInValues"></a></p><h3 id="uitls-usefindlabelsinvalues-options-values-adapter-⇒" tabindex="-1"><a class="header-anchor" href="#uitls-usefindlabelsinvalues-options-values-adapter-⇒" aria-hidden="true">#</a> Uitls.useFindLabelsInValues(options, values, [adapter]) ⇒</h3><p>从嵌套的 options 中根据 value 获取 label, 如 [1, 3] =&gt; [&quot;&quot;, &quot;&quot;]</p><p><strong>Kind</strong>: static method of <a href="#module_Uitls"><code>Uitls</code></a><br><strong>Returns</strong>: Array</p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td><code>Array</code></td><td></td><td>嵌套的选项</td></tr><tr><td>values</td><td><code>Array</code></td><td></td><td>需要查找的值</td></tr><tr><td>[adapter]</td><td><code>Object</code></td><td><code>{value: &quot;value&quot;,label: &quot;label&quot;,children: &quot;children&quot;}</code></td><td>选项适配器</td></tr></tbody></table><p><a name="module_Uitls.useFindLabelsFromPath"></a></p><h3 id="uitls-usefindlabelsfrompath-options-path-adapter-⇒" tabindex="-1"><a class="header-anchor" href="#uitls-usefindlabelsfrompath-options-path-adapter-⇒" aria-hidden="true">#</a> Uitls.useFindLabelsFromPath(options, path, [adapter]) ⇒</h3><p>从嵌套的 options 中根据 value 获取 label 路径, 如地区路径: [440000, 440100, 440113] =&gt; [&quot;广东省&quot;, &quot;广州市&quot;, &quot; 番禺区&quot;]</p><p><strong>Kind</strong>: static method of <a href="#module_Uitls"><code>Uitls</code></a><br><strong>Returns</strong>: Array</p><table><thead><tr><th>Param</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>options</td><td><code>Array</code></td><td></td><td>嵌套的选项</td></tr><tr><td>path</td><td><code>Array</code></td><td></td><td>需要查找的值的路径数组</td></tr><tr><td>[adapter]</td><td><code>Object</code></td><td><code>{value: &quot;value&quot;,label: &quot;label&quot;,children: &quot;children&quot;}</code></td><td>选项适配器</td></tr></tbody></table><p><a name="module_Uitls.useFindParentLabels"></a></p><h3 id="uitls-usefindparentlabels-options-value-adapter-⇒" tabindex="-1"><a class="header-anchor" href="#uitls-usefindparentlabels-options-value-adapter-⇒" aria-hidden="true">#</a> Uitls.useFindParentLabels(options, value, adapter) ⇒ <code>*</code></h3><p>从嵌套的 options 中根据 value 获取 label 路径, 如地区路径: 440113 =&gt; [&quot;广东省&quot;, &quot;广州市&quot;, &quot; 番禺区&quot;]</p><p><strong>Kind</strong>: static method of <a href="#module_Uitls"><code>Uitls</code></a></p><table><thead><tr><th>Param</th></tr></thead><tbody><tr><td>options</td></tr><tr><td>value</td></tr><tr><td>adapter</td></tr></tbody></table><p><a name="module_Uitls.useFindParentValues"></a></p><h3 id="uitls-usefindparentvalues-options-value-adapter-⇒" tabindex="-1"><a class="header-anchor" href="#uitls-usefindparentvalues-options-value-adapter-⇒" aria-hidden="true">#</a> Uitls.useFindParentValues(options, value, adapter) ⇒ <code>*</code></h3><p>从嵌套的 options 中根据 value 获取整个 values 路径, 如地区路径: 440113 =&gt; [440000, 440100, 440113]</p><p><strong>Kind</strong>: static method of <a href="#module_Uitls"><code>Uitls</code></a></p><table><thead><tr><th>Param</th></tr></thead><tbody><tr><td>options</td></tr><tr><td>value</td></tr><tr><td>adapter</td></tr></tbody></table>',137),s=[r];function c(i,n){return e(),d("div",null,s)}const l=t(a,[["render",c],["__file","hooks.html.vue"]]);export{l as default};