1 |
- import{d as s,j as e,N as i,A as o}from"./ResizeObserver.es.b7226882.js";import{R as r,C as l}from"./index.af733095.js";const a="_formTitle_fhhun_1",n="_required_fhhun_18";var t={formTitle:a,"col-left":"_col-left_fhhun_8",required:n,"col-icon":"_col-icon_fhhun_23","col-field":"_col-field_fhhun_27"},f=s({name:"col-field",props:{required:{type:Boolean,default:!1},title:{type:String},border:{type:Boolean,default:!0},iconName:{type:String}},render(){return e(r,{class:t["col-field"]},{default:()=>[e(l,{span:24,class:t.formTitle},{default:()=>[e("div",{class:t["col-left"]},[e("div",{class:t["col-icon"]},[this.$slots.icon?this.$slots.icon():this.iconName?e(i,{name:this.iconName,size:"24"},null):null]),this.required?e("i",{class:t.required},[o("*")]):null,this.$slots.title?this.$slots.title():e("div",{class:t.pdL},[this.title])]),e("div",{class:t["col-right"]},[this.$slots.right&&this.$slots.right()])]}),e(l,{span:24,class:this.border?"van-hairline--bottom":null},{default:()=>[this.$slots.default&&this.$slots.default()]})]})}});export{f as C};
|