"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[602],{85901:function(e,l,a){a.r(l),a.d(l,{default:function(){return n}});var t=a(66252);const o=(0,t._)("div",{style:{height:"15px"}},null,-1),u=(0,t.Uk)("查询");function p(e,l,a,p,d,m){const r=(0,t.up)("el-alert"),n=(0,t.up)("el-table-column"),s=(0,t.up)("sc-table-select"),i=(0,t.up)("el-card"),c=(0,t.up)("el-option"),h=(0,t.up)("el-select"),b=(0,t.up)("el-form-item"),w=(0,t.up)("el-date-picker"),f=(0,t.up)("el-button"),W=(0,t.up)("el-form"),g=(0,t.up)("el-main");return(0,t.wg)(),(0,t.j4)(g,null,{default:(0,t.w5)((()=>[(0,t.Wm)(r,{title:"select深度改造的表格选择器, 非常适用于大量数据选择的场景",type:"success",style:{"margin-bottom":"20px"}}),(0,t.Wm)(i,{shadow:"never",header:"单选"},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{modelValue:d.value2,"onUpdate:modelValue":l[0]||(l[0]=e=>d.value2=e),apiObj:d.apiObj,params:d.params,"table-width":600,props:d.props,onChange:m.change},{default:(0,t.w5)((()=>[(0,t.Wm)(n,{prop:"id",label:"ID",width:"180"}),(0,t.Wm)(n,{prop:"user",label:"姓名"})])),_:1},8,["modelValue","apiObj","params","props","onChange"])])),_:1}),o,(0,t.Wm)(i,{shadow:"never",header:"多选"},{default:(0,t.w5)((()=>[(0,t.Wm)(s,{modelValue:d.value,"onUpdate:modelValue":l[1]||(l[1]=e=>d.value=e),apiObj:d.apiObj,"table-width":700,multiple:"",clearable:"","collapse-tags":"","collapse-tags-tooltip":"",props:d.props,onChange:m.change},{header:(0,t.w5)((({form:e,submit:l})=>[(0,t.Wm)(W,{inline:!0,model:e},{default:(0,t.w5)((()=>[(0,t.Wm)(b,null,{default:(0,t.w5)((()=>[(0,t.Wm)(h,{modelValue:e.sex,"onUpdate:modelValue":l=>e.sex=l,placeholder:"性别",clearable:"",teleported:!1},{default:(0,t.w5)((()=>[(0,t.Wm)(c,{label:"男",value:"1"}),(0,t.Wm)(c,{label:"女",value:"2"})])),_:2},1032,["modelValue","onUpdate:modelValue"])])),_:2},1024),(0,t.Wm)(b,null,{default:(0,t.w5)((()=>[(0,t.Wm)(w,{modelValue:e.date,"onUpdate:modelValue":l=>e.date=l,"value-format":"YYYY-MM-DD",type:"date",placeholder:"注册时间",teleported:!1},null,8,["modelValue","onUpdate:modelValue"])])),_:2},1024),(0,t.Wm)(b,null,{default:(0,t.w5)((()=>[(0,t.Wm)(f,{type:"primary",onClick:l},{default:(0,t.w5)((()=>[u])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1032,["model"]),(0,t.Wm)(r,{title:"自定义FORM插糟 传递了form对象和提交方法",type:"info"})])),default:(0,t.w5)((()=>[(0,t.Wm)(n,{prop:"id",label:"ID",width:"180"}),(0,t.Wm)(n,{prop:"user",label:"姓名",width:"100"}),(0,t.Wm)(n,{prop:"cip",label:"最后请求IP",width:"150"}),(0,t.Wm)(n,{prop:"time",label:"注册时间"})])),_:1},8,["modelValue","apiObj","props","onChange"])])),_:1})])),_:1})}var d={name:"tableselect",data(){return{apiObj:this.$API.demo.page,params:{name:"demoName"},value:[{id:"410000199512025445",user:"魏磊"},{id:"520000198407304275",user:"史平"}],value2:{id:"520000198407304275",user:"史平"},props:{label:"user",value:"id",keyword:"keyword"}}},computed:{},mounted(){},methods:{change(e){this.$message("change事件，返回详情查看控制台"),console.log(e)}}},m=a(83744);const r=(0,m.Z)(d,[["render",p]]);var n=r}}]);