ScopeSentry/static/assets/Search-B21dXOne.js

2 lines
5.9 KiB
JavaScript
Raw Normal View History

2024-06-17 14:41:04 +00:00
import{_ as e}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CLuWlWlx.js";import{d as o,l,N as t,r as a,U as i,o as r,c as s,e as n,w as m,H as p,t as c,a as u,Q as d,_ as f}from"./index-rxu9Faad.js";import{u as h,_ as v}from"./useSearch-BVMtWoPI.js";import{g as b}from"./index-_qFCpt_R.js";import"./el-card-C0XrHsE5.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-popper-BJkW0SkV.js";import"./useForm-UYzeuGCf.js";import"./el-form-item-BWEP-xeg.js";import"./castArray-B4xEQihS.js";import"./el-col-BKZxb-_G.js";import"./el-tag-DFTmA9-y.js";import"./el-checkbox-BVo36Tmv.js";import"./useInput-D-eMIzLG.js";import"./debounce-rCtyPgGe.js";import"./el-radio-group-j1mInj6s.js";/* empty css */import"./el-input-number-C2PDgN9l.js";import"./el-select-FArs2pTf.js";import"./el-select-v2-ZKSF5BLD.js";import"./raf-P5NVVAw8.js";import"./el-switch-BRO8MrN9.js";import"./el-divider-CWb5e3hf.js";import"./el-progress-7oah6g2A.js";import"./InputPassword-DBP1uXwq.js";import"./style.css_vue_type_style_index_0_src_true_lang-hZXSv91q.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-AHIJ4if8.js";import"./IconPicker-BE39eHwY.js";/* empty css */import"./el-tab-pane-BRIDvS2j.js";import"./tsxHelper-CyxpWgl3.js";import"./index-bOmM7kJO.js";import"./useIcon-xO2WQYaC.js";import"./index-Cr6_Qzhf.js";const D=f(o({__name:"Search",setup(o){const{t:f}=l(),{searchRegister:D,searchMethods:_}=h(),{setSchema:j,setProps:g,setValues:k}=_,I=[{value:"1",label:"Level one 1",children:[{value:"1-1",label:"Level two 1-1",children:[{value:"1-1-1",label:"Level three 1-1-1"}]}]},{value:"2",label:"Level one 2",children:[{value:"2-1",label:"Level two 2-1",children:[{value:"2-1-1",label:"Level three 2-1-1"}]},{value:"2-2",label:"Level two 2-2",children:[{value:"2-2-1",label:"Level three 2-2-1"}]}]},{value:"3",label:"Level one 3",children:[{value:"3-1",label:"Level two 3-1",children:[{value:"3-1-1",label:"Level three 3-1-1"}]},{value:"3-2",label:"Level two 3-2",children:[{value:"3-2-1",label:"Level three 3-2-1"}]}]}],y=t([{field:"field1",label:f("formDemo.input"),component:"Input"},{field:"field2",label:f("formDemo.select"),component:"Select",componentProps:{options:[{label:"option1",value:"1"},{label:"option2",value:"2"}],on:{change:e=>{}}}},{field:"field3",label:f("formDemo.radio"),component:"RadioGroup",componentProps:{options:[{label:"option-1",value:"1"},{label:"option-2",value:"2"}]}},{field:"field5",component:"DatePicker",label:f("formDemo.datePicker"),componentProps:{type:"date"}},{field:"field6",component:"TimeSelect",label:f("formDemo.timeSelect")},{field:"field8",label:f("formDemo.input"),component:"Input"},{field:"field9",label:f("formDemo.input"),component:"Input"},{field:"field10",label:f("formDemo.input"),component:"Input"},{field:"field11",label:f("formDemo.input"),component:"Input"},{field:"field12",label:f("formDemo.input"),component:"Input"},{field:"field13",label:f("formDemo.input"),component:"Input"},{field:"field14",label:f("formDemo.input"),component:"Input"},{field:"field15",label:f("formDemo.input"),component:"Input"},{field:"field16",label:f("formDemo.input"),component:"Input"},{field:"field17",label:f("formDemo.input"),component:"Input"},{field:"field18",label:f("formDemo.input"),component:"Input"},{field:"field19",label:`${f("formDemo.treeSelect")}`,component:"TreeSelect",optionApi:async()=>await new Promise((e=>{setTimeout((()=>{e(I)}),3e3)}))}]),C=a(!1),w=e=>{g({isCol:e})},x=a("inline"),L=()=>{x.value="inline"===u(x)?"bottom":"inline"},P=a("left"),S=e=>{x.value="bottom",P.value=e},R=async()=>{const e=await b();e&&j([{field:"field2",path:"componentProps.options",value:e.data}])},T=e=>{},A=()=>{j([{field:"field3",path:"remove",value:!0}])},B=()=>{j([{field:"field3",path:"remove",value:!1}])},$=()=>{k({field1:"Joy"})},E=a(!1),G=()=>{E.value=!0,setTimeout((()=>{E.value=!1}),2e3)},H=a(!1),J=()=>{H.value=!0,setTimeout((()=>{H.value=!1}),2e3)};return(o,l)=>{const t=i("BaseButton");return r(),s(d,null,[n(u(e),{title:`${u(f)("searchDemo.search")} ${u(f)("searchDemo.operate")}`,style:{"margin-bottom"