ScopeSentry/static/assets/Search-B44cxvF-.js

2 lines
5.9 KiB
JavaScript
Raw Normal View History

2024-06-17 13:36:34 +00:00
import{_ as e}from"./ContentWrap.vue_vue_type_script_setup_true_lang-eEWBoMS4.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-DDHcjopZ.js";import{u as h,_ as v}from"./useSearch-BaSx5Tzj.js";import{g as b}from"./index-D36JBp2K.js";import"./el-card-CuVKwz2M.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-popper-CKFwqsZp.js";import"./useForm-Duv9aaD8.js";import"./el-form-item-D0ZdsA3F.js";import"./castArray-BkLeP3z1.js";import"./el-col-DqH3JWc6.js";import"./el-tag-CAhOIzri.js";import"./el-checkbox-BJlhBIiO.js";import"./useInput-B8ihujou.js";import"./debounce-mfTra9hX.js";import"./el-radio-group-BTwue__K.js";/* empty css */import"./el-input-number-BNwH5P0l.js";import"./el-select-C2ZuyQeW.js";import"./el-select-v2-Dr6_zzLy.js";import"./raf-efFBxEsV.js";import"./el-switch-DPrhr5n6.js";import"./el-divider-BW_dLdwQ.js";import"./el-progress-CdMmup4U.js";import"./InputPassword-Bd3Wft0s.js";import"./style.css_vue_type_style_index_0_src_true_lang-CZ9FjG6a.js";import"./JsonEditor.vue_vue_type_script_setup_true_lang-D8KUDYg7.js";import"./IconPicker-t-sUJAh2.js";/* empty css */import"./el-tab-pane-BhIgdPAB.js";import"./tsxHelper-Cq5JD9lB.js";import"./index-BMv-JIxM.js";import"./useIcon-Cvbbg4H7.js";import"./index-DXl3uH5Z.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"